-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patha.s
515 lines (515 loc) · 13 KB
/
a.s
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
.file "a.cpp"
.text
.section .text._ZSt23__is_constant_evaluatedv,"axG",@progbits,_ZSt23__is_constant_evaluatedv,comdat
.weak _ZSt23__is_constant_evaluatedv
.type _ZSt23__is_constant_evaluatedv, @function
_ZSt23__is_constant_evaluatedv:
.LFB1:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl $0, %eax
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size _ZSt23__is_constant_evaluatedv, .-_ZSt23__is_constant_evaluatedv
.section .text._ZNSt11char_traitsIcE6lengthEPKc,"axG",@progbits,_ZNSt11char_traitsIcE6lengthEPKc,comdat
.weak _ZNSt11char_traitsIcE6lengthEPKc
.type _ZNSt11char_traitsIcE6lengthEPKc, @function
_ZNSt11char_traitsIcE6lengthEPKc:
.LFB119:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $16, %rsp
movq %rdi, -8(%rbp)
call _ZSt23__is_constant_evaluatedv
testb %al, %al
je .L4
movq -8(%rbp), %rax
movq %rax, %rdi
call _ZN9__gnu_cxx11char_traitsIcE6lengthEPKc
jmp .L5
.L4:
movq -8(%rbp), %rax
movq %rax, %rdi
call strlen@PLT
nop
.L5:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE119:
.size _ZNSt11char_traitsIcE6lengthEPKc, .-_ZNSt11char_traitsIcE6lengthEPKc
.local _ZStL8__ioinit
.comm _ZStL8__ioinit,1,1
.section .rodata
.LC0:
.string "A"
.section .text._ZNK1A7getNameEv,"axG",@progbits,_ZNK1A7getNameEv,comdat
.align 2
.weak _ZNK1A7getNameEv
.type _ZNK1A7getNameEv, @function
_ZNK1A7getNameEv:
.LFB1761:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movq %fs:40, %rax
movq %rax, -8(%rbp)
xorl %eax, %eax
leaq -32(%rbp), %rax
leaq .LC0(%rip), %rdx
movq %rdx, %rsi
movq %rax, %rdi
call _ZNSt17basic_string_viewIcSt11char_traitsIcEEC1EPKc
movq -32(%rbp), %rax
movq -24(%rbp), %rdx
movq -8(%rbp), %rcx
subq %fs:40, %rcx
je .L8
call __stack_chk_fail@PLT
.L8:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1761:
.size _ZNK1A7getNameEv, .-_ZNK1A7getNameEv
.section .rodata
.LC1:
.string "C"
.section .text._ZNK1C7getNameEv,"axG",@progbits,_ZNK1C7getNameEv,comdat
.align 2
.weak _ZNK1C7getNameEv
.type _ZNK1C7getNameEv, @function
_ZNK1C7getNameEv:
.LFB1763:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movq %fs:40, %rax
movq %rax, -8(%rbp)
xorl %eax, %eax
leaq -32(%rbp), %rax
leaq .LC1(%rip), %rdx
movq %rdx, %rsi
movq %rax, %rdi
call _ZNSt17basic_string_viewIcSt11char_traitsIcEEC1EPKc
movq -32(%rbp), %rax
movq -24(%rbp), %rdx
movq -8(%rbp), %rcx
subq %fs:40, %rcx
je .L11
call __stack_chk_fail@PLT
.L11:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1763:
.size _ZNK1C7getNameEv, .-_ZNK1C7getNameEv
.text
.globl main
.type main, @function
main:
.LFB1765:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $40, %rsp
.cfi_offset 3, -24
movq %fs:40, %rax
movq %rax, -24(%rbp)
xorl %eax, %eax
leaq 16+_ZTV1C(%rip), %rax
movq %rax, -48(%rbp)
leaq -48(%rbp), %rax
movq %rax, -40(%rbp)
leaq -48(%rbp), %rax
movq %rax, -32(%rbp)
movq -40(%rbp), %rax
movq %rax, %rdi
call _ZNK1A7getNameEv
movq %rax, %rcx
movq %rdx, %rbx
movq %rdx, %rax
movq %rcx, %rsi
movq %rax, %rdx
leaq _ZSt4cout(%rip), %rax
movq %rax, %rdi
call _ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E
movl $10, %esi
movq %rax, %rdi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c@PLT
movq -32(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rdx
movq -32(%rbp), %rax
movq %rax, %rdi
call *%rdx
movq %rax, %rcx
movq %rdx, %rbx
movq %rdx, %rax
movq %rcx, %rsi
movq %rax, %rdx
leaq _ZSt4cout(%rip), %rax
movq %rax, %rdi
call _ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E
movl $10, %esi
movq %rax, %rdi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c@PLT
movl $0, %eax
movq -24(%rbp), %rdx
subq %fs:40, %rdx
je .L14
call __stack_chk_fail@PLT
.L14:
movq -8(%rbp), %rbx
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1765:
.size main, .-main
.section .text._ZN9__gnu_cxx11char_traitsIcE6lengthEPKc,"axG",@progbits,_ZN9__gnu_cxx11char_traitsIcE6lengthEPKc,comdat
.align 2
.weak _ZN9__gnu_cxx11char_traitsIcE6lengthEPKc
.type _ZN9__gnu_cxx11char_traitsIcE6lengthEPKc, @function
_ZN9__gnu_cxx11char_traitsIcE6lengthEPKc:
.LFB1772:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movq %fs:40, %rax
movq %rax, -8(%rbp)
xorl %eax, %eax
movq $0, -16(%rbp)
jmp .L16
.L17:
addq $1, -16(%rbp)
.L16:
movb $0, -17(%rbp)
movq -40(%rbp), %rdx
movq -16(%rbp), %rax
addq %rax, %rdx
leaq -17(%rbp), %rax
movq %rax, %rsi
movq %rdx, %rdi
call _ZN9__gnu_cxx11char_traitsIcE2eqERKcS3_
xorl $1, %eax
testb %al, %al
jne .L17
movq -16(%rbp), %rax
movq -8(%rbp), %rdx
subq %fs:40, %rdx
je .L19
call __stack_chk_fail@PLT
.L19:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1772:
.size _ZN9__gnu_cxx11char_traitsIcE6lengthEPKc, .-_ZN9__gnu_cxx11char_traitsIcE6lengthEPKc
.section .text._ZNKSt17basic_string_viewIcSt11char_traitsIcEE4dataEv,"axG",@progbits,_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4dataEv,comdat
.align 2
.weak _ZNKSt17basic_string_viewIcSt11char_traitsIcEE4dataEv
.type _ZNKSt17basic_string_viewIcSt11char_traitsIcEE4dataEv, @function
_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4dataEv:
.LFB1779:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rax
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1779:
.size _ZNKSt17basic_string_viewIcSt11char_traitsIcEE4dataEv, .-_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4dataEv
.section .text._ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc,"axG",@progbits,_ZNSt17basic_string_viewIcSt11char_traitsIcEEC5EPKc,comdat
.align 2
.weak _ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc
.type _ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc, @function
_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc:
.LFB2036:
.cfi_startproc
.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
.cfi_lsda 0x1b,.LLSDA2036
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $16, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rax
movq %rax, %rdi
call _ZNSt11char_traitsIcE6lengthEPKc
movq -8(%rbp), %rdx
movq %rax, (%rdx)
movq -8(%rbp), %rax
movq -16(%rbp), %rdx
movq %rdx, 8(%rax)
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2036:
.globl __gxx_personality_v0
.section .gcc_except_table._ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc,"aG",@progbits,_ZNSt17basic_string_viewIcSt11char_traitsIcEEC5EPKc,comdat
.LLSDA2036:
.byte 0xff
.byte 0xff
.byte 0x1
.uleb128 .LLSDACSE2036-.LLSDACSB2036
.LLSDACSB2036:
.LLSDACSE2036:
.section .text._ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc,"axG",@progbits,_ZNSt17basic_string_viewIcSt11char_traitsIcEEC5EPKc,comdat
.size _ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc, .-_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc
.weak _ZNSt17basic_string_viewIcSt11char_traitsIcEEC1EPKc
.set _ZNSt17basic_string_viewIcSt11char_traitsIcEEC1EPKc,_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc
.section .text._ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv,"axG",@progbits,_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv,comdat
.align 2
.weak _ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv
.type _ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv, @function
_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv:
.LFB2039:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2039:
.size _ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv, .-_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv
.section .text._ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E,"axG",@progbits,_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E,comdat
.weak _ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E
.type _ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E, @function
_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E:
.LFB2038:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $40, %rsp
.cfi_offset 3, -24
movq %rdi, -24(%rbp)
movq %rdx, %rcx
movq %rsi, %rax
movq %rdi, %rdx
movq %rcx, %rdx
movq %rax, -48(%rbp)
movq %rdx, -40(%rbp)
leaq -48(%rbp), %rax
movq %rax, %rdi
call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv
movq %rax, %rbx
leaq -48(%rbp), %rax
movq %rax, %rdi
call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE4dataEv
movq %rax, %rcx
movq -24(%rbp), %rax
movq %rbx, %rdx
movq %rcx, %rsi
movq %rax, %rdi
call _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
movq -8(%rbp), %rbx
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2038:
.size _ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E, .-_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E
.section .text._ZN9__gnu_cxx11char_traitsIcE2eqERKcS3_,"axG",@progbits,_ZN9__gnu_cxx11char_traitsIcE2eqERKcS3_,comdat
.weak _ZN9__gnu_cxx11char_traitsIcE2eqERKcS3_
.type _ZN9__gnu_cxx11char_traitsIcE2eqERKcS3_, @function
_ZN9__gnu_cxx11char_traitsIcE2eqERKcS3_:
.LFB2041:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rax
movzbl (%rax), %edx
movq -16(%rbp), %rax
movzbl (%rax), %eax
cmpb %al, %dl
sete %al
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2041:
.size _ZN9__gnu_cxx11char_traitsIcE2eqERKcS3_, .-_ZN9__gnu_cxx11char_traitsIcE2eqERKcS3_
.weak _ZTV1C
.section .data.rel.ro.local._ZTV1C,"awG",@progbits,_ZTV1C,comdat
.align 8
.type _ZTV1C, @object
.size _ZTV1C, 24
_ZTV1C:
.quad 0
.quad _ZTI1C
.quad _ZNK1C7getNameEv
.weak _ZTI1C
.section .data.rel.ro._ZTI1C,"awG",@progbits,_ZTI1C,comdat
.align 8
.type _ZTI1C, @object
.size _ZTI1C, 24
_ZTI1C:
.quad _ZTVN10__cxxabiv120__si_class_type_infoE+16
.quad _ZTS1C
.quad _ZTI1B
.weak _ZTS1C
.section .rodata._ZTS1C,"aG",@progbits,_ZTS1C,comdat
.type _ZTS1C, @object
.size _ZTS1C, 3
_ZTS1C:
.string "1C"
.weak _ZTI1B
.section .data.rel.ro._ZTI1B,"awG",@progbits,_ZTI1B,comdat
.align 8
.type _ZTI1B, @object
.size _ZTI1B, 24
_ZTI1B:
.quad _ZTVN10__cxxabiv120__si_class_type_infoE+16
.quad _ZTS1B
.quad _ZTI1A
.weak _ZTS1B
.section .rodata._ZTS1B,"aG",@progbits,_ZTS1B,comdat
.type _ZTS1B, @object
.size _ZTS1B, 3
_ZTS1B:
.string "1B"
.text
.type _Z41__static_initialization_and_destruction_0ii, @function
_Z41__static_initialization_and_destruction_0ii:
.LFB2301:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $16, %rsp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
cmpl $1, -4(%rbp)
jne .L31
cmpl $65535, -8(%rbp)
jne .L31
leaq _ZStL8__ioinit(%rip), %rax
movq %rax, %rdi
call _ZNSt8ios_base4InitC1Ev@PLT
leaq __dso_handle(%rip), %rax
movq %rax, %rdx
leaq _ZStL8__ioinit(%rip), %rax
movq %rax, %rsi
movq _ZNSt8ios_base4InitD1Ev@GOTPCREL(%rip), %rax
movq %rax, %rdi
call __cxa_atexit@PLT
.L31:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2301:
.size _Z41__static_initialization_and_destruction_0ii, .-_Z41__static_initialization_and_destruction_0ii
.weak _ZTI1A
.section .data.rel.ro._ZTI1A,"awG",@progbits,_ZTI1A,comdat
.align 8
.type _ZTI1A, @object
.size _ZTI1A, 16
_ZTI1A:
.quad _ZTVN10__cxxabiv117__class_type_infoE+16
.quad _ZTS1A
.weak _ZTS1A
.section .rodata._ZTS1A,"aG",@progbits,_ZTS1A,comdat
.type _ZTS1A, @object
.size _ZTS1A, 3
_ZTS1A:
.string "1A"
.text
.type _GLOBAL__sub_I_main, @function
_GLOBAL__sub_I_main:
.LFB2302:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl $65535, %esi
movl $1, %edi
call _Z41__static_initialization_and_destruction_0ii
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2302:
.size _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main
.section .init_array,"aw"
.align 8
.quad _GLOBAL__sub_I_main
.hidden DW.ref.__gxx_personality_v0
.weak DW.ref.__gxx_personality_v0
.section .data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
.align 8
.type DW.ref.__gxx_personality_v0, @object
.size DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
.quad __gxx_personality_v0
.hidden __dso_handle
.ident "GCC: (GNU) 12.1.0"
.section .note.GNU-stack,"",@progbits