Skip to content

Instantly share code, notes, and snippets.

@EgorBot
Created March 19, 2025 07:56
diff_asm_25d29957.asm
Samples: 10K of event 'cpu-clock', 1999 Hz, Event count (approx.): 5011504500, [percent: local period]
instance void [benchapp] Bench::CopyN(int32)[OptimizedTier1]() /tmp/jitted-60500-7422.so
Percent
Disassembly of section .text:
0000000000000080 <instance void [benchapp] Bench::CopyN(int32)[OptimizedTier1]>:
0.09 push rbp
mov rbp,rsp
mov rax,QWORD PTR [rdi+0x8]
0.27 test rax,rax
↓ je 54
lea rcx,[rax+0x10]
mov eax,DWORD PTR [rax+0x8]
0.20 14: mov rdx,QWORD PTR [rdi+0x10]
test rdx,rdx
↓ je 5a
lea rdi,[rdx+0x10]
mov edx,DWORD PTR [rdx+0x8]
24: xor r8d,r8d
test esi,esi
↓ jle 52
cmp esi,eax
0.10 ↓ jg 60
cmp esi,edx
0.11 ↓ jg 60
nop
nop
40: mov eax,r8d
0.15 movzx edx,BYTE PTR [rdi+rax*1]
76.93 mov BYTE PTR [rcx+rax*1],dl
0.98 inc r8d
19.59 cmp r8d,esi
0.18 ↑ jl 40
52: pop rbp
1.39 ← ret
54: xor ecx,ecx
xor eax,eax
↑ jmp 14
5a: xor edi,edi
xor edx,edx
↑ jmp 24
60: cmp r8d,eax
↓ jae 80
mov r9d,r8d
cmp r8d,edx
↓ jae 80
movzx r10d,BYTE PTR [rdi+r9*1]
mov BYTE PTR [rcx+r9*1],r10b
inc r8d
cmp r8d,esi
↑ jl 60
↑ jmp 52
80: → call instance void [benchapp] Bench::CopyN(int32)[OptimizedTier1]+0xffffffffff5ab850
int3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment