Skip to content

Instantly share code, notes, and snippets.

@dlsniper
Last active October 4, 2017 23:13
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 dlsniper/03eae627f314fea62c9a6eb0ca52b465 to your computer and use it in GitHub Desktop.
Save dlsniper/03eae627f314fea62c9a6eb0ca52b465 to your computer and use it in GitHub Desktop.
0x0000 00000 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:16) TEXT "".cl(SB), $120-8
0x0000 00000 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:16) MOVQ (TLS), CX
0x0009 00009 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:16) CMPQ SP, 16(CX)
0x000d 00013 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:16) JLS 359
0x0013 00019 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:16) SUBQ $120, SP
0x0017 00023 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:16) MOVQ BP, 112(SP)
0x001c 00028 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:16) LEAQ 112(SP), BP
0x0021 00033 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:16) FUNCDATA $0, gclocals·5f7ae22b544db82d5d4c812af83655e9(SB)
0x0021 00033 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:16) FUNCDATA $1, gclocals·bdf3522e808949dfa554d18ce07f2ffe(SB)
0x0021 00033 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:16) MOVQ "".a+128(SP), AX
0x0029 00041 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:17) CMPQ AX, $1
0x002d 00045 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:17) JEQ 259
0x0033 00051 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:19) CMPQ AX, $2
0x0037 00055 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:19) JNE 162
0x0039 00057 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) MOVQ $0, ""..autotmp_2+80(SP)
0x0042 00066 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) MOVQ $0, ""..autotmp_2+88(SP)
0x004b 00075 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) LEAQ type.int(SB), AX
0x0052 00082 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) MOVQ AX, ""..autotmp_2+80(SP)
0x0057 00087 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) LEAQ "".statictmp_4(SB), AX
0x005e 00094 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) MOVQ AX, ""..autotmp_2+88(SP)
0x0063 00099 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) LEAQ go.string."value: %d"(SB), AX
0x006a 00106 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) MOVQ AX, (SP)
0x006e 00110 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) MOVQ $9, 8(SP)
0x0077 00119 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) LEAQ ""..autotmp_2+80(SP), AX
0x007c 00124 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) MOVQ AX, 16(SP)
0x0081 00129 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) MOVQ $1, 24(SP)
0x008a 00138 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) MOVQ $1, 32(SP)
0x0093 00147 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) PCDATA $0, $1
0x0093 00147 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:20) CALL fmt.Printf(SB)
0x0098 00152 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:24) MOVQ 112(SP), BP
0x009d 00157 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:24) ADDQ $120, SP
0x00a1 00161 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:24) RET
0x00a2 00162 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) MOVQ $0, ""..autotmp_3+64(SP)
0x00ab 00171 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) MOVQ $0, ""..autotmp_3+72(SP)
0x00b4 00180 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) LEAQ type.int(SB), AX
0x00bb 00187 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) MOVQ AX, ""..autotmp_3+64(SP)
0x00c0 00192 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) LEAQ "".statictmp_5(SB), AX
0x00c7 00199 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) MOVQ AX, ""..autotmp_3+72(SP)
0x00cc 00204 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) LEAQ go.string."value: %d"(SB), AX
0x00d3 00211 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) MOVQ AX, (SP)
0x00d7 00215 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) MOVQ $9, 8(SP)
0x00e0 00224 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) LEAQ ""..autotmp_3+64(SP), AX
0x00e5 00229 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) MOVQ AX, 16(SP)
0x00ea 00234 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) MOVQ $1, 24(SP)
0x00f3 00243 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) MOVQ $1, 32(SP)
0x00fc 00252 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) PCDATA $0, $2
0x00fc 00252 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:22) CALL fmt.Printf(SB)
0x0101 00257 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:19) JMP 152
0x0103 00259 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) MOVQ $0, ""..autotmp_1+96(SP)
0x010c 00268 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) MOVQ $0, ""..autotmp_1+104(SP)
0x0115 00277 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) LEAQ type.int(SB), AX
0x011c 00284 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) MOVQ AX, ""..autotmp_1+96(SP)
0x0121 00289 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) LEAQ "".statictmp_3(SB), AX
0x0128 00296 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) MOVQ AX, ""..autotmp_1+104(SP)
0x012d 00301 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) LEAQ go.string."value: %d"(SB), AX
0x0134 00308 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) MOVQ AX, (SP)
0x0138 00312 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) MOVQ $9, 8(SP)
0x0141 00321 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) LEAQ ""..autotmp_1+96(SP), AX
0x0146 00326 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) MOVQ AX, 16(SP)
0x014b 00331 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) MOVQ $1, 24(SP)
0x0154 00340 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) MOVQ $1, 32(SP)
0x015d 00349 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) PCDATA $0, $3
0x015d 00349 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:18) CALL fmt.Printf(SB)
0x0162 00354 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:17) JMP 152
0x0167 00359 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:17) NOP
0x0167 00359 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:16) PCDATA $0, $-1
0x0167 00359 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:16) CALL runtime.morestack_noctxt(SB)
0x016c 00364 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:16) JMP 0
"".cll STEXT size=380 args=0x8 locals=0x78
0x0000 00000 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:5) TEXT "".cll(SB), $120-8
0x0000 00000 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:5) MOVQ (TLS), CX
0x0009 00009 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:5) CMPQ SP, 16(CX)
0x000d 00013 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:5) JLS 370
0x0013 00019 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:5) SUBQ $120, SP
0x0017 00023 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:5) MOVQ BP, 112(SP)
0x001c 00028 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:5) LEAQ 112(SP), BP
0x0021 00033 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:5) FUNCDATA $0, gclocals·5f7ae22b544db82d5d4c812af83655e9(SB)
0x0021 00033 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:5) FUNCDATA $1, gclocals·61c53b1f4bcfd3a0e3c0714519adb129(SB)
0x0021 00033 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:5) MOVQ "".a+128(SP), AX
0x0029 00041 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:7) CMPQ AX, $1
0x002d 00045 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:7) JEQ 270
0x0033 00051 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:9) CMPQ AX, $2
0x0037 00055 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:9) JEQ 170
0x0039 00057 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:11) CMPQ AX, $3
0x003d 00061 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:11) JEQ 73
0x003f 00063 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:14) MOVQ 112(SP), BP
0x0044 00068 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:14) ADDQ $120, SP
0x0048 00072 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:14) RET
0x0049 00073 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) MOVQ $0, ""..autotmp_3+64(SP)
0x0052 00082 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) MOVQ $0, ""..autotmp_3+72(SP)
0x005b 00091 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) LEAQ type.int(SB), AX
0x0062 00098 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) MOVQ AX, ""..autotmp_3+64(SP)
0x0067 00103 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) LEAQ "".statictmp_2(SB), AX
0x006e 00110 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) MOVQ AX, ""..autotmp_3+72(SP)
0x0073 00115 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) LEAQ go.string."value: %d"(SB), AX
0x007a 00122 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) MOVQ AX, (SP)
0x007e 00126 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) MOVQ $9, 8(SP)
0x0087 00135 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) LEAQ ""..autotmp_3+64(SP), AX
0x008c 00140 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) MOVQ AX, 16(SP)
0x0091 00145 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) MOVQ $1, 24(SP)
0x009a 00154 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) MOVQ $1, 32(SP)
0x00a3 00163 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) PCDATA $0, $1
0x00a3 00163 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:12) CALL fmt.Printf(SB)
0x00a8 00168 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:6) JMP 63
0x00aa 00170 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) MOVQ $0, ""..autotmp_2+80(SP)
0x00b3 00179 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) MOVQ $0, ""..autotmp_2+88(SP)
0x00bc 00188 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) LEAQ type.int(SB), AX
0x00c3 00195 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) MOVQ AX, ""..autotmp_2+80(SP)
0x00c8 00200 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) LEAQ "".statictmp_1(SB), AX
0x00cf 00207 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) MOVQ AX, ""..autotmp_2+88(SP)
0x00d4 00212 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) LEAQ go.string."value: %d"(SB), AX
0x00db 00219 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) MOVQ AX, (SP)
0x00df 00223 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) MOVQ $9, 8(SP)
0x00e8 00232 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) LEAQ ""..autotmp_2+80(SP), AX
0x00ed 00237 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) MOVQ AX, 16(SP)
0x00f2 00242 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) MOVQ $1, 24(SP)
0x00fb 00251 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) MOVQ $1, 32(SP)
0x0104 00260 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) PCDATA $0, $2
0x0104 00260 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:10) CALL fmt.Printf(SB)
0x0109 00265 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:6) JMP 63
0x010e 00270 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) MOVQ $0, ""..autotmp_1+96(SP)
0x0117 00279 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) MOVQ $0, ""..autotmp_1+104(SP)
0x0120 00288 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) LEAQ type.int(SB), AX
0x0127 00295 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) MOVQ AX, ""..autotmp_1+96(SP)
0x012c 00300 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) LEAQ "".statictmp_0(SB), AX
0x0133 00307 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) MOVQ AX, ""..autotmp_1+104(SP)
0x0138 00312 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) LEAQ go.string."value: %d"(SB), AX
0x013f 00319 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) MOVQ AX, (SP)
0x0143 00323 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) MOVQ $9, 8(SP)
0x014c 00332 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) LEAQ ""..autotmp_1+96(SP), AX
0x0151 00337 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) MOVQ AX, 16(SP)
0x0156 00342 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) MOVQ $1, 24(SP)
0x015f 00351 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) MOVQ $1, 32(SP)
0x0168 00360 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) PCDATA $0, $3
0x0168 00360 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:8) CALL fmt.Printf(SB)
0x016d 00365 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:6) JMP 63
0x0172 00370 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:6) NOP
0x0172 00370 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:5) PCDATA $0, $-1
0x0172 00370 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:5) CALL runtime.morestack_noctxt(SB)
0x0177 00375 (/home/florin/go/src/github.com/dlsniper/u/tmp/asd/de.go:5) JMP 0
package main
import "fmt"
func cll(a int) {
switch a {
case 1:
fmt.Printf("value: %d", 1)
case 2:
fmt.Printf("value: %d", 2)
case 3:
fmt.Printf("value: %d", 3)
}
}
func cl(a int) {
if a == 1 {
fmt.Printf("value: %d", 1)
} else if a == 2 {
fmt.Printf("value: %d", 2)
} else {
fmt.Printf("value: %d", 3)
}
}
func main() {
a := 4
cl(a)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment