212 lines
3.8 KiB
ArmAsm
212 lines
3.8 KiB
ArmAsm
.file "1.cpp"
|
|
.text
|
|
#APP
|
|
.globl _ZSt21ios_base_library_initv
|
|
#NO_APP
|
|
.section .text._ZNKSt5ctypeIcE8do_widenEc,"axG",@progbits,_ZNKSt5ctypeIcE8do_widenEc,comdat
|
|
.align 2
|
|
.p2align 4
|
|
.weak _ZNKSt5ctypeIcE8do_widenEc
|
|
.type _ZNKSt5ctypeIcE8do_widenEc, @function
|
|
_ZNKSt5ctypeIcE8do_widenEc:
|
|
.LFB1810:
|
|
.cfi_startproc
|
|
endbr64
|
|
movl %esi, %eax
|
|
ret
|
|
.cfi_endproc
|
|
.LFE1810:
|
|
.size _ZNKSt5ctypeIcE8do_widenEc, .-_ZNKSt5ctypeIcE8do_widenEc
|
|
.section .rodata.str1.1,"aMS",@progbits,1
|
|
.LC0:
|
|
.string " "
|
|
.section .text.unlikely,"ax",@progbits
|
|
.LCOLDB1:
|
|
.section .text.startup,"ax",@progbits
|
|
.LHOTB1:
|
|
.p2align 4
|
|
.globl main
|
|
.type main, @function
|
|
main:
|
|
.LFB2311:
|
|
.cfi_startproc
|
|
endbr64
|
|
pushq %r14
|
|
.cfi_def_cfa_offset 16
|
|
.cfi_offset 14, -16
|
|
pushq %r13
|
|
.cfi_def_cfa_offset 24
|
|
.cfi_offset 13, -24
|
|
leaq _ZSt3cin(%rip), %r13
|
|
pushq %r12
|
|
.cfi_def_cfa_offset 32
|
|
.cfi_offset 12, -32
|
|
movq %r13, %rdi
|
|
pushq %rbp
|
|
.cfi_def_cfa_offset 40
|
|
.cfi_offset 6, -40
|
|
pushq %rbx
|
|
.cfi_def_cfa_offset 48
|
|
.cfi_offset 3, -48
|
|
subq $16, %rsp
|
|
.cfi_def_cfa_offset 64
|
|
movq %fs:40, %rax
|
|
movq %rax, 8(%rsp)
|
|
xorl %eax, %eax
|
|
movq %rsp, %rsi
|
|
call _ZNSirsERi@PLT
|
|
movslq (%rsp), %rdi
|
|
movabsq $2305843009213693950, %rax
|
|
cmpq %rdi, %rax
|
|
jb .L4
|
|
salq $2, %rdi
|
|
xorl %ebx, %ebx
|
|
leaq 4(%rsp), %r14
|
|
call _Znam@PLT
|
|
movq %rax, %rbp
|
|
movq %rax, %r12
|
|
movl (%rsp), %eax
|
|
testl %eax, %eax
|
|
jle .L25
|
|
.p2align 4,,10
|
|
.p2align 3
|
|
.L10:
|
|
movq %r14, %rsi
|
|
movq %r13, %rdi
|
|
addl $1, %ebx
|
|
call _ZNSirsERi@PLT
|
|
movl 4(%rsp), %ecx
|
|
movl %ecx, %eax
|
|
cltd
|
|
idivl %ebx
|
|
movl (%rsp), %eax
|
|
cmpl $1, %edx
|
|
adcl $0, %ecx
|
|
addq $4, %r12
|
|
movl %ecx, -4(%r12)
|
|
cmpl %eax, %ebx
|
|
jl .L10
|
|
testl %eax, %eax
|
|
jle .L25
|
|
xorl %ebx, %ebx
|
|
leaq _ZSt4cout(%rip), %r12
|
|
leaq .LC0(%rip), %r13
|
|
.p2align 4,,10
|
|
.p2align 3
|
|
.L12:
|
|
movl 0(%rbp,%rbx,4), %esi
|
|
movq %r12, %rdi
|
|
addq $1, %rbx
|
|
call _ZNSolsEi@PLT
|
|
movl $1, %edx
|
|
movq %r13, %rsi
|
|
movq %rax, %rdi
|
|
call _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
|
|
cmpl %ebx, (%rsp)
|
|
jg .L12
|
|
.L11:
|
|
movq _ZSt4cout(%rip), %rax
|
|
movq -24(%rax), %rax
|
|
movq 240(%r12,%rax), %rbx
|
|
testq %rbx, %rbx
|
|
je .L26
|
|
cmpb $0, 56(%rbx)
|
|
je .L14
|
|
movsbl 67(%rbx), %esi
|
|
.L15:
|
|
movq %r12, %rdi
|
|
call _ZNSo3putEc@PLT
|
|
movq %rax, %rdi
|
|
call _ZNSo5flushEv@PLT
|
|
movq 8(%rsp), %rax
|
|
subq %fs:40, %rax
|
|
jne .L27
|
|
addq $16, %rsp
|
|
.cfi_remember_state
|
|
.cfi_def_cfa_offset 48
|
|
xorl %eax, %eax
|
|
popq %rbx
|
|
.cfi_def_cfa_offset 40
|
|
popq %rbp
|
|
.cfi_def_cfa_offset 32
|
|
popq %r12
|
|
.cfi_def_cfa_offset 24
|
|
popq %r13
|
|
.cfi_def_cfa_offset 16
|
|
popq %r14
|
|
.cfi_def_cfa_offset 8
|
|
ret
|
|
.L14:
|
|
.cfi_restore_state
|
|
movq %rbx, %rdi
|
|
call _ZNKSt5ctypeIcE13_M_widen_initEv@PLT
|
|
movq (%rbx), %rax
|
|
movl $10, %esi
|
|
leaq _ZNKSt5ctypeIcE8do_widenEc(%rip), %rdx
|
|
movq 48(%rax), %rax
|
|
cmpq %rdx, %rax
|
|
je .L15
|
|
movl $10, %esi
|
|
movq %rbx, %rdi
|
|
call *%rax
|
|
movsbl %al, %esi
|
|
jmp .L15
|
|
.L25:
|
|
leaq _ZSt4cout(%rip), %r12
|
|
jmp .L11
|
|
.L26:
|
|
movq 8(%rsp), %rax
|
|
subq %fs:40, %rax
|
|
jne .L28
|
|
call _ZSt16__throw_bad_castv@PLT
|
|
.L27:
|
|
call __stack_chk_fail@PLT
|
|
.L28:
|
|
call __stack_chk_fail@PLT
|
|
.cfi_endproc
|
|
.section .text.unlikely
|
|
.cfi_startproc
|
|
.type main.cold, @function
|
|
main.cold:
|
|
.LFSB2311:
|
|
.L4:
|
|
.cfi_def_cfa_offset 64
|
|
.cfi_offset 3, -48
|
|
.cfi_offset 6, -40
|
|
.cfi_offset 12, -32
|
|
.cfi_offset 13, -24
|
|
.cfi_offset 14, -16
|
|
movq 8(%rsp), %rax
|
|
subq %fs:40, %rax
|
|
jne .L29
|
|
call __cxa_throw_bad_array_new_length@PLT
|
|
.L29:
|
|
call __stack_chk_fail@PLT
|
|
.cfi_endproc
|
|
.LFE2311:
|
|
.section .text.startup
|
|
.size main, .-main
|
|
.section .text.unlikely
|
|
.size main.cold, .-main.cold
|
|
.LCOLDE1:
|
|
.section .text.startup
|
|
.LHOTE1:
|
|
.ident "GCC: (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0"
|
|
.section .note.GNU-stack,"",@progbits
|
|
.section .note.gnu.property,"a"
|
|
.align 8
|
|
.long 1f - 0f
|
|
.long 4f - 1f
|
|
.long 5
|
|
0:
|
|
.string "GNU"
|
|
1:
|
|
.align 8
|
|
.long 0xc0000002
|
|
.long 3f - 2f
|
|
2:
|
|
.long 0x3
|
|
3:
|
|
.align 8
|
|
4:
|