Skip to content

Instantly share code, notes, and snippets.

@quasilyte
Created January 12, 2020 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quasilyte/99aa5bbff0906b38cdcd9525c25b11d4 to your computer and use it in GitHub Desktop.
Save quasilyte/99aa5bbff0906b38cdcd9525c25b11d4 to your computer and use it in GitHub Desktop.
"".getID1 STEXT size=169 args=0x10 locals=0x88
0x0000 00000 (arrcopy.go:10) TEXT "".getID1(SB), ABIInternal, $136-16
0x0000 00000 (arrcopy.go:10) MOVQ (TLS), CX
0x0009 00009 (arrcopy.go:10) LEAQ -8(SP), AX
0x000e 00014 (arrcopy.go:10) CMPQ AX, 16(CX)
0x0012 00018 (arrcopy.go:10) JLS 159
0x0018 00024 (arrcopy.go:10) SUBQ $136, SP
0x001f 00031 (arrcopy.go:10) MOVQ BP, 128(SP)
0x0027 00039 (arrcopy.go:10) LEAQ 128(SP), BP
0x002f 00047 (arrcopy.go:10) FUNCDATA $0, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x002f 00047 (arrcopy.go:10) FUNCDATA $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x002f 00047 (arrcopy.go:10) FUNCDATA $2, gclocals·a3d0edcba257f1c7014297f333248c66(SB)
0x002f 00047 (arrcopy.go:11) PCDATA $0, $1
0x002f 00047 (arrcopy.go:11) PCDATA $1, $0
0x002f 00047 (arrcopy.go:11) LEAQ ""..autotmp_4(SP), DI
0x0033 00051 (arrcopy.go:11) PCDATA $0, $2
0x0033 00051 (arrcopy.go:11) LEAQ "".array(SB), SI
0x003a 00058 (arrcopy.go:11) PCDATA $0, $0
0x003a 00058 (arrcopy.go:11) DUFFCOPY $784
0x004d 00077 (arrcopy.go:11) MOVQ "".value+144(SP), AX
0x0055 00085 (arrcopy.go:11) XORL CX, CX
0x0057 00087 (arrcopy.go:11) JMP 92
0x0059 00089 (arrcopy.go:11) INCQ CX
0x005c 00092 (arrcopy.go:11) CMPQ CX, $16
0x0060 00096 (arrcopy.go:11) JGE 131
0x0062 00098 (arrcopy.go:11) MOVQ ""..autotmp_4(SP)(CX*8), DX
0x0066 00102 (arrcopy.go:12) CMPQ DX, AX
0x0069 00105 (arrcopy.go:12) JNE 89
0x006b 00107 (arrcopy.go:13) MOVQ CX, "".~r1+152(SP)
0x0073 00115 (arrcopy.go:13) MOVQ 128(SP), BP
0x007b 00123 (arrcopy.go:13) ADDQ $136, SP
0x0082 00130 (arrcopy.go:13) RET
0x0083 00131 (arrcopy.go:16) MOVQ $-1, "".~r1+152(SP)
0x008f 00143 (arrcopy.go:16) MOVQ 128(SP), BP
0x0097 00151 (arrcopy.go:16) ADDQ $136, SP
0x009e 00158 (arrcopy.go:16) RET
0x009f 00159 (arrcopy.go:16) NOP
0x009f 00159 (arrcopy.go:10) PCDATA $1, $-1
0x009f 00159 (arrcopy.go:10) PCDATA $0, $-1
0x009f 00159 (arrcopy.go:10) CALL runtime.morestack_noctxt(SB)
0x00a4 00164 (arrcopy.go:10) JMP 0
0x0000 64 48 8b 0c 25 00 00 00 00 48 8d 44 24 f8 48 3b dH..%....H.D$.H;
0x0010 41 10 0f 86 87 00 00 00 48 81 ec 88 00 00 00 48 A.......H......H
0x0020 89 ac 24 80 00 00 00 48 8d ac 24 80 00 00 00 48 ..$....H..$....H
0x0030 8d 3c 24 48 8d 35 00 00 00 00 48 89 6c 24 f0 48 .<$H.5....H.l$.H
0x0040 8d 6c 24 f0 e8 00 00 00 00 48 8b 6d 00 48 8b 84 .l$......H.m.H..
0x0050 24 90 00 00 00 31 c9 eb 03 48 ff c1 48 83 f9 10 $....1...H..H...
0x0060 7d 21 48 8b 14 cc 48 39 c2 75 ee 48 89 8c 24 98 }!H...H9.u.H..$.
0x0070 00 00 00 48 8b ac 24 80 00 00 00 48 81 c4 88 00 ...H..$....H....
0x0080 00 00 c3 48 c7 84 24 98 00 00 00 ff ff ff ff 48 ...H..$........H
0x0090 8b ac 24 80 00 00 00 48 81 c4 88 00 00 00 c3 e8 ..$....H........
0x00a0 00 00 00 00 e9 57 ff ff ff .....W...
rel 5+4 t=16 TLS+0
rel 54+4 t=15 "".array+0
rel 69+4 t=8 runtime.duffcopy+784
rel 160+4 t=8 runtime.morestack_noctxt+0
"".getID2 STEXT nosplit size=50 args=0x10 locals=0x0
0x0000 00000 (arrcopy.go:19) TEXT "".getID2(SB), NOSPLIT|ABIInternal, $0-16
0x0000 00000 (arrcopy.go:19) FUNCDATA $0, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x0000 00000 (arrcopy.go:19) FUNCDATA $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x0000 00000 (arrcopy.go:19) FUNCDATA $2, gclocals·ebb0e8ce1793da18f0378b883cb3e122(SB)
0x0000 00000 (arrcopy.go:20) PCDATA $0, $0
0x0000 00000 (arrcopy.go:20) PCDATA $1, $0
0x0000 00000 (arrcopy.go:20) MOVQ "".value+8(SP), AX
0x0005 00005 (arrcopy.go:20) XORL CX, CX
0x0007 00007 (arrcopy.go:20) JMP 12
0x0009 00009 (arrcopy.go:20) INCQ CX
0x000c 00012 (arrcopy.go:20) CMPQ CX, $16
0x0010 00016 (arrcopy.go:20) JGE 40
0x0012 00018 (arrcopy.go:20) PCDATA $0, $1
0x0012 00018 (arrcopy.go:20) LEAQ "".array(SB), DX
0x0019 00025 (arrcopy.go:20) PCDATA $0, $0
0x0019 00025 (arrcopy.go:20) MOVQ (DX)(CX*8), BX
0x001d 00029 (arrcopy.go:21) CMPQ BX, AX
0x0020 00032 (arrcopy.go:21) JNE 9
0x0022 00034 (arrcopy.go:22) MOVQ CX, "".~r1+16(SP)
0x0027 00039 (arrcopy.go:22) RET
0x0028 00040 (arrcopy.go:25) MOVQ $-1, "".~r1+16(SP)
0x0031 00049 (arrcopy.go:25) RET
0x0000 48 8b 44 24 08 31 c9 eb 03 48 ff c1 48 83 f9 10 H.D$.1...H..H...
0x0010 7d 16 48 8d 15 00 00 00 00 48 8b 1c ca 48 39 c3 }.H......H...H9.
0x0020 75 e7 48 89 4c 24 10 c3 48 c7 44 24 10 ff ff ff u.H.L$..H.D$....
0x0030 ff c3 ..
rel 21+4 t=15 "".array+0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment