86 lines
1.5 KiB
ArmAsm
86 lines
1.5 KiB
ArmAsm
.file "test.c"
|
|
.section .text.unlikely,"ax",@progbits
|
|
.LCOLDB0:
|
|
.section .text.startup,"ax",@progbits
|
|
.LHOTB0:
|
|
.p2align 4,,15
|
|
.globl main
|
|
.type main, @function
|
|
main:
|
|
.LFB0:
|
|
.cfi_startproc
|
|
leal 4(%esp), %ecx
|
|
.cfi_def_cfa 1, 0
|
|
andl $-16, %esp
|
|
pushl -4(%ecx)
|
|
pushl %ebp
|
|
.cfi_escape 0x10,0x5,0x2,0x75,0
|
|
movl %esp, %ebp
|
|
pushl %edi
|
|
pushl %esi
|
|
pushl %ebx
|
|
pushl %ecx
|
|
.cfi_escape 0xf,0x3,0x75,0x70,0x6
|
|
.cfi_escape 0x10,0x7,0x2,0x75,0x7c
|
|
.cfi_escape 0x10,0x6,0x2,0x75,0x78
|
|
.cfi_escape 0x10,0x3,0x2,0x75,0x74
|
|
xorl %edi, %edi
|
|
call __x86.get_pc_thunk.bx
|
|
addl $_GLOBAL_OFFSET_TABLE_, %ebx
|
|
subl $8, %esp
|
|
.p2align 4,,10
|
|
.p2align 3
|
|
.L2:
|
|
xorl %esi, %esi
|
|
.p2align 4,,10
|
|
.p2align 3
|
|
.L3:
|
|
subl $4, %esp
|
|
pushl $64
|
|
pushl %esi
|
|
addl $1, %esi
|
|
pushl %edi
|
|
call nib_put_scr@PLT
|
|
addl $16, %esp
|
|
cmpl $20, %esi
|
|
jne .L3
|
|
addl $1, %edi
|
|
cmpl $10, %edi
|
|
jne .L2
|
|
leal -16(%ebp), %esp
|
|
xorl %eax, %eax
|
|
popl %ecx
|
|
.cfi_restore 1
|
|
.cfi_def_cfa 1, 0
|
|
popl %ebx
|
|
.cfi_restore 3
|
|
popl %esi
|
|
.cfi_restore 6
|
|
popl %edi
|
|
.cfi_restore 7
|
|
popl %ebp
|
|
.cfi_restore 5
|
|
leal -4(%ecx), %esp
|
|
.cfi_def_cfa 4, 4
|
|
ret
|
|
.cfi_endproc
|
|
.LFE0:
|
|
.size main, .-main
|
|
.section .text.unlikely
|
|
.LCOLDE0:
|
|
.section .text.startup
|
|
.LHOTE0:
|
|
.section .text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat
|
|
.globl __x86.get_pc_thunk.bx
|
|
.hidden __x86.get_pc_thunk.bx
|
|
.type __x86.get_pc_thunk.bx, @function
|
|
__x86.get_pc_thunk.bx:
|
|
.LFB1:
|
|
.cfi_startproc
|
|
movl (%esp), %ebx
|
|
ret
|
|
.cfi_endproc
|
|
.LFE1:
|
|
.ident "GCC: (GNU) 4.9.2"
|
|
.section .note.GNU-stack,"",@progbits
|