Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .section __TEXT,__text,regular,pure_instructions
- .build_version macos, 10, 14
- .globl _main ## -- Begin function main
- .p2align 4, 0x90
- _main: ## @main
- Lfunc_begin0:
- .cfi_startproc
- .cfi_personality 155, ___gxx_personality_v0
- .cfi_lsda 16, Lexception0
- ## %bb.0:
- pushq %rbp
- .cfi_def_cfa_offset 16
- .cfi_offset %rbp, -16
- movq %rsp, %rbp
- .cfi_def_cfa_register %rbp
- pushq %r14
- pushq %rbx
- subq $16, %rsp
- .cfi_offset %rbx, -32
- .cfi_offset %r14, -24
- movq 8(%rsi), %rdi
- callq _atoll
- cmpq $1, %rax
- jne LBB0_2
- jmp LBB0_5
- .p2align 4, 0x90
- LBB0_4: ## in Loop: Header=BB0_2 Depth=1
- movq %rax, %rcx
- shrq $63, %rcx
- addq %rax, %rcx
- sarq %rcx
- movq %rcx, %rax
- cmpq $1, %rax
- je LBB0_5
- LBB0_2: ## =>This Inner Loop Header: Depth=1
- testb $1, %al
- je LBB0_4
- ## %bb.3: ## in Loop: Header=BB0_2 Depth=1
- leaq 1(%rax,%rax,2), %rax
- cmpq $1, %rax
- jne LBB0_2
- LBB0_5:
- movq __ZNSt3__14coutE@GOTPCREL(%rip), %rdi
- movl $1, %esi
- callq __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEx
- movq %rax, %rbx
- movq (%rbx), %rax
- movq -24(%rax), %rsi
- addq %rbx, %rsi
- leaq -24(%rbp), %r14
- movq %r14, %rdi
- callq __ZNKSt3__18ios_base6getlocEv
- Ltmp0:
- movq __ZNSt3__15ctypeIcE2idE@GOTPCREL(%rip), %rsi
- movq %r14, %rdi
- callq __ZNKSt3__16locale9use_facetERNS0_2idE
- Ltmp1:
- ## %bb.6:
- movq (%rax), %rcx
- Ltmp2:
- movl $10, %esi
- movq %rax, %rdi
- callq *56(%rcx)
- movl %eax, %r14d
- Ltmp3:
- ## %bb.7:
- leaq -24(%rbp), %rdi
- callq __ZNSt3__16localeD1Ev
- movsbl %r14b, %esi
- movq %rbx, %rdi
- callq __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE3putEc
- movq %rbx, %rdi
- callq __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE5flushEv
- xorl %eax, %eax
- addq $16, %rsp
- popq %rbx
- popq %r14
- popq %rbp
- retq
- LBB0_8:
- Ltmp4:
- movq %rax, %rbx
- leaq -24(%rbp), %rdi
- callq __ZNSt3__16localeD1Ev
- movq %rbx, %rdi
- callq __Unwind_Resume
- ud2
- Lfunc_end0:
- .cfi_endproc
- .section __TEXT,__gcc_except_tab
- .p2align 2
- GCC_except_table0:
- Lexception0:
- .byte 255 ## @LPStart Encoding = omit
- .byte 155 ## @TType Encoding = indirect pcrel sdata4
- .byte 41 ## @TType base offset
- .byte 3 ## Call site Encoding = udata4
- .byte 39 ## Call site table length
- Lset0 = Lfunc_begin0-Lfunc_begin0 ## >> Call Site 1 <<
- .long Lset0
- Lset1 = Ltmp0-Lfunc_begin0 ## Call between Lfunc_begin0 and Ltmp0
- .long Lset1
- .long 0 ## has no landing pad
- .byte 0 ## On action: cleanup
- Lset2 = Ltmp0-Lfunc_begin0 ## >> Call Site 2 <<
- .long Lset2
- Lset3 = Ltmp3-Ltmp0 ## Call between Ltmp0 and Ltmp3
- .long Lset3
- Lset4 = Ltmp4-Lfunc_begin0 ## jumps to Ltmp4
- .long Lset4
- .byte 0 ## On action: cleanup
- Lset5 = Ltmp3-Lfunc_begin0 ## >> Call Site 3 <<
- .long Lset5
- Lset6 = Lfunc_end0-Ltmp3 ## Call between Ltmp3 and Lfunc_end0
- .long Lset6
- .long 0 ## has no landing pad
- .byte 0 ## On action: cleanup
- .p2align 2
- ## -- End function
- .subsections_via_symbols
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement