Guaranteed Guessing
Collection
20 items
•
Updated
x86
stringlengths 122
3.84M
| arm
stringlengths 122
16.1M
| file
stringlengths 19
207
| source
stringclasses 2
values |
---|---|---|---|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _buf_append ## -- Begin function buf_append
.p2align 4, 0x90
_buf_append: ## @buf_append
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
testl %edx, %edx
jle LBB0_3
## %bb.1:
movq %rsi, %r14
movq %rdi, %r15
movl %edx, %r12d
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movsbl (%r14,%rbx), %esi
movq %r15, %rdi
callq _buf_write
incq %rbx
cmpq %rbx, %r12
jne LBB0_2
LBB0_3:
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _buf_append ; -- Begin function buf_append
.p2align 2
_buf_append: ; @buf_append
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
cmp w2, #1
b.lt LBB0_3
; %bb.1:
mov x19, x1
mov x20, x0
mov w21, w2
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldrsb w1, [x19], #1
mov x0, x20
bl _buf_write
subs x21, x21, #1
b.ne LBB0_2
LBB0_3:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_buffer.c_buf_append.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _buf_body ## -- Begin function buf_body
.p2align 4, 0x90
_buf_body: ## @buf_body
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq (%rdi), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _buf_body ; -- Begin function buf_body
.p2align 2
_buf_body: ; @buf_body
.cfi_startproc
; %bb.0:
ldr x0, [x0]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_buffer.c_buf_body.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _buf_len ## -- Begin function buf_len
.p2align 4, 0x90
_buf_len: ## @buf_len
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl (%rdi), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _buf_len ; -- Begin function buf_len
.p2align 2
_buf_len: ; @buf_len
.cfi_startproc
; %bb.0:
ldr w0, [x0]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_buffer.c_buf_len.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _buf_write ## -- Begin function buf_write
.p2align 4, 0x90
_buf_write: ## @buf_write
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movl %esi, %r14d
movq %rdi, %rbx
movq 8(%rdi), %rax
leaq 1(%rax), %rcx
cmpq %rcx, (%rdi)
jne LBB0_2
## %bb.1:
movq %rbx, %rdi
callq _realloc_body
movq 8(%rbx), %rax
leaq 1(%rax), %rcx
LBB0_2:
movq 16(%rbx), %rdx
movq %rcx, 8(%rbx)
movb %r14b, (%rdx,%rax)
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _buf_write ; -- Begin function buf_write
.p2align 2
_buf_write: ; @buf_write
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x1
mov x20, x0
ldp x10, x8, [x0]
add x9, x8, #1
cmp x10, x9
b.ne LBB0_2
; %bb.1:
mov x0, x20
bl _realloc_body
ldr x8, [x20, #8]
add x9, x8, #1
LBB0_2:
ldr x10, [x20, #16]
str x9, [x20, #8]
strb w19, [x10, x8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_buffer.c_buf_write.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_buffer ## -- Begin function make_buffer
.p2align 4, 0x90
_make_buffer: ## @make_buffer
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movl $24, %edi
callq _malloc
movq %rax, %rbx
movq _INIT_SIZE@GOTPCREL(%rip), %r14
movl (%r14), %edi
callq _malloc
movq %rax, 16(%rbx)
movl (%r14), %eax
movl %eax, (%rbx)
movq $0, 8(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _INIT_SIZE,4,2 ## @INIT_SIZE
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_buffer ; -- Begin function make_buffer
.p2align 2
_make_buffer: ; @make_buffer
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov w0, #24
bl _malloc
mov x19, x0
Lloh0:
adrp x20, _INIT_SIZE@GOTPAGE
Lloh1:
ldr x20, [x20, _INIT_SIZE@GOTPAGEOFF]
ldr w0, [x20]
bl _malloc
ldr w8, [x20]
str w8, [x19]
stp xzr, x0, [x19, #8]
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _INIT_SIZE,4,2 ; @INIT_SIZE
.subsections_via_symbols
|
AnghaBench/8cc/extr_buffer.c_make_buffer.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function print
_print: ## @print
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %esi, %ebx
movq %rdi, %r15
movl %esi, %edi
callq _quote
testq %rax, %rax
je LBB0_1
## %bb.5:
leaq L_.str(%rip), %rsi
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _buf_printf ## TAILCALL
LBB0_1:
movsbl %bl, %r14d
movl %r14d, %edi
callq _isprint
testq %rax, %rax
je LBB0_4
## %bb.2:
leaq L_.str.1(%rip), %rsi
jmp LBB0_3
LBB0_4:
leaq L_.str.2(%rip), %rsi
LBB0_3:
movq %r15, %rdi
movl %r14d, %edx
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _buf_printf ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s"
L_.str.1: ## @.str.1
.asciz "%c"
L_.str.2: ## @.str.2
.asciz "\\x%02x"
.no_dead_strip _print
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function print
_print: ; @print
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x20, x1
mov x19, x0
mov x0, x1
bl _quote
cbz x0, LBB0_2
; %bb.1:
str x0, [sp]
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
b LBB0_5
LBB0_2:
mov x0, x20
bl _isprint
cbz x0, LBB0_4
; %bb.3:
str x20, [sp]
Lloh2:
adrp x1, l_.str.1@PAGE
Lloh3:
add x1, x1, l_.str.1@PAGEOFF
b LBB0_5
LBB0_4:
; kill: def $w20 killed $w20 killed $x20 def $x20
str x20, [sp]
Lloh4:
adrp x1, l_.str.2@PAGE
Lloh5:
add x1, x1, l_.str.2@PAGEOFF
LBB0_5:
mov x0, x19
bl _buf_printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #48
ret
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh4, Lloh5
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s"
l_.str.1: ; @.str.1
.asciz "%c"
l_.str.2: ; @.str.2
.asciz "\\x%02x"
.no_dead_strip _print
.subsections_via_symbols
|
AnghaBench/8cc/extr_buffer.c_print.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function quote
_quote: ## @quote
.cfi_startproc
## %bb.0:
## kill: def $edi killed $edi def $rdi
leal -8(%rdi), %ecx
cmpl $26, %ecx
ja LBB0_1
## %bb.10:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rax
leaq LJTI0_0(%rip), %rdx
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
popq %rbp
jmpq *%rcx
LBB0_3:
leaq L_.str.2(%rip), %rax
retq
LBB0_1:
cmpl $92, %edi
jne LBB0_8
## %bb.2:
leaq L_.str.1(%rip), %rax
retq
LBB0_8:
xorl %eax, %eax
LBB0_9:
retq
LBB0_7:
leaq L_.str.6(%rip), %rax
retq
LBB0_5:
leaq L_.str.4(%rip), %rax
retq
LBB0_4:
leaq L_.str.3(%rip), %rax
retq
LBB0_6:
leaq L_.str.5(%rip), %rax
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
.long L0_0_set_3
.long L0_0_set_7
.long L0_0_set_5
.long L0_0_set_8
.long L0_0_set_4
.long L0_0_set_6
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_8
.long L0_0_set_9
.end_data_region
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\\\""
L_.str.1: ## @.str.1
.asciz "\\\\"
L_.str.2: ## @.str.2
.asciz "\\b"
L_.str.3: ## @.str.3
.asciz "\\f"
L_.str.4: ## @.str.4
.asciz "\\n"
L_.str.5: ## @.str.5
.asciz "\\r"
L_.str.6: ## @.str.6
.asciz "\\t"
.no_dead_strip _quote
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function quote
_quote: ; @quote
.cfi_startproc
; %bb.0:
sub w8, w0, #8
cmp w8, #26
b.hi LBB0_3
; %bb.1:
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
Lloh2:
adrp x9, lJTI0_0@PAGE
Lloh3:
add x9, x9, lJTI0_0@PAGEOFF
adr x10, LBB0_2
ldrb w11, [x9, x8]
add x10, x10, x11, lsl #2
br x10
LBB0_2:
Lloh4:
adrp x0, l_.str.2@PAGE
Lloh5:
add x0, x0, l_.str.2@PAGEOFF
ret
LBB0_3:
cmp w0, #92
b.ne LBB0_5
; %bb.4:
Lloh6:
adrp x0, l_.str.1@PAGE
Lloh7:
add x0, x0, l_.str.1@PAGEOFF
ret
LBB0_5:
mov x0, #0
LBB0_6:
ret
LBB0_7:
Lloh8:
adrp x0, l_.str.6@PAGE
Lloh9:
add x0, x0, l_.str.6@PAGEOFF
ret
LBB0_8:
Lloh10:
adrp x0, l_.str.4@PAGE
Lloh11:
add x0, x0, l_.str.4@PAGEOFF
ret
LBB0_9:
Lloh12:
adrp x0, l_.str.3@PAGE
Lloh13:
add x0, x0, l_.str.3@PAGEOFF
ret
LBB0_10:
Lloh14:
adrp x0, l_.str.5@PAGE
Lloh15:
add x0, x0, l_.str.5@PAGEOFF
ret
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpAdd Lloh14, Lloh15
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_2-LBB0_2)>>2
.byte (LBB0_7-LBB0_2)>>2
.byte (LBB0_8-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_9-LBB0_2)>>2
.byte (LBB0_10-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_5-LBB0_2)>>2
.byte (LBB0_6-LBB0_2)>>2
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\\\""
l_.str.1: ; @.str.1
.asciz "\\\\"
l_.str.2: ; @.str.2
.asciz "\\b"
l_.str.3: ; @.str.3
.asciz "\\f"
l_.str.4: ; @.str.4
.asciz "\\n"
l_.str.5: ; @.str.5
.asciz "\\r"
l_.str.6: ; @.str.6
.asciz "\\t"
.no_dead_strip _quote
.subsections_via_symbols
|
AnghaBench/8cc/extr_buffer.c_quote.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _quote_char ## -- Begin function quote_char
.p2align 4, 0x90
_quote_char: ## @quote_char
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpb $92, %dil
je LBB0_1
## %bb.2:
cmpb $39, %dil
jne LBB0_5
## %bb.3:
leaq L_.str.1(%rip), %rax
popq %rbp
retq
LBB0_1:
leaq L_.str(%rip), %rax
popq %rbp
retq
LBB0_5:
movsbl %dil, %esi
leaq L_.str.2(%rip), %rdi
popq %rbp
jmp _format ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\\\\"
L_.str.1: ## @.str.1
.asciz "\\'"
L_.str.2: ## @.str.2
.asciz "%c"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _quote_char ; -- Begin function quote_char
.p2align 2
_quote_char: ; @quote_char
.cfi_startproc
; %bb.0:
cmp w0, #92
b.eq LBB0_3
; %bb.1:
mov x1, x0
cmp w0, #39
b.ne LBB0_4
; %bb.2:
Lloh0:
adrp x0, l_.str.1@PAGE
Lloh1:
add x0, x0, l_.str.1@PAGEOFF
ret
LBB0_3:
Lloh2:
adrp x0, l_.str@PAGE
Lloh3:
add x0, x0, l_.str@PAGEOFF
ret
LBB0_4:
Lloh4:
adrp x0, l_.str.2@PAGE
Lloh5:
add x0, x0, l_.str.2@PAGEOFF
b _format
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh4, Lloh5
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\\\\"
l_.str.1: ; @.str.1
.asciz "\\'"
l_.str.2: ; @.str.2
.asciz "%c"
.subsections_via_symbols
|
AnghaBench/8cc/extr_buffer.c_quote_char.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _quote_cstring ## -- Begin function quote_cstring
.p2align 4, 0x90
_quote_cstring: ## @quote_cstring
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %rbx
xorl %eax, %eax
callq _make_buffer
movq %rax, %r14
movb (%rbx), %al
testb %al, %al
je LBB0_3
## %bb.1:
incq %rbx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movsbl %al, %esi
movq %r14, %rdi
callq _print
movzbl (%rbx), %eax
incq %rbx
testb %al, %al
jne LBB0_2
LBB0_3:
movq %r14, %rdi
popq %rbx
popq %r14
popq %rbp
jmp _buf_body ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _quote_cstring ; -- Begin function quote_cstring
.p2align 2
_quote_cstring: ; @quote_cstring
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x20, x0
bl _make_buffer
mov x19, x0
ldrb w8, [x20]
cbz w8, LBB0_3
; %bb.1:
add x20, x20, #1
LBB0_2: ; =>This Inner Loop Header: Depth=1
sxtb w1, w8
mov x0, x19
bl _print
ldrb w8, [x20], #1
cbnz w8, LBB0_2
LBB0_3:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _buf_body
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_buffer.c_quote_cstring.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _quote_cstring_len ## -- Begin function quote_cstring_len
.p2align 4, 0x90
_quote_cstring_len: ## @quote_cstring_len
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %esi, %r15d
movq %rdi, %r14
xorl %eax, %eax
callq _make_buffer
movq %rax, %r12
testl %r15d, %r15d
jle LBB0_3
## %bb.1:
movl %r15d, %r15d
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movsbl (%r14,%rbx), %esi
movq %r12, %rdi
callq _print
incq %rbx
cmpq %rbx, %r15
jne LBB0_2
LBB0_3:
movq %r12, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp _buf_body ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _quote_cstring_len ; -- Begin function quote_cstring_len
.p2align 2
_quote_cstring_len: ; @quote_cstring_len
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x21, x1
mov x19, x0
bl _make_buffer
mov x20, x0
cmp w21, #1
b.lt LBB0_3
; %bb.1:
mov w21, w21
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldrsb w1, [x19], #1
mov x0, x20
bl _print
subs x21, x21, #1
b.ne LBB0_2
LBB0_3:
mov x0, x20
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _buf_body
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_buffer.c_quote_cstring_len.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function realloc_body
_realloc_body: ## @realloc_body
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %rbx
movl (%rdi), %r14d
addl %r14d, %r14d
movl %r14d, %edi
callq _malloc
movq %rax, %r15
movq 8(%rbx), %rsi
movl 16(%rbx), %edx
movq %rax, %rdi
callq _memcpy
movq %r15, 8(%rbx)
movl %r14d, (%rbx)
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _realloc_body
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function realloc_body
_realloc_body: ; @realloc_body
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x0
ldr w8, [x0]
lsl w20, w8, #1
mov x0, x20
bl _malloc
mov x21, x0
ldr x1, [x19, #8]
ldr w2, [x19, #16]
bl _memcpy
str x21, [x19, #8]
str w20, [x19]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _realloc_body
.subsections_via_symbols
|
AnghaBench/8cc/extr_buffer.c_realloc_body.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function add_hide_set
_add_hide_set: ## @add_hide_set
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %r14
movq %rdi, %r15
xorl %r13d, %r13d
xorl %eax, %eax
callq _make_vector
movq %rax, %r12
movq %r15, %rdi
callq _vec_len
testl %eax, %eax
jle LBB0_2
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
movl %r13d, %esi
callq _vec_get
movl %eax, %edi
callq _copy_token
movq %rax, %rbx
movl (%rax), %edi
movq %r14, %rsi
callq _set_union
movl %eax, (%rbx)
movq %r12, %rdi
movq %rbx, %rsi
callq _vec_push
incl %r13d
movq %r15, %rdi
callq _vec_len
cmpl %eax, %r13d
jl LBB0_1
LBB0_2:
movq %r12, %rax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _add_hide_set
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function add_hide_set
_add_hide_set: ; @add_hide_set
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
mov x19, x1
mov x20, x0
bl _make_vector
mov x21, x0
mov x0, x20
bl _vec_len
cmp w0, #1
b.lt LBB0_3
; %bb.1:
mov w22, #0
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x20
mov x1, x22
bl _vec_get
bl _copy_token
mov x23, x0
ldr w0, [x0]
mov x1, x19
bl _set_union
str w0, [x23]
mov x0, x21
mov x1, x23
bl _vec_push
add w22, w22, #1
mov x0, x20
bl _vec_len
cmp w22, w0
b.lt LBB0_2
LBB0_3:
mov x0, x21
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _add_hide_set
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_add_hide_set.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _add_include_path ## -- Begin function add_include_path
.p2align 4, 0x90
_add_include_path: ## @add_include_path
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, %rsi
movq _std_include_path@GOTPCREL(%rip), %rax
movl (%rax), %edi
popq %rbp
jmp _vec_push ## TAILCALL
.cfi_endproc
## -- End function
.comm _std_include_path,4,2 ## @std_include_path
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _add_include_path ; -- Begin function add_include_path
.p2align 2
_add_include_path: ; @add_include_path
.cfi_startproc
; %bb.0:
mov x1, x0
Lloh0:
adrp x8, _std_include_path@GOTPAGE
Lloh1:
ldr x8, [x8, _std_include_path@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
b _vec_push
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _std_include_path,4,2 ; @std_include_path
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_add_include_path.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function copy_token
_copy_token: ## @copy_token
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movq %rdi, %rbx
movl $4, %edi
callq _malloc
movl (%rbx), %ecx
movl %ecx, (%rax)
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _copy_token
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function copy_token
_copy_token: ; @copy_token
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
mov w0, #4
bl _malloc
ldr w8, [x19]
str w8, [x0]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _copy_token
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_copy_token.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _cpp_init ## -- Begin function cpp_init
.p2align 4, 0x90
_cpp_init: ## @cpp_init
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _LC_ALL@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
callq _setlocale
xorl %eax, %eax
callq _init_keywords
xorl %eax, %eax
callq _init_now
xorl %eax, %eax
popq %rbp
jmp _init_predefined_macros ## TAILCALL
.cfi_endproc
## -- End function
.comm _LC_ALL,4,2 ## @LC_ALL
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "C"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _cpp_init ; -- Begin function cpp_init
.p2align 2
_cpp_init: ; @cpp_init
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x8, _LC_ALL@GOTPAGE
Lloh1:
ldr x8, [x8, _LC_ALL@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
bl _setlocale
bl _init_keywords
bl _init_now
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _init_predefined_macros
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _LC_ALL,4,2 ; @LC_ALL
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "C"
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_cpp_init.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function define_obj_macro
_define_obj_macro: ## @define_obj_macro
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movq _macros@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movq %rsi, %rdi
callq _make_vector1
movl %eax, %edi
callq _make_obj_macro
movl %ebx, %edi
movq %r14, %rsi
movl %eax, %edx
popq %rbx
popq %r14
popq %rbp
jmp _map_put ## TAILCALL
.cfi_endproc
## -- End function
.comm _macros,4,2 ## @macros
.no_dead_strip _define_obj_macro
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function define_obj_macro
_define_obj_macro: ; @define_obj_macro
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x8, _macros@GOTPAGE
Lloh1:
ldr x8, [x8, _macros@GOTPAGEOFF]
Lloh2:
ldr w20, [x8]
mov x0, x1
bl _make_vector1
bl _make_obj_macro
mov x2, x0
mov x0, x20
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _map_put
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _macros,4,2 ; @macros
.no_dead_strip _define_obj_macro
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_define_obj_macro.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function define_special_macro
_define_special_macro: ## @define_special_macro
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movq _macros@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movq %rsi, %rdi
callq _make_special_macro
movl %ebx, %edi
movq %r14, %rsi
movl %eax, %edx
popq %rbx
popq %r14
popq %rbp
jmp _map_put ## TAILCALL
.cfi_endproc
## -- End function
.comm _macros,4,2 ## @macros
.no_dead_strip _define_special_macro
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function define_special_macro
_define_special_macro: ; @define_special_macro
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x8, _macros@GOTPAGE
Lloh1:
ldr x8, [x8, _macros@GOTPAGEOFF]
Lloh2:
ldr w20, [x8]
mov x0, x1
bl _make_special_macro
mov x2, x0
mov x0, x20
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _map_put
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _macros,4,2 ; @macros
.no_dead_strip _define_special_macro
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_define_special_macro.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function do_read_args
_do_read_args: ## @do_read_args
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $16, %rsp
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %rbx
movq %rdi, %r15
xorl %eax, %eax
callq _make_vector
movq %rax, %r14
movl $0, -36(%rbp)
leaq -36(%rbp), %r12
jmp LBB0_1
.p2align 4, 0x90
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movq %r14, %rdi
callq _vec_len
incl %eax
cmpl (%rbx), %eax
sete %al
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movzbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
callq _read_one_arg
movq %r14, %rdi
movq %rax, %rsi
callq _vec_push
cmpl $0, -36(%rbp)
jne LBB0_5
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, 8(%rbx)
jne LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
xorl %eax, %eax
jmp LBB0_4
LBB0_5:
cmpq $0, 8(%rbx)
je LBB0_8
## %bb.6:
movq %r14, %rdi
callq _vec_len
movl (%rbx), %ecx
decl %ecx
cmpl %ecx, %eax
jne LBB0_8
## %bb.7:
xorl %eax, %eax
callq _make_vector
movq %r14, %rdi
movq %rax, %rsi
callq _vec_push
LBB0_8:
movq %r14, %rax
addq $16, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _do_read_args
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function do_read_args
_do_read_args: ; @do_read_args
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x20, x1
mov x21, x0
bl _make_vector
mov x19, x0
str wzr, [sp, #12]
b LBB0_3
LBB0_1: ; in Loop: Header=BB0_3 Depth=1
mov x0, x19
bl _vec_len
add w8, w0, #1
ldr w9, [x20]
cmp w8, w9
cset w2, eq
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
add x1, sp, #12
mov x0, x21
bl _read_one_arg
mov x1, x0
mov x0, x19
bl _vec_push
ldr w8, [sp, #12]
cbnz w8, LBB0_5
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [x20, #8]
cbnz x8, LBB0_1
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
mov w2, #0
b LBB0_2
LBB0_5:
ldr x8, [x20, #8]
cbz x8, LBB0_8
; %bb.6:
mov x0, x19
bl _vec_len
ldr w8, [x20]
sub w8, w8, #1
cmp w0, w8
b.ne LBB0_8
; %bb.7:
bl _make_vector
mov x1, x0
mov x0, x19
bl _vec_push
LBB0_8:
mov x0, x19
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _do_read_args
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_do_read_args.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function do_read_if
_do_read_if: ## @do_read_if
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movl %edi, %ebx
movq _cond_incl_stack@GOTPCREL(%rip), %rax
movl (%rax), %r14d
callq _make_cond_incl
movl %r14d, %edi
movl %eax, %esi
callq _vec_push
testl %ebx, %ebx
je LBB0_2
## %bb.1:
popq %rbx
popq %r14
popq %rbp
retq
LBB0_2:
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp _skip_cond_incl ## TAILCALL
.cfi_endproc
## -- End function
.comm _cond_incl_stack,4,2 ## @cond_incl_stack
.no_dead_strip _do_read_if
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function do_read_if
_do_read_if: ; @do_read_if
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x8, _cond_incl_stack@GOTPAGE
Lloh1:
ldr x8, [x8, _cond_incl_stack@GOTPAGEOFF]
Lloh2:
ldr w20, [x8]
bl _make_cond_incl
mov x1, x0
mov x0, x20
bl _vec_push
cbz w19, LBB0_2
; %bb.1:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _skip_cond_incl
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _cond_incl_stack,4,2 ; @cond_incl_stack
.no_dead_strip _do_read_if
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_do_read_if.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function expand_all
_expand_all: ## @expand_all
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %r14
callq _vec_reverse
movl %eax, %edi
callq _token_buffer_stash
xorl %eax, %eax
callq _make_vector
movq %rax, %rbx
xorl %eax, %eax
callq _read_expand
movq (%rax), %rcx
movq _TEOF@GOTPCREL(%rip), %r15
cmpq (%r15), %rcx
je LBB0_3
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq %rbx, %rdi
movq %rax, %rsi
callq _vec_push
xorl %eax, %eax
callq _read_expand
movq (%rax), %rcx
cmpq (%r15), %rcx
jne LBB0_1
LBB0_3:
movq %rbx, %rdi
movq %r14, %rsi
callq _propagate_space
xorl %eax, %eax
callq _token_buffer_unstash
movq %rbx, %rax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TEOF,8,3 ## @TEOF
.no_dead_strip _expand_all
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function expand_all
_expand_all: ; @expand_all
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x1
bl _vec_reverse
bl _token_buffer_stash
bl _make_vector
mov x20, x0
bl _read_expand
ldr x8, [x0]
Lloh0:
adrp x21, _TEOF@GOTPAGE
Lloh1:
ldr x21, [x21, _TEOF@GOTPAGEOFF]
ldr x9, [x21]
cmp x8, x9
b.eq LBB0_3
; %bb.1:
mov x1, x0
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x20
bl _vec_push
bl _read_expand
mov x1, x0
ldr x8, [x0]
ldr x9, [x21]
cmp x8, x9
b.ne LBB0_2
LBB0_3:
mov x0, x20
mov x1, x19
bl _propagate_space
bl _token_buffer_unstash
mov x0, x20
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _TEOF,8,3 ; @TEOF
.no_dead_strip _expand_all
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_expand_all.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function expect
_expect: ## @expect
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movl %edi, %r14d
xorl %eax, %eax
callq _lex
movq %rax, %rbx
movq %rax, %rdi
movl %r14d, %esi
callq _is_keyword
testl %eax, %eax
je LBB0_2
## %bb.1:
popq %rbx
popq %r14
popq %rbp
retq
LBB0_2:
movq %rbx, %rdi
callq _tok2s
movsbl %r14b, %edx
leaq L_.str(%rip), %rsi
movq %rbx, %rdi
movl %eax, %ecx
popq %rbx
popq %r14
popq %rbp
jmp _errort ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%c expected, but got %s"
.no_dead_strip _expect
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function expect
_expect: ; @expect
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
bl _lex
mov x20, x0
mov x1, x19
bl _is_keyword
cbz w0, LBB0_2
; %bb.1:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_2:
mov x0, x20
bl _tok2s
mov x3, x0
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
mov x0, x20
mov x2, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _errort
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%c expected, but got %s"
.no_dead_strip _expect
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_expect.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _expect_newline ## -- Begin function expect_newline
.p2align 4, 0x90
_expect_newline: ## @expect_newline
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
xorl %eax, %eax
callq _lex
movq %rax, %rbx
movq (%rax), %rax
movq _TNEWLINE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_2
## %bb.1:
addq $8, %rsp
popq %rbx
popq %rbp
retq
LBB0_2:
movq %rbx, %rdi
callq _tok2s
leaq L_.str(%rip), %rsi
movq %rbx, %rdi
movl %eax, %edx
addq $8, %rsp
popq %rbx
popq %rbp
jmp _errort ## TAILCALL
.cfi_endproc
## -- End function
.comm _TNEWLINE,8,3 ## @TNEWLINE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "newline expected, but got %s"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _expect_newline ; -- Begin function expect_newline
.p2align 2
_expect_newline: ; @expect_newline
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
bl _lex
ldr x8, [x0]
Lloh0:
adrp x9, _TNEWLINE@GOTPAGE
Lloh1:
ldr x9, [x9, _TNEWLINE@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_2
; %bb.1:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_2:
mov x19, x0
bl _tok2s
mov x2, x0
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _errort
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.cfi_endproc
; -- End function
.comm _TNEWLINE,8,3 ; @TNEWLINE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "newline expected, but got %s"
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_expect_newline.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function glue_push
_glue_push: ## @glue_push
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rsi, %r14
movq %rdi, %rbx
callq _vec_pop
movq %rax, %rdi
movq %r14, %rsi
callq _glue_tokens
movq %rbx, %rdi
movl %eax, %esi
popq %rbx
popq %r14
popq %rbp
jmp _vec_push ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _glue_push
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function glue_push
_glue_push: ; @glue_push
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x1
mov x20, x0
bl _vec_pop
mov x1, x19
bl _glue_tokens
mov x1, x0
mov x0, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _vec_push
.cfi_endproc
; -- End function
.no_dead_strip _glue_push
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_glue_push.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function glue_tokens
_glue_tokens: ## @glue_tokens
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %r14
movq %rdi, %r15
xorl %eax, %eax
callq _make_buffer
movq %rax, %rbx
movq %r15, %rdi
callq _tok2s
leaq L_.str(%rip), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl %eax, %edx
callq _buf_printf
movq %r14, %rdi
callq _tok2s
movq %rbx, %rdi
movq %r15, %rsi
movl %eax, %edx
callq _buf_printf
movq %rbx, %rdi
callq _buf_body
movl %eax, %edi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _lex_string ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s"
.no_dead_strip _glue_tokens
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function glue_tokens
_glue_tokens: ; @glue_tokens
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x1
mov x20, x0
bl _make_buffer
mov x21, x0
mov x0, x20
bl _tok2s
mov x2, x0
Lloh0:
adrp x20, l_.str@PAGE
Lloh1:
add x20, x20, l_.str@PAGEOFF
mov x0, x21
mov x1, x20
bl _buf_printf
mov x0, x19
bl _tok2s
mov x2, x0
mov x0, x21
mov x1, x20
bl _buf_printf
mov x0, x21
bl _buf_body
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _lex_string
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s"
.no_dead_strip _glue_tokens
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_glue_tokens.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function guarded
_guarded: ## @guarded
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movq %rdi, %rsi
movq _include_guard@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _map_get
testq %rax, %rax
je LBB0_1
## %bb.2:
movq _macros@GOTPCREL(%rip), %rcx
movl (%rcx), %edi
movq %rax, %rsi
callq _map_get
xorl %ebx, %ebx
testq %rax, %rax
setne %al
jne LBB0_3
## %bb.4:
movq _cpp_token_zero@GOTPCREL(%rip), %rcx
jmp LBB0_5
LBB0_1:
movq _cpp_token_zero@GOTPCREL(%rip), %rax
movl (%rax), %esi
xorl %ebx, %ebx
jmp LBB0_6
LBB0_3:
movq _cpp_token_one@GOTPCREL(%rip), %rcx
LBB0_5:
movb %al, %bl
movl (%rcx), %esi
LBB0_6:
leaq L_.str(%rip), %rdi
callq _define_obj_macro
movl %ebx, %eax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _include_guard,4,2 ## @include_guard
.comm _macros,4,2 ## @macros
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "__8cc_include_guard"
.comm _cpp_token_one,4,2 ## @cpp_token_one
.comm _cpp_token_zero,4,2 ## @cpp_token_zero
.no_dead_strip _guarded
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function guarded
_guarded: ; @guarded
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x1, x0
Lloh0:
adrp x8, _include_guard@GOTPAGE
Lloh1:
ldr x8, [x8, _include_guard@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
bl _map_get
cbz x0, LBB0_2
; %bb.1:
mov x1, x0
Lloh3:
adrp x8, _macros@GOTPAGE
Lloh4:
ldr x8, [x8, _macros@GOTPAGEOFF]
Lloh5:
ldr w0, [x8]
bl _map_get
Lloh6:
adrp x8, _cpp_token_one@GOTPAGE
Lloh7:
ldr x8, [x8, _cpp_token_one@GOTPAGEOFF]
Lloh8:
adrp x9, _cpp_token_zero@GOTPAGE
Lloh9:
ldr x9, [x9, _cpp_token_zero@GOTPAGEOFF]
cmp x0, #0
csel x8, x9, x8, eq
cset w19, ne
b LBB0_3
LBB0_2:
mov w19, #0
Lloh10:
adrp x8, _cpp_token_zero@GOTPAGE
Lloh11:
ldr x8, [x8, _cpp_token_zero@GOTPAGEOFF]
LBB0_3:
ldr w1, [x8]
Lloh12:
adrp x0, l_.str@PAGE
Lloh13:
add x0, x0, l_.str@PAGEOFF
bl _define_obj_macro
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpAdd Lloh12, Lloh13
.cfi_endproc
; -- End function
.comm _include_guard,4,2 ; @include_guard
.comm _macros,4,2 ; @macros
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "__8cc_include_guard"
.comm _cpp_token_one,4,2 ; @cpp_token_one
.comm _cpp_token_zero,4,2 ; @cpp_token_zero
.no_dead_strip _guarded
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_guarded.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function handle_base_file_macro
_handle_base_file_macro: ## @handle_base_file_macro
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movq _TSTRING@GOTPCREL(%rip), %rax
movl (%rax), %ebx
xorl %eax, %eax
callq _get_base_file
movq %r14, %rdi
movl %ebx, %esi
movl %eax, %edx
popq %rbx
popq %r14
popq %rbp
jmp _make_token_pushback ## TAILCALL
.cfi_endproc
## -- End function
.comm _TSTRING,4,2 ## @TSTRING
.no_dead_strip _handle_base_file_macro
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function handle_base_file_macro
_handle_base_file_macro: ; @handle_base_file_macro
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x8, _TSTRING@GOTPAGE
Lloh1:
ldr x8, [x8, _TSTRING@GOTPAGEOFF]
Lloh2:
ldr w20, [x8]
bl _get_base_file
mov x2, x0
mov x0, x19
mov x1, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _make_token_pushback
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _TSTRING,4,2 ; @TSTRING
.no_dead_strip _handle_base_file_macro
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_handle_base_file_macro.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function handle_counter_macro
_handle_counter_macro: ## @handle_counter_macro
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movq _TNUMBER@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movl _handle_counter_macro.counter(%rip), %esi
leal 1(%rsi), %eax
movl %eax, _handle_counter_macro.counter(%rip)
leaq L_.str(%rip), %rdi
## kill: def $esi killed $esi killed $rsi
callq _format
movq %r14, %rdi
movl %ebx, %esi
movl %eax, %edx
popq %rbx
popq %r14
popq %rbp
jmp _make_token_pushback ## TAILCALL
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_handle_counter_macro.counter,4,2 ## @handle_counter_macro.counter
.comm _TNUMBER,4,2 ## @TNUMBER
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
.no_dead_strip _handle_counter_macro
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function handle_counter_macro
_handle_counter_macro: ; @handle_counter_macro
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x8, _TNUMBER@GOTPAGE
Lloh1:
ldr x8, [x8, _TNUMBER@GOTPAGEOFF]
Lloh2:
ldr w20, [x8]
adrp x8, _handle_counter_macro.counter@PAGE
ldr w1, [x8, _handle_counter_macro.counter@PAGEOFF]
add w9, w1, #1
str w9, [x8, _handle_counter_macro.counter@PAGEOFF]
Lloh3:
adrp x0, l_.str@PAGE
Lloh4:
add x0, x0, l_.str@PAGEOFF
bl _format
mov x2, x0
mov x0, x19
mov x1, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _make_token_pushback
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_handle_counter_macro.counter,4,2 ; @handle_counter_macro.counter
.comm _TNUMBER,4,2 ; @TNUMBER
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
.no_dead_strip _handle_counter_macro
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_handle_counter_macro.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function handle_date_macro
_handle_date_macro: ## @handle_date_macro
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $40, %rsp
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %r15
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
leaq L_.str(%rip), %rdx
movq _now@GOTPCREL(%rip), %rcx
leaq -64(%rbp), %r14
movq %r14, %rdi
movl $20, %esi
callq _strftime
movq _TSTRING@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movq %r14, %rdi
callq _strdup
movq %r15, %rdi
movl %ebx, %esi
movl %eax, %edx
callq _make_token_pushback
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -32(%rbp), %rax
jne LBB0_2
## %bb.1:
addq $40, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%b %e %Y"
.comm _now,4,2 ## @now
.comm _TSTRING,4,2 ## @TSTRING
.no_dead_strip _handle_date_macro
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function handle_date_macro
_handle_date_macro: ; @handle_date_macro
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
str x8, [sp, #24]
Lloh3:
adrp x2, l_.str@PAGE
Lloh4:
add x2, x2, l_.str@PAGEOFF
Lloh5:
adrp x3, _now@GOTPAGE
Lloh6:
ldr x3, [x3, _now@GOTPAGEOFF]
add x0, sp, #4
mov w1, #20
bl _strftime
Lloh7:
adrp x8, _TSTRING@GOTPAGE
Lloh8:
ldr x8, [x8, _TSTRING@GOTPAGEOFF]
Lloh9:
ldr w20, [x8]
add x0, sp, #4
bl _strdup
mov x2, x0
mov x0, x19
mov x1, x20
bl _make_token_pushback
ldr x8, [sp, #24]
Lloh10:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh11:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_2
; %bb.1:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #64
ret
LBB0_2:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%b %e %Y"
.comm _now,4,2 ; @now
.comm _TSTRING,4,2 ; @TSTRING
.no_dead_strip _handle_date_macro
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_handle_date_macro.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function handle_file_macro
_handle_file_macro: ## @handle_file_macro
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _TSTRING@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq (%rdi), %rax
movl (%rax), %edx
popq %rbp
jmp _make_token_pushback ## TAILCALL
.cfi_endproc
## -- End function
.comm _TSTRING,4,2 ## @TSTRING
.no_dead_strip _handle_file_macro
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function handle_file_macro
_handle_file_macro: ; @handle_file_macro
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _TSTRING@GOTPAGE
Lloh1:
ldr x8, [x8, _TSTRING@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
ldr x8, [x0]
ldr w2, [x8]
b _make_token_pushback
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _TSTRING,4,2 ; @TSTRING
.no_dead_strip _handle_file_macro
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_handle_file_macro.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function handle_include_level_macro
_handle_include_level_macro: ## @handle_include_level_macro
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movq _TNUMBER@GOTPCREL(%rip), %rax
movl (%rax), %ebx
xorl %eax, %eax
callq _stream_depth
leaq -1(%rax), %rsi
leaq L_.str(%rip), %rdi
callq _format
movq %r14, %rdi
movl %ebx, %esi
movl %eax, %edx
popq %rbx
popq %r14
popq %rbp
jmp _make_token_pushback ## TAILCALL
.cfi_endproc
## -- End function
.comm _TNUMBER,4,2 ## @TNUMBER
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
.no_dead_strip _handle_include_level_macro
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function handle_include_level_macro
_handle_include_level_macro: ; @handle_include_level_macro
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x8, _TNUMBER@GOTPAGE
Lloh1:
ldr x8, [x8, _TNUMBER@GOTPAGEOFF]
Lloh2:
ldr w20, [x8]
bl _stream_depth
sub x1, x0, #1
Lloh3:
adrp x0, l_.str@PAGE
Lloh4:
add x0, x0, l_.str@PAGEOFF
bl _format
mov x2, x0
mov x0, x19
mov x1, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _make_token_pushback
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _TNUMBER,4,2 ; @TNUMBER
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
.no_dead_strip _handle_include_level_macro
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_handle_include_level_macro.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function handle_line_macro
_handle_line_macro: ## @handle_line_macro
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %rbx
movq _TNUMBER@GOTPCREL(%rip), %rax
movl (%rax), %r14d
movq (%rdi), %rax
movl (%rax), %esi
leaq L_.str(%rip), %rdi
callq _format
movq %rbx, %rdi
movl %r14d, %esi
movl %eax, %edx
popq %rbx
popq %r14
popq %rbp
jmp _make_token_pushback ## TAILCALL
.cfi_endproc
## -- End function
.comm _TNUMBER,4,2 ## @TNUMBER
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
.no_dead_strip _handle_line_macro
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function handle_line_macro
_handle_line_macro: ; @handle_line_macro
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x8, _TNUMBER@GOTPAGE
Lloh1:
ldr x8, [x8, _TNUMBER@GOTPAGEOFF]
Lloh2:
ldr w20, [x8]
ldr x8, [x0]
ldr w1, [x8]
Lloh3:
adrp x0, l_.str@PAGE
Lloh4:
add x0, x0, l_.str@PAGEOFF
bl _format
mov x2, x0
mov x0, x19
mov x1, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _make_token_pushback
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _TNUMBER,4,2 ; @TNUMBER
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
.no_dead_strip _handle_line_macro
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_handle_line_macro.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function handle_pragma_macro
_handle_pragma_macro: ## @handle_pragma_macro
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movl $40, %edi
callq _expect
xorl %eax, %eax
callq _read_token
movq %rax, %rbx
movq (%rax), %rax
movq _TSTRING@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_2
## %bb.1:
movq %rbx, %rdi
callq _tok2s
leaq L_.str(%rip), %rsi
movq %rbx, %rdi
movl %eax, %edx
callq _errort
LBB0_2:
movl $41, %edi
callq _expect
movq %rbx, %rdi
callq _parse_pragma_operand
movq _TNUMBER@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.1(%rip), %rdx
movq %r14, %rdi
popq %rbx
popq %r14
popq %rbp
jmp _make_token_pushback ## TAILCALL
.cfi_endproc
## -- End function
.comm _TSTRING,8,3 ## @TSTRING
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "_Pragma takes a string literal, but got %s"
.comm _TNUMBER,4,2 ## @TNUMBER
L_.str.1: ## @.str.1
.asciz "1"
.no_dead_strip _handle_pragma_macro
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function handle_pragma_macro
_handle_pragma_macro: ; @handle_pragma_macro
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
mov w0, #40
bl _expect
bl _read_token
mov x20, x0
ldr x8, [x0]
Lloh0:
adrp x9, _TSTRING@GOTPAGE
Lloh1:
ldr x9, [x9, _TSTRING@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.eq LBB0_2
; %bb.1:
mov x0, x20
bl _tok2s
mov x2, x0
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
mov x0, x20
bl _errort
LBB0_2:
mov w0, #41
bl _expect
mov x0, x20
bl _parse_pragma_operand
Lloh5:
adrp x8, _TNUMBER@GOTPAGE
Lloh6:
ldr x8, [x8, _TNUMBER@GOTPAGEOFF]
Lloh7:
ldr w1, [x8]
Lloh8:
adrp x2, l_.str.1@PAGE
Lloh9:
add x2, x2, l_.str.1@PAGEOFF
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _make_token_pushback
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _TSTRING,8,3 ; @TSTRING
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "_Pragma takes a string literal, but got %s"
.comm _TNUMBER,4,2 ; @TNUMBER
l_.str.1: ; @.str.1
.asciz "1"
.no_dead_strip _handle_pragma_macro
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_handle_pragma_macro.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function handle_time_macro
_handle_time_macro: ## @handle_time_macro
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $24, %rsp
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %r15
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
leaq L_.str(%rip), %rdx
movq _now@GOTPCREL(%rip), %rcx
leaq -42(%rbp), %r14
movq %r14, %rdi
movl $10, %esi
callq _strftime
movq _TSTRING@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movq %r14, %rdi
callq _strdup
movq %r15, %rdi
movl %ebx, %esi
movl %eax, %edx
callq _make_token_pushback
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -32(%rbp), %rax
jne LBB0_2
## %bb.1:
addq $24, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%T"
.comm _now,4,2 ## @now
.comm _TSTRING,4,2 ## @TSTRING
.no_dead_strip _handle_time_macro
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function handle_time_macro
_handle_time_macro: ; @handle_time_macro
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
str x8, [sp, #24]
Lloh3:
adrp x2, l_.str@PAGE
Lloh4:
add x2, x2, l_.str@PAGEOFF
Lloh5:
adrp x3, _now@GOTPAGE
Lloh6:
ldr x3, [x3, _now@GOTPAGEOFF]
add x0, sp, #14
mov w1, #10
bl _strftime
Lloh7:
adrp x8, _TSTRING@GOTPAGE
Lloh8:
ldr x8, [x8, _TSTRING@GOTPAGEOFF]
Lloh9:
ldr w20, [x8]
add x0, sp, #14
bl _strdup
mov x2, x0
mov x0, x19
mov x1, x20
bl _make_token_pushback
ldr x8, [sp, #24]
Lloh10:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh11:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_2
; %bb.1:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #64
ret
LBB0_2:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%T"
.comm _now,4,2 ; @now
.comm _TSTRING,4,2 ; @TSTRING
.no_dead_strip _handle_time_macro
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_handle_time_macro.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function handle_timestamp_macro
_handle_timestamp_macro: ## @handle_timestamp_macro
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $40, %rsp
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %r15
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
movq (%rdi), %rdi
callq _localtime
leaq L_.str(%rip), %rdx
leaq -64(%rbp), %r14
movq %r14, %rdi
movl $30, %esi
movl %eax, %ecx
callq _strftime
movq _TSTRING@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movq %r14, %rdi
callq _strdup
movq %r15, %rdi
movl %ebx, %esi
movl %eax, %edx
callq _make_token_pushback
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -32(%rbp), %rax
jne LBB0_2
## %bb.1:
addq $40, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%a %b %e %T %Y"
.comm _TSTRING,4,2 ## @TSTRING
.no_dead_strip _handle_timestamp_macro
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function handle_timestamp_macro
_handle_timestamp_macro: ; @handle_timestamp_macro
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-24]
ldr x0, [x0]
bl _localtime
mov x3, x0
Lloh3:
adrp x2, l_.str@PAGE
Lloh4:
add x2, x2, l_.str@PAGEOFF
add x0, sp, #10
mov w1, #30
bl _strftime
Lloh5:
adrp x8, _TSTRING@GOTPAGE
Lloh6:
ldr x8, [x8, _TSTRING@GOTPAGEOFF]
Lloh7:
ldr w20, [x8]
add x0, sp, #10
bl _strdup
mov x2, x0
mov x0, x19
mov x1, x20
bl _make_token_pushback
ldur x8, [x29, #-24]
Lloh8:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh9:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_2
; %bb.1:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #80
ret
LBB0_2:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%a %b %e %T %Y"
.comm _TSTRING,4,2 ; @TSTRING
.no_dead_strip _handle_timestamp_macro
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_handle_timestamp_macro.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function hashhash_check
_hashhash_check: ## @hashhash_check
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %rbx
callq _vec_len
testq %rax, %rax
je LBB0_4
## %bb.1:
movq %rbx, %rdi
callq _vec_head
movq _KHASHHASH@GOTPCREL(%rip), %r14
movl (%r14), %esi
movl %eax, %edi
callq _is_keyword
testq %rax, %rax
je LBB0_3
## %bb.2:
movq %rbx, %rdi
callq _vec_head
leaq L_.str(%rip), %rsi
movl %eax, %edi
callq _errort
LBB0_3:
movq %rbx, %rdi
callq _vec_tail
movl (%r14), %esi
movl %eax, %edi
callq _is_keyword
testq %rax, %rax
je LBB0_4
## %bb.5:
movq %rbx, %rdi
callq _vec_tail
leaq L_.str.1(%rip), %rsi
movl %eax, %edi
popq %rbx
popq %r14
popq %rbp
jmp _errort ## TAILCALL
LBB0_4:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _KHASHHASH,4,2 ## @KHASHHASH
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "'##' cannot appear at start of macro expansion"
L_.str.1: ## @.str.1
.asciz "'##' cannot appear at end of macro expansion"
.no_dead_strip _hashhash_check
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function hashhash_check
_hashhash_check: ; @hashhash_check
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
bl _vec_len
cbz x0, LBB0_5
; %bb.1:
mov x0, x19
bl _vec_head
Lloh0:
adrp x20, _KHASHHASH@GOTPAGE
Lloh1:
ldr x20, [x20, _KHASHHASH@GOTPAGEOFF]
ldr w1, [x20]
bl _is_keyword
cbz x0, LBB0_3
; %bb.2:
mov x0, x19
bl _vec_head
Lloh2:
adrp x1, l_.str@PAGE
Lloh3:
add x1, x1, l_.str@PAGEOFF
bl _errort
LBB0_3:
mov x0, x19
bl _vec_tail
ldr w1, [x20]
bl _is_keyword
cbz x0, LBB0_5
; %bb.4:
mov x0, x19
bl _vec_tail
Lloh4:
adrp x1, l_.str.1@PAGE
Lloh5:
add x1, x1, l_.str.1@PAGEOFF
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _errort
LBB0_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh4, Lloh5
.cfi_endproc
; -- End function
.comm _KHASHHASH,4,2 ; @KHASHHASH
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "'##' cannot appear at start of macro expansion"
l_.str.1: ; @.str.1
.asciz "'##' cannot appear at end of macro expansion"
.no_dead_strip _hashhash_check
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_hashhash_check.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _init_now ## -- Begin function init_now
.p2align 4, 0x90
_init_now: ## @init_now
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
xorl %edi, %edi
callq _time
movl %eax, -4(%rbp)
movq _now@GOTPCREL(%rip), %rsi
leaq -4(%rbp), %rdi
callq _localtime_r
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _now,4,2 ## @now
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _init_now ; -- Begin function init_now
.p2align 2
_init_now: ; @init_now
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x0, #0
bl _time
stur w0, [x29, #-4]
Lloh0:
adrp x1, _now@GOTPAGE
Lloh1:
ldr x1, [x1, _now@GOTPAGEOFF]
sub x0, x29, #4
bl _localtime_r
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _now,4,2 ; @now
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_init_now.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function is_digit_sequence
_is_digit_sequence: ## @is_digit_sequence
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movb (%rdi), %al
movl $1, %r14d
testb %al, %al
je LBB0_5
## %bb.1:
movq %rdi, %rbx
incq %rbx
.p2align 4, 0x90
LBB0_3: ## =>This Inner Loop Header: Depth=1
movsbl %al, %edi
callq _isdigit
testl %eax, %eax
je LBB0_4
## %bb.2: ## in Loop: Header=BB0_3 Depth=1
movzbl (%rbx), %eax
incq %rbx
testb %al, %al
jne LBB0_3
jmp LBB0_5
LBB0_4:
xorl %r14d, %r14d
LBB0_5:
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _is_digit_sequence
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function is_digit_sequence
_is_digit_sequence: ; @is_digit_sequence
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
ldrb w8, [x0]
cbz w8, LBB0_4
; %bb.1:
add x19, x0, #1
LBB0_2: ; =>This Inner Loop Header: Depth=1
sxtb w0, w8
bl _isdigit
cbz w0, LBB0_5
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
ldrb w8, [x19], #1
cbnz w8, LBB0_2
LBB0_4:
mov w0, #1
LBB0_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _is_digit_sequence
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_is_digit_sequence.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function join_paths
_join_paths: ## @join_paths
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %r14
xorl %ebx, %ebx
xorl %eax, %eax
callq _make_buffer
movq %rax, %r15
movq %r14, %rdi
callq _vec_len
testl %eax, %eax
jle LBB0_3
## %bb.1:
leaq L_.str(%rip), %r12
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movl %ebx, %esi
callq _vec_get
movl %eax, %edi
callq _tok2s
movq %r15, %rdi
movq %r12, %rsi
movl %eax, %edx
callq _buf_printf
incl %ebx
movq %r14, %rdi
callq _vec_len
cmpl %eax, %ebx
jl LBB0_2
LBB0_3:
movq %r15, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp _buf_body ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s"
.no_dead_strip _join_paths
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function join_paths
_join_paths: ; @join_paths
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x0
bl _make_buffer
mov x20, x0
mov x0, x19
bl _vec_len
cmp w0, #1
b.lt LBB0_3
; %bb.1:
mov w21, #0
Lloh0:
adrp x22, l_.str@PAGE
Lloh1:
add x22, x22, l_.str@PAGEOFF
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x19
mov x1, x21
bl _vec_get
bl _tok2s
mov x2, x0
mov x0, x20
mov x1, x22
bl _buf_printf
add w21, w21, #1
mov x0, x19
bl _vec_len
cmp w21, w0
b.lt LBB0_2
LBB0_3:
mov x0, x20
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _buf_body
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s"
.no_dead_strip _join_paths
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_join_paths.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function make_cond_incl
_make_cond_incl: ## @make_cond_incl
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movl %edi, %ebx
movl $1, %edi
movl $8, %esi
callq _calloc
movq _IN_THEN@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %ecx, 4(%rax)
movl %ebx, (%rax)
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _IN_THEN,4,2 ## @IN_THEN
.no_dead_strip _make_cond_incl
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function make_cond_incl
_make_cond_incl: ; @make_cond_incl
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
mov w0, #1
mov w1, #8
bl _calloc
Lloh0:
adrp x8, _IN_THEN@GOTPAGE
Lloh1:
ldr x8, [x8, _IN_THEN@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
stp w19, w8, [x0]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _IN_THEN,4,2 ; @IN_THEN
.no_dead_strip _make_cond_incl
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_make_cond_incl.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function make_macro
_make_macro: ## @make_macro
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movq %rdi, %rbx
movl $4, %edi
callq _malloc
movl (%rbx), %ecx
movl %ecx, (%rax)
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _make_macro
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function make_macro
_make_macro: ; @make_macro
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
mov w0, #4
bl _malloc
ldr w8, [x19]
str w8, [x0]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _make_macro
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_make_macro.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function make_macro_token
_make_macro_token: ## @make_macro_token
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movl %esi, %ebx
movl %edi, %r14d
movl $32, %edi
callq _malloc
movq _TMACRO_PARAM@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %ecx, 24(%rax)
movl %ebx, (%rax)
movl %r14d, 4(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 8(%rax)
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TMACRO_PARAM,4,2 ## @TMACRO_PARAM
.no_dead_strip _make_macro_token
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function make_macro_token
_make_macro_token: ; @make_macro_token
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x1
mov x20, x0
mov w0, #32
bl _malloc
Lloh0:
adrp x8, _TMACRO_PARAM@GOTPAGE
Lloh1:
ldr x8, [x8, _TMACRO_PARAM@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
str w8, [x0, #24]
stp xzr, xzr, [x0, #8]
stp w19, w20, [x0]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _TMACRO_PARAM,4,2 ; @TMACRO_PARAM
.no_dead_strip _make_macro_token
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_make_macro_token.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function make_token_pushback
_make_token_pushback: ## @make_token_pushback
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %r15
movl %esi, %r14d
callq _copy_token
movq %rax, %rbx
movl %r14d, (%rax)
movq %r15, 8(%rax)
movq %r15, %rdi
callq _strlen
incq %rax
movq %rax, 24(%rbx)
movq _ENC_NONE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, 16(%rbx)
movq %rbx, %rdi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _unget_token ## TAILCALL
.cfi_endproc
## -- End function
.comm _ENC_NONE,4,2 ## @ENC_NONE
.no_dead_strip _make_token_pushback
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function make_token_pushback
_make_token_pushback: ; @make_token_pushback
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x2
mov x20, x1
bl _copy_token
mov x21, x0
str w20, [x0]
str x19, [x0, #8]
mov x0, x19
bl _strlen
add x8, x0, #1
str x8, [x21, #24]
Lloh0:
adrp x8, _ENC_NONE@GOTPAGE
Lloh1:
ldr x8, [x8, _ENC_NONE@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
str w8, [x21, #16]
mov x0, x21
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _unget_token
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _ENC_NONE,4,2 ; @ENC_NONE
.no_dead_strip _make_token_pushback
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_make_token_pushback.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function maybe_convert_keyword
_maybe_convert_keyword: ## @maybe_convert_keyword
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %rbx
movq (%rdi), %rax
movq _TIDENT@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_3
## %bb.1:
movq _keywords@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl 12(%rbx), %esi
callq _map_get
testl %eax, %eax
je LBB0_3
## %bb.2:
movl %eax, %r14d
movq %rbx, %rdi
callq _copy_token
movq %rax, %rbx
movq _TKEYWORD@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, (%rbx)
movl %r14d, 8(%rbx)
LBB0_3:
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TIDENT,8,3 ## @TIDENT
.comm _keywords,4,2 ## @keywords
.comm _TKEYWORD,8,3 ## @TKEYWORD
.no_dead_strip _maybe_convert_keyword
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function maybe_convert_keyword
_maybe_convert_keyword: ; @maybe_convert_keyword
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
ldr x8, [x0]
Lloh0:
adrp x9, _TIDENT@GOTPAGE
Lloh1:
ldr x9, [x9, _TIDENT@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_3
; %bb.1:
Lloh3:
adrp x8, _keywords@GOTPAGE
Lloh4:
ldr x8, [x8, _keywords@GOTPAGEOFF]
Lloh5:
ldr w0, [x8]
ldr w1, [x19, #12]
bl _map_get
cbz w0, LBB0_3
; %bb.2:
mov x20, x0
mov x0, x19
bl _copy_token
mov x19, x0
Lloh6:
adrp x8, _TKEYWORD@GOTPAGE
Lloh7:
ldr x8, [x8, _TKEYWORD@GOTPAGEOFF]
Lloh8:
ldr x8, [x8]
str x8, [x0]
str w20, [x0, #8]
LBB0_3:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.cfi_endproc
; -- End function
.comm _TIDENT,8,3 ; @TIDENT
.comm _keywords,4,2 ; @keywords
.comm _TKEYWORD,8,3 ; @TKEYWORD
.no_dead_strip _maybe_convert_keyword
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_maybe_convert_keyword.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function next
_next: ## @next
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movl %edi, %r14d
xorl %eax, %eax
callq _lex
movq %rax, %rbx
movq %rax, %rdi
movl %r14d, %esi
callq _is_keyword
movq %rax, %rcx
movl $1, %eax
testq %rcx, %rcx
jne LBB0_2
## %bb.1:
movq %rbx, %rdi
callq _unget_token
xorl %eax, %eax
LBB0_2:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _next
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function next
_next: ; @next
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x20, x0
bl _lex
mov x19, x0
mov x1, x20
bl _is_keyword
cbz x0, LBB0_2
; %bb.1:
mov w0, #1
b LBB0_3
LBB0_2:
mov x0, x19
bl _unget_token
mov w0, #0
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _next
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_next.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function parse_pragma_operand
_parse_pragma_operand: ## @parse_pragma_operand
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movq (%rdi), %rbx
leaq L_.str(%rip), %rsi
movq %rbx, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_6
## %bb.1:
leaq L_.str.1(%rip), %rsi
movq %rbx, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_2
## %bb.3:
leaq L_.str.2(%rip), %rsi
movq %rbx, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_4
## %bb.7:
leaq L_.str.3(%rip), %rsi
movq %r14, %rdi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %rbp
jmp _errort ## TAILCALL
LBB0_6:
movq 8(%r14), %rax
movl (%rax), %edi
callq _fullpath
movq _once@GOTPCREL(%rip), %rcx
movl (%rcx), %edi
movl $1, %edx
movq %rax, %rsi
popq %rbx
popq %r14
popq %rbp
jmp _map_put ## TAILCALL
LBB0_2:
movq _enable_warning@GOTPCREL(%rip), %rax
movl $1, (%rax)
jmp LBB0_5
LBB0_4:
movq _enable_warning@GOTPCREL(%rip), %rax
movl $0, (%rax)
LBB0_5:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "once"
.comm _once,4,2 ## @once
L_.str.1: ## @.str.1
.asciz "enable_warning"
.comm _enable_warning,4,2 ## @enable_warning
L_.str.2: ## @.str.2
.asciz "disable_warning"
L_.str.3: ## @.str.3
.asciz "unknown #pragma: %s"
.no_dead_strip _parse_pragma_operand
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function parse_pragma_operand
_parse_pragma_operand: ; @parse_pragma_operand
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
ldr x20, [x0]
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
mov x0, x20
bl _strcmp
cbz w0, LBB0_4
; %bb.1:
Lloh2:
adrp x1, l_.str.1@PAGE
Lloh3:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x20
bl _strcmp
cbz w0, LBB0_5
; %bb.2:
Lloh4:
adrp x1, l_.str.2@PAGE
Lloh5:
add x1, x1, l_.str.2@PAGEOFF
mov x0, x20
bl _strcmp
cbz w0, LBB0_6
; %bb.3:
Lloh6:
adrp x1, l_.str.3@PAGE
Lloh7:
add x1, x1, l_.str.3@PAGEOFF
mov x0, x19
mov x2, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _errort
LBB0_4:
ldr x8, [x19, #8]
ldr w0, [x8]
bl _fullpath
mov x1, x0
Lloh8:
adrp x8, _once@GOTPAGE
Lloh9:
ldr x8, [x8, _once@GOTPAGEOFF]
Lloh10:
ldr w0, [x8]
mov w2, #1
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _map_put
LBB0_5:
Lloh11:
adrp x8, _enable_warning@GOTPAGE
Lloh12:
ldr x8, [x8, _enable_warning@GOTPAGEOFF]
mov w9, #1
Lloh13:
str w9, [x8]
b LBB0_7
LBB0_6:
Lloh14:
adrp x8, _enable_warning@GOTPAGE
Lloh15:
ldr x8, [x8, _enable_warning@GOTPAGEOFF]
Lloh16:
str wzr, [x8]
LBB0_7:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGotStr Lloh11, Lloh12, Lloh13
.loh AdrpLdrGotStr Lloh14, Lloh15, Lloh16
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "once"
.comm _once,4,2 ; @once
l_.str.1: ; @.str.1
.asciz "enable_warning"
.comm _enable_warning,4,2 ; @enable_warning
l_.str.2: ; @.str.2
.asciz "disable_warning"
l_.str.3: ; @.str.3
.asciz "unknown #pragma: %s"
.no_dead_strip _parse_pragma_operand
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_parse_pragma_operand.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _peek_token ## -- Begin function peek_token
.p2align 4, 0x90
_peek_token: ## @peek_token
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
xorl %eax, %eax
callq _read_token
movq %rax, %rbx
movq %rax, %rdi
callq _unget_token
movq %rbx, %rax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _peek_token ; -- Begin function peek_token
.p2align 2
_peek_token: ; @peek_token
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
bl _read_token
mov x19, x0
bl _unget_token
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_peek_token.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function propagate_space
_propagate_space: ## @propagate_space
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rsi, %r14
movq %rdi, %rbx
callq _vec_len
testq %rax, %rax
je LBB0_1
## %bb.2:
movq %rbx, %rdi
callq _vec_head
movl %eax, %edi
callq _copy_token
movl (%r14), %ecx
movl %ecx, (%rax)
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rdx
popq %rbx
popq %r14
popq %rbp
jmp _vec_set ## TAILCALL
LBB0_1:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _propagate_space
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function propagate_space
_propagate_space: ; @propagate_space
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x20, x1
mov x19, x0
bl _vec_len
cbz x0, LBB0_2
; %bb.1:
mov x0, x19
bl _vec_head
bl _copy_token
mov x2, x0
ldr w8, [x20]
str w8, [x0]
mov x0, x19
mov w1, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _vec_set
LBB0_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _propagate_space
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_propagate_space.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_args
_read_args: ## @read_args
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0, (%rsi)
je LBB0_1
LBB0_2:
movq %r14, %rdi
movq %rbx, %rsi
callq _do_read_args
movq %rax, %r15
movq %rax, %rdi
callq _vec_len
cmpq (%rbx), %rax
je LBB0_4
## %bb.3:
leaq L_.str(%rip), %rsi
movq %r14, %rdi
callq _errort
LBB0_4:
movq %r15, %rax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_1:
xorl %eax, %eax
callq _peek_token
movl %eax, %edi
movl $41, %esi
callq _is_keyword
testq %rax, %rax
je LBB0_2
## %bb.5:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _make_vector ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "macro argument number does not match"
.no_dead_strip _read_args
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_args
_read_args: ; @read_args
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x20, x1
mov x19, x0
ldr x8, [x1]
cbz x8, LBB0_4
LBB0_1:
mov x0, x19
mov x1, x20
bl _do_read_args
mov x21, x0
bl _vec_len
ldr x8, [x20]
cmp x0, x8
b.eq LBB0_3
; %bb.2:
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
mov x0, x19
bl _errort
LBB0_3:
mov x0, x21
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
LBB0_4:
bl _peek_token
mov w1, #41
bl _is_keyword
cbz x0, LBB0_1
; %bb.5:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _make_vector
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "macro argument number does not match"
.no_dead_strip _read_args
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_args.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_constexpr
_read_constexpr: ## @read_constexpr
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
xorl %eax, %eax
callq _read_intexpr_line
movl %eax, %edi
callq _vec_reverse
movl %eax, %edi
callq _token_buffer_stash
xorl %eax, %eax
callq _read_expr
movq %rax, %r14
xorl %eax, %eax
callq _lex
movq %rax, %rbx
movq (%rax), %rax
movq _TEOF@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_2
## %bb.1:
movq %rbx, %rdi
callq _tok2s
leaq L_.str(%rip), %rsi
movq %rbx, %rdi
movl %eax, %edx
callq _errort
LBB0_2:
xorl %eax, %eax
callq _token_buffer_unstash
movq %r14, %rdi
xorl %esi, %esi
popq %rbx
popq %r14
popq %rbp
jmp _eval_intexpr ## TAILCALL
.cfi_endproc
## -- End function
.comm _TEOF,8,3 ## @TEOF
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "stray token: %s"
.no_dead_strip _read_constexpr
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_constexpr
_read_constexpr: ; @read_constexpr
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
bl _read_intexpr_line
bl _vec_reverse
bl _token_buffer_stash
bl _read_expr
mov x19, x0
bl _lex
ldr x8, [x0]
Lloh0:
adrp x9, _TEOF@GOTPAGE
Lloh1:
ldr x9, [x9, _TEOF@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.eq LBB0_2
; %bb.1:
mov x20, x0
bl _tok2s
mov x2, x0
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
mov x0, x20
bl _errort
LBB0_2:
bl _token_buffer_unstash
mov x0, x19
mov x1, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _eval_intexpr
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.cfi_endproc
; -- End function
.comm _TEOF,8,3 ; @TEOF
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "stray token: %s"
.no_dead_strip _read_constexpr
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_constexpr.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_cpp_header_name
_read_cpp_header_name: ## @read_cpp_header_name
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rsi, %rbx
movq %rdi, %r12
movq %rsi, %rdi
callq _read_header_file_name
testq %rax, %rax
jne LBB0_5
## %bb.1:
xorl %eax, %eax
callq _read_expand_newline
movq %rax, %r15
movq (%rax), %rax
movq _TNEWLINE@GOTPCREL(%rip), %r14
cmpq (%r14), %rax
jne LBB0_3
## %bb.2:
leaq L_.str(%rip), %rsi
movq %r12, %rdi
xorl %eax, %eax
callq _errort
movq (%r15), %rax
LBB0_3:
movq _TSTRING@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_6
## %bb.4:
movl $0, (%rbx)
movq 8(%r15), %rax
LBB0_5:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_6:
movq %rbx, -48(%rbp) ## 8-byte Spill
movq %r15, %rdi
movl $60, %esi
callq _is_keyword
testq %rax, %rax
jne LBB0_8
## %bb.7:
movq %r15, %rdi
callq _tok2s
leaq L_.str.1(%rip), %rsi
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq _errort
LBB0_8:
xorl %eax, %eax
callq _make_vector
movq %rax, %r13
leaq L_.str.2(%rip), %r15
.p2align 4, 0x90
LBB0_9: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
callq _read_expand_newline
movq %rax, %rbx
movq (%rax), %rax
cmpq (%r14), %rax
jne LBB0_11
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movq %r12, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq _errort
LBB0_11: ## in Loop: Header=BB0_9 Depth=1
movq %rbx, %rdi
movl $62, %esi
callq _is_keyword
testq %rax, %rax
jne LBB0_13
## %bb.12: ## in Loop: Header=BB0_9 Depth=1
movq %r13, %rdi
movq %rbx, %rsi
callq _vec_push
jmp LBB0_9
LBB0_13:
movq -48(%rbp), %rax ## 8-byte Reload
movl $1, (%rax)
movq %r13, %rdi
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _join_paths ## TAILCALL
.cfi_endproc
## -- End function
.comm _TNEWLINE,8,3 ## @TNEWLINE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "expected filename, but got newline"
.comm _TSTRING,8,3 ## @TSTRING
L_.str.1: ## @.str.1
.asciz "< expected, but got %s"
L_.str.2: ## @.str.2
.asciz "premature end of header name"
.no_dead_strip _read_cpp_header_name
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_cpp_header_name
_read_cpp_header_name: ; @read_cpp_header_name
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x24, x23, [sp, #16] ; 16-byte Folded Spill
stp x22, x21, [sp, #32] ; 16-byte Folded Spill
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
mov x19, x1
mov x20, x0
mov x0, x1
bl _read_header_file_name
cbnz x0, LBB0_5
; %bb.1:
bl _read_expand_newline
mov x21, x0
ldr x8, [x0]
Lloh0:
adrp x24, _TNEWLINE@GOTPAGE
Lloh1:
ldr x24, [x24, _TNEWLINE@GOTPAGEOFF]
ldr x9, [x24]
cmp x8, x9
b.ne LBB0_3
; %bb.2:
Lloh2:
adrp x1, l_.str@PAGE
Lloh3:
add x1, x1, l_.str@PAGEOFF
mov x0, x20
bl _errort
ldr x8, [x21]
LBB0_3:
Lloh4:
adrp x9, _TSTRING@GOTPAGE
Lloh5:
ldr x9, [x9, _TSTRING@GOTPAGEOFF]
Lloh6:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_6
; %bb.4:
str wzr, [x19]
ldr x0, [x21, #8]
LBB0_5:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
ldp x24, x23, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #80
ret
LBB0_6:
mov x0, x21
mov w1, #60
bl _is_keyword
cbnz x0, LBB0_8
; %bb.7:
mov x0, x21
bl _tok2s
; kill: def $w0 killed $w0 def $x0
str x0, [sp]
Lloh7:
adrp x1, l_.str.1@PAGE
Lloh8:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x21
bl _errort
LBB0_8:
bl _make_vector
mov x21, x0
Lloh9:
adrp x22, l_.str.2@PAGE
Lloh10:
add x22, x22, l_.str.2@PAGEOFF
LBB0_9: ; =>This Inner Loop Header: Depth=1
bl _read_expand_newline
mov x23, x0
ldr x8, [x0]
ldr x9, [x24]
cmp x8, x9
b.ne LBB0_11
; %bb.10: ; in Loop: Header=BB0_9 Depth=1
mov x0, x20
mov x1, x22
bl _errort
LBB0_11: ; in Loop: Header=BB0_9 Depth=1
mov x0, x23
mov w1, #62
bl _is_keyword
cbnz x0, LBB0_13
; %bb.12: ; in Loop: Header=BB0_9 Depth=1
mov x0, x21
mov x1, x23
bl _vec_push
b LBB0_9
LBB0_13:
mov w8, #1
str w8, [x19]
mov x0, x21
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
ldp x24, x23, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #80
b _join_paths
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpAdd Lloh7, Lloh8
.loh AdrpAdd Lloh9, Lloh10
.cfi_endproc
; -- End function
.comm _TNEWLINE,8,3 ; @TNEWLINE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "expected filename, but got newline"
.comm _TSTRING,8,3 ; @TSTRING
l_.str.1: ; @.str.1
.asciz "< expected, but got %s"
l_.str.2: ; @.str.2
.asciz "premature end of header name"
.no_dead_strip _read_cpp_header_name
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_cpp_header_name.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_define
_read_define: ## @read_define
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
xorl %eax, %eax
callq _read_ident
movq %rax, %r14
xorl %eax, %eax
callq _lex
movq %rax, %rbx
movq %rax, %rdi
movl $40, %esi
callq _is_keyword
testq %rax, %rax
je LBB0_3
## %bb.1:
cmpl $0, 4(%rbx)
je LBB0_2
LBB0_3:
movq %rbx, %rdi
callq _unget_token
movl (%r14), %edi
popq %rbx
popq %r14
popq %rbp
jmp _read_obj_macro ## TAILCALL
LBB0_2:
movq %r14, %rdi
popq %rbx
popq %r14
popq %rbp
jmp _read_funclike_macro ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _read_define
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_define
_read_define: ; @read_define
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
bl _read_ident
mov x19, x0
bl _lex
mov x20, x0
mov w1, #40
bl _is_keyword
cbz x0, LBB0_2
; %bb.1:
ldr w8, [x20, #4]
cbz w8, LBB0_3
LBB0_2:
mov x0, x20
bl _unget_token
ldr w0, [x19]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _read_obj_macro
LBB0_3:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _read_funclike_macro
.cfi_endproc
; -- End function
.no_dead_strip _read_define
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_define.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_defined_op
_read_defined_op: ## @read_defined_op
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
xorl %eax, %eax
callq _lex
movq %rax, %rbx
movq %rax, %rdi
movl $40, %esi
callq _is_keyword
testq %rax, %rax
je LBB0_2
## %bb.1:
xorl %eax, %eax
callq _lex
movq %rax, %rbx
movl $41, %edi
callq _expect
LBB0_2:
movq (%rbx), %rax
movq _TIDENT@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_4
## %bb.3:
movq %rbx, %rdi
callq _tok2s
leaq L_.str(%rip), %rsi
movq %rbx, %rdi
movl %eax, %edx
callq _errort
LBB0_4:
movq _macros@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl 8(%rbx), %esi
callq _map_get
testq %rax, %rax
jne LBB0_5
## %bb.6:
movq _cpp_token_zero@GOTPCREL(%rip), %rax
jmp LBB0_7
LBB0_5:
movq _cpp_token_one@GOTPCREL(%rip), %rax
LBB0_7:
movq (%rax), %rax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TIDENT,8,3 ## @TIDENT
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "identifier expected, but got %s"
.comm _macros,4,2 ## @macros
.comm _cpp_token_one,8,3 ## @cpp_token_one
.comm _cpp_token_zero,8,3 ## @cpp_token_zero
.no_dead_strip _read_defined_op
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_defined_op
_read_defined_op: ; @read_defined_op
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
bl _lex
mov x19, x0
mov w1, #40
bl _is_keyword
cbz x0, LBB0_2
; %bb.1:
bl _lex
mov x19, x0
mov w0, #41
bl _expect
LBB0_2:
ldr x8, [x19]
Lloh0:
adrp x9, _TIDENT@GOTPAGE
Lloh1:
ldr x9, [x9, _TIDENT@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.eq LBB0_4
; %bb.3:
mov x0, x19
bl _tok2s
mov x2, x0
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
mov x0, x19
bl _errort
LBB0_4:
Lloh5:
adrp x8, _macros@GOTPAGE
Lloh6:
ldr x8, [x8, _macros@GOTPAGEOFF]
Lloh7:
ldr w0, [x8]
ldr w1, [x19, #8]
bl _map_get
Lloh8:
adrp x8, _cpp_token_one@GOTPAGE
Lloh9:
ldr x8, [x8, _cpp_token_one@GOTPAGEOFF]
Lloh10:
adrp x9, _cpp_token_zero@GOTPAGE
Lloh11:
ldr x9, [x9, _cpp_token_zero@GOTPAGEOFF]
cmp x0, #0
csel x8, x9, x8, eq
ldr x0, [x8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _TIDENT,8,3 ; @TIDENT
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "identifier expected, but got %s"
.comm _macros,4,2 ; @macros
.comm _cpp_token_one,8,3 ; @cpp_token_one
.comm _cpp_token_zero,8,3 ; @cpp_token_zero
.no_dead_strip _read_defined_op
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_defined_op.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_directive
_read_directive: ## @read_directive
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %r14
xorl %eax, %eax
callq _lex
movq %rax, %rbx
movq (%rax), %rax
movq _TNEWLINE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_1
## %bb.22:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_1:
movq _TNUMBER@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_2
## %bb.23:
movq %rbx, %rdi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_linemarker ## TAILCALL
LBB0_2:
movq _TIDENT@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_21
## %bb.3:
movq 8(%rbx), %r15
leaq L_.str(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_24
## %bb.4:
leaq L_.str.1(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_25
## %bb.5:
leaq L_.str.2(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_26
## %bb.6:
leaq L_.str.3(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_27
## %bb.7:
leaq L_.str.4(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_28
## %bb.8:
leaq L_.str.5(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_29
## %bb.9:
leaq L_.str.6(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_30
## %bb.10:
leaq L_.str.7(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_31
## %bb.11:
leaq L_.str.8(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_12
## %bb.14:
leaq L_.str.9(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_15
## %bb.16:
leaq L_.str.10(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_32
## %bb.17:
leaq L_.str.11(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_33
## %bb.18:
leaq L_.str.12(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_34
## %bb.19:
leaq L_.str.13(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_35
## %bb.20:
leaq L_.str.14(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_36
LBB0_21:
movq %rbx, %rdi
callq _tok2s
leaq L_.str.15(%rip), %rsi
movq %r14, %rdi
movl %eax, %edx
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _errort ## TAILCALL
LBB0_24:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_define ## TAILCALL
LBB0_25:
movq %r14, %rdi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_elif ## TAILCALL
LBB0_26:
movq %r14, %rdi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_else ## TAILCALL
LBB0_27:
movq %r14, %rdi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_endif ## TAILCALL
LBB0_28:
movq %r14, %rdi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_error ## TAILCALL
LBB0_29:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_if ## TAILCALL
LBB0_30:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_ifdef ## TAILCALL
LBB0_31:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_ifndef ## TAILCALL
LBB0_12:
movl 16(%rbx), %esi
movq %r14, %rdi
movl $1, %edx
jmp LBB0_13
LBB0_15:
movl 16(%rbx), %esi
movq %r14, %rdi
xorl %edx, %edx
LBB0_13:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_include ## TAILCALL
LBB0_32:
movl 16(%rbx), %esi
movq %r14, %rdi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_include_next ## TAILCALL
LBB0_33:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_line ## TAILCALL
LBB0_34:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_pragma ## TAILCALL
LBB0_35:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_undef ## TAILCALL
LBB0_36:
movq %r14, %rdi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _read_warning ## TAILCALL
.cfi_endproc
## -- End function
.comm _TNEWLINE,8,3 ## @TNEWLINE
.comm _TNUMBER,8,3 ## @TNUMBER
.comm _TIDENT,8,3 ## @TIDENT
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "define"
L_.str.1: ## @.str.1
.asciz "elif"
L_.str.2: ## @.str.2
.asciz "else"
L_.str.3: ## @.str.3
.asciz "endif"
L_.str.4: ## @.str.4
.asciz "error"
L_.str.5: ## @.str.5
.asciz "if"
L_.str.6: ## @.str.6
.asciz "ifdef"
L_.str.7: ## @.str.7
.asciz "ifndef"
L_.str.8: ## @.str.8
.asciz "import"
L_.str.9: ## @.str.9
.asciz "include"
L_.str.10: ## @.str.10
.asciz "include_next"
L_.str.11: ## @.str.11
.asciz "line"
L_.str.12: ## @.str.12
.asciz "pragma"
L_.str.13: ## @.str.13
.asciz "undef"
L_.str.14: ## @.str.14
.asciz "warning"
L_.str.15: ## @.str.15
.asciz "unsupported preprocessor directive: %s"
.no_dead_strip _read_directive
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_directive
_read_directive: ; @read_directive
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x0
bl _lex
ldr x8, [x0]
Lloh0:
adrp x9, _TNEWLINE@GOTPAGE
Lloh1:
ldr x9, [x9, _TNEWLINE@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_2
; %bb.1:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
LBB0_2:
mov x20, x0
Lloh3:
adrp x9, _TNUMBER@GOTPAGE
Lloh4:
ldr x9, [x9, _TNUMBER@GOTPAGEOFF]
Lloh5:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_4
; %bb.3:
mov x0, x20
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_linemarker
LBB0_4:
Lloh6:
adrp x9, _TIDENT@GOTPAGE
Lloh7:
ldr x9, [x9, _TIDENT@GOTPAGEOFF]
Lloh8:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_20
; %bb.5:
ldr x21, [x20, #8]
Lloh9:
adrp x1, l_.str@PAGE
Lloh10:
add x1, x1, l_.str@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_21
; %bb.6:
Lloh11:
adrp x1, l_.str.1@PAGE
Lloh12:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_22
; %bb.7:
Lloh13:
adrp x1, l_.str.2@PAGE
Lloh14:
add x1, x1, l_.str.2@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_23
; %bb.8:
Lloh15:
adrp x1, l_.str.3@PAGE
Lloh16:
add x1, x1, l_.str.3@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_24
; %bb.9:
Lloh17:
adrp x1, l_.str.4@PAGE
Lloh18:
add x1, x1, l_.str.4@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_25
; %bb.10:
Lloh19:
adrp x1, l_.str.5@PAGE
Lloh20:
add x1, x1, l_.str.5@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_26
; %bb.11:
Lloh21:
adrp x1, l_.str.6@PAGE
Lloh22:
add x1, x1, l_.str.6@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_27
; %bb.12:
Lloh23:
adrp x1, l_.str.7@PAGE
Lloh24:
add x1, x1, l_.str.7@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_28
; %bb.13:
Lloh25:
adrp x1, l_.str.8@PAGE
Lloh26:
add x1, x1, l_.str.8@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_29
; %bb.14:
Lloh27:
adrp x1, l_.str.9@PAGE
Lloh28:
add x1, x1, l_.str.9@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_30
; %bb.15:
Lloh29:
adrp x1, l_.str.10@PAGE
Lloh30:
add x1, x1, l_.str.10@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_32
; %bb.16:
Lloh31:
adrp x1, l_.str.11@PAGE
Lloh32:
add x1, x1, l_.str.11@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_33
; %bb.17:
Lloh33:
adrp x1, l_.str.12@PAGE
Lloh34:
add x1, x1, l_.str.12@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_34
; %bb.18:
Lloh35:
adrp x1, l_.str.13@PAGE
Lloh36:
add x1, x1, l_.str.13@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_35
; %bb.19:
Lloh37:
adrp x1, l_.str.14@PAGE
Lloh38:
add x1, x1, l_.str.14@PAGEOFF
mov x0, x21
bl _strcmp
cbz w0, LBB0_36
LBB0_20:
mov x0, x20
bl _tok2s
mov x2, x0
Lloh39:
adrp x1, l_.str.15@PAGE
Lloh40:
add x1, x1, l_.str.15@PAGEOFF
mov x0, x19
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _errort
LBB0_21:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_define
LBB0_22:
mov x0, x19
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_elif
LBB0_23:
mov x0, x19
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_else
LBB0_24:
mov x0, x19
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_endif
LBB0_25:
mov x0, x19
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_error
LBB0_26:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_if
LBB0_27:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_ifdef
LBB0_28:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_ifndef
LBB0_29:
ldr w1, [x20, #16]
mov x0, x19
mov w2, #1
b LBB0_31
LBB0_30:
ldr w1, [x20, #16]
mov x0, x19
mov w2, #0
LBB0_31:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_include
LBB0_32:
ldr w1, [x20, #16]
mov x0, x19
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_include_next
LBB0_33:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_line
LBB0_34:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_pragma
LBB0_35:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_undef
LBB0_36:
mov x0, x19
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _read_warning
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8
.loh AdrpAdd Lloh9, Lloh10
.loh AdrpAdd Lloh11, Lloh12
.loh AdrpAdd Lloh13, Lloh14
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpAdd Lloh17, Lloh18
.loh AdrpAdd Lloh19, Lloh20
.loh AdrpAdd Lloh21, Lloh22
.loh AdrpAdd Lloh23, Lloh24
.loh AdrpAdd Lloh25, Lloh26
.loh AdrpAdd Lloh27, Lloh28
.loh AdrpAdd Lloh29, Lloh30
.loh AdrpAdd Lloh31, Lloh32
.loh AdrpAdd Lloh33, Lloh34
.loh AdrpAdd Lloh35, Lloh36
.loh AdrpAdd Lloh37, Lloh38
.loh AdrpAdd Lloh39, Lloh40
.cfi_endproc
; -- End function
.comm _TNEWLINE,8,3 ; @TNEWLINE
.comm _TNUMBER,8,3 ; @TNUMBER
.comm _TIDENT,8,3 ; @TIDENT
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "define"
l_.str.1: ; @.str.1
.asciz "elif"
l_.str.2: ; @.str.2
.asciz "else"
l_.str.3: ; @.str.3
.asciz "endif"
l_.str.4: ; @.str.4
.asciz "error"
l_.str.5: ; @.str.5
.asciz "if"
l_.str.6: ; @.str.6
.asciz "ifdef"
l_.str.7: ; @.str.7
.asciz "ifndef"
l_.str.8: ; @.str.8
.asciz "import"
l_.str.9: ; @.str.9
.asciz "include"
l_.str.10: ; @.str.10
.asciz "include_next"
l_.str.11: ; @.str.11
.asciz "line"
l_.str.12: ; @.str.12
.asciz "pragma"
l_.str.13: ; @.str.13
.asciz "undef"
l_.str.14: ; @.str.14
.asciz "warning"
l_.str.15: ; @.str.15
.asciz "unsupported preprocessor directive: %s"
.no_dead_strip _read_directive
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_directive.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_elif
_read_elif: ## @read_elif
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movq _cond_incl_stack@GOTPCREL(%rip), %rbx
movl (%rbx), %edi
callq _vec_len
testq %rax, %rax
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rsi
movq %r14, %rdi
callq _errort
LBB0_2:
movl (%rbx), %edi
callq _vec_tail
movq %rax, %rbx
movq (%rax), %rax
movq _IN_ELSE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_4
## %bb.3:
leaq L_.str.1(%rip), %rsi
movq %r14, %rdi
callq _errort
LBB0_4:
movq _IN_ELIF@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, (%rbx)
movq $0, 16(%rbx)
cmpl $0, 8(%rbx)
je LBB0_5
LBB0_7:
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp _skip_cond_incl ## TAILCALL
LBB0_5:
xorl %eax, %eax
callq _read_constexpr
testl %eax, %eax
je LBB0_7
## %bb.6:
movl $1, 8(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _cond_incl_stack,4,2 ## @cond_incl_stack
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "stray #elif"
.comm _IN_ELSE,8,3 ## @IN_ELSE
L_.str.1: ## @.str.1
.asciz "#elif after #else"
.comm _IN_ELIF,8,3 ## @IN_ELIF
.no_dead_strip _read_elif
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_elif
_read_elif: ; @read_elif
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x20, _cond_incl_stack@GOTPAGE
Lloh1:
ldr x20, [x20, _cond_incl_stack@GOTPAGEOFF]
ldr w0, [x20]
bl _vec_len
cbnz x0, LBB0_2
; %bb.1:
Lloh2:
adrp x1, l_.str@PAGE
Lloh3:
add x1, x1, l_.str@PAGEOFF
mov x0, x19
bl _errort
LBB0_2:
ldr w0, [x20]
bl _vec_tail
mov x20, x0
ldr x8, [x0]
Lloh4:
adrp x9, _IN_ELSE@GOTPAGE
Lloh5:
ldr x9, [x9, _IN_ELSE@GOTPAGEOFF]
Lloh6:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_4
; %bb.3:
Lloh7:
adrp x1, l_.str.1@PAGE
Lloh8:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x19
bl _errort
LBB0_4:
Lloh9:
adrp x8, _IN_ELIF@GOTPAGE
Lloh10:
ldr x8, [x8, _IN_ELIF@GOTPAGEOFF]
Lloh11:
ldr x8, [x8]
str x8, [x20]
str xzr, [x20, #16]
ldr w8, [x20, #8]
cbz w8, LBB0_6
LBB0_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _skip_cond_incl
LBB0_6:
bl _read_constexpr
cbz w0, LBB0_5
; %bb.7:
mov w8, #1
str w8, [x20, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.loh AdrpAdd Lloh7, Lloh8
.loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11
.cfi_endproc
; -- End function
.comm _cond_incl_stack,4,2 ; @cond_incl_stack
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "stray #elif"
.comm _IN_ELSE,8,3 ; @IN_ELSE
l_.str.1: ; @.str.1
.asciz "#elif after #else"
.comm _IN_ELIF,8,3 ; @IN_ELIF
.no_dead_strip _read_elif
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_elif.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_else
_read_else: ## @read_else
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %r14
movq _cond_incl_stack@GOTPCREL(%rip), %rbx
movl (%rbx), %edi
callq _vec_len
testq %rax, %rax
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rsi
movq %r14, %rdi
callq _errort
LBB0_2:
movl (%rbx), %edi
callq _vec_tail
movq %rax, %rbx
movq (%rax), %rax
movq _IN_ELSE@GOTPCREL(%rip), %r15
cmpq (%r15), %rax
jne LBB0_4
## %bb.3:
leaq L_.str.1(%rip), %rsi
movq %r14, %rdi
callq _errort
LBB0_4:
xorl %eax, %eax
callq _expect_newline
movq (%r15), %rax
movq %rax, (%rbx)
movq $0, 16(%rbx)
cmpq $0, 8(%rbx)
je LBB0_5
## %bb.6:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _skip_cond_incl ## TAILCALL
LBB0_5:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _cond_incl_stack,4,2 ## @cond_incl_stack
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "stray #else"
.comm _IN_ELSE,8,3 ## @IN_ELSE
L_.str.1: ## @.str.1
.asciz "#else appears in #else"
.no_dead_strip _read_else
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_else
_read_else: ; @read_else
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x0
Lloh0:
adrp x20, _cond_incl_stack@GOTPAGE
Lloh1:
ldr x20, [x20, _cond_incl_stack@GOTPAGEOFF]
ldr w0, [x20]
bl _vec_len
cbnz x0, LBB0_2
; %bb.1:
Lloh2:
adrp x1, l_.str@PAGE
Lloh3:
add x1, x1, l_.str@PAGEOFF
mov x0, x19
bl _errort
LBB0_2:
ldr w0, [x20]
bl _vec_tail
mov x20, x0
ldr x8, [x0]
Lloh4:
adrp x21, _IN_ELSE@GOTPAGE
Lloh5:
ldr x21, [x21, _IN_ELSE@GOTPAGEOFF]
ldr x9, [x21]
cmp x8, x9
b.ne LBB0_4
; %bb.3:
Lloh6:
adrp x1, l_.str.1@PAGE
Lloh7:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x19
bl _errort
LBB0_4:
bl _expect_newline
ldr x8, [x21]
str x8, [x20]
str xzr, [x20, #16]
ldr x8, [x20, #8]
cbz x8, LBB0_6
; %bb.5:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _skip_cond_incl
LBB0_6:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _cond_incl_stack,4,2 ; @cond_incl_stack
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "stray #else"
.comm _IN_ELSE,8,3 ; @IN_ELSE
l_.str.1: ; @.str.1
.asciz "#else appears in #else"
.no_dead_strip _read_else
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_else.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_endif
_read_endif: ## @read_endif
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movq _cond_incl_stack@GOTPCREL(%rip), %rbx
movl (%rbx), %edi
callq _vec_len
testq %rax, %rax
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rsi
movq %r14, %rdi
callq _errort
LBB0_2:
movl (%rbx), %edi
callq _vec_pop
movq %rax, %rbx
xorl %eax, %eax
callq _expect_newline
cmpl $0, (%rbx)
je LBB0_5
## %bb.3:
movq 8(%rbx), %rax
cmpq (%r14), %rax
je LBB0_4
LBB0_5:
popq %rbx
popq %r14
popq %rbp
retq
LBB0_4:
xorl %eax, %eax
callq _skip_newlines
movq 8(%rbx), %rcx
cmpq (%rax), %rcx
je LBB0_5
## %bb.6:
movq _include_guard@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl (%rcx), %esi
movl (%rbx), %edx
popq %rbx
popq %r14
popq %rbp
jmp _map_put ## TAILCALL
.cfi_endproc
## -- End function
.comm _cond_incl_stack,4,2 ## @cond_incl_stack
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "stray #endif"
.comm _include_guard,4,2 ## @include_guard
.no_dead_strip _read_endif
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_endif
_read_endif: ; @read_endif
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
Lloh0:
adrp x20, _cond_incl_stack@GOTPAGE
Lloh1:
ldr x20, [x20, _cond_incl_stack@GOTPAGEOFF]
ldr w0, [x20]
bl _vec_len
cbnz x0, LBB0_2
; %bb.1:
Lloh2:
adrp x1, l_.str@PAGE
Lloh3:
add x1, x1, l_.str@PAGEOFF
mov x0, x19
bl _errort
LBB0_2:
ldr w0, [x20]
bl _vec_pop
mov x20, x0
bl _expect_newline
ldr w8, [x20]
cbz w8, LBB0_4
; %bb.3:
ldr x8, [x20, #8]
ldr x9, [x19]
cmp x8, x9
b.eq LBB0_5
LBB0_4:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_5:
bl _skip_newlines
ldr x8, [x20, #8]
ldr x9, [x0]
cmp x8, x9
b.eq LBB0_4
; %bb.6:
Lloh4:
adrp x9, _include_guard@GOTPAGE
Lloh5:
ldr x9, [x9, _include_guard@GOTPAGEOFF]
Lloh6:
ldr w0, [x9]
ldr w1, [x8]
ldr w2, [x20]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _map_put
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6
.cfi_endproc
; -- End function
.comm _cond_incl_stack,4,2 ; @cond_incl_stack
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "stray #endif"
.comm _include_guard,4,2 ; @include_guard
.no_dead_strip _read_endif
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_endif.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_error
_read_error: ## @read_error
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movq %rdi, %rbx
xorl %eax, %eax
callq _read_error_message
leaq L_.str(%rip), %rsi
movq %rbx, %rdi
movl %eax, %edx
addq $8, %rsp
popq %rbx
popq %rbp
jmp _errort ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "#error: %s"
.no_dead_strip _read_error
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_error
_read_error: ; @read_error
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
bl _read_error_message
mov x2, x0
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _errort
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "#error: %s"
.no_dead_strip _read_error
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_error.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_error_message
_read_error_message: ## @read_error_message
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
xorl %eax, %eax
callq _make_buffer
movq %rax, %r15
xorl %eax, %eax
callq _lex
movq %rax, %rbx
movq (%rax), %rax
movq _TNEWLINE@GOTPCREL(%rip), %r12
cmpq (%r12), %rax
jne LBB0_1
LBB0_6:
movq %r15, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp _buf_body ## TAILCALL
LBB0_1:
leaq L_.str(%rip), %r14
jmp LBB0_2
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
movq %rbx, %rdi
callq _tok2s
movq %r15, %rdi
movq %r14, %rsi
movl %eax, %edx
callq _buf_printf
xorl %eax, %eax
callq _lex
movq %rax, %rbx
movq (%rax), %rax
cmpq (%r12), %rax
je LBB0_6
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
callq _buf_len
testq %rax, %rax
je LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
cmpq $0, 8(%rbx)
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
movq %r15, %rdi
movl $32, %esi
callq _buf_write
jmp LBB0_5
.cfi_endproc
## -- End function
.comm _TNEWLINE,8,3 ## @TNEWLINE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s"
.no_dead_strip _read_error_message
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_error_message
_read_error_message: ; @read_error_message
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
bl _make_buffer
mov x19, x0
bl _lex
ldr x8, [x0]
Lloh0:
adrp x22, _TNEWLINE@GOTPAGE
Lloh1:
ldr x22, [x22, _TNEWLINE@GOTPAGEOFF]
ldr x9, [x22]
cmp x8, x9
b.ne LBB0_2
LBB0_1:
mov x0, x19
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
b _buf_body
LBB0_2:
mov x21, x0
Lloh2:
adrp x20, l_.str@PAGE
Lloh3:
add x20, x20, l_.str@PAGEOFF
b LBB0_4
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
mov x0, x21
bl _tok2s
mov x2, x0
mov x0, x19
mov x1, x20
bl _buf_printf
bl _lex
mov x21, x0
ldr x8, [x0]
ldr x9, [x22]
cmp x8, x9
b.eq LBB0_1
LBB0_4: ; =>This Inner Loop Header: Depth=1
mov x0, x19
bl _buf_len
cbz x0, LBB0_3
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x21, #8]
cbz x8, LBB0_3
; %bb.6: ; in Loop: Header=BB0_4 Depth=1
mov x0, x19
mov w1, #32
bl _buf_write
b LBB0_3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.cfi_endproc
; -- End function
.comm _TNEWLINE,8,3 ; @TNEWLINE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s"
.no_dead_strip _read_error_message
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_error_message.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_expand
_read_expand: ## @read_expand
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movq _TNEWLINE@GOTPCREL(%rip), %rbx
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
callq _read_expand_newline
movq (%rax), %rcx
cmpq (%rbx), %rcx
je LBB0_1
## %bb.2:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TNEWLINE,8,3 ## @TNEWLINE
.no_dead_strip _read_expand
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_expand
_read_expand: ; @read_expand
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
Lloh0:
adrp x19, _TNEWLINE@GOTPAGE
Lloh1:
ldr x19, [x19, _TNEWLINE@GOTPAGEOFF]
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _read_expand_newline
ldr x8, [x0]
ldr x9, [x19]
cmp x8, x9
b.eq LBB0_1
; %bb.2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _TNEWLINE,8,3 ; @TNEWLINE
.no_dead_strip _read_expand
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_expand.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_expand_newline
_read_expand_newline: ## @read_expand_newline
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
xorl %eax, %eax
callq _lex
movq %rax, %rbx
movq (%rax), %rax
movq _TIDENT@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_13
## %bb.1:
movq 8(%rbx), %r15
movq _macros@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %r15, %rsi
callq _map_get
testq %rax, %rax
je LBB0_13
## %bb.2:
movq %rax, %r14
movl 16(%rbx), %edi
movq %r15, %rsi
callq _set_has
testq %rax, %rax
je LBB0_3
LBB0_13:
movq %rbx, %rax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_3:
movl (%r14), %eax
cmpl $128, %eax
je LBB0_10
## %bb.4:
cmpl $130, %eax
je LBB0_8
## %bb.5:
cmpl $129, %eax
jne LBB0_12
## %bb.6:
movl 16(%rbx), %edi
movq %r15, %rsi
callq _set_add
movq %r14, %rdi
xorl %esi, %esi
jmp LBB0_7
LBB0_10:
movq %rbx, %rdi
callq *8(%r14)
jmp LBB0_11
LBB0_8:
movl $40, %edi
callq _next
testl %eax, %eax
je LBB0_13
## %bb.9:
movq %rbx, %rdi
movq %r14, %rsi
callq _read_args
movq %rax, %r12
xorl %eax, %eax
callq _peek_token
movq %rax, %r13
movl $41, %edi
callq _expect
movl 16(%rbx), %edi
movl 16(%r13), %esi
callq _set_intersection
movl %eax, %edi
movq %r15, %rsi
callq _set_add
movq %r14, %rdi
movq %r12, %rsi
LBB0_7:
movq %rax, %rdx
callq _subst
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq _propagate_space
movq %r14, %rdi
callq _unget_all
LBB0_11:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _read_expand ## TAILCALL
LBB0_12:
leaq L_.str(%rip), %rdi
callq _error
jmp LBB0_13
.cfi_endproc
## -- End function
.comm _TIDENT,8,3 ## @TIDENT
.comm _macros,4,2 ## @macros
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "internal error"
.no_dead_strip _read_expand_newline
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_expand_newline
_read_expand_newline: ; @read_expand_newline
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
bl _lex
mov x19, x0
ldr x8, [x0]
Lloh0:
adrp x9, _TIDENT@GOTPAGE
Lloh1:
ldr x9, [x9, _TIDENT@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_3
; %bb.1:
ldr x21, [x19, #8]
Lloh3:
adrp x8, _macros@GOTPAGE
Lloh4:
ldr x8, [x8, _macros@GOTPAGEOFF]
Lloh5:
ldr w0, [x8]
mov x1, x21
bl _map_get
cbz x0, LBB0_3
; %bb.2:
mov x20, x0
ldr w0, [x19, #16]
mov x1, x21
bl _set_has
cbz x0, LBB0_4
LBB0_3:
mov x0, x19
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
ret
LBB0_4:
ldr w8, [x20]
cmp w8, #128
b.eq LBB0_8
; %bb.5:
cmp w8, #130
b.eq LBB0_9
; %bb.6:
cmp w8, #129
b.ne LBB0_13
; %bb.7:
ldr w0, [x19, #16]
mov x1, x21
bl _set_add
mov x2, x0
mov x0, x20
mov x1, #0
b LBB0_11
LBB0_8:
ldr x8, [x20, #8]
mov x0, x19
blr x8
b LBB0_12
LBB0_9:
mov w0, #40
bl _next
cbz w0, LBB0_3
; %bb.10:
mov x0, x19
mov x1, x20
bl _read_args
mov x22, x0
bl _peek_token
mov x23, x0
mov w0, #41
bl _expect
ldr w0, [x19, #16]
ldr w1, [x23, #16]
bl _set_intersection
mov x1, x21
bl _set_add
mov x2, x0
mov x0, x20
mov x1, x22
LBB0_11:
bl _subst
mov x20, x0
mov x1, x19
bl _propagate_space
mov x0, x20
bl _unget_all
LBB0_12:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
b _read_expand
LBB0_13:
Lloh6:
adrp x0, l_.str@PAGE
Lloh7:
add x0, x0, l_.str@PAGEOFF
bl _error
b LBB0_3
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _TIDENT,8,3 ; @TIDENT
.comm _macros,4,2 ; @macros
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "internal error"
.no_dead_strip _read_expand_newline
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_expand_newline.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _read_from_string ## -- Begin function read_from_string
.p2align 4, 0x90
_read_from_string: ## @read_from_string
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
callq _make_file_string
movl %eax, %edi
callq _stream_stash
xorl %ebx, %ebx
xorl %eax, %eax
callq _read_toplevels
movq %rax, %r14
movq %rax, %rdi
callq _vec_len
testl %eax, %eax
jle LBB0_2
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movl %ebx, %esi
callq _vec_get
movl %eax, %edi
callq _emit_toplevel
incl %ebx
movq %r14, %rdi
callq _vec_len
cmpl %eax, %ebx
jl LBB0_1
LBB0_2:
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp _stream_unstash ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _read_from_string ; -- Begin function read_from_string
.p2align 2
_read_from_string: ; @read_from_string
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
bl _make_file_string
bl _stream_stash
bl _read_toplevels
mov x19, x0
bl _vec_len
cmp w0, #1
b.lt LBB0_3
; %bb.1:
mov w20, #0
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x19
mov x1, x20
bl _vec_get
bl _emit_toplevel
add w20, w20, #1
mov x0, x19
bl _vec_len
cmp w20, w0
b.lt LBB0_2
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _stream_unstash
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_cpp.c_read_from_string.c
|
anghabench
|
Check out more datails here: