Skip to content

Instantly share code, notes, and snippets.

@EgorBot
Created October 5, 2024 20:14
Show Gist options
  • Save EgorBot/c5288a55d65b13f49228f98dafc3d44e to your computer and use it in GitHub Desktop.
Save EgorBot/c5288a55d65b13f49228f98dafc3d44e to your computer and use it in GitHub Desktop.
diff_asm_d63265ca.asm
Samples: 72K of event 'cpu-clock', 11999 Hz, Event count (approx.): 6024065220, [percent: local period]
instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]() /tmp/jitted-39253-7270.so
Percent
Disassembly of section .text:
0000000000000080 <instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]>:
instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]():
0.04 push rbp
0.08 push rbx
push rax
0.00 lea rbp,[rsp+0x10]
movabs rax,0x714938002cf0
0.12 mov rax,QWORD PTR [rax]
0.01 test rax,rax
↓ je ad
0.01 lea rsi,[rax+0x10]
0.01 mov edx,DWORD PTR [rax+0x8]
0.23 25: movabs rax,0x714938002ce8
mov rax,QWORD PTR [rax]
xor ecx,ecx
mov r8d,DWORD PTR [rax+0x8]
0.17 test r8d,r8d
↓ jle 7f
0.14 nop
9.89 40: movzx r9d,BYTE PTR [rax+rcx*1+0x10]
12.54 test r9d,r9d
↓ jne 93
6.69 cmp edx,0x5
↓ jl c3
2.38 movabs r9,0x73006c00610046
1.32 mov QWORD PTR [rsi],r9
12.39 mov WORD PTR [rsi+0x8],0x65
3.08 mov r9d,0x5
1.84 69: cmp r9d,edx
↓ ja b6
5.58 mov r10d,r9d
2.29 lea rsi,[rsi+r10*2]
6.90 sub edx,r9d
4.26 inc ecx
3.72 cmp r8d,ecx
↑ jg 40
0.45 7f: movabs rax,0x71894610e478
0.89 → call QWORD PTR [rax]
0.61 nop
add rsp,0x8
pop rbx
0.18 pop rbp
0.02 ← ret
6.84 93: cmp edx,0x4
↓ jl c3
2.38 movabs r9,0x65007500720054
0.70 mov QWORD PTR [rsi],r9
12.83 mov r9d,0x4
1.40 ↑ jmp 69
ad: xor esi,esi
xor edx,edx
↑ jmp 25
b6: movabs rax,0x7189457bd800
→ call QWORD PTR [rax]
int3
c3: movabs rdi,0x71894579c9a8
→ call instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]+0x7d9526b0
mov rbx,rax
mov rdi,rbx
movabs rax,0x7189457bcfc0
→ call QWORD PTR [rax]
mov rdi,rbx
→ call instance void [benchapp] Benchmarks::WriteBools()[OptimizedTier1]+0x7d957fb0
int3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment