@@ -10,23 +10,21 @@ Lloh1:
10
10
add x0 , x0 , l___unnamed_1@PAGEOFF
11
11
mov w1 , # 3
12
12
bl SYM(objc2_foundation::__string_macro::is_ascii_no_nul::GENERATED_ID , 0 )
13
- tbz w0 , # 0 , LBB0_2
14
13
Lloh2:
15
- adrp x0 , SYM(test_ns_string [ CRATE_ID ] ::get_ascii::CFSTRING , 0 )@PAGE
14
+ adrp x8 , SYM(test_ns_string [ CRATE_ID ] ::get_ascii::CFSTRING , 0 )@PAGE
16
15
Lloh3:
17
- add x0 , x0 , SYM(test_ns_string [ CRATE_ID ] ::get_ascii::CFSTRING , 0 )@PAGEOFF
18
- ldp x29 , x30 , [ sp ], # 16
19
- b SYM(objc2_foundation::__string_macro::CFStringAscii::as_nsstring::GENERATED_ID , 0 )
20
- LBB0_2:
16
+ add x8 , x8 , SYM(test_ns_string [ CRATE_ID ] ::get_ascii::CFSTRING , 0 )@PAGEOFF
21
17
Lloh4:
22
- adrp x0 , SYM(test_ns_string [ CRATE_ID ] ::get_ascii::CFSTRING , 1 )@PAGE
18
+ adrp x9 , SYM(test_ns_string [ CRATE_ID ] ::get_ascii::CFSTRING , 1 )@PAGE
23
19
Lloh5:
24
- add x0 , x0 , SYM(test_ns_string [ CRATE_ID ] ::get_ascii::CFSTRING , 1 )@PAGEOFF
20
+ add x9 , x9 , SYM(test_ns_string [ CRATE_ID ] ::get_ascii::CFSTRING , 1 )@PAGEOFF
21
+ cmp w0 , # 0
22
+ csel x0 , x9 , x8 , ne
25
23
ldp x29 , x30 , [ sp ], # 16
26
- b SYM(objc2_foundation::__string_macro::CFStringUtf16::as_nsstring::GENERATED_ID , 0 )
27
- .loh AdrpAdd Lloh0 , Lloh1
28
- .loh AdrpAdd Lloh2 , Lloh3
24
+ ret
29
25
.loh AdrpAdd Lloh4 , Lloh5
26
+ .loh AdrpAdd Lloh2 , Lloh3
27
+ .loh AdrpAdd Lloh0 , Lloh1
30
28
31
29
.globl _get_utf16
32
30
.p2align 2
@@ -39,23 +37,21 @@ Lloh7:
39
37
add x0 , x0 , l___unnamed_2@PAGEOFF
40
38
mov w1 , # 5
41
39
bl SYM(objc2_foundation::__string_macro::is_ascii_no_nul::GENERATED_ID , 0 )
42
- tbz w0 , # 0 , LBB1_2
43
40
Lloh8:
44
- adrp x0 , SYM(test_ns_string [ CRATE_ID ] ::get_utf16::CFSTRING , 0 )@PAGE
41
+ adrp x8 , SYM(test_ns_string [ CRATE_ID ] ::get_utf16::CFSTRING , 0 )@PAGE
45
42
Lloh9:
46
- add x0 , x0 , SYM(test_ns_string [ CRATE_ID ] ::get_utf16::CFSTRING , 0 )@PAGEOFF
47
- ldp x29 , x30 , [ sp ], # 16
48
- b SYM(objc2_foundation::__string_macro::CFStringAscii::as_nsstring::GENERATED_ID , 0 )
49
- LBB1_2:
43
+ add x8 , x8 , SYM(test_ns_string [ CRATE_ID ] ::get_utf16::CFSTRING , 0 )@PAGEOFF
50
44
Lloh10:
51
- adrp x0 , SYM(test_ns_string [ CRATE_ID ] ::get_utf16::CFSTRING , 1 )@PAGE
45
+ adrp x9 , SYM(test_ns_string [ CRATE_ID ] ::get_utf16::CFSTRING , 1 )@PAGE
52
46
Lloh11:
53
- add x0 , x0 , SYM(test_ns_string [ CRATE_ID ] ::get_utf16::CFSTRING , 1 )@PAGEOFF
47
+ add x9 , x9 , SYM(test_ns_string [ CRATE_ID ] ::get_utf16::CFSTRING , 1 )@PAGEOFF
48
+ cmp w0 , # 0
49
+ csel x0 , x9 , x8 , ne
54
50
ldp x29 , x30 , [ sp ], # 16
55
- b SYM(objc2_foundation::__string_macro::CFStringUtf16::as_nsstring::GENERATED_ID , 0 )
56
- .loh AdrpAdd Lloh6 , Lloh7
57
- .loh AdrpAdd Lloh8 , Lloh9
51
+ ret
58
52
.loh AdrpAdd Lloh10 , Lloh11
53
+ .loh AdrpAdd Lloh8 , Lloh9
54
+ .loh AdrpAdd Lloh6 , Lloh7
59
55
60
56
.globl _get_with_nul
61
57
.p2align 2
@@ -68,23 +64,21 @@ Lloh13:
68
64
add x0 , x0 , l___unnamed_3@PAGEOFF
69
65
mov w1 , # 6
70
66
bl SYM(objc2_foundation::__string_macro::is_ascii_no_nul::GENERATED_ID , 0 )
71
- tbz w0 , # 0 , LBB2_2
72
67
Lloh14:
73
- adrp x0 , SYM(test_ns_string [ CRATE_ID ] ::get_with_nul::CFSTRING , 0 )@PAGE
68
+ adrp x8 , SYM(test_ns_string [ CRATE_ID ] ::get_with_nul::CFSTRING , 0 )@PAGE
74
69
Lloh15:
75
- add x0 , x0 , SYM(test_ns_string [ CRATE_ID ] ::get_with_nul::CFSTRING , 0 )@PAGEOFF
76
- ldp x29 , x30 , [ sp ], # 16
77
- b SYM(objc2_foundation::__string_macro::CFStringAscii::as_nsstring::GENERATED_ID , 0 )
78
- LBB2_2:
70
+ add x8 , x8 , SYM(test_ns_string [ CRATE_ID ] ::get_with_nul::CFSTRING , 0 )@PAGEOFF
79
71
Lloh16:
80
- adrp x0 , SYM(test_ns_string [ CRATE_ID ] ::get_with_nul::CFSTRING , 1 )@PAGE
72
+ adrp x9 , SYM(test_ns_string [ CRATE_ID ] ::get_with_nul::CFSTRING , 1 )@PAGE
81
73
Lloh17:
82
- add x0 , x0 , SYM(test_ns_string [ CRATE_ID ] ::get_with_nul::CFSTRING , 1 )@PAGEOFF
74
+ add x9 , x9 , SYM(test_ns_string [ CRATE_ID ] ::get_with_nul::CFSTRING , 1 )@PAGEOFF
75
+ cmp w0 , # 0
76
+ csel x0 , x9 , x8 , ne
83
77
ldp x29 , x30 , [ sp ], # 16
84
- b SYM(objc2_foundation::__string_macro::CFStringUtf16::as_nsstring::GENERATED_ID , 0 )
85
- .loh AdrpAdd Lloh12 , Lloh13
86
- .loh AdrpAdd Lloh14 , Lloh15
78
+ ret
87
79
.loh AdrpAdd Lloh16 , Lloh17
80
+ .loh AdrpAdd Lloh14 , Lloh15
81
+ .loh AdrpAdd Lloh12 , Lloh13
88
82
89
83
. section __DATA , __const
90
84
.globl _EMPTY
@@ -166,7 +160,7 @@ l___unnamed_8:
166
160
167
161
. section __DATA , __cfstring
168
162
.p2align 3
169
- SYM(test_ns_string [ CRATE_ID ] ::get_ascii::CFSTRING , 0 ):
163
+ SYM(test_ns_string [ CRATE_ID ] ::get_ascii::CFSTRING , 1 ):
170
164
.quad ___CFConstantStringClassReference
171
165
.asciz "\310\007\000\000\000\000\000"
172
166
.quad l___unnamed_8
@@ -179,7 +173,7 @@ l___unnamed_9:
179
173
180
174
. section __DATA , __cfstring
181
175
.p2align 3
182
- SYM(test_ns_string [ CRATE_ID ] ::get_ascii::CFSTRING , 1 ):
176
+ SYM(test_ns_string [ CRATE_ID ] ::get_ascii::CFSTRING , 0 ):
183
177
.quad ___CFConstantStringClassReference
184
178
.asciz "\320\007\000\000\000\000\000"
185
179
.quad l___unnamed_9
@@ -191,7 +185,7 @@ l___unnamed_10:
191
185
192
186
. section __DATA , __cfstring
193
187
.p2align 3
194
- SYM(test_ns_string [ CRATE_ID ] ::get_utf16::CFSTRING , 0 ):
188
+ SYM(test_ns_string [ CRATE_ID ] ::get_utf16::CFSTRING , 1 ):
195
189
.quad ___CFConstantStringClassReference
196
190
.asciz "\310\007\000\000\000\000\000"
197
191
.quad l___unnamed_10
@@ -204,7 +198,7 @@ l___unnamed_11:
204
198
205
199
. section __DATA , __cfstring
206
200
.p2align 3
207
- SYM(test_ns_string [ CRATE_ID ] ::get_utf16::CFSTRING , 1 ):
201
+ SYM(test_ns_string [ CRATE_ID ] ::get_utf16::CFSTRING , 0 ):
208
202
.quad ___CFConstantStringClassReference
209
203
.asciz "\320\007\000\000\000\000\000"
210
204
.quad l___unnamed_11
@@ -216,7 +210,7 @@ l___unnamed_12:
216
210
217
211
. section __DATA , __cfstring
218
212
.p2align 3
219
- SYM(test_ns_string [ CRATE_ID ] ::get_with_nul::CFSTRING , 0 ):
213
+ SYM(test_ns_string [ CRATE_ID ] ::get_with_nul::CFSTRING , 1 ):
220
214
.quad ___CFConstantStringClassReference
221
215
.asciz "\310\007\000\000\000\000\000"
222
216
.quad l___unnamed_12
@@ -229,7 +223,7 @@ l___unnamed_13:
229
223
230
224
. section __DATA , __cfstring
231
225
.p2align 3
232
- SYM(test_ns_string [ CRATE_ID ] ::get_with_nul::CFSTRING , 1 ):
226
+ SYM(test_ns_string [ CRATE_ID ] ::get_with_nul::CFSTRING , 0 ):
233
227
.quad ___CFConstantStringClassReference
234
228
.asciz "\320\007\000\000\000\000\000"
235
229
.quad l___unnamed_13
0 commit comments