Skip to content

Instantly share code, notes, and snippets.

@LucasMW
Created April 24, 2015 01:33
Show Gist options
  • Save LucasMW/c0d60fd20bdd430186a8 to your computer and use it in GitHub Desktop.
Save LucasMW/c0d60fd20bdd430186a8 to your computer and use it in GitHub Desktop.
plotFunctionWithPointsAssembly
"-[FunctionPlotter plotFunctionWithPoints:numberOfPoints:withScale:colored:]": ## @"\01-[FunctionPlotter plotFunctionWithPoints:numberOfPoints:withScale:colored:]"
Lfunc_begin0:
.loc 20 13 0 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:13:0
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp0:
.cfi_def_cfa_offset 16
Ltmp1:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp2:
.cfi_def_cfa_register %rbp
subq $144, %rsp
leaq -48(%rbp), %rax
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movl %ecx, -28(%rbp)
movsd %xmm0, -40(%rbp)
movq $0, -48(%rbp)
movq %rax, %rdi
movq %r8, %rsi
callq _objc_storeStrong
.loc 20 15 5 prologue_end ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:15:5
Ltmp3:
movq $0, -56(%rbp)
.loc 20 16 5 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:16:5
movq L_OBJC_CLASSLIST_REFERENCES_$_(%rip), %rax
movq L_OBJC_SELECTOR_REFERENCES_(%rip), %rsi
movq %rax, %rdi
callq _objc_msgSend
movq L_OBJC_SELECTOR_REFERENCES_2(%rip), %rsi
movq %rax, %rdi
callq _objc_msgSend
movq -56(%rbp), %rdx
movq %rax, -56(%rbp)
movq %rdx, %rdi
callq _objc_release
.loc 20 18 9 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:18:9
Ltmp4:
movl $0, -60(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -60(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB0_4
## BB#2: ## in Loop: Header=BB0_1 Depth=1
movsd LCPI0_0(%rip), %xmm0
.loc 20 20 9 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:20:9
Ltmp5:
movq L_OBJC_CLASSLIST_REFERENCES_$_3(%rip), %rax
mulsd -40(%rbp), %xmm0
.loc 20 20 22 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:20:22
movq L_OBJC_SELECTOR_REFERENCES_5(%rip), %rsi
movq %rax, %rdi
callq _objc_msgSend
movq %rax, %rdi
callq _objc_retainAutoreleasedReturnValue
movq %rax, -72(%rbp)
.loc 20 21 9 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:21:9
movq -72(%rbp), %rax
.loc 20 21 26 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:21:26
movslq -60(%rbp), %rsi
movq -24(%rbp), %rdi
shlq $4, %rsi
addq %rsi, %rdi
movsd (%rdi), %xmm0
mulsd -40(%rbp), %xmm0
movslq -60(%rbp), %rsi
movq -24(%rbp), %rdi
shlq $4, %rsi
addq %rsi, %rdi
movsd 8(%rdi), %xmm1
mulsd -40(%rbp), %xmm1
movq %rax, -120(%rbp) ## 8-byte Spill
callq _CGPointMake
movsd %xmm0, -88(%rbp)
movsd %xmm1, -80(%rbp)
movq -88(%rbp), %rax
movq %rax, -104(%rbp)
movq -80(%rbp), %rax
movq %rax, -96(%rbp)
movq L_OBJC_SELECTOR_REFERENCES_7(%rip), %rsi
movq -120(%rbp), %rax ## 8-byte Reload
movsd -104(%rbp), %xmm0
movsd -96(%rbp), %xmm1
movq %rax, %rdi
callq _objc_msgSend
.loc 20 22 9 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:22:9
movq -72(%rbp), %rax
movq -48(%rbp), %rdx
movq L_OBJC_SELECTOR_REFERENCES_9(%rip), %rsi
movq %rax, %rdi
callq _objc_msgSend
.loc 20 23 9 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:23:9
movq -72(%rbp), %rax
movq -48(%rbp), %rdx
movq L_OBJC_SELECTOR_REFERENCES_11(%rip), %rsi
movq %rax, %rdi
callq _objc_msgSend
.loc 20 24 9 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:24:9
movq -56(%rbp), %rax
movq -72(%rbp), %rdx
movq L_OBJC_SELECTOR_REFERENCES_13(%rip), %rsi
movq %rax, %rdi
callq _objc_msgSend
xorl %ecx, %ecx
movl %ecx, %esi
leaq -72(%rbp), %rax
.loc 20 27 5 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:27:5
movq %rax, %rdi
callq _objc_storeStrong
Ltmp6:
## BB#3: ## in Loop: Header=BB0_1 Depth=1
.loc 20 18 17 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:18:17
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB0_1
Ltmp7:
LBB0_4:
.loc 20 28 5 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:28:5
movq -56(%rbp), %rdi
movq _objc_retain@GOTPCREL(%rip), %rax
callq *%rax
movl $1, -108(%rbp)
xorl %ecx, %ecx
movl %ecx, %edi
leaq -56(%rbp), %rdx
.loc 20 29 1 ## /Users/lmenezes/Documents/PUC/VisualizeSpline/VisualizeSpline/FunctionPlotter.m:29:1
movq %rdi, -128(%rbp) ## 8-byte Spill
movq %rdx, %rdi
movq -128(%rbp), %rsi ## 8-byte Reload
movq %rax, -136(%rbp) ## 8-byte Spill
callq _objc_storeStrong
leaq -48(%rbp), %rdi
movq -128(%rbp), %rsi ## 8-byte Reload
callq _objc_storeStrong
movq -136(%rbp), %rax ## 8-byte Reload
movq %rax, %rdi
addq $144, %rsp
popq %rbp
jmp _objc_autoreleaseReturnValue ## TAILCALL
Ltmp8:
Lfunc_end0:
.cfi_endproc
.align 4, 0x90
_CGPointMake: ## @CGPointMake
Lfunc_begin1:
.file 25 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers" "CGGeometry.h"
.loc 25 272 0 ## /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:272:0
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp9:
.cfi_def_cfa_offset 16
Ltmp10:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp11:
.cfi_def_cfa_register %rbp
##DEBUG_VALUE: CGPointMake:x <- undef
##DEBUG_VALUE: CGPointMake:y <- undef
movsd %xmm0, -24(%rbp)
movsd %xmm1, -32(%rbp)
.loc 25 273 14 prologue_end ## /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:273:14
Ltmp12:
movsd -24(%rbp), %xmm0
movsd %xmm0, -48(%rbp)
.loc 25 273 23 ## /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:273:23
movsd -32(%rbp), %xmm0
movsd %xmm0, -40(%rbp)
.loc 25 273 32 ## /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:273:32
movq -48(%rbp), %rax
movq -40(%rbp), %rcx
movq %rcx, -8(%rbp)
movq %rax, -16(%rbp)
movsd -16(%rbp), %xmm0
movsd -8(%rbp), %xmm1
popq %rbp
retq
Ltmp13:
Lfunc_end1:
.cfi_endproc
.align 4, 0x90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment