︙ | | | ︙ | |
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
* file.
*/
.globl _of_forward
.globl _of_forward_stret
.section __TEXT, __objc_methname, cstring_literals
L_str_forwardingTargetForSelector_:
.asciz "forwardingTargetForSelector:"
.section __DATA, __objc_selrefs, literal_pointers, no_dead_strip
L_sel_forwardingTargetForSelector_:
.quad L_str_forwardingTargetForSelector_
.section __DATA, __objc_imageinfo, regular, no_dead_strip
.long 0, 0
.section __TEXT, __text, regular, pure_instructions
_of_forward:
pushq %rbp
|
|
|
|
|
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
* file.
*/
.globl _of_forward
.globl _of_forward_stret
.section __TEXT, __objc_methname, cstring_literals
str_forwardingTargetForSelector_:
.asciz "forwardingTargetForSelector:"
.section __DATA, __objc_selrefs, literal_pointers, no_dead_strip
sel_forwardingTargetForSelector_:
.quad str_forwardingTargetForSelector_
.section __DATA, __objc_imageinfo, regular, no_dead_strip
.long 0, 0
.section __TEXT, __text, regular, pure_instructions
_of_forward:
pushq %rbp
|
︙ | | | ︙ | |
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
movdqa %xmm5, -0xA0(%rbp)
movdqa %xmm6, -0xB0(%rbp)
movdqa %xmm7, -0xC0(%rbp)
call _object_getClass
movq %rax, %rdi
movq L_sel_forwardingTargetForSelector_(%rip), %rsi
call _class_respondsToSelector
testq %rax, %rax
jz fail
movq -0x10(%rbp), %rdi
movq L_sel_forwardingTargetForSelector_(%rip), %rsi
movq -0x18(%rbp), %rdx
call _objc_msgSend
testq %rax, %rax
jz fail
cmpq -0x10(%rbp), %rax
je fail
movq %rax, %rdi
/* Restore all arguments, except %rdi */
movdqa -0xC0(%rbp), %xmm7
movdqa -0xB0(%rbp), %xmm6
movdqa -0xA0(%rbp), %xmm5
|
|
|
|
|
|
|
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
movdqa %xmm5, -0xA0(%rbp)
movdqa %xmm6, -0xB0(%rbp)
movdqa %xmm7, -0xC0(%rbp)
call _object_getClass
movq %rax, %rdi
movq sel_forwardingTargetForSelector_(%rip), %rsi
call _class_respondsToSelector
testq %rax, %rax
jz 0f
movq -0x10(%rbp), %rdi
movq sel_forwardingTargetForSelector_(%rip), %rsi
movq -0x18(%rbp), %rdx
call _objc_msgSend
testq %rax, %rax
jz 0f
cmpq -0x10(%rbp), %rax
je 0f
movq %rax, %rdi
/* Restore all arguments, except %rdi */
movdqa -0xC0(%rbp), %xmm7
movdqa -0xB0(%rbp), %xmm6
movdqa -0xA0(%rbp), %xmm5
|
︙ | | | ︙ | |
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
movq -0x8(%rbp), %rax
movq %rbp, %rsp
popq %rbp
jmp _objc_msgSend
fail:
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq %rbp, %rsp
popq %rbp
jmp _of_method_not_found
|
<
>
|
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
movq -0x8(%rbp), %rax
movq %rbp, %rsp
popq %rbp
jmp _objc_msgSend
0:
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq %rbp, %rsp
popq %rbp
jmp _of_method_not_found
|
︙ | | | ︙ | |
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
movdqa %xmm6, -0xB0(%rbp)
movdqa %xmm7, -0xC0(%rbp)
movq %rsi, %rdi
call _object_getClass
movq %rax, %rdi
movq L_sel_forwardingTargetForSelector_(%rip), %rsi
call _class_respondsToSelector
testq %rax, %rax
jz fail_stret
movq -0x18(%rbp), %rdi
movq L_sel_forwardingTargetForSelector_(%rip), %rsi
movq -0x20(%rbp), %rdx
call _objc_msgSend
testq %rax, %rax
jz fail_stret
cmpq -0x18(%rbp), %rax
je fail_stret
movq %rax, %rsi
/* Restore all arguments, except %rsi */
movdqa -0xC0(%rbp), %xmm7
movdqa -0xB0(%rbp), %xmm6
movdqa -0xA0(%rbp), %xmm5
|
|
|
|
|
|
|
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
movdqa %xmm6, -0xB0(%rbp)
movdqa %xmm7, -0xC0(%rbp)
movq %rsi, %rdi
call _object_getClass
movq %rax, %rdi
movq sel_forwardingTargetForSelector_(%rip), %rsi
call _class_respondsToSelector
testq %rax, %rax
jz 0f
movq -0x18(%rbp), %rdi
movq sel_forwardingTargetForSelector_(%rip), %rsi
movq -0x20(%rbp), %rdx
call _objc_msgSend
testq %rax, %rax
jz 0f
cmpq -0x18(%rbp), %rax
je 0f
movq %rax, %rsi
/* Restore all arguments, except %rsi */
movdqa -0xC0(%rbp), %xmm7
movdqa -0xB0(%rbp), %xmm6
movdqa -0xA0(%rbp), %xmm5
|
︙ | | | ︙ | |
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
movq -0x8(%rbp), %rax
movq %rbp, %rsp
popq %rbp
jmp _objc_msgSend_stret
fail_stret:
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq %rbp, %rsp
popq %rbp
jmp _of_method_not_found_stret
|
<
>
|
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
movq -0x8(%rbp), %rax
movq %rbp, %rsp
popq %rbp
jmp _objc_msgSend_stret
0:
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq %rbp, %rsp
popq %rbp
jmp _of_method_not_found_stret
|