ge25519_p1p1_to_p3.S 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926
  1. # qhasm: int64 rp
  2. # qhasm: int64 pp
  3. # qhasm: input rp
  4. # qhasm: input pp
  5. # qhasm: int64 caller1
  6. # qhasm: int64 caller2
  7. # qhasm: int64 caller3
  8. # qhasm: int64 caller4
  9. # qhasm: int64 caller5
  10. # qhasm: int64 caller6
  11. # qhasm: int64 caller7
  12. # qhasm: caller caller1
  13. # qhasm: caller caller2
  14. # qhasm: caller caller3
  15. # qhasm: caller caller4
  16. # qhasm: caller caller5
  17. # qhasm: caller caller6
  18. # qhasm: caller caller7
  19. # qhasm: stack64 caller1_stack
  20. # qhasm: stack64 caller2_stack
  21. # qhasm: stack64 caller3_stack
  22. # qhasm: stack64 caller4_stack
  23. # qhasm: stack64 caller5_stack
  24. # qhasm: stack64 caller6_stack
  25. # qhasm: stack64 caller7_stack
  26. # qhasm: int64 rx0
  27. # qhasm: int64 rx1
  28. # qhasm: int64 rx2
  29. # qhasm: int64 rx3
  30. # qhasm: int64 ry0
  31. # qhasm: int64 ry1
  32. # qhasm: int64 ry2
  33. # qhasm: int64 ry3
  34. # qhasm: int64 rz0
  35. # qhasm: int64 rz1
  36. # qhasm: int64 rz2
  37. # qhasm: int64 rz3
  38. # qhasm: int64 rt0
  39. # qhasm: int64 rt1
  40. # qhasm: int64 rt2
  41. # qhasm: int64 rt3
  42. # qhasm: int64 mulr4
  43. # qhasm: int64 mulr5
  44. # qhasm: int64 mulr6
  45. # qhasm: int64 mulr7
  46. # qhasm: int64 mulr8
  47. # qhasm: int64 mulrax
  48. # qhasm: int64 mulrdx
  49. # qhasm: int64 mulx0
  50. # qhasm: int64 mulx1
  51. # qhasm: int64 mulx2
  52. # qhasm: int64 mulx3
  53. # qhasm: int64 mulc
  54. # qhasm: int64 mulzero
  55. # qhasm: int64 muli38
  56. # qhasm: enter CRYPTO_NAMESPACE(ge25519_p1p1_to_p3)
  57. .text
  58. .p2align 5
  59. .globl _CRYPTO_NAMESPACE(ge25519_p1p1_to_p3)
  60. .globl CRYPTO_NAMESPACE(ge25519_p1p1_to_p3)
  61. _CRYPTO_NAMESPACE(ge25519_p1p1_to_p3):
  62. CRYPTO_NAMESPACE(ge25519_p1p1_to_p3):
  63. mov %rsp,%r11
  64. and $31,%r11
  65. add $64,%r11
  66. sub %r11,%rsp
  67. # qhasm: caller1_stack = caller1
  68. # asm 1: movq <caller1=int64#9,>caller1_stack=stack64#1
  69. # asm 2: movq <caller1=%r11,>caller1_stack=0(%rsp)
  70. movq %r11,0(%rsp)
  71. # qhasm: caller2_stack = caller2
  72. # asm 1: movq <caller2=int64#10,>caller2_stack=stack64#2
  73. # asm 2: movq <caller2=%r12,>caller2_stack=8(%rsp)
  74. movq %r12,8(%rsp)
  75. # qhasm: caller3_stack = caller3
  76. # asm 1: movq <caller3=int64#11,>caller3_stack=stack64#3
  77. # asm 2: movq <caller3=%r13,>caller3_stack=16(%rsp)
  78. movq %r13,16(%rsp)
  79. # qhasm: caller4_stack = caller4
  80. # asm 1: movq <caller4=int64#12,>caller4_stack=stack64#4
  81. # asm 2: movq <caller4=%r14,>caller4_stack=24(%rsp)
  82. movq %r14,24(%rsp)
  83. # qhasm: caller5_stack = caller5
  84. # asm 1: movq <caller5=int64#13,>caller5_stack=stack64#5
  85. # asm 2: movq <caller5=%r15,>caller5_stack=32(%rsp)
  86. movq %r15,32(%rsp)
  87. # qhasm: caller6_stack = caller6
  88. # asm 1: movq <caller6=int64#14,>caller6_stack=stack64#6
  89. # asm 2: movq <caller6=%rbx,>caller6_stack=40(%rsp)
  90. movq %rbx,40(%rsp)
  91. # qhasm: caller7_stack = caller7
  92. # asm 1: movq <caller7=int64#15,>caller7_stack=stack64#7
  93. # asm 2: movq <caller7=%rbp,>caller7_stack=48(%rsp)
  94. movq %rbp,48(%rsp)
  95. # qhasm: mulr4 = 0
  96. # asm 1: mov $0,>mulr4=int64#4
  97. # asm 2: mov $0,>mulr4=%rcx
  98. mov $0,%rcx
  99. # qhasm: mulr5 = 0
  100. # asm 1: mov $0,>mulr5=int64#5
  101. # asm 2: mov $0,>mulr5=%r8
  102. mov $0,%r8
  103. # qhasm: mulr6 = 0
  104. # asm 1: mov $0,>mulr6=int64#6
  105. # asm 2: mov $0,>mulr6=%r9
  106. mov $0,%r9
  107. # qhasm: mulr7 = 0
  108. # asm 1: mov $0,>mulr7=int64#8
  109. # asm 2: mov $0,>mulr7=%r10
  110. mov $0,%r10
  111. # qhasm: mulx0 = *(uint64 *)(pp + 0)
  112. # asm 1: movq 0(<pp=int64#2),>mulx0=int64#9
  113. # asm 2: movq 0(<pp=%rsi),>mulx0=%r11
  114. movq 0(%rsi),%r11
  115. # qhasm: mulrax = *(uint64 *)(pp + 96)
  116. # asm 1: movq 96(<pp=int64#2),>mulrax=int64#7
  117. # asm 2: movq 96(<pp=%rsi),>mulrax=%rax
  118. movq 96(%rsi),%rax
  119. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  120. # asm 1: mul <mulx0=int64#9
  121. # asm 2: mul <mulx0=%r11
  122. mul %r11
  123. # qhasm: rx0 = mulrax
  124. # asm 1: mov <mulrax=int64#7,>rx0=int64#10
  125. # asm 2: mov <mulrax=%rax,>rx0=%r12
  126. mov %rax,%r12
  127. # qhasm: rx1 = mulrdx
  128. # asm 1: mov <mulrdx=int64#3,>rx1=int64#11
  129. # asm 2: mov <mulrdx=%rdx,>rx1=%r13
  130. mov %rdx,%r13
  131. # qhasm: mulrax = *(uint64 *)(pp + 104)
  132. # asm 1: movq 104(<pp=int64#2),>mulrax=int64#7
  133. # asm 2: movq 104(<pp=%rsi),>mulrax=%rax
  134. movq 104(%rsi),%rax
  135. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  136. # asm 1: mul <mulx0=int64#9
  137. # asm 2: mul <mulx0=%r11
  138. mul %r11
  139. # qhasm: carry? rx1 += mulrax
  140. # asm 1: add <mulrax=int64#7,<rx1=int64#11
  141. # asm 2: add <mulrax=%rax,<rx1=%r13
  142. add %rax,%r13
  143. # qhasm: rx2 = 0
  144. # asm 1: mov $0,>rx2=int64#12
  145. # asm 2: mov $0,>rx2=%r14
  146. mov $0,%r14
  147. # qhasm: rx2 += mulrdx + carry
  148. # asm 1: adc <mulrdx=int64#3,<rx2=int64#12
  149. # asm 2: adc <mulrdx=%rdx,<rx2=%r14
  150. adc %rdx,%r14
  151. # qhasm: mulrax = *(uint64 *)(pp + 112)
  152. # asm 1: movq 112(<pp=int64#2),>mulrax=int64#7
  153. # asm 2: movq 112(<pp=%rsi),>mulrax=%rax
  154. movq 112(%rsi),%rax
  155. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  156. # asm 1: mul <mulx0=int64#9
  157. # asm 2: mul <mulx0=%r11
  158. mul %r11
  159. # qhasm: carry? rx2 += mulrax
  160. # asm 1: add <mulrax=int64#7,<rx2=int64#12
  161. # asm 2: add <mulrax=%rax,<rx2=%r14
  162. add %rax,%r14
  163. # qhasm: rx3 = 0
  164. # asm 1: mov $0,>rx3=int64#13
  165. # asm 2: mov $0,>rx3=%r15
  166. mov $0,%r15
  167. # qhasm: rx3 += mulrdx + carry
  168. # asm 1: adc <mulrdx=int64#3,<rx3=int64#13
  169. # asm 2: adc <mulrdx=%rdx,<rx3=%r15
  170. adc %rdx,%r15
  171. # qhasm: mulrax = *(uint64 *)(pp + 120)
  172. # asm 1: movq 120(<pp=int64#2),>mulrax=int64#7
  173. # asm 2: movq 120(<pp=%rsi),>mulrax=%rax
  174. movq 120(%rsi),%rax
  175. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  176. # asm 1: mul <mulx0=int64#9
  177. # asm 2: mul <mulx0=%r11
  178. mul %r11
  179. # qhasm: carry? rx3 += mulrax
  180. # asm 1: add <mulrax=int64#7,<rx3=int64#13
  181. # asm 2: add <mulrax=%rax,<rx3=%r15
  182. add %rax,%r15
  183. # qhasm: mulr4 += mulrdx + carry
  184. # asm 1: adc <mulrdx=int64#3,<mulr4=int64#4
  185. # asm 2: adc <mulrdx=%rdx,<mulr4=%rcx
  186. adc %rdx,%rcx
  187. # qhasm: mulx1 = *(uint64 *)(pp + 8)
  188. # asm 1: movq 8(<pp=int64#2),>mulx1=int64#9
  189. # asm 2: movq 8(<pp=%rsi),>mulx1=%r11
  190. movq 8(%rsi),%r11
  191. # qhasm: mulrax = *(uint64 *)(pp + 96)
  192. # asm 1: movq 96(<pp=int64#2),>mulrax=int64#7
  193. # asm 2: movq 96(<pp=%rsi),>mulrax=%rax
  194. movq 96(%rsi),%rax
  195. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  196. # asm 1: mul <mulx1=int64#9
  197. # asm 2: mul <mulx1=%r11
  198. mul %r11
  199. # qhasm: carry? rx1 += mulrax
  200. # asm 1: add <mulrax=int64#7,<rx1=int64#11
  201. # asm 2: add <mulrax=%rax,<rx1=%r13
  202. add %rax,%r13
  203. # qhasm: mulc = 0
  204. # asm 1: mov $0,>mulc=int64#14
  205. # asm 2: mov $0,>mulc=%rbx
  206. mov $0,%rbx
  207. # qhasm: mulc += mulrdx + carry
  208. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  209. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  210. adc %rdx,%rbx
  211. # qhasm: mulrax = *(uint64 *)(pp + 104)
  212. # asm 1: movq 104(<pp=int64#2),>mulrax=int64#7
  213. # asm 2: movq 104(<pp=%rsi),>mulrax=%rax
  214. movq 104(%rsi),%rax
  215. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  216. # asm 1: mul <mulx1=int64#9
  217. # asm 2: mul <mulx1=%r11
  218. mul %r11
  219. # qhasm: carry? rx2 += mulrax
  220. # asm 1: add <mulrax=int64#7,<rx2=int64#12
  221. # asm 2: add <mulrax=%rax,<rx2=%r14
  222. add %rax,%r14
  223. # qhasm: mulrdx += 0 + carry
  224. # asm 1: adc $0,<mulrdx=int64#3
  225. # asm 2: adc $0,<mulrdx=%rdx
  226. adc $0,%rdx
  227. # qhasm: carry? rx2 += mulc
  228. # asm 1: add <mulc=int64#14,<rx2=int64#12
  229. # asm 2: add <mulc=%rbx,<rx2=%r14
  230. add %rbx,%r14
  231. # qhasm: mulc = 0
  232. # asm 1: mov $0,>mulc=int64#14
  233. # asm 2: mov $0,>mulc=%rbx
  234. mov $0,%rbx
  235. # qhasm: mulc += mulrdx + carry
  236. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  237. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  238. adc %rdx,%rbx
  239. # qhasm: mulrax = *(uint64 *)(pp + 112)
  240. # asm 1: movq 112(<pp=int64#2),>mulrax=int64#7
  241. # asm 2: movq 112(<pp=%rsi),>mulrax=%rax
  242. movq 112(%rsi),%rax
  243. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  244. # asm 1: mul <mulx1=int64#9
  245. # asm 2: mul <mulx1=%r11
  246. mul %r11
  247. # qhasm: carry? rx3 += mulrax
  248. # asm 1: add <mulrax=int64#7,<rx3=int64#13
  249. # asm 2: add <mulrax=%rax,<rx3=%r15
  250. add %rax,%r15
  251. # qhasm: mulrdx += 0 + carry
  252. # asm 1: adc $0,<mulrdx=int64#3
  253. # asm 2: adc $0,<mulrdx=%rdx
  254. adc $0,%rdx
  255. # qhasm: carry? rx3 += mulc
  256. # asm 1: add <mulc=int64#14,<rx3=int64#13
  257. # asm 2: add <mulc=%rbx,<rx3=%r15
  258. add %rbx,%r15
  259. # qhasm: mulc = 0
  260. # asm 1: mov $0,>mulc=int64#14
  261. # asm 2: mov $0,>mulc=%rbx
  262. mov $0,%rbx
  263. # qhasm: mulc += mulrdx + carry
  264. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  265. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  266. adc %rdx,%rbx
  267. # qhasm: mulrax = *(uint64 *)(pp + 120)
  268. # asm 1: movq 120(<pp=int64#2),>mulrax=int64#7
  269. # asm 2: movq 120(<pp=%rsi),>mulrax=%rax
  270. movq 120(%rsi),%rax
  271. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  272. # asm 1: mul <mulx1=int64#9
  273. # asm 2: mul <mulx1=%r11
  274. mul %r11
  275. # qhasm: carry? mulr4 += mulrax
  276. # asm 1: add <mulrax=int64#7,<mulr4=int64#4
  277. # asm 2: add <mulrax=%rax,<mulr4=%rcx
  278. add %rax,%rcx
  279. # qhasm: mulrdx += 0 + carry
  280. # asm 1: adc $0,<mulrdx=int64#3
  281. # asm 2: adc $0,<mulrdx=%rdx
  282. adc $0,%rdx
  283. # qhasm: carry? mulr4 += mulc
  284. # asm 1: add <mulc=int64#14,<mulr4=int64#4
  285. # asm 2: add <mulc=%rbx,<mulr4=%rcx
  286. add %rbx,%rcx
  287. # qhasm: mulr5 += mulrdx + carry
  288. # asm 1: adc <mulrdx=int64#3,<mulr5=int64#5
  289. # asm 2: adc <mulrdx=%rdx,<mulr5=%r8
  290. adc %rdx,%r8
  291. # qhasm: mulx2 = *(uint64 *)(pp + 16)
  292. # asm 1: movq 16(<pp=int64#2),>mulx2=int64#9
  293. # asm 2: movq 16(<pp=%rsi),>mulx2=%r11
  294. movq 16(%rsi),%r11
  295. # qhasm: mulrax = *(uint64 *)(pp + 96)
  296. # asm 1: movq 96(<pp=int64#2),>mulrax=int64#7
  297. # asm 2: movq 96(<pp=%rsi),>mulrax=%rax
  298. movq 96(%rsi),%rax
  299. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  300. # asm 1: mul <mulx2=int64#9
  301. # asm 2: mul <mulx2=%r11
  302. mul %r11
  303. # qhasm: carry? rx2 += mulrax
  304. # asm 1: add <mulrax=int64#7,<rx2=int64#12
  305. # asm 2: add <mulrax=%rax,<rx2=%r14
  306. add %rax,%r14
  307. # qhasm: mulc = 0
  308. # asm 1: mov $0,>mulc=int64#14
  309. # asm 2: mov $0,>mulc=%rbx
  310. mov $0,%rbx
  311. # qhasm: mulc += mulrdx + carry
  312. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  313. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  314. adc %rdx,%rbx
  315. # qhasm: mulrax = *(uint64 *)(pp + 104)
  316. # asm 1: movq 104(<pp=int64#2),>mulrax=int64#7
  317. # asm 2: movq 104(<pp=%rsi),>mulrax=%rax
  318. movq 104(%rsi),%rax
  319. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  320. # asm 1: mul <mulx2=int64#9
  321. # asm 2: mul <mulx2=%r11
  322. mul %r11
  323. # qhasm: carry? rx3 += mulrax
  324. # asm 1: add <mulrax=int64#7,<rx3=int64#13
  325. # asm 2: add <mulrax=%rax,<rx3=%r15
  326. add %rax,%r15
  327. # qhasm: mulrdx += 0 + carry
  328. # asm 1: adc $0,<mulrdx=int64#3
  329. # asm 2: adc $0,<mulrdx=%rdx
  330. adc $0,%rdx
  331. # qhasm: carry? rx3 += mulc
  332. # asm 1: add <mulc=int64#14,<rx3=int64#13
  333. # asm 2: add <mulc=%rbx,<rx3=%r15
  334. add %rbx,%r15
  335. # qhasm: mulc = 0
  336. # asm 1: mov $0,>mulc=int64#14
  337. # asm 2: mov $0,>mulc=%rbx
  338. mov $0,%rbx
  339. # qhasm: mulc += mulrdx + carry
  340. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  341. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  342. adc %rdx,%rbx
  343. # qhasm: mulrax = *(uint64 *)(pp + 112)
  344. # asm 1: movq 112(<pp=int64#2),>mulrax=int64#7
  345. # asm 2: movq 112(<pp=%rsi),>mulrax=%rax
  346. movq 112(%rsi),%rax
  347. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  348. # asm 1: mul <mulx2=int64#9
  349. # asm 2: mul <mulx2=%r11
  350. mul %r11
  351. # qhasm: carry? mulr4 += mulrax
  352. # asm 1: add <mulrax=int64#7,<mulr4=int64#4
  353. # asm 2: add <mulrax=%rax,<mulr4=%rcx
  354. add %rax,%rcx
  355. # qhasm: mulrdx += 0 + carry
  356. # asm 1: adc $0,<mulrdx=int64#3
  357. # asm 2: adc $0,<mulrdx=%rdx
  358. adc $0,%rdx
  359. # qhasm: carry? mulr4 += mulc
  360. # asm 1: add <mulc=int64#14,<mulr4=int64#4
  361. # asm 2: add <mulc=%rbx,<mulr4=%rcx
  362. add %rbx,%rcx
  363. # qhasm: mulc = 0
  364. # asm 1: mov $0,>mulc=int64#14
  365. # asm 2: mov $0,>mulc=%rbx
  366. mov $0,%rbx
  367. # qhasm: mulc += mulrdx + carry
  368. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  369. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  370. adc %rdx,%rbx
  371. # qhasm: mulrax = *(uint64 *)(pp + 120)
  372. # asm 1: movq 120(<pp=int64#2),>mulrax=int64#7
  373. # asm 2: movq 120(<pp=%rsi),>mulrax=%rax
  374. movq 120(%rsi),%rax
  375. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  376. # asm 1: mul <mulx2=int64#9
  377. # asm 2: mul <mulx2=%r11
  378. mul %r11
  379. # qhasm: carry? mulr5 += mulrax
  380. # asm 1: add <mulrax=int64#7,<mulr5=int64#5
  381. # asm 2: add <mulrax=%rax,<mulr5=%r8
  382. add %rax,%r8
  383. # qhasm: mulrdx += 0 + carry
  384. # asm 1: adc $0,<mulrdx=int64#3
  385. # asm 2: adc $0,<mulrdx=%rdx
  386. adc $0,%rdx
  387. # qhasm: carry? mulr5 += mulc
  388. # asm 1: add <mulc=int64#14,<mulr5=int64#5
  389. # asm 2: add <mulc=%rbx,<mulr5=%r8
  390. add %rbx,%r8
  391. # qhasm: mulr6 += mulrdx + carry
  392. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#6
  393. # asm 2: adc <mulrdx=%rdx,<mulr6=%r9
  394. adc %rdx,%r9
  395. # qhasm: mulx3 = *(uint64 *)(pp + 24)
  396. # asm 1: movq 24(<pp=int64#2),>mulx3=int64#9
  397. # asm 2: movq 24(<pp=%rsi),>mulx3=%r11
  398. movq 24(%rsi),%r11
  399. # qhasm: mulrax = *(uint64 *)(pp + 96)
  400. # asm 1: movq 96(<pp=int64#2),>mulrax=int64#7
  401. # asm 2: movq 96(<pp=%rsi),>mulrax=%rax
  402. movq 96(%rsi),%rax
  403. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  404. # asm 1: mul <mulx3=int64#9
  405. # asm 2: mul <mulx3=%r11
  406. mul %r11
  407. # qhasm: carry? rx3 += mulrax
  408. # asm 1: add <mulrax=int64#7,<rx3=int64#13
  409. # asm 2: add <mulrax=%rax,<rx3=%r15
  410. add %rax,%r15
  411. # qhasm: mulc = 0
  412. # asm 1: mov $0,>mulc=int64#14
  413. # asm 2: mov $0,>mulc=%rbx
  414. mov $0,%rbx
  415. # qhasm: mulc += mulrdx + carry
  416. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  417. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  418. adc %rdx,%rbx
  419. # qhasm: mulrax = *(uint64 *)(pp + 104)
  420. # asm 1: movq 104(<pp=int64#2),>mulrax=int64#7
  421. # asm 2: movq 104(<pp=%rsi),>mulrax=%rax
  422. movq 104(%rsi),%rax
  423. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  424. # asm 1: mul <mulx3=int64#9
  425. # asm 2: mul <mulx3=%r11
  426. mul %r11
  427. # qhasm: carry? mulr4 += mulrax
  428. # asm 1: add <mulrax=int64#7,<mulr4=int64#4
  429. # asm 2: add <mulrax=%rax,<mulr4=%rcx
  430. add %rax,%rcx
  431. # qhasm: mulrdx += 0 + carry
  432. # asm 1: adc $0,<mulrdx=int64#3
  433. # asm 2: adc $0,<mulrdx=%rdx
  434. adc $0,%rdx
  435. # qhasm: carry? mulr4 += mulc
  436. # asm 1: add <mulc=int64#14,<mulr4=int64#4
  437. # asm 2: add <mulc=%rbx,<mulr4=%rcx
  438. add %rbx,%rcx
  439. # qhasm: mulc = 0
  440. # asm 1: mov $0,>mulc=int64#14
  441. # asm 2: mov $0,>mulc=%rbx
  442. mov $0,%rbx
  443. # qhasm: mulc += mulrdx + carry
  444. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  445. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  446. adc %rdx,%rbx
  447. # qhasm: mulrax = *(uint64 *)(pp + 112)
  448. # asm 1: movq 112(<pp=int64#2),>mulrax=int64#7
  449. # asm 2: movq 112(<pp=%rsi),>mulrax=%rax
  450. movq 112(%rsi),%rax
  451. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  452. # asm 1: mul <mulx3=int64#9
  453. # asm 2: mul <mulx3=%r11
  454. mul %r11
  455. # qhasm: carry? mulr5 += mulrax
  456. # asm 1: add <mulrax=int64#7,<mulr5=int64#5
  457. # asm 2: add <mulrax=%rax,<mulr5=%r8
  458. add %rax,%r8
  459. # qhasm: mulrdx += 0 + carry
  460. # asm 1: adc $0,<mulrdx=int64#3
  461. # asm 2: adc $0,<mulrdx=%rdx
  462. adc $0,%rdx
  463. # qhasm: carry? mulr5 += mulc
  464. # asm 1: add <mulc=int64#14,<mulr5=int64#5
  465. # asm 2: add <mulc=%rbx,<mulr5=%r8
  466. add %rbx,%r8
  467. # qhasm: mulc = 0
  468. # asm 1: mov $0,>mulc=int64#14
  469. # asm 2: mov $0,>mulc=%rbx
  470. mov $0,%rbx
  471. # qhasm: mulc += mulrdx + carry
  472. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  473. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  474. adc %rdx,%rbx
  475. # qhasm: mulrax = *(uint64 *)(pp + 120)
  476. # asm 1: movq 120(<pp=int64#2),>mulrax=int64#7
  477. # asm 2: movq 120(<pp=%rsi),>mulrax=%rax
  478. movq 120(%rsi),%rax
  479. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  480. # asm 1: mul <mulx3=int64#9
  481. # asm 2: mul <mulx3=%r11
  482. mul %r11
  483. # qhasm: carry? mulr6 += mulrax
  484. # asm 1: add <mulrax=int64#7,<mulr6=int64#6
  485. # asm 2: add <mulrax=%rax,<mulr6=%r9
  486. add %rax,%r9
  487. # qhasm: mulrdx += 0 + carry
  488. # asm 1: adc $0,<mulrdx=int64#3
  489. # asm 2: adc $0,<mulrdx=%rdx
  490. adc $0,%rdx
  491. # qhasm: carry? mulr6 += mulc
  492. # asm 1: add <mulc=int64#14,<mulr6=int64#6
  493. # asm 2: add <mulc=%rbx,<mulr6=%r9
  494. add %rbx,%r9
  495. # qhasm: mulr7 += mulrdx + carry
  496. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#8
  497. # asm 2: adc <mulrdx=%rdx,<mulr7=%r10
  498. adc %rdx,%r10
  499. # qhasm: mulrax = mulr4
  500. # asm 1: mov <mulr4=int64#4,>mulrax=int64#7
  501. # asm 2: mov <mulr4=%rcx,>mulrax=%rax
  502. mov %rcx,%rax
  503. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  504. mulq CRYPTO_NAMESPACE(38)(%rip)
  505. # qhasm: mulr4 = mulrax
  506. # asm 1: mov <mulrax=int64#7,>mulr4=int64#4
  507. # asm 2: mov <mulrax=%rax,>mulr4=%rcx
  508. mov %rax,%rcx
  509. # qhasm: mulrax = mulr5
  510. # asm 1: mov <mulr5=int64#5,>mulrax=int64#7
  511. # asm 2: mov <mulr5=%r8,>mulrax=%rax
  512. mov %r8,%rax
  513. # qhasm: mulr5 = mulrdx
  514. # asm 1: mov <mulrdx=int64#3,>mulr5=int64#5
  515. # asm 2: mov <mulrdx=%rdx,>mulr5=%r8
  516. mov %rdx,%r8
  517. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  518. mulq CRYPTO_NAMESPACE(38)(%rip)
  519. # qhasm: carry? mulr5 += mulrax
  520. # asm 1: add <mulrax=int64#7,<mulr5=int64#5
  521. # asm 2: add <mulrax=%rax,<mulr5=%r8
  522. add %rax,%r8
  523. # qhasm: mulrax = mulr6
  524. # asm 1: mov <mulr6=int64#6,>mulrax=int64#7
  525. # asm 2: mov <mulr6=%r9,>mulrax=%rax
  526. mov %r9,%rax
  527. # qhasm: mulr6 = 0
  528. # asm 1: mov $0,>mulr6=int64#6
  529. # asm 2: mov $0,>mulr6=%r9
  530. mov $0,%r9
  531. # qhasm: mulr6 += mulrdx + carry
  532. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#6
  533. # asm 2: adc <mulrdx=%rdx,<mulr6=%r9
  534. adc %rdx,%r9
  535. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  536. mulq CRYPTO_NAMESPACE(38)(%rip)
  537. # qhasm: carry? mulr6 += mulrax
  538. # asm 1: add <mulrax=int64#7,<mulr6=int64#6
  539. # asm 2: add <mulrax=%rax,<mulr6=%r9
  540. add %rax,%r9
  541. # qhasm: mulrax = mulr7
  542. # asm 1: mov <mulr7=int64#8,>mulrax=int64#7
  543. # asm 2: mov <mulr7=%r10,>mulrax=%rax
  544. mov %r10,%rax
  545. # qhasm: mulr7 = 0
  546. # asm 1: mov $0,>mulr7=int64#8
  547. # asm 2: mov $0,>mulr7=%r10
  548. mov $0,%r10
  549. # qhasm: mulr7 += mulrdx + carry
  550. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#8
  551. # asm 2: adc <mulrdx=%rdx,<mulr7=%r10
  552. adc %rdx,%r10
  553. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  554. mulq CRYPTO_NAMESPACE(38)(%rip)
  555. # qhasm: carry? mulr7 += mulrax
  556. # asm 1: add <mulrax=int64#7,<mulr7=int64#8
  557. # asm 2: add <mulrax=%rax,<mulr7=%r10
  558. add %rax,%r10
  559. # qhasm: mulr8 = 0
  560. # asm 1: mov $0,>mulr8=int64#7
  561. # asm 2: mov $0,>mulr8=%rax
  562. mov $0,%rax
  563. # qhasm: mulr8 += mulrdx + carry
  564. # asm 1: adc <mulrdx=int64#3,<mulr8=int64#7
  565. # asm 2: adc <mulrdx=%rdx,<mulr8=%rax
  566. adc %rdx,%rax
  567. # qhasm: carry? rx0 += mulr4
  568. # asm 1: add <mulr4=int64#4,<rx0=int64#10
  569. # asm 2: add <mulr4=%rcx,<rx0=%r12
  570. add %rcx,%r12
  571. # qhasm: carry? rx1 += mulr5 + carry
  572. # asm 1: adc <mulr5=int64#5,<rx1=int64#11
  573. # asm 2: adc <mulr5=%r8,<rx1=%r13
  574. adc %r8,%r13
  575. # qhasm: carry? rx2 += mulr6 + carry
  576. # asm 1: adc <mulr6=int64#6,<rx2=int64#12
  577. # asm 2: adc <mulr6=%r9,<rx2=%r14
  578. adc %r9,%r14
  579. # qhasm: carry? rx3 += mulr7 + carry
  580. # asm 1: adc <mulr7=int64#8,<rx3=int64#13
  581. # asm 2: adc <mulr7=%r10,<rx3=%r15
  582. adc %r10,%r15
  583. # qhasm: mulzero = 0
  584. # asm 1: mov $0,>mulzero=int64#3
  585. # asm 2: mov $0,>mulzero=%rdx
  586. mov $0,%rdx
  587. # qhasm: mulr8 += mulzero + carry
  588. # asm 1: adc <mulzero=int64#3,<mulr8=int64#7
  589. # asm 2: adc <mulzero=%rdx,<mulr8=%rax
  590. adc %rdx,%rax
  591. # qhasm: mulr8 *= 38
  592. # asm 1: imulq $38,<mulr8=int64#7,>mulr8=int64#4
  593. # asm 2: imulq $38,<mulr8=%rax,>mulr8=%rcx
  594. imulq $38,%rax,%rcx
  595. # qhasm: carry? rx0 += mulr8
  596. # asm 1: add <mulr8=int64#4,<rx0=int64#10
  597. # asm 2: add <mulr8=%rcx,<rx0=%r12
  598. add %rcx,%r12
  599. # qhasm: carry? rx1 += mulzero + carry
  600. # asm 1: adc <mulzero=int64#3,<rx1=int64#11
  601. # asm 2: adc <mulzero=%rdx,<rx1=%r13
  602. adc %rdx,%r13
  603. # qhasm: carry? rx2 += mulzero + carry
  604. # asm 1: adc <mulzero=int64#3,<rx2=int64#12
  605. # asm 2: adc <mulzero=%rdx,<rx2=%r14
  606. adc %rdx,%r14
  607. # qhasm: carry? rx3 += mulzero + carry
  608. # asm 1: adc <mulzero=int64#3,<rx3=int64#13
  609. # asm 2: adc <mulzero=%rdx,<rx3=%r15
  610. adc %rdx,%r15
  611. # qhasm: mulzero += mulzero + carry
  612. # asm 1: adc <mulzero=int64#3,<mulzero=int64#3
  613. # asm 2: adc <mulzero=%rdx,<mulzero=%rdx
  614. adc %rdx,%rdx
  615. # qhasm: mulzero *= 38
  616. # asm 1: imulq $38,<mulzero=int64#3,>mulzero=int64#3
  617. # asm 2: imulq $38,<mulzero=%rdx,>mulzero=%rdx
  618. imulq $38,%rdx,%rdx
  619. # qhasm: rx0 += mulzero
  620. # asm 1: add <mulzero=int64#3,<rx0=int64#10
  621. # asm 2: add <mulzero=%rdx,<rx0=%r12
  622. add %rdx,%r12
  623. # qhasm: *(uint64 *)(rp + 0) = rx0
  624. # asm 1: movq <rx0=int64#10,0(<rp=int64#1)
  625. # asm 2: movq <rx0=%r12,0(<rp=%rdi)
  626. movq %r12,0(%rdi)
  627. # qhasm: *(uint64 *)(rp + 8) = rx1
  628. # asm 1: movq <rx1=int64#11,8(<rp=int64#1)
  629. # asm 2: movq <rx1=%r13,8(<rp=%rdi)
  630. movq %r13,8(%rdi)
  631. # qhasm: *(uint64 *)(rp + 16) = rx2
  632. # asm 1: movq <rx2=int64#12,16(<rp=int64#1)
  633. # asm 2: movq <rx2=%r14,16(<rp=%rdi)
  634. movq %r14,16(%rdi)
  635. # qhasm: *(uint64 *)(rp + 24) = rx3
  636. # asm 1: movq <rx3=int64#13,24(<rp=int64#1)
  637. # asm 2: movq <rx3=%r15,24(<rp=%rdi)
  638. movq %r15,24(%rdi)
  639. # qhasm: mulr4 = 0
  640. # asm 1: mov $0,>mulr4=int64#4
  641. # asm 2: mov $0,>mulr4=%rcx
  642. mov $0,%rcx
  643. # qhasm: mulr5 = 0
  644. # asm 1: mov $0,>mulr5=int64#5
  645. # asm 2: mov $0,>mulr5=%r8
  646. mov $0,%r8
  647. # qhasm: mulr6 = 0
  648. # asm 1: mov $0,>mulr6=int64#6
  649. # asm 2: mov $0,>mulr6=%r9
  650. mov $0,%r9
  651. # qhasm: mulr7 = 0
  652. # asm 1: mov $0,>mulr7=int64#8
  653. # asm 2: mov $0,>mulr7=%r10
  654. mov $0,%r10
  655. # qhasm: mulx0 = *(uint64 *)(pp + 64)
  656. # asm 1: movq 64(<pp=int64#2),>mulx0=int64#9
  657. # asm 2: movq 64(<pp=%rsi),>mulx0=%r11
  658. movq 64(%rsi),%r11
  659. # qhasm: mulrax = *(uint64 *)(pp + 32)
  660. # asm 1: movq 32(<pp=int64#2),>mulrax=int64#7
  661. # asm 2: movq 32(<pp=%rsi),>mulrax=%rax
  662. movq 32(%rsi),%rax
  663. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  664. # asm 1: mul <mulx0=int64#9
  665. # asm 2: mul <mulx0=%r11
  666. mul %r11
  667. # qhasm: ry0 = mulrax
  668. # asm 1: mov <mulrax=int64#7,>ry0=int64#10
  669. # asm 2: mov <mulrax=%rax,>ry0=%r12
  670. mov %rax,%r12
  671. # qhasm: ry1 = mulrdx
  672. # asm 1: mov <mulrdx=int64#3,>ry1=int64#11
  673. # asm 2: mov <mulrdx=%rdx,>ry1=%r13
  674. mov %rdx,%r13
  675. # qhasm: mulrax = *(uint64 *)(pp + 40)
  676. # asm 1: movq 40(<pp=int64#2),>mulrax=int64#7
  677. # asm 2: movq 40(<pp=%rsi),>mulrax=%rax
  678. movq 40(%rsi),%rax
  679. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  680. # asm 1: mul <mulx0=int64#9
  681. # asm 2: mul <mulx0=%r11
  682. mul %r11
  683. # qhasm: carry? ry1 += mulrax
  684. # asm 1: add <mulrax=int64#7,<ry1=int64#11
  685. # asm 2: add <mulrax=%rax,<ry1=%r13
  686. add %rax,%r13
  687. # qhasm: ry2 = 0
  688. # asm 1: mov $0,>ry2=int64#12
  689. # asm 2: mov $0,>ry2=%r14
  690. mov $0,%r14
  691. # qhasm: ry2 += mulrdx + carry
  692. # asm 1: adc <mulrdx=int64#3,<ry2=int64#12
  693. # asm 2: adc <mulrdx=%rdx,<ry2=%r14
  694. adc %rdx,%r14
  695. # qhasm: mulrax = *(uint64 *)(pp + 48)
  696. # asm 1: movq 48(<pp=int64#2),>mulrax=int64#7
  697. # asm 2: movq 48(<pp=%rsi),>mulrax=%rax
  698. movq 48(%rsi),%rax
  699. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  700. # asm 1: mul <mulx0=int64#9
  701. # asm 2: mul <mulx0=%r11
  702. mul %r11
  703. # qhasm: carry? ry2 += mulrax
  704. # asm 1: add <mulrax=int64#7,<ry2=int64#12
  705. # asm 2: add <mulrax=%rax,<ry2=%r14
  706. add %rax,%r14
  707. # qhasm: ry3 = 0
  708. # asm 1: mov $0,>ry3=int64#13
  709. # asm 2: mov $0,>ry3=%r15
  710. mov $0,%r15
  711. # qhasm: ry3 += mulrdx + carry
  712. # asm 1: adc <mulrdx=int64#3,<ry3=int64#13
  713. # asm 2: adc <mulrdx=%rdx,<ry3=%r15
  714. adc %rdx,%r15
  715. # qhasm: mulrax = *(uint64 *)(pp + 56)
  716. # asm 1: movq 56(<pp=int64#2),>mulrax=int64#7
  717. # asm 2: movq 56(<pp=%rsi),>mulrax=%rax
  718. movq 56(%rsi),%rax
  719. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  720. # asm 1: mul <mulx0=int64#9
  721. # asm 2: mul <mulx0=%r11
  722. mul %r11
  723. # qhasm: carry? ry3 += mulrax
  724. # asm 1: add <mulrax=int64#7,<ry3=int64#13
  725. # asm 2: add <mulrax=%rax,<ry3=%r15
  726. add %rax,%r15
  727. # qhasm: mulr4 += mulrdx + carry
  728. # asm 1: adc <mulrdx=int64#3,<mulr4=int64#4
  729. # asm 2: adc <mulrdx=%rdx,<mulr4=%rcx
  730. adc %rdx,%rcx
  731. # qhasm: mulx1 = *(uint64 *)(pp + 72)
  732. # asm 1: movq 72(<pp=int64#2),>mulx1=int64#9
  733. # asm 2: movq 72(<pp=%rsi),>mulx1=%r11
  734. movq 72(%rsi),%r11
  735. # qhasm: mulrax = *(uint64 *)(pp + 32)
  736. # asm 1: movq 32(<pp=int64#2),>mulrax=int64#7
  737. # asm 2: movq 32(<pp=%rsi),>mulrax=%rax
  738. movq 32(%rsi),%rax
  739. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  740. # asm 1: mul <mulx1=int64#9
  741. # asm 2: mul <mulx1=%r11
  742. mul %r11
  743. # qhasm: carry? ry1 += mulrax
  744. # asm 1: add <mulrax=int64#7,<ry1=int64#11
  745. # asm 2: add <mulrax=%rax,<ry1=%r13
  746. add %rax,%r13
  747. # qhasm: mulc = 0
  748. # asm 1: mov $0,>mulc=int64#14
  749. # asm 2: mov $0,>mulc=%rbx
  750. mov $0,%rbx
  751. # qhasm: mulc += mulrdx + carry
  752. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  753. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  754. adc %rdx,%rbx
  755. # qhasm: mulrax = *(uint64 *)(pp + 40)
  756. # asm 1: movq 40(<pp=int64#2),>mulrax=int64#7
  757. # asm 2: movq 40(<pp=%rsi),>mulrax=%rax
  758. movq 40(%rsi),%rax
  759. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  760. # asm 1: mul <mulx1=int64#9
  761. # asm 2: mul <mulx1=%r11
  762. mul %r11
  763. # qhasm: carry? ry2 += mulrax
  764. # asm 1: add <mulrax=int64#7,<ry2=int64#12
  765. # asm 2: add <mulrax=%rax,<ry2=%r14
  766. add %rax,%r14
  767. # qhasm: mulrdx += 0 + carry
  768. # asm 1: adc $0,<mulrdx=int64#3
  769. # asm 2: adc $0,<mulrdx=%rdx
  770. adc $0,%rdx
  771. # qhasm: carry? ry2 += mulc
  772. # asm 1: add <mulc=int64#14,<ry2=int64#12
  773. # asm 2: add <mulc=%rbx,<ry2=%r14
  774. add %rbx,%r14
  775. # qhasm: mulc = 0
  776. # asm 1: mov $0,>mulc=int64#14
  777. # asm 2: mov $0,>mulc=%rbx
  778. mov $0,%rbx
  779. # qhasm: mulc += mulrdx + carry
  780. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  781. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  782. adc %rdx,%rbx
  783. # qhasm: mulrax = *(uint64 *)(pp + 48)
  784. # asm 1: movq 48(<pp=int64#2),>mulrax=int64#7
  785. # asm 2: movq 48(<pp=%rsi),>mulrax=%rax
  786. movq 48(%rsi),%rax
  787. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  788. # asm 1: mul <mulx1=int64#9
  789. # asm 2: mul <mulx1=%r11
  790. mul %r11
  791. # qhasm: carry? ry3 += mulrax
  792. # asm 1: add <mulrax=int64#7,<ry3=int64#13
  793. # asm 2: add <mulrax=%rax,<ry3=%r15
  794. add %rax,%r15
  795. # qhasm: mulrdx += 0 + carry
  796. # asm 1: adc $0,<mulrdx=int64#3
  797. # asm 2: adc $0,<mulrdx=%rdx
  798. adc $0,%rdx
  799. # qhasm: carry? ry3 += mulc
  800. # asm 1: add <mulc=int64#14,<ry3=int64#13
  801. # asm 2: add <mulc=%rbx,<ry3=%r15
  802. add %rbx,%r15
  803. # qhasm: mulc = 0
  804. # asm 1: mov $0,>mulc=int64#14
  805. # asm 2: mov $0,>mulc=%rbx
  806. mov $0,%rbx
  807. # qhasm: mulc += mulrdx + carry
  808. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  809. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  810. adc %rdx,%rbx
  811. # qhasm: mulrax = *(uint64 *)(pp + 56)
  812. # asm 1: movq 56(<pp=int64#2),>mulrax=int64#7
  813. # asm 2: movq 56(<pp=%rsi),>mulrax=%rax
  814. movq 56(%rsi),%rax
  815. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  816. # asm 1: mul <mulx1=int64#9
  817. # asm 2: mul <mulx1=%r11
  818. mul %r11
  819. # qhasm: carry? mulr4 += mulrax
  820. # asm 1: add <mulrax=int64#7,<mulr4=int64#4
  821. # asm 2: add <mulrax=%rax,<mulr4=%rcx
  822. add %rax,%rcx
  823. # qhasm: mulrdx += 0 + carry
  824. # asm 1: adc $0,<mulrdx=int64#3
  825. # asm 2: adc $0,<mulrdx=%rdx
  826. adc $0,%rdx
  827. # qhasm: carry? mulr4 += mulc
  828. # asm 1: add <mulc=int64#14,<mulr4=int64#4
  829. # asm 2: add <mulc=%rbx,<mulr4=%rcx
  830. add %rbx,%rcx
  831. # qhasm: mulr5 += mulrdx + carry
  832. # asm 1: adc <mulrdx=int64#3,<mulr5=int64#5
  833. # asm 2: adc <mulrdx=%rdx,<mulr5=%r8
  834. adc %rdx,%r8
  835. # qhasm: mulx2 = *(uint64 *)(pp + 80)
  836. # asm 1: movq 80(<pp=int64#2),>mulx2=int64#9
  837. # asm 2: movq 80(<pp=%rsi),>mulx2=%r11
  838. movq 80(%rsi),%r11
  839. # qhasm: mulrax = *(uint64 *)(pp + 32)
  840. # asm 1: movq 32(<pp=int64#2),>mulrax=int64#7
  841. # asm 2: movq 32(<pp=%rsi),>mulrax=%rax
  842. movq 32(%rsi),%rax
  843. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  844. # asm 1: mul <mulx2=int64#9
  845. # asm 2: mul <mulx2=%r11
  846. mul %r11
  847. # qhasm: carry? ry2 += mulrax
  848. # asm 1: add <mulrax=int64#7,<ry2=int64#12
  849. # asm 2: add <mulrax=%rax,<ry2=%r14
  850. add %rax,%r14
  851. # qhasm: mulc = 0
  852. # asm 1: mov $0,>mulc=int64#14
  853. # asm 2: mov $0,>mulc=%rbx
  854. mov $0,%rbx
  855. # qhasm: mulc += mulrdx + carry
  856. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  857. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  858. adc %rdx,%rbx
  859. # qhasm: mulrax = *(uint64 *)(pp + 40)
  860. # asm 1: movq 40(<pp=int64#2),>mulrax=int64#7
  861. # asm 2: movq 40(<pp=%rsi),>mulrax=%rax
  862. movq 40(%rsi),%rax
  863. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  864. # asm 1: mul <mulx2=int64#9
  865. # asm 2: mul <mulx2=%r11
  866. mul %r11
  867. # qhasm: carry? ry3 += mulrax
  868. # asm 1: add <mulrax=int64#7,<ry3=int64#13
  869. # asm 2: add <mulrax=%rax,<ry3=%r15
  870. add %rax,%r15
  871. # qhasm: mulrdx += 0 + carry
  872. # asm 1: adc $0,<mulrdx=int64#3
  873. # asm 2: adc $0,<mulrdx=%rdx
  874. adc $0,%rdx
  875. # qhasm: carry? ry3 += mulc
  876. # asm 1: add <mulc=int64#14,<ry3=int64#13
  877. # asm 2: add <mulc=%rbx,<ry3=%r15
  878. add %rbx,%r15
  879. # qhasm: mulc = 0
  880. # asm 1: mov $0,>mulc=int64#14
  881. # asm 2: mov $0,>mulc=%rbx
  882. mov $0,%rbx
  883. # qhasm: mulc += mulrdx + carry
  884. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  885. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  886. adc %rdx,%rbx
  887. # qhasm: mulrax = *(uint64 *)(pp + 48)
  888. # asm 1: movq 48(<pp=int64#2),>mulrax=int64#7
  889. # asm 2: movq 48(<pp=%rsi),>mulrax=%rax
  890. movq 48(%rsi),%rax
  891. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  892. # asm 1: mul <mulx2=int64#9
  893. # asm 2: mul <mulx2=%r11
  894. mul %r11
  895. # qhasm: carry? mulr4 += mulrax
  896. # asm 1: add <mulrax=int64#7,<mulr4=int64#4
  897. # asm 2: add <mulrax=%rax,<mulr4=%rcx
  898. add %rax,%rcx
  899. # qhasm: mulrdx += 0 + carry
  900. # asm 1: adc $0,<mulrdx=int64#3
  901. # asm 2: adc $0,<mulrdx=%rdx
  902. adc $0,%rdx
  903. # qhasm: carry? mulr4 += mulc
  904. # asm 1: add <mulc=int64#14,<mulr4=int64#4
  905. # asm 2: add <mulc=%rbx,<mulr4=%rcx
  906. add %rbx,%rcx
  907. # qhasm: mulc = 0
  908. # asm 1: mov $0,>mulc=int64#14
  909. # asm 2: mov $0,>mulc=%rbx
  910. mov $0,%rbx
  911. # qhasm: mulc += mulrdx + carry
  912. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  913. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  914. adc %rdx,%rbx
  915. # qhasm: mulrax = *(uint64 *)(pp + 56)
  916. # asm 1: movq 56(<pp=int64#2),>mulrax=int64#7
  917. # asm 2: movq 56(<pp=%rsi),>mulrax=%rax
  918. movq 56(%rsi),%rax
  919. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  920. # asm 1: mul <mulx2=int64#9
  921. # asm 2: mul <mulx2=%r11
  922. mul %r11
  923. # qhasm: carry? mulr5 += mulrax
  924. # asm 1: add <mulrax=int64#7,<mulr5=int64#5
  925. # asm 2: add <mulrax=%rax,<mulr5=%r8
  926. add %rax,%r8
  927. # qhasm: mulrdx += 0 + carry
  928. # asm 1: adc $0,<mulrdx=int64#3
  929. # asm 2: adc $0,<mulrdx=%rdx
  930. adc $0,%rdx
  931. # qhasm: carry? mulr5 += mulc
  932. # asm 1: add <mulc=int64#14,<mulr5=int64#5
  933. # asm 2: add <mulc=%rbx,<mulr5=%r8
  934. add %rbx,%r8
  935. # qhasm: mulr6 += mulrdx + carry
  936. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#6
  937. # asm 2: adc <mulrdx=%rdx,<mulr6=%r9
  938. adc %rdx,%r9
  939. # qhasm: mulx3 = *(uint64 *)(pp + 88)
  940. # asm 1: movq 88(<pp=int64#2),>mulx3=int64#9
  941. # asm 2: movq 88(<pp=%rsi),>mulx3=%r11
  942. movq 88(%rsi),%r11
  943. # qhasm: mulrax = *(uint64 *)(pp + 32)
  944. # asm 1: movq 32(<pp=int64#2),>mulrax=int64#7
  945. # asm 2: movq 32(<pp=%rsi),>mulrax=%rax
  946. movq 32(%rsi),%rax
  947. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  948. # asm 1: mul <mulx3=int64#9
  949. # asm 2: mul <mulx3=%r11
  950. mul %r11
  951. # qhasm: carry? ry3 += mulrax
  952. # asm 1: add <mulrax=int64#7,<ry3=int64#13
  953. # asm 2: add <mulrax=%rax,<ry3=%r15
  954. add %rax,%r15
  955. # qhasm: mulc = 0
  956. # asm 1: mov $0,>mulc=int64#14
  957. # asm 2: mov $0,>mulc=%rbx
  958. mov $0,%rbx
  959. # qhasm: mulc += mulrdx + carry
  960. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  961. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  962. adc %rdx,%rbx
  963. # qhasm: mulrax = *(uint64 *)(pp + 40)
  964. # asm 1: movq 40(<pp=int64#2),>mulrax=int64#7
  965. # asm 2: movq 40(<pp=%rsi),>mulrax=%rax
  966. movq 40(%rsi),%rax
  967. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  968. # asm 1: mul <mulx3=int64#9
  969. # asm 2: mul <mulx3=%r11
  970. mul %r11
  971. # qhasm: carry? mulr4 += mulrax
  972. # asm 1: add <mulrax=int64#7,<mulr4=int64#4
  973. # asm 2: add <mulrax=%rax,<mulr4=%rcx
  974. add %rax,%rcx
  975. # qhasm: mulrdx += 0 + carry
  976. # asm 1: adc $0,<mulrdx=int64#3
  977. # asm 2: adc $0,<mulrdx=%rdx
  978. adc $0,%rdx
  979. # qhasm: carry? mulr4 += mulc
  980. # asm 1: add <mulc=int64#14,<mulr4=int64#4
  981. # asm 2: add <mulc=%rbx,<mulr4=%rcx
  982. add %rbx,%rcx
  983. # qhasm: mulc = 0
  984. # asm 1: mov $0,>mulc=int64#14
  985. # asm 2: mov $0,>mulc=%rbx
  986. mov $0,%rbx
  987. # qhasm: mulc += mulrdx + carry
  988. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  989. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  990. adc %rdx,%rbx
  991. # qhasm: mulrax = *(uint64 *)(pp + 48)
  992. # asm 1: movq 48(<pp=int64#2),>mulrax=int64#7
  993. # asm 2: movq 48(<pp=%rsi),>mulrax=%rax
  994. movq 48(%rsi),%rax
  995. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  996. # asm 1: mul <mulx3=int64#9
  997. # asm 2: mul <mulx3=%r11
  998. mul %r11
  999. # qhasm: carry? mulr5 += mulrax
  1000. # asm 1: add <mulrax=int64#7,<mulr5=int64#5
  1001. # asm 2: add <mulrax=%rax,<mulr5=%r8
  1002. add %rax,%r8
  1003. # qhasm: mulrdx += 0 + carry
  1004. # asm 1: adc $0,<mulrdx=int64#3
  1005. # asm 2: adc $0,<mulrdx=%rdx
  1006. adc $0,%rdx
  1007. # qhasm: carry? mulr5 += mulc
  1008. # asm 1: add <mulc=int64#14,<mulr5=int64#5
  1009. # asm 2: add <mulc=%rbx,<mulr5=%r8
  1010. add %rbx,%r8
  1011. # qhasm: mulc = 0
  1012. # asm 1: mov $0,>mulc=int64#14
  1013. # asm 2: mov $0,>mulc=%rbx
  1014. mov $0,%rbx
  1015. # qhasm: mulc += mulrdx + carry
  1016. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1017. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1018. adc %rdx,%rbx
  1019. # qhasm: mulrax = *(uint64 *)(pp + 56)
  1020. # asm 1: movq 56(<pp=int64#2),>mulrax=int64#7
  1021. # asm 2: movq 56(<pp=%rsi),>mulrax=%rax
  1022. movq 56(%rsi),%rax
  1023. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  1024. # asm 1: mul <mulx3=int64#9
  1025. # asm 2: mul <mulx3=%r11
  1026. mul %r11
  1027. # qhasm: carry? mulr6 += mulrax
  1028. # asm 1: add <mulrax=int64#7,<mulr6=int64#6
  1029. # asm 2: add <mulrax=%rax,<mulr6=%r9
  1030. add %rax,%r9
  1031. # qhasm: mulrdx += 0 + carry
  1032. # asm 1: adc $0,<mulrdx=int64#3
  1033. # asm 2: adc $0,<mulrdx=%rdx
  1034. adc $0,%rdx
  1035. # qhasm: carry? mulr6 += mulc
  1036. # asm 1: add <mulc=int64#14,<mulr6=int64#6
  1037. # asm 2: add <mulc=%rbx,<mulr6=%r9
  1038. add %rbx,%r9
  1039. # qhasm: mulr7 += mulrdx + carry
  1040. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#8
  1041. # asm 2: adc <mulrdx=%rdx,<mulr7=%r10
  1042. adc %rdx,%r10
  1043. # qhasm: mulrax = mulr4
  1044. # asm 1: mov <mulr4=int64#4,>mulrax=int64#7
  1045. # asm 2: mov <mulr4=%rcx,>mulrax=%rax
  1046. mov %rcx,%rax
  1047. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1048. mulq CRYPTO_NAMESPACE(38)(%rip)
  1049. # qhasm: mulr4 = mulrax
  1050. # asm 1: mov <mulrax=int64#7,>mulr4=int64#4
  1051. # asm 2: mov <mulrax=%rax,>mulr4=%rcx
  1052. mov %rax,%rcx
  1053. # qhasm: mulrax = mulr5
  1054. # asm 1: mov <mulr5=int64#5,>mulrax=int64#7
  1055. # asm 2: mov <mulr5=%r8,>mulrax=%rax
  1056. mov %r8,%rax
  1057. # qhasm: mulr5 = mulrdx
  1058. # asm 1: mov <mulrdx=int64#3,>mulr5=int64#5
  1059. # asm 2: mov <mulrdx=%rdx,>mulr5=%r8
  1060. mov %rdx,%r8
  1061. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1062. mulq CRYPTO_NAMESPACE(38)(%rip)
  1063. # qhasm: carry? mulr5 += mulrax
  1064. # asm 1: add <mulrax=int64#7,<mulr5=int64#5
  1065. # asm 2: add <mulrax=%rax,<mulr5=%r8
  1066. add %rax,%r8
  1067. # qhasm: mulrax = mulr6
  1068. # asm 1: mov <mulr6=int64#6,>mulrax=int64#7
  1069. # asm 2: mov <mulr6=%r9,>mulrax=%rax
  1070. mov %r9,%rax
  1071. # qhasm: mulr6 = 0
  1072. # asm 1: mov $0,>mulr6=int64#6
  1073. # asm 2: mov $0,>mulr6=%r9
  1074. mov $0,%r9
  1075. # qhasm: mulr6 += mulrdx + carry
  1076. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#6
  1077. # asm 2: adc <mulrdx=%rdx,<mulr6=%r9
  1078. adc %rdx,%r9
  1079. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1080. mulq CRYPTO_NAMESPACE(38)(%rip)
  1081. # qhasm: carry? mulr6 += mulrax
  1082. # asm 1: add <mulrax=int64#7,<mulr6=int64#6
  1083. # asm 2: add <mulrax=%rax,<mulr6=%r9
  1084. add %rax,%r9
  1085. # qhasm: mulrax = mulr7
  1086. # asm 1: mov <mulr7=int64#8,>mulrax=int64#7
  1087. # asm 2: mov <mulr7=%r10,>mulrax=%rax
  1088. mov %r10,%rax
  1089. # qhasm: mulr7 = 0
  1090. # asm 1: mov $0,>mulr7=int64#8
  1091. # asm 2: mov $0,>mulr7=%r10
  1092. mov $0,%r10
  1093. # qhasm: mulr7 += mulrdx + carry
  1094. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#8
  1095. # asm 2: adc <mulrdx=%rdx,<mulr7=%r10
  1096. adc %rdx,%r10
  1097. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1098. mulq CRYPTO_NAMESPACE(38)(%rip)
  1099. # qhasm: carry? mulr7 += mulrax
  1100. # asm 1: add <mulrax=int64#7,<mulr7=int64#8
  1101. # asm 2: add <mulrax=%rax,<mulr7=%r10
  1102. add %rax,%r10
  1103. # qhasm: mulr8 = 0
  1104. # asm 1: mov $0,>mulr8=int64#7
  1105. # asm 2: mov $0,>mulr8=%rax
  1106. mov $0,%rax
  1107. # qhasm: mulr8 += mulrdx + carry
  1108. # asm 1: adc <mulrdx=int64#3,<mulr8=int64#7
  1109. # asm 2: adc <mulrdx=%rdx,<mulr8=%rax
  1110. adc %rdx,%rax
  1111. # qhasm: carry? ry0 += mulr4
  1112. # asm 1: add <mulr4=int64#4,<ry0=int64#10
  1113. # asm 2: add <mulr4=%rcx,<ry0=%r12
  1114. add %rcx,%r12
  1115. # qhasm: carry? ry1 += mulr5 + carry
  1116. # asm 1: adc <mulr5=int64#5,<ry1=int64#11
  1117. # asm 2: adc <mulr5=%r8,<ry1=%r13
  1118. adc %r8,%r13
  1119. # qhasm: carry? ry2 += mulr6 + carry
  1120. # asm 1: adc <mulr6=int64#6,<ry2=int64#12
  1121. # asm 2: adc <mulr6=%r9,<ry2=%r14
  1122. adc %r9,%r14
  1123. # qhasm: carry? ry3 += mulr7 + carry
  1124. # asm 1: adc <mulr7=int64#8,<ry3=int64#13
  1125. # asm 2: adc <mulr7=%r10,<ry3=%r15
  1126. adc %r10,%r15
  1127. # qhasm: mulzero = 0
  1128. # asm 1: mov $0,>mulzero=int64#3
  1129. # asm 2: mov $0,>mulzero=%rdx
  1130. mov $0,%rdx
  1131. # qhasm: mulr8 += mulzero + carry
  1132. # asm 1: adc <mulzero=int64#3,<mulr8=int64#7
  1133. # asm 2: adc <mulzero=%rdx,<mulr8=%rax
  1134. adc %rdx,%rax
  1135. # qhasm: mulr8 *= 38
  1136. # asm 1: imulq $38,<mulr8=int64#7,>mulr8=int64#4
  1137. # asm 2: imulq $38,<mulr8=%rax,>mulr8=%rcx
  1138. imulq $38,%rax,%rcx
  1139. # qhasm: carry? ry0 += mulr8
  1140. # asm 1: add <mulr8=int64#4,<ry0=int64#10
  1141. # asm 2: add <mulr8=%rcx,<ry0=%r12
  1142. add %rcx,%r12
  1143. # qhasm: carry? ry1 += mulzero + carry
  1144. # asm 1: adc <mulzero=int64#3,<ry1=int64#11
  1145. # asm 2: adc <mulzero=%rdx,<ry1=%r13
  1146. adc %rdx,%r13
  1147. # qhasm: carry? ry2 += mulzero + carry
  1148. # asm 1: adc <mulzero=int64#3,<ry2=int64#12
  1149. # asm 2: adc <mulzero=%rdx,<ry2=%r14
  1150. adc %rdx,%r14
  1151. # qhasm: carry? ry3 += mulzero + carry
  1152. # asm 1: adc <mulzero=int64#3,<ry3=int64#13
  1153. # asm 2: adc <mulzero=%rdx,<ry3=%r15
  1154. adc %rdx,%r15
  1155. # qhasm: mulzero += mulzero + carry
  1156. # asm 1: adc <mulzero=int64#3,<mulzero=int64#3
  1157. # asm 2: adc <mulzero=%rdx,<mulzero=%rdx
  1158. adc %rdx,%rdx
  1159. # qhasm: mulzero *= 38
  1160. # asm 1: imulq $38,<mulzero=int64#3,>mulzero=int64#3
  1161. # asm 2: imulq $38,<mulzero=%rdx,>mulzero=%rdx
  1162. imulq $38,%rdx,%rdx
  1163. # qhasm: ry0 += mulzero
  1164. # asm 1: add <mulzero=int64#3,<ry0=int64#10
  1165. # asm 2: add <mulzero=%rdx,<ry0=%r12
  1166. add %rdx,%r12
  1167. # qhasm: *(uint64 *)(rp + 32) = ry0
  1168. # asm 1: movq <ry0=int64#10,32(<rp=int64#1)
  1169. # asm 2: movq <ry0=%r12,32(<rp=%rdi)
  1170. movq %r12,32(%rdi)
  1171. # qhasm: *(uint64 *)(rp + 40) = ry1
  1172. # asm 1: movq <ry1=int64#11,40(<rp=int64#1)
  1173. # asm 2: movq <ry1=%r13,40(<rp=%rdi)
  1174. movq %r13,40(%rdi)
  1175. # qhasm: *(uint64 *)(rp + 48) = ry2
  1176. # asm 1: movq <ry2=int64#12,48(<rp=int64#1)
  1177. # asm 2: movq <ry2=%r14,48(<rp=%rdi)
  1178. movq %r14,48(%rdi)
  1179. # qhasm: *(uint64 *)(rp + 56) = ry3
  1180. # asm 1: movq <ry3=int64#13,56(<rp=int64#1)
  1181. # asm 2: movq <ry3=%r15,56(<rp=%rdi)
  1182. movq %r15,56(%rdi)
  1183. # qhasm: mulr4 = 0
  1184. # asm 1: mov $0,>mulr4=int64#4
  1185. # asm 2: mov $0,>mulr4=%rcx
  1186. mov $0,%rcx
  1187. # qhasm: mulr5 = 0
  1188. # asm 1: mov $0,>mulr5=int64#5
  1189. # asm 2: mov $0,>mulr5=%r8
  1190. mov $0,%r8
  1191. # qhasm: mulr6 = 0
  1192. # asm 1: mov $0,>mulr6=int64#6
  1193. # asm 2: mov $0,>mulr6=%r9
  1194. mov $0,%r9
  1195. # qhasm: mulr7 = 0
  1196. # asm 1: mov $0,>mulr7=int64#8
  1197. # asm 2: mov $0,>mulr7=%r10
  1198. mov $0,%r10
  1199. # qhasm: mulx0 = *(uint64 *)(pp + 32)
  1200. # asm 1: movq 32(<pp=int64#2),>mulx0=int64#9
  1201. # asm 2: movq 32(<pp=%rsi),>mulx0=%r11
  1202. movq 32(%rsi),%r11
  1203. # qhasm: mulrax = *(uint64 *)(pp + 96)
  1204. # asm 1: movq 96(<pp=int64#2),>mulrax=int64#7
  1205. # asm 2: movq 96(<pp=%rsi),>mulrax=%rax
  1206. movq 96(%rsi),%rax
  1207. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  1208. # asm 1: mul <mulx0=int64#9
  1209. # asm 2: mul <mulx0=%r11
  1210. mul %r11
  1211. # qhasm: rz0 = mulrax
  1212. # asm 1: mov <mulrax=int64#7,>rz0=int64#10
  1213. # asm 2: mov <mulrax=%rax,>rz0=%r12
  1214. mov %rax,%r12
  1215. # qhasm: rz1 = mulrdx
  1216. # asm 1: mov <mulrdx=int64#3,>rz1=int64#11
  1217. # asm 2: mov <mulrdx=%rdx,>rz1=%r13
  1218. mov %rdx,%r13
  1219. # qhasm: mulrax = *(uint64 *)(pp + 104)
  1220. # asm 1: movq 104(<pp=int64#2),>mulrax=int64#7
  1221. # asm 2: movq 104(<pp=%rsi),>mulrax=%rax
  1222. movq 104(%rsi),%rax
  1223. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  1224. # asm 1: mul <mulx0=int64#9
  1225. # asm 2: mul <mulx0=%r11
  1226. mul %r11
  1227. # qhasm: carry? rz1 += mulrax
  1228. # asm 1: add <mulrax=int64#7,<rz1=int64#11
  1229. # asm 2: add <mulrax=%rax,<rz1=%r13
  1230. add %rax,%r13
  1231. # qhasm: rz2 = 0
  1232. # asm 1: mov $0,>rz2=int64#12
  1233. # asm 2: mov $0,>rz2=%r14
  1234. mov $0,%r14
  1235. # qhasm: rz2 += mulrdx + carry
  1236. # asm 1: adc <mulrdx=int64#3,<rz2=int64#12
  1237. # asm 2: adc <mulrdx=%rdx,<rz2=%r14
  1238. adc %rdx,%r14
  1239. # qhasm: mulrax = *(uint64 *)(pp + 112)
  1240. # asm 1: movq 112(<pp=int64#2),>mulrax=int64#7
  1241. # asm 2: movq 112(<pp=%rsi),>mulrax=%rax
  1242. movq 112(%rsi),%rax
  1243. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  1244. # asm 1: mul <mulx0=int64#9
  1245. # asm 2: mul <mulx0=%r11
  1246. mul %r11
  1247. # qhasm: carry? rz2 += mulrax
  1248. # asm 1: add <mulrax=int64#7,<rz2=int64#12
  1249. # asm 2: add <mulrax=%rax,<rz2=%r14
  1250. add %rax,%r14
  1251. # qhasm: rz3 = 0
  1252. # asm 1: mov $0,>rz3=int64#13
  1253. # asm 2: mov $0,>rz3=%r15
  1254. mov $0,%r15
  1255. # qhasm: rz3 += mulrdx + carry
  1256. # asm 1: adc <mulrdx=int64#3,<rz3=int64#13
  1257. # asm 2: adc <mulrdx=%rdx,<rz3=%r15
  1258. adc %rdx,%r15
  1259. # qhasm: mulrax = *(uint64 *)(pp + 120)
  1260. # asm 1: movq 120(<pp=int64#2),>mulrax=int64#7
  1261. # asm 2: movq 120(<pp=%rsi),>mulrax=%rax
  1262. movq 120(%rsi),%rax
  1263. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  1264. # asm 1: mul <mulx0=int64#9
  1265. # asm 2: mul <mulx0=%r11
  1266. mul %r11
  1267. # qhasm: carry? rz3 += mulrax
  1268. # asm 1: add <mulrax=int64#7,<rz3=int64#13
  1269. # asm 2: add <mulrax=%rax,<rz3=%r15
  1270. add %rax,%r15
  1271. # qhasm: mulr4 += mulrdx + carry
  1272. # asm 1: adc <mulrdx=int64#3,<mulr4=int64#4
  1273. # asm 2: adc <mulrdx=%rdx,<mulr4=%rcx
  1274. adc %rdx,%rcx
  1275. # qhasm: mulx1 = *(uint64 *)(pp + 40)
  1276. # asm 1: movq 40(<pp=int64#2),>mulx1=int64#9
  1277. # asm 2: movq 40(<pp=%rsi),>mulx1=%r11
  1278. movq 40(%rsi),%r11
  1279. # qhasm: mulrax = *(uint64 *)(pp + 96)
  1280. # asm 1: movq 96(<pp=int64#2),>mulrax=int64#7
  1281. # asm 2: movq 96(<pp=%rsi),>mulrax=%rax
  1282. movq 96(%rsi),%rax
  1283. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1284. # asm 1: mul <mulx1=int64#9
  1285. # asm 2: mul <mulx1=%r11
  1286. mul %r11
  1287. # qhasm: carry? rz1 += mulrax
  1288. # asm 1: add <mulrax=int64#7,<rz1=int64#11
  1289. # asm 2: add <mulrax=%rax,<rz1=%r13
  1290. add %rax,%r13
  1291. # qhasm: mulc = 0
  1292. # asm 1: mov $0,>mulc=int64#14
  1293. # asm 2: mov $0,>mulc=%rbx
  1294. mov $0,%rbx
  1295. # qhasm: mulc += mulrdx + carry
  1296. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1297. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1298. adc %rdx,%rbx
  1299. # qhasm: mulrax = *(uint64 *)(pp + 104)
  1300. # asm 1: movq 104(<pp=int64#2),>mulrax=int64#7
  1301. # asm 2: movq 104(<pp=%rsi),>mulrax=%rax
  1302. movq 104(%rsi),%rax
  1303. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1304. # asm 1: mul <mulx1=int64#9
  1305. # asm 2: mul <mulx1=%r11
  1306. mul %r11
  1307. # qhasm: carry? rz2 += mulrax
  1308. # asm 1: add <mulrax=int64#7,<rz2=int64#12
  1309. # asm 2: add <mulrax=%rax,<rz2=%r14
  1310. add %rax,%r14
  1311. # qhasm: mulrdx += 0 + carry
  1312. # asm 1: adc $0,<mulrdx=int64#3
  1313. # asm 2: adc $0,<mulrdx=%rdx
  1314. adc $0,%rdx
  1315. # qhasm: carry? rz2 += mulc
  1316. # asm 1: add <mulc=int64#14,<rz2=int64#12
  1317. # asm 2: add <mulc=%rbx,<rz2=%r14
  1318. add %rbx,%r14
  1319. # qhasm: mulc = 0
  1320. # asm 1: mov $0,>mulc=int64#14
  1321. # asm 2: mov $0,>mulc=%rbx
  1322. mov $0,%rbx
  1323. # qhasm: mulc += mulrdx + carry
  1324. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1325. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1326. adc %rdx,%rbx
  1327. # qhasm: mulrax = *(uint64 *)(pp + 112)
  1328. # asm 1: movq 112(<pp=int64#2),>mulrax=int64#7
  1329. # asm 2: movq 112(<pp=%rsi),>mulrax=%rax
  1330. movq 112(%rsi),%rax
  1331. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1332. # asm 1: mul <mulx1=int64#9
  1333. # asm 2: mul <mulx1=%r11
  1334. mul %r11
  1335. # qhasm: carry? rz3 += mulrax
  1336. # asm 1: add <mulrax=int64#7,<rz3=int64#13
  1337. # asm 2: add <mulrax=%rax,<rz3=%r15
  1338. add %rax,%r15
  1339. # qhasm: mulrdx += 0 + carry
  1340. # asm 1: adc $0,<mulrdx=int64#3
  1341. # asm 2: adc $0,<mulrdx=%rdx
  1342. adc $0,%rdx
  1343. # qhasm: carry? rz3 += mulc
  1344. # asm 1: add <mulc=int64#14,<rz3=int64#13
  1345. # asm 2: add <mulc=%rbx,<rz3=%r15
  1346. add %rbx,%r15
  1347. # qhasm: mulc = 0
  1348. # asm 1: mov $0,>mulc=int64#14
  1349. # asm 2: mov $0,>mulc=%rbx
  1350. mov $0,%rbx
  1351. # qhasm: mulc += mulrdx + carry
  1352. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1353. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1354. adc %rdx,%rbx
  1355. # qhasm: mulrax = *(uint64 *)(pp + 120)
  1356. # asm 1: movq 120(<pp=int64#2),>mulrax=int64#7
  1357. # asm 2: movq 120(<pp=%rsi),>mulrax=%rax
  1358. movq 120(%rsi),%rax
  1359. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1360. # asm 1: mul <mulx1=int64#9
  1361. # asm 2: mul <mulx1=%r11
  1362. mul %r11
  1363. # qhasm: carry? mulr4 += mulrax
  1364. # asm 1: add <mulrax=int64#7,<mulr4=int64#4
  1365. # asm 2: add <mulrax=%rax,<mulr4=%rcx
  1366. add %rax,%rcx
  1367. # qhasm: mulrdx += 0 + carry
  1368. # asm 1: adc $0,<mulrdx=int64#3
  1369. # asm 2: adc $0,<mulrdx=%rdx
  1370. adc $0,%rdx
  1371. # qhasm: carry? mulr4 += mulc
  1372. # asm 1: add <mulc=int64#14,<mulr4=int64#4
  1373. # asm 2: add <mulc=%rbx,<mulr4=%rcx
  1374. add %rbx,%rcx
  1375. # qhasm: mulr5 += mulrdx + carry
  1376. # asm 1: adc <mulrdx=int64#3,<mulr5=int64#5
  1377. # asm 2: adc <mulrdx=%rdx,<mulr5=%r8
  1378. adc %rdx,%r8
  1379. # qhasm: mulx2 = *(uint64 *)(pp + 48)
  1380. # asm 1: movq 48(<pp=int64#2),>mulx2=int64#9
  1381. # asm 2: movq 48(<pp=%rsi),>mulx2=%r11
  1382. movq 48(%rsi),%r11
  1383. # qhasm: mulrax = *(uint64 *)(pp + 96)
  1384. # asm 1: movq 96(<pp=int64#2),>mulrax=int64#7
  1385. # asm 2: movq 96(<pp=%rsi),>mulrax=%rax
  1386. movq 96(%rsi),%rax
  1387. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1388. # asm 1: mul <mulx2=int64#9
  1389. # asm 2: mul <mulx2=%r11
  1390. mul %r11
  1391. # qhasm: carry? rz2 += mulrax
  1392. # asm 1: add <mulrax=int64#7,<rz2=int64#12
  1393. # asm 2: add <mulrax=%rax,<rz2=%r14
  1394. add %rax,%r14
  1395. # qhasm: mulc = 0
  1396. # asm 1: mov $0,>mulc=int64#14
  1397. # asm 2: mov $0,>mulc=%rbx
  1398. mov $0,%rbx
  1399. # qhasm: mulc += mulrdx + carry
  1400. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1401. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1402. adc %rdx,%rbx
  1403. # qhasm: mulrax = *(uint64 *)(pp + 104)
  1404. # asm 1: movq 104(<pp=int64#2),>mulrax=int64#7
  1405. # asm 2: movq 104(<pp=%rsi),>mulrax=%rax
  1406. movq 104(%rsi),%rax
  1407. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1408. # asm 1: mul <mulx2=int64#9
  1409. # asm 2: mul <mulx2=%r11
  1410. mul %r11
  1411. # qhasm: carry? rz3 += mulrax
  1412. # asm 1: add <mulrax=int64#7,<rz3=int64#13
  1413. # asm 2: add <mulrax=%rax,<rz3=%r15
  1414. add %rax,%r15
  1415. # qhasm: mulrdx += 0 + carry
  1416. # asm 1: adc $0,<mulrdx=int64#3
  1417. # asm 2: adc $0,<mulrdx=%rdx
  1418. adc $0,%rdx
  1419. # qhasm: carry? rz3 += mulc
  1420. # asm 1: add <mulc=int64#14,<rz3=int64#13
  1421. # asm 2: add <mulc=%rbx,<rz3=%r15
  1422. add %rbx,%r15
  1423. # qhasm: mulc = 0
  1424. # asm 1: mov $0,>mulc=int64#14
  1425. # asm 2: mov $0,>mulc=%rbx
  1426. mov $0,%rbx
  1427. # qhasm: mulc += mulrdx + carry
  1428. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1429. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1430. adc %rdx,%rbx
  1431. # qhasm: mulrax = *(uint64 *)(pp + 112)
  1432. # asm 1: movq 112(<pp=int64#2),>mulrax=int64#7
  1433. # asm 2: movq 112(<pp=%rsi),>mulrax=%rax
  1434. movq 112(%rsi),%rax
  1435. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1436. # asm 1: mul <mulx2=int64#9
  1437. # asm 2: mul <mulx2=%r11
  1438. mul %r11
  1439. # qhasm: carry? mulr4 += mulrax
  1440. # asm 1: add <mulrax=int64#7,<mulr4=int64#4
  1441. # asm 2: add <mulrax=%rax,<mulr4=%rcx
  1442. add %rax,%rcx
  1443. # qhasm: mulrdx += 0 + carry
  1444. # asm 1: adc $0,<mulrdx=int64#3
  1445. # asm 2: adc $0,<mulrdx=%rdx
  1446. adc $0,%rdx
  1447. # qhasm: carry? mulr4 += mulc
  1448. # asm 1: add <mulc=int64#14,<mulr4=int64#4
  1449. # asm 2: add <mulc=%rbx,<mulr4=%rcx
  1450. add %rbx,%rcx
  1451. # qhasm: mulc = 0
  1452. # asm 1: mov $0,>mulc=int64#14
  1453. # asm 2: mov $0,>mulc=%rbx
  1454. mov $0,%rbx
  1455. # qhasm: mulc += mulrdx + carry
  1456. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1457. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1458. adc %rdx,%rbx
  1459. # qhasm: mulrax = *(uint64 *)(pp + 120)
  1460. # asm 1: movq 120(<pp=int64#2),>mulrax=int64#7
  1461. # asm 2: movq 120(<pp=%rsi),>mulrax=%rax
  1462. movq 120(%rsi),%rax
  1463. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1464. # asm 1: mul <mulx2=int64#9
  1465. # asm 2: mul <mulx2=%r11
  1466. mul %r11
  1467. # qhasm: carry? mulr5 += mulrax
  1468. # asm 1: add <mulrax=int64#7,<mulr5=int64#5
  1469. # asm 2: add <mulrax=%rax,<mulr5=%r8
  1470. add %rax,%r8
  1471. # qhasm: mulrdx += 0 + carry
  1472. # asm 1: adc $0,<mulrdx=int64#3
  1473. # asm 2: adc $0,<mulrdx=%rdx
  1474. adc $0,%rdx
  1475. # qhasm: carry? mulr5 += mulc
  1476. # asm 1: add <mulc=int64#14,<mulr5=int64#5
  1477. # asm 2: add <mulc=%rbx,<mulr5=%r8
  1478. add %rbx,%r8
  1479. # qhasm: mulr6 += mulrdx + carry
  1480. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#6
  1481. # asm 2: adc <mulrdx=%rdx,<mulr6=%r9
  1482. adc %rdx,%r9
  1483. # qhasm: mulx3 = *(uint64 *)(pp + 56)
  1484. # asm 1: movq 56(<pp=int64#2),>mulx3=int64#9
  1485. # asm 2: movq 56(<pp=%rsi),>mulx3=%r11
  1486. movq 56(%rsi),%r11
  1487. # qhasm: mulrax = *(uint64 *)(pp + 96)
  1488. # asm 1: movq 96(<pp=int64#2),>mulrax=int64#7
  1489. # asm 2: movq 96(<pp=%rsi),>mulrax=%rax
  1490. movq 96(%rsi),%rax
  1491. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  1492. # asm 1: mul <mulx3=int64#9
  1493. # asm 2: mul <mulx3=%r11
  1494. mul %r11
  1495. # qhasm: carry? rz3 += mulrax
  1496. # asm 1: add <mulrax=int64#7,<rz3=int64#13
  1497. # asm 2: add <mulrax=%rax,<rz3=%r15
  1498. add %rax,%r15
  1499. # qhasm: mulc = 0
  1500. # asm 1: mov $0,>mulc=int64#14
  1501. # asm 2: mov $0,>mulc=%rbx
  1502. mov $0,%rbx
  1503. # qhasm: mulc += mulrdx + carry
  1504. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1505. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1506. adc %rdx,%rbx
  1507. # qhasm: mulrax = *(uint64 *)(pp + 104)
  1508. # asm 1: movq 104(<pp=int64#2),>mulrax=int64#7
  1509. # asm 2: movq 104(<pp=%rsi),>mulrax=%rax
  1510. movq 104(%rsi),%rax
  1511. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  1512. # asm 1: mul <mulx3=int64#9
  1513. # asm 2: mul <mulx3=%r11
  1514. mul %r11
  1515. # qhasm: carry? mulr4 += mulrax
  1516. # asm 1: add <mulrax=int64#7,<mulr4=int64#4
  1517. # asm 2: add <mulrax=%rax,<mulr4=%rcx
  1518. add %rax,%rcx
  1519. # qhasm: mulrdx += 0 + carry
  1520. # asm 1: adc $0,<mulrdx=int64#3
  1521. # asm 2: adc $0,<mulrdx=%rdx
  1522. adc $0,%rdx
  1523. # qhasm: carry? mulr4 += mulc
  1524. # asm 1: add <mulc=int64#14,<mulr4=int64#4
  1525. # asm 2: add <mulc=%rbx,<mulr4=%rcx
  1526. add %rbx,%rcx
  1527. # qhasm: mulc = 0
  1528. # asm 1: mov $0,>mulc=int64#14
  1529. # asm 2: mov $0,>mulc=%rbx
  1530. mov $0,%rbx
  1531. # qhasm: mulc += mulrdx + carry
  1532. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1533. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1534. adc %rdx,%rbx
  1535. # qhasm: mulrax = *(uint64 *)(pp + 112)
  1536. # asm 1: movq 112(<pp=int64#2),>mulrax=int64#7
  1537. # asm 2: movq 112(<pp=%rsi),>mulrax=%rax
  1538. movq 112(%rsi),%rax
  1539. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  1540. # asm 1: mul <mulx3=int64#9
  1541. # asm 2: mul <mulx3=%r11
  1542. mul %r11
  1543. # qhasm: carry? mulr5 += mulrax
  1544. # asm 1: add <mulrax=int64#7,<mulr5=int64#5
  1545. # asm 2: add <mulrax=%rax,<mulr5=%r8
  1546. add %rax,%r8
  1547. # qhasm: mulrdx += 0 + carry
  1548. # asm 1: adc $0,<mulrdx=int64#3
  1549. # asm 2: adc $0,<mulrdx=%rdx
  1550. adc $0,%rdx
  1551. # qhasm: carry? mulr5 += mulc
  1552. # asm 1: add <mulc=int64#14,<mulr5=int64#5
  1553. # asm 2: add <mulc=%rbx,<mulr5=%r8
  1554. add %rbx,%r8
  1555. # qhasm: mulc = 0
  1556. # asm 1: mov $0,>mulc=int64#14
  1557. # asm 2: mov $0,>mulc=%rbx
  1558. mov $0,%rbx
  1559. # qhasm: mulc += mulrdx + carry
  1560. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1561. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1562. adc %rdx,%rbx
  1563. # qhasm: mulrax = *(uint64 *)(pp + 120)
  1564. # asm 1: movq 120(<pp=int64#2),>mulrax=int64#7
  1565. # asm 2: movq 120(<pp=%rsi),>mulrax=%rax
  1566. movq 120(%rsi),%rax
  1567. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  1568. # asm 1: mul <mulx3=int64#9
  1569. # asm 2: mul <mulx3=%r11
  1570. mul %r11
  1571. # qhasm: carry? mulr6 += mulrax
  1572. # asm 1: add <mulrax=int64#7,<mulr6=int64#6
  1573. # asm 2: add <mulrax=%rax,<mulr6=%r9
  1574. add %rax,%r9
  1575. # qhasm: mulrdx += 0 + carry
  1576. # asm 1: adc $0,<mulrdx=int64#3
  1577. # asm 2: adc $0,<mulrdx=%rdx
  1578. adc $0,%rdx
  1579. # qhasm: carry? mulr6 += mulc
  1580. # asm 1: add <mulc=int64#14,<mulr6=int64#6
  1581. # asm 2: add <mulc=%rbx,<mulr6=%r9
  1582. add %rbx,%r9
  1583. # qhasm: mulr7 += mulrdx + carry
  1584. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#8
  1585. # asm 2: adc <mulrdx=%rdx,<mulr7=%r10
  1586. adc %rdx,%r10
  1587. # qhasm: mulrax = mulr4
  1588. # asm 1: mov <mulr4=int64#4,>mulrax=int64#7
  1589. # asm 2: mov <mulr4=%rcx,>mulrax=%rax
  1590. mov %rcx,%rax
  1591. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1592. mulq CRYPTO_NAMESPACE(38)(%rip)
  1593. # qhasm: mulr4 = mulrax
  1594. # asm 1: mov <mulrax=int64#7,>mulr4=int64#4
  1595. # asm 2: mov <mulrax=%rax,>mulr4=%rcx
  1596. mov %rax,%rcx
  1597. # qhasm: mulrax = mulr5
  1598. # asm 1: mov <mulr5=int64#5,>mulrax=int64#7
  1599. # asm 2: mov <mulr5=%r8,>mulrax=%rax
  1600. mov %r8,%rax
  1601. # qhasm: mulr5 = mulrdx
  1602. # asm 1: mov <mulrdx=int64#3,>mulr5=int64#5
  1603. # asm 2: mov <mulrdx=%rdx,>mulr5=%r8
  1604. mov %rdx,%r8
  1605. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1606. mulq CRYPTO_NAMESPACE(38)(%rip)
  1607. # qhasm: carry? mulr5 += mulrax
  1608. # asm 1: add <mulrax=int64#7,<mulr5=int64#5
  1609. # asm 2: add <mulrax=%rax,<mulr5=%r8
  1610. add %rax,%r8
  1611. # qhasm: mulrax = mulr6
  1612. # asm 1: mov <mulr6=int64#6,>mulrax=int64#7
  1613. # asm 2: mov <mulr6=%r9,>mulrax=%rax
  1614. mov %r9,%rax
  1615. # qhasm: mulr6 = 0
  1616. # asm 1: mov $0,>mulr6=int64#6
  1617. # asm 2: mov $0,>mulr6=%r9
  1618. mov $0,%r9
  1619. # qhasm: mulr6 += mulrdx + carry
  1620. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#6
  1621. # asm 2: adc <mulrdx=%rdx,<mulr6=%r9
  1622. adc %rdx,%r9
  1623. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1624. mulq CRYPTO_NAMESPACE(38)(%rip)
  1625. # qhasm: carry? mulr6 += mulrax
  1626. # asm 1: add <mulrax=int64#7,<mulr6=int64#6
  1627. # asm 2: add <mulrax=%rax,<mulr6=%r9
  1628. add %rax,%r9
  1629. # qhasm: mulrax = mulr7
  1630. # asm 1: mov <mulr7=int64#8,>mulrax=int64#7
  1631. # asm 2: mov <mulr7=%r10,>mulrax=%rax
  1632. mov %r10,%rax
  1633. # qhasm: mulr7 = 0
  1634. # asm 1: mov $0,>mulr7=int64#8
  1635. # asm 2: mov $0,>mulr7=%r10
  1636. mov $0,%r10
  1637. # qhasm: mulr7 += mulrdx + carry
  1638. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#8
  1639. # asm 2: adc <mulrdx=%rdx,<mulr7=%r10
  1640. adc %rdx,%r10
  1641. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  1642. mulq CRYPTO_NAMESPACE(38)(%rip)
  1643. # qhasm: carry? mulr7 += mulrax
  1644. # asm 1: add <mulrax=int64#7,<mulr7=int64#8
  1645. # asm 2: add <mulrax=%rax,<mulr7=%r10
  1646. add %rax,%r10
  1647. # qhasm: mulr8 = 0
  1648. # asm 1: mov $0,>mulr8=int64#7
  1649. # asm 2: mov $0,>mulr8=%rax
  1650. mov $0,%rax
  1651. # qhasm: mulr8 += mulrdx + carry
  1652. # asm 1: adc <mulrdx=int64#3,<mulr8=int64#7
  1653. # asm 2: adc <mulrdx=%rdx,<mulr8=%rax
  1654. adc %rdx,%rax
  1655. # qhasm: carry? rz0 += mulr4
  1656. # asm 1: add <mulr4=int64#4,<rz0=int64#10
  1657. # asm 2: add <mulr4=%rcx,<rz0=%r12
  1658. add %rcx,%r12
  1659. # qhasm: carry? rz1 += mulr5 + carry
  1660. # asm 1: adc <mulr5=int64#5,<rz1=int64#11
  1661. # asm 2: adc <mulr5=%r8,<rz1=%r13
  1662. adc %r8,%r13
  1663. # qhasm: carry? rz2 += mulr6 + carry
  1664. # asm 1: adc <mulr6=int64#6,<rz2=int64#12
  1665. # asm 2: adc <mulr6=%r9,<rz2=%r14
  1666. adc %r9,%r14
  1667. # qhasm: carry? rz3 += mulr7 + carry
  1668. # asm 1: adc <mulr7=int64#8,<rz3=int64#13
  1669. # asm 2: adc <mulr7=%r10,<rz3=%r15
  1670. adc %r10,%r15
  1671. # qhasm: mulzero = 0
  1672. # asm 1: mov $0,>mulzero=int64#3
  1673. # asm 2: mov $0,>mulzero=%rdx
  1674. mov $0,%rdx
  1675. # qhasm: mulr8 += mulzero + carry
  1676. # asm 1: adc <mulzero=int64#3,<mulr8=int64#7
  1677. # asm 2: adc <mulzero=%rdx,<mulr8=%rax
  1678. adc %rdx,%rax
  1679. # qhasm: mulr8 *= 38
  1680. # asm 1: imulq $38,<mulr8=int64#7,>mulr8=int64#4
  1681. # asm 2: imulq $38,<mulr8=%rax,>mulr8=%rcx
  1682. imulq $38,%rax,%rcx
  1683. # qhasm: carry? rz0 += mulr8
  1684. # asm 1: add <mulr8=int64#4,<rz0=int64#10
  1685. # asm 2: add <mulr8=%rcx,<rz0=%r12
  1686. add %rcx,%r12
  1687. # qhasm: carry? rz1 += mulzero + carry
  1688. # asm 1: adc <mulzero=int64#3,<rz1=int64#11
  1689. # asm 2: adc <mulzero=%rdx,<rz1=%r13
  1690. adc %rdx,%r13
  1691. # qhasm: carry? rz2 += mulzero + carry
  1692. # asm 1: adc <mulzero=int64#3,<rz2=int64#12
  1693. # asm 2: adc <mulzero=%rdx,<rz2=%r14
  1694. adc %rdx,%r14
  1695. # qhasm: carry? rz3 += mulzero + carry
  1696. # asm 1: adc <mulzero=int64#3,<rz3=int64#13
  1697. # asm 2: adc <mulzero=%rdx,<rz3=%r15
  1698. adc %rdx,%r15
  1699. # qhasm: mulzero += mulzero + carry
  1700. # asm 1: adc <mulzero=int64#3,<mulzero=int64#3
  1701. # asm 2: adc <mulzero=%rdx,<mulzero=%rdx
  1702. adc %rdx,%rdx
  1703. # qhasm: mulzero *= 38
  1704. # asm 1: imulq $38,<mulzero=int64#3,>mulzero=int64#3
  1705. # asm 2: imulq $38,<mulzero=%rdx,>mulzero=%rdx
  1706. imulq $38,%rdx,%rdx
  1707. # qhasm: rz0 += mulzero
  1708. # asm 1: add <mulzero=int64#3,<rz0=int64#10
  1709. # asm 2: add <mulzero=%rdx,<rz0=%r12
  1710. add %rdx,%r12
  1711. # qhasm: *(uint64 *)(rp + 64) = rz0
  1712. # asm 1: movq <rz0=int64#10,64(<rp=int64#1)
  1713. # asm 2: movq <rz0=%r12,64(<rp=%rdi)
  1714. movq %r12,64(%rdi)
  1715. # qhasm: *(uint64 *)(rp + 72) = rz1
  1716. # asm 1: movq <rz1=int64#11,72(<rp=int64#1)
  1717. # asm 2: movq <rz1=%r13,72(<rp=%rdi)
  1718. movq %r13,72(%rdi)
  1719. # qhasm: *(uint64 *)(rp + 80) = rz2
  1720. # asm 1: movq <rz2=int64#12,80(<rp=int64#1)
  1721. # asm 2: movq <rz2=%r14,80(<rp=%rdi)
  1722. movq %r14,80(%rdi)
  1723. # qhasm: *(uint64 *)(rp + 88) = rz3
  1724. # asm 1: movq <rz3=int64#13,88(<rp=int64#1)
  1725. # asm 2: movq <rz3=%r15,88(<rp=%rdi)
  1726. movq %r15,88(%rdi)
  1727. # qhasm: mulr4 = 0
  1728. # asm 1: mov $0,>mulr4=int64#4
  1729. # asm 2: mov $0,>mulr4=%rcx
  1730. mov $0,%rcx
  1731. # qhasm: mulr5 = 0
  1732. # asm 1: mov $0,>mulr5=int64#5
  1733. # asm 2: mov $0,>mulr5=%r8
  1734. mov $0,%r8
  1735. # qhasm: mulr6 = 0
  1736. # asm 1: mov $0,>mulr6=int64#6
  1737. # asm 2: mov $0,>mulr6=%r9
  1738. mov $0,%r9
  1739. # qhasm: mulr7 = 0
  1740. # asm 1: mov $0,>mulr7=int64#8
  1741. # asm 2: mov $0,>mulr7=%r10
  1742. mov $0,%r10
  1743. # qhasm: mulx0 = *(uint64 *)(pp + 0)
  1744. # asm 1: movq 0(<pp=int64#2),>mulx0=int64#9
  1745. # asm 2: movq 0(<pp=%rsi),>mulx0=%r11
  1746. movq 0(%rsi),%r11
  1747. # qhasm: mulrax = *(uint64 *)(pp + 64)
  1748. # asm 1: movq 64(<pp=int64#2),>mulrax=int64#7
  1749. # asm 2: movq 64(<pp=%rsi),>mulrax=%rax
  1750. movq 64(%rsi),%rax
  1751. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  1752. # asm 1: mul <mulx0=int64#9
  1753. # asm 2: mul <mulx0=%r11
  1754. mul %r11
  1755. # qhasm: rt0 = mulrax
  1756. # asm 1: mov <mulrax=int64#7,>rt0=int64#10
  1757. # asm 2: mov <mulrax=%rax,>rt0=%r12
  1758. mov %rax,%r12
  1759. # qhasm: rt1 = mulrdx
  1760. # asm 1: mov <mulrdx=int64#3,>rt1=int64#11
  1761. # asm 2: mov <mulrdx=%rdx,>rt1=%r13
  1762. mov %rdx,%r13
  1763. # qhasm: mulrax = *(uint64 *)(pp + 72)
  1764. # asm 1: movq 72(<pp=int64#2),>mulrax=int64#7
  1765. # asm 2: movq 72(<pp=%rsi),>mulrax=%rax
  1766. movq 72(%rsi),%rax
  1767. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  1768. # asm 1: mul <mulx0=int64#9
  1769. # asm 2: mul <mulx0=%r11
  1770. mul %r11
  1771. # qhasm: carry? rt1 += mulrax
  1772. # asm 1: add <mulrax=int64#7,<rt1=int64#11
  1773. # asm 2: add <mulrax=%rax,<rt1=%r13
  1774. add %rax,%r13
  1775. # qhasm: rt2 = 0
  1776. # asm 1: mov $0,>rt2=int64#12
  1777. # asm 2: mov $0,>rt2=%r14
  1778. mov $0,%r14
  1779. # qhasm: rt2 += mulrdx + carry
  1780. # asm 1: adc <mulrdx=int64#3,<rt2=int64#12
  1781. # asm 2: adc <mulrdx=%rdx,<rt2=%r14
  1782. adc %rdx,%r14
  1783. # qhasm: mulrax = *(uint64 *)(pp + 80)
  1784. # asm 1: movq 80(<pp=int64#2),>mulrax=int64#7
  1785. # asm 2: movq 80(<pp=%rsi),>mulrax=%rax
  1786. movq 80(%rsi),%rax
  1787. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  1788. # asm 1: mul <mulx0=int64#9
  1789. # asm 2: mul <mulx0=%r11
  1790. mul %r11
  1791. # qhasm: carry? rt2 += mulrax
  1792. # asm 1: add <mulrax=int64#7,<rt2=int64#12
  1793. # asm 2: add <mulrax=%rax,<rt2=%r14
  1794. add %rax,%r14
  1795. # qhasm: rt3 = 0
  1796. # asm 1: mov $0,>rt3=int64#13
  1797. # asm 2: mov $0,>rt3=%r15
  1798. mov $0,%r15
  1799. # qhasm: rt3 += mulrdx + carry
  1800. # asm 1: adc <mulrdx=int64#3,<rt3=int64#13
  1801. # asm 2: adc <mulrdx=%rdx,<rt3=%r15
  1802. adc %rdx,%r15
  1803. # qhasm: mulrax = *(uint64 *)(pp + 88)
  1804. # asm 1: movq 88(<pp=int64#2),>mulrax=int64#7
  1805. # asm 2: movq 88(<pp=%rsi),>mulrax=%rax
  1806. movq 88(%rsi),%rax
  1807. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0
  1808. # asm 1: mul <mulx0=int64#9
  1809. # asm 2: mul <mulx0=%r11
  1810. mul %r11
  1811. # qhasm: carry? rt3 += mulrax
  1812. # asm 1: add <mulrax=int64#7,<rt3=int64#13
  1813. # asm 2: add <mulrax=%rax,<rt3=%r15
  1814. add %rax,%r15
  1815. # qhasm: mulr4 += mulrdx + carry
  1816. # asm 1: adc <mulrdx=int64#3,<mulr4=int64#4
  1817. # asm 2: adc <mulrdx=%rdx,<mulr4=%rcx
  1818. adc %rdx,%rcx
  1819. # qhasm: mulx1 = *(uint64 *)(pp + 8)
  1820. # asm 1: movq 8(<pp=int64#2),>mulx1=int64#9
  1821. # asm 2: movq 8(<pp=%rsi),>mulx1=%r11
  1822. movq 8(%rsi),%r11
  1823. # qhasm: mulrax = *(uint64 *)(pp + 64)
  1824. # asm 1: movq 64(<pp=int64#2),>mulrax=int64#7
  1825. # asm 2: movq 64(<pp=%rsi),>mulrax=%rax
  1826. movq 64(%rsi),%rax
  1827. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1828. # asm 1: mul <mulx1=int64#9
  1829. # asm 2: mul <mulx1=%r11
  1830. mul %r11
  1831. # qhasm: carry? rt1 += mulrax
  1832. # asm 1: add <mulrax=int64#7,<rt1=int64#11
  1833. # asm 2: add <mulrax=%rax,<rt1=%r13
  1834. add %rax,%r13
  1835. # qhasm: mulc = 0
  1836. # asm 1: mov $0,>mulc=int64#14
  1837. # asm 2: mov $0,>mulc=%rbx
  1838. mov $0,%rbx
  1839. # qhasm: mulc += mulrdx + carry
  1840. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1841. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1842. adc %rdx,%rbx
  1843. # qhasm: mulrax = *(uint64 *)(pp + 72)
  1844. # asm 1: movq 72(<pp=int64#2),>mulrax=int64#7
  1845. # asm 2: movq 72(<pp=%rsi),>mulrax=%rax
  1846. movq 72(%rsi),%rax
  1847. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1848. # asm 1: mul <mulx1=int64#9
  1849. # asm 2: mul <mulx1=%r11
  1850. mul %r11
  1851. # qhasm: carry? rt2 += mulrax
  1852. # asm 1: add <mulrax=int64#7,<rt2=int64#12
  1853. # asm 2: add <mulrax=%rax,<rt2=%r14
  1854. add %rax,%r14
  1855. # qhasm: mulrdx += 0 + carry
  1856. # asm 1: adc $0,<mulrdx=int64#3
  1857. # asm 2: adc $0,<mulrdx=%rdx
  1858. adc $0,%rdx
  1859. # qhasm: carry? rt2 += mulc
  1860. # asm 1: add <mulc=int64#14,<rt2=int64#12
  1861. # asm 2: add <mulc=%rbx,<rt2=%r14
  1862. add %rbx,%r14
  1863. # qhasm: mulc = 0
  1864. # asm 1: mov $0,>mulc=int64#14
  1865. # asm 2: mov $0,>mulc=%rbx
  1866. mov $0,%rbx
  1867. # qhasm: mulc += mulrdx + carry
  1868. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1869. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1870. adc %rdx,%rbx
  1871. # qhasm: mulrax = *(uint64 *)(pp + 80)
  1872. # asm 1: movq 80(<pp=int64#2),>mulrax=int64#7
  1873. # asm 2: movq 80(<pp=%rsi),>mulrax=%rax
  1874. movq 80(%rsi),%rax
  1875. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1876. # asm 1: mul <mulx1=int64#9
  1877. # asm 2: mul <mulx1=%r11
  1878. mul %r11
  1879. # qhasm: carry? rt3 += mulrax
  1880. # asm 1: add <mulrax=int64#7,<rt3=int64#13
  1881. # asm 2: add <mulrax=%rax,<rt3=%r15
  1882. add %rax,%r15
  1883. # qhasm: mulrdx += 0 + carry
  1884. # asm 1: adc $0,<mulrdx=int64#3
  1885. # asm 2: adc $0,<mulrdx=%rdx
  1886. adc $0,%rdx
  1887. # qhasm: carry? rt3 += mulc
  1888. # asm 1: add <mulc=int64#14,<rt3=int64#13
  1889. # asm 2: add <mulc=%rbx,<rt3=%r15
  1890. add %rbx,%r15
  1891. # qhasm: mulc = 0
  1892. # asm 1: mov $0,>mulc=int64#14
  1893. # asm 2: mov $0,>mulc=%rbx
  1894. mov $0,%rbx
  1895. # qhasm: mulc += mulrdx + carry
  1896. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1897. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1898. adc %rdx,%rbx
  1899. # qhasm: mulrax = *(uint64 *)(pp + 88)
  1900. # asm 1: movq 88(<pp=int64#2),>mulrax=int64#7
  1901. # asm 2: movq 88(<pp=%rsi),>mulrax=%rax
  1902. movq 88(%rsi),%rax
  1903. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1
  1904. # asm 1: mul <mulx1=int64#9
  1905. # asm 2: mul <mulx1=%r11
  1906. mul %r11
  1907. # qhasm: carry? mulr4 += mulrax
  1908. # asm 1: add <mulrax=int64#7,<mulr4=int64#4
  1909. # asm 2: add <mulrax=%rax,<mulr4=%rcx
  1910. add %rax,%rcx
  1911. # qhasm: mulrdx += 0 + carry
  1912. # asm 1: adc $0,<mulrdx=int64#3
  1913. # asm 2: adc $0,<mulrdx=%rdx
  1914. adc $0,%rdx
  1915. # qhasm: carry? mulr4 += mulc
  1916. # asm 1: add <mulc=int64#14,<mulr4=int64#4
  1917. # asm 2: add <mulc=%rbx,<mulr4=%rcx
  1918. add %rbx,%rcx
  1919. # qhasm: mulr5 += mulrdx + carry
  1920. # asm 1: adc <mulrdx=int64#3,<mulr5=int64#5
  1921. # asm 2: adc <mulrdx=%rdx,<mulr5=%r8
  1922. adc %rdx,%r8
  1923. # qhasm: mulx2 = *(uint64 *)(pp + 16)
  1924. # asm 1: movq 16(<pp=int64#2),>mulx2=int64#9
  1925. # asm 2: movq 16(<pp=%rsi),>mulx2=%r11
  1926. movq 16(%rsi),%r11
  1927. # qhasm: mulrax = *(uint64 *)(pp + 64)
  1928. # asm 1: movq 64(<pp=int64#2),>mulrax=int64#7
  1929. # asm 2: movq 64(<pp=%rsi),>mulrax=%rax
  1930. movq 64(%rsi),%rax
  1931. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1932. # asm 1: mul <mulx2=int64#9
  1933. # asm 2: mul <mulx2=%r11
  1934. mul %r11
  1935. # qhasm: carry? rt2 += mulrax
  1936. # asm 1: add <mulrax=int64#7,<rt2=int64#12
  1937. # asm 2: add <mulrax=%rax,<rt2=%r14
  1938. add %rax,%r14
  1939. # qhasm: mulc = 0
  1940. # asm 1: mov $0,>mulc=int64#14
  1941. # asm 2: mov $0,>mulc=%rbx
  1942. mov $0,%rbx
  1943. # qhasm: mulc += mulrdx + carry
  1944. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1945. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1946. adc %rdx,%rbx
  1947. # qhasm: mulrax = *(uint64 *)(pp + 72)
  1948. # asm 1: movq 72(<pp=int64#2),>mulrax=int64#7
  1949. # asm 2: movq 72(<pp=%rsi),>mulrax=%rax
  1950. movq 72(%rsi),%rax
  1951. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1952. # asm 1: mul <mulx2=int64#9
  1953. # asm 2: mul <mulx2=%r11
  1954. mul %r11
  1955. # qhasm: carry? rt3 += mulrax
  1956. # asm 1: add <mulrax=int64#7,<rt3=int64#13
  1957. # asm 2: add <mulrax=%rax,<rt3=%r15
  1958. add %rax,%r15
  1959. # qhasm: mulrdx += 0 + carry
  1960. # asm 1: adc $0,<mulrdx=int64#3
  1961. # asm 2: adc $0,<mulrdx=%rdx
  1962. adc $0,%rdx
  1963. # qhasm: carry? rt3 += mulc
  1964. # asm 1: add <mulc=int64#14,<rt3=int64#13
  1965. # asm 2: add <mulc=%rbx,<rt3=%r15
  1966. add %rbx,%r15
  1967. # qhasm: mulc = 0
  1968. # asm 1: mov $0,>mulc=int64#14
  1969. # asm 2: mov $0,>mulc=%rbx
  1970. mov $0,%rbx
  1971. # qhasm: mulc += mulrdx + carry
  1972. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  1973. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  1974. adc %rdx,%rbx
  1975. # qhasm: mulrax = *(uint64 *)(pp + 80)
  1976. # asm 1: movq 80(<pp=int64#2),>mulrax=int64#7
  1977. # asm 2: movq 80(<pp=%rsi),>mulrax=%rax
  1978. movq 80(%rsi),%rax
  1979. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  1980. # asm 1: mul <mulx2=int64#9
  1981. # asm 2: mul <mulx2=%r11
  1982. mul %r11
  1983. # qhasm: carry? mulr4 += mulrax
  1984. # asm 1: add <mulrax=int64#7,<mulr4=int64#4
  1985. # asm 2: add <mulrax=%rax,<mulr4=%rcx
  1986. add %rax,%rcx
  1987. # qhasm: mulrdx += 0 + carry
  1988. # asm 1: adc $0,<mulrdx=int64#3
  1989. # asm 2: adc $0,<mulrdx=%rdx
  1990. adc $0,%rdx
  1991. # qhasm: carry? mulr4 += mulc
  1992. # asm 1: add <mulc=int64#14,<mulr4=int64#4
  1993. # asm 2: add <mulc=%rbx,<mulr4=%rcx
  1994. add %rbx,%rcx
  1995. # qhasm: mulc = 0
  1996. # asm 1: mov $0,>mulc=int64#14
  1997. # asm 2: mov $0,>mulc=%rbx
  1998. mov $0,%rbx
  1999. # qhasm: mulc += mulrdx + carry
  2000. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  2001. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  2002. adc %rdx,%rbx
  2003. # qhasm: mulrax = *(uint64 *)(pp + 88)
  2004. # asm 1: movq 88(<pp=int64#2),>mulrax=int64#7
  2005. # asm 2: movq 88(<pp=%rsi),>mulrax=%rax
  2006. movq 88(%rsi),%rax
  2007. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2
  2008. # asm 1: mul <mulx2=int64#9
  2009. # asm 2: mul <mulx2=%r11
  2010. mul %r11
  2011. # qhasm: carry? mulr5 += mulrax
  2012. # asm 1: add <mulrax=int64#7,<mulr5=int64#5
  2013. # asm 2: add <mulrax=%rax,<mulr5=%r8
  2014. add %rax,%r8
  2015. # qhasm: mulrdx += 0 + carry
  2016. # asm 1: adc $0,<mulrdx=int64#3
  2017. # asm 2: adc $0,<mulrdx=%rdx
  2018. adc $0,%rdx
  2019. # qhasm: carry? mulr5 += mulc
  2020. # asm 1: add <mulc=int64#14,<mulr5=int64#5
  2021. # asm 2: add <mulc=%rbx,<mulr5=%r8
  2022. add %rbx,%r8
  2023. # qhasm: mulr6 += mulrdx + carry
  2024. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#6
  2025. # asm 2: adc <mulrdx=%rdx,<mulr6=%r9
  2026. adc %rdx,%r9
  2027. # qhasm: mulx3 = *(uint64 *)(pp + 24)
  2028. # asm 1: movq 24(<pp=int64#2),>mulx3=int64#9
  2029. # asm 2: movq 24(<pp=%rsi),>mulx3=%r11
  2030. movq 24(%rsi),%r11
  2031. # qhasm: mulrax = *(uint64 *)(pp + 64)
  2032. # asm 1: movq 64(<pp=int64#2),>mulrax=int64#7
  2033. # asm 2: movq 64(<pp=%rsi),>mulrax=%rax
  2034. movq 64(%rsi),%rax
  2035. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  2036. # asm 1: mul <mulx3=int64#9
  2037. # asm 2: mul <mulx3=%r11
  2038. mul %r11
  2039. # qhasm: carry? rt3 += mulrax
  2040. # asm 1: add <mulrax=int64#7,<rt3=int64#13
  2041. # asm 2: add <mulrax=%rax,<rt3=%r15
  2042. add %rax,%r15
  2043. # qhasm: mulc = 0
  2044. # asm 1: mov $0,>mulc=int64#14
  2045. # asm 2: mov $0,>mulc=%rbx
  2046. mov $0,%rbx
  2047. # qhasm: mulc += mulrdx + carry
  2048. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  2049. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  2050. adc %rdx,%rbx
  2051. # qhasm: mulrax = *(uint64 *)(pp + 72)
  2052. # asm 1: movq 72(<pp=int64#2),>mulrax=int64#7
  2053. # asm 2: movq 72(<pp=%rsi),>mulrax=%rax
  2054. movq 72(%rsi),%rax
  2055. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  2056. # asm 1: mul <mulx3=int64#9
  2057. # asm 2: mul <mulx3=%r11
  2058. mul %r11
  2059. # qhasm: carry? mulr4 += mulrax
  2060. # asm 1: add <mulrax=int64#7,<mulr4=int64#4
  2061. # asm 2: add <mulrax=%rax,<mulr4=%rcx
  2062. add %rax,%rcx
  2063. # qhasm: mulrdx += 0 + carry
  2064. # asm 1: adc $0,<mulrdx=int64#3
  2065. # asm 2: adc $0,<mulrdx=%rdx
  2066. adc $0,%rdx
  2067. # qhasm: carry? mulr4 += mulc
  2068. # asm 1: add <mulc=int64#14,<mulr4=int64#4
  2069. # asm 2: add <mulc=%rbx,<mulr4=%rcx
  2070. add %rbx,%rcx
  2071. # qhasm: mulc = 0
  2072. # asm 1: mov $0,>mulc=int64#14
  2073. # asm 2: mov $0,>mulc=%rbx
  2074. mov $0,%rbx
  2075. # qhasm: mulc += mulrdx + carry
  2076. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  2077. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  2078. adc %rdx,%rbx
  2079. # qhasm: mulrax = *(uint64 *)(pp + 80)
  2080. # asm 1: movq 80(<pp=int64#2),>mulrax=int64#7
  2081. # asm 2: movq 80(<pp=%rsi),>mulrax=%rax
  2082. movq 80(%rsi),%rax
  2083. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  2084. # asm 1: mul <mulx3=int64#9
  2085. # asm 2: mul <mulx3=%r11
  2086. mul %r11
  2087. # qhasm: carry? mulr5 += mulrax
  2088. # asm 1: add <mulrax=int64#7,<mulr5=int64#5
  2089. # asm 2: add <mulrax=%rax,<mulr5=%r8
  2090. add %rax,%r8
  2091. # qhasm: mulrdx += 0 + carry
  2092. # asm 1: adc $0,<mulrdx=int64#3
  2093. # asm 2: adc $0,<mulrdx=%rdx
  2094. adc $0,%rdx
  2095. # qhasm: carry? mulr5 += mulc
  2096. # asm 1: add <mulc=int64#14,<mulr5=int64#5
  2097. # asm 2: add <mulc=%rbx,<mulr5=%r8
  2098. add %rbx,%r8
  2099. # qhasm: mulc = 0
  2100. # asm 1: mov $0,>mulc=int64#14
  2101. # asm 2: mov $0,>mulc=%rbx
  2102. mov $0,%rbx
  2103. # qhasm: mulc += mulrdx + carry
  2104. # asm 1: adc <mulrdx=int64#3,<mulc=int64#14
  2105. # asm 2: adc <mulrdx=%rdx,<mulc=%rbx
  2106. adc %rdx,%rbx
  2107. # qhasm: mulrax = *(uint64 *)(pp + 88)
  2108. # asm 1: movq 88(<pp=int64#2),>mulrax=int64#7
  2109. # asm 2: movq 88(<pp=%rsi),>mulrax=%rax
  2110. movq 88(%rsi),%rax
  2111. # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3
  2112. # asm 1: mul <mulx3=int64#9
  2113. # asm 2: mul <mulx3=%r11
  2114. mul %r11
  2115. # qhasm: carry? mulr6 += mulrax
  2116. # asm 1: add <mulrax=int64#7,<mulr6=int64#6
  2117. # asm 2: add <mulrax=%rax,<mulr6=%r9
  2118. add %rax,%r9
  2119. # qhasm: mulrdx += 0 + carry
  2120. # asm 1: adc $0,<mulrdx=int64#3
  2121. # asm 2: adc $0,<mulrdx=%rdx
  2122. adc $0,%rdx
  2123. # qhasm: carry? mulr6 += mulc
  2124. # asm 1: add <mulc=int64#14,<mulr6=int64#6
  2125. # asm 2: add <mulc=%rbx,<mulr6=%r9
  2126. add %rbx,%r9
  2127. # qhasm: mulr7 += mulrdx + carry
  2128. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#8
  2129. # asm 2: adc <mulrdx=%rdx,<mulr7=%r10
  2130. adc %rdx,%r10
  2131. # qhasm: mulrax = mulr4
  2132. # asm 1: mov <mulr4=int64#4,>mulrax=int64#7
  2133. # asm 2: mov <mulr4=%rcx,>mulrax=%rax
  2134. mov %rcx,%rax
  2135. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  2136. mulq CRYPTO_NAMESPACE(38)(%rip)
  2137. # qhasm: mulr4 = mulrax
  2138. # asm 1: mov <mulrax=int64#7,>mulr4=int64#2
  2139. # asm 2: mov <mulrax=%rax,>mulr4=%rsi
  2140. mov %rax,%rsi
  2141. # qhasm: mulrax = mulr5
  2142. # asm 1: mov <mulr5=int64#5,>mulrax=int64#7
  2143. # asm 2: mov <mulr5=%r8,>mulrax=%rax
  2144. mov %r8,%rax
  2145. # qhasm: mulr5 = mulrdx
  2146. # asm 1: mov <mulrdx=int64#3,>mulr5=int64#4
  2147. # asm 2: mov <mulrdx=%rdx,>mulr5=%rcx
  2148. mov %rdx,%rcx
  2149. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  2150. mulq CRYPTO_NAMESPACE(38)(%rip)
  2151. # qhasm: carry? mulr5 += mulrax
  2152. # asm 1: add <mulrax=int64#7,<mulr5=int64#4
  2153. # asm 2: add <mulrax=%rax,<mulr5=%rcx
  2154. add %rax,%rcx
  2155. # qhasm: mulrax = mulr6
  2156. # asm 1: mov <mulr6=int64#6,>mulrax=int64#7
  2157. # asm 2: mov <mulr6=%r9,>mulrax=%rax
  2158. mov %r9,%rax
  2159. # qhasm: mulr6 = 0
  2160. # asm 1: mov $0,>mulr6=int64#5
  2161. # asm 2: mov $0,>mulr6=%r8
  2162. mov $0,%r8
  2163. # qhasm: mulr6 += mulrdx + carry
  2164. # asm 1: adc <mulrdx=int64#3,<mulr6=int64#5
  2165. # asm 2: adc <mulrdx=%rdx,<mulr6=%r8
  2166. adc %rdx,%r8
  2167. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  2168. mulq CRYPTO_NAMESPACE(38)(%rip)
  2169. # qhasm: carry? mulr6 += mulrax
  2170. # asm 1: add <mulrax=int64#7,<mulr6=int64#5
  2171. # asm 2: add <mulrax=%rax,<mulr6=%r8
  2172. add %rax,%r8
  2173. # qhasm: mulrax = mulr7
  2174. # asm 1: mov <mulr7=int64#8,>mulrax=int64#7
  2175. # asm 2: mov <mulr7=%r10,>mulrax=%rax
  2176. mov %r10,%rax
  2177. # qhasm: mulr7 = 0
  2178. # asm 1: mov $0,>mulr7=int64#6
  2179. # asm 2: mov $0,>mulr7=%r9
  2180. mov $0,%r9
  2181. # qhasm: mulr7 += mulrdx + carry
  2182. # asm 1: adc <mulrdx=int64#3,<mulr7=int64#6
  2183. # asm 2: adc <mulrdx=%rdx,<mulr7=%r9
  2184. adc %rdx,%r9
  2185. # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&CRYPTO_NAMESPACE(38)
  2186. mulq CRYPTO_NAMESPACE(38)(%rip)
  2187. # qhasm: carry? mulr7 += mulrax
  2188. # asm 1: add <mulrax=int64#7,<mulr7=int64#6
  2189. # asm 2: add <mulrax=%rax,<mulr7=%r9
  2190. add %rax,%r9
  2191. # qhasm: mulr8 = 0
  2192. # asm 1: mov $0,>mulr8=int64#7
  2193. # asm 2: mov $0,>mulr8=%rax
  2194. mov $0,%rax
  2195. # qhasm: mulr8 += mulrdx + carry
  2196. # asm 1: adc <mulrdx=int64#3,<mulr8=int64#7
  2197. # asm 2: adc <mulrdx=%rdx,<mulr8=%rax
  2198. adc %rdx,%rax
  2199. # qhasm: carry? rt0 += mulr4
  2200. # asm 1: add <mulr4=int64#2,<rt0=int64#10
  2201. # asm 2: add <mulr4=%rsi,<rt0=%r12
  2202. add %rsi,%r12
  2203. # qhasm: carry? rt1 += mulr5 + carry
  2204. # asm 1: adc <mulr5=int64#4,<rt1=int64#11
  2205. # asm 2: adc <mulr5=%rcx,<rt1=%r13
  2206. adc %rcx,%r13
  2207. # qhasm: carry? rt2 += mulr6 + carry
  2208. # asm 1: adc <mulr6=int64#5,<rt2=int64#12
  2209. # asm 2: adc <mulr6=%r8,<rt2=%r14
  2210. adc %r8,%r14
  2211. # qhasm: carry? rt3 += mulr7 + carry
  2212. # asm 1: adc <mulr7=int64#6,<rt3=int64#13
  2213. # asm 2: adc <mulr7=%r9,<rt3=%r15
  2214. adc %r9,%r15
  2215. # qhasm: mulzero = 0
  2216. # asm 1: mov $0,>mulzero=int64#2
  2217. # asm 2: mov $0,>mulzero=%rsi
  2218. mov $0,%rsi
  2219. # qhasm: mulr8 += mulzero + carry
  2220. # asm 1: adc <mulzero=int64#2,<mulr8=int64#7
  2221. # asm 2: adc <mulzero=%rsi,<mulr8=%rax
  2222. adc %rsi,%rax
  2223. # qhasm: mulr8 *= 38
  2224. # asm 1: imulq $38,<mulr8=int64#7,>mulr8=int64#3
  2225. # asm 2: imulq $38,<mulr8=%rax,>mulr8=%rdx
  2226. imulq $38,%rax,%rdx
  2227. # qhasm: carry? rt0 += mulr8
  2228. # asm 1: add <mulr8=int64#3,<rt0=int64#10
  2229. # asm 2: add <mulr8=%rdx,<rt0=%r12
  2230. add %rdx,%r12
  2231. # qhasm: carry? rt1 += mulzero + carry
  2232. # asm 1: adc <mulzero=int64#2,<rt1=int64#11
  2233. # asm 2: adc <mulzero=%rsi,<rt1=%r13
  2234. adc %rsi,%r13
  2235. # qhasm: carry? rt2 += mulzero + carry
  2236. # asm 1: adc <mulzero=int64#2,<rt2=int64#12
  2237. # asm 2: adc <mulzero=%rsi,<rt2=%r14
  2238. adc %rsi,%r14
  2239. # qhasm: carry? rt3 += mulzero + carry
  2240. # asm 1: adc <mulzero=int64#2,<rt3=int64#13
  2241. # asm 2: adc <mulzero=%rsi,<rt3=%r15
  2242. adc %rsi,%r15
  2243. # qhasm: mulzero += mulzero + carry
  2244. # asm 1: adc <mulzero=int64#2,<mulzero=int64#2
  2245. # asm 2: adc <mulzero=%rsi,<mulzero=%rsi
  2246. adc %rsi,%rsi
  2247. # qhasm: mulzero *= 38
  2248. # asm 1: imulq $38,<mulzero=int64#2,>mulzero=int64#2
  2249. # asm 2: imulq $38,<mulzero=%rsi,>mulzero=%rsi
  2250. imulq $38,%rsi,%rsi
  2251. # qhasm: rt0 += mulzero
  2252. # asm 1: add <mulzero=int64#2,<rt0=int64#10
  2253. # asm 2: add <mulzero=%rsi,<rt0=%r12
  2254. add %rsi,%r12
  2255. # qhasm: *(uint64 *)(rp + 96) = rt0
  2256. # asm 1: movq <rt0=int64#10,96(<rp=int64#1)
  2257. # asm 2: movq <rt0=%r12,96(<rp=%rdi)
  2258. movq %r12,96(%rdi)
  2259. # qhasm: *(uint64 *)(rp + 104) = rt1
  2260. # asm 1: movq <rt1=int64#11,104(<rp=int64#1)
  2261. # asm 2: movq <rt1=%r13,104(<rp=%rdi)
  2262. movq %r13,104(%rdi)
  2263. # qhasm: *(uint64 *)(rp + 112) = rt2
  2264. # asm 1: movq <rt2=int64#12,112(<rp=int64#1)
  2265. # asm 2: movq <rt2=%r14,112(<rp=%rdi)
  2266. movq %r14,112(%rdi)
  2267. # qhasm: *(uint64 *)(rp + 120) = rt3
  2268. # asm 1: movq <rt3=int64#13,120(<rp=int64#1)
  2269. # asm 2: movq <rt3=%r15,120(<rp=%rdi)
  2270. movq %r15,120(%rdi)
  2271. # qhasm: caller1 = caller1_stack
  2272. # asm 1: movq <caller1_stack=stack64#1,>caller1=int64#9
  2273. # asm 2: movq <caller1_stack=0(%rsp),>caller1=%r11
  2274. movq 0(%rsp),%r11
  2275. # qhasm: caller2 = caller2_stack
  2276. # asm 1: movq <caller2_stack=stack64#2,>caller2=int64#10
  2277. # asm 2: movq <caller2_stack=8(%rsp),>caller2=%r12
  2278. movq 8(%rsp),%r12
  2279. # qhasm: caller3 = caller3_stack
  2280. # asm 1: movq <caller3_stack=stack64#3,>caller3=int64#11
  2281. # asm 2: movq <caller3_stack=16(%rsp),>caller3=%r13
  2282. movq 16(%rsp),%r13
  2283. # qhasm: caller4 = caller4_stack
  2284. # asm 1: movq <caller4_stack=stack64#4,>caller4=int64#12
  2285. # asm 2: movq <caller4_stack=24(%rsp),>caller4=%r14
  2286. movq 24(%rsp),%r14
  2287. # qhasm: caller5 = caller5_stack
  2288. # asm 1: movq <caller5_stack=stack64#5,>caller5=int64#13
  2289. # asm 2: movq <caller5_stack=32(%rsp),>caller5=%r15
  2290. movq 32(%rsp),%r15
  2291. # qhasm: caller6 = caller6_stack
  2292. # asm 1: movq <caller6_stack=stack64#6,>caller6=int64#14
  2293. # asm 2: movq <caller6_stack=40(%rsp),>caller6=%rbx
  2294. movq 40(%rsp),%rbx
  2295. # qhasm: caller7 = caller7_stack
  2296. # asm 1: movq <caller7_stack=stack64#7,>caller7=int64#15
  2297. # asm 2: movq <caller7_stack=48(%rsp),>caller7=%rbp
  2298. movq 48(%rsp),%rbp
  2299. # qhasm: leave
  2300. add %r11,%rsp
  2301. mov %rdi,%rax
  2302. mov %rsi,%rdx
  2303. ret