All pastes #801486 Raw Edit

Unnamed

public text v1 · immutable
#801486 ·published 2007-11-29 09:32 UTC
rendered paste body
Dump of assembler code for function node_item_get:
0x08049c80 <node_item_get+0>:   push   %ebp
0x08049c81 <node_item_get+1>:   mov    %esp,%ebp
0x08049c83 <node_item_get+3>:   push   %edi
0x08049c84 <node_item_get+4>:   mov    %eax,%edi
0x08049c86 <node_item_get+6>:   push   %esi
0x08049c87 <node_item_get+7>:   push   %ebx
0x08049c88 <node_item_get+8>:   sub    $0x1c,%esp
0x08049c8b <node_item_get+11>:  mov    0x8061f2c,%eax
0x08049c90 <node_item_get+16>:  mov    0x8051134,%esi
0x08049c96 <node_item_get+22>:  mov    0x8051138,%edx
0x08049c9c <node_item_get+28>:  test   %eax,%eax
0x08049c9e <node_item_get+30>:  je     0x8049cb9 <node_item_get+57>
0x08049ca0 <node_item_get+32>:  mov    %edi,0x4(%esp)
0x08049ca4 <node_item_get+36>:  mov    %eax,(%esp)
0x08049ca7 <node_item_get+39>:  call   0x80498a4 <g_hash_table_lookup@plt>
0x08049cac <node_item_get+44>:  shl    $0x4,%eax
0x08049caf <node_item_get+47>:  add    %esi,%eax
0x08049cb1 <node_item_get+49>:  add    $0x1c,%esp
0x08049cb4 <node_item_get+52>:  pop    %ebx
0x08049cb5 <node_item_get+53>:  pop    %esi
0x08049cb6 <node_item_get+54>:  pop    %edi
0x08049cb7 <node_item_get+55>:  pop    %ebp
0x08049cb8 <node_item_get+56>:  ret    
0x08049cb9 <node_item_get+57>:  shr    $0x4,%edx
0x08049cbc <node_item_get+60>:  mov    %edx,-0x10(%ebp)
0x08049cbf <node_item_get+63>:  mov    %edx,%ebx
0x08049cc1 <node_item_get+65>:  sar    %edx
0x08049cc3 <node_item_get+67>:  mov    %edx,%eax
0x08049cc5 <node_item_get+69>:  shl    $0x4,%eax
0x08049cc8 <node_item_get+72>:  mov    (%esi,%eax,1),%ecx
0x08049ccb <node_item_get+75>:  shr    $0x2,%ebx
0x08049cce <node_item_get+78>:  mov    -0x10(%ebp),%eax
0x08049cd1 <node_item_get+81>:  sub    $0x1,%eax
0x08049cd4 <node_item_get+84>:  mov    %eax,-0x14(%ebp)
0x08049cd7 <node_item_get+87>:  jmp    0x8049cff <node_item_get+127>
0x08049cd9 <node_item_get+89>:  lea    0x0(%esi),%esi
0x08049ce0 <node_item_get+96>:  add    %ebx,%edx
0x08049ce2 <node_item_get+98>:  cmp    $0x1,%ebx
0x08049ce5 <node_item_get+101>: je     0x8049d1e <node_item_get+158>
0x08049ce7 <node_item_get+103>: cmp    %edx,-0x10(%ebp)
0x08049cea <node_item_get+106>: jg     0x8049cf0 <node_item_get+112>
0x08049cec <node_item_get+108>: mov    -0x14(%ebp),%edx
0x08049cef <node_item_get+111>: nop    
0x08049cf0 <node_item_get+112>: cmp    $0x1,%ebx
0x08049cf3 <node_item_get+115>: jle    0x8049cf7 <node_item_get+119>
0x08049cf5 <node_item_get+117>: sar    %ebx
0x08049cf7 <node_item_get+119>: mov    %edx,%eax
0x08049cf9 <node_item_get+121>: shl    $0x4,%eax
0x08049cfc <node_item_get+124>: mov    (%esi,%eax,1),%ecx
0x08049cff <node_item_get+127>: mov    %edx,%eax
0x08049d01 <node_item_get+129>: shl    $0x4,%eax
0x08049d04 <node_item_get+132>: add    %esi,%eax
0x08049d06 <node_item_get+134>: cmp    %ecx,%edi
0x08049d08 <node_item_get+136>: je     0x8049cb1 <node_item_get+49>
0x08049d0a <node_item_get+138>: jg     0x8049ce0 <node_item_get+96>
0x08049d0c <node_item_get+140>: sub    %ebx,%edx
0x08049d0e <node_item_get+142>: cmp    $0x1,%ebx
0x08049d11 <node_item_get+145>: je     0x8049d36 <node_item_get+182>
0x08049d13 <node_item_get+147>: mov    %edx,%eax
0x08049d15 <node_item_get+149>: sar    $0x1f,%eax
0x08049d18 <node_item_get+152>: not    %eax
0x08049d1a <node_item_get+154>: and    %eax,%edx
0x08049d1c <node_item_get+156>: jmp    0x8049cf0 <node_item_get+112>
0x08049d1e <node_item_get+158>: cmp    %edx,-0x10(%ebp)
0x08049d21 <node_item_get+161>: jle    0x8049d2f <node_item_get+175>
0x08049d23 <node_item_get+163>: mov    %edx,%eax
0x08049d25 <node_item_get+165>: shl    $0x4,%eax
0x08049d28 <node_item_get+168>: mov    (%eax,%esi,1),%ecx
0x08049d2b <node_item_get+171>: cmp    %ecx,%edi
0x08049d2d <node_item_get+173>: jge    0x8049cff <node_item_get+127>
0x08049d2f <node_item_get+175>: xor    %eax,%eax
0x08049d31 <node_item_get+177>: jmp    0x8049cb1 <node_item_get+49>
0x08049d36 <node_item_get+182>: test   %edx,%edx
0x08049d38 <node_item_get+184>: js     0x8049d2f <node_item_get+175>
0x08049d3a <node_item_get+186>: mov    %edx,%eax
0x08049d3c <node_item_get+188>: shl    $0x4,%eax
0x08049d3f <node_item_get+191>: mov    (%eax,%esi,1),%ecx
0x08049d42 <node_item_get+194>: cmp    %ecx,%edi
0x08049d44 <node_item_get+196>: jle    0x8049cff <node_item_get+127>
0x08049d46 <node_item_get+198>: xor    %eax,%eax
0x08049d48 <node_item_get+200>: jmp    0x8049cb1 <node_item_get+49>
End of assembler dump.