Page MenuHomePhabricator
Paste P7174

disassemble monoeg_g_calloc
ActivePublic

Authored by zhuyifei1999 on May 29 2018, 1:24 PM.
(gdb) disassemble
Dump of assembler code for function monoeg_g_calloc:
0x00000000006de580 <+0>: push %rbp
0x00000000006de581 <+1>: mov %rsi,%rbp
0x00000000006de584 <+4>: push %rbx
0x00000000006de585 <+5>: sub $0x8,%rsp
0x00000000006de589 <+9>: test %rsi,%rsi
0x00000000006de58c <+12>: je 0x6de5b0 <monoeg_g_calloc+48>
0x00000000006de58e <+14>: test %rdi,%rdi
0x00000000006de591 <+17>: mov %rdi,%rbx
0x00000000006de594 <+20>: je 0x6de5b0 <monoeg_g_calloc+48>
0x00000000006de596 <+22>: callq 0x418b80 <calloc@plt>
0x00000000006de59b <+27>: test %rax,%rax
0x00000000006de59e <+30>: je 0x6de5c0 <monoeg_g_calloc+64>
0x00000000006de5a0 <+32>: add $0x8,%rsp
0x00000000006de5a4 <+36>: pop %rbx
0x00000000006de5a5 <+37>: pop %rbp
0x00000000006de5a6 <+38>: retq
0x00000000006de5a7 <+39>: nopw 0x0(%rax,%rax,1)
0x00000000006de5b0 <+48>: add $0x8,%rsp
0x00000000006de5b4 <+52>: xor %eax,%eax
0x00000000006de5b6 <+54>: pop %rbx
0x00000000006de5b7 <+55>: pop %rbp
0x00000000006de5b8 <+56>: retq
0x00000000006de5b9 <+57>: nopl 0x0(%rax)
0x00000000006de5c0 <+64>: mov %rbp,%rcx
0x00000000006de5c3 <+67>: lea 0xc0776(%rip),%rdx # 0x79ed40
0x00000000006de5ca <+74>: mov %rbp,%r9
0x00000000006de5cd <+77>: imul %rbx,%rcx
0x00000000006de5d1 <+81>: mov %rbx,%r8
0x00000000006de5d4 <+84>: mov $0x4,%esi
0x00000000006de5d9 <+89>: xor %edi,%edi
0x00000000006de5db <+91>: callq 0x6de910 <monoeg_g_log>
=> 0x00000000006de5e0 <+96>: jmp 0x6de5e0 <monoeg_g_calloc+96>