Created
June 24, 2015 16:58
-
-
Save mackwic/0734a4edd11ac1a4c359 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cstring | |
LC0: | |
.ascii "yo\0" | |
LC1: | |
.ascii "%f sisi %f\12\0" | |
.text | |
.globl _main | |
_main: | |
LFB1: | |
pushq %rbp | |
LCFI0: | |
movq %rsp, %rbp | |
LCFI1: | |
subq $48, %rsp | |
movl %edi, -36(%rbp) | |
movq %rsi, -48(%rbp) | |
movq $1, -8(%rbp) | |
movl $0, -12(%rbp) | |
movl $0, -12(%rbp) | |
jmp L2 | |
L3: | |
movq -8(%rbp), %rax | |
addq %rax, %rax | |
addq $1, %rax | |
movq %rax, -8(%rbp) | |
addl $1, -12(%rbp) | |
L2: | |
cmpl $59, -12(%rbp) | |
jbe L3 | |
salq -8(%rbp) | |
pxor %xmm2, %xmm2 | |
cvtsi2sdq -8(%rbp), %xmm2 | |
movd %xmm2, %rax | |
movq %rax, -24(%rbp) | |
movq -8(%rbp), %rax | |
addq $1, %rax | |
pxor %xmm3, %xmm3 | |
cvtsi2sdq %rax, %xmm3 | |
movd %xmm3, %rax | |
movq %rax, -32(%rbp) | |
movq -24(%rbp), %rax | |
movd %rax, %xmm4 | |
ucomisd -32(%rbp), %xmm4 | |
jp L4 | |
movq -24(%rbp), %rax | |
movd %rax, %xmm5 | |
ucomisd -32(%rbp), %xmm5 | |
jne L4 | |
leaq LC0(%rip), %rdi | |
movl $0, %eax | |
call _printf | |
L4: | |
movq -32(%rbp), %rdx | |
movq -24(%rbp), %rax | |
movd %rdx, %xmm1 | |
movd %rax, %xmm0 | |
leaq LC1(%rip), %rdi | |
movl $2, %eax | |
call _printf | |
movl $0, %eax | |
leave | |
LCFI2: | |
ret | |
LFE1: | |
.section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support | |
EH_frame1: | |
.set L$set$0,LECIE1-LSCIE1 | |
.long L$set$0 | |
LSCIE1: | |
.long 0 | |
.byte 0x1 | |
.ascii "zR\0" | |
.byte 0x1 | |
.byte 0x78 | |
.byte 0x10 | |
.byte 0x1 | |
.byte 0x10 | |
.byte 0xc | |
.byte 0x7 | |
.byte 0x8 | |
.byte 0x90 | |
.byte 0x1 | |
.align 3 | |
LECIE1: | |
LSFDE1: | |
.set L$set$1,LEFDE1-LASFDE1 | |
.long L$set$1 | |
LASFDE1: | |
.long LASFDE1-EH_frame1 | |
.quad LFB1-. | |
.set L$set$2,LFE1-LFB1 | |
.quad L$set$2 | |
.byte 0 | |
.byte 0x4 | |
.set L$set$3,LCFI0-LFB1 | |
.long L$set$3 | |
.byte 0xe | |
.byte 0x10 | |
.byte 0x86 | |
.byte 0x2 | |
.byte 0x4 | |
.set L$set$4,LCFI1-LCFI0 | |
.long L$set$4 | |
.byte 0xd | |
.byte 0x6 | |
.byte 0x4 | |
.set L$set$5,LCFI2-LCFI1 | |
.long L$set$5 | |
.byte 0xc | |
.byte 0x7 | |
.byte 0x8 | |
.align 3 | |
LEFDE1: | |
.subsections_via_symbols |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment