-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy paththepatch_full.s
More file actions
101 lines (101 loc) · 2.17 KB
/
thepatch_full.s
File metadata and controls
101 lines (101 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
.section __TEXT,__text,regular,pure_instructions
.build_version ios, 12, 0 sdk_version 11, 1
.globl _comparePath ; -- Begin function comparePath
.p2align 2
; patch stat64 to return error if path does not begin with /usr/local/zhuowei
totalstart:
.space 0x0000000000045ac8 - 4
; __ZN5dyld37closure19LaunchClosureWriterC2EPKNS0_10ImageArrayE
.ascii "GOT2"
comparePath: ; @comparePath
LcomparePath:
.cfi_startproc
; %bb.0:
ldrb w8, [x0]
cmp w8, #47 ; =47
b.ne LBB0_18
; %bb.1:
ldrb w8, [x0, #1]
cmp w8, #117 ; =117
b.ne LBB0_18
; %bb.2:
ldrb w8, [x0, #2]
cmp w8, #115 ; =115
b.ne LBB0_18
; %bb.3:
ldrb w8, [x0, #3]
cmp w8, #114 ; =114
b.ne LBB0_18
; %bb.4:
ldrb w8, [x0, #4]
cmp w8, #47 ; =47
b.ne LBB0_18
; %bb.5:
ldrb w8, [x0, #5]
cmp w8, #108 ; =108
b.ne LBB0_18
; %bb.6:
ldrb w8, [x0, #6]
cmp w8, #111 ; =111
b.ne LBB0_18
; %bb.7:
ldrb w8, [x0, #7]
cmp w8, #99 ; =99
b.ne LBB0_18
; %bb.8:
ldrb w8, [x0, #8]
cmp w8, #97 ; =97
b.ne LBB0_18
; %bb.9:
ldrb w8, [x0, #9]
cmp w8, #108 ; =108
b.ne LBB0_18
; %bb.10:
ldrb w8, [x0, #10]
cmp w8, #47 ; =47
b.ne LBB0_18
; %bb.11:
ldrb w8, [x0, #11]
cmp w8, #122 ; =122
b.ne LBB0_18
; %bb.12:
ldrb w8, [x0, #12]
cmp w8, #104 ; =104
b.ne LBB0_18
; %bb.13:
ldrb w8, [x0, #13]
cmp w8, #117 ; =117
b.ne LBB0_18
; %bb.14:
ldrb w8, [x0, #14]
cmp w8, #111 ; =111
b.ne LBB0_18
; %bb.15:
ldrb w8, [x0, #15]
cmp w8, #119 ; =119
b.ne LBB0_18
; %bb.16:
ldrb w8, [x0, #16]
cmp w8, #101 ; =101
b.ne LBB0_18
; %bb.17:
ldrb w8, [x0, #17]
cmp w8, #105 ; =105
b.ne LBB0_18
; yes, it does; return back
mov x16, #338
b Lstat64_returnhere
LBB0_18:
; does not begin with /usr/local/zhuowei
mov x0, #1
ret
.ascii "END2"
.org 0x0000000000063994 - 4
.ascii "GOT1"
stat64_head:
b LcomparePath
Lstat64_returnhere:
.ascii "END1"
; -- End function
.cfi_endproc
.subsections_via_symbols