Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .section __TEXT,__text,regular,pure_instructions
- .globl __Z4funcPP1Xi
- .align 4, 0x90
- __Z4funcPP1Xi: ## @_Z4funcPP1Xi
- .cfi_startproc
- ## BB#0: ## %entry
- pushq %rbp
- Ltmp3:
- .cfi_def_cfa_offset 16
- Ltmp4:
- .cfi_offset %rbp, -16
- movq %rsp, %rbp
- Ltmp5:
- .cfi_def_cfa_register %rbp
- pushq %rbx
- Ltmp6:
- .cfi_offset %rbx, -24
- ## kill: ESI<def> ESI<kill> RSI<def>
- xorl %eax, %eax
- testl %esi, %esi
- jle LBB0_8
- ## BB#1: ## %while.body.preheader
- leal -1(%rsi), %ecx
- leaq 1(%rcx), %r8
- movabsq $8589934590, %r9 ## imm = 0x1FFFFFFFE
- movq %r8, %rax
- andq %r9, %rax
- xorl %r10d, %r10d
- andq %r8, %r9
- je LBB0_2
- ## BB#3: ## %vector.body.preheader
- subl %eax, %esi
- leaq (%rdi,%r9,8), %r10
- addq $8, %rdi
- incq %rcx
- andq $-2, %rcx
- xorl %eax, %eax
- xorl %edx, %edx
- .align 4, 0x90
- LBB0_4: ## %vector.body
- ## =>This Inner Loop Header: Depth=1
- movq -8(%rdi), %r11
- movq (%rdi), %rbx
- addl (%r11), %eax
- addl (%rbx), %edx
- addq $16, %rdi
- addq $-2, %rcx
- jne LBB0_4
- ## BB#5:
- movq %r10, %rdi
- movq %r9, %r10
- jmp LBB0_6
- LBB0_2:
- xorl %eax, %eax
- xorl %edx, %edx
- LBB0_6: ## %middle.block
- addl %edx, %eax
- cmpq %r10, %r8
- je LBB0_8
- .align 4, 0x90
- LBB0_7: ## %while.body
- ## =>This Inner Loop Header: Depth=1
- movq (%rdi), %rcx
- addl (%rcx), %eax
- addq $8, %rdi
- decl %esi
- testl %esi, %esi
- jg LBB0_7
- LBB0_8: ## %while.end
- ## kill: EAX<def> EAX<kill> RAX<kill>
- popq %rbx
- popq %rbp
- retq
- .cfi_endproc
- .globl _main
- .align 4, 0x90
- _main: ## @main
- .cfi_startproc
- ## BB#0: ## %entry
- pushq %rbp
- Ltmp9:
- .cfi_def_cfa_offset 16
- Ltmp10:
- .cfi_offset %rbp, -16
- movq %rsp, %rbp
- Ltmp11:
- .cfi_def_cfa_register %rbp
- xorl %eax, %eax
- popq %rbp
- retq
- .cfi_endproc
- .subsections_via_symbols
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement