CompetitiveProgramming/src/bin/test.s

55 lines
1.0 KiB
ArmAsm
Raw Normal View History

2024-02-27 03:42:51 +00:00
.file "test.cc"
.text
2024-08-22 06:10:45 +01:00
#APP
.globl _ZSt21ios_base_library_initv
#NO_APP
.section .text.startup,"ax",@progbits
2024-02-27 03:42:51 +00:00
.p2align 4
2024-08-22 06:10:45 +01:00
.globl main
.type main, @function
main:
.LFB9872:
2024-02-27 03:42:51 +00:00
.cfi_startproc
2024-08-22 06:10:45 +01:00
subq $24, %rsp
.cfi_def_cfa_offset 32
movq _ZSt3cin@GOTPCREL(%rip), %rdi
movq %fs:40, %rax
movq %rax, 8(%rsp)
xorl %eax, %eax
leaq 4(%rsp), %rsi
call _ZNSirsERi@PLT
movslq 4(%rsp), %rsi
movq _ZSt4cout@GOTPCREL(%rip), %rdi
lzcntq %rsi, %rsi
call _ZNSolsEi@PLT
movb $10, 3(%rsp)
movq %rax, %rdi
movq (%rax), %rax
movq -24(%rax), %rax
cmpq $0, 16(%rdi,%rax)
je .L2
leaq 3(%rsp), %rsi
movl $1, %edx
call _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
2024-02-27 03:42:51 +00:00
.L3:
2024-08-22 06:10:45 +01:00
movq 8(%rsp), %rax
subq %fs:40, %rax
2024-02-27 03:42:51 +00:00
jne .L7
2024-08-22 06:10:45 +01:00
xorl %eax, %eax
addq $24, %rsp
2024-02-27 03:42:51 +00:00
.cfi_remember_state
.cfi_def_cfa_offset 8
ret
2024-08-22 06:10:45 +01:00
.L2:
2024-02-27 03:42:51 +00:00
.cfi_restore_state
2024-08-22 06:10:45 +01:00
movl $10, %esi
call _ZNSo3putEc@PLT
jmp .L3
.L7:
call __stack_chk_fail@PLT
2024-02-27 03:42:51 +00:00
.cfi_endproc
2024-08-22 06:10:45 +01:00
.LFE9872:
.size main, .-main
.ident "GCC: (GNU) 13.2.0"
2024-02-27 03:42:51 +00:00
.section .note.GNU-stack,"",@progbits