vsigned_arm64.s 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. // +build !noasm !appengine
  2. // Code generated by asm2asm, DO NOT EDIT.
  3. #include "go_asm.h"
  4. #include "funcdata.h"
  5. #include "textflag.h"
  6. TEXT ·__vsigned_entry__(SB), NOSPLIT, $16
  7. NO_LOCAL_POINTERS
  8. WORD $0x100000a0 // adr x0, .+20
  9. MOVD R0, ret(FP)
  10. RET
  11. // .p2align 2, 0x00
  12. _vsigned:
  13. WORD $0xd10083ff // sub sp, sp, #32
  14. WORD $0xa900fbfd // stp fp, lr, [sp, #8]
  15. WORD $0xa93ffbfd // stp fp, lr, [sp, #-8]
  16. WORD $0xd10023fd // sub fp, sp, #8
  17. WORD $0xf9400028 // ldr x8, [x1]
  18. WORD $0xa940240a // ldp x10, x9, [x0]
  19. WORD $0x5280012b // mov w11, #9
  20. WORD $0xa900fc5f // stp xzr, xzr, [x2, #8]
  21. WORD $0xf900004b // str x11, [x2]
  22. WORD $0xf940002b // ldr x11, [x1]
  23. WORD $0xf9000c4b // str x11, [x2, #24]
  24. WORD $0xeb09011f // cmp x8, x9
  25. WORD $0x54000642 // b.hs LBB0_12 $200(%rip)
  26. WORD $0x3868694c // ldrb w12, [x10, x8]
  27. WORD $0x7100b59f // cmp w12, #45
  28. WORD $0x540006a1 // b.ne LBB0_13 $212(%rip)
  29. WORD $0x91000508 // add x8, x8, #1
  30. WORD $0xeb09011f // cmp x8, x9
  31. WORD $0x54000582 // b.hs LBB0_12 $176(%rip)
  32. WORD $0x3868694c // ldrb w12, [x10, x8]
  33. WORD $0x9280000b // mov x11, #-1
  34. WORD $0x5100e98d // sub w13, w12, #58
  35. WORD $0x31002dbf // cmn w13, #11
  36. WORD $0x54000629 // b.ls LBB0_14 $196(%rip)
  37. LBB0_4:
  38. WORD $0x7100c19f // cmp w12, #48
  39. WORD $0x54000181 // b.ne LBB0_6 $48(%rip)
  40. WORD $0x8b08014c // add x12, x10, x8
  41. WORD $0x3940058c // ldrb w12, [x12, #1]
  42. WORD $0x5100b98c // sub w12, w12, #46
  43. WORD $0x7100dd9f // cmp w12, #55
  44. WORD $0x5280002d // mov w13, #1
  45. WORD $0x9acc21ac // lsl x12, x13, x12
  46. WORD $0xb20903ed // mov x13, #36028797027352576
  47. WORD $0xf280002d // movk x13, #1
  48. WORD $0x8a0d018c // and x12, x12, x13
  49. WORD $0xfa409984 // ccmp x12, #0, #4, ls
  50. WORD $0x540007e0 // b.eq LBB0_22 $252(%rip)
  51. LBB0_6:
  52. WORD $0xd280000c // mov x12, #0
  53. WORD $0x5280014d // mov w13, #10
  54. LBB0_7:
  55. WORD $0xeb08013f // cmp x9, x8
  56. WORD $0x540006c0 // b.eq LBB0_21 $216(%rip)
  57. WORD $0x3868694e // ldrb w14, [x10, x8]
  58. WORD $0x5100c1ce // sub w14, w14, #48
  59. WORD $0x710025df // cmp w14, #9
  60. WORD $0x54000448 // b.hi LBB0_15 $136(%rip)
  61. WORD $0x9b4d7d8f // smulh x15, x12, x13
  62. WORD $0x8b0c098c // add x12, x12, x12, lsl #2
  63. WORD $0xd37ff98c // lsl x12, x12, #1
  64. WORD $0xeb8cfdff // cmp x15, x12, asr #63
  65. WORD $0x540000c1 // b.ne LBB0_11 $24(%rip)
  66. WORD $0x91000508 // add x8, x8, #1
  67. WORD $0x92401dce // and x14, x14, #0xff
  68. WORD $0x9b2e7d6e // smull x14, w11, w14
  69. WORD $0xab0e018c // adds x12, x12, x14
  70. WORD $0x54fffe27 // b.vc LBB0_7 $-60(%rip)
  71. LBB0_11:
  72. WORD $0xd1000508 // sub x8, x8, #1
  73. WORD $0xf9000028 // str x8, [x1]
  74. WORD $0x92800088 // mov x8, #-5
  75. WORD $0xf9000048 // str x8, [x2]
  76. WORD $0xa940fbfd // ldp fp, lr, [sp, #8]
  77. WORD $0x910083ff // add sp, sp, #32
  78. WORD $0xd65f03c0 // ret
  79. LBB0_12:
  80. WORD $0xf9000029 // str x9, [x1]
  81. WORD $0x92800008 // mov x8, #-1
  82. WORD $0xf9000048 // str x8, [x2]
  83. WORD $0xa940fbfd // ldp fp, lr, [sp, #8]
  84. WORD $0x910083ff // add sp, sp, #32
  85. WORD $0xd65f03c0 // ret
  86. LBB0_13:
  87. WORD $0x5280002b // mov w11, #1
  88. WORD $0x5100e98d // sub w13, w12, #58
  89. WORD $0x31002dbf // cmn w13, #11
  90. WORD $0x54fffa28 // b.hi LBB0_4 $-188(%rip)
  91. LBB0_14:
  92. WORD $0xf9000028 // str x8, [x1]
  93. WORD $0x92800028 // mov x8, #-2
  94. WORD $0xf9000048 // str x8, [x2]
  95. WORD $0xa940fbfd // ldp fp, lr, [sp, #8]
  96. WORD $0x910083ff // add sp, sp, #32
  97. WORD $0xd65f03c0 // ret
  98. LBB0_15:
  99. WORD $0xeb09011f // cmp x8, x9
  100. WORD $0x540001c2 // b.hs LBB0_20 $56(%rip)
  101. WORD $0x38686949 // ldrb w9, [x10, x8]
  102. WORD $0x7100b93f // cmp w9, #46
  103. WORD $0x540000a0 // b.eq LBB0_19 $20(%rip)
  104. WORD $0x7101153f // cmp w9, #69
  105. WORD $0x54000060 // b.eq LBB0_19 $12(%rip)
  106. WORD $0x7101953f // cmp w9, #101
  107. WORD $0x540000e1 // b.ne LBB0_20 $28(%rip)
  108. LBB0_19:
  109. WORD $0xf9000028 // str x8, [x1]
  110. WORD $0x928000a8 // mov x8, #-6
  111. WORD $0xf9000048 // str x8, [x2]
  112. WORD $0xa940fbfd // ldp fp, lr, [sp, #8]
  113. WORD $0x910083ff // add sp, sp, #32
  114. WORD $0xd65f03c0 // ret
  115. LBB0_20:
  116. WORD $0xaa0803e9 // mov x9, x8
  117. LBB0_21:
  118. WORD $0xf9000029 // str x9, [x1]
  119. WORD $0xf900084c // str x12, [x2, #16]
  120. WORD $0xa940fbfd // ldp fp, lr, [sp, #8]
  121. WORD $0x910083ff // add sp, sp, #32
  122. WORD $0xd65f03c0 // ret
  123. LBB0_22:
  124. WORD $0x91000508 // add x8, x8, #1
  125. WORD $0xf9000028 // str x8, [x1]
  126. WORD $0xa940fbfd // ldp fp, lr, [sp, #8]
  127. WORD $0x910083ff // add sp, sp, #32
  128. WORD $0xd65f03c0 // ret
  129. // .p2align 2, 0x00
  130. _MASK_USE_NUMBER:
  131. WORD $0x00000002 // .long 2
  132. TEXT ·__vsigned(SB), NOSPLIT, $0-24
  133. NO_LOCAL_POINTERS
  134. _entry:
  135. MOVD 16(g), R16
  136. SUB $96, RSP, R17
  137. CMP R16, R17
  138. BLS _stack_grow
  139. _vsigned:
  140. MOVD s+0(FP), R0
  141. MOVD p+8(FP), R1
  142. MOVD v+16(FP), R2
  143. MOVD ·_subr__vsigned(SB), R11
  144. WORD $0x1000005e // adr x30, .+8
  145. JMP (R11)
  146. RET
  147. _stack_grow:
  148. MOVD R30, R3
  149. CALL runtime·morestack_noctxt<>(SB)
  150. JMP _entry