ge25519_pnielsadd_p1p1.S 88 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662
  1. # qhasm: int64 rp
  2. # qhasm: int64 pp
  3. # qhasm: int64 qp
  4. # qhasm: input rp
  5. # qhasm: input pp
  6. # qhasm: input qp
  7. # qhasm: int64 caller1
  8. # qhasm: int64 caller2
  9. # qhasm: int64 caller3
  10. # qhasm: int64 caller4
  11. # qhasm: int64 caller5
  12. # qhasm: int64 caller6
  13. # qhasm: int64 caller7
  14. # qhasm: caller caller1
  15. # qhasm: caller caller2
  16. # qhasm: caller caller3
  17. # qhasm: caller caller4
  18. # qhasm: caller caller5
  19. # qhasm: caller caller6
  20. # qhasm: caller caller7
  21. # qhasm: stack64 caller1_stack
  22. # qhasm: stack64 caller2_stack
  23. # qhasm: stack64 caller3_stack
  24. # qhasm: stack64 caller4_stack
  25. # qhasm: stack64 caller5_stack
  26. # qhasm: stack64 caller6_stack
  27. # qhasm: stack64 caller7_stack
  28. # qhasm: int64 a0
  29. # qhasm: int64 a1
  30. # qhasm: int64 a2
  31. # qhasm: int64 a3
  32. # qhasm: stack64 a0_stack
  33. # qhasm: stack64 a1_stack
  34. # qhasm: stack64 a2_stack
  35. # qhasm: stack64 a3_stack
  36. # qhasm: int64 b0
  37. # qhasm: int64 b1
  38. # qhasm: int64 b2
  39. # qhasm: int64 b3
  40. # qhasm: stack64 b0_stack
  41. # qhasm: stack64 b1_stack
  42. # qhasm: stack64 b2_stack
  43. # qhasm: stack64 b3_stack
  44. # qhasm: int64 c0
  45. # qhasm: int64 c1
  46. # qhasm: int64 c2
  47. # qhasm: int64 c3
  48. # qhasm: stack64 c0_stack
  49. # qhasm: stack64 c1_stack
  50. # qhasm: stack64 c2_stack
  51. # qhasm: stack64 c3_stack
  52. # qhasm: int64 d0
  53. # qhasm: int64 d1
  54. # qhasm: int64 d2
  55. # qhasm: int64 d3
  56. # qhasm: stack64 d0_stack
  57. # qhasm: stack64 d1_stack
  58. # qhasm: stack64 d2_stack
  59. # qhasm: stack64 d3_stack
  60. # qhasm: int64 t10
  61. # qhasm: int64 t11
  62. # qhasm: int64 t12
  63. # qhasm: int64 t13
  64. # qhasm: stack64 t10_stack
  65. # qhasm: stack64 t11_stack
  66. # qhasm: stack64 t12_stack
  67. # qhasm: stack64 t13_stack
  68. # qhasm: int64 t20
  69. # qhasm: int64 t21
  70. # qhasm: int64 t22
  71. # qhasm: int64 t23
  72. # qhasm: stack64 t20_stack
  73. # qhasm: stack64 t21_stack
  74. # qhasm: stack64 t22_stack
  75. # qhasm: stack64 t23_stack
  76. # qhasm: int64 rx0
  77. # qhasm: int64 rx1
  78. # qhasm: int64 rx2
  79. # qhasm: int64 rx3
  80. # qhasm: int64 ry0
  81. # qhasm: int64 ry1
  82. # qhasm: int64 ry2
  83. # qhasm: int64 ry3
  84. # qhasm: int64 rz0
  85. # qhasm: int64 rz1
  86. # qhasm: int64 rz2
  87. # qhasm: int64 rz3
  88. # qhasm: int64 rt0
  89. # qhasm: int64 rt1
  90. # qhasm: int64 rt2
  91. # qhasm: int64 rt3
  92. # qhasm: int64 x0
  93. # qhasm: int64 x1
  94. # qhasm: int64 x2
  95. # qhasm: int64 x3
  96. # qhasm: int64 mulr4
  97. # qhasm: int64 mulr5
  98. # qhasm: int64 mulr6
  99. # qhasm: int64 mulr7
  100. # qhasm: int64 mulr8
  101. # qhasm: int64 mulrax
  102. # qhasm: int64 mulrdx
  103. # qhasm: int64 mulx0
  104. # qhasm: int64 mulx1
  105. # qhasm: int64 mulx2
  106. # qhasm: int64 mulx3
  107. # qhasm: int64 mulc
  108. # qhasm: int64 mulzero
  109. # qhasm: int64 muli38
  110. # qhasm: int64 addt0
  111. # qhasm: int64 addt1
  112. # qhasm: int64 subt0
  113. # qhasm: int64 subt1
  114. # qhasm: enter CRYPTO_NAMESPACE(ge25519_pnielsadd_p1p1)
  115. .text
  116. .p2align 5
  117. .globl _CRYPTO_NAMESPACE(ge25519_pnielsadd_p1p1)
  118. .globl CRYPTO_NAMESPACE(ge25519_pnielsadd_p1p1)
  119. _CRYPTO_NAMESPACE(ge25519_pnielsadd_p1p1):
  120. CRYPTO_NAMESPACE(ge25519_pnielsadd_p1p1):
  121. mov %rsp,%r11
  122. and $31,%r11
  123. add $128,%r11
  124. sub %r11,%rsp
  125. # qhasm: caller1_stack = caller1
  126. # asm 1: movq <caller1=int64#9,>caller1_stack=stack64#1
  127. # asm 2: movq <caller1=%r11,>caller1_stack=0(%rsp)
  128. movq %r11,0(%rsp)
  129. # qhasm: caller2_stack = caller2
  130. # asm 1: movq <caller2=int64#10,>caller2_stack=stack64#2
  131. # asm 2: movq <caller2=%r12,>caller2_stack=8(%rsp)
  132. movq %r12,8(%rsp)
  133. # qhasm: caller3_stack = caller3
  134. # asm 1: movq <caller3=int64#11,>caller3_stack=stack64#3
  135. # asm 2: movq <caller3=%r13,>caller3_stack=16(%rsp)
  136. movq %r13,16(%rsp)
  137. # qhasm: caller4_stack = caller4
  138. # asm 1: movq <caller4=int64#12,>caller4_stack=stack64#4
  139. # asm 2: movq <caller4=%r14,>caller4_stack=24(%rsp)
  140. movq %r14,24(%rsp)
  141. # qhasm: caller5_stack = caller5
  142. # asm 1: movq <caller5=int64#13,>caller5_stack=stack64#5
  143. # asm 2: movq <caller5=%r15,>caller5_stack=32(%rsp)
  144. movq %r15,32(%rsp)
  145. # qhasm: caller6_stack = caller6
  146. # asm 1: movq <caller6=int64#14,>caller6_stack=stack64#6
  147. # asm 2: movq <caller6=%rbx,>caller6_stack=40(%rsp)
  148. movq %rbx,40(%rsp)
  149. # qhasm: caller7_stack = caller7
  150. # asm 1: movq <caller7=int64#15,>caller7_stack=stack64#7
  151. # asm 2: movq <caller7=%rbp,>caller7_stack=48(%rsp)
  152. movq %rbp,48(%rsp)
  153. # qhasm: qp = qp
  154. # asm 1: mov <qp=int64#3,>qp=int64#4
  155. # asm 2: mov <qp=%rdx,>qp=%rcx
  156. mov %rdx,%rcx
  157. # qhasm: a0 = *(uint64 *)(pp + 32)
  158. # asm 1: movq 32(<pp=int64#2),>a0=int64#3
  159. # asm 2: movq 32(<pp=%rsi),>a0=%rdx
  160. movq 32(%rsi),%rdx
  161. # qhasm: a1 = *(uint64 *)(pp + 40)
  162. # asm 1: movq 40(<pp=int64#2),>a1=int64#5
  163. # asm 2: movq 40(<pp=%rsi),>a1=%r8
  164. movq 40(%rsi),%r8
  165. # qhasm: a2 = *(uint64 *)(pp + 48)
  166. # asm 1: movq 48(<pp=int64#2),>a2=int64#6
  167. # asm 2: movq 48(<pp=%rsi),>a2=%r9
  168. movq 48(%rsi),%r9
  169. # qhasm: a3 = *(uint64 *)(pp + 56)
  170. # asm 1: movq 56(<pp=int64#2),>a3=int64#7
  171. # asm 2: movq 56(<pp=%rsi),>a3=%rax
  172. movq 56(%rsi),%rax
  173. # qhasm: b0 = a0
  174. # asm 1: mov <a0=int64#3,>b0=int64#8
  175. # asm 2: mov <a0=%rdx,>b0=%r10
  176. mov %rdx,%r10
  177. # qhasm: b1 = a1
  178. # asm 1: mov <a1=int64#5,>b1=int64#9
  179. # asm 2: mov <a1=%r8,>b1=%r11
  180. mov %r8,%r11
  181. # qhasm: b2 = a2
  182. # asm 1: mov <a2=int64#6,>b2=int64#10
  183. # asm 2: mov <a2=%r9,>b2=%r12
  184. mov %r9,%r12
  185. # qhasm: b3 = a3
  186. # asm 1: mov <a3=int64#7,>b3=int64#11
  187. # asm 2: mov <a3=%rax,>b3=%r13
  188. mov %rax,%r13
  189. # qhasm: carry? a0 -= *(uint64 *)(pp + 0)
  190. # asm 1: subq 0(<pp=int64#2),<a0=int64#3
  191. # asm 2: subq 0(<pp=%rsi),<a0=%rdx
  192. subq 0(%rsi),%rdx
  193. # qhasm: carry? a1 -= *(uint64 *)(pp + 8) - carry
  194. # asm 1: sbbq 8(<pp=int64#2),<a1=int64#5
  195. # asm 2: sbbq 8(<pp=%rsi),<a1=%r8
  196. sbbq 8(%rsi),%r8
  197. # qhasm: carry? a2 -= *(uint64 *)(pp + 16) - carry
  198. # asm 1: sbbq 16(<pp=int64#2),<a2=int64#6
  199. # asm 2: sbbq 16(<pp=%rsi),<a2=%r9
  200. sbbq 16(%rsi),%r9
  201. # qhasm: carry? a3 -= *(uint64 *)(pp + 24) - carry
  202. # asm 1: sbbq 24(<pp=int64#2),<a3=int64#7
  203. # asm 2: sbbq 24(<pp=%rsi),<a3=%rax
  204. sbbq 24(%rsi),%rax
  205. # qhasm: subt0 = 0
  206. # asm 1: mov $0,>subt0=int64#12
  207. # asm 2: mov $0,>subt0=%r14
  208. mov $0,%r14
  209. # qhasm: subt1 = 38
  210. # asm 1: mov $38,>subt1=int64#13
  211. # asm 2: mov $38,>subt1=%r15
  212. mov $38,%r15
  213. # qhasm: subt1 = subt0 if !carry
  214. # asm 1: cmovae <subt0=int64#12,<subt1=int64#13
  215. # asm 2: cmovae <subt0=%r14,<subt1=%r15
  216. cmovae %r14,%r15
  217. # qhasm: carry? a0 -= subt1
  218. # asm 1: sub <subt1=int64#13,<a0=int64#3
  219. # asm 2: sub <subt1=%r15,<a0=%rdx
  220. sub %r15,%rdx
  221. # qhasm: carry? a1 -= subt0 - carry
  222. # asm 1: sbb <subt0=int64#12,<a1=int64#5
  223. # asm 2: sbb <subt0=%r14,<a1=%r8
  224. sbb %r14,%r8
  225. # qhasm: carry? a2 -= subt0 - carry
  226. # asm 1: sbb <subt0=int64#12,<a2=int64#6
  227. # asm 2: sbb <subt0=%r14,<a2=%r9
  228. sbb %r14,%r9
  229. # qhasm: carry? a3 -= subt0 - carry
  230. # asm 1: sbb <subt0=int64#12,<a3=int64#7
  231. # asm 2: sbb <subt0=%r14,<a3=%rax
  232. sbb %r14,%rax
  233. # qhasm: subt0 = subt1 if carry
  234. # asm 1: cmovc <subt1=int64#13,<subt0=int64#12
  235. # asm 2: cmovc <subt1=%r15,<subt0=%r14
  236. cmovc %r15,%r14
  237. # qhasm: a0 -= subt0
  238. # asm 1: sub <subt0=int64#12,<a0=int64#3
  239. # asm 2: sub <subt0=%r14,<a0=%rdx
  240. sub %r14,%rdx
  241. # qhasm: carry? b0 += *(uint64 *)(pp + 0)
  242. # asm 1: addq 0(<pp=int64#2),<b0=int64#8
  243. # asm 2: addq 0(<pp=%rsi),<b0=%r10
  244. addq 0(%rsi),%r10
  245. # qhasm: carry? b1 += *(uint64 *)(pp + 8) + carry
  246. # asm 1: adcq 8(<pp=int64#2),<b1=int64#9
  247. # asm 2: adcq 8(<pp=%rsi),<b1=%r11
  248. adcq 8(%rsi),%r11
  249. # qhasm: carry? b2 += *(uint64 *)(pp + 16) + carry
  250. # asm 1: adcq 16(<pp=int64#2),<b2=int64#10
  251. # asm 2: adcq 16(<pp=%rsi),<b2=%r12
  252. adcq 16(%rsi),%r12
  253. # qhasm: carry? b3 += *(uint64 *)(pp + 24) + carry
  254. # asm 1: adcq 24(<pp=int64#2),<b3=int64#11
  255. # asm 2: adcq 24(<pp=%rsi),<b3=%r13
  256. adcq 24(%rsi),%r13
  257. # qhasm: addt0 = 0
  258. # asm 1: mov $0,>addt0=int64#12
  259. # asm 2: mov $0,>addt0=%r14
  260. mov $0,%r14
  261. # qhasm: addt1 = 38
  262. # asm 1: mov $38,>addt1=int64#13
  263. # asm 2: mov $38,>addt1=%r15
  264. mov $38,%r15
  265. # qhasm: addt1 = addt0 if !carry
  266. # asm 1: cmovae <addt0=int64#12,<addt1=int64#13
  267. # asm 2: cmovae <addt0=%r14,<addt1=%r15
  268. cmovae %r14,%r15
  269. # qhasm: carry? b0 += addt1
  270. # asm 1: add <addt1=int64#13,<b0=int64#8
  271. # asm 2: add <addt1=%r15,<b0=%r10
  272. add %r15,%r10
  273. # qhasm: carry? b1 += addt0 + carry
  274. # asm 1: adc <addt0=int64#12,<b1=int64#9
  275. # asm 2: adc <addt0=%r14,<b1=%r11
  276. adc %r14,%r11
  277. # qhasm: carry? b2 += addt0 + carry
  278. # asm 1: adc <addt0=int64#12,<b2=int64#10
  279. # asm 2: adc <addt0=%r14,<b2=%r12
  280. adc %r14,%r12
  281. # qhasm: carry? b3 += addt0 + carry
  282. # asm 1: adc <addt0=int64#12,<b3=int64#11
  283. # asm 2: adc <addt0=%r14,<b3=%r13
  284. adc %r14,%r13
  285. # qhasm: addt0 = addt1 if carry
  286. # asm 1: cmovc <addt1=int64#13,<addt0=int64#12
  287. # asm 2: cmovc <addt1=%r15,<addt0=%r14
  288. cmovc %r15,%r14
  289. # qhasm: b0 += addt0
  290. # asm 1: add <addt0=int64#12,<b0=int64#8
  291. # asm 2: add <addt0=%r14,<b0=%r10
  292. add %r14,%r10
  293. # qhasm: a0_stack = a0
  294. # asm 1: movq <a0=int64#3,>a0_stack=stack64#8
  295. # asm 2: movq <a0=%rdx,>a0_stack=56(%rsp)
  296. movq %rdx,56(%rsp)
  297. # qhasm: a1_stack = a1
  298. # asm 1: movq <a1=int64#5,>a1_stack=stack64#9
  299. # asm 2: movq <a1=%r8,>a1_stack=64(%rsp)
  300. movq %r8,64(%rsp)
  301. # qhasm: a2_stack = a2
  302. # asm 1: movq <a2=int64#6,>a2_stack=stack64#10
  303. # asm 2: movq <a2=%r9,>a2_stack=72(%rsp)
  304. movq %r9,72(%rsp)
  305. # qhasm: a3_stack = a3
  306. # asm 1: movq <a3=int64#7,>a3_stack=stack64#11
  307. # asm 2: movq <a3=%rax,>a3_stack=80(%rsp)
  308. movq %rax,80(%rsp)
  309. # qhasm: b0_stack = b0
  310. # asm 1: movq <b0=int64#8,>b0_stack=stack64#12
  311. # asm 2: movq <b0=%r10,>b0_stack=88(%rsp)
  312. movq %r10,88(%rsp)
  313. # qhasm: b1_stack = b1
  314. # asm 1: movq <b1=int64#9,>b1_stack=stack64#13
  315. # asm 2: movq <b1=%r11,>b1_stack=96(%rsp)
  316. movq %r11,96(%rsp)
  317. # qhasm: b2_stack = b2
  318. # asm 1: movq <b2=int64#10,>b2_stack=stack64#14
  319. # asm 2: movq <b2=%r12,>b2_stack=104(%rsp)
  320. movq %r12,104(%rsp)
  321. # qhasm: b3_stack = b3
  322. # asm 1: movq <b3=int64#11,>b3_stack=stack64#15
  323. # asm 2: movq <b3=%r13,>b3_stack=112(%rsp)
  324. movq %r13,112(%rsp)
  325. # qhasm: mulr4 = 0
  326. # asm 1: mov $0,>mulr4=int64#5
  327. # asm 2: mov $0,>mulr4=%r8
  328. mov $0,%r8
  329. # qhasm: mulr5 = 0
  330. # asm 1: mov $0,>mulr5=int64#6
  331. # asm 2: mov $0,>mulr5=%r9
  332. mov $0,%r9
  333. # qhasm: mulr6 = 0
  334. # asm 1: mov $0,>mulr6=int64#8
  335. # asm 2: mov $0,>mulr6=%r10
  336. mov $0,%r10
  337. # qhasm: mulr7 = 0
  338. # asm 1: mov $0,>mulr7=int64#9
  339. # asm 2: mov $0,>mulr7=%r11
  340. mov $0,%r11
  341. # qhasm: mulx0 = a0_stack
  342. # asm 1: movq <a0_stack=stack64#8,>mulx0=int64#10
  343. # asm 2: movq <a0_stack=56(%rsp),>mulx0=%r12
  344. movq 56(%rsp),%r12
  345. # qhasm: mulrax = *(uint64 *)(qp + 0)
  346. # asm 1: movq 0(<qp=int64#4),>mulrax=int64#7
  347. # asm 2: movq 0(<qp=%rcx),>mulrax=%rax
  348. movq 0(%rcx),%rax
  349. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  350. # asm 1: mul <mulx0=int64#10
  351. # asm 2: mul <mulx0=%r12
  352. mul %r12
  353. # qhasm: a0 = mulrax
  354. # asm 1: mov <mulrax=int64#7,>a0=int64#11
  355. # asm 2: mov <mulrax=%rax,>a0=%r13
  356. mov %rax,%r13
  357. # qhasm: a1 = mulrdx
  358. # asm 1: mov <mulrdx=int64#3,>a1=int64#12
  359. # asm 2: mov <mulrdx=%rdx,>a1=%r14
  360. mov %rdx,%r14
  361. # qhasm: mulrax = *(uint64 *)(qp + 8)
  362. # asm 1: movq 8(<qp=int64#4),>mulrax=int64#7
  363. # asm 2: movq 8(<qp=%rcx),>mulrax=%rax
  364. movq 8(%rcx),%rax
  365. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  366. # asm 1: mul <mulx0=int64#10
  367. # asm 2: mul <mulx0=%r12
  368. mul %r12
  369. # qhasm: carry? a1 += mulrax
  370. # asm 1: add <mulrax=int64#7,<a1=int64#12
  371. # asm 2: add <mulrax=%rax,<a1=%r14
  372. add %rax,%r14
  373. # qhasm: a2 = 0
  374. # asm 1: mov $0,>a2=int64#13
  375. # asm 2: mov $0,>a2=%r15
  376. mov $0,%r15
  377. # qhasm: a2 += mulrdx + carry
  378. # asm 1: adc <mulrdx=int64#3,<a2=int64#13
  379. # asm 2: adc <mulrdx=%rdx,<a2=%r15
  380. adc %rdx,%r15
  381. # qhasm: mulrax = *(uint64 *)(qp + 16)
  382. # asm 1: movq 16(<qp=int64#4),>mulrax=int64#7
  383. # asm 2: movq 16(<qp=%rcx),>mulrax=%rax
  384. movq 16(%rcx),%rax
  385. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  386. # asm 1: mul <mulx0=int64#10
  387. # asm 2: mul <mulx0=%r12
  388. mul %r12
  389. # qhasm: carry? a2 += mulrax
  390. # asm 1: add <mulrax=int64#7,<a2=int64#13
  391. # asm 2: add <mulrax=%rax,<a2=%r15
  392. add %rax,%r15
  393. # qhasm: a3 = 0
  394. # asm 1: mov $0,>a3=int64#14
  395. # asm 2: mov $0,>a3=%rbx
  396. mov $0,%rbx
  397. # qhasm: a3 += mulrdx + carry
  398. # asm 1: adc <mulrdx=int64#3,<a3=int64#14
  399. # asm 2: adc <mulrdx=%rdx,<a3=%rbx
  400. adc %rdx,%rbx
  401. # qhasm: mulrax = *(uint64 *)(qp + 24)
  402. # asm 1: movq 24(<qp=int64#4),>mulrax=int64#7
  403. # asm 2: movq 24(<qp=%rcx),>mulrax=%rax
  404. movq 24(%rcx),%rax
  405. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  406. # asm 1: mul <mulx0=int64#10
  407. # asm 2: mul <mulx0=%r12
  408. mul %r12
  409. # qhasm: carry? a3 += mulrax
  410. # asm 1: add <mulrax=int64#7,<a3=int64#14
  411. # asm 2: add <mulrax=%rax,<a3=%rbx
  412. add %rax,%rbx
  413. # qhasm: mulr4 += mulrdx + carry
  414. # asm 1: adc <mulrdx=int64#3,<mulr4=int64#5
  415. # asm 2: adc <mulrdx=%rdx,<mulr4=%r8
  416. adc %rdx,%r8
  417. # qhasm: mulx1 = a1_stack
  418. # asm 1: movq <a1_stack=stack64#9,>mulx1=int64#10
  419. # asm 2: movq <a1_stack=64(%rsp),>mulx1=%r12
  420. movq 64(%rsp),%r12
  421. # qhasm: mulrax = *(uint64 *)(qp + 0)
  422. # asm 1: movq 0(<qp=int64#4),>mulrax=int64#7
  423. # asm 2: movq 0(<qp=%rcx),>mulrax=%rax
  424. movq 0(%rcx),%rax
  425. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  426. # asm 1: mul <mulx1=int64#10
  427. # asm 2: mul <mulx1=%r12
  428. mul %r12
  429. # qhasm: carry? a1 += mulrax
  430. # asm 1: add <mulrax=int64#7,<a1=int64#12
  431. # asm 2: add <mulrax=%rax,<a1=%r14
  432. add %rax,%r14
  433. # qhasm: mulc = 0
  434. # asm 1: mov $0,>mulc=int64#15
  435. # asm 2: mov $0,>mulc=%rbp
  436. mov $0,%rbp
  437. # qhasm: mulc += mulrdx + carry
  438. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  439. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  440. adc %rdx,%rbp
  441. # qhasm: mulrax = *(uint64 *)(qp + 8)
  442. # asm 1: movq 8(<qp=int64#4),>mulrax=int64#7
  443. # asm 2: movq 8(<qp=%rcx),>mulrax=%rax
  444. movq 8(%rcx),%rax
  445. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  446. # asm 1: mul <mulx1=int64#10
  447. # asm 2: mul <mulx1=%r12
  448. mul %r12
  449. # qhasm: carry? a2 += mulrax
  450. # asm 1: add <mulrax=int64#7,<a2=int64#13
  451. # asm 2: add <mulrax=%rax,<a2=%r15
  452. add %rax,%r15
  453. # qhasm: mulrdx += 0 + carry
  454. # asm 1: adc $0,<mulrdx=int64#3
  455. # asm 2: adc $0,<mulrdx=%rdx
  456. adc $0,%rdx
  457. # qhasm: carry? a2 += mulc
  458. # asm 1: add <mulc=int64#15,<a2=int64#13
  459. # asm 2: add <mulc=%rbp,<a2=%r15
  460. add %rbp,%r15
  461. # qhasm: mulc = 0
  462. # asm 1: mov $0,>mulc=int64#15
  463. # asm 2: mov $0,>mulc=%rbp
  464. mov $0,%rbp
  465. # qhasm: mulc += mulrdx + carry
  466. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  467. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  468. adc %rdx,%rbp
  469. # qhasm: mulrax = *(uint64 *)(qp + 16)
  470. # asm 1: movq 16(<qp=int64#4),>mulrax=int64#7
  471. # asm 2: movq 16(<qp=%rcx),>mulrax=%rax
  472. movq 16(%rcx),%rax
  473. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  474. # asm 1: mul <mulx1=int64#10
  475. # asm 2: mul <mulx1=%r12
  476. mul %r12
  477. # qhasm: carry? a3 += mulrax
  478. # asm 1: add <mulrax=int64#7,<a3=int64#14
  479. # asm 2: add <mulrax=%rax,<a3=%rbx
  480. add %rax,%rbx
  481. # qhasm: mulrdx += 0 + carry
  482. # asm 1: adc $0,<mulrdx=int64#3
  483. # asm 2: adc $0,<mulrdx=%rdx
  484. adc $0,%rdx
  485. # qhasm: carry? a3 += mulc
  486. # asm 1: add <mulc=int64#15,<a3=int64#14
  487. # asm 2: add <mulc=%rbp,<a3=%rbx
  488. add %rbp,%rbx
  489. # qhasm: mulc = 0
  490. # asm 1: mov $0,>mulc=int64#15
  491. # asm 2: mov $0,>mulc=%rbp
  492. mov $0,%rbp
  493. # qhasm: mulc += mulrdx + carry
  494. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  495. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  496. adc %rdx,%rbp
  497. # qhasm: mulrax = *(uint64 *)(qp + 24)
  498. # asm 1: movq 24(<qp=int64#4),>mulrax=int64#7
  499. # asm 2: movq 24(<qp=%rcx),>mulrax=%rax
  500. movq 24(%rcx),%rax
  501. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  502. # asm 1: mul <mulx1=int64#10
  503. # asm 2: mul <mulx1=%r12
  504. mul %r12
  505. # qhasm: carry? mulr4 += mulrax
  506. # asm 1: add <mulrax=int64#7,<mulr4=int64#5
  507. # asm 2: add <mulrax=%rax,<mulr4=%r8
  508. add %rax,%r8
  509. # qhasm: mulrdx += 0 + carry
  510. # asm 1: adc $0,<mulrdx=int64#3
  511. # asm 2: adc $0,<mulrdx=%rdx
  512. adc $0,%rdx
  513. # qhasm: carry? mulr4 += mulc
  514. # asm 1: add <mulc=int64#15,<mulr4=int64#5
  515. # asm 2: add <mulc=%rbp,<mulr4=%r8
  516. add %rbp,%r8
  517. # qhasm: mulr5 += mulrdx + carry
  518. # asm 1: adc <mulrdx=int64#3,<mulr5=int64#6
  519. # asm 2: adc <mulrdx=%rdx,<mulr5=%r9
  520. adc %rdx,%r9
  521. # qhasm: mulx2 = a2_stack
  522. # asm 1: movq <a2_stack=stack64#10,>mulx2=int64#10
  523. # asm 2: movq <a2_stack=72(%rsp),>mulx2=%r12
  524. movq 72(%rsp),%r12
  525. # qhasm: mulrax = *(uint64 *)(qp + 0)
  526. # asm 1: movq 0(<qp=int64#4),>mulrax=int64#7
  527. # asm 2: movq 0(<qp=%rcx),>mulrax=%rax
  528. movq 0(%rcx),%rax
  529. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  530. # asm 1: mul <mulx2=int64#10
  531. # asm 2: mul <mulx2=%r12
  532. mul %r12
  533. # qhasm: carry? a2 += mulrax
  534. # asm 1: add <mulrax=int64#7,<a2=int64#13
  535. # asm 2: add <mulrax=%rax,<a2=%r15
  536. add %rax,%r15
  537. # qhasm: mulc = 0
  538. # asm 1: mov $0,>mulc=int64#15
  539. # asm 2: mov $0,>mulc=%rbp
  540. mov $0,%rbp
  541. # qhasm: mulc += mulrdx + carry
  542. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  543. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  544. adc %rdx,%rbp
  545. # qhasm: mulrax = *(uint64 *)(qp + 8)
  546. # asm 1: movq 8(<qp=int64#4),>mulrax=int64#7
  547. # asm 2: movq 8(<qp=%rcx),>mulrax=%rax
  548. movq 8(%rcx),%rax
  549. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  550. # asm 1: mul <mulx2=int64#10
  551. # asm 2: mul <mulx2=%r12
  552. mul %r12
  553. # qhasm: carry? a3 += mulrax
  554. # asm 1: add <mulrax=int64#7,<a3=int64#14
  555. # asm 2: add <mulrax=%rax,<a3=%rbx
  556. add %rax,%rbx
  557. # qhasm: mulrdx += 0 + carry
  558. # asm 1: adc $0,<mulrdx=int64#3
  559. # asm 2: adc $0,<mulrdx=%rdx
  560. adc $0,%rdx
  561. # qhasm: carry? a3 += mulc
  562. # asm 1: add <mulc=int64#15,<a3=int64#14
  563. # asm 2: add <mulc=%rbp,<a3=%rbx
  564. add %rbp,%rbx
  565. # qhasm: mulc = 0
  566. # asm 1: mov $0,>mulc=int64#15
  567. # asm 2: mov $0,>mulc=%rbp
  568. mov $0,%rbp
  569. # qhasm: mulc += mulrdx + carry
  570. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  571. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  572. adc %rdx,%rbp
  573. # qhasm: mulrax = *(uint64 *)(qp + 16)
  574. # asm 1: movq 16(<qp=int64#4),>mulrax=int64#7
  575. # asm 2: movq 16(<qp=%rcx),>mulrax=%rax
  576. movq 16(%rcx),%rax
  577. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  578. # asm 1: mul <mulx2=int64#10
  579. # asm 2: mul <mulx2=%r12
  580. mul %r12
  581. # qhasm: carry? mulr4 += mulrax
  582. # asm 1: add <mulrax=int64#7,<mulr4=int64#5
  583. # asm 2: add <mulrax=%rax,<mulr4=%r8
  584. add %rax,%r8
  585. # qhasm: mulrdx += 0 + carry
  586. # asm 1: adc $0,<mulrdx=int64#3
  587. # asm 2: adc $0,<mulrdx=%rdx
  588. adc $0,%rdx
  589. # qhasm: carry? mulr4 += mulc
  590. # asm 1: add <mulc=int64#15,<mulr4=int64#5
  591. # asm 2: add <mulc=%rbp,<mulr4=%r8
  592. add %rbp,%r8
  593. # qhasm: mulc = 0
  594. # asm 1: mov $0,>mulc=int64#15
  595. # asm 2: mov $0,>mulc=%rbp
  596. mov $0,%rbp
  597. # qhasm: mulc += mulrdx + carry
  598. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  599. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  600. adc %rdx,%rbp
  601. # qhasm: mulrax = *(uint64 *)(qp + 24)
  602. # asm 1: movq 24(<qp=int64#4),>mulrax=int64#7
  603. # asm 2: movq 24(<qp=%rcx),>mulrax=%rax
  604. movq 24(%rcx),%rax
  605. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  606. # asm 1: mul <mulx2=int64#10
  607. # asm 2: mul <mulx2=%r12
  608. mul %r12
  609. # qhasm: carry? mulr5 += mulrax
  610. # asm 1: add <mulrax=int64#7,<mulr5=int64#6
  611. # asm 2: add <mulrax=%rax,<mulr5=%r9
  612. add %rax,%r9
  613. # qhasm: mulrdx += 0 + carry
  614. # asm 1: adc $0,<mulrdx=int64#3
  615. # asm 2: adc $0,<mulrdx=%rdx
  616. adc $0,%rdx
  617. # qhasm: carry? mulr5 += mulc
  618. # asm 1: add <mulc=int64#15,<mulr5=int64#6
  619. # asm 2: add <mulc=%rbp,<mulr5=%r9
  620. add %rbp,%r9
  621. # qhasm: mulr6 += mulrdx + carry
  622. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#8
  623. # asm 2: adc <mulrdx=%rdx,<mulr6=%r10
  624. adc %rdx,%r10
  625. # qhasm: mulx3 = a3_stack
  626. # asm 1: movq <a3_stack=stack64#11,>mulx3=int64#10
  627. # asm 2: movq <a3_stack=80(%rsp),>mulx3=%r12
  628. movq 80(%rsp),%r12
  629. # qhasm: mulrax = *(uint64 *)(qp + 0)
  630. # asm 1: movq 0(<qp=int64#4),>mulrax=int64#7
  631. # asm 2: movq 0(<qp=%rcx),>mulrax=%rax
  632. movq 0(%rcx),%rax
  633. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  634. # asm 1: mul <mulx3=int64#10
  635. # asm 2: mul <mulx3=%r12
  636. mul %r12
  637. # qhasm: carry? a3 += mulrax
  638. # asm 1: add <mulrax=int64#7,<a3=int64#14
  639. # asm 2: add <mulrax=%rax,<a3=%rbx
  640. add %rax,%rbx
  641. # qhasm: mulc = 0
  642. # asm 1: mov $0,>mulc=int64#15
  643. # asm 2: mov $0,>mulc=%rbp
  644. mov $0,%rbp
  645. # qhasm: mulc += mulrdx + carry
  646. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  647. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  648. adc %rdx,%rbp
  649. # qhasm: mulrax = *(uint64 *)(qp + 8)
  650. # asm 1: movq 8(<qp=int64#4),>mulrax=int64#7
  651. # asm 2: movq 8(<qp=%rcx),>mulrax=%rax
  652. movq 8(%rcx),%rax
  653. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  654. # asm 1: mul <mulx3=int64#10
  655. # asm 2: mul <mulx3=%r12
  656. mul %r12
  657. # qhasm: carry? mulr4 += mulrax
  658. # asm 1: add <mulrax=int64#7,<mulr4=int64#5
  659. # asm 2: add <mulrax=%rax,<mulr4=%r8
  660. add %rax,%r8
  661. # qhasm: mulrdx += 0 + carry
  662. # asm 1: adc $0,<mulrdx=int64#3
  663. # asm 2: adc $0,<mulrdx=%rdx
  664. adc $0,%rdx
  665. # qhasm: carry? mulr4 += mulc
  666. # asm 1: add <mulc=int64#15,<mulr4=int64#5
  667. # asm 2: add <mulc=%rbp,<mulr4=%r8
  668. add %rbp,%r8
  669. # qhasm: mulc = 0
  670. # asm 1: mov $0,>mulc=int64#15
  671. # asm 2: mov $0,>mulc=%rbp
  672. mov $0,%rbp
  673. # qhasm: mulc += mulrdx + carry
  674. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  675. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  676. adc %rdx,%rbp
  677. # qhasm: mulrax = *(uint64 *)(qp + 16)
  678. # asm 1: movq 16(<qp=int64#4),>mulrax=int64#7
  679. # asm 2: movq 16(<qp=%rcx),>mulrax=%rax
  680. movq 16(%rcx),%rax
  681. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  682. # asm 1: mul <mulx3=int64#10
  683. # asm 2: mul <mulx3=%r12
  684. mul %r12
  685. # qhasm: carry? mulr5 += mulrax
  686. # asm 1: add <mulrax=int64#7,<mulr5=int64#6
  687. # asm 2: add <mulrax=%rax,<mulr5=%r9
  688. add %rax,%r9
  689. # qhasm: mulrdx += 0 + carry
  690. # asm 1: adc $0,<mulrdx=int64#3
  691. # asm 2: adc $0,<mulrdx=%rdx
  692. adc $0,%rdx
  693. # qhasm: carry? mulr5 += mulc
  694. # asm 1: add <mulc=int64#15,<mulr5=int64#6
  695. # asm 2: add <mulc=%rbp,<mulr5=%r9
  696. add %rbp,%r9
  697. # qhasm: mulc = 0
  698. # asm 1: mov $0,>mulc=int64#15
  699. # asm 2: mov $0,>mulc=%rbp
  700. mov $0,%rbp
  701. # qhasm: mulc += mulrdx + carry
  702. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  703. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  704. adc %rdx,%rbp
  705. # qhasm: mulrax = *(uint64 *)(qp + 24)
  706. # asm 1: movq 24(<qp=int64#4),>mulrax=int64#7
  707. # asm 2: movq 24(<qp=%rcx),>mulrax=%rax
  708. movq 24(%rcx),%rax
  709. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  710. # asm 1: mul <mulx3=int64#10
  711. # asm 2: mul <mulx3=%r12
  712. mul %r12
  713. # qhasm: carry? mulr6 += mulrax
  714. # asm 1: add <mulrax=int64#7,<mulr6=int64#8
  715. # asm 2: add <mulrax=%rax,<mulr6=%r10
  716. add %rax,%r10
  717. # qhasm: mulrdx += 0 + carry
  718. # asm 1: adc $0,<mulrdx=int64#3
  719. # asm 2: adc $0,<mulrdx=%rdx
  720. adc $0,%rdx
  721. # qhasm: carry? mulr6 += mulc
  722. # asm 1: add <mulc=int64#15,<mulr6=int64#8
  723. # asm 2: add <mulc=%rbp,<mulr6=%r10
  724. add %rbp,%r10
  725. # qhasm: mulr7 += mulrdx + carry
  726. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#9
  727. # asm 2: adc <mulrdx=%rdx,<mulr7=%r11
  728. adc %rdx,%r11
  729. # qhasm: mulrax = mulr4
  730. # asm 1: mov <mulr4=int64#5,>mulrax=int64#7
  731. # asm 2: mov <mulr4=%r8,>mulrax=%rax
  732. mov %r8,%rax
  733. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  734. mulq CRYPTO_NAMESPACE(38)(%rip)
  735. # qhasm: mulr4 = mulrax
  736. # asm 1: mov <mulrax=int64#7,>mulr4=int64#5
  737. # asm 2: mov <mulrax=%rax,>mulr4=%r8
  738. mov %rax,%r8
  739. # qhasm: mulrax = mulr5
  740. # asm 1: mov <mulr5=int64#6,>mulrax=int64#7
  741. # asm 2: mov <mulr5=%r9,>mulrax=%rax
  742. mov %r9,%rax
  743. # qhasm: mulr5 = mulrdx
  744. # asm 1: mov <mulrdx=int64#3,>mulr5=int64#6
  745. # asm 2: mov <mulrdx=%rdx,>mulr5=%r9
  746. mov %rdx,%r9
  747. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  748. mulq CRYPTO_NAMESPACE(38)(%rip)
  749. # qhasm: carry? mulr5 += mulrax
  750. # asm 1: add <mulrax=int64#7,<mulr5=int64#6
  751. # asm 2: add <mulrax=%rax,<mulr5=%r9
  752. add %rax,%r9
  753. # qhasm: mulrax = mulr6
  754. # asm 1: mov <mulr6=int64#8,>mulrax=int64#7
  755. # asm 2: mov <mulr6=%r10,>mulrax=%rax
  756. mov %r10,%rax
  757. # qhasm: mulr6 = 0
  758. # asm 1: mov $0,>mulr6=int64#8
  759. # asm 2: mov $0,>mulr6=%r10
  760. mov $0,%r10
  761. # qhasm: mulr6 += mulrdx + carry
  762. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#8
  763. # asm 2: adc <mulrdx=%rdx,<mulr6=%r10
  764. adc %rdx,%r10
  765. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  766. mulq CRYPTO_NAMESPACE(38)(%rip)
  767. # qhasm: carry? mulr6 += mulrax
  768. # asm 1: add <mulrax=int64#7,<mulr6=int64#8
  769. # asm 2: add <mulrax=%rax,<mulr6=%r10
  770. add %rax,%r10
  771. # qhasm: mulrax = mulr7
  772. # asm 1: mov <mulr7=int64#9,>mulrax=int64#7
  773. # asm 2: mov <mulr7=%r11,>mulrax=%rax
  774. mov %r11,%rax
  775. # qhasm: mulr7 = 0
  776. # asm 1: mov $0,>mulr7=int64#9
  777. # asm 2: mov $0,>mulr7=%r11
  778. mov $0,%r11
  779. # qhasm: mulr7 += mulrdx + carry
  780. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#9
  781. # asm 2: adc <mulrdx=%rdx,<mulr7=%r11
  782. adc %rdx,%r11
  783. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  784. mulq CRYPTO_NAMESPACE(38)(%rip)
  785. # qhasm: carry? mulr7 += mulrax
  786. # asm 1: add <mulrax=int64#7,<mulr7=int64#9
  787. # asm 2: add <mulrax=%rax,<mulr7=%r11
  788. add %rax,%r11
  789. # qhasm: mulr8 = 0
  790. # asm 1: mov $0,>mulr8=int64#7
  791. # asm 2: mov $0,>mulr8=%rax
  792. mov $0,%rax
  793. # qhasm: mulr8 += mulrdx + carry
  794. # asm 1: adc <mulrdx=int64#3,<mulr8=int64#7
  795. # asm 2: adc <mulrdx=%rdx,<mulr8=%rax
  796. adc %rdx,%rax
  797. # qhasm: carry? a0 += mulr4
  798. # asm 1: add <mulr4=int64#5,<a0=int64#11
  799. # asm 2: add <mulr4=%r8,<a0=%r13
  800. add %r8,%r13
  801. # qhasm: carry? a1 += mulr5 + carry
  802. # asm 1: adc <mulr5=int64#6,<a1=int64#12
  803. # asm 2: adc <mulr5=%r9,<a1=%r14
  804. adc %r9,%r14
  805. # qhasm: carry? a2 += mulr6 + carry
  806. # asm 1: adc <mulr6=int64#8,<a2=int64#13
  807. # asm 2: adc <mulr6=%r10,<a2=%r15
  808. adc %r10,%r15
  809. # qhasm: carry? a3 += mulr7 + carry
  810. # asm 1: adc <mulr7=int64#9,<a3=int64#14
  811. # asm 2: adc <mulr7=%r11,<a3=%rbx
  812. adc %r11,%rbx
  813. # qhasm: mulzero = 0
  814. # asm 1: mov $0,>mulzero=int64#3
  815. # asm 2: mov $0,>mulzero=%rdx
  816. mov $0,%rdx
  817. # qhasm: mulr8 += mulzero + carry
  818. # asm 1: adc <mulzero=int64#3,<mulr8=int64#7
  819. # asm 2: adc <mulzero=%rdx,<mulr8=%rax
  820. adc %rdx,%rax
  821. # qhasm: mulr8 *= 38
  822. # asm 1: imulq $38,<mulr8=int64#7,>mulr8=int64#5
  823. # asm 2: imulq $38,<mulr8=%rax,>mulr8=%r8
  824. imulq $38,%rax,%r8
  825. # qhasm: carry? a0 += mulr8
  826. # asm 1: add <mulr8=int64#5,<a0=int64#11
  827. # asm 2: add <mulr8=%r8,<a0=%r13
  828. add %r8,%r13
  829. # qhasm: carry? a1 += mulzero + carry
  830. # asm 1: adc <mulzero=int64#3,<a1=int64#12
  831. # asm 2: adc <mulzero=%rdx,<a1=%r14
  832. adc %rdx,%r14
  833. # qhasm: carry? a2 += mulzero + carry
  834. # asm 1: adc <mulzero=int64#3,<a2=int64#13
  835. # asm 2: adc <mulzero=%rdx,<a2=%r15
  836. adc %rdx,%r15
  837. # qhasm: carry? a3 += mulzero + carry
  838. # asm 1: adc <mulzero=int64#3,<a3=int64#14
  839. # asm 2: adc <mulzero=%rdx,<a3=%rbx
  840. adc %rdx,%rbx
  841. # qhasm: mulzero += mulzero + carry
  842. # asm 1: adc <mulzero=int64#3,<mulzero=int64#3
  843. # asm 2: adc <mulzero=%rdx,<mulzero=%rdx
  844. adc %rdx,%rdx
  845. # qhasm: mulzero *= 38
  846. # asm 1: imulq $38,<mulzero=int64#3,>mulzero=int64#3
  847. # asm 2: imulq $38,<mulzero=%rdx,>mulzero=%rdx
  848. imulq $38,%rdx,%rdx
  849. # qhasm: a0 += mulzero
  850. # asm 1: add <mulzero=int64#3,<a0=int64#11
  851. # asm 2: add <mulzero=%rdx,<a0=%r13
  852. add %rdx,%r13
  853. # qhasm: a0_stack = a0
  854. # asm 1: movq <a0=int64#11,>a0_stack=stack64#8
  855. # asm 2: movq <a0=%r13,>a0_stack=56(%rsp)
  856. movq %r13,56(%rsp)
  857. # qhasm: a1_stack = a1
  858. # asm 1: movq <a1=int64#12,>a1_stack=stack64#9
  859. # asm 2: movq <a1=%r14,>a1_stack=64(%rsp)
  860. movq %r14,64(%rsp)
  861. # qhasm: a2_stack = a2
  862. # asm 1: movq <a2=int64#13,>a2_stack=stack64#10
  863. # asm 2: movq <a2=%r15,>a2_stack=72(%rsp)
  864. movq %r15,72(%rsp)
  865. # qhasm: a3_stack = a3
  866. # asm 1: movq <a3=int64#14,>a3_stack=stack64#11
  867. # asm 2: movq <a3=%rbx,>a3_stack=80(%rsp)
  868. movq %rbx,80(%rsp)
  869. # qhasm: mulr4 = 0
  870. # asm 1: mov $0,>mulr4=int64#5
  871. # asm 2: mov $0,>mulr4=%r8
  872. mov $0,%r8
  873. # qhasm: mulr5 = 0
  874. # asm 1: mov $0,>mulr5=int64#6
  875. # asm 2: mov $0,>mulr5=%r9
  876. mov $0,%r9
  877. # qhasm: mulr6 = 0
  878. # asm 1: mov $0,>mulr6=int64#8
  879. # asm 2: mov $0,>mulr6=%r10
  880. mov $0,%r10
  881. # qhasm: mulr7 = 0
  882. # asm 1: mov $0,>mulr7=int64#9
  883. # asm 2: mov $0,>mulr7=%r11
  884. mov $0,%r11
  885. # qhasm: mulx0 = b0_stack
  886. # asm 1: movq <b0_stack=stack64#12,>mulx0=int64#10
  887. # asm 2: movq <b0_stack=88(%rsp),>mulx0=%r12
  888. movq 88(%rsp),%r12
  889. # qhasm: mulrax = *(uint64 *)(qp + 32)
  890. # asm 1: movq 32(<qp=int64#4),>mulrax=int64#7
  891. # asm 2: movq 32(<qp=%rcx),>mulrax=%rax
  892. movq 32(%rcx),%rax
  893. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  894. # asm 1: mul <mulx0=int64#10
  895. # asm 2: mul <mulx0=%r12
  896. mul %r12
  897. # qhasm: rx0 = mulrax
  898. # asm 1: mov <mulrax=int64#7,>rx0=int64#11
  899. # asm 2: mov <mulrax=%rax,>rx0=%r13
  900. mov %rax,%r13
  901. # qhasm: rx1 = mulrdx
  902. # asm 1: mov <mulrdx=int64#3,>rx1=int64#12
  903. # asm 2: mov <mulrdx=%rdx,>rx1=%r14
  904. mov %rdx,%r14
  905. # qhasm: mulrax = *(uint64 *)(qp + 40)
  906. # asm 1: movq 40(<qp=int64#4),>mulrax=int64#7
  907. # asm 2: movq 40(<qp=%rcx),>mulrax=%rax
  908. movq 40(%rcx),%rax
  909. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  910. # asm 1: mul <mulx0=int64#10
  911. # asm 2: mul <mulx0=%r12
  912. mul %r12
  913. # qhasm: carry? rx1 += mulrax
  914. # asm 1: add <mulrax=int64#7,<rx1=int64#12
  915. # asm 2: add <mulrax=%rax,<rx1=%r14
  916. add %rax,%r14
  917. # qhasm: rx2 = 0
  918. # asm 1: mov $0,>rx2=int64#13
  919. # asm 2: mov $0,>rx2=%r15
  920. mov $0,%r15
  921. # qhasm: rx2 += mulrdx + carry
  922. # asm 1: adc <mulrdx=int64#3,<rx2=int64#13
  923. # asm 2: adc <mulrdx=%rdx,<rx2=%r15
  924. adc %rdx,%r15
  925. # qhasm: mulrax = *(uint64 *)(qp + 48)
  926. # asm 1: movq 48(<qp=int64#4),>mulrax=int64#7
  927. # asm 2: movq 48(<qp=%rcx),>mulrax=%rax
  928. movq 48(%rcx),%rax
  929. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  930. # asm 1: mul <mulx0=int64#10
  931. # asm 2: mul <mulx0=%r12
  932. mul %r12
  933. # qhasm: carry? rx2 += mulrax
  934. # asm 1: add <mulrax=int64#7,<rx2=int64#13
  935. # asm 2: add <mulrax=%rax,<rx2=%r15
  936. add %rax,%r15
  937. # qhasm: rx3 = 0
  938. # asm 1: mov $0,>rx3=int64#14
  939. # asm 2: mov $0,>rx3=%rbx
  940. mov $0,%rbx
  941. # qhasm: rx3 += mulrdx + carry
  942. # asm 1: adc <mulrdx=int64#3,<rx3=int64#14
  943. # asm 2: adc <mulrdx=%rdx,<rx3=%rbx
  944. adc %rdx,%rbx
  945. # qhasm: mulrax = *(uint64 *)(qp + 56)
  946. # asm 1: movq 56(<qp=int64#4),>mulrax=int64#7
  947. # asm 2: movq 56(<qp=%rcx),>mulrax=%rax
  948. movq 56(%rcx),%rax
  949. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  950. # asm 1: mul <mulx0=int64#10
  951. # asm 2: mul <mulx0=%r12
  952. mul %r12
  953. # qhasm: carry? rx3 += mulrax
  954. # asm 1: add <mulrax=int64#7,<rx3=int64#14
  955. # asm 2: add <mulrax=%rax,<rx3=%rbx
  956. add %rax,%rbx
  957. # qhasm: mulr4 += mulrdx + carry
  958. # asm 1: adc <mulrdx=int64#3,<mulr4=int64#5
  959. # asm 2: adc <mulrdx=%rdx,<mulr4=%r8
  960. adc %rdx,%r8
  961. # qhasm: mulx1 = b1_stack
  962. # asm 1: movq <b1_stack=stack64#13,>mulx1=int64#10
  963. # asm 2: movq <b1_stack=96(%rsp),>mulx1=%r12
  964. movq 96(%rsp),%r12
  965. # qhasm: mulrax = *(uint64 *)(qp + 32)
  966. # asm 1: movq 32(<qp=int64#4),>mulrax=int64#7
  967. # asm 2: movq 32(<qp=%rcx),>mulrax=%rax
  968. movq 32(%rcx),%rax
  969. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  970. # asm 1: mul <mulx1=int64#10
  971. # asm 2: mul <mulx1=%r12
  972. mul %r12
  973. # qhasm: carry? rx1 += mulrax
  974. # asm 1: add <mulrax=int64#7,<rx1=int64#12
  975. # asm 2: add <mulrax=%rax,<rx1=%r14
  976. add %rax,%r14
  977. # qhasm: mulc = 0
  978. # asm 1: mov $0,>mulc=int64#15
  979. # asm 2: mov $0,>mulc=%rbp
  980. mov $0,%rbp
  981. # qhasm: mulc += mulrdx + carry
  982. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  983. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  984. adc %rdx,%rbp
  985. # qhasm: mulrax = *(uint64 *)(qp + 40)
  986. # asm 1: movq 40(<qp=int64#4),>mulrax=int64#7
  987. # asm 2: movq 40(<qp=%rcx),>mulrax=%rax
  988. movq 40(%rcx),%rax
  989. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  990. # asm 1: mul <mulx1=int64#10
  991. # asm 2: mul <mulx1=%r12
  992. mul %r12
  993. # qhasm: carry? rx2 += mulrax
  994. # asm 1: add <mulrax=int64#7,<rx2=int64#13
  995. # asm 2: add <mulrax=%rax,<rx2=%r15
  996. add %rax,%r15
  997. # qhasm: mulrdx += 0 + carry
  998. # asm 1: adc $0,<mulrdx=int64#3
  999. # asm 2: adc $0,<mulrdx=%rdx
  1000. adc $0,%rdx
  1001. # qhasm: carry? rx2 += mulc
  1002. # asm 1: add <mulc=int64#15,<rx2=int64#13
  1003. # asm 2: add <mulc=%rbp,<rx2=%r15
  1004. add %rbp,%r15
  1005. # qhasm: mulc = 0
  1006. # asm 1: mov $0,>mulc=int64#15
  1007. # asm 2: mov $0,>mulc=%rbp
  1008. mov $0,%rbp
  1009. # qhasm: mulc += mulrdx + carry
  1010. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1011. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1012. adc %rdx,%rbp
  1013. # qhasm: mulrax = *(uint64 *)(qp + 48)
  1014. # asm 1: movq 48(<qp=int64#4),>mulrax=int64#7
  1015. # asm 2: movq 48(<qp=%rcx),>mulrax=%rax
  1016. movq 48(%rcx),%rax
  1017. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1018. # asm 1: mul <mulx1=int64#10
  1019. # asm 2: mul <mulx1=%r12
  1020. mul %r12
  1021. # qhasm: carry? rx3 += mulrax
  1022. # asm 1: add <mulrax=int64#7,<rx3=int64#14
  1023. # asm 2: add <mulrax=%rax,<rx3=%rbx
  1024. add %rax,%rbx
  1025. # qhasm: mulrdx += 0 + carry
  1026. # asm 1: adc $0,<mulrdx=int64#3
  1027. # asm 2: adc $0,<mulrdx=%rdx
  1028. adc $0,%rdx
  1029. # qhasm: carry? rx3 += mulc
  1030. # asm 1: add <mulc=int64#15,<rx3=int64#14
  1031. # asm 2: add <mulc=%rbp,<rx3=%rbx
  1032. add %rbp,%rbx
  1033. # qhasm: mulc = 0
  1034. # asm 1: mov $0,>mulc=int64#15
  1035. # asm 2: mov $0,>mulc=%rbp
  1036. mov $0,%rbp
  1037. # qhasm: mulc += mulrdx + carry
  1038. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1039. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1040. adc %rdx,%rbp
  1041. # qhasm: mulrax = *(uint64 *)(qp + 56)
  1042. # asm 1: movq 56(<qp=int64#4),>mulrax=int64#7
  1043. # asm 2: movq 56(<qp=%rcx),>mulrax=%rax
  1044. movq 56(%rcx),%rax
  1045. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1046. # asm 1: mul <mulx1=int64#10
  1047. # asm 2: mul <mulx1=%r12
  1048. mul %r12
  1049. # qhasm: carry? mulr4 += mulrax
  1050. # asm 1: add <mulrax=int64#7,<mulr4=int64#5
  1051. # asm 2: add <mulrax=%rax,<mulr4=%r8
  1052. add %rax,%r8
  1053. # qhasm: mulrdx += 0 + carry
  1054. # asm 1: adc $0,<mulrdx=int64#3
  1055. # asm 2: adc $0,<mulrdx=%rdx
  1056. adc $0,%rdx
  1057. # qhasm: carry? mulr4 += mulc
  1058. # asm 1: add <mulc=int64#15,<mulr4=int64#5
  1059. # asm 2: add <mulc=%rbp,<mulr4=%r8
  1060. add %rbp,%r8
  1061. # qhasm: mulr5 += mulrdx + carry
  1062. # asm 1: adc <mulrdx=int64#3,<mulr5=int64#6
  1063. # asm 2: adc <mulrdx=%rdx,<mulr5=%r9
  1064. adc %rdx,%r9
  1065. # qhasm: mulx2 = b2_stack
  1066. # asm 1: movq <b2_stack=stack64#14,>mulx2=int64#10
  1067. # asm 2: movq <b2_stack=104(%rsp),>mulx2=%r12
  1068. movq 104(%rsp),%r12
  1069. # qhasm: mulrax = *(uint64 *)(qp + 32)
  1070. # asm 1: movq 32(<qp=int64#4),>mulrax=int64#7
  1071. # asm 2: movq 32(<qp=%rcx),>mulrax=%rax
  1072. movq 32(%rcx),%rax
  1073. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1074. # asm 1: mul <mulx2=int64#10
  1075. # asm 2: mul <mulx2=%r12
  1076. mul %r12
  1077. # qhasm: carry? rx2 += mulrax
  1078. # asm 1: add <mulrax=int64#7,<rx2=int64#13
  1079. # asm 2: add <mulrax=%rax,<rx2=%r15
  1080. add %rax,%r15
  1081. # qhasm: mulc = 0
  1082. # asm 1: mov $0,>mulc=int64#15
  1083. # asm 2: mov $0,>mulc=%rbp
  1084. mov $0,%rbp
  1085. # qhasm: mulc += mulrdx + carry
  1086. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1087. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1088. adc %rdx,%rbp
  1089. # qhasm: mulrax = *(uint64 *)(qp + 40)
  1090. # asm 1: movq 40(<qp=int64#4),>mulrax=int64#7
  1091. # asm 2: movq 40(<qp=%rcx),>mulrax=%rax
  1092. movq 40(%rcx),%rax
  1093. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1094. # asm 1: mul <mulx2=int64#10
  1095. # asm 2: mul <mulx2=%r12
  1096. mul %r12
  1097. # qhasm: carry? rx3 += mulrax
  1098. # asm 1: add <mulrax=int64#7,<rx3=int64#14
  1099. # asm 2: add <mulrax=%rax,<rx3=%rbx
  1100. add %rax,%rbx
  1101. # qhasm: mulrdx += 0 + carry
  1102. # asm 1: adc $0,<mulrdx=int64#3
  1103. # asm 2: adc $0,<mulrdx=%rdx
  1104. adc $0,%rdx
  1105. # qhasm: carry? rx3 += mulc
  1106. # asm 1: add <mulc=int64#15,<rx3=int64#14
  1107. # asm 2: add <mulc=%rbp,<rx3=%rbx
  1108. add %rbp,%rbx
  1109. # qhasm: mulc = 0
  1110. # asm 1: mov $0,>mulc=int64#15
  1111. # asm 2: mov $0,>mulc=%rbp
  1112. mov $0,%rbp
  1113. # qhasm: mulc += mulrdx + carry
  1114. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1115. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1116. adc %rdx,%rbp
  1117. # qhasm: mulrax = *(uint64 *)(qp + 48)
  1118. # asm 1: movq 48(<qp=int64#4),>mulrax=int64#7
  1119. # asm 2: movq 48(<qp=%rcx),>mulrax=%rax
  1120. movq 48(%rcx),%rax
  1121. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1122. # asm 1: mul <mulx2=int64#10
  1123. # asm 2: mul <mulx2=%r12
  1124. mul %r12
  1125. # qhasm: carry? mulr4 += mulrax
  1126. # asm 1: add <mulrax=int64#7,<mulr4=int64#5
  1127. # asm 2: add <mulrax=%rax,<mulr4=%r8
  1128. add %rax,%r8
  1129. # qhasm: mulrdx += 0 + carry
  1130. # asm 1: adc $0,<mulrdx=int64#3
  1131. # asm 2: adc $0,<mulrdx=%rdx
  1132. adc $0,%rdx
  1133. # qhasm: carry? mulr4 += mulc
  1134. # asm 1: add <mulc=int64#15,<mulr4=int64#5
  1135. # asm 2: add <mulc=%rbp,<mulr4=%r8
  1136. add %rbp,%r8
  1137. # qhasm: mulc = 0
  1138. # asm 1: mov $0,>mulc=int64#15
  1139. # asm 2: mov $0,>mulc=%rbp
  1140. mov $0,%rbp
  1141. # qhasm: mulc += mulrdx + carry
  1142. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1143. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1144. adc %rdx,%rbp
  1145. # qhasm: mulrax = *(uint64 *)(qp + 56)
  1146. # asm 1: movq 56(<qp=int64#4),>mulrax=int64#7
  1147. # asm 2: movq 56(<qp=%rcx),>mulrax=%rax
  1148. movq 56(%rcx),%rax
  1149. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1150. # asm 1: mul <mulx2=int64#10
  1151. # asm 2: mul <mulx2=%r12
  1152. mul %r12
  1153. # qhasm: carry? mulr5 += mulrax
  1154. # asm 1: add <mulrax=int64#7,<mulr5=int64#6
  1155. # asm 2: add <mulrax=%rax,<mulr5=%r9
  1156. add %rax,%r9
  1157. # qhasm: mulrdx += 0 + carry
  1158. # asm 1: adc $0,<mulrdx=int64#3
  1159. # asm 2: adc $0,<mulrdx=%rdx
  1160. adc $0,%rdx
  1161. # qhasm: carry? mulr5 += mulc
  1162. # asm 1: add <mulc=int64#15,<mulr5=int64#6
  1163. # asm 2: add <mulc=%rbp,<mulr5=%r9
  1164. add %rbp,%r9
  1165. # qhasm: mulr6 += mulrdx + carry
  1166. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#8
  1167. # asm 2: adc <mulrdx=%rdx,<mulr6=%r10
  1168. adc %rdx,%r10
  1169. # qhasm: mulx3 = b3_stack
  1170. # asm 1: movq <b3_stack=stack64#15,>mulx3=int64#10
  1171. # asm 2: movq <b3_stack=112(%rsp),>mulx3=%r12
  1172. movq 112(%rsp),%r12
  1173. # qhasm: mulrax = *(uint64 *)(qp + 32)
  1174. # asm 1: movq 32(<qp=int64#4),>mulrax=int64#7
  1175. # asm 2: movq 32(<qp=%rcx),>mulrax=%rax
  1176. movq 32(%rcx),%rax
  1177. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  1178. # asm 1: mul <mulx3=int64#10
  1179. # asm 2: mul <mulx3=%r12
  1180. mul %r12
  1181. # qhasm: carry? rx3 += mulrax
  1182. # asm 1: add <mulrax=int64#7,<rx3=int64#14
  1183. # asm 2: add <mulrax=%rax,<rx3=%rbx
  1184. add %rax,%rbx
  1185. # qhasm: mulc = 0
  1186. # asm 1: mov $0,>mulc=int64#15
  1187. # asm 2: mov $0,>mulc=%rbp
  1188. mov $0,%rbp
  1189. # qhasm: mulc += mulrdx + carry
  1190. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1191. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1192. adc %rdx,%rbp
  1193. # qhasm: mulrax = *(uint64 *)(qp + 40)
  1194. # asm 1: movq 40(<qp=int64#4),>mulrax=int64#7
  1195. # asm 2: movq 40(<qp=%rcx),>mulrax=%rax
  1196. movq 40(%rcx),%rax
  1197. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  1198. # asm 1: mul <mulx3=int64#10
  1199. # asm 2: mul <mulx3=%r12
  1200. mul %r12
  1201. # qhasm: carry? mulr4 += mulrax
  1202. # asm 1: add <mulrax=int64#7,<mulr4=int64#5
  1203. # asm 2: add <mulrax=%rax,<mulr4=%r8
  1204. add %rax,%r8
  1205. # qhasm: mulrdx += 0 + carry
  1206. # asm 1: adc $0,<mulrdx=int64#3
  1207. # asm 2: adc $0,<mulrdx=%rdx
  1208. adc $0,%rdx
  1209. # qhasm: carry? mulr4 += mulc
  1210. # asm 1: add <mulc=int64#15,<mulr4=int64#5
  1211. # asm 2: add <mulc=%rbp,<mulr4=%r8
  1212. add %rbp,%r8
  1213. # qhasm: mulc = 0
  1214. # asm 1: mov $0,>mulc=int64#15
  1215. # asm 2: mov $0,>mulc=%rbp
  1216. mov $0,%rbp
  1217. # qhasm: mulc += mulrdx + carry
  1218. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1219. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1220. adc %rdx,%rbp
  1221. # qhasm: mulrax = *(uint64 *)(qp + 48)
  1222. # asm 1: movq 48(<qp=int64#4),>mulrax=int64#7
  1223. # asm 2: movq 48(<qp=%rcx),>mulrax=%rax
  1224. movq 48(%rcx),%rax
  1225. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  1226. # asm 1: mul <mulx3=int64#10
  1227. # asm 2: mul <mulx3=%r12
  1228. mul %r12
  1229. # qhasm: carry? mulr5 += mulrax
  1230. # asm 1: add <mulrax=int64#7,<mulr5=int64#6
  1231. # asm 2: add <mulrax=%rax,<mulr5=%r9
  1232. add %rax,%r9
  1233. # qhasm: mulrdx += 0 + carry
  1234. # asm 1: adc $0,<mulrdx=int64#3
  1235. # asm 2: adc $0,<mulrdx=%rdx
  1236. adc $0,%rdx
  1237. # qhasm: carry? mulr5 += mulc
  1238. # asm 1: add <mulc=int64#15,<mulr5=int64#6
  1239. # asm 2: add <mulc=%rbp,<mulr5=%r9
  1240. add %rbp,%r9
  1241. # qhasm: mulc = 0
  1242. # asm 1: mov $0,>mulc=int64#15
  1243. # asm 2: mov $0,>mulc=%rbp
  1244. mov $0,%rbp
  1245. # qhasm: mulc += mulrdx + carry
  1246. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1247. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1248. adc %rdx,%rbp
  1249. # qhasm: mulrax = *(uint64 *)(qp + 56)
  1250. # asm 1: movq 56(<qp=int64#4),>mulrax=int64#7
  1251. # asm 2: movq 56(<qp=%rcx),>mulrax=%rax
  1252. movq 56(%rcx),%rax
  1253. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  1254. # asm 1: mul <mulx3=int64#10
  1255. # asm 2: mul <mulx3=%r12
  1256. mul %r12
  1257. # qhasm: carry? mulr6 += mulrax
  1258. # asm 1: add <mulrax=int64#7,<mulr6=int64#8
  1259. # asm 2: add <mulrax=%rax,<mulr6=%r10
  1260. add %rax,%r10
  1261. # qhasm: mulrdx += 0 + carry
  1262. # asm 1: adc $0,<mulrdx=int64#3
  1263. # asm 2: adc $0,<mulrdx=%rdx
  1264. adc $0,%rdx
  1265. # qhasm: carry? mulr6 += mulc
  1266. # asm 1: add <mulc=int64#15,<mulr6=int64#8
  1267. # asm 2: add <mulc=%rbp,<mulr6=%r10
  1268. add %rbp,%r10
  1269. # qhasm: mulr7 += mulrdx + carry
  1270. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#9
  1271. # asm 2: adc <mulrdx=%rdx,<mulr7=%r11
  1272. adc %rdx,%r11
  1273. # qhasm: mulrax = mulr4
  1274. # asm 1: mov <mulr4=int64#5,>mulrax=int64#7
  1275. # asm 2: mov <mulr4=%r8,>mulrax=%rax
  1276. mov %r8,%rax
  1277. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1278. mulq CRYPTO_NAMESPACE(38)(%rip)
  1279. # qhasm: mulr4 = mulrax
  1280. # asm 1: mov <mulrax=int64#7,>mulr4=int64#5
  1281. # asm 2: mov <mulrax=%rax,>mulr4=%r8
  1282. mov %rax,%r8
  1283. # qhasm: mulrax = mulr5
  1284. # asm 1: mov <mulr5=int64#6,>mulrax=int64#7
  1285. # asm 2: mov <mulr5=%r9,>mulrax=%rax
  1286. mov %r9,%rax
  1287. # qhasm: mulr5 = mulrdx
  1288. # asm 1: mov <mulrdx=int64#3,>mulr5=int64#6
  1289. # asm 2: mov <mulrdx=%rdx,>mulr5=%r9
  1290. mov %rdx,%r9
  1291. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1292. mulq CRYPTO_NAMESPACE(38)(%rip)
  1293. # qhasm: carry? mulr5 += mulrax
  1294. # asm 1: add <mulrax=int64#7,<mulr5=int64#6
  1295. # asm 2: add <mulrax=%rax,<mulr5=%r9
  1296. add %rax,%r9
  1297. # qhasm: mulrax = mulr6
  1298. # asm 1: mov <mulr6=int64#8,>mulrax=int64#7
  1299. # asm 2: mov <mulr6=%r10,>mulrax=%rax
  1300. mov %r10,%rax
  1301. # qhasm: mulr6 = 0
  1302. # asm 1: mov $0,>mulr6=int64#8
  1303. # asm 2: mov $0,>mulr6=%r10
  1304. mov $0,%r10
  1305. # qhasm: mulr6 += mulrdx + carry
  1306. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#8
  1307. # asm 2: adc <mulrdx=%rdx,<mulr6=%r10
  1308. adc %rdx,%r10
  1309. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1310. mulq CRYPTO_NAMESPACE(38)(%rip)
  1311. # qhasm: carry? mulr6 += mulrax
  1312. # asm 1: add <mulrax=int64#7,<mulr6=int64#8
  1313. # asm 2: add <mulrax=%rax,<mulr6=%r10
  1314. add %rax,%r10
  1315. # qhasm: mulrax = mulr7
  1316. # asm 1: mov <mulr7=int64#9,>mulrax=int64#7
  1317. # asm 2: mov <mulr7=%r11,>mulrax=%rax
  1318. mov %r11,%rax
  1319. # qhasm: mulr7 = 0
  1320. # asm 1: mov $0,>mulr7=int64#9
  1321. # asm 2: mov $0,>mulr7=%r11
  1322. mov $0,%r11
  1323. # qhasm: mulr7 += mulrdx + carry
  1324. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#9
  1325. # asm 2: adc <mulrdx=%rdx,<mulr7=%r11
  1326. adc %rdx,%r11
  1327. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1328. mulq CRYPTO_NAMESPACE(38)(%rip)
  1329. # qhasm: carry? mulr7 += mulrax
  1330. # asm 1: add <mulrax=int64#7,<mulr7=int64#9
  1331. # asm 2: add <mulrax=%rax,<mulr7=%r11
  1332. add %rax,%r11
  1333. # qhasm: mulr8 = 0
  1334. # asm 1: mov $0,>mulr8=int64#7
  1335. # asm 2: mov $0,>mulr8=%rax
  1336. mov $0,%rax
  1337. # qhasm: mulr8 += mulrdx + carry
  1338. # asm 1: adc <mulrdx=int64#3,<mulr8=int64#7
  1339. # asm 2: adc <mulrdx=%rdx,<mulr8=%rax
  1340. adc %rdx,%rax
  1341. # qhasm: carry? rx0 += mulr4
  1342. # asm 1: add <mulr4=int64#5,<rx0=int64#11
  1343. # asm 2: add <mulr4=%r8,<rx0=%r13
  1344. add %r8,%r13
  1345. # qhasm: carry? rx1 += mulr5 + carry
  1346. # asm 1: adc <mulr5=int64#6,<rx1=int64#12
  1347. # asm 2: adc <mulr5=%r9,<rx1=%r14
  1348. adc %r9,%r14
  1349. # qhasm: carry? rx2 += mulr6 + carry
  1350. # asm 1: adc <mulr6=int64#8,<rx2=int64#13
  1351. # asm 2: adc <mulr6=%r10,<rx2=%r15
  1352. adc %r10,%r15
  1353. # qhasm: carry? rx3 += mulr7 + carry
  1354. # asm 1: adc <mulr7=int64#9,<rx3=int64#14
  1355. # asm 2: adc <mulr7=%r11,<rx3=%rbx
  1356. adc %r11,%rbx
  1357. # qhasm: mulzero = 0
  1358. # asm 1: mov $0,>mulzero=int64#3
  1359. # asm 2: mov $0,>mulzero=%rdx
  1360. mov $0,%rdx
  1361. # qhasm: mulr8 += mulzero + carry
  1362. # asm 1: adc <mulzero=int64#3,<mulr8=int64#7
  1363. # asm 2: adc <mulzero=%rdx,<mulr8=%rax
  1364. adc %rdx,%rax
  1365. # qhasm: mulr8 *= 38
  1366. # asm 1: imulq $38,<mulr8=int64#7,>mulr8=int64#5
  1367. # asm 2: imulq $38,<mulr8=%rax,>mulr8=%r8
  1368. imulq $38,%rax,%r8
  1369. # qhasm: carry? rx0 += mulr8
  1370. # asm 1: add <mulr8=int64#5,<rx0=int64#11
  1371. # asm 2: add <mulr8=%r8,<rx0=%r13
  1372. add %r8,%r13
  1373. # qhasm: carry? rx1 += mulzero + carry
  1374. # asm 1: adc <mulzero=int64#3,<rx1=int64#12
  1375. # asm 2: adc <mulzero=%rdx,<rx1=%r14
  1376. adc %rdx,%r14
  1377. # qhasm: carry? rx2 += mulzero + carry
  1378. # asm 1: adc <mulzero=int64#3,<rx2=int64#13
  1379. # asm 2: adc <mulzero=%rdx,<rx2=%r15
  1380. adc %rdx,%r15
  1381. # qhasm: carry? rx3 += mulzero + carry
  1382. # asm 1: adc <mulzero=int64#3,<rx3=int64#14
  1383. # asm 2: adc <mulzero=%rdx,<rx3=%rbx
  1384. adc %rdx,%rbx
  1385. # qhasm: mulzero += mulzero + carry
  1386. # asm 1: adc <mulzero=int64#3,<mulzero=int64#3
  1387. # asm 2: adc <mulzero=%rdx,<mulzero=%rdx
  1388. adc %rdx,%rdx
  1389. # qhasm: mulzero *= 38
  1390. # asm 1: imulq $38,<mulzero=int64#3,>mulzero=int64#3
  1391. # asm 2: imulq $38,<mulzero=%rdx,>mulzero=%rdx
  1392. imulq $38,%rdx,%rdx
  1393. # qhasm: rx0 += mulzero
  1394. # asm 1: add <mulzero=int64#3,<rx0=int64#11
  1395. # asm 2: add <mulzero=%rdx,<rx0=%r13
  1396. add %rdx,%r13
  1397. # qhasm: ry0 = rx0
  1398. # asm 1: mov <rx0=int64#11,>ry0=int64#3
  1399. # asm 2: mov <rx0=%r13,>ry0=%rdx
  1400. mov %r13,%rdx
  1401. # qhasm: ry1 = rx1
  1402. # asm 1: mov <rx1=int64#12,>ry1=int64#5
  1403. # asm 2: mov <rx1=%r14,>ry1=%r8
  1404. mov %r14,%r8
  1405. # qhasm: ry2 = rx2
  1406. # asm 1: mov <rx2=int64#13,>ry2=int64#6
  1407. # asm 2: mov <rx2=%r15,>ry2=%r9
  1408. mov %r15,%r9
  1409. # qhasm: ry3 = rx3
  1410. # asm 1: mov <rx3=int64#14,>ry3=int64#7
  1411. # asm 2: mov <rx3=%rbx,>ry3=%rax
  1412. mov %rbx,%rax
  1413. # qhasm: carry? ry0 += a0_stack
  1414. # asm 1: addq <a0_stack=stack64#8,<ry0=int64#3
  1415. # asm 2: addq <a0_stack=56(%rsp),<ry0=%rdx
  1416. addq 56(%rsp),%rdx
  1417. # qhasm: carry? ry1 += a1_stack + carry
  1418. # asm 1: adcq <a1_stack=stack64#9,<ry1=int64#5
  1419. # asm 2: adcq <a1_stack=64(%rsp),<ry1=%r8
  1420. adcq 64(%rsp),%r8
  1421. # qhasm: carry? ry2 += a2_stack + carry
  1422. # asm 1: adcq <a2_stack=stack64#10,<ry2=int64#6
  1423. # asm 2: adcq <a2_stack=72(%rsp),<ry2=%r9
  1424. adcq 72(%rsp),%r9
  1425. # qhasm: carry? ry3 += a3_stack + carry
  1426. # asm 1: adcq <a3_stack=stack64#11,<ry3=int64#7
  1427. # asm 2: adcq <a3_stack=80(%rsp),<ry3=%rax
  1428. adcq 80(%rsp),%rax
  1429. # qhasm: addt0 = 0
  1430. # asm 1: mov $0,>addt0=int64#8
  1431. # asm 2: mov $0,>addt0=%r10
  1432. mov $0,%r10
  1433. # qhasm: addt1 = 38
  1434. # asm 1: mov $38,>addt1=int64#9
  1435. # asm 2: mov $38,>addt1=%r11
  1436. mov $38,%r11
  1437. # qhasm: addt1 = addt0 if !carry
  1438. # asm 1: cmovae <addt0=int64#8,<addt1=int64#9
  1439. # asm 2: cmovae <addt0=%r10,<addt1=%r11
  1440. cmovae %r10,%r11
  1441. # qhasm: carry? ry0 += addt1
  1442. # asm 1: add <addt1=int64#9,<ry0=int64#3
  1443. # asm 2: add <addt1=%r11,<ry0=%rdx
  1444. add %r11,%rdx
  1445. # qhasm: carry? ry1 += addt0 + carry
  1446. # asm 1: adc <addt0=int64#8,<ry1=int64#5
  1447. # asm 2: adc <addt0=%r10,<ry1=%r8
  1448. adc %r10,%r8
  1449. # qhasm: carry? ry2 += addt0 + carry
  1450. # asm 1: adc <addt0=int64#8,<ry2=int64#6
  1451. # asm 2: adc <addt0=%r10,<ry2=%r9
  1452. adc %r10,%r9
  1453. # qhasm: carry? ry3 += addt0 + carry
  1454. # asm 1: adc <addt0=int64#8,<ry3=int64#7
  1455. # asm 2: adc <addt0=%r10,<ry3=%rax
  1456. adc %r10,%rax
  1457. # qhasm: addt0 = addt1 if carry
  1458. # asm 1: cmovc <addt1=int64#9,<addt0=int64#8
  1459. # asm 2: cmovc <addt1=%r11,<addt0=%r10
  1460. cmovc %r11,%r10
  1461. # qhasm: ry0 += addt0
  1462. # asm 1: add <addt0=int64#8,<ry0=int64#3
  1463. # asm 2: add <addt0=%r10,<ry0=%rdx
  1464. add %r10,%rdx
  1465. # qhasm: carry? rx0 -= a0_stack
  1466. # asm 1: subq <a0_stack=stack64#8,<rx0=int64#11
  1467. # asm 2: subq <a0_stack=56(%rsp),<rx0=%r13
  1468. subq 56(%rsp),%r13
  1469. # qhasm: carry? rx1 -= a1_stack - carry
  1470. # asm 1: sbbq <a1_stack=stack64#9,<rx1=int64#12
  1471. # asm 2: sbbq <a1_stack=64(%rsp),<rx1=%r14
  1472. sbbq 64(%rsp),%r14
  1473. # qhasm: carry? rx2 -= a2_stack - carry
  1474. # asm 1: sbbq <a2_stack=stack64#10,<rx2=int64#13
  1475. # asm 2: sbbq <a2_stack=72(%rsp),<rx2=%r15
  1476. sbbq 72(%rsp),%r15
  1477. # qhasm: carry? rx3 -= a3_stack - carry
  1478. # asm 1: sbbq <a3_stack=stack64#11,<rx3=int64#14
  1479. # asm 2: sbbq <a3_stack=80(%rsp),<rx3=%rbx
  1480. sbbq 80(%rsp),%rbx
  1481. # qhasm: subt0 = 0
  1482. # asm 1: mov $0,>subt0=int64#8
  1483. # asm 2: mov $0,>subt0=%r10
  1484. mov $0,%r10
  1485. # qhasm: subt1 = 38
  1486. # asm 1: mov $38,>subt1=int64#9
  1487. # asm 2: mov $38,>subt1=%r11
  1488. mov $38,%r11
  1489. # qhasm: subt1 = subt0 if !carry
  1490. # asm 1: cmovae <subt0=int64#8,<subt1=int64#9
  1491. # asm 2: cmovae <subt0=%r10,<subt1=%r11
  1492. cmovae %r10,%r11
  1493. # qhasm: carry? rx0 -= subt1
  1494. # asm 1: sub <subt1=int64#9,<rx0=int64#11
  1495. # asm 2: sub <subt1=%r11,<rx0=%r13
  1496. sub %r11,%r13
  1497. # qhasm: carry? rx1 -= subt0 - carry
  1498. # asm 1: sbb <subt0=int64#8,<rx1=int64#12
  1499. # asm 2: sbb <subt0=%r10,<rx1=%r14
  1500. sbb %r10,%r14
  1501. # qhasm: carry? rx2 -= subt0 - carry
  1502. # asm 1: sbb <subt0=int64#8,<rx2=int64#13
  1503. # asm 2: sbb <subt0=%r10,<rx2=%r15
  1504. sbb %r10,%r15
  1505. # qhasm: carry? rx3 -= subt0 - carry
  1506. # asm 1: sbb <subt0=int64#8,<rx3=int64#14
  1507. # asm 2: sbb <subt0=%r10,<rx3=%rbx
  1508. sbb %r10,%rbx
  1509. # qhasm: subt0 = subt1 if carry
  1510. # asm 1: cmovc <subt1=int64#9,<subt0=int64#8
  1511. # asm 2: cmovc <subt1=%r11,<subt0=%r10
  1512. cmovc %r11,%r10
  1513. # qhasm: rx0 -= subt0
  1514. # asm 1: sub <subt0=int64#8,<rx0=int64#11
  1515. # asm 2: sub <subt0=%r10,<rx0=%r13
  1516. sub %r10,%r13
  1517. # qhasm: *(uint64 *) (rp + 0) = rx0
  1518. # asm 1: movq <rx0=int64#11,0(<rp=int64#1)
  1519. # asm 2: movq <rx0=%r13,0(<rp=%rdi)
  1520. movq %r13,0(%rdi)
  1521. # qhasm: *(uint64 *) (rp + 8) = rx1
  1522. # asm 1: movq <rx1=int64#12,8(<rp=int64#1)
  1523. # asm 2: movq <rx1=%r14,8(<rp=%rdi)
  1524. movq %r14,8(%rdi)
  1525. # qhasm: *(uint64 *) (rp + 16) = rx2
  1526. # asm 1: movq <rx2=int64#13,16(<rp=int64#1)
  1527. # asm 2: movq <rx2=%r15,16(<rp=%rdi)
  1528. movq %r15,16(%rdi)
  1529. # qhasm: *(uint64 *) (rp + 24) = rx3
  1530. # asm 1: movq <rx3=int64#14,24(<rp=int64#1)
  1531. # asm 2: movq <rx3=%rbx,24(<rp=%rdi)
  1532. movq %rbx,24(%rdi)
  1533. # qhasm: *(uint64 *) (rp + 64) = ry0
  1534. # asm 1: movq <ry0=int64#3,64(<rp=int64#1)
  1535. # asm 2: movq <ry0=%rdx,64(<rp=%rdi)
  1536. movq %rdx,64(%rdi)
  1537. # qhasm: *(uint64 *) (rp + 72) = ry1
  1538. # asm 1: movq <ry1=int64#5,72(<rp=int64#1)
  1539. # asm 2: movq <ry1=%r8,72(<rp=%rdi)
  1540. movq %r8,72(%rdi)
  1541. # qhasm: *(uint64 *) (rp + 80) = ry2
  1542. # asm 1: movq <ry2=int64#6,80(<rp=int64#1)
  1543. # asm 2: movq <ry2=%r9,80(<rp=%rdi)
  1544. movq %r9,80(%rdi)
  1545. # qhasm: *(uint64 *) (rp + 88) = ry3
  1546. # asm 1: movq <ry3=int64#7,88(<rp=int64#1)
  1547. # asm 2: movq <ry3=%rax,88(<rp=%rdi)
  1548. movq %rax,88(%rdi)
  1549. # qhasm: mulr4 = 0
  1550. # asm 1: mov $0,>mulr4=int64#5
  1551. # asm 2: mov $0,>mulr4=%r8
  1552. mov $0,%r8
  1553. # qhasm: mulr5 = 0
  1554. # asm 1: mov $0,>mulr5=int64#6
  1555. # asm 2: mov $0,>mulr5=%r9
  1556. mov $0,%r9
  1557. # qhasm: mulr6 = 0
  1558. # asm 1: mov $0,>mulr6=int64#8
  1559. # asm 2: mov $0,>mulr6=%r10
  1560. mov $0,%r10
  1561. # qhasm: mulr7 = 0
  1562. # asm 1: mov $0,>mulr7=int64#9
  1563. # asm 2: mov $0,>mulr7=%r11
  1564. mov $0,%r11
  1565. # qhasm: mulx0 = *(uint64 *)(pp + 96)
  1566. # asm 1: movq 96(<pp=int64#2),>mulx0=int64#10
  1567. # asm 2: movq 96(<pp=%rsi),>mulx0=%r12
  1568. movq 96(%rsi),%r12
  1569. # qhasm: mulrax = *(uint64 *)(qp + 96)
  1570. # asm 1: movq 96(<qp=int64#4),>mulrax=int64#7
  1571. # asm 2: movq 96(<qp=%rcx),>mulrax=%rax
  1572. movq 96(%rcx),%rax
  1573. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  1574. # asm 1: mul <mulx0=int64#10
  1575. # asm 2: mul <mulx0=%r12
  1576. mul %r12
  1577. # qhasm: c0 = mulrax
  1578. # asm 1: mov <mulrax=int64#7,>c0=int64#11
  1579. # asm 2: mov <mulrax=%rax,>c0=%r13
  1580. mov %rax,%r13
  1581. # qhasm: c1 = mulrdx
  1582. # asm 1: mov <mulrdx=int64#3,>c1=int64#12
  1583. # asm 2: mov <mulrdx=%rdx,>c1=%r14
  1584. mov %rdx,%r14
  1585. # qhasm: mulrax = *(uint64 *)(qp + 104)
  1586. # asm 1: movq 104(<qp=int64#4),>mulrax=int64#7
  1587. # asm 2: movq 104(<qp=%rcx),>mulrax=%rax
  1588. movq 104(%rcx),%rax
  1589. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  1590. # asm 1: mul <mulx0=int64#10
  1591. # asm 2: mul <mulx0=%r12
  1592. mul %r12
  1593. # qhasm: carry? c1 += mulrax
  1594. # asm 1: add <mulrax=int64#7,<c1=int64#12
  1595. # asm 2: add <mulrax=%rax,<c1=%r14
  1596. add %rax,%r14
  1597. # qhasm: c2 = 0
  1598. # asm 1: mov $0,>c2=int64#13
  1599. # asm 2: mov $0,>c2=%r15
  1600. mov $0,%r15
  1601. # qhasm: c2 += mulrdx + carry
  1602. # asm 1: adc <mulrdx=int64#3,<c2=int64#13
  1603. # asm 2: adc <mulrdx=%rdx,<c2=%r15
  1604. adc %rdx,%r15
  1605. # qhasm: mulrax = *(uint64 *)(qp + 112)
  1606. # asm 1: movq 112(<qp=int64#4),>mulrax=int64#7
  1607. # asm 2: movq 112(<qp=%rcx),>mulrax=%rax
  1608. movq 112(%rcx),%rax
  1609. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  1610. # asm 1: mul <mulx0=int64#10
  1611. # asm 2: mul <mulx0=%r12
  1612. mul %r12
  1613. # qhasm: carry? c2 += mulrax
  1614. # asm 1: add <mulrax=int64#7,<c2=int64#13
  1615. # asm 2: add <mulrax=%rax,<c2=%r15
  1616. add %rax,%r15
  1617. # qhasm: c3 = 0
  1618. # asm 1: mov $0,>c3=int64#14
  1619. # asm 2: mov $0,>c3=%rbx
  1620. mov $0,%rbx
  1621. # qhasm: c3 += mulrdx + carry
  1622. # asm 1: adc <mulrdx=int64#3,<c3=int64#14
  1623. # asm 2: adc <mulrdx=%rdx,<c3=%rbx
  1624. adc %rdx,%rbx
  1625. # qhasm: mulrax = *(uint64 *)(qp + 120)
  1626. # asm 1: movq 120(<qp=int64#4),>mulrax=int64#7
  1627. # asm 2: movq 120(<qp=%rcx),>mulrax=%rax
  1628. movq 120(%rcx),%rax
  1629. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  1630. # asm 1: mul <mulx0=int64#10
  1631. # asm 2: mul <mulx0=%r12
  1632. mul %r12
  1633. # qhasm: carry? c3 += mulrax
  1634. # asm 1: add <mulrax=int64#7,<c3=int64#14
  1635. # asm 2: add <mulrax=%rax,<c3=%rbx
  1636. add %rax,%rbx
  1637. # qhasm: mulr4 += mulrdx + carry
  1638. # asm 1: adc <mulrdx=int64#3,<mulr4=int64#5
  1639. # asm 2: adc <mulrdx=%rdx,<mulr4=%r8
  1640. adc %rdx,%r8
  1641. # qhasm: mulx1 = *(uint64 *)(pp + 104)
  1642. # asm 1: movq 104(<pp=int64#2),>mulx1=int64#10
  1643. # asm 2: movq 104(<pp=%rsi),>mulx1=%r12
  1644. movq 104(%rsi),%r12
  1645. # qhasm: mulrax = *(uint64 *)(qp + 96)
  1646. # asm 1: movq 96(<qp=int64#4),>mulrax=int64#7
  1647. # asm 2: movq 96(<qp=%rcx),>mulrax=%rax
  1648. movq 96(%rcx),%rax
  1649. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1650. # asm 1: mul <mulx1=int64#10
  1651. # asm 2: mul <mulx1=%r12
  1652. mul %r12
  1653. # qhasm: carry? c1 += mulrax
  1654. # asm 1: add <mulrax=int64#7,<c1=int64#12
  1655. # asm 2: add <mulrax=%rax,<c1=%r14
  1656. add %rax,%r14
  1657. # qhasm: mulc = 0
  1658. # asm 1: mov $0,>mulc=int64#15
  1659. # asm 2: mov $0,>mulc=%rbp
  1660. mov $0,%rbp
  1661. # qhasm: mulc += mulrdx + carry
  1662. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1663. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1664. adc %rdx,%rbp
  1665. # qhasm: mulrax = *(uint64 *)(qp + 104)
  1666. # asm 1: movq 104(<qp=int64#4),>mulrax=int64#7
  1667. # asm 2: movq 104(<qp=%rcx),>mulrax=%rax
  1668. movq 104(%rcx),%rax
  1669. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1670. # asm 1: mul <mulx1=int64#10
  1671. # asm 2: mul <mulx1=%r12
  1672. mul %r12
  1673. # qhasm: carry? c2 += mulrax
  1674. # asm 1: add <mulrax=int64#7,<c2=int64#13
  1675. # asm 2: add <mulrax=%rax,<c2=%r15
  1676. add %rax,%r15
  1677. # qhasm: mulrdx += 0 + carry
  1678. # asm 1: adc $0,<mulrdx=int64#3
  1679. # asm 2: adc $0,<mulrdx=%rdx
  1680. adc $0,%rdx
  1681. # qhasm: carry? c2 += mulc
  1682. # asm 1: add <mulc=int64#15,<c2=int64#13
  1683. # asm 2: add <mulc=%rbp,<c2=%r15
  1684. add %rbp,%r15
  1685. # qhasm: mulc = 0
  1686. # asm 1: mov $0,>mulc=int64#15
  1687. # asm 2: mov $0,>mulc=%rbp
  1688. mov $0,%rbp
  1689. # qhasm: mulc += mulrdx + carry
  1690. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1691. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1692. adc %rdx,%rbp
  1693. # qhasm: mulrax = *(uint64 *)(qp + 112)
  1694. # asm 1: movq 112(<qp=int64#4),>mulrax=int64#7
  1695. # asm 2: movq 112(<qp=%rcx),>mulrax=%rax
  1696. movq 112(%rcx),%rax
  1697. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1698. # asm 1: mul <mulx1=int64#10
  1699. # asm 2: mul <mulx1=%r12
  1700. mul %r12
  1701. # qhasm: carry? c3 += mulrax
  1702. # asm 1: add <mulrax=int64#7,<c3=int64#14
  1703. # asm 2: add <mulrax=%rax,<c3=%rbx
  1704. add %rax,%rbx
  1705. # qhasm: mulrdx += 0 + carry
  1706. # asm 1: adc $0,<mulrdx=int64#3
  1707. # asm 2: adc $0,<mulrdx=%rdx
  1708. adc $0,%rdx
  1709. # qhasm: carry? c3 += mulc
  1710. # asm 1: add <mulc=int64#15,<c3=int64#14
  1711. # asm 2: add <mulc=%rbp,<c3=%rbx
  1712. add %rbp,%rbx
  1713. # qhasm: mulc = 0
  1714. # asm 1: mov $0,>mulc=int64#15
  1715. # asm 2: mov $0,>mulc=%rbp
  1716. mov $0,%rbp
  1717. # qhasm: mulc += mulrdx + carry
  1718. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1719. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1720. adc %rdx,%rbp
  1721. # qhasm: mulrax = *(uint64 *)(qp + 120)
  1722. # asm 1: movq 120(<qp=int64#4),>mulrax=int64#7
  1723. # asm 2: movq 120(<qp=%rcx),>mulrax=%rax
  1724. movq 120(%rcx),%rax
  1725. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1726. # asm 1: mul <mulx1=int64#10
  1727. # asm 2: mul <mulx1=%r12
  1728. mul %r12
  1729. # qhasm: carry? mulr4 += mulrax
  1730. # asm 1: add <mulrax=int64#7,<mulr4=int64#5
  1731. # asm 2: add <mulrax=%rax,<mulr4=%r8
  1732. add %rax,%r8
  1733. # qhasm: mulrdx += 0 + carry
  1734. # asm 1: adc $0,<mulrdx=int64#3
  1735. # asm 2: adc $0,<mulrdx=%rdx
  1736. adc $0,%rdx
  1737. # qhasm: carry? mulr4 += mulc
  1738. # asm 1: add <mulc=int64#15,<mulr4=int64#5
  1739. # asm 2: add <mulc=%rbp,<mulr4=%r8
  1740. add %rbp,%r8
  1741. # qhasm: mulr5 += mulrdx + carry
  1742. # asm 1: adc <mulrdx=int64#3,<mulr5=int64#6
  1743. # asm 2: adc <mulrdx=%rdx,<mulr5=%r9
  1744. adc %rdx,%r9
  1745. # qhasm: mulx2 = *(uint64 *)(pp + 112)
  1746. # asm 1: movq 112(<pp=int64#2),>mulx2=int64#10
  1747. # asm 2: movq 112(<pp=%rsi),>mulx2=%r12
  1748. movq 112(%rsi),%r12
  1749. # qhasm: mulrax = *(uint64 *)(qp + 96)
  1750. # asm 1: movq 96(<qp=int64#4),>mulrax=int64#7
  1751. # asm 2: movq 96(<qp=%rcx),>mulrax=%rax
  1752. movq 96(%rcx),%rax
  1753. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1754. # asm 1: mul <mulx2=int64#10
  1755. # asm 2: mul <mulx2=%r12
  1756. mul %r12
  1757. # qhasm: carry? c2 += mulrax
  1758. # asm 1: add <mulrax=int64#7,<c2=int64#13
  1759. # asm 2: add <mulrax=%rax,<c2=%r15
  1760. add %rax,%r15
  1761. # qhasm: mulc = 0
  1762. # asm 1: mov $0,>mulc=int64#15
  1763. # asm 2: mov $0,>mulc=%rbp
  1764. mov $0,%rbp
  1765. # qhasm: mulc += mulrdx + carry
  1766. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1767. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1768. adc %rdx,%rbp
  1769. # qhasm: mulrax = *(uint64 *)(qp + 104)
  1770. # asm 1: movq 104(<qp=int64#4),>mulrax=int64#7
  1771. # asm 2: movq 104(<qp=%rcx),>mulrax=%rax
  1772. movq 104(%rcx),%rax
  1773. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1774. # asm 1: mul <mulx2=int64#10
  1775. # asm 2: mul <mulx2=%r12
  1776. mul %r12
  1777. # qhasm: carry? c3 += mulrax
  1778. # asm 1: add <mulrax=int64#7,<c3=int64#14
  1779. # asm 2: add <mulrax=%rax,<c3=%rbx
  1780. add %rax,%rbx
  1781. # qhasm: mulrdx += 0 + carry
  1782. # asm 1: adc $0,<mulrdx=int64#3
  1783. # asm 2: adc $0,<mulrdx=%rdx
  1784. adc $0,%rdx
  1785. # qhasm: carry? c3 += mulc
  1786. # asm 1: add <mulc=int64#15,<c3=int64#14
  1787. # asm 2: add <mulc=%rbp,<c3=%rbx
  1788. add %rbp,%rbx
  1789. # qhasm: mulc = 0
  1790. # asm 1: mov $0,>mulc=int64#15
  1791. # asm 2: mov $0,>mulc=%rbp
  1792. mov $0,%rbp
  1793. # qhasm: mulc += mulrdx + carry
  1794. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1795. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1796. adc %rdx,%rbp
  1797. # qhasm: mulrax = *(uint64 *)(qp + 112)
  1798. # asm 1: movq 112(<qp=int64#4),>mulrax=int64#7
  1799. # asm 2: movq 112(<qp=%rcx),>mulrax=%rax
  1800. movq 112(%rcx),%rax
  1801. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1802. # asm 1: mul <mulx2=int64#10
  1803. # asm 2: mul <mulx2=%r12
  1804. mul %r12
  1805. # qhasm: carry? mulr4 += mulrax
  1806. # asm 1: add <mulrax=int64#7,<mulr4=int64#5
  1807. # asm 2: add <mulrax=%rax,<mulr4=%r8
  1808. add %rax,%r8
  1809. # qhasm: mulrdx += 0 + carry
  1810. # asm 1: adc $0,<mulrdx=int64#3
  1811. # asm 2: adc $0,<mulrdx=%rdx
  1812. adc $0,%rdx
  1813. # qhasm: carry? mulr4 += mulc
  1814. # asm 1: add <mulc=int64#15,<mulr4=int64#5
  1815. # asm 2: add <mulc=%rbp,<mulr4=%r8
  1816. add %rbp,%r8
  1817. # qhasm: mulc = 0
  1818. # asm 1: mov $0,>mulc=int64#15
  1819. # asm 2: mov $0,>mulc=%rbp
  1820. mov $0,%rbp
  1821. # qhasm: mulc += mulrdx + carry
  1822. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1823. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1824. adc %rdx,%rbp
  1825. # qhasm: mulrax = *(uint64 *)(qp + 120)
  1826. # asm 1: movq 120(<qp=int64#4),>mulrax=int64#7
  1827. # asm 2: movq 120(<qp=%rcx),>mulrax=%rax
  1828. movq 120(%rcx),%rax
  1829. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1830. # asm 1: mul <mulx2=int64#10
  1831. # asm 2: mul <mulx2=%r12
  1832. mul %r12
  1833. # qhasm: carry? mulr5 += mulrax
  1834. # asm 1: add <mulrax=int64#7,<mulr5=int64#6
  1835. # asm 2: add <mulrax=%rax,<mulr5=%r9
  1836. add %rax,%r9
  1837. # qhasm: mulrdx += 0 + carry
  1838. # asm 1: adc $0,<mulrdx=int64#3
  1839. # asm 2: adc $0,<mulrdx=%rdx
  1840. adc $0,%rdx
  1841. # qhasm: carry? mulr5 += mulc
  1842. # asm 1: add <mulc=int64#15,<mulr5=int64#6
  1843. # asm 2: add <mulc=%rbp,<mulr5=%r9
  1844. add %rbp,%r9
  1845. # qhasm: mulr6 += mulrdx + carry
  1846. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#8
  1847. # asm 2: adc <mulrdx=%rdx,<mulr6=%r10
  1848. adc %rdx,%r10
  1849. # qhasm: mulx3 = *(uint64 *)(pp + 120)
  1850. # asm 1: movq 120(<pp=int64#2),>mulx3=int64#10
  1851. # asm 2: movq 120(<pp=%rsi),>mulx3=%r12
  1852. movq 120(%rsi),%r12
  1853. # qhasm: mulrax = *(uint64 *)(qp + 96)
  1854. # asm 1: movq 96(<qp=int64#4),>mulrax=int64#7
  1855. # asm 2: movq 96(<qp=%rcx),>mulrax=%rax
  1856. movq 96(%rcx),%rax
  1857. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  1858. # asm 1: mul <mulx3=int64#10
  1859. # asm 2: mul <mulx3=%r12
  1860. mul %r12
  1861. # qhasm: carry? c3 += mulrax
  1862. # asm 1: add <mulrax=int64#7,<c3=int64#14
  1863. # asm 2: add <mulrax=%rax,<c3=%rbx
  1864. add %rax,%rbx
  1865. # qhasm: mulc = 0
  1866. # asm 1: mov $0,>mulc=int64#15
  1867. # asm 2: mov $0,>mulc=%rbp
  1868. mov $0,%rbp
  1869. # qhasm: mulc += mulrdx + carry
  1870. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1871. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1872. adc %rdx,%rbp
  1873. # qhasm: mulrax = *(uint64 *)(qp + 104)
  1874. # asm 1: movq 104(<qp=int64#4),>mulrax=int64#7
  1875. # asm 2: movq 104(<qp=%rcx),>mulrax=%rax
  1876. movq 104(%rcx),%rax
  1877. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  1878. # asm 1: mul <mulx3=int64#10
  1879. # asm 2: mul <mulx3=%r12
  1880. mul %r12
  1881. # qhasm: carry? mulr4 += mulrax
  1882. # asm 1: add <mulrax=int64#7,<mulr4=int64#5
  1883. # asm 2: add <mulrax=%rax,<mulr4=%r8
  1884. add %rax,%r8
  1885. # qhasm: mulrdx += 0 + carry
  1886. # asm 1: adc $0,<mulrdx=int64#3
  1887. # asm 2: adc $0,<mulrdx=%rdx
  1888. adc $0,%rdx
  1889. # qhasm: carry? mulr4 += mulc
  1890. # asm 1: add <mulc=int64#15,<mulr4=int64#5
  1891. # asm 2: add <mulc=%rbp,<mulr4=%r8
  1892. add %rbp,%r8
  1893. # qhasm: mulc = 0
  1894. # asm 1: mov $0,>mulc=int64#15
  1895. # asm 2: mov $0,>mulc=%rbp
  1896. mov $0,%rbp
  1897. # qhasm: mulc += mulrdx + carry
  1898. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1899. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1900. adc %rdx,%rbp
  1901. # qhasm: mulrax = *(uint64 *)(qp + 112)
  1902. # asm 1: movq 112(<qp=int64#4),>mulrax=int64#7
  1903. # asm 2: movq 112(<qp=%rcx),>mulrax=%rax
  1904. movq 112(%rcx),%rax
  1905. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  1906. # asm 1: mul <mulx3=int64#10
  1907. # asm 2: mul <mulx3=%r12
  1908. mul %r12
  1909. # qhasm: carry? mulr5 += mulrax
  1910. # asm 1: add <mulrax=int64#7,<mulr5=int64#6
  1911. # asm 2: add <mulrax=%rax,<mulr5=%r9
  1912. add %rax,%r9
  1913. # qhasm: mulrdx += 0 + carry
  1914. # asm 1: adc $0,<mulrdx=int64#3
  1915. # asm 2: adc $0,<mulrdx=%rdx
  1916. adc $0,%rdx
  1917. # qhasm: carry? mulr5 += mulc
  1918. # asm 1: add <mulc=int64#15,<mulr5=int64#6
  1919. # asm 2: add <mulc=%rbp,<mulr5=%r9
  1920. add %rbp,%r9
  1921. # qhasm: mulc = 0
  1922. # asm 1: mov $0,>mulc=int64#15
  1923. # asm 2: mov $0,>mulc=%rbp
  1924. mov $0,%rbp
  1925. # qhasm: mulc += mulrdx + carry
  1926. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  1927. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  1928. adc %rdx,%rbp
  1929. # qhasm: mulrax = *(uint64 *)(qp + 120)
  1930. # asm 1: movq 120(<qp=int64#4),>mulrax=int64#7
  1931. # asm 2: movq 120(<qp=%rcx),>mulrax=%rax
  1932. movq 120(%rcx),%rax
  1933. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  1934. # asm 1: mul <mulx3=int64#10
  1935. # asm 2: mul <mulx3=%r12
  1936. mul %r12
  1937. # qhasm: carry? mulr6 += mulrax
  1938. # asm 1: add <mulrax=int64#7,<mulr6=int64#8
  1939. # asm 2: add <mulrax=%rax,<mulr6=%r10
  1940. add %rax,%r10
  1941. # qhasm: mulrdx += 0 + carry
  1942. # asm 1: adc $0,<mulrdx=int64#3
  1943. # asm 2: adc $0,<mulrdx=%rdx
  1944. adc $0,%rdx
  1945. # qhasm: carry? mulr6 += mulc
  1946. # asm 1: add <mulc=int64#15,<mulr6=int64#8
  1947. # asm 2: add <mulc=%rbp,<mulr6=%r10
  1948. add %rbp,%r10
  1949. # qhasm: mulr7 += mulrdx + carry
  1950. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#9
  1951. # asm 2: adc <mulrdx=%rdx,<mulr7=%r11
  1952. adc %rdx,%r11
  1953. # qhasm: mulrax = mulr4
  1954. # asm 1: mov <mulr4=int64#5,>mulrax=int64#7
  1955. # asm 2: mov <mulr4=%r8,>mulrax=%rax
  1956. mov %r8,%rax
  1957. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1958. mulq CRYPTO_NAMESPACE(38)(%rip)
  1959. # qhasm: mulr4 = mulrax
  1960. # asm 1: mov <mulrax=int64#7,>mulr4=int64#5
  1961. # asm 2: mov <mulrax=%rax,>mulr4=%r8
  1962. mov %rax,%r8
  1963. # qhasm: mulrax = mulr5
  1964. # asm 1: mov <mulr5=int64#6,>mulrax=int64#7
  1965. # asm 2: mov <mulr5=%r9,>mulrax=%rax
  1966. mov %r9,%rax
  1967. # qhasm: mulr5 = mulrdx
  1968. # asm 1: mov <mulrdx=int64#3,>mulr5=int64#6
  1969. # asm 2: mov <mulrdx=%rdx,>mulr5=%r9
  1970. mov %rdx,%r9
  1971. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1972. mulq CRYPTO_NAMESPACE(38)(%rip)
  1973. # qhasm: carry? mulr5 += mulrax
  1974. # asm 1: add <mulrax=int64#7,<mulr5=int64#6
  1975. # asm 2: add <mulrax=%rax,<mulr5=%r9
  1976. add %rax,%r9
  1977. # qhasm: mulrax = mulr6
  1978. # asm 1: mov <mulr6=int64#8,>mulrax=int64#7
  1979. # asm 2: mov <mulr6=%r10,>mulrax=%rax
  1980. mov %r10,%rax
  1981. # qhasm: mulr6 = 0
  1982. # asm 1: mov $0,>mulr6=int64#8
  1983. # asm 2: mov $0,>mulr6=%r10
  1984. mov $0,%r10
  1985. # qhasm: mulr6 += mulrdx + carry
  1986. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#8
  1987. # asm 2: adc <mulrdx=%rdx,<mulr6=%r10
  1988. adc %rdx,%r10
  1989. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1990. mulq CRYPTO_NAMESPACE(38)(%rip)
  1991. # qhasm: carry? mulr6 += mulrax
  1992. # asm 1: add <mulrax=int64#7,<mulr6=int64#8
  1993. # asm 2: add <mulrax=%rax,<mulr6=%r10
  1994. add %rax,%r10
  1995. # qhasm: mulrax = mulr7
  1996. # asm 1: mov <mulr7=int64#9,>mulrax=int64#7
  1997. # asm 2: mov <mulr7=%r11,>mulrax=%rax
  1998. mov %r11,%rax
  1999. # qhasm: mulr7 = 0
  2000. # asm 1: mov $0,>mulr7=int64#9
  2001. # asm 2: mov $0,>mulr7=%r11
  2002. mov $0,%r11
  2003. # qhasm: mulr7 += mulrdx + carry
  2004. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#9
  2005. # asm 2: adc <mulrdx=%rdx,<mulr7=%r11
  2006. adc %rdx,%r11
  2007. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  2008. mulq CRYPTO_NAMESPACE(38)(%rip)
  2009. # qhasm: carry? mulr7 += mulrax
  2010. # asm 1: add <mulrax=int64#7,<mulr7=int64#9
  2011. # asm 2: add <mulrax=%rax,<mulr7=%r11
  2012. add %rax,%r11
  2013. # qhasm: mulr8 = 0
  2014. # asm 1: mov $0,>mulr8=int64#7
  2015. # asm 2: mov $0,>mulr8=%rax
  2016. mov $0,%rax
  2017. # qhasm: mulr8 += mulrdx + carry
  2018. # asm 1: adc <mulrdx=int64#3,<mulr8=int64#7
  2019. # asm 2: adc <mulrdx=%rdx,<mulr8=%rax
  2020. adc %rdx,%rax
  2021. # qhasm: carry? c0 += mulr4
  2022. # asm 1: add <mulr4=int64#5,<c0=int64#11
  2023. # asm 2: add <mulr4=%r8,<c0=%r13
  2024. add %r8,%r13
  2025. # qhasm: carry? c1 += mulr5 + carry
  2026. # asm 1: adc <mulr5=int64#6,<c1=int64#12
  2027. # asm 2: adc <mulr5=%r9,<c1=%r14
  2028. adc %r9,%r14
  2029. # qhasm: carry? c2 += mulr6 + carry
  2030. # asm 1: adc <mulr6=int64#8,<c2=int64#13
  2031. # asm 2: adc <mulr6=%r10,<c2=%r15
  2032. adc %r10,%r15
  2033. # qhasm: carry? c3 += mulr7 + carry
  2034. # asm 1: adc <mulr7=int64#9,<c3=int64#14
  2035. # asm 2: adc <mulr7=%r11,<c3=%rbx
  2036. adc %r11,%rbx
  2037. # qhasm: mulzero = 0
  2038. # asm 1: mov $0,>mulzero=int64#3
  2039. # asm 2: mov $0,>mulzero=%rdx
  2040. mov $0,%rdx
  2041. # qhasm: mulr8 += mulzero + carry
  2042. # asm 1: adc <mulzero=int64#3,<mulr8=int64#7
  2043. # asm 2: adc <mulzero=%rdx,<mulr8=%rax
  2044. adc %rdx,%rax
  2045. # qhasm: mulr8 *= 38
  2046. # asm 1: imulq $38,<mulr8=int64#7,>mulr8=int64#5
  2047. # asm 2: imulq $38,<mulr8=%rax,>mulr8=%r8
  2048. imulq $38,%rax,%r8
  2049. # qhasm: carry? c0 += mulr8
  2050. # asm 1: add <mulr8=int64#5,<c0=int64#11
  2051. # asm 2: add <mulr8=%r8,<c0=%r13
  2052. add %r8,%r13
  2053. # qhasm: carry? c1 += mulzero + carry
  2054. # asm 1: adc <mulzero=int64#3,<c1=int64#12
  2055. # asm 2: adc <mulzero=%rdx,<c1=%r14
  2056. adc %rdx,%r14
  2057. # qhasm: carry? c2 += mulzero + carry
  2058. # asm 1: adc <mulzero=int64#3,<c2=int64#13
  2059. # asm 2: adc <mulzero=%rdx,<c2=%r15
  2060. adc %rdx,%r15
  2061. # qhasm: carry? c3 += mulzero + carry
  2062. # asm 1: adc <mulzero=int64#3,<c3=int64#14
  2063. # asm 2: adc <mulzero=%rdx,<c3=%rbx
  2064. adc %rdx,%rbx
  2065. # qhasm: mulzero += mulzero + carry
  2066. # asm 1: adc <mulzero=int64#3,<mulzero=int64#3
  2067. # asm 2: adc <mulzero=%rdx,<mulzero=%rdx
  2068. adc %rdx,%rdx
  2069. # qhasm: mulzero *= 38
  2070. # asm 1: imulq $38,<mulzero=int64#3,>mulzero=int64#3
  2071. # asm 2: imulq $38,<mulzero=%rdx,>mulzero=%rdx
  2072. imulq $38,%rdx,%rdx
  2073. # qhasm: c0 += mulzero
  2074. # asm 1: add <mulzero=int64#3,<c0=int64#11
  2075. # asm 2: add <mulzero=%rdx,<c0=%r13
  2076. add %rdx,%r13
  2077. # qhasm: c0_stack = c0
  2078. # asm 1: movq <c0=int64#11,>c0_stack=stack64#8
  2079. # asm 2: movq <c0=%r13,>c0_stack=56(%rsp)
  2080. movq %r13,56(%rsp)
  2081. # qhasm: c1_stack = c1
  2082. # asm 1: movq <c1=int64#12,>c1_stack=stack64#9
  2083. # asm 2: movq <c1=%r14,>c1_stack=64(%rsp)
  2084. movq %r14,64(%rsp)
  2085. # qhasm: c2_stack = c2
  2086. # asm 1: movq <c2=int64#13,>c2_stack=stack64#10
  2087. # asm 2: movq <c2=%r15,>c2_stack=72(%rsp)
  2088. movq %r15,72(%rsp)
  2089. # qhasm: c3_stack = c3
  2090. # asm 1: movq <c3=int64#14,>c3_stack=stack64#11
  2091. # asm 2: movq <c3=%rbx,>c3_stack=80(%rsp)
  2092. movq %rbx,80(%rsp)
  2093. # qhasm: mulr4 = 0
  2094. # asm 1: mov $0,>mulr4=int64#5
  2095. # asm 2: mov $0,>mulr4=%r8
  2096. mov $0,%r8
  2097. # qhasm: mulr5 = 0
  2098. # asm 1: mov $0,>mulr5=int64#6
  2099. # asm 2: mov $0,>mulr5=%r9
  2100. mov $0,%r9
  2101. # qhasm: mulr6 = 0
  2102. # asm 1: mov $0,>mulr6=int64#8
  2103. # asm 2: mov $0,>mulr6=%r10
  2104. mov $0,%r10
  2105. # qhasm: mulr7 = 0
  2106. # asm 1: mov $0,>mulr7=int64#9
  2107. # asm 2: mov $0,>mulr7=%r11
  2108. mov $0,%r11
  2109. # qhasm: mulx0 = *(uint64 *)(pp + 64)
  2110. # asm 1: movq 64(<pp=int64#2),>mulx0=int64#10
  2111. # asm 2: movq 64(<pp=%rsi),>mulx0=%r12
  2112. movq 64(%rsi),%r12
  2113. # qhasm: mulrax = *(uint64 *)(qp + 64)
  2114. # asm 1: movq 64(<qp=int64#4),>mulrax=int64#7
  2115. # asm 2: movq 64(<qp=%rcx),>mulrax=%rax
  2116. movq 64(%rcx),%rax
  2117. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  2118. # asm 1: mul <mulx0=int64#10
  2119. # asm 2: mul <mulx0=%r12
  2120. mul %r12
  2121. # qhasm: rt0 = mulrax
  2122. # asm 1: mov <mulrax=int64#7,>rt0=int64#11
  2123. # asm 2: mov <mulrax=%rax,>rt0=%r13
  2124. mov %rax,%r13
  2125. # qhasm: rt1 = mulrdx
  2126. # asm 1: mov <mulrdx=int64#3,>rt1=int64#12
  2127. # asm 2: mov <mulrdx=%rdx,>rt1=%r14
  2128. mov %rdx,%r14
  2129. # qhasm: mulrax = *(uint64 *)(qp + 72)
  2130. # asm 1: movq 72(<qp=int64#4),>mulrax=int64#7
  2131. # asm 2: movq 72(<qp=%rcx),>mulrax=%rax
  2132. movq 72(%rcx),%rax
  2133. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  2134. # asm 1: mul <mulx0=int64#10
  2135. # asm 2: mul <mulx0=%r12
  2136. mul %r12
  2137. # qhasm: carry? rt1 += mulrax
  2138. # asm 1: add <mulrax=int64#7,<rt1=int64#12
  2139. # asm 2: add <mulrax=%rax,<rt1=%r14
  2140. add %rax,%r14
  2141. # qhasm: rt2 = 0
  2142. # asm 1: mov $0,>rt2=int64#13
  2143. # asm 2: mov $0,>rt2=%r15
  2144. mov $0,%r15
  2145. # qhasm: rt2 += mulrdx + carry
  2146. # asm 1: adc <mulrdx=int64#3,<rt2=int64#13
  2147. # asm 2: adc <mulrdx=%rdx,<rt2=%r15
  2148. adc %rdx,%r15
  2149. # qhasm: mulrax = *(uint64 *)(qp + 80)
  2150. # asm 1: movq 80(<qp=int64#4),>mulrax=int64#7
  2151. # asm 2: movq 80(<qp=%rcx),>mulrax=%rax
  2152. movq 80(%rcx),%rax
  2153. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  2154. # asm 1: mul <mulx0=int64#10
  2155. # asm 2: mul <mulx0=%r12
  2156. mul %r12
  2157. # qhasm: carry? rt2 += mulrax
  2158. # asm 1: add <mulrax=int64#7,<rt2=int64#13
  2159. # asm 2: add <mulrax=%rax,<rt2=%r15
  2160. add %rax,%r15
  2161. # qhasm: rt3 = 0
  2162. # asm 1: mov $0,>rt3=int64#14
  2163. # asm 2: mov $0,>rt3=%rbx
  2164. mov $0,%rbx
  2165. # qhasm: rt3 += mulrdx + carry
  2166. # asm 1: adc <mulrdx=int64#3,<rt3=int64#14
  2167. # asm 2: adc <mulrdx=%rdx,<rt3=%rbx
  2168. adc %rdx,%rbx
  2169. # qhasm: mulrax = *(uint64 *)(qp + 88)
  2170. # asm 1: movq 88(<qp=int64#4),>mulrax=int64#7
  2171. # asm 2: movq 88(<qp=%rcx),>mulrax=%rax
  2172. movq 88(%rcx),%rax
  2173. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  2174. # asm 1: mul <mulx0=int64#10
  2175. # asm 2: mul <mulx0=%r12
  2176. mul %r12
  2177. # qhasm: carry? rt3 += mulrax
  2178. # asm 1: add <mulrax=int64#7,<rt3=int64#14
  2179. # asm 2: add <mulrax=%rax,<rt3=%rbx
  2180. add %rax,%rbx
  2181. # qhasm: mulr4 += mulrdx + carry
  2182. # asm 1: adc <mulrdx=int64#3,<mulr4=int64#5
  2183. # asm 2: adc <mulrdx=%rdx,<mulr4=%r8
  2184. adc %rdx,%r8
  2185. # qhasm: mulx1 = *(uint64 *)(pp + 72)
  2186. # asm 1: movq 72(<pp=int64#2),>mulx1=int64#10
  2187. # asm 2: movq 72(<pp=%rsi),>mulx1=%r12
  2188. movq 72(%rsi),%r12
  2189. # qhasm: mulrax = *(uint64 *)(qp + 64)
  2190. # asm 1: movq 64(<qp=int64#4),>mulrax=int64#7
  2191. # asm 2: movq 64(<qp=%rcx),>mulrax=%rax
  2192. movq 64(%rcx),%rax
  2193. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  2194. # asm 1: mul <mulx1=int64#10
  2195. # asm 2: mul <mulx1=%r12
  2196. mul %r12
  2197. # qhasm: carry? rt1 += mulrax
  2198. # asm 1: add <mulrax=int64#7,<rt1=int64#12
  2199. # asm 2: add <mulrax=%rax,<rt1=%r14
  2200. add %rax,%r14
  2201. # qhasm: mulc = 0
  2202. # asm 1: mov $0,>mulc=int64#15
  2203. # asm 2: mov $0,>mulc=%rbp
  2204. mov $0,%rbp
  2205. # qhasm: mulc += mulrdx + carry
  2206. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  2207. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  2208. adc %rdx,%rbp
  2209. # qhasm: mulrax = *(uint64 *)(qp + 72)
  2210. # asm 1: movq 72(<qp=int64#4),>mulrax=int64#7
  2211. # asm 2: movq 72(<qp=%rcx),>mulrax=%rax
  2212. movq 72(%rcx),%rax
  2213. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  2214. # asm 1: mul <mulx1=int64#10
  2215. # asm 2: mul <mulx1=%r12
  2216. mul %r12
  2217. # qhasm: carry? rt2 += mulrax
  2218. # asm 1: add <mulrax=int64#7,<rt2=int64#13
  2219. # asm 2: add <mulrax=%rax,<rt2=%r15
  2220. add %rax,%r15
  2221. # qhasm: mulrdx += 0 + carry
  2222. # asm 1: adc $0,<mulrdx=int64#3
  2223. # asm 2: adc $0,<mulrdx=%rdx
  2224. adc $0,%rdx
  2225. # qhasm: carry? rt2 += mulc
  2226. # asm 1: add <mulc=int64#15,<rt2=int64#13
  2227. # asm 2: add <mulc=%rbp,<rt2=%r15
  2228. add %rbp,%r15
  2229. # qhasm: mulc = 0
  2230. # asm 1: mov $0,>mulc=int64#15
  2231. # asm 2: mov $0,>mulc=%rbp
  2232. mov $0,%rbp
  2233. # qhasm: mulc += mulrdx + carry
  2234. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  2235. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  2236. adc %rdx,%rbp
  2237. # qhasm: mulrax = *(uint64 *)(qp + 80)
  2238. # asm 1: movq 80(<qp=int64#4),>mulrax=int64#7
  2239. # asm 2: movq 80(<qp=%rcx),>mulrax=%rax
  2240. movq 80(%rcx),%rax
  2241. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  2242. # asm 1: mul <mulx1=int64#10
  2243. # asm 2: mul <mulx1=%r12
  2244. mul %r12
  2245. # qhasm: carry? rt3 += mulrax
  2246. # asm 1: add <mulrax=int64#7,<rt3=int64#14
  2247. # asm 2: add <mulrax=%rax,<rt3=%rbx
  2248. add %rax,%rbx
  2249. # qhasm: mulrdx += 0 + carry
  2250. # asm 1: adc $0,<mulrdx=int64#3
  2251. # asm 2: adc $0,<mulrdx=%rdx
  2252. adc $0,%rdx
  2253. # qhasm: carry? rt3 += mulc
  2254. # asm 1: add <mulc=int64#15,<rt3=int64#14
  2255. # asm 2: add <mulc=%rbp,<rt3=%rbx
  2256. add %rbp,%rbx
  2257. # qhasm: mulc = 0
  2258. # asm 1: mov $0,>mulc=int64#15
  2259. # asm 2: mov $0,>mulc=%rbp
  2260. mov $0,%rbp
  2261. # qhasm: mulc += mulrdx + carry
  2262. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  2263. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  2264. adc %rdx,%rbp
  2265. # qhasm: mulrax = *(uint64 *)(qp + 88)
  2266. # asm 1: movq 88(<qp=int64#4),>mulrax=int64#7
  2267. # asm 2: movq 88(<qp=%rcx),>mulrax=%rax
  2268. movq 88(%rcx),%rax
  2269. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  2270. # asm 1: mul <mulx1=int64#10
  2271. # asm 2: mul <mulx1=%r12
  2272. mul %r12
  2273. # qhasm: carry? mulr4 += mulrax
  2274. # asm 1: add <mulrax=int64#7,<mulr4=int64#5
  2275. # asm 2: add <mulrax=%rax,<mulr4=%r8
  2276. add %rax,%r8
  2277. # qhasm: mulrdx += 0 + carry
  2278. # asm 1: adc $0,<mulrdx=int64#3
  2279. # asm 2: adc $0,<mulrdx=%rdx
  2280. adc $0,%rdx
  2281. # qhasm: carry? mulr4 += mulc
  2282. # asm 1: add <mulc=int64#15,<mulr4=int64#5
  2283. # asm 2: add <mulc=%rbp,<mulr4=%r8
  2284. add %rbp,%r8
  2285. # qhasm: mulr5 += mulrdx + carry
  2286. # asm 1: adc <mulrdx=int64#3,<mulr5=int64#6
  2287. # asm 2: adc <mulrdx=%rdx,<mulr5=%r9
  2288. adc %rdx,%r9
  2289. # qhasm: mulx2 = *(uint64 *)(pp + 80)
  2290. # asm 1: movq 80(<pp=int64#2),>mulx2=int64#10
  2291. # asm 2: movq 80(<pp=%rsi),>mulx2=%r12
  2292. movq 80(%rsi),%r12
  2293. # qhasm: mulrax = *(uint64 *)(qp + 64)
  2294. # asm 1: movq 64(<qp=int64#4),>mulrax=int64#7
  2295. # asm 2: movq 64(<qp=%rcx),>mulrax=%rax
  2296. movq 64(%rcx),%rax
  2297. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  2298. # asm 1: mul <mulx2=int64#10
  2299. # asm 2: mul <mulx2=%r12
  2300. mul %r12
  2301. # qhasm: carry? rt2 += mulrax
  2302. # asm 1: add <mulrax=int64#7,<rt2=int64#13
  2303. # asm 2: add <mulrax=%rax,<rt2=%r15
  2304. add %rax,%r15
  2305. # qhasm: mulc = 0
  2306. # asm 1: mov $0,>mulc=int64#15
  2307. # asm 2: mov $0,>mulc=%rbp
  2308. mov $0,%rbp
  2309. # qhasm: mulc += mulrdx + carry
  2310. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  2311. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  2312. adc %rdx,%rbp
  2313. # qhasm: mulrax = *(uint64 *)(qp + 72)
  2314. # asm 1: movq 72(<qp=int64#4),>mulrax=int64#7
  2315. # asm 2: movq 72(<qp=%rcx),>mulrax=%rax
  2316. movq 72(%rcx),%rax
  2317. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  2318. # asm 1: mul <mulx2=int64#10
  2319. # asm 2: mul <mulx2=%r12
  2320. mul %r12
  2321. # qhasm: carry? rt3 += mulrax
  2322. # asm 1: add <mulrax=int64#7,<rt3=int64#14
  2323. # asm 2: add <mulrax=%rax,<rt3=%rbx
  2324. add %rax,%rbx
  2325. # qhasm: mulrdx += 0 + carry
  2326. # asm 1: adc $0,<mulrdx=int64#3
  2327. # asm 2: adc $0,<mulrdx=%rdx
  2328. adc $0,%rdx
  2329. # qhasm: carry? rt3 += mulc
  2330. # asm 1: add <mulc=int64#15,<rt3=int64#14
  2331. # asm 2: add <mulc=%rbp,<rt3=%rbx
  2332. add %rbp,%rbx
  2333. # qhasm: mulc = 0
  2334. # asm 1: mov $0,>mulc=int64#15
  2335. # asm 2: mov $0,>mulc=%rbp
  2336. mov $0,%rbp
  2337. # qhasm: mulc += mulrdx + carry
  2338. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  2339. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  2340. adc %rdx,%rbp
  2341. # qhasm: mulrax = *(uint64 *)(qp + 80)
  2342. # asm 1: movq 80(<qp=int64#4),>mulrax=int64#7
  2343. # asm 2: movq 80(<qp=%rcx),>mulrax=%rax
  2344. movq 80(%rcx),%rax
  2345. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  2346. # asm 1: mul <mulx2=int64#10
  2347. # asm 2: mul <mulx2=%r12
  2348. mul %r12
  2349. # qhasm: carry? mulr4 += mulrax
  2350. # asm 1: add <mulrax=int64#7,<mulr4=int64#5
  2351. # asm 2: add <mulrax=%rax,<mulr4=%r8
  2352. add %rax,%r8
  2353. # qhasm: mulrdx += 0 + carry
  2354. # asm 1: adc $0,<mulrdx=int64#3
  2355. # asm 2: adc $0,<mulrdx=%rdx
  2356. adc $0,%rdx
  2357. # qhasm: carry? mulr4 += mulc
  2358. # asm 1: add <mulc=int64#15,<mulr4=int64#5
  2359. # asm 2: add <mulc=%rbp,<mulr4=%r8
  2360. add %rbp,%r8
  2361. # qhasm: mulc = 0
  2362. # asm 1: mov $0,>mulc=int64#15
  2363. # asm 2: mov $0,>mulc=%rbp
  2364. mov $0,%rbp
  2365. # qhasm: mulc += mulrdx + carry
  2366. # asm 1: adc <mulrdx=int64#3,<mulc=int64#15
  2367. # asm 2: adc <mulrdx=%rdx,<mulc=%rbp
  2368. adc %rdx,%rbp
  2369. # qhasm: mulrax = *(uint64 *)(qp + 88)
  2370. # asm 1: movq 88(<qp=int64#4),>mulrax=int64#7
  2371. # asm 2: movq 88(<qp=%rcx),>mulrax=%rax
  2372. movq 88(%rcx),%rax
  2373. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  2374. # asm 1: mul <mulx2=int64#10
  2375. # asm 2: mul <mulx2=%r12
  2376. mul %r12
  2377. # qhasm: carry? mulr5 += mulrax
  2378. # asm 1: add <mulrax=int64#7,<mulr5=int64#6
  2379. # asm 2: add <mulrax=%rax,<mulr5=%r9
  2380. add %rax,%r9
  2381. # qhasm: mulrdx += 0 + carry
  2382. # asm 1: adc $0,<mulrdx=int64#3
  2383. # asm 2: adc $0,<mulrdx=%rdx
  2384. adc $0,%rdx
  2385. # qhasm: carry? mulr5 += mulc
  2386. # asm 1: add <mulc=int64#15,<mulr5=int64#6
  2387. # asm 2: add <mulc=%rbp,<mulr5=%r9
  2388. add %rbp,%r9
  2389. # qhasm: mulr6 += mulrdx + carry
  2390. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#8
  2391. # asm 2: adc <mulrdx=%rdx,<mulr6=%r10
  2392. adc %rdx,%r10
  2393. # qhasm: mulx3 = *(uint64 *)(pp + 88)
  2394. # asm 1: movq 88(<pp=int64#2),>mulx3=int64#2
  2395. # asm 2: movq 88(<pp=%rsi),>mulx3=%rsi
  2396. movq 88(%rsi),%rsi
  2397. # qhasm: mulrax = *(uint64 *)(qp + 64)
  2398. # asm 1: movq 64(<qp=int64#4),>mulrax=int64#7
  2399. # asm 2: movq 64(<qp=%rcx),>mulrax=%rax
  2400. movq 64(%rcx),%rax
  2401. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  2402. # asm 1: mul <mulx3=int64#2
  2403. # asm 2: mul <mulx3=%rsi
  2404. mul %rsi
  2405. # qhasm: carry? rt3 += mulrax
  2406. # asm 1: add <mulrax=int64#7,<rt3=int64#14
  2407. # asm 2: add <mulrax=%rax,<rt3=%rbx
  2408. add %rax,%rbx
  2409. # qhasm: mulc = 0
  2410. # asm 1: mov $0,>mulc=int64#10
  2411. # asm 2: mov $0,>mulc=%r12
  2412. mov $0,%r12
  2413. # qhasm: mulc += mulrdx + carry
  2414. # asm 1: adc <mulrdx=int64#3,<mulc=int64#10
  2415. # asm 2: adc <mulrdx=%rdx,<mulc=%r12
  2416. adc %rdx,%r12
  2417. # qhasm: mulrax = *(uint64 *)(qp + 72)
  2418. # asm 1: movq 72(<qp=int64#4),>mulrax=int64#7
  2419. # asm 2: movq 72(<qp=%rcx),>mulrax=%rax
  2420. movq 72(%rcx),%rax
  2421. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  2422. # asm 1: mul <mulx3=int64#2
  2423. # asm 2: mul <mulx3=%rsi
  2424. mul %rsi
  2425. # qhasm: carry? mulr4 += mulrax
  2426. # asm 1: add <mulrax=int64#7,<mulr4=int64#5
  2427. # asm 2: add <mulrax=%rax,<mulr4=%r8
  2428. add %rax,%r8
  2429. # qhasm: mulrdx += 0 + carry
  2430. # asm 1: adc $0,<mulrdx=int64#3
  2431. # asm 2: adc $0,<mulrdx=%rdx
  2432. adc $0,%rdx
  2433. # qhasm: carry? mulr4 += mulc
  2434. # asm 1: add <mulc=int64#10,<mulr4=int64#5
  2435. # asm 2: add <mulc=%r12,<mulr4=%r8
  2436. add %r12,%r8
  2437. # qhasm: mulc = 0
  2438. # asm 1: mov $0,>mulc=int64#10
  2439. # asm 2: mov $0,>mulc=%r12
  2440. mov $0,%r12
  2441. # qhasm: mulc += mulrdx + carry
  2442. # asm 1: adc <mulrdx=int64#3,<mulc=int64#10
  2443. # asm 2: adc <mulrdx=%rdx,<mulc=%r12
  2444. adc %rdx,%r12
  2445. # qhasm: mulrax = *(uint64 *)(qp + 80)
  2446. # asm 1: movq 80(<qp=int64#4),>mulrax=int64#7
  2447. # asm 2: movq 80(<qp=%rcx),>mulrax=%rax
  2448. movq 80(%rcx),%rax
  2449. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  2450. # asm 1: mul <mulx3=int64#2
  2451. # asm 2: mul <mulx3=%rsi
  2452. mul %rsi
  2453. # qhasm: carry? mulr5 += mulrax
  2454. # asm 1: add <mulrax=int64#7,<mulr5=int64#6
  2455. # asm 2: add <mulrax=%rax,<mulr5=%r9
  2456. add %rax,%r9
  2457. # qhasm: mulrdx += 0 + carry
  2458. # asm 1: adc $0,<mulrdx=int64#3
  2459. # asm 2: adc $0,<mulrdx=%rdx
  2460. adc $0,%rdx
  2461. # qhasm: carry? mulr5 += mulc
  2462. # asm 1: add <mulc=int64#10,<mulr5=int64#6
  2463. # asm 2: add <mulc=%r12,<mulr5=%r9
  2464. add %r12,%r9
  2465. # qhasm: mulc = 0
  2466. # asm 1: mov $0,>mulc=int64#10
  2467. # asm 2: mov $0,>mulc=%r12
  2468. mov $0,%r12
  2469. # qhasm: mulc += mulrdx + carry
  2470. # asm 1: adc <mulrdx=int64#3,<mulc=int64#10
  2471. # asm 2: adc <mulrdx=%rdx,<mulc=%r12
  2472. adc %rdx,%r12
  2473. # qhasm: mulrax = *(uint64 *)(qp + 88)
  2474. # asm 1: movq 88(<qp=int64#4),>mulrax=int64#7
  2475. # asm 2: movq 88(<qp=%rcx),>mulrax=%rax
  2476. movq 88(%rcx),%rax
  2477. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  2478. # asm 1: mul <mulx3=int64#2
  2479. # asm 2: mul <mulx3=%rsi
  2480. mul %rsi
  2481. # qhasm: carry? mulr6 += mulrax
  2482. # asm 1: add <mulrax=int64#7,<mulr6=int64#8
  2483. # asm 2: add <mulrax=%rax,<mulr6=%r10
  2484. add %rax,%r10
  2485. # qhasm: mulrdx += 0 + carry
  2486. # asm 1: adc $0,<mulrdx=int64#3
  2487. # asm 2: adc $0,<mulrdx=%rdx
  2488. adc $0,%rdx
  2489. # qhasm: carry? mulr6 += mulc
  2490. # asm 1: add <mulc=int64#10,<mulr6=int64#8
  2491. # asm 2: add <mulc=%r12,<mulr6=%r10
  2492. add %r12,%r10
  2493. # qhasm: mulr7 += mulrdx + carry
  2494. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#9
  2495. # asm 2: adc <mulrdx=%rdx,<mulr7=%r11
  2496. adc %rdx,%r11
  2497. # qhasm: mulrax = mulr4
  2498. # asm 1: mov <mulr4=int64#5,>mulrax=int64#7
  2499. # asm 2: mov <mulr4=%r8,>mulrax=%rax
  2500. mov %r8,%rax
  2501. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  2502. mulq CRYPTO_NAMESPACE(38)(%rip)
  2503. # qhasm: mulr4 = mulrax
  2504. # asm 1: mov <mulrax=int64#7,>mulr4=int64#2
  2505. # asm 2: mov <mulrax=%rax,>mulr4=%rsi
  2506. mov %rax,%rsi
  2507. # qhasm: mulrax = mulr5
  2508. # asm 1: mov <mulr5=int64#6,>mulrax=int64#7
  2509. # asm 2: mov <mulr5=%r9,>mulrax=%rax
  2510. mov %r9,%rax
  2511. # qhasm: mulr5 = mulrdx
  2512. # asm 1: mov <mulrdx=int64#3,>mulr5=int64#4
  2513. # asm 2: mov <mulrdx=%rdx,>mulr5=%rcx
  2514. mov %rdx,%rcx
  2515. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  2516. mulq CRYPTO_NAMESPACE(38)(%rip)
  2517. # qhasm: carry? mulr5 += mulrax
  2518. # asm 1: add <mulrax=int64#7,<mulr5=int64#4
  2519. # asm 2: add <mulrax=%rax,<mulr5=%rcx
  2520. add %rax,%rcx
  2521. # qhasm: mulrax = mulr6
  2522. # asm 1: mov <mulr6=int64#8,>mulrax=int64#7
  2523. # asm 2: mov <mulr6=%r10,>mulrax=%rax
  2524. mov %r10,%rax
  2525. # qhasm: mulr6 = 0
  2526. # asm 1: mov $0,>mulr6=int64#5
  2527. # asm 2: mov $0,>mulr6=%r8
  2528. mov $0,%r8
  2529. # qhasm: mulr6 += mulrdx + carry
  2530. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#5
  2531. # asm 2: adc <mulrdx=%rdx,<mulr6=%r8
  2532. adc %rdx,%r8
  2533. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  2534. mulq CRYPTO_NAMESPACE(38)(%rip)
  2535. # qhasm: carry? mulr6 += mulrax
  2536. # asm 1: add <mulrax=int64#7,<mulr6=int64#5
  2537. # asm 2: add <mulrax=%rax,<mulr6=%r8
  2538. add %rax,%r8
  2539. # qhasm: mulrax = mulr7
  2540. # asm 1: mov <mulr7=int64#9,>mulrax=int64#7
  2541. # asm 2: mov <mulr7=%r11,>mulrax=%rax
  2542. mov %r11,%rax
  2543. # qhasm: mulr7 = 0
  2544. # asm 1: mov $0,>mulr7=int64#6
  2545. # asm 2: mov $0,>mulr7=%r9
  2546. mov $0,%r9
  2547. # qhasm: mulr7 += mulrdx + carry
  2548. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#6
  2549. # asm 2: adc <mulrdx=%rdx,<mulr7=%r9
  2550. adc %rdx,%r9
  2551. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  2552. mulq CRYPTO_NAMESPACE(38)(%rip)
  2553. # qhasm: carry? mulr7 += mulrax
  2554. # asm 1: add <mulrax=int64#7,<mulr7=int64#6
  2555. # asm 2: add <mulrax=%rax,<mulr7=%r9
  2556. add %rax,%r9
  2557. # qhasm: mulr8 = 0
  2558. # asm 1: mov $0,>mulr8=int64#7
  2559. # asm 2: mov $0,>mulr8=%rax
  2560. mov $0,%rax
  2561. # qhasm: mulr8 += mulrdx + carry
  2562. # asm 1: adc <mulrdx=int64#3,<mulr8=int64#7
  2563. # asm 2: adc <mulrdx=%rdx,<mulr8=%rax
  2564. adc %rdx,%rax
  2565. # qhasm: carry? rt0 += mulr4
  2566. # asm 1: add <mulr4=int64#2,<rt0=int64#11
  2567. # asm 2: add <mulr4=%rsi,<rt0=%r13
  2568. add %rsi,%r13
  2569. # qhasm: carry? rt1 += mulr5 + carry
  2570. # asm 1: adc <mulr5=int64#4,<rt1=int64#12
  2571. # asm 2: adc <mulr5=%rcx,<rt1=%r14
  2572. adc %rcx,%r14
  2573. # qhasm: carry? rt2 += mulr6 + carry
  2574. # asm 1: adc <mulr6=int64#5,<rt2=int64#13
  2575. # asm 2: adc <mulr6=%r8,<rt2=%r15
  2576. adc %r8,%r15
  2577. # qhasm: carry? rt3 += mulr7 + carry
  2578. # asm 1: adc <mulr7=int64#6,<rt3=int64#14
  2579. # asm 2: adc <mulr7=%r9,<rt3=%rbx
  2580. adc %r9,%rbx
  2581. # qhasm: mulzero = 0
  2582. # asm 1: mov $0,>mulzero=int64#2
  2583. # asm 2: mov $0,>mulzero=%rsi
  2584. mov $0,%rsi
  2585. # qhasm: mulr8 += mulzero + carry
  2586. # asm 1: adc <mulzero=int64#2,<mulr8=int64#7
  2587. # asm 2: adc <mulzero=%rsi,<mulr8=%rax
  2588. adc %rsi,%rax
  2589. # qhasm: mulr8 *= 38
  2590. # asm 1: imulq $38,<mulr8=int64#7,>mulr8=int64#3
  2591. # asm 2: imulq $38,<mulr8=%rax,>mulr8=%rdx
  2592. imulq $38,%rax,%rdx
  2593. # qhasm: carry? rt0 += mulr8
  2594. # asm 1: add <mulr8=int64#3,<rt0=int64#11
  2595. # asm 2: add <mulr8=%rdx,<rt0=%r13
  2596. add %rdx,%r13
  2597. # qhasm: carry? rt1 += mulzero + carry
  2598. # asm 1: adc <mulzero=int64#2,<rt1=int64#12
  2599. # asm 2: adc <mulzero=%rsi,<rt1=%r14
  2600. adc %rsi,%r14
  2601. # qhasm: carry? rt2 += mulzero + carry
  2602. # asm 1: adc <mulzero=int64#2,<rt2=int64#13
  2603. # asm 2: adc <mulzero=%rsi,<rt2=%r15
  2604. adc %rsi,%r15
  2605. # qhasm: carry? rt3 += mulzero + carry
  2606. # asm 1: adc <mulzero=int64#2,<rt3=int64#14
  2607. # asm 2: adc <mulzero=%rsi,<rt3=%rbx
  2608. adc %rsi,%rbx
  2609. # qhasm: mulzero += mulzero + carry
  2610. # asm 1: adc <mulzero=int64#2,<mulzero=int64#2
  2611. # asm 2: adc <mulzero=%rsi,<mulzero=%rsi
  2612. adc %rsi,%rsi
  2613. # qhasm: mulzero *= 38
  2614. # asm 1: imulq $38,<mulzero=int64#2,>mulzero=int64#2
  2615. # asm 2: imulq $38,<mulzero=%rsi,>mulzero=%rsi
  2616. imulq $38,%rsi,%rsi
  2617. # qhasm: rt0 += mulzero
  2618. # asm 1: add <mulzero=int64#2,<rt0=int64#11
  2619. # asm 2: add <mulzero=%rsi,<rt0=%r13
  2620. add %rsi,%r13
  2621. # qhasm: carry? rt0 += rt0
  2622. # asm 1: add <rt0=int64#11,<rt0=int64#11
  2623. # asm 2: add <rt0=%r13,<rt0=%r13
  2624. add %r13,%r13
  2625. # qhasm: carry? rt1 += rt1 + carry
  2626. # asm 1: adc <rt1=int64#12,<rt1=int64#12
  2627. # asm 2: adc <rt1=%r14,<rt1=%r14
  2628. adc %r14,%r14
  2629. # qhasm: carry? rt2 += rt2 + carry
  2630. # asm 1: adc <rt2=int64#13,<rt2=int64#13
  2631. # asm 2: adc <rt2=%r15,<rt2=%r15
  2632. adc %r15,%r15
  2633. # qhasm: carry? rt3 += rt3 + carry
  2634. # asm 1: adc <rt3=int64#14,<rt3=int64#14
  2635. # asm 2: adc <rt3=%rbx,<rt3=%rbx
  2636. adc %rbx,%rbx
  2637. # qhasm: addt0 = 0
  2638. # asm 1: mov $0,>addt0=int64#2
  2639. # asm 2: mov $0,>addt0=%rsi
  2640. mov $0,%rsi
  2641. # qhasm: addt1 = 38
  2642. # asm 1: mov $38,>addt1=int64#3
  2643. # asm 2: mov $38,>addt1=%rdx
  2644. mov $38,%rdx
  2645. # qhasm: addt1 = addt0 if !carry
  2646. # asm 1: cmovae <addt0=int64#2,<addt1=int64#3
  2647. # asm 2: cmovae <addt0=%rsi,<addt1=%rdx
  2648. cmovae %rsi,%rdx
  2649. # qhasm: carry? rt0 += addt1
  2650. # asm 1: add <addt1=int64#3,<rt0=int64#11
  2651. # asm 2: add <addt1=%rdx,<rt0=%r13
  2652. add %rdx,%r13
  2653. # qhasm: carry? rt1 += addt0 + carry
  2654. # asm 1: adc <addt0=int64#2,<rt1=int64#12
  2655. # asm 2: adc <addt0=%rsi,<rt1=%r14
  2656. adc %rsi,%r14
  2657. # qhasm: carry? rt2 += addt0 + carry
  2658. # asm 1: adc <addt0=int64#2,<rt2=int64#13
  2659. # asm 2: adc <addt0=%rsi,<rt2=%r15
  2660. adc %rsi,%r15
  2661. # qhasm: carry? rt3 += addt0 + carry
  2662. # asm 1: adc <addt0=int64#2,<rt3=int64#14
  2663. # asm 2: adc <addt0=%rsi,<rt3=%rbx
  2664. adc %rsi,%rbx
  2665. # qhasm: addt0 = addt1 if carry
  2666. # asm 1: cmovc <addt1=int64#3,<addt0=int64#2
  2667. # asm 2: cmovc <addt1=%rdx,<addt0=%rsi
  2668. cmovc %rdx,%rsi
  2669. # qhasm: rt0 += addt0
  2670. # asm 1: add <addt0=int64#2,<rt0=int64#11
  2671. # asm 2: add <addt0=%rsi,<rt0=%r13
  2672. add %rsi,%r13
  2673. # qhasm: rz0 = rt0
  2674. # asm 1: mov <rt0=int64#11,>rz0=int64#2
  2675. # asm 2: mov <rt0=%r13,>rz0=%rsi
  2676. mov %r13,%rsi
  2677. # qhasm: rz1 = rt1
  2678. # asm 1: mov <rt1=int64#12,>rz1=int64#3
  2679. # asm 2: mov <rt1=%r14,>rz1=%rdx
  2680. mov %r14,%rdx
  2681. # qhasm: rz2 = rt2
  2682. # asm 1: mov <rt2=int64#13,>rz2=int64#4
  2683. # asm 2: mov <rt2=%r15,>rz2=%rcx
  2684. mov %r15,%rcx
  2685. # qhasm: rz3 = rt3
  2686. # asm 1: mov <rt3=int64#14,>rz3=int64#5
  2687. # asm 2: mov <rt3=%rbx,>rz3=%r8
  2688. mov %rbx,%r8
  2689. # qhasm: carry? rz0 += c0_stack
  2690. # asm 1: addq <c0_stack=stack64#8,<rz0=int64#2
  2691. # asm 2: addq <c0_stack=56(%rsp),<rz0=%rsi
  2692. addq 56(%rsp),%rsi
  2693. # qhasm: carry? rz1 += c1_stack + carry
  2694. # asm 1: adcq <c1_stack=stack64#9,<rz1=int64#3
  2695. # asm 2: adcq <c1_stack=64(%rsp),<rz1=%rdx
  2696. adcq 64(%rsp),%rdx
  2697. # qhasm: carry? rz2 += c2_stack + carry
  2698. # asm 1: adcq <c2_stack=stack64#10,<rz2=int64#4
  2699. # asm 2: adcq <c2_stack=72(%rsp),<rz2=%rcx
  2700. adcq 72(%rsp),%rcx
  2701. # qhasm: carry? rz3 += c3_stack + carry
  2702. # asm 1: adcq <c3_stack=stack64#11,<rz3=int64#5
  2703. # asm 2: adcq <c3_stack=80(%rsp),<rz3=%r8
  2704. adcq 80(%rsp),%r8
  2705. # qhasm: addt0 = 0
  2706. # asm 1: mov $0,>addt0=int64#6
  2707. # asm 2: mov $0,>addt0=%r9
  2708. mov $0,%r9
  2709. # qhasm: addt1 = 38
  2710. # asm 1: mov $38,>addt1=int64#7
  2711. # asm 2: mov $38,>addt1=%rax
  2712. mov $38,%rax
  2713. # qhasm: addt1 = addt0 if !carry
  2714. # asm 1: cmovae <addt0=int64#6,<addt1=int64#7
  2715. # asm 2: cmovae <addt0=%r9,<addt1=%rax
  2716. cmovae %r9,%rax
  2717. # qhasm: carry? rz0 += addt1
  2718. # asm 1: add <addt1=int64#7,<rz0=int64#2
  2719. # asm 2: add <addt1=%rax,<rz0=%rsi
  2720. add %rax,%rsi
  2721. # qhasm: carry? rz1 += addt0 + carry
  2722. # asm 1: adc <addt0=int64#6,<rz1=int64#3
  2723. # asm 2: adc <addt0=%r9,<rz1=%rdx
  2724. adc %r9,%rdx
  2725. # qhasm: carry? rz2 += addt0 + carry
  2726. # asm 1: adc <addt0=int64#6,<rz2=int64#4
  2727. # asm 2: adc <addt0=%r9,<rz2=%rcx
  2728. adc %r9,%rcx
  2729. # qhasm: carry? rz3 += addt0 + carry
  2730. # asm 1: adc <addt0=int64#6,<rz3=int64#5
  2731. # asm 2: adc <addt0=%r9,<rz3=%r8
  2732. adc %r9,%r8
  2733. # qhasm: addt0 = addt1 if carry
  2734. # asm 1: cmovc <addt1=int64#7,<addt0=int64#6
  2735. # asm 2: cmovc <addt1=%rax,<addt0=%r9
  2736. cmovc %rax,%r9
  2737. # qhasm: rz0 += addt0
  2738. # asm 1: add <addt0=int64#6,<rz0=int64#2
  2739. # asm 2: add <addt0=%r9,<rz0=%rsi
  2740. add %r9,%rsi
  2741. # qhasm: carry? rt0 -= c0_stack
  2742. # asm 1: subq <c0_stack=stack64#8,<rt0=int64#11
  2743. # asm 2: subq <c0_stack=56(%rsp),<rt0=%r13
  2744. subq 56(%rsp),%r13
  2745. # qhasm: carry? rt1 -= c1_stack - carry
  2746. # asm 1: sbbq <c1_stack=stack64#9,<rt1=int64#12
  2747. # asm 2: sbbq <c1_stack=64(%rsp),<rt1=%r14
  2748. sbbq 64(%rsp),%r14
  2749. # qhasm: carry? rt2 -= c2_stack - carry
  2750. # asm 1: sbbq <c2_stack=stack64#10,<rt2=int64#13
  2751. # asm 2: sbbq <c2_stack=72(%rsp),<rt2=%r15
  2752. sbbq 72(%rsp),%r15
  2753. # qhasm: carry? rt3 -= c3_stack - carry
  2754. # asm 1: sbbq <c3_stack=stack64#11,<rt3=int64#14
  2755. # asm 2: sbbq <c3_stack=80(%rsp),<rt3=%rbx
  2756. sbbq 80(%rsp),%rbx
  2757. # qhasm: subt0 = 0
  2758. # asm 1: mov $0,>subt0=int64#6
  2759. # asm 2: mov $0,>subt0=%r9
  2760. mov $0,%r9
  2761. # qhasm: subt1 = 38
  2762. # asm 1: mov $38,>subt1=int64#7
  2763. # asm 2: mov $38,>subt1=%rax
  2764. mov $38,%rax
  2765. # qhasm: subt1 = subt0 if !carry
  2766. # asm 1: cmovae <subt0=int64#6,<subt1=int64#7
  2767. # asm 2: cmovae <subt0=%r9,<subt1=%rax
  2768. cmovae %r9,%rax
  2769. # qhasm: carry? rt0 -= subt1
  2770. # asm 1: sub <subt1=int64#7,<rt0=int64#11
  2771. # asm 2: sub <subt1=%rax,<rt0=%r13
  2772. sub %rax,%r13
  2773. # qhasm: carry? rt1 -= subt0 - carry
  2774. # asm 1: sbb <subt0=int64#6,<rt1=int64#12
  2775. # asm 2: sbb <subt0=%r9,<rt1=%r14
  2776. sbb %r9,%r14
  2777. # qhasm: carry? rt2 -= subt0 - carry
  2778. # asm 1: sbb <subt0=int64#6,<rt2=int64#13
  2779. # asm 2: sbb <subt0=%r9,<rt2=%r15
  2780. sbb %r9,%r15
  2781. # qhasm: carry? rt3 -= subt0 - carry
  2782. # asm 1: sbb <subt0=int64#6,<rt3=int64#14
  2783. # asm 2: sbb <subt0=%r9,<rt3=%rbx
  2784. sbb %r9,%rbx
  2785. # qhasm: subt0 = subt1 if carry
  2786. # asm 1: cmovc <subt1=int64#7,<subt0=int64#6
  2787. # asm 2: cmovc <subt1=%rax,<subt0=%r9
  2788. cmovc %rax,%r9
  2789. # qhasm: rt0 -= subt0
  2790. # asm 1: sub <subt0=int64#6,<rt0=int64#11
  2791. # asm 2: sub <subt0=%r9,<rt0=%r13
  2792. sub %r9,%r13
  2793. # qhasm: *(uint64 *)(rp + 32) = rz0
  2794. # asm 1: movq <rz0=int64#2,32(<rp=int64#1)
  2795. # asm 2: movq <rz0=%rsi,32(<rp=%rdi)
  2796. movq %rsi,32(%rdi)
  2797. # qhasm: *(uint64 *)(rp + 40) = rz1
  2798. # asm 1: movq <rz1=int64#3,40(<rp=int64#1)
  2799. # asm 2: movq <rz1=%rdx,40(<rp=%rdi)
  2800. movq %rdx,40(%rdi)
  2801. # qhasm: *(uint64 *)(rp + 48) = rz2
  2802. # asm 1: movq <rz2=int64#4,48(<rp=int64#1)
  2803. # asm 2: movq <rz2=%rcx,48(<rp=%rdi)
  2804. movq %rcx,48(%rdi)
  2805. # qhasm: *(uint64 *)(rp + 56) = rz3
  2806. # asm 1: movq <rz3=int64#5,56(<rp=int64#1)
  2807. # asm 2: movq <rz3=%r8,56(<rp=%rdi)
  2808. movq %r8,56(%rdi)
  2809. # qhasm: *(uint64 *)(rp + 96) = rt0
  2810. # asm 1: movq <rt0=int64#11,96(<rp=int64#1)
  2811. # asm 2: movq <rt0=%r13,96(<rp=%rdi)
  2812. movq %r13,96(%rdi)
  2813. # qhasm: *(uint64 *)(rp + 104) = rt1
  2814. # asm 1: movq <rt1=int64#12,104(<rp=int64#1)
  2815. # asm 2: movq <rt1=%r14,104(<rp=%rdi)
  2816. movq %r14,104(%rdi)
  2817. # qhasm: *(uint64 *)(rp + 112) = rt2
  2818. # asm 1: movq <rt2=int64#13,112(<rp=int64#1)
  2819. # asm 2: movq <rt2=%r15,112(<rp=%rdi)
  2820. movq %r15,112(%rdi)
  2821. # qhasm: *(uint64 *)(rp + 120) = rt3
  2822. # asm 1: movq <rt3=int64#14,120(<rp=int64#1)
  2823. # asm 2: movq <rt3=%rbx,120(<rp=%rdi)
  2824. movq %rbx,120(%rdi)
  2825. # qhasm: caller1 = caller1_stack
  2826. # asm 1: movq <caller1_stack=stack64#1,>caller1=int64#9
  2827. # asm 2: movq <caller1_stack=0(%rsp),>caller1=%r11
  2828. movq 0(%rsp),%r11
  2829. # qhasm: caller2 = caller2_stack
  2830. # asm 1: movq <caller2_stack=stack64#2,>caller2=int64#10
  2831. # asm 2: movq <caller2_stack=8(%rsp),>caller2=%r12
  2832. movq 8(%rsp),%r12
  2833. # qhasm: caller3 = caller3_stack
  2834. # asm 1: movq <caller3_stack=stack64#3,>caller3=int64#11
  2835. # asm 2: movq <caller3_stack=16(%rsp),>caller3=%r13
  2836. movq 16(%rsp),%r13
  2837. # qhasm: caller4 = caller4_stack
  2838. # asm 1: movq <caller4_stack=stack64#4,>caller4=int64#12
  2839. # asm 2: movq <caller4_stack=24(%rsp),>caller4=%r14
  2840. movq 24(%rsp),%r14
  2841. # qhasm: caller5 = caller5_stack
  2842. # asm 1: movq <caller5_stack=stack64#5,>caller5=int64#13
  2843. # asm 2: movq <caller5_stack=32(%rsp),>caller5=%r15
  2844. movq 32(%rsp),%r15
  2845. # qhasm: caller6 = caller6_stack
  2846. # asm 1: movq <caller6_stack=stack64#6,>caller6=int64#14
  2847. # asm 2: movq <caller6_stack=40(%rsp),>caller6=%rbx
  2848. movq 40(%rsp),%rbx
  2849. # qhasm: caller7 = caller7_stack
  2850. # asm 1: movq <caller7_stack=stack64#7,>caller7=int64#15
  2851. # asm 2: movq <caller7_stack=48(%rsp),>caller7=%rbp
  2852. movq 48(%rsp),%rbp
  2853. # qhasm: leave
  2854. add %r11,%rsp
  2855. mov %rdi,%rax
  2856. mov %rsi,%rdx
  2857. ret