1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051 |
- OPTION DOTNAME
- .text$ SEGMENT ALIGN(256) 'CODE'
- EXTERN OPENSSL_ia32cap_P:NEAR
- PUBLIC bn_mul_mont_gather5
- ALIGN 64
- bn_mul_mont_gather5 PROC PUBLIC
- mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
- mov QWORD PTR[16+rsp],rsi
- mov rax,rsp
- $L$SEH_begin_bn_mul_mont_gather5::
- mov rdi,rcx
- mov rsi,rdx
- mov rdx,r8
- mov rcx,r9
- mov r8,QWORD PTR[40+rsp]
- mov r9,QWORD PTR[48+rsp]
- mov r9d,r9d
- mov rax,rsp
- test r9d,7
- jnz $L$mul_enter
- mov r11d,DWORD PTR[((OPENSSL_ia32cap_P+8))]
- jmp $L$mul4x_enter
- ALIGN 16
- $L$mul_enter::
- movd xmm5,DWORD PTR[56+rsp]
- push rbx
- push rbp
- push r12
- push r13
- push r14
- push r15
- neg r9
- mov r11,rsp
- lea r10,QWORD PTR[((-280))+r9*8+rsp]
- neg r9
- and r10,-1024
- sub r11,r10
- and r11,-4096
- lea rsp,QWORD PTR[r11*1+r10]
- mov r11,QWORD PTR[rsp]
- cmp rsp,r10
- ja $L$mul_page_walk
- jmp $L$mul_page_walk_done
- $L$mul_page_walk::
- lea rsp,QWORD PTR[((-4096))+rsp]
- mov r11,QWORD PTR[rsp]
- cmp rsp,r10
- ja $L$mul_page_walk
- $L$mul_page_walk_done::
- lea r10,QWORD PTR[$L$inc]
- mov QWORD PTR[8+r9*8+rsp],rax
- $L$mul_body::
- lea r12,QWORD PTR[128+rdx]
- movdqa xmm0,XMMWORD PTR[r10]
- movdqa xmm1,XMMWORD PTR[16+r10]
- lea r10,QWORD PTR[((24-112))+r9*8+rsp]
- and r10,-16
- pshufd xmm5,xmm5,0
- movdqa xmm4,xmm1
- movdqa xmm2,xmm1
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- DB 067h
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[112+r10],xmm0
- movdqa xmm0,xmm4
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[128+r10],xmm1
- movdqa xmm1,xmm4
- paddd xmm0,xmm3
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[144+r10],xmm2
- movdqa xmm2,xmm4
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa XMMWORD PTR[160+r10],xmm3
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[176+r10],xmm0
- movdqa xmm0,xmm4
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[192+r10],xmm1
- movdqa xmm1,xmm4
- paddd xmm0,xmm3
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[208+r10],xmm2
- movdqa xmm2,xmm4
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa XMMWORD PTR[224+r10],xmm3
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[240+r10],xmm0
- movdqa xmm0,xmm4
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[256+r10],xmm1
- movdqa xmm1,xmm4
- paddd xmm0,xmm3
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[272+r10],xmm2
- movdqa xmm2,xmm4
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa XMMWORD PTR[288+r10],xmm3
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[304+r10],xmm0
- paddd xmm3,xmm2
- DB 067h
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[320+r10],xmm1
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[336+r10],xmm2
- pand xmm0,XMMWORD PTR[64+r12]
- pand xmm1,XMMWORD PTR[80+r12]
- pand xmm2,XMMWORD PTR[96+r12]
- movdqa XMMWORD PTR[352+r10],xmm3
- pand xmm3,XMMWORD PTR[112+r12]
- por xmm0,xmm2
- por xmm1,xmm3
- movdqa xmm4,XMMWORD PTR[((-128))+r12]
- movdqa xmm5,XMMWORD PTR[((-112))+r12]
- movdqa xmm2,XMMWORD PTR[((-96))+r12]
- pand xmm4,XMMWORD PTR[112+r10]
- movdqa xmm3,XMMWORD PTR[((-80))+r12]
- pand xmm5,XMMWORD PTR[128+r10]
- por xmm0,xmm4
- pand xmm2,XMMWORD PTR[144+r10]
- por xmm1,xmm5
- pand xmm3,XMMWORD PTR[160+r10]
- por xmm0,xmm2
- por xmm1,xmm3
- movdqa xmm4,XMMWORD PTR[((-64))+r12]
- movdqa xmm5,XMMWORD PTR[((-48))+r12]
- movdqa xmm2,XMMWORD PTR[((-32))+r12]
- pand xmm4,XMMWORD PTR[176+r10]
- movdqa xmm3,XMMWORD PTR[((-16))+r12]
- pand xmm5,XMMWORD PTR[192+r10]
- por xmm0,xmm4
- pand xmm2,XMMWORD PTR[208+r10]
- por xmm1,xmm5
- pand xmm3,XMMWORD PTR[224+r10]
- por xmm0,xmm2
- por xmm1,xmm3
- movdqa xmm4,XMMWORD PTR[r12]
- movdqa xmm5,XMMWORD PTR[16+r12]
- movdqa xmm2,XMMWORD PTR[32+r12]
- pand xmm4,XMMWORD PTR[240+r10]
- movdqa xmm3,XMMWORD PTR[48+r12]
- pand xmm5,XMMWORD PTR[256+r10]
- por xmm0,xmm4
- pand xmm2,XMMWORD PTR[272+r10]
- por xmm1,xmm5
- pand xmm3,XMMWORD PTR[288+r10]
- por xmm0,xmm2
- por xmm1,xmm3
- por xmm0,xmm1
- pshufd xmm1,xmm0,04eh
- por xmm0,xmm1
- lea r12,QWORD PTR[256+r12]
- DB 102,72,15,126,195
- mov r8,QWORD PTR[r8]
- mov rax,QWORD PTR[rsi]
- xor r14,r14
- xor r15,r15
- mov rbp,r8
- mul rbx
- mov r10,rax
- mov rax,QWORD PTR[rcx]
- imul rbp,r10
- mov r11,rdx
- mul rbp
- add r10,rax
- mov rax,QWORD PTR[8+rsi]
- adc rdx,0
- mov r13,rdx
- lea r15,QWORD PTR[1+r15]
- jmp $L$1st_enter
- ALIGN 16
- $L$1st::
- add r13,rax
- mov rax,QWORD PTR[r15*8+rsi]
- adc rdx,0
- add r13,r11
- mov r11,r10
- adc rdx,0
- mov QWORD PTR[((-16))+r15*8+rsp],r13
- mov r13,rdx
- $L$1st_enter::
- mul rbx
- add r11,rax
- mov rax,QWORD PTR[r15*8+rcx]
- adc rdx,0
- lea r15,QWORD PTR[1+r15]
- mov r10,rdx
- mul rbp
- cmp r15,r9
- jne $L$1st
- add r13,rax
- adc rdx,0
- add r13,r11
- adc rdx,0
- mov QWORD PTR[((-16))+r9*8+rsp],r13
- mov r13,rdx
- mov r11,r10
- xor rdx,rdx
- add r13,r11
- adc rdx,0
- mov QWORD PTR[((-8))+r9*8+rsp],r13
- mov QWORD PTR[r9*8+rsp],rdx
- lea r14,QWORD PTR[1+r14]
- jmp $L$outer
- ALIGN 16
- $L$outer::
- lea rdx,QWORD PTR[((24+128))+r9*8+rsp]
- and rdx,-16
- pxor xmm4,xmm4
- pxor xmm5,xmm5
- movdqa xmm0,XMMWORD PTR[((-128))+r12]
- movdqa xmm1,XMMWORD PTR[((-112))+r12]
- movdqa xmm2,XMMWORD PTR[((-96))+r12]
- movdqa xmm3,XMMWORD PTR[((-80))+r12]
- pand xmm0,XMMWORD PTR[((-128))+rdx]
- pand xmm1,XMMWORD PTR[((-112))+rdx]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[((-96))+rdx]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[((-80))+rdx]
- por xmm4,xmm2
- por xmm5,xmm3
- movdqa xmm0,XMMWORD PTR[((-64))+r12]
- movdqa xmm1,XMMWORD PTR[((-48))+r12]
- movdqa xmm2,XMMWORD PTR[((-32))+r12]
- movdqa xmm3,XMMWORD PTR[((-16))+r12]
- pand xmm0,XMMWORD PTR[((-64))+rdx]
- pand xmm1,XMMWORD PTR[((-48))+rdx]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[((-32))+rdx]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[((-16))+rdx]
- por xmm4,xmm2
- por xmm5,xmm3
- movdqa xmm0,XMMWORD PTR[r12]
- movdqa xmm1,XMMWORD PTR[16+r12]
- movdqa xmm2,XMMWORD PTR[32+r12]
- movdqa xmm3,XMMWORD PTR[48+r12]
- pand xmm0,XMMWORD PTR[rdx]
- pand xmm1,XMMWORD PTR[16+rdx]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[32+rdx]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[48+rdx]
- por xmm4,xmm2
- por xmm5,xmm3
- movdqa xmm0,XMMWORD PTR[64+r12]
- movdqa xmm1,XMMWORD PTR[80+r12]
- movdqa xmm2,XMMWORD PTR[96+r12]
- movdqa xmm3,XMMWORD PTR[112+r12]
- pand xmm0,XMMWORD PTR[64+rdx]
- pand xmm1,XMMWORD PTR[80+rdx]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[96+rdx]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[112+rdx]
- por xmm4,xmm2
- por xmm5,xmm3
- por xmm4,xmm5
- pshufd xmm0,xmm4,04eh
- por xmm0,xmm4
- lea r12,QWORD PTR[256+r12]
- mov rax,QWORD PTR[rsi]
- DB 102,72,15,126,195
- xor r15,r15
- mov rbp,r8
- mov r10,QWORD PTR[rsp]
- mul rbx
- add r10,rax
- mov rax,QWORD PTR[rcx]
- adc rdx,0
- imul rbp,r10
- mov r11,rdx
- mul rbp
- add r10,rax
- mov rax,QWORD PTR[8+rsi]
- adc rdx,0
- mov r10,QWORD PTR[8+rsp]
- mov r13,rdx
- lea r15,QWORD PTR[1+r15]
- jmp $L$inner_enter
- ALIGN 16
- $L$inner::
- add r13,rax
- mov rax,QWORD PTR[r15*8+rsi]
- adc rdx,0
- add r13,r10
- mov r10,QWORD PTR[r15*8+rsp]
- adc rdx,0
- mov QWORD PTR[((-16))+r15*8+rsp],r13
- mov r13,rdx
- $L$inner_enter::
- mul rbx
- add r11,rax
- mov rax,QWORD PTR[r15*8+rcx]
- adc rdx,0
- add r10,r11
- mov r11,rdx
- adc r11,0
- lea r15,QWORD PTR[1+r15]
- mul rbp
- cmp r15,r9
- jne $L$inner
- add r13,rax
- adc rdx,0
- add r13,r10
- mov r10,QWORD PTR[r9*8+rsp]
- adc rdx,0
- mov QWORD PTR[((-16))+r9*8+rsp],r13
- mov r13,rdx
- xor rdx,rdx
- add r13,r11
- adc rdx,0
- add r13,r10
- adc rdx,0
- mov QWORD PTR[((-8))+r9*8+rsp],r13
- mov QWORD PTR[r9*8+rsp],rdx
- lea r14,QWORD PTR[1+r14]
- cmp r14,r9
- jb $L$outer
- xor r14,r14
- mov rax,QWORD PTR[rsp]
- lea rsi,QWORD PTR[rsp]
- mov r15,r9
- jmp $L$sub
- ALIGN 16
- $L$sub:: sbb rax,QWORD PTR[r14*8+rcx]
- mov QWORD PTR[r14*8+rdi],rax
- mov rax,QWORD PTR[8+r14*8+rsi]
- lea r14,QWORD PTR[1+r14]
- dec r15
- jnz $L$sub
- sbb rax,0
- mov rbx,-1
- xor rbx,rax
- xor r14,r14
- mov r15,r9
- $L$copy::
- mov rcx,QWORD PTR[r14*8+rdi]
- mov rdx,QWORD PTR[r14*8+rsp]
- and rcx,rbx
- and rdx,rax
- mov QWORD PTR[r14*8+rsp],r14
- or rdx,rcx
- mov QWORD PTR[r14*8+rdi],rdx
- lea r14,QWORD PTR[1+r14]
- sub r15,1
- jnz $L$copy
- mov rsi,QWORD PTR[8+r9*8+rsp]
- mov rax,1
- mov r15,QWORD PTR[((-48))+rsi]
- mov r14,QWORD PTR[((-40))+rsi]
- mov r13,QWORD PTR[((-32))+rsi]
- mov r12,QWORD PTR[((-24))+rsi]
- mov rbp,QWORD PTR[((-16))+rsi]
- mov rbx,QWORD PTR[((-8))+rsi]
- lea rsp,QWORD PTR[rsi]
- $L$mul_epilogue::
- mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
- mov rsi,QWORD PTR[16+rsp]
- DB 0F3h,0C3h ;repret
- $L$SEH_end_bn_mul_mont_gather5::
- bn_mul_mont_gather5 ENDP
- ALIGN 32
- bn_mul4x_mont_gather5 PROC PRIVATE
- mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
- mov QWORD PTR[16+rsp],rsi
- mov rax,rsp
- $L$SEH_begin_bn_mul4x_mont_gather5::
- mov rdi,rcx
- mov rsi,rdx
- mov rdx,r8
- mov rcx,r9
- mov r8,QWORD PTR[40+rsp]
- mov r9,QWORD PTR[48+rsp]
- DB 067h
- mov rax,rsp
- $L$mul4x_enter::
- and r11d,080108h
- cmp r11d,080108h
- je $L$mulx4x_enter
- push rbx
- push rbp
- push r12
- push r13
- push r14
- push r15
- $L$mul4x_prologue::
- DB 067h
- shl r9d,3
- lea r10,QWORD PTR[r9*2+r9]
- neg r9
- lea r11,QWORD PTR[((-320))+r9*2+rsp]
- mov rbp,rsp
- sub r11,rdi
- and r11,4095
- cmp r10,r11
- jb $L$mul4xsp_alt
- sub rbp,r11
- lea rbp,QWORD PTR[((-320))+r9*2+rbp]
- jmp $L$mul4xsp_done
- ALIGN 32
- $L$mul4xsp_alt::
- lea r10,QWORD PTR[((4096-320))+r9*2]
- lea rbp,QWORD PTR[((-320))+r9*2+rbp]
- sub r11,r10
- mov r10,0
- cmovc r11,r10
- sub rbp,r11
- $L$mul4xsp_done::
- and rbp,-64
- mov r11,rsp
- sub r11,rbp
- and r11,-4096
- lea rsp,QWORD PTR[rbp*1+r11]
- mov r10,QWORD PTR[rsp]
- cmp rsp,rbp
- ja $L$mul4x_page_walk
- jmp $L$mul4x_page_walk_done
- $L$mul4x_page_walk::
- lea rsp,QWORD PTR[((-4096))+rsp]
- mov r10,QWORD PTR[rsp]
- cmp rsp,rbp
- ja $L$mul4x_page_walk
- $L$mul4x_page_walk_done::
- neg r9
- mov QWORD PTR[40+rsp],rax
- $L$mul4x_body::
- call mul4x_internal
- mov rsi,QWORD PTR[40+rsp]
- mov rax,1
- mov r15,QWORD PTR[((-48))+rsi]
- mov r14,QWORD PTR[((-40))+rsi]
- mov r13,QWORD PTR[((-32))+rsi]
- mov r12,QWORD PTR[((-24))+rsi]
- mov rbp,QWORD PTR[((-16))+rsi]
- mov rbx,QWORD PTR[((-8))+rsi]
- lea rsp,QWORD PTR[rsi]
- $L$mul4x_epilogue::
- mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
- mov rsi,QWORD PTR[16+rsp]
- DB 0F3h,0C3h ;repret
- $L$SEH_end_bn_mul4x_mont_gather5::
- bn_mul4x_mont_gather5 ENDP
- ALIGN 32
- mul4x_internal PROC PRIVATE
- shl r9,5
- movd xmm5,DWORD PTR[56+rax]
- lea rax,QWORD PTR[$L$inc]
- lea r13,QWORD PTR[128+r9*1+rdx]
- shr r9,5
- movdqa xmm0,XMMWORD PTR[rax]
- movdqa xmm1,XMMWORD PTR[16+rax]
- lea r10,QWORD PTR[((88-112))+r9*1+rsp]
- lea r12,QWORD PTR[128+rdx]
- pshufd xmm5,xmm5,0
- movdqa xmm4,xmm1
- DB 067h,067h
- movdqa xmm2,xmm1
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- DB 067h
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[112+r10],xmm0
- movdqa xmm0,xmm4
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[128+r10],xmm1
- movdqa xmm1,xmm4
- paddd xmm0,xmm3
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[144+r10],xmm2
- movdqa xmm2,xmm4
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa XMMWORD PTR[160+r10],xmm3
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[176+r10],xmm0
- movdqa xmm0,xmm4
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[192+r10],xmm1
- movdqa xmm1,xmm4
- paddd xmm0,xmm3
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[208+r10],xmm2
- movdqa xmm2,xmm4
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa XMMWORD PTR[224+r10],xmm3
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[240+r10],xmm0
- movdqa xmm0,xmm4
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[256+r10],xmm1
- movdqa xmm1,xmm4
- paddd xmm0,xmm3
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[272+r10],xmm2
- movdqa xmm2,xmm4
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa XMMWORD PTR[288+r10],xmm3
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[304+r10],xmm0
- paddd xmm3,xmm2
- DB 067h
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[320+r10],xmm1
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[336+r10],xmm2
- pand xmm0,XMMWORD PTR[64+r12]
- pand xmm1,XMMWORD PTR[80+r12]
- pand xmm2,XMMWORD PTR[96+r12]
- movdqa XMMWORD PTR[352+r10],xmm3
- pand xmm3,XMMWORD PTR[112+r12]
- por xmm0,xmm2
- por xmm1,xmm3
- movdqa xmm4,XMMWORD PTR[((-128))+r12]
- movdqa xmm5,XMMWORD PTR[((-112))+r12]
- movdqa xmm2,XMMWORD PTR[((-96))+r12]
- pand xmm4,XMMWORD PTR[112+r10]
- movdqa xmm3,XMMWORD PTR[((-80))+r12]
- pand xmm5,XMMWORD PTR[128+r10]
- por xmm0,xmm4
- pand xmm2,XMMWORD PTR[144+r10]
- por xmm1,xmm5
- pand xmm3,XMMWORD PTR[160+r10]
- por xmm0,xmm2
- por xmm1,xmm3
- movdqa xmm4,XMMWORD PTR[((-64))+r12]
- movdqa xmm5,XMMWORD PTR[((-48))+r12]
- movdqa xmm2,XMMWORD PTR[((-32))+r12]
- pand xmm4,XMMWORD PTR[176+r10]
- movdqa xmm3,XMMWORD PTR[((-16))+r12]
- pand xmm5,XMMWORD PTR[192+r10]
- por xmm0,xmm4
- pand xmm2,XMMWORD PTR[208+r10]
- por xmm1,xmm5
- pand xmm3,XMMWORD PTR[224+r10]
- por xmm0,xmm2
- por xmm1,xmm3
- movdqa xmm4,XMMWORD PTR[r12]
- movdqa xmm5,XMMWORD PTR[16+r12]
- movdqa xmm2,XMMWORD PTR[32+r12]
- pand xmm4,XMMWORD PTR[240+r10]
- movdqa xmm3,XMMWORD PTR[48+r12]
- pand xmm5,XMMWORD PTR[256+r10]
- por xmm0,xmm4
- pand xmm2,XMMWORD PTR[272+r10]
- por xmm1,xmm5
- pand xmm3,XMMWORD PTR[288+r10]
- por xmm0,xmm2
- por xmm1,xmm3
- por xmm0,xmm1
- pshufd xmm1,xmm0,04eh
- por xmm0,xmm1
- lea r12,QWORD PTR[256+r12]
- DB 102,72,15,126,195
- mov QWORD PTR[((16+8))+rsp],r13
- mov QWORD PTR[((56+8))+rsp],rdi
- mov r8,QWORD PTR[r8]
- mov rax,QWORD PTR[rsi]
- lea rsi,QWORD PTR[r9*1+rsi]
- neg r9
- mov rbp,r8
- mul rbx
- mov r10,rax
- mov rax,QWORD PTR[rcx]
- imul rbp,r10
- lea r14,QWORD PTR[((64+8))+rsp]
- mov r11,rdx
- mul rbp
- add r10,rax
- mov rax,QWORD PTR[8+r9*1+rsi]
- adc rdx,0
- mov rdi,rdx
- mul rbx
- add r11,rax
- mov rax,QWORD PTR[8+rcx]
- adc rdx,0
- mov r10,rdx
- mul rbp
- add rdi,rax
- mov rax,QWORD PTR[16+r9*1+rsi]
- adc rdx,0
- add rdi,r11
- lea r15,QWORD PTR[32+r9]
- lea rcx,QWORD PTR[32+rcx]
- adc rdx,0
- mov QWORD PTR[r14],rdi
- mov r13,rdx
- jmp $L$1st4x
- ALIGN 32
- $L$1st4x::
- mul rbx
- add r10,rax
- mov rax,QWORD PTR[((-16))+rcx]
- lea r14,QWORD PTR[32+r14]
- adc rdx,0
- mov r11,rdx
- mul rbp
- add r13,rax
- mov rax,QWORD PTR[((-8))+r15*1+rsi]
- adc rdx,0
- add r13,r10
- adc rdx,0
- mov QWORD PTR[((-24))+r14],r13
- mov rdi,rdx
- mul rbx
- add r11,rax
- mov rax,QWORD PTR[((-8))+rcx]
- adc rdx,0
- mov r10,rdx
- mul rbp
- add rdi,rax
- mov rax,QWORD PTR[r15*1+rsi]
- adc rdx,0
- add rdi,r11
- adc rdx,0
- mov QWORD PTR[((-16))+r14],rdi
- mov r13,rdx
- mul rbx
- add r10,rax
- mov rax,QWORD PTR[rcx]
- adc rdx,0
- mov r11,rdx
- mul rbp
- add r13,rax
- mov rax,QWORD PTR[8+r15*1+rsi]
- adc rdx,0
- add r13,r10
- adc rdx,0
- mov QWORD PTR[((-8))+r14],r13
- mov rdi,rdx
- mul rbx
- add r11,rax
- mov rax,QWORD PTR[8+rcx]
- adc rdx,0
- mov r10,rdx
- mul rbp
- add rdi,rax
- mov rax,QWORD PTR[16+r15*1+rsi]
- adc rdx,0
- add rdi,r11
- lea rcx,QWORD PTR[32+rcx]
- adc rdx,0
- mov QWORD PTR[r14],rdi
- mov r13,rdx
- add r15,32
- jnz $L$1st4x
- mul rbx
- add r10,rax
- mov rax,QWORD PTR[((-16))+rcx]
- lea r14,QWORD PTR[32+r14]
- adc rdx,0
- mov r11,rdx
- mul rbp
- add r13,rax
- mov rax,QWORD PTR[((-8))+rsi]
- adc rdx,0
- add r13,r10
- adc rdx,0
- mov QWORD PTR[((-24))+r14],r13
- mov rdi,rdx
- mul rbx
- add r11,rax
- mov rax,QWORD PTR[((-8))+rcx]
- adc rdx,0
- mov r10,rdx
- mul rbp
- add rdi,rax
- mov rax,QWORD PTR[r9*1+rsi]
- adc rdx,0
- add rdi,r11
- adc rdx,0
- mov QWORD PTR[((-16))+r14],rdi
- mov r13,rdx
- lea rcx,QWORD PTR[r9*1+rcx]
- xor rdi,rdi
- add r13,r10
- adc rdi,0
- mov QWORD PTR[((-8))+r14],r13
- jmp $L$outer4x
- ALIGN 32
- $L$outer4x::
- lea rdx,QWORD PTR[((16+128))+r14]
- pxor xmm4,xmm4
- pxor xmm5,xmm5
- movdqa xmm0,XMMWORD PTR[((-128))+r12]
- movdqa xmm1,XMMWORD PTR[((-112))+r12]
- movdqa xmm2,XMMWORD PTR[((-96))+r12]
- movdqa xmm3,XMMWORD PTR[((-80))+r12]
- pand xmm0,XMMWORD PTR[((-128))+rdx]
- pand xmm1,XMMWORD PTR[((-112))+rdx]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[((-96))+rdx]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[((-80))+rdx]
- por xmm4,xmm2
- por xmm5,xmm3
- movdqa xmm0,XMMWORD PTR[((-64))+r12]
- movdqa xmm1,XMMWORD PTR[((-48))+r12]
- movdqa xmm2,XMMWORD PTR[((-32))+r12]
- movdqa xmm3,XMMWORD PTR[((-16))+r12]
- pand xmm0,XMMWORD PTR[((-64))+rdx]
- pand xmm1,XMMWORD PTR[((-48))+rdx]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[((-32))+rdx]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[((-16))+rdx]
- por xmm4,xmm2
- por xmm5,xmm3
- movdqa xmm0,XMMWORD PTR[r12]
- movdqa xmm1,XMMWORD PTR[16+r12]
- movdqa xmm2,XMMWORD PTR[32+r12]
- movdqa xmm3,XMMWORD PTR[48+r12]
- pand xmm0,XMMWORD PTR[rdx]
- pand xmm1,XMMWORD PTR[16+rdx]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[32+rdx]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[48+rdx]
- por xmm4,xmm2
- por xmm5,xmm3
- movdqa xmm0,XMMWORD PTR[64+r12]
- movdqa xmm1,XMMWORD PTR[80+r12]
- movdqa xmm2,XMMWORD PTR[96+r12]
- movdqa xmm3,XMMWORD PTR[112+r12]
- pand xmm0,XMMWORD PTR[64+rdx]
- pand xmm1,XMMWORD PTR[80+rdx]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[96+rdx]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[112+rdx]
- por xmm4,xmm2
- por xmm5,xmm3
- por xmm4,xmm5
- pshufd xmm0,xmm4,04eh
- por xmm0,xmm4
- lea r12,QWORD PTR[256+r12]
- DB 102,72,15,126,195
- mov r10,QWORD PTR[r9*1+r14]
- mov rbp,r8
- mul rbx
- add r10,rax
- mov rax,QWORD PTR[rcx]
- adc rdx,0
- imul rbp,r10
- mov r11,rdx
- mov QWORD PTR[r14],rdi
- lea r14,QWORD PTR[r9*1+r14]
- mul rbp
- add r10,rax
- mov rax,QWORD PTR[8+r9*1+rsi]
- adc rdx,0
- mov rdi,rdx
- mul rbx
- add r11,rax
- mov rax,QWORD PTR[8+rcx]
- adc rdx,0
- add r11,QWORD PTR[8+r14]
- adc rdx,0
- mov r10,rdx
- mul rbp
- add rdi,rax
- mov rax,QWORD PTR[16+r9*1+rsi]
- adc rdx,0
- add rdi,r11
- lea r15,QWORD PTR[32+r9]
- lea rcx,QWORD PTR[32+rcx]
- adc rdx,0
- mov r13,rdx
- jmp $L$inner4x
- ALIGN 32
- $L$inner4x::
- mul rbx
- add r10,rax
- mov rax,QWORD PTR[((-16))+rcx]
- adc rdx,0
- add r10,QWORD PTR[16+r14]
- lea r14,QWORD PTR[32+r14]
- adc rdx,0
- mov r11,rdx
- mul rbp
- add r13,rax
- mov rax,QWORD PTR[((-8))+r15*1+rsi]
- adc rdx,0
- add r13,r10
- adc rdx,0
- mov QWORD PTR[((-32))+r14],rdi
- mov rdi,rdx
- mul rbx
- add r11,rax
- mov rax,QWORD PTR[((-8))+rcx]
- adc rdx,0
- add r11,QWORD PTR[((-8))+r14]
- adc rdx,0
- mov r10,rdx
- mul rbp
- add rdi,rax
- mov rax,QWORD PTR[r15*1+rsi]
- adc rdx,0
- add rdi,r11
- adc rdx,0
- mov QWORD PTR[((-24))+r14],r13
- mov r13,rdx
- mul rbx
- add r10,rax
- mov rax,QWORD PTR[rcx]
- adc rdx,0
- add r10,QWORD PTR[r14]
- adc rdx,0
- mov r11,rdx
- mul rbp
- add r13,rax
- mov rax,QWORD PTR[8+r15*1+rsi]
- adc rdx,0
- add r13,r10
- adc rdx,0
- mov QWORD PTR[((-16))+r14],rdi
- mov rdi,rdx
- mul rbx
- add r11,rax
- mov rax,QWORD PTR[8+rcx]
- adc rdx,0
- add r11,QWORD PTR[8+r14]
- adc rdx,0
- mov r10,rdx
- mul rbp
- add rdi,rax
- mov rax,QWORD PTR[16+r15*1+rsi]
- adc rdx,0
- add rdi,r11
- lea rcx,QWORD PTR[32+rcx]
- adc rdx,0
- mov QWORD PTR[((-8))+r14],r13
- mov r13,rdx
- add r15,32
- jnz $L$inner4x
- mul rbx
- add r10,rax
- mov rax,QWORD PTR[((-16))+rcx]
- adc rdx,0
- add r10,QWORD PTR[16+r14]
- lea r14,QWORD PTR[32+r14]
- adc rdx,0
- mov r11,rdx
- mul rbp
- add r13,rax
- mov rax,QWORD PTR[((-8))+rsi]
- adc rdx,0
- add r13,r10
- adc rdx,0
- mov QWORD PTR[((-32))+r14],rdi
- mov rdi,rdx
- mul rbx
- add r11,rax
- mov rax,rbp
- mov rbp,QWORD PTR[((-8))+rcx]
- adc rdx,0
- add r11,QWORD PTR[((-8))+r14]
- adc rdx,0
- mov r10,rdx
- mul rbp
- add rdi,rax
- mov rax,QWORD PTR[r9*1+rsi]
- adc rdx,0
- add rdi,r11
- adc rdx,0
- mov QWORD PTR[((-24))+r14],r13
- mov r13,rdx
- mov QWORD PTR[((-16))+r14],rdi
- lea rcx,QWORD PTR[r9*1+rcx]
- xor rdi,rdi
- add r13,r10
- adc rdi,0
- add r13,QWORD PTR[r14]
- adc rdi,0
- mov QWORD PTR[((-8))+r14],r13
- cmp r12,QWORD PTR[((16+8))+rsp]
- jb $L$outer4x
- xor rax,rax
- sub rbp,r13
- adc r15,r15
- or rdi,r15
- sub rax,rdi
- lea rbx,QWORD PTR[r9*1+r14]
- mov r12,QWORD PTR[rcx]
- lea rbp,QWORD PTR[rcx]
- mov rcx,r9
- sar rcx,3+2
- mov rdi,QWORD PTR[((56+8))+rsp]
- dec r12
- xor r10,r10
- mov r13,QWORD PTR[8+rbp]
- mov r14,QWORD PTR[16+rbp]
- mov r15,QWORD PTR[24+rbp]
- jmp $L$sqr4x_sub_entry
- mul4x_internal ENDP
- PUBLIC bn_power5
- ALIGN 32
- bn_power5 PROC PUBLIC
- mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
- mov QWORD PTR[16+rsp],rsi
- mov rax,rsp
- $L$SEH_begin_bn_power5::
- mov rdi,rcx
- mov rsi,rdx
- mov rdx,r8
- mov rcx,r9
- mov r8,QWORD PTR[40+rsp]
- mov r9,QWORD PTR[48+rsp]
- mov rax,rsp
- mov r11d,DWORD PTR[((OPENSSL_ia32cap_P+8))]
- and r11d,080108h
- cmp r11d,080108h
- je $L$powerx5_enter
- push rbx
- push rbp
- push r12
- push r13
- push r14
- push r15
- $L$power5_prologue::
- shl r9d,3
- lea r10d,DWORD PTR[r9*2+r9]
- neg r9
- mov r8,QWORD PTR[r8]
- lea r11,QWORD PTR[((-320))+r9*2+rsp]
- mov rbp,rsp
- sub r11,rdi
- and r11,4095
- cmp r10,r11
- jb $L$pwr_sp_alt
- sub rbp,r11
- lea rbp,QWORD PTR[((-320))+r9*2+rbp]
- jmp $L$pwr_sp_done
- ALIGN 32
- $L$pwr_sp_alt::
- lea r10,QWORD PTR[((4096-320))+r9*2]
- lea rbp,QWORD PTR[((-320))+r9*2+rbp]
- sub r11,r10
- mov r10,0
- cmovc r11,r10
- sub rbp,r11
- $L$pwr_sp_done::
- and rbp,-64
- mov r11,rsp
- sub r11,rbp
- and r11,-4096
- lea rsp,QWORD PTR[rbp*1+r11]
- mov r10,QWORD PTR[rsp]
- cmp rsp,rbp
- ja $L$pwr_page_walk
- jmp $L$pwr_page_walk_done
- $L$pwr_page_walk::
- lea rsp,QWORD PTR[((-4096))+rsp]
- mov r10,QWORD PTR[rsp]
- cmp rsp,rbp
- ja $L$pwr_page_walk
- $L$pwr_page_walk_done::
- mov r10,r9
- neg r9
- mov QWORD PTR[32+rsp],r8
- mov QWORD PTR[40+rsp],rax
- $L$power5_body::
- DB 102,72,15,110,207
- DB 102,72,15,110,209
- DB 102,73,15,110,218
- DB 102,72,15,110,226
- call __bn_sqr8x_internal
- call __bn_post4x_internal
- call __bn_sqr8x_internal
- call __bn_post4x_internal
- call __bn_sqr8x_internal
- call __bn_post4x_internal
- call __bn_sqr8x_internal
- call __bn_post4x_internal
- call __bn_sqr8x_internal
- call __bn_post4x_internal
- DB 102,72,15,126,209
- DB 102,72,15,126,226
- mov rdi,rsi
- mov rax,QWORD PTR[40+rsp]
- lea r8,QWORD PTR[32+rsp]
- call mul4x_internal
- mov rsi,QWORD PTR[40+rsp]
- mov rax,1
- mov r15,QWORD PTR[((-48))+rsi]
- mov r14,QWORD PTR[((-40))+rsi]
- mov r13,QWORD PTR[((-32))+rsi]
- mov r12,QWORD PTR[((-24))+rsi]
- mov rbp,QWORD PTR[((-16))+rsi]
- mov rbx,QWORD PTR[((-8))+rsi]
- lea rsp,QWORD PTR[rsi]
- $L$power5_epilogue::
- mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
- mov rsi,QWORD PTR[16+rsp]
- DB 0F3h,0C3h ;repret
- $L$SEH_end_bn_power5::
- bn_power5 ENDP
- PUBLIC bn_sqr8x_internal
- ALIGN 32
- bn_sqr8x_internal PROC PUBLIC
- __bn_sqr8x_internal::
- lea rbp,QWORD PTR[32+r10]
- lea rsi,QWORD PTR[r9*1+rsi]
- mov rcx,r9
- mov r14,QWORD PTR[((-32))+rbp*1+rsi]
- lea rdi,QWORD PTR[((48+8))+r9*2+rsp]
- mov rax,QWORD PTR[((-24))+rbp*1+rsi]
- lea rdi,QWORD PTR[((-32))+rbp*1+rdi]
- mov rbx,QWORD PTR[((-16))+rbp*1+rsi]
- mov r15,rax
- mul r14
- mov r10,rax
- mov rax,rbx
- mov r11,rdx
- mov QWORD PTR[((-24))+rbp*1+rdi],r10
- mul r14
- add r11,rax
- mov rax,rbx
- adc rdx,0
- mov QWORD PTR[((-16))+rbp*1+rdi],r11
- mov r10,rdx
- mov rbx,QWORD PTR[((-8))+rbp*1+rsi]
- mul r15
- mov r12,rax
- mov rax,rbx
- mov r13,rdx
- lea rcx,QWORD PTR[rbp]
- mul r14
- add r10,rax
- mov rax,rbx
- mov r11,rdx
- adc r11,0
- add r10,r12
- adc r11,0
- mov QWORD PTR[((-8))+rcx*1+rdi],r10
- jmp $L$sqr4x_1st
- ALIGN 32
- $L$sqr4x_1st::
- mov rbx,QWORD PTR[rcx*1+rsi]
- mul r15
- add r13,rax
- mov rax,rbx
- mov r12,rdx
- adc r12,0
- mul r14
- add r11,rax
- mov rax,rbx
- mov rbx,QWORD PTR[8+rcx*1+rsi]
- mov r10,rdx
- adc r10,0
- add r11,r13
- adc r10,0
- mul r15
- add r12,rax
- mov rax,rbx
- mov QWORD PTR[rcx*1+rdi],r11
- mov r13,rdx
- adc r13,0
- mul r14
- add r10,rax
- mov rax,rbx
- mov rbx,QWORD PTR[16+rcx*1+rsi]
- mov r11,rdx
- adc r11,0
- add r10,r12
- adc r11,0
- mul r15
- add r13,rax
- mov rax,rbx
- mov QWORD PTR[8+rcx*1+rdi],r10
- mov r12,rdx
- adc r12,0
- mul r14
- add r11,rax
- mov rax,rbx
- mov rbx,QWORD PTR[24+rcx*1+rsi]
- mov r10,rdx
- adc r10,0
- add r11,r13
- adc r10,0
- mul r15
- add r12,rax
- mov rax,rbx
- mov QWORD PTR[16+rcx*1+rdi],r11
- mov r13,rdx
- adc r13,0
- lea rcx,QWORD PTR[32+rcx]
- mul r14
- add r10,rax
- mov rax,rbx
- mov r11,rdx
- adc r11,0
- add r10,r12
- adc r11,0
- mov QWORD PTR[((-8))+rcx*1+rdi],r10
- cmp rcx,0
- jne $L$sqr4x_1st
- mul r15
- add r13,rax
- lea rbp,QWORD PTR[16+rbp]
- adc rdx,0
- add r13,r11
- adc rdx,0
- mov QWORD PTR[rdi],r13
- mov r12,rdx
- mov QWORD PTR[8+rdi],rdx
- jmp $L$sqr4x_outer
- ALIGN 32
- $L$sqr4x_outer::
- mov r14,QWORD PTR[((-32))+rbp*1+rsi]
- lea rdi,QWORD PTR[((48+8))+r9*2+rsp]
- mov rax,QWORD PTR[((-24))+rbp*1+rsi]
- lea rdi,QWORD PTR[((-32))+rbp*1+rdi]
- mov rbx,QWORD PTR[((-16))+rbp*1+rsi]
- mov r15,rax
- mul r14
- mov r10,QWORD PTR[((-24))+rbp*1+rdi]
- add r10,rax
- mov rax,rbx
- adc rdx,0
- mov QWORD PTR[((-24))+rbp*1+rdi],r10
- mov r11,rdx
- mul r14
- add r11,rax
- mov rax,rbx
- adc rdx,0
- add r11,QWORD PTR[((-16))+rbp*1+rdi]
- mov r10,rdx
- adc r10,0
- mov QWORD PTR[((-16))+rbp*1+rdi],r11
- xor r12,r12
- mov rbx,QWORD PTR[((-8))+rbp*1+rsi]
- mul r15
- add r12,rax
- mov rax,rbx
- adc rdx,0
- add r12,QWORD PTR[((-8))+rbp*1+rdi]
- mov r13,rdx
- adc r13,0
- mul r14
- add r10,rax
- mov rax,rbx
- adc rdx,0
- add r10,r12
- mov r11,rdx
- adc r11,0
- mov QWORD PTR[((-8))+rbp*1+rdi],r10
- lea rcx,QWORD PTR[rbp]
- jmp $L$sqr4x_inner
- ALIGN 32
- $L$sqr4x_inner::
- mov rbx,QWORD PTR[rcx*1+rsi]
- mul r15
- add r13,rax
- mov rax,rbx
- mov r12,rdx
- adc r12,0
- add r13,QWORD PTR[rcx*1+rdi]
- adc r12,0
- DB 067h
- mul r14
- add r11,rax
- mov rax,rbx
- mov rbx,QWORD PTR[8+rcx*1+rsi]
- mov r10,rdx
- adc r10,0
- add r11,r13
- adc r10,0
- mul r15
- add r12,rax
- mov QWORD PTR[rcx*1+rdi],r11
- mov rax,rbx
- mov r13,rdx
- adc r13,0
- add r12,QWORD PTR[8+rcx*1+rdi]
- lea rcx,QWORD PTR[16+rcx]
- adc r13,0
- mul r14
- add r10,rax
- mov rax,rbx
- adc rdx,0
- add r10,r12
- mov r11,rdx
- adc r11,0
- mov QWORD PTR[((-8))+rcx*1+rdi],r10
- cmp rcx,0
- jne $L$sqr4x_inner
- DB 067h
- mul r15
- add r13,rax
- adc rdx,0
- add r13,r11
- adc rdx,0
- mov QWORD PTR[rdi],r13
- mov r12,rdx
- mov QWORD PTR[8+rdi],rdx
- add rbp,16
- jnz $L$sqr4x_outer
- mov r14,QWORD PTR[((-32))+rsi]
- lea rdi,QWORD PTR[((48+8))+r9*2+rsp]
- mov rax,QWORD PTR[((-24))+rsi]
- lea rdi,QWORD PTR[((-32))+rbp*1+rdi]
- mov rbx,QWORD PTR[((-16))+rsi]
- mov r15,rax
- mul r14
- add r10,rax
- mov rax,rbx
- mov r11,rdx
- adc r11,0
- mul r14
- add r11,rax
- mov rax,rbx
- mov QWORD PTR[((-24))+rdi],r10
- mov r10,rdx
- adc r10,0
- add r11,r13
- mov rbx,QWORD PTR[((-8))+rsi]
- adc r10,0
- mul r15
- add r12,rax
- mov rax,rbx
- mov QWORD PTR[((-16))+rdi],r11
- mov r13,rdx
- adc r13,0
- mul r14
- add r10,rax
- mov rax,rbx
- mov r11,rdx
- adc r11,0
- add r10,r12
- adc r11,0
- mov QWORD PTR[((-8))+rdi],r10
- mul r15
- add r13,rax
- mov rax,QWORD PTR[((-16))+rsi]
- adc rdx,0
- add r13,r11
- adc rdx,0
- mov QWORD PTR[rdi],r13
- mov r12,rdx
- mov QWORD PTR[8+rdi],rdx
- mul rbx
- add rbp,16
- xor r14,r14
- sub rbp,r9
- xor r15,r15
- add rax,r12
- adc rdx,0
- mov QWORD PTR[8+rdi],rax
- mov QWORD PTR[16+rdi],rdx
- mov QWORD PTR[24+rdi],r15
- mov rax,QWORD PTR[((-16))+rbp*1+rsi]
- lea rdi,QWORD PTR[((48+8))+rsp]
- xor r10,r10
- mov r11,QWORD PTR[8+rdi]
- lea r12,QWORD PTR[r10*2+r14]
- shr r10,63
- lea r13,QWORD PTR[r11*2+rcx]
- shr r11,63
- or r13,r10
- mov r10,QWORD PTR[16+rdi]
- mov r14,r11
- mul rax
- neg r15
- mov r11,QWORD PTR[24+rdi]
- adc r12,rax
- mov rax,QWORD PTR[((-8))+rbp*1+rsi]
- mov QWORD PTR[rdi],r12
- adc r13,rdx
- lea rbx,QWORD PTR[r10*2+r14]
- mov QWORD PTR[8+rdi],r13
- sbb r15,r15
- shr r10,63
- lea r8,QWORD PTR[r11*2+rcx]
- shr r11,63
- or r8,r10
- mov r10,QWORD PTR[32+rdi]
- mov r14,r11
- mul rax
- neg r15
- mov r11,QWORD PTR[40+rdi]
- adc rbx,rax
- mov rax,QWORD PTR[rbp*1+rsi]
- mov QWORD PTR[16+rdi],rbx
- adc r8,rdx
- lea rbp,QWORD PTR[16+rbp]
- mov QWORD PTR[24+rdi],r8
- sbb r15,r15
- lea rdi,QWORD PTR[64+rdi]
- jmp $L$sqr4x_shift_n_add
- ALIGN 32
- $L$sqr4x_shift_n_add::
- lea r12,QWORD PTR[r10*2+r14]
- shr r10,63
- lea r13,QWORD PTR[r11*2+rcx]
- shr r11,63
- or r13,r10
- mov r10,QWORD PTR[((-16))+rdi]
- mov r14,r11
- mul rax
- neg r15
- mov r11,QWORD PTR[((-8))+rdi]
- adc r12,rax
- mov rax,QWORD PTR[((-8))+rbp*1+rsi]
- mov QWORD PTR[((-32))+rdi],r12
- adc r13,rdx
- lea rbx,QWORD PTR[r10*2+r14]
- mov QWORD PTR[((-24))+rdi],r13
- sbb r15,r15
- shr r10,63
- lea r8,QWORD PTR[r11*2+rcx]
- shr r11,63
- or r8,r10
- mov r10,QWORD PTR[rdi]
- mov r14,r11
- mul rax
- neg r15
- mov r11,QWORD PTR[8+rdi]
- adc rbx,rax
- mov rax,QWORD PTR[rbp*1+rsi]
- mov QWORD PTR[((-16))+rdi],rbx
- adc r8,rdx
- lea r12,QWORD PTR[r10*2+r14]
- mov QWORD PTR[((-8))+rdi],r8
- sbb r15,r15
- shr r10,63
- lea r13,QWORD PTR[r11*2+rcx]
- shr r11,63
- or r13,r10
- mov r10,QWORD PTR[16+rdi]
- mov r14,r11
- mul rax
- neg r15
- mov r11,QWORD PTR[24+rdi]
- adc r12,rax
- mov rax,QWORD PTR[8+rbp*1+rsi]
- mov QWORD PTR[rdi],r12
- adc r13,rdx
- lea rbx,QWORD PTR[r10*2+r14]
- mov QWORD PTR[8+rdi],r13
- sbb r15,r15
- shr r10,63
- lea r8,QWORD PTR[r11*2+rcx]
- shr r11,63
- or r8,r10
- mov r10,QWORD PTR[32+rdi]
- mov r14,r11
- mul rax
- neg r15
- mov r11,QWORD PTR[40+rdi]
- adc rbx,rax
- mov rax,QWORD PTR[16+rbp*1+rsi]
- mov QWORD PTR[16+rdi],rbx
- adc r8,rdx
- mov QWORD PTR[24+rdi],r8
- sbb r15,r15
- lea rdi,QWORD PTR[64+rdi]
- add rbp,32
- jnz $L$sqr4x_shift_n_add
- lea r12,QWORD PTR[r10*2+r14]
- DB 067h
- shr r10,63
- lea r13,QWORD PTR[r11*2+rcx]
- shr r11,63
- or r13,r10
- mov r10,QWORD PTR[((-16))+rdi]
- mov r14,r11
- mul rax
- neg r15
- mov r11,QWORD PTR[((-8))+rdi]
- adc r12,rax
- mov rax,QWORD PTR[((-8))+rsi]
- mov QWORD PTR[((-32))+rdi],r12
- adc r13,rdx
- lea rbx,QWORD PTR[r10*2+r14]
- mov QWORD PTR[((-24))+rdi],r13
- sbb r15,r15
- shr r10,63
- lea r8,QWORD PTR[r11*2+rcx]
- shr r11,63
- or r8,r10
- mul rax
- neg r15
- adc rbx,rax
- adc r8,rdx
- mov QWORD PTR[((-16))+rdi],rbx
- mov QWORD PTR[((-8))+rdi],r8
- DB 102,72,15,126,213
- __bn_sqr8x_reduction::
- xor rax,rax
- lea rcx,QWORD PTR[rbp*1+r9]
- lea rdx,QWORD PTR[((48+8))+r9*2+rsp]
- mov QWORD PTR[((0+8))+rsp],rcx
- lea rdi,QWORD PTR[((48+8))+r9*1+rsp]
- mov QWORD PTR[((8+8))+rsp],rdx
- neg r9
- jmp $L$8x_reduction_loop
- ALIGN 32
- $L$8x_reduction_loop::
- lea rdi,QWORD PTR[r9*1+rdi]
- DB 066h
- mov rbx,QWORD PTR[rdi]
- mov r9,QWORD PTR[8+rdi]
- mov r10,QWORD PTR[16+rdi]
- mov r11,QWORD PTR[24+rdi]
- mov r12,QWORD PTR[32+rdi]
- mov r13,QWORD PTR[40+rdi]
- mov r14,QWORD PTR[48+rdi]
- mov r15,QWORD PTR[56+rdi]
- mov QWORD PTR[rdx],rax
- lea rdi,QWORD PTR[64+rdi]
- DB 067h
- mov r8,rbx
- imul rbx,QWORD PTR[((32+8))+rsp]
- mov rax,QWORD PTR[rbp]
- mov ecx,8
- jmp $L$8x_reduce
- ALIGN 32
- $L$8x_reduce::
- mul rbx
- mov rax,QWORD PTR[8+rbp]
- neg r8
- mov r8,rdx
- adc r8,0
- mul rbx
- add r9,rax
- mov rax,QWORD PTR[16+rbp]
- adc rdx,0
- add r8,r9
- mov QWORD PTR[((48-8+8))+rcx*8+rsp],rbx
- mov r9,rdx
- adc r9,0
- mul rbx
- add r10,rax
- mov rax,QWORD PTR[24+rbp]
- adc rdx,0
- add r9,r10
- mov rsi,QWORD PTR[((32+8))+rsp]
- mov r10,rdx
- adc r10,0
- mul rbx
- add r11,rax
- mov rax,QWORD PTR[32+rbp]
- adc rdx,0
- imul rsi,r8
- add r10,r11
- mov r11,rdx
- adc r11,0
- mul rbx
- add r12,rax
- mov rax,QWORD PTR[40+rbp]
- adc rdx,0
- add r11,r12
- mov r12,rdx
- adc r12,0
- mul rbx
- add r13,rax
- mov rax,QWORD PTR[48+rbp]
- adc rdx,0
- add r12,r13
- mov r13,rdx
- adc r13,0
- mul rbx
- add r14,rax
- mov rax,QWORD PTR[56+rbp]
- adc rdx,0
- add r13,r14
- mov r14,rdx
- adc r14,0
- mul rbx
- mov rbx,rsi
- add r15,rax
- mov rax,QWORD PTR[rbp]
- adc rdx,0
- add r14,r15
- mov r15,rdx
- adc r15,0
- dec ecx
- jnz $L$8x_reduce
- lea rbp,QWORD PTR[64+rbp]
- xor rax,rax
- mov rdx,QWORD PTR[((8+8))+rsp]
- cmp rbp,QWORD PTR[((0+8))+rsp]
- jae $L$8x_no_tail
- DB 066h
- add r8,QWORD PTR[rdi]
- adc r9,QWORD PTR[8+rdi]
- adc r10,QWORD PTR[16+rdi]
- adc r11,QWORD PTR[24+rdi]
- adc r12,QWORD PTR[32+rdi]
- adc r13,QWORD PTR[40+rdi]
- adc r14,QWORD PTR[48+rdi]
- adc r15,QWORD PTR[56+rdi]
- sbb rsi,rsi
- mov rbx,QWORD PTR[((48+56+8))+rsp]
- mov ecx,8
- mov rax,QWORD PTR[rbp]
- jmp $L$8x_tail
- ALIGN 32
- $L$8x_tail::
- mul rbx
- add r8,rax
- mov rax,QWORD PTR[8+rbp]
- mov QWORD PTR[rdi],r8
- mov r8,rdx
- adc r8,0
- mul rbx
- add r9,rax
- mov rax,QWORD PTR[16+rbp]
- adc rdx,0
- add r8,r9
- lea rdi,QWORD PTR[8+rdi]
- mov r9,rdx
- adc r9,0
- mul rbx
- add r10,rax
- mov rax,QWORD PTR[24+rbp]
- adc rdx,0
- add r9,r10
- mov r10,rdx
- adc r10,0
- mul rbx
- add r11,rax
- mov rax,QWORD PTR[32+rbp]
- adc rdx,0
- add r10,r11
- mov r11,rdx
- adc r11,0
- mul rbx
- add r12,rax
- mov rax,QWORD PTR[40+rbp]
- adc rdx,0
- add r11,r12
- mov r12,rdx
- adc r12,0
- mul rbx
- add r13,rax
- mov rax,QWORD PTR[48+rbp]
- adc rdx,0
- add r12,r13
- mov r13,rdx
- adc r13,0
- mul rbx
- add r14,rax
- mov rax,QWORD PTR[56+rbp]
- adc rdx,0
- add r13,r14
- mov r14,rdx
- adc r14,0
- mul rbx
- mov rbx,QWORD PTR[((48-16+8))+rcx*8+rsp]
- add r15,rax
- adc rdx,0
- add r14,r15
- mov rax,QWORD PTR[rbp]
- mov r15,rdx
- adc r15,0
- dec ecx
- jnz $L$8x_tail
- lea rbp,QWORD PTR[64+rbp]
- mov rdx,QWORD PTR[((8+8))+rsp]
- cmp rbp,QWORD PTR[((0+8))+rsp]
- jae $L$8x_tail_done
- mov rbx,QWORD PTR[((48+56+8))+rsp]
- neg rsi
- mov rax,QWORD PTR[rbp]
- adc r8,QWORD PTR[rdi]
- adc r9,QWORD PTR[8+rdi]
- adc r10,QWORD PTR[16+rdi]
- adc r11,QWORD PTR[24+rdi]
- adc r12,QWORD PTR[32+rdi]
- adc r13,QWORD PTR[40+rdi]
- adc r14,QWORD PTR[48+rdi]
- adc r15,QWORD PTR[56+rdi]
- sbb rsi,rsi
- mov ecx,8
- jmp $L$8x_tail
- ALIGN 32
- $L$8x_tail_done::
- xor rax,rax
- add r8,QWORD PTR[rdx]
- adc r9,0
- adc r10,0
- adc r11,0
- adc r12,0
- adc r13,0
- adc r14,0
- adc r15,0
- adc rax,0
- neg rsi
- $L$8x_no_tail::
- adc r8,QWORD PTR[rdi]
- adc r9,QWORD PTR[8+rdi]
- adc r10,QWORD PTR[16+rdi]
- adc r11,QWORD PTR[24+rdi]
- adc r12,QWORD PTR[32+rdi]
- adc r13,QWORD PTR[40+rdi]
- adc r14,QWORD PTR[48+rdi]
- adc r15,QWORD PTR[56+rdi]
- adc rax,0
- mov rcx,QWORD PTR[((-8))+rbp]
- xor rsi,rsi
- DB 102,72,15,126,213
- mov QWORD PTR[rdi],r8
- mov QWORD PTR[8+rdi],r9
- DB 102,73,15,126,217
- mov QWORD PTR[16+rdi],r10
- mov QWORD PTR[24+rdi],r11
- mov QWORD PTR[32+rdi],r12
- mov QWORD PTR[40+rdi],r13
- mov QWORD PTR[48+rdi],r14
- mov QWORD PTR[56+rdi],r15
- lea rdi,QWORD PTR[64+rdi]
- cmp rdi,rdx
- jb $L$8x_reduction_loop
- DB 0F3h,0C3h ;repret
- bn_sqr8x_internal ENDP
- ALIGN 32
- __bn_post4x_internal PROC PRIVATE
- mov r12,QWORD PTR[rbp]
- lea rbx,QWORD PTR[r9*1+rdi]
- mov rcx,r9
- DB 102,72,15,126,207
- neg rax
- DB 102,72,15,126,206
- sar rcx,3+2
- dec r12
- xor r10,r10
- mov r13,QWORD PTR[8+rbp]
- mov r14,QWORD PTR[16+rbp]
- mov r15,QWORD PTR[24+rbp]
- jmp $L$sqr4x_sub_entry
- ALIGN 16
- $L$sqr4x_sub::
- mov r12,QWORD PTR[rbp]
- mov r13,QWORD PTR[8+rbp]
- mov r14,QWORD PTR[16+rbp]
- mov r15,QWORD PTR[24+rbp]
- $L$sqr4x_sub_entry::
- lea rbp,QWORD PTR[32+rbp]
- not r12
- not r13
- not r14
- not r15
- and r12,rax
- and r13,rax
- and r14,rax
- and r15,rax
- neg r10
- adc r12,QWORD PTR[rbx]
- adc r13,QWORD PTR[8+rbx]
- adc r14,QWORD PTR[16+rbx]
- adc r15,QWORD PTR[24+rbx]
- mov QWORD PTR[rdi],r12
- lea rbx,QWORD PTR[32+rbx]
- mov QWORD PTR[8+rdi],r13
- sbb r10,r10
- mov QWORD PTR[16+rdi],r14
- mov QWORD PTR[24+rdi],r15
- lea rdi,QWORD PTR[32+rdi]
- inc rcx
- jnz $L$sqr4x_sub
- mov r10,r9
- neg r9
- DB 0F3h,0C3h ;repret
- __bn_post4x_internal ENDP
- PUBLIC bn_from_montgomery
- ALIGN 32
- bn_from_montgomery PROC PUBLIC
- test DWORD PTR[48+rsp],7
- jz bn_from_mont8x
- xor eax,eax
- DB 0F3h,0C3h ;repret
- bn_from_montgomery ENDP
- ALIGN 32
- bn_from_mont8x PROC PRIVATE
- mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
- mov QWORD PTR[16+rsp],rsi
- mov rax,rsp
- $L$SEH_begin_bn_from_mont8x::
- mov rdi,rcx
- mov rsi,rdx
- mov rdx,r8
- mov rcx,r9
- mov r8,QWORD PTR[40+rsp]
- mov r9,QWORD PTR[48+rsp]
- DB 067h
- mov rax,rsp
- push rbx
- push rbp
- push r12
- push r13
- push r14
- push r15
- $L$from_prologue::
- shl r9d,3
- lea r10,QWORD PTR[r9*2+r9]
- neg r9
- mov r8,QWORD PTR[r8]
- lea r11,QWORD PTR[((-320))+r9*2+rsp]
- mov rbp,rsp
- sub r11,rdi
- and r11,4095
- cmp r10,r11
- jb $L$from_sp_alt
- sub rbp,r11
- lea rbp,QWORD PTR[((-320))+r9*2+rbp]
- jmp $L$from_sp_done
- ALIGN 32
- $L$from_sp_alt::
- lea r10,QWORD PTR[((4096-320))+r9*2]
- lea rbp,QWORD PTR[((-320))+r9*2+rbp]
- sub r11,r10
- mov r10,0
- cmovc r11,r10
- sub rbp,r11
- $L$from_sp_done::
- and rbp,-64
- mov r11,rsp
- sub r11,rbp
- and r11,-4096
- lea rsp,QWORD PTR[rbp*1+r11]
- mov r10,QWORD PTR[rsp]
- cmp rsp,rbp
- ja $L$from_page_walk
- jmp $L$from_page_walk_done
- $L$from_page_walk::
- lea rsp,QWORD PTR[((-4096))+rsp]
- mov r10,QWORD PTR[rsp]
- cmp rsp,rbp
- ja $L$from_page_walk
- $L$from_page_walk_done::
- mov r10,r9
- neg r9
- mov QWORD PTR[32+rsp],r8
- mov QWORD PTR[40+rsp],rax
- $L$from_body::
- mov r11,r9
- lea rax,QWORD PTR[48+rsp]
- pxor xmm0,xmm0
- jmp $L$mul_by_1
- ALIGN 32
- $L$mul_by_1::
- movdqu xmm1,XMMWORD PTR[rsi]
- movdqu xmm2,XMMWORD PTR[16+rsi]
- movdqu xmm3,XMMWORD PTR[32+rsi]
- movdqa XMMWORD PTR[r9*1+rax],xmm0
- movdqu xmm4,XMMWORD PTR[48+rsi]
- movdqa XMMWORD PTR[16+r9*1+rax],xmm0
- DB 048h,08dh,0b6h,040h,000h,000h,000h
- movdqa XMMWORD PTR[rax],xmm1
- movdqa XMMWORD PTR[32+r9*1+rax],xmm0
- movdqa XMMWORD PTR[16+rax],xmm2
- movdqa XMMWORD PTR[48+r9*1+rax],xmm0
- movdqa XMMWORD PTR[32+rax],xmm3
- movdqa XMMWORD PTR[48+rax],xmm4
- lea rax,QWORD PTR[64+rax]
- sub r11,64
- jnz $L$mul_by_1
- DB 102,72,15,110,207
- DB 102,72,15,110,209
- DB 067h
- mov rbp,rcx
- DB 102,73,15,110,218
- mov r11d,DWORD PTR[((OPENSSL_ia32cap_P+8))]
- and r11d,080108h
- cmp r11d,080108h
- jne $L$from_mont_nox
- lea rdi,QWORD PTR[r9*1+rax]
- call __bn_sqrx8x_reduction
- call __bn_postx4x_internal
- pxor xmm0,xmm0
- lea rax,QWORD PTR[48+rsp]
- jmp $L$from_mont_zero
- ALIGN 32
- $L$from_mont_nox::
- call __bn_sqr8x_reduction
- call __bn_post4x_internal
- pxor xmm0,xmm0
- lea rax,QWORD PTR[48+rsp]
- jmp $L$from_mont_zero
- ALIGN 32
- $L$from_mont_zero::
- mov rsi,QWORD PTR[40+rsp]
- movdqa XMMWORD PTR[rax],xmm0
- movdqa XMMWORD PTR[16+rax],xmm0
- movdqa XMMWORD PTR[32+rax],xmm0
- movdqa XMMWORD PTR[48+rax],xmm0
- lea rax,QWORD PTR[64+rax]
- sub r9,32
- jnz $L$from_mont_zero
- mov rax,1
- mov r15,QWORD PTR[((-48))+rsi]
- mov r14,QWORD PTR[((-40))+rsi]
- mov r13,QWORD PTR[((-32))+rsi]
- mov r12,QWORD PTR[((-24))+rsi]
- mov rbp,QWORD PTR[((-16))+rsi]
- mov rbx,QWORD PTR[((-8))+rsi]
- lea rsp,QWORD PTR[rsi]
- $L$from_epilogue::
- mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
- mov rsi,QWORD PTR[16+rsp]
- DB 0F3h,0C3h ;repret
- $L$SEH_end_bn_from_mont8x::
- bn_from_mont8x ENDP
- ALIGN 32
- bn_mulx4x_mont_gather5 PROC PRIVATE
- mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
- mov QWORD PTR[16+rsp],rsi
- mov rax,rsp
- $L$SEH_begin_bn_mulx4x_mont_gather5::
- mov rdi,rcx
- mov rsi,rdx
- mov rdx,r8
- mov rcx,r9
- mov r8,QWORD PTR[40+rsp]
- mov r9,QWORD PTR[48+rsp]
- mov rax,rsp
- $L$mulx4x_enter::
- push rbx
- push rbp
- push r12
- push r13
- push r14
- push r15
- $L$mulx4x_prologue::
- shl r9d,3
- lea r10,QWORD PTR[r9*2+r9]
- neg r9
- mov r8,QWORD PTR[r8]
- lea r11,QWORD PTR[((-320))+r9*2+rsp]
- mov rbp,rsp
- sub r11,rdi
- and r11,4095
- cmp r10,r11
- jb $L$mulx4xsp_alt
- sub rbp,r11
- lea rbp,QWORD PTR[((-320))+r9*2+rbp]
- jmp $L$mulx4xsp_done
- $L$mulx4xsp_alt::
- lea r10,QWORD PTR[((4096-320))+r9*2]
- lea rbp,QWORD PTR[((-320))+r9*2+rbp]
- sub r11,r10
- mov r10,0
- cmovc r11,r10
- sub rbp,r11
- $L$mulx4xsp_done::
- and rbp,-64
- mov r11,rsp
- sub r11,rbp
- and r11,-4096
- lea rsp,QWORD PTR[rbp*1+r11]
- mov r10,QWORD PTR[rsp]
- cmp rsp,rbp
- ja $L$mulx4x_page_walk
- jmp $L$mulx4x_page_walk_done
- $L$mulx4x_page_walk::
- lea rsp,QWORD PTR[((-4096))+rsp]
- mov r10,QWORD PTR[rsp]
- cmp rsp,rbp
- ja $L$mulx4x_page_walk
- $L$mulx4x_page_walk_done::
- mov QWORD PTR[32+rsp],r8
- mov QWORD PTR[40+rsp],rax
- $L$mulx4x_body::
- call mulx4x_internal
- mov rsi,QWORD PTR[40+rsp]
- mov rax,1
- mov r15,QWORD PTR[((-48))+rsi]
- mov r14,QWORD PTR[((-40))+rsi]
- mov r13,QWORD PTR[((-32))+rsi]
- mov r12,QWORD PTR[((-24))+rsi]
- mov rbp,QWORD PTR[((-16))+rsi]
- mov rbx,QWORD PTR[((-8))+rsi]
- lea rsp,QWORD PTR[rsi]
- $L$mulx4x_epilogue::
- mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
- mov rsi,QWORD PTR[16+rsp]
- DB 0F3h,0C3h ;repret
- $L$SEH_end_bn_mulx4x_mont_gather5::
- bn_mulx4x_mont_gather5 ENDP
- ALIGN 32
- mulx4x_internal PROC PRIVATE
- mov QWORD PTR[8+rsp],r9
- mov r10,r9
- neg r9
- shl r9,5
- neg r10
- lea r13,QWORD PTR[128+r9*1+rdx]
- shr r9,5+5
- movd xmm5,DWORD PTR[56+rax]
- sub r9,1
- lea rax,QWORD PTR[$L$inc]
- mov QWORD PTR[((16+8))+rsp],r13
- mov QWORD PTR[((24+8))+rsp],r9
- mov QWORD PTR[((56+8))+rsp],rdi
- movdqa xmm0,XMMWORD PTR[rax]
- movdqa xmm1,XMMWORD PTR[16+rax]
- lea r10,QWORD PTR[((88-112))+r10*1+rsp]
- lea rdi,QWORD PTR[128+rdx]
- pshufd xmm5,xmm5,0
- movdqa xmm4,xmm1
- DB 067h
- movdqa xmm2,xmm1
- DB 067h
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[112+r10],xmm0
- movdqa xmm0,xmm4
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[128+r10],xmm1
- movdqa xmm1,xmm4
- paddd xmm0,xmm3
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[144+r10],xmm2
- movdqa xmm2,xmm4
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa XMMWORD PTR[160+r10],xmm3
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[176+r10],xmm0
- movdqa xmm0,xmm4
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[192+r10],xmm1
- movdqa xmm1,xmm4
- paddd xmm0,xmm3
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[208+r10],xmm2
- movdqa xmm2,xmm4
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa XMMWORD PTR[224+r10],xmm3
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[240+r10],xmm0
- movdqa xmm0,xmm4
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[256+r10],xmm1
- movdqa xmm1,xmm4
- paddd xmm0,xmm3
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[272+r10],xmm2
- movdqa xmm2,xmm4
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa XMMWORD PTR[288+r10],xmm3
- movdqa xmm3,xmm4
- DB 067h
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[304+r10],xmm0
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[320+r10],xmm1
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[336+r10],xmm2
- pand xmm0,XMMWORD PTR[64+rdi]
- pand xmm1,XMMWORD PTR[80+rdi]
- pand xmm2,XMMWORD PTR[96+rdi]
- movdqa XMMWORD PTR[352+r10],xmm3
- pand xmm3,XMMWORD PTR[112+rdi]
- por xmm0,xmm2
- por xmm1,xmm3
- movdqa xmm4,XMMWORD PTR[((-128))+rdi]
- movdqa xmm5,XMMWORD PTR[((-112))+rdi]
- movdqa xmm2,XMMWORD PTR[((-96))+rdi]
- pand xmm4,XMMWORD PTR[112+r10]
- movdqa xmm3,XMMWORD PTR[((-80))+rdi]
- pand xmm5,XMMWORD PTR[128+r10]
- por xmm0,xmm4
- pand xmm2,XMMWORD PTR[144+r10]
- por xmm1,xmm5
- pand xmm3,XMMWORD PTR[160+r10]
- por xmm0,xmm2
- por xmm1,xmm3
- movdqa xmm4,XMMWORD PTR[((-64))+rdi]
- movdqa xmm5,XMMWORD PTR[((-48))+rdi]
- movdqa xmm2,XMMWORD PTR[((-32))+rdi]
- pand xmm4,XMMWORD PTR[176+r10]
- movdqa xmm3,XMMWORD PTR[((-16))+rdi]
- pand xmm5,XMMWORD PTR[192+r10]
- por xmm0,xmm4
- pand xmm2,XMMWORD PTR[208+r10]
- por xmm1,xmm5
- pand xmm3,XMMWORD PTR[224+r10]
- por xmm0,xmm2
- por xmm1,xmm3
- movdqa xmm4,XMMWORD PTR[rdi]
- movdqa xmm5,XMMWORD PTR[16+rdi]
- movdqa xmm2,XMMWORD PTR[32+rdi]
- pand xmm4,XMMWORD PTR[240+r10]
- movdqa xmm3,XMMWORD PTR[48+rdi]
- pand xmm5,XMMWORD PTR[256+r10]
- por xmm0,xmm4
- pand xmm2,XMMWORD PTR[272+r10]
- por xmm1,xmm5
- pand xmm3,XMMWORD PTR[288+r10]
- por xmm0,xmm2
- por xmm1,xmm3
- pxor xmm0,xmm1
- pshufd xmm1,xmm0,04eh
- por xmm0,xmm1
- lea rdi,QWORD PTR[256+rdi]
- DB 102,72,15,126,194
- lea rbx,QWORD PTR[((64+32+8))+rsp]
- mov r9,rdx
- mulx rax,r8,QWORD PTR[rsi]
- mulx r12,r11,QWORD PTR[8+rsi]
- add r11,rax
- mulx r13,rax,QWORD PTR[16+rsi]
- adc r12,rax
- adc r13,0
- mulx r14,rax,QWORD PTR[24+rsi]
- mov r15,r8
- imul r8,QWORD PTR[((32+8))+rsp]
- xor rbp,rbp
- mov rdx,r8
- mov QWORD PTR[((8+8))+rsp],rdi
- lea rsi,QWORD PTR[32+rsi]
- adcx r13,rax
- adcx r14,rbp
- mulx r10,rax,QWORD PTR[rcx]
- adcx r15,rax
- adox r10,r11
- mulx r11,rax,QWORD PTR[8+rcx]
- adcx r10,rax
- adox r11,r12
- mulx r12,rax,QWORD PTR[16+rcx]
- mov rdi,QWORD PTR[((24+8))+rsp]
- mov QWORD PTR[((-32))+rbx],r10
- adcx r11,rax
- adox r12,r13
- mulx r15,rax,QWORD PTR[24+rcx]
- mov rdx,r9
- mov QWORD PTR[((-24))+rbx],r11
- adcx r12,rax
- adox r15,rbp
- lea rcx,QWORD PTR[32+rcx]
- mov QWORD PTR[((-16))+rbx],r12
- jmp $L$mulx4x_1st
- ALIGN 32
- $L$mulx4x_1st::
- adcx r15,rbp
- mulx rax,r10,QWORD PTR[rsi]
- adcx r10,r14
- mulx r14,r11,QWORD PTR[8+rsi]
- adcx r11,rax
- mulx rax,r12,QWORD PTR[16+rsi]
- adcx r12,r14
- mulx r14,r13,QWORD PTR[24+rsi]
- DB 067h,067h
- mov rdx,r8
- adcx r13,rax
- adcx r14,rbp
- lea rsi,QWORD PTR[32+rsi]
- lea rbx,QWORD PTR[32+rbx]
- adox r10,r15
- mulx r15,rax,QWORD PTR[rcx]
- adcx r10,rax
- adox r11,r15
- mulx r15,rax,QWORD PTR[8+rcx]
- adcx r11,rax
- adox r12,r15
- mulx r15,rax,QWORD PTR[16+rcx]
- mov QWORD PTR[((-40))+rbx],r10
- adcx r12,rax
- mov QWORD PTR[((-32))+rbx],r11
- adox r13,r15
- mulx r15,rax,QWORD PTR[24+rcx]
- mov rdx,r9
- mov QWORD PTR[((-24))+rbx],r12
- adcx r13,rax
- adox r15,rbp
- lea rcx,QWORD PTR[32+rcx]
- mov QWORD PTR[((-16))+rbx],r13
- dec rdi
- jnz $L$mulx4x_1st
- mov rax,QWORD PTR[8+rsp]
- adc r15,rbp
- lea rsi,QWORD PTR[rax*1+rsi]
- add r14,r15
- mov rdi,QWORD PTR[((8+8))+rsp]
- adc rbp,rbp
- mov QWORD PTR[((-8))+rbx],r14
- jmp $L$mulx4x_outer
- ALIGN 32
- $L$mulx4x_outer::
- lea r10,QWORD PTR[((16-256))+rbx]
- pxor xmm4,xmm4
- DB 067h,067h
- pxor xmm5,xmm5
- movdqa xmm0,XMMWORD PTR[((-128))+rdi]
- movdqa xmm1,XMMWORD PTR[((-112))+rdi]
- movdqa xmm2,XMMWORD PTR[((-96))+rdi]
- pand xmm0,XMMWORD PTR[256+r10]
- movdqa xmm3,XMMWORD PTR[((-80))+rdi]
- pand xmm1,XMMWORD PTR[272+r10]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[288+r10]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[304+r10]
- por xmm4,xmm2
- por xmm5,xmm3
- movdqa xmm0,XMMWORD PTR[((-64))+rdi]
- movdqa xmm1,XMMWORD PTR[((-48))+rdi]
- movdqa xmm2,XMMWORD PTR[((-32))+rdi]
- pand xmm0,XMMWORD PTR[320+r10]
- movdqa xmm3,XMMWORD PTR[((-16))+rdi]
- pand xmm1,XMMWORD PTR[336+r10]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[352+r10]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[368+r10]
- por xmm4,xmm2
- por xmm5,xmm3
- movdqa xmm0,XMMWORD PTR[rdi]
- movdqa xmm1,XMMWORD PTR[16+rdi]
- movdqa xmm2,XMMWORD PTR[32+rdi]
- pand xmm0,XMMWORD PTR[384+r10]
- movdqa xmm3,XMMWORD PTR[48+rdi]
- pand xmm1,XMMWORD PTR[400+r10]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[416+r10]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[432+r10]
- por xmm4,xmm2
- por xmm5,xmm3
- movdqa xmm0,XMMWORD PTR[64+rdi]
- movdqa xmm1,XMMWORD PTR[80+rdi]
- movdqa xmm2,XMMWORD PTR[96+rdi]
- pand xmm0,XMMWORD PTR[448+r10]
- movdqa xmm3,XMMWORD PTR[112+rdi]
- pand xmm1,XMMWORD PTR[464+r10]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[480+r10]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[496+r10]
- por xmm4,xmm2
- por xmm5,xmm3
- por xmm4,xmm5
- pshufd xmm0,xmm4,04eh
- por xmm0,xmm4
- lea rdi,QWORD PTR[256+rdi]
- DB 102,72,15,126,194
- mov QWORD PTR[rbx],rbp
- lea rbx,QWORD PTR[32+rax*1+rbx]
- mulx r11,r8,QWORD PTR[rsi]
- xor rbp,rbp
- mov r9,rdx
- mulx r12,r14,QWORD PTR[8+rsi]
- adox r8,QWORD PTR[((-32))+rbx]
- adcx r11,r14
- mulx r13,r15,QWORD PTR[16+rsi]
- adox r11,QWORD PTR[((-24))+rbx]
- adcx r12,r15
- mulx r14,rdx,QWORD PTR[24+rsi]
- adox r12,QWORD PTR[((-16))+rbx]
- adcx r13,rdx
- lea rcx,QWORD PTR[rax*1+rcx]
- lea rsi,QWORD PTR[32+rsi]
- adox r13,QWORD PTR[((-8))+rbx]
- adcx r14,rbp
- adox r14,rbp
- mov r15,r8
- imul r8,QWORD PTR[((32+8))+rsp]
- mov rdx,r8
- xor rbp,rbp
- mov QWORD PTR[((8+8))+rsp],rdi
- mulx r10,rax,QWORD PTR[rcx]
- adcx r15,rax
- adox r10,r11
- mulx r11,rax,QWORD PTR[8+rcx]
- adcx r10,rax
- adox r11,r12
- mulx r12,rax,QWORD PTR[16+rcx]
- adcx r11,rax
- adox r12,r13
- mulx r15,rax,QWORD PTR[24+rcx]
- mov rdx,r9
- mov rdi,QWORD PTR[((24+8))+rsp]
- mov QWORD PTR[((-32))+rbx],r10
- adcx r12,rax
- mov QWORD PTR[((-24))+rbx],r11
- adox r15,rbp
- mov QWORD PTR[((-16))+rbx],r12
- lea rcx,QWORD PTR[32+rcx]
- jmp $L$mulx4x_inner
- ALIGN 32
- $L$mulx4x_inner::
- mulx rax,r10,QWORD PTR[rsi]
- adcx r15,rbp
- adox r10,r14
- mulx r14,r11,QWORD PTR[8+rsi]
- adcx r10,QWORD PTR[rbx]
- adox r11,rax
- mulx rax,r12,QWORD PTR[16+rsi]
- adcx r11,QWORD PTR[8+rbx]
- adox r12,r14
- mulx r14,r13,QWORD PTR[24+rsi]
- mov rdx,r8
- adcx r12,QWORD PTR[16+rbx]
- adox r13,rax
- adcx r13,QWORD PTR[24+rbx]
- adox r14,rbp
- lea rsi,QWORD PTR[32+rsi]
- lea rbx,QWORD PTR[32+rbx]
- adcx r14,rbp
- adox r10,r15
- mulx r15,rax,QWORD PTR[rcx]
- adcx r10,rax
- adox r11,r15
- mulx r15,rax,QWORD PTR[8+rcx]
- adcx r11,rax
- adox r12,r15
- mulx r15,rax,QWORD PTR[16+rcx]
- mov QWORD PTR[((-40))+rbx],r10
- adcx r12,rax
- adox r13,r15
- mov QWORD PTR[((-32))+rbx],r11
- mulx r15,rax,QWORD PTR[24+rcx]
- mov rdx,r9
- lea rcx,QWORD PTR[32+rcx]
- mov QWORD PTR[((-24))+rbx],r12
- adcx r13,rax
- adox r15,rbp
- mov QWORD PTR[((-16))+rbx],r13
- dec rdi
- jnz $L$mulx4x_inner
- mov rax,QWORD PTR[((0+8))+rsp]
- adc r15,rbp
- sub rdi,QWORD PTR[rbx]
- mov rdi,QWORD PTR[((8+8))+rsp]
- mov r10,QWORD PTR[((16+8))+rsp]
- adc r14,r15
- lea rsi,QWORD PTR[rax*1+rsi]
- adc rbp,rbp
- mov QWORD PTR[((-8))+rbx],r14
- cmp rdi,r10
- jb $L$mulx4x_outer
- mov r10,QWORD PTR[((-8))+rcx]
- mov r8,rbp
- mov r12,QWORD PTR[rax*1+rcx]
- lea rbp,QWORD PTR[rax*1+rcx]
- mov rcx,rax
- lea rdi,QWORD PTR[rax*1+rbx]
- xor eax,eax
- xor r15,r15
- sub r10,r14
- adc r15,r15
- or r8,r15
- sar rcx,3+2
- sub rax,r8
- mov rdx,QWORD PTR[((56+8))+rsp]
- dec r12
- mov r13,QWORD PTR[8+rbp]
- xor r8,r8
- mov r14,QWORD PTR[16+rbp]
- mov r15,QWORD PTR[24+rbp]
- jmp $L$sqrx4x_sub_entry
- mulx4x_internal ENDP
- ALIGN 32
- bn_powerx5 PROC PRIVATE
- mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
- mov QWORD PTR[16+rsp],rsi
- mov rax,rsp
- $L$SEH_begin_bn_powerx5::
- mov rdi,rcx
- mov rsi,rdx
- mov rdx,r8
- mov rcx,r9
- mov r8,QWORD PTR[40+rsp]
- mov r9,QWORD PTR[48+rsp]
- mov rax,rsp
- $L$powerx5_enter::
- push rbx
- push rbp
- push r12
- push r13
- push r14
- push r15
- $L$powerx5_prologue::
- shl r9d,3
- lea r10,QWORD PTR[r9*2+r9]
- neg r9
- mov r8,QWORD PTR[r8]
- lea r11,QWORD PTR[((-320))+r9*2+rsp]
- mov rbp,rsp
- sub r11,rdi
- and r11,4095
- cmp r10,r11
- jb $L$pwrx_sp_alt
- sub rbp,r11
- lea rbp,QWORD PTR[((-320))+r9*2+rbp]
- jmp $L$pwrx_sp_done
- ALIGN 32
- $L$pwrx_sp_alt::
- lea r10,QWORD PTR[((4096-320))+r9*2]
- lea rbp,QWORD PTR[((-320))+r9*2+rbp]
- sub r11,r10
- mov r10,0
- cmovc r11,r10
- sub rbp,r11
- $L$pwrx_sp_done::
- and rbp,-64
- mov r11,rsp
- sub r11,rbp
- and r11,-4096
- lea rsp,QWORD PTR[rbp*1+r11]
- mov r10,QWORD PTR[rsp]
- cmp rsp,rbp
- ja $L$pwrx_page_walk
- jmp $L$pwrx_page_walk_done
- $L$pwrx_page_walk::
- lea rsp,QWORD PTR[((-4096))+rsp]
- mov r10,QWORD PTR[rsp]
- cmp rsp,rbp
- ja $L$pwrx_page_walk
- $L$pwrx_page_walk_done::
- mov r10,r9
- neg r9
- pxor xmm0,xmm0
- DB 102,72,15,110,207
- DB 102,72,15,110,209
- DB 102,73,15,110,218
- DB 102,72,15,110,226
- mov QWORD PTR[32+rsp],r8
- mov QWORD PTR[40+rsp],rax
- $L$powerx5_body::
- call __bn_sqrx8x_internal
- call __bn_postx4x_internal
- call __bn_sqrx8x_internal
- call __bn_postx4x_internal
- call __bn_sqrx8x_internal
- call __bn_postx4x_internal
- call __bn_sqrx8x_internal
- call __bn_postx4x_internal
- call __bn_sqrx8x_internal
- call __bn_postx4x_internal
- mov r9,r10
- mov rdi,rsi
- DB 102,72,15,126,209
- DB 102,72,15,126,226
- mov rax,QWORD PTR[40+rsp]
- call mulx4x_internal
- mov rsi,QWORD PTR[40+rsp]
- mov rax,1
- mov r15,QWORD PTR[((-48))+rsi]
- mov r14,QWORD PTR[((-40))+rsi]
- mov r13,QWORD PTR[((-32))+rsi]
- mov r12,QWORD PTR[((-24))+rsi]
- mov rbp,QWORD PTR[((-16))+rsi]
- mov rbx,QWORD PTR[((-8))+rsi]
- lea rsp,QWORD PTR[rsi]
- $L$powerx5_epilogue::
- mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue
- mov rsi,QWORD PTR[16+rsp]
- DB 0F3h,0C3h ;repret
- $L$SEH_end_bn_powerx5::
- bn_powerx5 ENDP
- PUBLIC bn_sqrx8x_internal
- ALIGN 32
- bn_sqrx8x_internal PROC PUBLIC
- __bn_sqrx8x_internal::
- lea rdi,QWORD PTR[((48+8))+rsp]
- lea rbp,QWORD PTR[r9*1+rsi]
- mov QWORD PTR[((0+8))+rsp],r9
- mov QWORD PTR[((8+8))+rsp],rbp
- jmp $L$sqr8x_zero_start
- ALIGN 32
- DB 066h,066h,066h,02eh,00fh,01fh,084h,000h,000h,000h,000h,000h
- $L$sqrx8x_zero::
- DB 03eh
- movdqa XMMWORD PTR[rdi],xmm0
- movdqa XMMWORD PTR[16+rdi],xmm0
- movdqa XMMWORD PTR[32+rdi],xmm0
- movdqa XMMWORD PTR[48+rdi],xmm0
- $L$sqr8x_zero_start::
- movdqa XMMWORD PTR[64+rdi],xmm0
- movdqa XMMWORD PTR[80+rdi],xmm0
- movdqa XMMWORD PTR[96+rdi],xmm0
- movdqa XMMWORD PTR[112+rdi],xmm0
- lea rdi,QWORD PTR[128+rdi]
- sub r9,64
- jnz $L$sqrx8x_zero
- mov rdx,QWORD PTR[rsi]
- xor r10,r10
- xor r11,r11
- xor r12,r12
- xor r13,r13
- xor r14,r14
- xor r15,r15
- lea rdi,QWORD PTR[((48+8))+rsp]
- xor rbp,rbp
- jmp $L$sqrx8x_outer_loop
- ALIGN 32
- $L$sqrx8x_outer_loop::
- mulx rax,r8,QWORD PTR[8+rsi]
- adcx r8,r9
- adox r10,rax
- mulx rax,r9,QWORD PTR[16+rsi]
- adcx r9,r10
- adox r11,rax
- DB 0c4h,0e2h,0abh,0f6h,086h,018h,000h,000h,000h
- adcx r10,r11
- adox r12,rax
- DB 0c4h,0e2h,0a3h,0f6h,086h,020h,000h,000h,000h
- adcx r11,r12
- adox r13,rax
- mulx rax,r12,QWORD PTR[40+rsi]
- adcx r12,r13
- adox r14,rax
- mulx rax,r13,QWORD PTR[48+rsi]
- adcx r13,r14
- adox rax,r15
- mulx r15,r14,QWORD PTR[56+rsi]
- mov rdx,QWORD PTR[8+rsi]
- adcx r14,rax
- adox r15,rbp
- adc r15,QWORD PTR[64+rdi]
- mov QWORD PTR[8+rdi],r8
- mov QWORD PTR[16+rdi],r9
- sbb rcx,rcx
- xor rbp,rbp
- mulx rbx,r8,QWORD PTR[16+rsi]
- mulx rax,r9,QWORD PTR[24+rsi]
- adcx r8,r10
- adox r9,rbx
- mulx rbx,r10,QWORD PTR[32+rsi]
- adcx r9,r11
- adox r10,rax
- DB 0c4h,0e2h,0a3h,0f6h,086h,028h,000h,000h,000h
- adcx r10,r12
- adox r11,rbx
- DB 0c4h,0e2h,09bh,0f6h,09eh,030h,000h,000h,000h
- adcx r11,r13
- adox r12,r14
- DB 0c4h,062h,093h,0f6h,0b6h,038h,000h,000h,000h
- mov rdx,QWORD PTR[16+rsi]
- adcx r12,rax
- adox r13,rbx
- adcx r13,r15
- adox r14,rbp
- adcx r14,rbp
- mov QWORD PTR[24+rdi],r8
- mov QWORD PTR[32+rdi],r9
- mulx rbx,r8,QWORD PTR[24+rsi]
- mulx rax,r9,QWORD PTR[32+rsi]
- adcx r8,r10
- adox r9,rbx
- mulx rbx,r10,QWORD PTR[40+rsi]
- adcx r9,r11
- adox r10,rax
- DB 0c4h,0e2h,0a3h,0f6h,086h,030h,000h,000h,000h
- adcx r10,r12
- adox r11,r13
- DB 0c4h,062h,09bh,0f6h,0aeh,038h,000h,000h,000h
- DB 03eh
- mov rdx,QWORD PTR[24+rsi]
- adcx r11,rbx
- adox r12,rax
- adcx r12,r14
- mov QWORD PTR[40+rdi],r8
- mov QWORD PTR[48+rdi],r9
- mulx rax,r8,QWORD PTR[32+rsi]
- adox r13,rbp
- adcx r13,rbp
- mulx rbx,r9,QWORD PTR[40+rsi]
- adcx r8,r10
- adox r9,rax
- mulx rax,r10,QWORD PTR[48+rsi]
- adcx r9,r11
- adox r10,r12
- mulx r12,r11,QWORD PTR[56+rsi]
- mov rdx,QWORD PTR[32+rsi]
- mov r14,QWORD PTR[40+rsi]
- adcx r10,rbx
- adox r11,rax
- mov r15,QWORD PTR[48+rsi]
- adcx r11,r13
- adox r12,rbp
- adcx r12,rbp
- mov QWORD PTR[56+rdi],r8
- mov QWORD PTR[64+rdi],r9
- mulx rax,r9,r14
- mov r8,QWORD PTR[56+rsi]
- adcx r9,r10
- mulx rbx,r10,r15
- adox r10,rax
- adcx r10,r11
- mulx rax,r11,r8
- mov rdx,r14
- adox r11,rbx
- adcx r11,r12
- adcx rax,rbp
- mulx rbx,r14,r15
- mulx r13,r12,r8
- mov rdx,r15
- lea rsi,QWORD PTR[64+rsi]
- adcx r11,r14
- adox r12,rbx
- adcx r12,rax
- adox r13,rbp
- DB 067h,067h
- mulx r14,r8,r8
- adcx r13,r8
- adcx r14,rbp
- cmp rsi,QWORD PTR[((8+8))+rsp]
- je $L$sqrx8x_outer_break
- neg rcx
- mov rcx,-8
- mov r15,rbp
- mov r8,QWORD PTR[64+rdi]
- adcx r9,QWORD PTR[72+rdi]
- adcx r10,QWORD PTR[80+rdi]
- adcx r11,QWORD PTR[88+rdi]
- adc r12,QWORD PTR[96+rdi]
- adc r13,QWORD PTR[104+rdi]
- adc r14,QWORD PTR[112+rdi]
- adc r15,QWORD PTR[120+rdi]
- lea rbp,QWORD PTR[rsi]
- lea rdi,QWORD PTR[128+rdi]
- sbb rax,rax
- mov rdx,QWORD PTR[((-64))+rsi]
- mov QWORD PTR[((16+8))+rsp],rax
- mov QWORD PTR[((24+8))+rsp],rdi
- xor eax,eax
- jmp $L$sqrx8x_loop
- ALIGN 32
- $L$sqrx8x_loop::
- mov rbx,r8
- mulx r8,rax,QWORD PTR[rbp]
- adcx rbx,rax
- adox r8,r9
- mulx r9,rax,QWORD PTR[8+rbp]
- adcx r8,rax
- adox r9,r10
- mulx r10,rax,QWORD PTR[16+rbp]
- adcx r9,rax
- adox r10,r11
- mulx r11,rax,QWORD PTR[24+rbp]
- adcx r10,rax
- adox r11,r12
- DB 0c4h,062h,0fbh,0f6h,0a5h,020h,000h,000h,000h
- adcx r11,rax
- adox r12,r13
- mulx r13,rax,QWORD PTR[40+rbp]
- adcx r12,rax
- adox r13,r14
- mulx r14,rax,QWORD PTR[48+rbp]
- mov QWORD PTR[rcx*8+rdi],rbx
- mov ebx,0
- adcx r13,rax
- adox r14,r15
- DB 0c4h,062h,0fbh,0f6h,0bdh,038h,000h,000h,000h
- mov rdx,QWORD PTR[8+rcx*8+rsi]
- adcx r14,rax
- adox r15,rbx
- adcx r15,rbx
- DB 067h
- inc rcx
- jnz $L$sqrx8x_loop
- lea rbp,QWORD PTR[64+rbp]
- mov rcx,-8
- cmp rbp,QWORD PTR[((8+8))+rsp]
- je $L$sqrx8x_break
- sub rbx,QWORD PTR[((16+8))+rsp]
- DB 066h
- mov rdx,QWORD PTR[((-64))+rsi]
- adcx r8,QWORD PTR[rdi]
- adcx r9,QWORD PTR[8+rdi]
- adc r10,QWORD PTR[16+rdi]
- adc r11,QWORD PTR[24+rdi]
- adc r12,QWORD PTR[32+rdi]
- adc r13,QWORD PTR[40+rdi]
- adc r14,QWORD PTR[48+rdi]
- adc r15,QWORD PTR[56+rdi]
- lea rdi,QWORD PTR[64+rdi]
- DB 067h
- sbb rax,rax
- xor ebx,ebx
- mov QWORD PTR[((16+8))+rsp],rax
- jmp $L$sqrx8x_loop
- ALIGN 32
- $L$sqrx8x_break::
- xor rbp,rbp
- sub rbx,QWORD PTR[((16+8))+rsp]
- adcx r8,rbp
- mov rcx,QWORD PTR[((24+8))+rsp]
- adcx r9,rbp
- mov rdx,QWORD PTR[rsi]
- adc r10,0
- mov QWORD PTR[rdi],r8
- adc r11,0
- adc r12,0
- adc r13,0
- adc r14,0
- adc r15,0
- cmp rdi,rcx
- je $L$sqrx8x_outer_loop
- mov QWORD PTR[8+rdi],r9
- mov r9,QWORD PTR[8+rcx]
- mov QWORD PTR[16+rdi],r10
- mov r10,QWORD PTR[16+rcx]
- mov QWORD PTR[24+rdi],r11
- mov r11,QWORD PTR[24+rcx]
- mov QWORD PTR[32+rdi],r12
- mov r12,QWORD PTR[32+rcx]
- mov QWORD PTR[40+rdi],r13
- mov r13,QWORD PTR[40+rcx]
- mov QWORD PTR[48+rdi],r14
- mov r14,QWORD PTR[48+rcx]
- mov QWORD PTR[56+rdi],r15
- mov r15,QWORD PTR[56+rcx]
- mov rdi,rcx
- jmp $L$sqrx8x_outer_loop
- ALIGN 32
- $L$sqrx8x_outer_break::
- mov QWORD PTR[72+rdi],r9
- DB 102,72,15,126,217
- mov QWORD PTR[80+rdi],r10
- mov QWORD PTR[88+rdi],r11
- mov QWORD PTR[96+rdi],r12
- mov QWORD PTR[104+rdi],r13
- mov QWORD PTR[112+rdi],r14
- lea rdi,QWORD PTR[((48+8))+rsp]
- mov rdx,QWORD PTR[rcx*1+rsi]
- mov r11,QWORD PTR[8+rdi]
- xor r10,r10
- mov r9,QWORD PTR[((0+8))+rsp]
- adox r11,r11
- mov r12,QWORD PTR[16+rdi]
- mov r13,QWORD PTR[24+rdi]
- ALIGN 32
- $L$sqrx4x_shift_n_add::
- mulx rbx,rax,rdx
- adox r12,r12
- adcx rax,r10
- DB 048h,08bh,094h,00eh,008h,000h,000h,000h
- DB 04ch,08bh,097h,020h,000h,000h,000h
- adox r13,r13
- adcx rbx,r11
- mov r11,QWORD PTR[40+rdi]
- mov QWORD PTR[rdi],rax
- mov QWORD PTR[8+rdi],rbx
- mulx rbx,rax,rdx
- adox r10,r10
- adcx rax,r12
- mov rdx,QWORD PTR[16+rcx*1+rsi]
- mov r12,QWORD PTR[48+rdi]
- adox r11,r11
- adcx rbx,r13
- mov r13,QWORD PTR[56+rdi]
- mov QWORD PTR[16+rdi],rax
- mov QWORD PTR[24+rdi],rbx
- mulx rbx,rax,rdx
- adox r12,r12
- adcx rax,r10
- mov rdx,QWORD PTR[24+rcx*1+rsi]
- lea rcx,QWORD PTR[32+rcx]
- mov r10,QWORD PTR[64+rdi]
- adox r13,r13
- adcx rbx,r11
- mov r11,QWORD PTR[72+rdi]
- mov QWORD PTR[32+rdi],rax
- mov QWORD PTR[40+rdi],rbx
- mulx rbx,rax,rdx
- adox r10,r10
- adcx rax,r12
- jrcxz $L$sqrx4x_shift_n_add_break
- DB 048h,08bh,094h,00eh,000h,000h,000h,000h
- adox r11,r11
- adcx rbx,r13
- mov r12,QWORD PTR[80+rdi]
- mov r13,QWORD PTR[88+rdi]
- mov QWORD PTR[48+rdi],rax
- mov QWORD PTR[56+rdi],rbx
- lea rdi,QWORD PTR[64+rdi]
- nop
- jmp $L$sqrx4x_shift_n_add
- ALIGN 32
- $L$sqrx4x_shift_n_add_break::
- adcx rbx,r13
- mov QWORD PTR[48+rdi],rax
- mov QWORD PTR[56+rdi],rbx
- lea rdi,QWORD PTR[64+rdi]
- DB 102,72,15,126,213
- __bn_sqrx8x_reduction::
- xor eax,eax
- mov rbx,QWORD PTR[((32+8))+rsp]
- mov rdx,QWORD PTR[((48+8))+rsp]
- lea rcx,QWORD PTR[((-64))+r9*1+rbp]
- mov QWORD PTR[((0+8))+rsp],rcx
- mov QWORD PTR[((8+8))+rsp],rdi
- lea rdi,QWORD PTR[((48+8))+rsp]
- jmp $L$sqrx8x_reduction_loop
- ALIGN 32
- $L$sqrx8x_reduction_loop::
- mov r9,QWORD PTR[8+rdi]
- mov r10,QWORD PTR[16+rdi]
- mov r11,QWORD PTR[24+rdi]
- mov r12,QWORD PTR[32+rdi]
- mov r8,rdx
- imul rdx,rbx
- mov r13,QWORD PTR[40+rdi]
- mov r14,QWORD PTR[48+rdi]
- mov r15,QWORD PTR[56+rdi]
- mov QWORD PTR[((24+8))+rsp],rax
- lea rdi,QWORD PTR[64+rdi]
- xor rsi,rsi
- mov rcx,-8
- jmp $L$sqrx8x_reduce
- ALIGN 32
- $L$sqrx8x_reduce::
- mov rbx,r8
- mulx r8,rax,QWORD PTR[rbp]
- adcx rax,rbx
- adox r8,r9
- mulx r9,rbx,QWORD PTR[8+rbp]
- adcx r8,rbx
- adox r9,r10
- mulx r10,rbx,QWORD PTR[16+rbp]
- adcx r9,rbx
- adox r10,r11
- mulx r11,rbx,QWORD PTR[24+rbp]
- adcx r10,rbx
- adox r11,r12
- DB 0c4h,062h,0e3h,0f6h,0a5h,020h,000h,000h,000h
- mov rax,rdx
- mov rdx,r8
- adcx r11,rbx
- adox r12,r13
- mulx rdx,rbx,QWORD PTR[((32+8))+rsp]
- mov rdx,rax
- mov QWORD PTR[((64+48+8))+rcx*8+rsp],rax
- mulx r13,rax,QWORD PTR[40+rbp]
- adcx r12,rax
- adox r13,r14
- mulx r14,rax,QWORD PTR[48+rbp]
- adcx r13,rax
- adox r14,r15
- mulx r15,rax,QWORD PTR[56+rbp]
- mov rdx,rbx
- adcx r14,rax
- adox r15,rsi
- adcx r15,rsi
- DB 067h,067h,067h
- inc rcx
- jnz $L$sqrx8x_reduce
- mov rax,rsi
- cmp rbp,QWORD PTR[((0+8))+rsp]
- jae $L$sqrx8x_no_tail
- mov rdx,QWORD PTR[((48+8))+rsp]
- add r8,QWORD PTR[rdi]
- lea rbp,QWORD PTR[64+rbp]
- mov rcx,-8
- adcx r9,QWORD PTR[8+rdi]
- adcx r10,QWORD PTR[16+rdi]
- adc r11,QWORD PTR[24+rdi]
- adc r12,QWORD PTR[32+rdi]
- adc r13,QWORD PTR[40+rdi]
- adc r14,QWORD PTR[48+rdi]
- adc r15,QWORD PTR[56+rdi]
- lea rdi,QWORD PTR[64+rdi]
- sbb rax,rax
- xor rsi,rsi
- mov QWORD PTR[((16+8))+rsp],rax
- jmp $L$sqrx8x_tail
- ALIGN 32
- $L$sqrx8x_tail::
- mov rbx,r8
- mulx r8,rax,QWORD PTR[rbp]
- adcx rbx,rax
- adox r8,r9
- mulx r9,rax,QWORD PTR[8+rbp]
- adcx r8,rax
- adox r9,r10
- mulx r10,rax,QWORD PTR[16+rbp]
- adcx r9,rax
- adox r10,r11
- mulx r11,rax,QWORD PTR[24+rbp]
- adcx r10,rax
- adox r11,r12
- DB 0c4h,062h,0fbh,0f6h,0a5h,020h,000h,000h,000h
- adcx r11,rax
- adox r12,r13
- mulx r13,rax,QWORD PTR[40+rbp]
- adcx r12,rax
- adox r13,r14
- mulx r14,rax,QWORD PTR[48+rbp]
- adcx r13,rax
- adox r14,r15
- mulx r15,rax,QWORD PTR[56+rbp]
- mov rdx,QWORD PTR[((72+48+8))+rcx*8+rsp]
- adcx r14,rax
- adox r15,rsi
- mov QWORD PTR[rcx*8+rdi],rbx
- mov rbx,r8
- adcx r15,rsi
- inc rcx
- jnz $L$sqrx8x_tail
- cmp rbp,QWORD PTR[((0+8))+rsp]
- jae $L$sqrx8x_tail_done
- sub rsi,QWORD PTR[((16+8))+rsp]
- mov rdx,QWORD PTR[((48+8))+rsp]
- lea rbp,QWORD PTR[64+rbp]
- adc r8,QWORD PTR[rdi]
- adc r9,QWORD PTR[8+rdi]
- adc r10,QWORD PTR[16+rdi]
- adc r11,QWORD PTR[24+rdi]
- adc r12,QWORD PTR[32+rdi]
- adc r13,QWORD PTR[40+rdi]
- adc r14,QWORD PTR[48+rdi]
- adc r15,QWORD PTR[56+rdi]
- lea rdi,QWORD PTR[64+rdi]
- sbb rax,rax
- sub rcx,8
- xor rsi,rsi
- mov QWORD PTR[((16+8))+rsp],rax
- jmp $L$sqrx8x_tail
- ALIGN 32
- $L$sqrx8x_tail_done::
- xor rax,rax
- add r8,QWORD PTR[((24+8))+rsp]
- adc r9,0
- adc r10,0
- adc r11,0
- adc r12,0
- adc r13,0
- adc r14,0
- adc r15,0
- adc rax,0
- sub rsi,QWORD PTR[((16+8))+rsp]
- $L$sqrx8x_no_tail::
- adc r8,QWORD PTR[rdi]
- DB 102,72,15,126,217
- adc r9,QWORD PTR[8+rdi]
- mov rsi,QWORD PTR[56+rbp]
- DB 102,72,15,126,213
- adc r10,QWORD PTR[16+rdi]
- adc r11,QWORD PTR[24+rdi]
- adc r12,QWORD PTR[32+rdi]
- adc r13,QWORD PTR[40+rdi]
- adc r14,QWORD PTR[48+rdi]
- adc r15,QWORD PTR[56+rdi]
- adc rax,0
- mov rbx,QWORD PTR[((32+8))+rsp]
- mov rdx,QWORD PTR[64+rcx*1+rdi]
- mov QWORD PTR[rdi],r8
- lea r8,QWORD PTR[64+rdi]
- mov QWORD PTR[8+rdi],r9
- mov QWORD PTR[16+rdi],r10
- mov QWORD PTR[24+rdi],r11
- mov QWORD PTR[32+rdi],r12
- mov QWORD PTR[40+rdi],r13
- mov QWORD PTR[48+rdi],r14
- mov QWORD PTR[56+rdi],r15
- lea rdi,QWORD PTR[64+rcx*1+rdi]
- cmp r8,QWORD PTR[((8+8))+rsp]
- jb $L$sqrx8x_reduction_loop
- DB 0F3h,0C3h ;repret
- bn_sqrx8x_internal ENDP
- ALIGN 32
- __bn_postx4x_internal::
- mov r12,QWORD PTR[rbp]
- mov r10,rcx
- mov r9,rcx
- neg rax
- sar rcx,3+2
- DB 102,72,15,126,202
- DB 102,72,15,126,206
- dec r12
- mov r13,QWORD PTR[8+rbp]
- xor r8,r8
- mov r14,QWORD PTR[16+rbp]
- mov r15,QWORD PTR[24+rbp]
- jmp $L$sqrx4x_sub_entry
- ALIGN 16
- $L$sqrx4x_sub::
- mov r12,QWORD PTR[rbp]
- mov r13,QWORD PTR[8+rbp]
- mov r14,QWORD PTR[16+rbp]
- mov r15,QWORD PTR[24+rbp]
- $L$sqrx4x_sub_entry::
- andn r12,r12,rax
- lea rbp,QWORD PTR[32+rbp]
- andn r13,r13,rax
- andn r14,r14,rax
- andn r15,r15,rax
- neg r8
- adc r12,QWORD PTR[rdi]
- adc r13,QWORD PTR[8+rdi]
- adc r14,QWORD PTR[16+rdi]
- adc r15,QWORD PTR[24+rdi]
- mov QWORD PTR[rdx],r12
- lea rdi,QWORD PTR[32+rdi]
- mov QWORD PTR[8+rdx],r13
- sbb r8,r8
- mov QWORD PTR[16+rdx],r14
- mov QWORD PTR[24+rdx],r15
- lea rdx,QWORD PTR[32+rdx]
- inc rcx
- jnz $L$sqrx4x_sub
- neg r9
- DB 0F3h,0C3h ;repret
- PUBLIC bn_get_bits5
- ALIGN 16
- bn_get_bits5 PROC PUBLIC
- lea r10,QWORD PTR[rcx]
- lea r11,QWORD PTR[1+rcx]
- mov ecx,edx
- shr edx,4
- and ecx,15
- lea eax,DWORD PTR[((-8))+rcx]
- cmp ecx,11
- cmova r10,r11
- cmova ecx,eax
- movzx eax,WORD PTR[rdx*2+r10]
- shr eax,cl
- and eax,31
- DB 0F3h,0C3h ;repret
- bn_get_bits5 ENDP
- PUBLIC bn_scatter5
- ALIGN 16
- bn_scatter5 PROC PUBLIC
- cmp edx,0
- jz $L$scatter_epilogue
- lea r8,QWORD PTR[r9*8+r8]
- $L$scatter::
- mov rax,QWORD PTR[rcx]
- lea rcx,QWORD PTR[8+rcx]
- mov QWORD PTR[r8],rax
- lea r8,QWORD PTR[256+r8]
- sub edx,1
- jnz $L$scatter
- $L$scatter_epilogue::
- DB 0F3h,0C3h ;repret
- bn_scatter5 ENDP
- PUBLIC bn_gather5
- ALIGN 32
- bn_gather5 PROC PUBLIC
- $L$SEH_begin_bn_gather5::
- DB 04ch,08dh,014h,024h
- DB 048h,081h,0ech,008h,001h,000h,000h
- lea rax,QWORD PTR[$L$inc]
- and rsp,-16
- movd xmm5,r9d
- movdqa xmm0,XMMWORD PTR[rax]
- movdqa xmm1,XMMWORD PTR[16+rax]
- lea r11,QWORD PTR[128+r8]
- lea rax,QWORD PTR[128+rsp]
- pshufd xmm5,xmm5,0
- movdqa xmm4,xmm1
- movdqa xmm2,xmm1
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[(-128)+rax],xmm0
- movdqa xmm0,xmm4
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[(-112)+rax],xmm1
- movdqa xmm1,xmm4
- paddd xmm0,xmm3
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[(-96)+rax],xmm2
- movdqa xmm2,xmm4
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa XMMWORD PTR[(-80)+rax],xmm3
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[(-64)+rax],xmm0
- movdqa xmm0,xmm4
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[(-48)+rax],xmm1
- movdqa xmm1,xmm4
- paddd xmm0,xmm3
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[(-32)+rax],xmm2
- movdqa xmm2,xmm4
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa XMMWORD PTR[(-16)+rax],xmm3
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[rax],xmm0
- movdqa xmm0,xmm4
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[16+rax],xmm1
- movdqa xmm1,xmm4
- paddd xmm0,xmm3
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[32+rax],xmm2
- movdqa xmm2,xmm4
- paddd xmm1,xmm0
- pcmpeqd xmm0,xmm5
- movdqa XMMWORD PTR[48+rax],xmm3
- movdqa xmm3,xmm4
- paddd xmm2,xmm1
- pcmpeqd xmm1,xmm5
- movdqa XMMWORD PTR[64+rax],xmm0
- movdqa xmm0,xmm4
- paddd xmm3,xmm2
- pcmpeqd xmm2,xmm5
- movdqa XMMWORD PTR[80+rax],xmm1
- movdqa xmm1,xmm4
- paddd xmm0,xmm3
- pcmpeqd xmm3,xmm5
- movdqa XMMWORD PTR[96+rax],xmm2
- movdqa xmm2,xmm4
- movdqa XMMWORD PTR[112+rax],xmm3
- jmp $L$gather
- ALIGN 32
- $L$gather::
- pxor xmm4,xmm4
- pxor xmm5,xmm5
- movdqa xmm0,XMMWORD PTR[((-128))+r11]
- movdqa xmm1,XMMWORD PTR[((-112))+r11]
- movdqa xmm2,XMMWORD PTR[((-96))+r11]
- pand xmm0,XMMWORD PTR[((-128))+rax]
- movdqa xmm3,XMMWORD PTR[((-80))+r11]
- pand xmm1,XMMWORD PTR[((-112))+rax]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[((-96))+rax]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[((-80))+rax]
- por xmm4,xmm2
- por xmm5,xmm3
- movdqa xmm0,XMMWORD PTR[((-64))+r11]
- movdqa xmm1,XMMWORD PTR[((-48))+r11]
- movdqa xmm2,XMMWORD PTR[((-32))+r11]
- pand xmm0,XMMWORD PTR[((-64))+rax]
- movdqa xmm3,XMMWORD PTR[((-16))+r11]
- pand xmm1,XMMWORD PTR[((-48))+rax]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[((-32))+rax]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[((-16))+rax]
- por xmm4,xmm2
- por xmm5,xmm3
- movdqa xmm0,XMMWORD PTR[r11]
- movdqa xmm1,XMMWORD PTR[16+r11]
- movdqa xmm2,XMMWORD PTR[32+r11]
- pand xmm0,XMMWORD PTR[rax]
- movdqa xmm3,XMMWORD PTR[48+r11]
- pand xmm1,XMMWORD PTR[16+rax]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[32+rax]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[48+rax]
- por xmm4,xmm2
- por xmm5,xmm3
- movdqa xmm0,XMMWORD PTR[64+r11]
- movdqa xmm1,XMMWORD PTR[80+r11]
- movdqa xmm2,XMMWORD PTR[96+r11]
- pand xmm0,XMMWORD PTR[64+rax]
- movdqa xmm3,XMMWORD PTR[112+r11]
- pand xmm1,XMMWORD PTR[80+rax]
- por xmm4,xmm0
- pand xmm2,XMMWORD PTR[96+rax]
- por xmm5,xmm1
- pand xmm3,XMMWORD PTR[112+rax]
- por xmm4,xmm2
- por xmm5,xmm3
- por xmm4,xmm5
- lea r11,QWORD PTR[256+r11]
- pshufd xmm0,xmm4,04eh
- por xmm0,xmm4
- movq QWORD PTR[rcx],xmm0
- lea rcx,QWORD PTR[8+rcx]
- sub edx,1
- jnz $L$gather
- lea rsp,QWORD PTR[r10]
- DB 0F3h,0C3h ;repret
- $L$SEH_end_bn_gather5::
- bn_gather5 ENDP
- ALIGN 64
- $L$inc::
- DD 0,0,1,1
- DD 2,2,2,2
- DB 77,111,110,116,103,111,109,101,114,121,32,77,117,108,116,105
- DB 112,108,105,99,97,116,105,111,110,32,119,105,116,104,32,115
- DB 99,97,116,116,101,114,47,103,97,116,104,101,114,32,102,111
- DB 114,32,120,56,54,95,54,52,44,32,67,82,89,80,84,79
- DB 71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111
- DB 112,101,110,115,115,108,46,111,114,103,62,0
- EXTERN __imp_RtlVirtualUnwind:NEAR
- ALIGN 16
- mul_handler PROC PRIVATE
- push rsi
- push rdi
- push rbx
- push rbp
- push r12
- push r13
- push r14
- push r15
- pushfq
- sub rsp,64
- mov rax,QWORD PTR[120+r8]
- mov rbx,QWORD PTR[248+r8]
- mov rsi,QWORD PTR[8+r9]
- mov r11,QWORD PTR[56+r9]
- mov r10d,DWORD PTR[r11]
- lea r10,QWORD PTR[r10*1+rsi]
- cmp rbx,r10
- jb $L$common_seh_tail
- mov r10d,DWORD PTR[4+r11]
- lea r10,QWORD PTR[r10*1+rsi]
- cmp rbx,r10
- jb $L$common_pop_regs
- mov rax,QWORD PTR[152+r8]
- mov r10d,DWORD PTR[8+r11]
- lea r10,QWORD PTR[r10*1+rsi]
- cmp rbx,r10
- jae $L$common_seh_tail
- lea r10,QWORD PTR[$L$mul_epilogue]
- cmp rbx,r10
- ja $L$body_40
- mov r10,QWORD PTR[192+r8]
- mov rax,QWORD PTR[8+r10*8+rax]
- jmp $L$common_pop_regs
- $L$body_40::
- mov rax,QWORD PTR[40+rax]
- $L$common_pop_regs::
- mov rbx,QWORD PTR[((-8))+rax]
- mov rbp,QWORD PTR[((-16))+rax]
- mov r12,QWORD PTR[((-24))+rax]
- mov r13,QWORD PTR[((-32))+rax]
- mov r14,QWORD PTR[((-40))+rax]
- mov r15,QWORD PTR[((-48))+rax]
- mov QWORD PTR[144+r8],rbx
- mov QWORD PTR[160+r8],rbp
- mov QWORD PTR[216+r8],r12
- mov QWORD PTR[224+r8],r13
- mov QWORD PTR[232+r8],r14
- mov QWORD PTR[240+r8],r15
- $L$common_seh_tail::
- mov rdi,QWORD PTR[8+rax]
- mov rsi,QWORD PTR[16+rax]
- mov QWORD PTR[152+r8],rax
- mov QWORD PTR[168+r8],rsi
- mov QWORD PTR[176+r8],rdi
- mov rdi,QWORD PTR[40+r9]
- mov rsi,r8
- mov ecx,154
- DD 0a548f3fch
- mov rsi,r9
- xor rcx,rcx
- mov rdx,QWORD PTR[8+rsi]
- mov r8,QWORD PTR[rsi]
- mov r9,QWORD PTR[16+rsi]
- mov r10,QWORD PTR[40+rsi]
- lea r11,QWORD PTR[56+rsi]
- lea r12,QWORD PTR[24+rsi]
- mov QWORD PTR[32+rsp],r10
- mov QWORD PTR[40+rsp],r11
- mov QWORD PTR[48+rsp],r12
- mov QWORD PTR[56+rsp],rcx
- call QWORD PTR[__imp_RtlVirtualUnwind]
- mov eax,1
- add rsp,64
- popfq
- pop r15
- pop r14
- pop r13
- pop r12
- pop rbp
- pop rbx
- pop rdi
- pop rsi
- DB 0F3h,0C3h ;repret
- mul_handler ENDP
- .text$ ENDS
- .pdata SEGMENT READONLY ALIGN(4)
- ALIGN 4
- DD imagerel $L$SEH_begin_bn_mul_mont_gather5
- DD imagerel $L$SEH_end_bn_mul_mont_gather5
- DD imagerel $L$SEH_info_bn_mul_mont_gather5
- DD imagerel $L$SEH_begin_bn_mul4x_mont_gather5
- DD imagerel $L$SEH_end_bn_mul4x_mont_gather5
- DD imagerel $L$SEH_info_bn_mul4x_mont_gather5
- DD imagerel $L$SEH_begin_bn_power5
- DD imagerel $L$SEH_end_bn_power5
- DD imagerel $L$SEH_info_bn_power5
- DD imagerel $L$SEH_begin_bn_from_mont8x
- DD imagerel $L$SEH_end_bn_from_mont8x
- DD imagerel $L$SEH_info_bn_from_mont8x
- DD imagerel $L$SEH_begin_bn_mulx4x_mont_gather5
- DD imagerel $L$SEH_end_bn_mulx4x_mont_gather5
- DD imagerel $L$SEH_info_bn_mulx4x_mont_gather5
- DD imagerel $L$SEH_begin_bn_powerx5
- DD imagerel $L$SEH_end_bn_powerx5
- DD imagerel $L$SEH_info_bn_powerx5
- DD imagerel $L$SEH_begin_bn_gather5
- DD imagerel $L$SEH_end_bn_gather5
- DD imagerel $L$SEH_info_bn_gather5
- .pdata ENDS
- .xdata SEGMENT READONLY ALIGN(8)
- ALIGN 8
- $L$SEH_info_bn_mul_mont_gather5::
- DB 9,0,0,0
- DD imagerel mul_handler
- DD imagerel $L$mul_body,imagerel $L$mul_body,imagerel $L$mul_epilogue
- ALIGN 8
- $L$SEH_info_bn_mul4x_mont_gather5::
- DB 9,0,0,0
- DD imagerel mul_handler
- DD imagerel $L$mul4x_prologue,imagerel $L$mul4x_body,imagerel $L$mul4x_epilogue
- ALIGN 8
- $L$SEH_info_bn_power5::
- DB 9,0,0,0
- DD imagerel mul_handler
- DD imagerel $L$power5_prologue,imagerel $L$power5_body,imagerel $L$power5_epilogue
- ALIGN 8
- $L$SEH_info_bn_from_mont8x::
- DB 9,0,0,0
- DD imagerel mul_handler
- DD imagerel $L$from_prologue,imagerel $L$from_body,imagerel $L$from_epilogue
- ALIGN 8
- $L$SEH_info_bn_mulx4x_mont_gather5::
- DB 9,0,0,0
- DD imagerel mul_handler
- DD imagerel $L$mulx4x_prologue,imagerel $L$mulx4x_body,imagerel $L$mulx4x_epilogue
- ALIGN 8
- $L$SEH_info_bn_powerx5::
- DB 9,0,0,0
- DD imagerel mul_handler
- DD imagerel $L$powerx5_prologue,imagerel $L$powerx5_body,imagerel $L$powerx5_epilogue
- ALIGN 8
- $L$SEH_info_bn_gather5::
- DB 001h,00bh,003h,00ah
- DB 00bh,001h,021h,000h
- DB 004h,0a3h,000h,000h
- ALIGN 8
- .xdata ENDS
- END
|