Skip to content

Instantly share code, notes, and snippets.

@adrian17
Created April 18, 2015 21:42
Show Gist options
  • Save adrian17/fdfb3d7d875c0286b3bd to your computer and use it in GitHub Desktop.
Save adrian17/fdfb3d7d875c0286b3bd to your computer and use it in GitHub Desktop.
main.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <_Z16NormalizedVectorRKN2sf7Vector2IfEE>:
0: 48 83 ec 28 sub rsp,0x28
4: f3 0f 10 0f movss xmm1,DWORD PTR [rdi]
8: f3 0f 10 47 04 movss xmm0,DWORD PTR [rdi+0x4]
d: f3 0f 59 c9 mulss xmm1,xmm1
11: f3 0f 59 c0 mulss xmm0,xmm0
15: f3 0f 58 c8 addss xmm1,xmm0
19: f3 0f 51 c1 sqrtss xmm0,xmm1
1d: 0f 2e c0 ucomiss xmm0,xmm0
20: 7a 3d jp 5f <_Z16NormalizedVectorRKN2sf7Vector2IfEE+0x5f>
22: f3 0f 10 4f 04 movss xmm1,DWORD PTR [rdi+0x4]
27: f3 0f 10 17 movss xmm2,DWORD PTR [rdi]
2b: f3 0f 5e c8 divss xmm1,xmm0
2f: f3 0f 5e d0 divss xmm2,xmm0
33: f3 0f 11 4c 24 10 movss DWORD PTR [rsp+0x10],xmm1
39: 48 8b 54 24 10 mov rdx,QWORD PTR [rsp+0x10]
3e: 48 c1 e2 20 shl rdx,0x20
42: f3 0f 11 54 24 08 movss DWORD PTR [rsp+0x8],xmm2
48: 8b 44 24 08 mov eax,DWORD PTR [rsp+0x8]
4c: 48 09 d0 or rax,rdx
4f: 48 89 44 24 08 mov QWORD PTR [rsp+0x8],rax
54: f3 0f 7e 44 24 08 movq xmm0,QWORD PTR [rsp+0x8]
5a: 48 83 c4 28 add rsp,0x28
5e: c3 ret
5f: 0f 28 c1 movaps xmm0,xmm1
62: 48 89 7c 24 08 mov QWORD PTR [rsp+0x8],rdi
67: e8 00 00 00 00 call 6c <_Z16NormalizedVectorRKN2sf7Vector2IfEE+0x6c>
6c: 48 8b 7c 24 08 mov rdi,QWORD PTR [rsp+0x8]
71: eb af jmp 22 <_Z16NormalizedVectorRKN2sf7Vector2IfEE+0x22>
main.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <_Z16NormalizedVectorN2sf7Vector2IfEE>:
0: 48 83 ec 28 sub rsp,0x28
4: 66 0f d6 44 24 08 movq QWORD PTR [rsp+0x8],xmm0
a: 48 8b 44 24 08 mov rax,QWORD PTR [rsp+0x8]
f: 89 44 24 08 mov DWORD PTR [rsp+0x8],eax
13: 48 c1 e8 20 shr rax,0x20
17: f3 0f 10 5c 24 08 movss xmm3,DWORD PTR [rsp+0x8]
1d: 89 44 24 08 mov DWORD PTR [rsp+0x8],eax
21: f3 0f 10 54 24 08 movss xmm2,DWORD PTR [rsp+0x8]
27: 0f 28 c3 movaps xmm0,xmm3
2a: 0f 28 ca movaps xmm1,xmm2
2d: f3 0f 59 c3 mulss xmm0,xmm3
31: f3 0f 59 ca mulss xmm1,xmm2
35: f3 0f 58 c1 addss xmm0,xmm1
39: f3 0f 51 c8 sqrtss xmm1,xmm0
3d: 0f 2e c9 ucomiss xmm1,xmm1
40: 7a 34 jp 76 <_Z16NormalizedVectorN2sf7Vector2IfEE+0x76>
42: f3 0f 5e d9 divss xmm3,xmm1
46: f3 0f 5e d1 divss xmm2,xmm1
4a: f3 0f 11 5c 24 08 movss DWORD PTR [rsp+0x8],xmm3
50: 8b 44 24 08 mov eax,DWORD PTR [rsp+0x8]
54: f3 0f 11 54 24 10 movss DWORD PTR [rsp+0x10],xmm2
5a: 48 8b 54 24 10 mov rdx,QWORD PTR [rsp+0x10]
5f: 48 c1 e2 20 shl rdx,0x20
63: 48 09 d0 or rax,rdx
66: 48 89 44 24 08 mov QWORD PTR [rsp+0x8],rax
6b: f3 0f 7e 44 24 08 movq xmm0,QWORD PTR [rsp+0x8]
71: 48 83 c4 28 add rsp,0x28
75: c3 ret
76: f3 0f 11 5c 24 10 movss DWORD PTR [rsp+0x10],xmm3
7c: e8 00 00 00 00 call 81 <_Z16NormalizedVectorN2sf7Vector2IfEE+0x81>
81: f3 0f 10 5c 24 10 movss xmm3,DWORD PTR [rsp+0x10]
87: 0f 28 c8 movaps xmm1,xmm0
8a: f3 0f 10 54 24 08 movss xmm2,DWORD PTR [rsp+0x8]
90: eb b0 jmp 42 <_Z16NormalizedVectorN2sf7Vector2IfEE+0x42>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment