summaryrefslogtreecommitdiff
path: root/design/mock/list.dis
diff options
context:
space:
mode:
Diffstat (limited to 'design/mock/list.dis')
-rw-r--r--design/mock/list.dis263
1 files changed, 263 insertions, 0 deletions
diff --git a/design/mock/list.dis b/design/mock/list.dis
new file mode 100644
index 0000000..7cdee2b
--- /dev/null
+++ b/design/mock/list.dis
@@ -0,0 +1,263 @@
+0000000001001730 <_start>:
+_start():
+ 1001730: endbr64
+ 1001734: xor ebp,ebp
+ 1001736: mov r9,rdx
+ 1001739: pop rsi
+ 100173a: mov rdx,rsp
+ 100173d: and rsp,0xfffffffffffffff0
+ 1001741: push rax
+ 1001742: push rsp
+ 1001743: xor r8d,r8d
+ 1001746: xor ecx,ecx
+ 1001748: lea rdi,[rip+0x111] # 1001860 <main>
+ 100174f: call QWORD PTR [rip+0x141b] # 1002b70 <__libc_start_main@GLIBC_2.34>
+ 1001755: hlt
+ 1001756: cs nop WORD PTR [rax+rax*1+0x0]
+
+0000000001001760 <_dl_relocate_static_pie>:
+_dl_relocate_static_pie():
+ 1001760: endbr64
+ 1001764: ret
+ 1001765: data16 cs nop WORD PTR [rax+rax*1+0x0]
+
+0000000001001770 <_dl_relocate_static_pie_ifunc>:
+_dl_relocate_static_pie_ifunc():
+ 1001770: endbr64
+ 1001774: ret
+ 1001775: int3
+ 1001776: int3
+ 1001777: int3
+ 1001778: int3
+ 1001779: int3
+ 100177a: int3
+ 100177b: int3
+ 100177c: int3
+ 100177d: int3
+ 100177e: int3
+ 100177f: int3
+
+0000000001001780 <deregister_tm_clones>:
+deregister_tm_clones():
+ 1001780: mov eax,0x1003bd0
+ 1001785: cmp rax,0x1003bd0
+ 100178b: je 10017a0 <deregister_tm_clones+0x20>
+ 100178d: mov rax,QWORD PTR [rip+0x13ec] # 1002b80 <_ITM_deregisterTMCloneTable>
+ 1001794: test rax,rax
+ 1001797: je 10017a0 <deregister_tm_clones+0x20>
+ 1001799: mov edi,0x1003bd0
+ 100179e: jmp rax
+ 10017a0: ret
+ 10017a1: nop DWORD PTR [rax+0x0]
+ 10017a5: data16 cs nop WORD PTR [rax+rax*1+0x0]
+
+00000000010017b0 <register_tm_clones>:
+register_tm_clones():
+ 10017b0: mov esi,0x1003bd0
+ 10017b5: sub rsi,0x1003bd0
+ 10017bc: mov rax,rsi
+ 10017bf: shr rsi,0x3f
+ 10017c3: sar rax,0x3
+ 10017c7: add rsi,rax
+ 10017ca: sar rsi,1
+ 10017cd: je 10017e8 <register_tm_clones+0x38>
+ 10017cf: mov rax,QWORD PTR [rip+0x13b2] # 1002b88 <_ITM_registerTMCloneTable>
+ 10017d6: test rax,rax
+ 10017d9: je 10017e8 <register_tm_clones+0x38>
+ 10017db: mov edi,0x1003bd0
+ 10017e0: jmp rax
+ 10017e2: nop WORD PTR [rax+rax*1+0x0]
+ 10017e8: ret
+ 10017e9: nop DWORD PTR [rax+0x0]
+
+00000000010017f0 <__do_global_dtors_aux>:
+__do_global_dtors_aux():
+ 10017f0: endbr64
+ 10017f4: cmp BYTE PTR [rip+0x23d5],0x0 # 1003bd0 <completed.0>
+ 10017fb: jne 1001810 <__do_global_dtors_aux+0x20>
+ 10017fd: push rbp
+ 10017fe: mov rbp,rsp
+ 1001801: call 1001780 <deregister_tm_clones>
+ 1001806: mov BYTE PTR [rip+0x23c3],0x1 # 1003bd0 <completed.0>
+ 100180d: pop rbp
+ 100180e: ret
+ 100180f: nop
+ 1001810: ret
+ 1001811: nop DWORD PTR [rax+0x0]
+ 1001815: data16 cs nop WORD PTR [rax+rax*1+0x0]
+
+0000000001001820 <frame_dummy>:
+frame_dummy():
+ 1001820: endbr64
+ 1001824: jmp 10017b0 <register_tm_clones>
+ 1001826: int3
+ 1001827: int3
+ 1001828: int3
+ 1001829: int3
+ 100182a: int3
+ 100182b: int3
+ 100182c: int3
+ 100182d: int3
+ 100182e: int3
+ 100182f: int3
+
+0000000001001830 <list_done>:
+list_done():
+targets/list.c:31
+ 1001830: test rdi,rdi
+ 1001833: je 100184e <list_done+0x1e>
+ 1001835: push rbp
+ 1001836: mov rbp,rsp
+ 1001839: xor eax,eax
+ 100183b: nop DWORD PTR [rax+rax*1+0x0]
+ 1001840: add rax,QWORD PTR [rdi]
+ 1001843: mov rdi,QWORD PTR [rdi+0x8]
+ 1001847: test rdi,rdi
+ 100184a: jne 1001840 <list_done+0x10>
+ 100184c: pop rbp
+targets/list.c:32
+ 100184d: ret
+ 100184e: xor eax,eax
+ 1001850: ret
+ 1001851: data16 data16 data16 data16 data16 cs nop WORD PTR [rax+rax*1+0x0]
+
+0000000001001860 <main>:
+main():
+targets/list.c:35
+ 1001860: push rbp
+ 1001861: mov rbp,rsp
+ 1001864: push rbx
+ 1001865: push rax
+ 1001866: mov eax,0x6
+targets/list.c:36
+ 100186b: cmp edi,0x2
+ 100186e: jl 1001880 <main+0x20>
+ 1001870: mov rdi,QWORD PTR [rsi+0x8]
+atoi():
+/usr/include/stdlib.h:487
+ 1001874: xor esi,esi
+ 1001876: mov edx,0xa
+ 100187b: call 1001980 <strtol@plt>
+main():
+targets/list.c:38
+ 1001880: test eax,eax
+ 1001882: jle 10018a6 <main+0x46>
+ 1001884: mov ebx,eax
+ 1001886: xor eax,eax
+ 1001888: nop DWORD PTR [rax+rax*1+0x0]
+ 1001890: mov rsi,rbx
+ 1001893: imul rsi,rbx
+ 1001897: mov rdi,rax
+ 100189a: call 10018e0 <push>
+ 100189f: dec rbx
+ 10018a2: jg 1001890 <main+0x30>
+ 10018a4: jmp 10018a8 <main+0x48>
+ 10018a6: xor eax,eax
+targets/list.c:39
+ 10018a8: mov rdi,rax
+ 10018ab: call 1001910 <reverse>
+targets/list.c:40
+ 10018b0: mov rdi,rax
+ 10018b3: call 1001830 <list_done>
+ 10018b8: lea rdi,[rip+0xffffffffffffed35] # 10005f4 <_IO_stdin_used+0x4>
+ 10018bf: mov rsi,rax
+ 10018c2: xor eax,eax
+ 10018c4: call 1001990 <printf@plt>
+targets/list.c:41
+ 10018c9: xor eax,eax
+ 10018cb: add rsp,0x8
+ 10018cf: pop rbx
+ 10018d0: pop rbp
+ 10018d1: ret
+ 10018d2: data16 data16 data16 data16 cs nop WORD PTR [rax+rax*1+0x0]
+
+00000000010018e0 <push>:
+push():
+targets/list.c:11
+ 10018e0: push rbp
+ 10018e1: mov rbp,rsp
+ 10018e4: push r14
+ 10018e6: push rbx
+ 10018e7: mov rbx,rsi
+ 10018ea: mov r14,rdi
+targets/list.c:12
+ 10018ed: mov edi,0x10
+ 10018f2: call 10019a0 <malloc@plt>
+targets/list.c:13
+ 10018f7: mov QWORD PTR [rax],rbx
+targets/list.c:14
+ 10018fa: mov QWORD PTR [rax+0x8],r14
+targets/list.c:15
+ 10018fe: pop rbx
+ 10018ff: pop r14
+ 1001901: pop rbp
+ 1001902: ret
+ 1001903: data16 data16 data16 cs nop WORD PTR [rax+rax*1+0x0]
+
+0000000001001910 <reverse>:
+reverse():
+targets/list.c:20
+ 1001910: test rdi,rdi
+ 1001913: je 1001935 <reverse+0x25>
+ 1001915: push rbp
+ 1001916: mov rbp,rsp
+ 1001919: xor eax,eax
+ 100191b: nop DWORD PTR [rax+rax*1+0x0]
+ 1001920: mov rcx,rax
+ 1001923: mov rax,rdi
+targets/list.c:21
+ 1001926: mov rdi,QWORD PTR [rdi+0x8]
+targets/list.c:22
+ 100192a: mov QWORD PTR [rax+0x8],rcx
+targets/list.c:20
+ 100192e: test rdi,rdi
+ 1001931: jne 1001920 <reverse+0x10>
+ 1001933: pop rbp
+targets/list.c:26
+ 1001934: ret
+ 1001935: xor eax,eax
+ 1001937: ret
+
+Disassembly of section .init:
+
+0000000001001938 <_init>:
+_init():
+ 1001938: endbr64
+ 100193c: sub rsp,0x8
+ 1001940: mov rax,QWORD PTR [rip+0x1231] # 1002b78 <__gmon_start__>
+ 1001947: test rax,rax
+ 100194a: je 100194e <_init+0x16>
+ 100194c: call rax
+ 100194e: add rsp,0x8
+ 1001952: ret
+
+Disassembly of section .fini:
+
+0000000001001954 <_fini>:
+_fini():
+ 1001954: endbr64
+ 1001958: sub rsp,0x8
+ 100195c: add rsp,0x8
+ 1001960: ret
+
+Disassembly of section .plt:
+
+0000000001001970 <strtol@plt-0x10>:
+ 1001970: push QWORD PTR [rip+0x1222] # 1002b98 <_GLOBAL_OFFSET_TABLE_+0x8>
+ 1001976: jmp QWORD PTR [rip+0x1224] # 1002ba0 <_GLOBAL_OFFSET_TABLE_+0x10>
+ 100197c: nop DWORD PTR [rax+0x0]
+
+0000000001001980 <strtol@plt>:
+ 1001980: jmp QWORD PTR [rip+0x1222] # 1002ba8 <strtol@GLIBC_2.2.5>
+ 1001986: push 0x0
+ 100198b: jmp 1001970 <_fini+0x1c>
+
+0000000001001990 <printf@plt>:
+ 1001990: jmp QWORD PTR [rip+0x121a] # 1002bb0 <printf@GLIBC_2.2.5>
+ 1001996: push 0x1
+ 100199b: jmp 1001970 <_fini+0x1c>
+
+00000000010019a0 <malloc@plt>:
+ 10019a0: jmp QWORD PTR [rip+0x1212] # 1002bb8 <malloc@GLIBC_2.2.5>
+ 10019a6: push 0x2
+ 10019ab: jmp 1001970 <_fini+0x1c>