Skip to content

Instantly share code, notes, and snippets.

@elliotchance
Last active December 18, 2015 01:39
Show Gist options
  • Save elliotchance/5705330 to your computer and use it in GitHub Desktop.
Save elliotchance/5705330 to your computer and use it in GitHub Desktop.
.globl _EaglePlan_getNextPageNumber
.align 4, 0x90
_EaglePlan_getNextPageNumber: ## @EaglePlan_getNextPageNumber
.cfi_startproc
Lfunc_begin14:
.loc 1 263 0 ## /Users/elliot/Xcode/eagle/eagle/eagle/EaglePlan.c:263:0
## BB#0:
pushq %rbp
Ltmp214:
.cfi_def_cfa_offset 16
Ltmp215:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp216:
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
.loc 1 264 27 prologue_end ## /Users/elliot/Xcode/eagle/eagle/eagle/EaglePlan.c:264:27
Ltmp217:
movl $0, -12(%rbp)
.loc 1 270 5 ## /Users/elliot/Xcode/eagle/eagle/eagle/EaglePlan.c:270:5
movq -8(%rbp), %rdi
addq $100, %rdi
## InlineAsm Start
lock incl (%rdi)
movl (%rdi), %ecx
## InlineAsm End
movl %ecx, -12(%rbp)
.loc 1 278 5 ## /Users/elliot/Xcode/eagle/eagle/eagle/EaglePlan.c:278:5
movl -12(%rbp), %eax
movq ___llvm_gcov_ctr30(%rip), %rdi
addq $1, %rdi
movq %rdi, ___llvm_gcov_ctr30(%rip)
popq %rbp
ret
Ltmp218:
Lfunc_end14:
.cfi_endproc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment