Dataset Viewer
arm
stringlengths 122
210k
| x86
stringlengths 122
207k
| filename
stringlengths 30
197
|
---|---|---|
.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:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
str x0, [sp, #16]
str x1, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
bl _peek_token
mov w1, #41
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
bl _make_vector
stur x0, [x29, #-8]
b LBB0_6
LBB0_3:
ldr x0, [sp, #16]
ldr x1, [sp, #8]
bl _do_read_args
str x0, [sp]
ldr x0, [sp]
bl _vec_len
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x0, x8
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr x0, [sp, #16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _errort
b LBB0_5
LBB0_5:
ldr x8, [sp]
stur x8, [x29, #-8]
b LBB0_6
LBB0_6:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.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 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
subq $32, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -24(%rbp), %rax
cmpq $0, (%rax)
jne LBB0_3
## %bb.1:
movb $0, %al
callq _peek_token
movl %eax, %edi
movl $41, %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_3
## %bb.2:
movb $0, %al
callq _make_vector
movq %rax, -8(%rbp)
jmp LBB0_6
LBB0_3:
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
callq _do_read_args
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _vec_len
movq -24(%rbp), %rcx
cmpq (%rcx), %rax
je LBB0_5
## %bb.4:
movq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _errort
LBB0_5:
movq -32(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_6:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.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 |
.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:
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
str x0, [sp, #8]
bl _make_buffer
str x0, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp]
ldr x8, [sp, #8]
add x9, x8, #1
str x9, [sp, #8]
ldrsb w1, [x8]
bl _print
b LBB0_1
LBB0_3:
ldr x0, [sp]
bl _buf_body
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.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 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
subq $16, %rsp
movq %rdi, -8(%rbp)
movb $0, %al
callq _make_buffer
movq %rax, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
cmpb $0, (%rax)
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movq -8(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -8(%rbp)
movsbl (%rax), %esi
callq _print
jmp LBB0_1
LBB0_3:
movq -16(%rbp), %rdi
callq _buf_body
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/8cc/extr_buffer.c_quote_cstring.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _stream_push ; -- Begin function stream_push
.p2align 2
_stream_push: ; @stream_push
.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
str x0, [sp, #8]
adrp x8, _files@GOTPAGE
ldr x8, [x8, _files@GOTPAGEOFF]
ldr w0, [x8]
ldr x1, [sp, #8]
bl _vec_push
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _files,4,2 ; @files
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _stream_push ## -- Begin function stream_push
.p2align 4, 0x90
_stream_push: ## @stream_push
.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
movq %rdi, -8(%rbp)
movq _files@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -8(%rbp), %rsi
callq _vec_push
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _files,4,2 ## @files
.subsections_via_symbols
| AnghaBench/8cc/extr_file.c_stream_push.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function subst
_subst: ; @subst
.cfi_startproc
; %bb.0:
sub sp, sp, #192
.cfi_def_cfa_offset 192
stp x29, x30, [sp, #176] ; 16-byte Folded Spill
add x29, sp, #176
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _KHASHHASH@GOTPAGE
ldr x8, [x8, _KHASHHASH@GOTPAGEOFF]
str x8, [sp, #72] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
bl _make_vector
stur x0, [x29, #-32]
ldur x8, [x29, #-8]
ldr x0, [x8]
bl _vec_len
mov x8, x0
stur w8, [x29, #-36]
stur wzr, [x29, #-40]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_21 Depth 2
ldur w8, [x29, #-40]
ldur w9, [x29, #-36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_41
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldr x0, [x8]
ldur w1, [x29, #-40]
bl _vec_get
stur x0, [x29, #-48]
ldur w8, [x29, #-40]
ldur w9, [x29, #-36]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
mov x8, #0
str x8, [sp, #64] ; 8-byte Folded Spill
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldr x0, [x8]
ldur w8, [x29, #-40]
add w1, w8, #1
bl _vec_get
str x0, [sp, #64] ; 8-byte Folded Spill
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #64] ; 8-byte Folded Reload
stur x8, [x29, #-56]
ldur x8, [x29, #-48]
ldr x8, [x8]
adrp x9, _TMACRO_PARAM@GOTPAGE
ldr x9, [x9, _TMACRO_PARAM@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
and w8, w8, #0x1
stur w8, [x29, #-60]
ldur x8, [x29, #-56]
subs x8, x8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #60] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-56]
ldr x8, [x8]
adrp x9, _TMACRO_PARAM@GOTPAGE
ldr x9, [x9, _TMACRO_PARAM@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
str w8, [sp, #60] ; 4-byte Folded Spill
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #60] ; 4-byte Folded Reload
and w8, w8, #0x1
stur w8, [x29, #-64]
ldur x0, [x29, #-48]
mov w1, #35
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-64]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-32]
str x8, [sp, #48] ; 8-byte Folded Spill
ldur x8, [x29, #-48]
str x8, [sp, #40] ; 8-byte Folded Spill
ldur x0, [x29, #-16]
ldur x8, [x29, #-56]
ldr w1, [x8, #8]
bl _vec_get
mov x1, x0
ldr x0, [sp, #40] ; 8-byte Folded Reload
bl _stringize
mov x1, x0
ldr x0, [sp, #48] ; 8-byte Folded Reload
bl _vec_push
ldur w8, [x29, #-40]
add w8, w8, #1
stur w8, [x29, #-40]
b LBB0_40
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldur x0, [x29, #-48]
ldrsb w1, [x8]
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_27
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-64]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_27
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
ldur x8, [x29, #-56]
ldr w1, [x8, #8]
bl _vec_get
stur x0, [x29, #-72]
ldur x8, [x29, #-56]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_19
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-32]
bl _vec_len
subs x8, x0, #0
cset w8, le
tbnz w8, #0, LBB0_19
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-32]
bl _vec_tail
mov w1, #44
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_19
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-72]
bl _vec_len
subs x8, x0, #0
cset w8, le
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-32]
ldur x1, [x29, #-72]
bl _vec_append
b LBB0_18
LBB0_17: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-32]
bl _vec_pop
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_1 Depth=1
b LBB0_26
LBB0_19: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-72]
bl _vec_len
subs x8, x0, #0
cset w8, le
tbnz w8, #0, LBB0_25
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-32]
str x8, [sp, #32] ; 8-byte Folded Spill
ldur x0, [x29, #-72]
bl _vec_head
mov x1, x0
ldr x0, [sp, #32] ; 8-byte Folded Reload
bl _glue_push
mov w8, #1
stur w8, [x29, #-76]
b LBB0_21
LBB0_21: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldursw x8, [x29, #-76]
str x8, [sp, #24] ; 8-byte Folded Spill
ldur x0, [x29, #-72]
bl _vec_len
ldr x8, [sp, #24] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, ge
tbnz w8, #0, LBB0_24
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_21 Depth=2
ldur x8, [x29, #-32]
str x8, [sp, #16] ; 8-byte Folded Spill
ldur x0, [x29, #-72]
ldur w1, [x29, #-76]
bl _vec_get
mov x1, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _vec_push
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_21 Depth=2
ldur w8, [x29, #-76]
add w8, w8, #1
stur w8, [x29, #-76]
b LBB0_21
LBB0_24: ; in Loop: Header=BB0_1 Depth=1
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_1 Depth=1
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-40]
add w8, w8, #1
stur w8, [x29, #-40]
b LBB0_40
LBB0_27: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldur x0, [x29, #-48]
ldrsb w1, [x8]
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_30
b LBB0_28
LBB0_28: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-56]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_30
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-56]
ldr x8, [x8, #16]
stur x8, [x29, #-24]
ldur x0, [x29, #-32]
ldur x1, [x29, #-56]
bl _glue_push
ldur w8, [x29, #-40]
add w8, w8, #1
stur w8, [x29, #-40]
b LBB0_40
LBB0_30: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-60]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_37
b LBB0_31
LBB0_31: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-56]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_37
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldur x0, [x29, #-56]
ldrsb w1, [x8]
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_37
b LBB0_33
LBB0_33: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-56]
ldr x8, [x8, #16]
stur x8, [x29, #-24]
ldur x0, [x29, #-16]
ldur x8, [x29, #-48]
ldr w1, [x8, #8]
bl _vec_get
str x0, [sp, #88]
ldr x0, [sp, #88]
bl _vec_len
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_35
b LBB0_34
LBB0_34: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-40]
add w8, w8, #1
stur w8, [x29, #-40]
b LBB0_36
LBB0_35: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-32]
ldr x1, [sp, #88]
bl _vec_append
b LBB0_36
LBB0_36: ; in Loop: Header=BB0_1 Depth=1
b LBB0_40
LBB0_37: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-60]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_39
b LBB0_38
LBB0_38: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
ldur x8, [x29, #-48]
ldr w1, [x8, #8]
bl _vec_get
str x0, [sp, #80]
ldur x8, [x29, #-32]
str x8, [sp, #8] ; 8-byte Folded Spill
ldr x0, [sp, #80]
ldur x1, [x29, #-48]
bl _expand_all
mov x1, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _vec_append
b LBB0_40
LBB0_39: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-32]
ldur x1, [x29, #-48]
bl _vec_push
b LBB0_40
LBB0_40: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-40]
add w8, w8, #1
stur w8, [x29, #-40]
b LBB0_1
LBB0_41:
ldur x0, [x29, #-32]
ldur x1, [x29, #-24]
bl _add_hide_set
ldp x29, x30, [sp, #176] ; 16-byte Folded Reload
add sp, sp, #192
ret
.cfi_endproc
; -- End function
.comm _TMACRO_PARAM,8,3 ; @TMACRO_PARAM
.comm _KHASHHASH,1,0 ; @KHASHHASH
.no_dead_strip _subst
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function subst
_subst: ## @subst
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $160, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movb $0, %al
callq _make_vector
movq %rax, -32(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rdi
callq _vec_len
## kill: def $eax killed $eax killed $rax
movl %eax, -36(%rbp)
movl $0, -40(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_21 Depth 2
movl -40(%rbp), %eax
cmpl -36(%rbp), %eax
jge LBB0_41
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rdi
movl -40(%rbp), %esi
callq _vec_get
movq %rax, -48(%rbp)
movl -40(%rbp), %eax
movl -36(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
xorl %eax, %eax
## kill: def $rax killed $eax
movq %rax, -104(%rbp) ## 8-byte Spill
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rdi
movl -40(%rbp), %esi
addl $1, %esi
callq _vec_get
movq %rax, -104(%rbp) ## 8-byte Spill
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -104(%rbp), %rax ## 8-byte Reload
movq %rax, -56(%rbp)
movq -48(%rbp), %rax
movq (%rax), %rax
movq _TMACRO_PARAM@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
sete %al
andb $1, %al
movzbl %al, %eax
movl %eax, -60(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $0, -56(%rbp)
movb %al, -105(%rbp) ## 1-byte Spill
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rax
movq (%rax), %rax
movq _TMACRO_PARAM@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
sete %al
movb %al, -105(%rbp) ## 1-byte Spill
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movb -105(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movl %eax, -64(%rbp)
movq -48(%rbp), %rdi
movl $35, %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_10
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -64(%rbp)
je LBB0_10
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq %rax, -120(%rbp) ## 8-byte Spill
movq -48(%rbp), %rax
movq %rax, -128(%rbp) ## 8-byte Spill
movq -16(%rbp), %rdi
movq -56(%rbp), %rax
movl 8(%rax), %esi
callq _vec_get
movq -128(%rbp), %rdi ## 8-byte Reload
movq %rax, %rsi
callq _stringize
movq -120(%rbp), %rdi ## 8-byte Reload
movq %rax, %rsi
callq _vec_push
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_40
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movq -48(%rbp), %rdi
movq _KHASHHASH@GOTPCREL(%rip), %rax
movsbl (%rax), %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_27
## %bb.11: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -64(%rbp)
je LBB0_27
## %bb.12: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movq -56(%rbp), %rax
movl 8(%rax), %esi
callq _vec_get
movq %rax, -72(%rbp)
movq -56(%rbp), %rax
cmpq $0, 24(%rax)
je LBB0_19
## %bb.13: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdi
callq _vec_len
cmpq $0, %rax
jle LBB0_19
## %bb.14: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdi
callq _vec_tail
movq %rax, %rdi
movl $44, %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_19
## %bb.15: ## in Loop: Header=BB0_1 Depth=1
movq -72(%rbp), %rdi
callq _vec_len
cmpq $0, %rax
jle LBB0_17
## %bb.16: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdi
movq -72(%rbp), %rsi
callq _vec_append
jmp LBB0_18
LBB0_17: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdi
callq _vec_pop
LBB0_18: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_26
LBB0_19: ## in Loop: Header=BB0_1 Depth=1
movq -72(%rbp), %rdi
callq _vec_len
cmpq $0, %rax
jle LBB0_25
## %bb.20: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq %rax, -136(%rbp) ## 8-byte Spill
movq -72(%rbp), %rdi
callq _vec_head
movq -136(%rbp), %rdi ## 8-byte Reload
movq %rax, %rsi
callq _glue_push
movl $1, -76(%rbp)
LBB0_21: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movslq -76(%rbp), %rax
movq %rax, -144(%rbp) ## 8-byte Spill
movq -72(%rbp), %rdi
callq _vec_len
movq %rax, %rcx
movq -144(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
jge LBB0_24
## %bb.22: ## in Loop: Header=BB0_21 Depth=2
movq -32(%rbp), %rax
movq %rax, -152(%rbp) ## 8-byte Spill
movq -72(%rbp), %rdi
movl -76(%rbp), %esi
callq _vec_get
movq -152(%rbp), %rdi ## 8-byte Reload
movq %rax, %rsi
callq _vec_push
## %bb.23: ## in Loop: Header=BB0_21 Depth=2
movl -76(%rbp), %eax
addl $1, %eax
movl %eax, -76(%rbp)
jmp LBB0_21
LBB0_24: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_25
LBB0_25: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_26
LBB0_26: ## in Loop: Header=BB0_1 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_40
LBB0_27: ## in Loop: Header=BB0_1 Depth=1
movq -48(%rbp), %rdi
movq _KHASHHASH@GOTPCREL(%rip), %rax
movsbl (%rax), %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_30
## %bb.28: ## in Loop: Header=BB0_1 Depth=1
cmpq $0, -56(%rbp)
je LBB0_30
## %bb.29: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -24(%rbp)
movq -32(%rbp), %rdi
movq -56(%rbp), %rsi
callq _glue_push
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_40
LBB0_30: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -60(%rbp)
je LBB0_37
## %bb.31: ## in Loop: Header=BB0_1 Depth=1
cmpq $0, -56(%rbp)
je LBB0_37
## %bb.32: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rdi
movq _KHASHHASH@GOTPCREL(%rip), %rax
movsbl (%rax), %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_37
## %bb.33: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rdi
movq -48(%rbp), %rax
movl 8(%rax), %esi
callq _vec_get
movq %rax, -88(%rbp)
movq -88(%rbp), %rdi
callq _vec_len
cmpq $0, %rax
jne LBB0_35
## %bb.34: ## in Loop: Header=BB0_1 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_36
LBB0_35: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdi
movq -88(%rbp), %rsi
callq _vec_append
LBB0_36: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_40
LBB0_37: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -60(%rbp)
je LBB0_39
## %bb.38: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movq -48(%rbp), %rax
movl 8(%rax), %esi
callq _vec_get
movq %rax, -96(%rbp)
movq -32(%rbp), %rax
movq %rax, -160(%rbp) ## 8-byte Spill
movq -96(%rbp), %rdi
movq -48(%rbp), %rsi
callq _expand_all
movq -160(%rbp), %rdi ## 8-byte Reload
movq %rax, %rsi
callq _vec_append
jmp LBB0_40
LBB0_39: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdi
movq -48(%rbp), %rsi
callq _vec_push
LBB0_40: ## in Loop: Header=BB0_1 Depth=1
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB0_1
LBB0_41:
movq -32(%rbp), %rdi
movq -24(%rbp), %rsi
callq _add_hide_set
addq $160, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TMACRO_PARAM,8,3 ## @TMACRO_PARAM
.comm _KHASHHASH,1,0 ## @KHASHHASH
.no_dead_strip _subst
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_subst.c |
.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:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
stur x0, [x29, #-8]
str x1, [sp, #16]
ldur x0, [x29, #-8]
bl _vec_len
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
b LBB0_3
LBB0_2:
ldur x0, [x29, #-8]
bl _vec_head
bl _copy_token
str x0, [sp, #8]
ldr x8, [sp, #16]
ldr w8, [x8]
ldr x9, [sp, #8]
str w8, [x9]
ldur x0, [x29, #-8]
ldr x2, [sp, #8]
mov w1, #0
bl _vec_set
b LBB0_3
LBB0_3:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.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 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
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
callq _vec_len
cmpq $0, %rax
jne LBB0_2
## %bb.1:
jmp LBB0_3
LBB0_2:
movq -8(%rbp), %rdi
callq _vec_head
movl %eax, %edi
callq _copy_token
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movl (%rax), %ecx
movq -24(%rbp), %rax
movl %ecx, (%rax)
movq -8(%rbp), %rdi
movq -24(%rbp), %rdx
xorl %esi, %esi
callq _vec_set
LBB0_3:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _propagate_space
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_propagate_space.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _stream_depth ; -- Begin function stream_depth
.p2align 2
_stream_depth: ; @stream_depth
.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
adrp x8, _files@GOTPAGE
ldr x8, [x8, _files@GOTPAGEOFF]
ldr w0, [x8]
bl _vec_len
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.comm _files,4,2 ; @files
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _stream_depth ## -- Begin function stream_depth
.p2align 4, 0x90
_stream_depth: ## @stream_depth
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _files@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _vec_len
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _files,4,2 ## @files
.subsections_via_symbols
| AnghaBench/8cc/extr_file.c_stream_depth.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function stringize
_stringize: ; @stringize
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
bl _make_buffer
stur x0, [x29, #-24]
stur wzr, [x29, #-28]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-28]
str w8, [sp, #28] ; 4-byte Folded Spill
ldur x0, [x29, #-16]
bl _vec_len
ldr w8, [sp, #28] ; 4-byte Folded Reload
subs w8, w8, w0
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
ldur w1, [x29, #-28]
bl _vec_get
str x0, [sp, #40]
ldur x0, [x29, #-24]
bl _buf_len
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #40]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-24]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _buf_printf
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-24]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr x0, [sp, #40]
bl _tok2s
mov x10, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _buf_printf
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB0_1
LBB0_7:
ldur x0, [x29, #-24]
mov w1, #0
bl _buf_write
ldur x0, [x29, #-8]
bl _copy_token
str x0, [sp, #32]
adrp x8, _TSTRING@GOTPAGE
ldr x8, [x8, _TSTRING@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #32]
str w8, [x9, #20]
ldur x0, [x29, #-24]
bl _buf_body
ldr x8, [sp, #32]
str w0, [x8, #16]
ldur x0, [x29, #-24]
bl _buf_len
ldr x8, [sp, #32]
str x0, [x8, #8]
adrp x8, _ENC_NONE@GOTPAGE
ldr x8, [x8, _ENC_NONE@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #32]
str w8, [x9]
ldr x0, [sp, #32]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz " "
l_.str.1: ; @.str.1
.asciz "%s"
.comm _TSTRING,4,2 ; @TSTRING
.comm _ENC_NONE,4,2 ; @ENC_NONE
.no_dead_strip _stringize
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function stringize
_stringize: ## @stringize
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movb $0, %al
callq _make_buffer
movq %rax, -24(%rbp)
movl $0, -28(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
movl %eax, -52(%rbp) ## 4-byte Spill
movq -16(%rbp), %rdi
callq _vec_len
movl %eax, %ecx
movl -52(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jge LBB0_7
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movl -28(%rbp), %esi
callq _vec_get
movq %rax, -40(%rbp)
movq -24(%rbp), %rdi
callq _buf_len
cmpq $0, %rax
je LBB0_5
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
cmpq $0, 24(%rax)
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rdi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _buf_printf
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
movq -40(%rbp), %rdi
callq _tok2s
movq -64(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _buf_printf
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_1
LBB0_7:
movq -24(%rbp), %rdi
xorl %esi, %esi
callq _buf_write
movq -8(%rbp), %rdi
callq _copy_token
movq %rax, -48(%rbp)
movq _TSTRING@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -48(%rbp), %rax
movl %ecx, 20(%rax)
movq -24(%rbp), %rdi
callq _buf_body
movl %eax, %ecx
movq -48(%rbp), %rax
movl %ecx, 16(%rax)
movq -24(%rbp), %rdi
callq _buf_len
movq %rax, %rcx
movq -48(%rbp), %rax
movq %rcx, 8(%rax)
movq _ENC_NONE@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -48(%rbp), %rax
movl %ecx, (%rax)
movq -48(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz " "
L_.str.1: ## @.str.1
.asciz "%s"
.comm _TSTRING,4,2 ## @TSTRING
.comm _ENC_NONE,4,2 ## @ENC_NONE
.no_dead_strip _stringize
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_stringize.c |
.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:
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
bl _read_token
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _unget_token
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.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 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
subq $16, %rsp
movb $0, %al
callq _read_token
movq %rax, -8(%rbp)
movq -8(%rbp), %rdi
callq _unget_token
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_peek_token.c |
.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:
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
str x0, [sp, #8]
adrp x8, _std_include_path@GOTPAGE
ldr x8, [x8, _std_include_path@GOTPAGEOFF]
ldr w0, [x8]
ldr x1, [sp, #8]
bl _vec_push
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.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 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
subq $16, %rsp
movq %rdi, -8(%rbp)
movq _std_include_path@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -8(%rbp), %rsi
callq _vec_push
addq $16, %rsp
popq %rbp
retq
.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 |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function readc_string
_readc_string: ; @readc_string
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_1
LBB0_1:
ldr x8, [sp, #8]
ldrsb w8, [x8, #8]
subs w8, w8, #10
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x8, [sp, #8]
ldrsb w8, [x8, #8]
adrp x9, _EOF@GOTPAGE
ldr x9, [x9, _EOF@GOTPAGEOFF]
ldrsb w9, [x9]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x8, _EOF@GOTPAGE
ldr x8, [x8, _EOF@GOTPAGEOFF]
ldrsb w8, [x8]
str w8, [sp] ; 4-byte Folded Spill
b LBB0_5
LBB0_4:
mov w8, #10
str w8, [sp] ; 4-byte Folded Spill
b LBB0_5
LBB0_5:
ldr w8, [sp] ; 4-byte Folded Reload
str w8, [sp, #4]
b LBB0_12
LBB0_6:
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #13
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_7
LBB0_7:
ldr x9, [sp, #8]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldr x9, [sp, #8]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_9
LBB0_9:
mov w8, #10
str w8, [sp, #4]
b LBB0_11
LBB0_10:
ldr x10, [sp, #8]
ldr x8, [x10]
add x9, x8, #1
str x9, [x10]
ldrsb w8, [x8]
str w8, [sp, #4]
b LBB0_11
LBB0_11:
b LBB0_12
LBB0_12:
ldr w8, [sp, #4]
ldr x9, [sp, #8]
strb w8, [x9, #8]
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _EOF,1,0 ; @EOF
.no_dead_strip _readc_string
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function readc_string
_readc_string: ## @readc_string
.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, -8(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0, %eax
jne LBB0_6
## %bb.1:
movq -8(%rbp), %rax
movsbl 8(%rax), %eax
cmpl $10, %eax
je LBB0_3
## %bb.2:
movq -8(%rbp), %rax
movsbl 8(%rax), %eax
movq _EOF@GOTPCREL(%rip), %rcx
movsbl (%rcx), %ecx
cmpl %ecx, %eax
jne LBB0_4
LBB0_3:
movq _EOF@GOTPCREL(%rip), %rax
movsbl (%rax), %eax
movl %eax, -16(%rbp) ## 4-byte Spill
jmp LBB0_5
LBB0_4:
movl $10, %eax
movl %eax, -16(%rbp) ## 4-byte Spill
jmp LBB0_5
LBB0_5:
movl -16(%rbp), %eax ## 4-byte Reload
movl %eax, -12(%rbp)
jmp LBB0_12
LBB0_6:
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $13, %eax
jne LBB0_10
## %bb.7:
movq -8(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $10, %eax
jne LBB0_9
## %bb.8:
movq -8(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
LBB0_9:
movl $10, -12(%rbp)
jmp LBB0_11
LBB0_10:
movq -8(%rbp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $1, %rdx
movq %rdx, (%rcx)
movsbl (%rax), %eax
movl %eax, -12(%rbp)
LBB0_11:
jmp LBB0_12
LBB0_12:
movl -12(%rbp), %eax
movb %al, %cl
movq -8(%rbp), %rax
movb %cl, 8(%rax)
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EOF,1,0 ## @EOF
.no_dead_strip _readc_string
.subsections_via_symbols
| AnghaBench/8cc/extr_file.c_readc_string.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function skip_newlines
_skip_newlines: ; @skip_newlines
.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
bl _lex
str x0, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8]
adrp x9, _TNEWLINE@GOTPAGE
ldr x9, [x9, _TNEWLINE@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
bl _lex
str x0, [sp, #8]
b LBB0_1
LBB0_3:
ldr x0, [sp, #8]
bl _unget_token
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _TNEWLINE,8,3 ; @TNEWLINE
.no_dead_strip _skip_newlines
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function skip_newlines
_skip_newlines: ## @skip_newlines
.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
movb $0, %al
callq _lex
movq %rax, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movq (%rax), %rax
movq _TNEWLINE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movb $0, %al
callq _lex
movq %rax, -8(%rbp)
jmp LBB0_1
LBB0_3:
movq -8(%rbp), %rdi
callq _unget_token
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TNEWLINE,8,3 ## @TNEWLINE
.no_dead_strip _skip_newlines
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_skip_newlines.c |
.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:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp, #16]
ldr x0, [sp, #16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
ldr w0, [x8]
bl _fullpath
str x0, [sp, #8]
adrp x8, _once@GOTPAGE
ldr x8, [x8, _once@GOTPAGEOFF]
ldr w0, [x8]
ldr x1, [sp, #8]
mov x2, #1
bl _map_put
b LBB0_9
LBB0_2:
ldr x0, [sp, #16]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x9, _enable_warning@GOTPAGE
ldr x9, [x9, _enable_warning@GOTPAGEOFF]
mov w8, #1
str w8, [x9]
b LBB0_8
LBB0_4:
ldr x0, [sp, #16]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
adrp x8, _enable_warning@GOTPAGE
ldr x8, [x8, _enable_warning@GOTPAGEOFF]
str wzr, [x8]
b LBB0_7
LBB0_6:
ldur x0, [x29, #-8]
ldr x2, [sp, #16]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _errort
b LBB0_7
LBB0_7:
b LBB0_8
LBB0_8:
b LBB0_9
LBB0_9:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.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 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
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_2
## %bb.1:
movq -8(%rbp), %rax
movq 8(%rax), %rax
movl (%rax), %edi
callq _fullpath
movq %rax, -24(%rbp)
movq _once@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -24(%rbp), %rsi
movl $1, %edx
callq _map_put
jmp LBB0_9
LBB0_2:
movq -16(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_4
## %bb.3:
movq _enable_warning@GOTPCREL(%rip), %rax
movl $1, (%rax)
jmp LBB0_8
LBB0_4:
movq -16(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_6
## %bb.5:
movq _enable_warning@GOTPCREL(%rip), %rax
movl $0, (%rax)
jmp LBB0_7
LBB0_6:
movq -8(%rbp), %rdi
movq -16(%rbp), %rdx
leaq L_.str.3(%rip), %rsi
callq _errort
LBB0_7:
jmp LBB0_8
LBB0_8:
jmp LBB0_9
LBB0_9:
addq $32, %rsp
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
| AnghaBench/8cc/extr_cpp.c_parse_pragma_operand.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function readc_file
_readc_file: ; @readc_file
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
adrp x8, _EOF@GOTPAGE
ldr x8, [x8, _EOF@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr w0, [x8, #4]
bl _getc
ldr x9, [sp, #8] ; 8-byte Folded Reload
stur w0, [x29, #-12]
ldur w8, [x29, #-12]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_1
LBB0_1:
ldur x8, [x29, #-8]
ldrsb w8, [x8]
subs w8, w8, #10
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldrsb w8, [x8]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x8]
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_5
LBB0_4:
mov w8, #10
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_5
LBB0_5:
ldr w8, [sp, #4] ; 4-byte Folded Reload
stur w8, [x29, #-12]
b LBB0_11
LBB0_6:
ldur w8, [x29, #-12]
subs w8, w8, #13
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_7
LBB0_7:
ldur x8, [x29, #-8]
ldr w0, [x8, #4]
bl _getc
str w0, [sp, #16]
ldr w8, [sp, #16]
subs w8, w8, #10
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldr w0, [sp, #16]
ldur x8, [x29, #-8]
ldr w1, [x8, #4]
bl _ungetc
b LBB0_9
LBB0_9:
mov w8, #10
stur w8, [x29, #-12]
b LBB0_10
LBB0_10:
b LBB0_11
LBB0_11:
ldur w8, [x29, #-12]
ldur x9, [x29, #-8]
strb w8, [x9]
ldur w0, [x29, #-12]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _EOF,4,2 ; @EOF
.no_dead_strip _readc_file
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function readc_file
_readc_file: ## @readc_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movl 4(%rax), %edi
callq _getc
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
movq _EOF@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jne LBB0_6
## %bb.1:
movq -8(%rbp), %rax
movsbl (%rax), %eax
cmpl $10, %eax
je LBB0_3
## %bb.2:
movq -8(%rbp), %rax
movsbl (%rax), %eax
movq _EOF@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jne LBB0_4
LBB0_3:
movq _EOF@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -20(%rbp) ## 4-byte Spill
jmp LBB0_5
LBB0_4:
movl $10, %eax
movl %eax, -20(%rbp) ## 4-byte Spill
jmp LBB0_5
LBB0_5:
movl -20(%rbp), %eax ## 4-byte Reload
movl %eax, -12(%rbp)
jmp LBB0_11
LBB0_6:
cmpl $13, -12(%rbp)
jne LBB0_10
## %bb.7:
movq -8(%rbp), %rax
movl 4(%rax), %edi
callq _getc
movl %eax, -16(%rbp)
cmpl $10, -16(%rbp)
je LBB0_9
## %bb.8:
movl -16(%rbp), %edi
movq -8(%rbp), %rax
movl 4(%rax), %esi
callq _ungetc
LBB0_9:
movl $10, -12(%rbp)
LBB0_10:
jmp LBB0_11
LBB0_11:
movl -12(%rbp), %eax
movb %al, %cl
movq -8(%rbp), %rax
movb %cl, (%rax)
movl -12(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EOF,4,2 ## @EOF
.no_dead_strip _readc_file
.subsections_via_symbols
| AnghaBench/8cc/extr_file.c_readc_file.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_warning
_read_warning: ; @read_warning
.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
str x0, [sp, #8]
ldr x8, [sp, #8]
str x8, [sp] ; 8-byte Folded Spill
bl _read_error_message
mov x2, x0
ldr x0, [sp] ; 8-byte Folded Reload
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _warnt
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "#warning: %s"
.no_dead_strip _read_warning
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_warning
_read_warning: ## @read_warning
.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
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq %rax, -16(%rbp) ## 8-byte Spill
movb $0, %al
callq _read_error_message
movq -16(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
leaq L_.str(%rip), %rsi
callq _warnt
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "#warning: %s"
.no_dead_strip _read_warning
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_read_warning.c |
.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:
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
str w0, [sp, #8]
bl _lex
str x0, [sp]
ldr x0, [sp]
ldr w1, [sp, #8]
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_3
LBB0_2:
ldr x0, [sp]
bl _unget_token
stur wzr, [x29, #-4]
b LBB0_3
LBB0_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.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 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
subq $16, %rsp
movl %edi, -8(%rbp)
movb $0, %al
callq _lex
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
movl -8(%rbp), %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_2
## %bb.1:
movl $1, -4(%rbp)
jmp LBB0_3
LBB0_2:
movq -16(%rbp), %rdi
callq _unget_token
movl $0, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _next
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_next.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _readc ; -- Begin function readc
.p2align 2
_readc: ; @readc
.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
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _get
str w0, [sp, #8]
ldr w8, [sp, #8]
adrp x9, _EOF@GOTPAGE
ldr x9, [x9, _EOF@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _files@GOTPAGE
ldr x8, [x8, _files@GOTPAGEOFF]
ldr w0, [x8]
bl _vec_len
subs w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr w8, [sp, #8]
stur w8, [x29, #-4]
b LBB0_10
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _files@GOTPAGE
ldr x8, [x8, _files@GOTPAGEOFF]
ldr w0, [x8]
bl _vec_pop
bl _close_file
b LBB0_1
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
subs w8, w8, #92
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr w8, [sp, #8]
stur w8, [x29, #-4]
b LBB0_10
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
bl _get
str w0, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_9:
ldr w0, [sp, #4]
bl _unreadc
ldr w8, [sp, #8]
stur w8, [x29, #-4]
b LBB0_10
LBB0_10:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _EOF,4,2 ; @EOF
.comm _files,4,2 ; @files
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _readc ## -- Begin function readc
.p2align 4, 0x90
_readc: ## @readc
.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
LBB0_1: ## =>This Inner Loop Header: Depth=1
movb $0, %al
callq _get
movl %eax, -8(%rbp)
movl -8(%rbp), %eax
movq _EOF@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jne LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _files@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _vec_len
cmpl $1, %eax
jne LBB0_4
## %bb.3:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_10
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq _files@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _vec_pop
movl %eax, %edi
callq _close_file
jmp LBB0_1
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
cmpl $92, -8(%rbp)
je LBB0_7
## %bb.6:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_10
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movb $0, %al
callq _get
movl %eax, -12(%rbp)
cmpl $10, -12(%rbp)
jne LBB0_9
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_9:
movl -12(%rbp), %edi
callq _unreadc
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_10:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EOF,4,2 ## @EOF
.comm _files,4,2 ## @files
.subsections_via_symbols
| AnghaBench/8cc/extr_file.c_readc.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_undef
_read_undef: ; @read_undef
.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
bl _read_ident
str x0, [sp, #8]
bl _expect_newline
adrp x8, _macros@GOTPAGE
ldr x8, [x8, _macros@GOTPAGEOFF]
ldr w0, [x8]
ldr x8, [sp, #8]
ldr w1, [x8]
bl _map_remove
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _macros,4,2 ; @macros
.no_dead_strip _read_undef
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_undef
_read_undef: ## @read_undef
.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
movb $0, %al
callq _read_ident
movq %rax, -8(%rbp)
movb $0, %al
callq _expect_newline
movq _macros@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -8(%rbp), %rax
movl (%rax), %esi
callq _map_remove
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _macros,4,2 ## @macros
.no_dead_strip _read_undef
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_read_undef.c |
.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:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
stur x0, [x29, #-8]
stur x1, [x29, #-16]
bl _make_vector
str x0, [sp, #24]
str wzr, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
str w8, [sp, #4] ; 4-byte Folded Spill
ldur x0, [x29, #-8]
bl _vec_len
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, w0
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
ldr w1, [sp, #20]
bl _vec_get
bl _copy_token
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr w0, [x8]
ldur x1, [x29, #-16]
bl _set_union
ldr x8, [sp, #8]
str w0, [x8]
ldr x0, [sp, #24]
ldr x1, [sp, #8]
bl _vec_push
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_1
LBB0_4:
ldr x0, [sp, #24]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.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 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
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movb $0, %al
callq _make_vector
movq %rax, -24(%rbp)
movl $0, -28(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
movl %eax, -44(%rbp) ## 4-byte Spill
movq -8(%rbp), %rdi
callq _vec_len
movl %eax, %ecx
movl -44(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
movl -28(%rbp), %esi
callq _vec_get
movl %eax, %edi
callq _copy_token
movq %rax, -40(%rbp)
movq -40(%rbp), %rax
movl (%rax), %edi
movq -16(%rbp), %rsi
callq _set_union
movl %eax, %ecx
movq -40(%rbp), %rax
movl %ecx, (%rax)
movq -24(%rbp), %rdi
movq -40(%rbp), %rsi
callq _vec_push
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_1
LBB0_4:
movq -24(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _add_hide_set
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_add_hide_set.c |
.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:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
str x0, [sp, #16]
ldr x8, [sp, #16]
ldr x8, [x8]
adrp x9, _TIDENT@GOTPAGE
ldr x9, [x9, _TIDENT@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #16]
stur x8, [x29, #-8]
b LBB0_5
LBB0_2:
adrp x8, _keywords@GOTPAGE
ldr x8, [x8, _keywords@GOTPAGEOFF]
ldr w0, [x8]
ldr x8, [sp, #16]
ldr w1, [x8, #12]
bl _map_get
; implicit-def: $x8
mov x8, x0
sxtw x8, w8
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #16]
stur x8, [x29, #-8]
b LBB0_5
LBB0_4:
ldr x0, [sp, #16]
bl _copy_token
str x0, [sp]
adrp x8, _TKEYWORD@GOTPAGE
ldr x8, [x8, _TKEYWORD@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp]
str x8, [x9]
ldr w8, [sp, #12]
ldr x9, [sp]
str w8, [x9, #8]
ldr x8, [sp]
stur x8, [x29, #-8]
b LBB0_5
LBB0_5:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.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 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
subq $32, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq _TIDENT@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_2
## %bb.1:
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_5
LBB0_2:
movq _keywords@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -16(%rbp), %rax
movl 12(%rax), %esi
callq _map_get
cltq
## kill: def $eax killed $eax killed $rax
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
jne LBB0_4
## %bb.3:
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_5
LBB0_4:
movq -16(%rbp), %rdi
callq _copy_token
movq %rax, -32(%rbp)
movq _TKEYWORD@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movq -32(%rbp), %rax
movq %rcx, (%rax)
movl -20(%rbp), %ecx
movq -32(%rbp), %rax
movl %ecx, 8(%rax)
movq -32(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_5:
movq -8(%rbp), %rax
addq $32, %rsp
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
| AnghaBench/8cc/extr_cpp.c_maybe_convert_keyword.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_file_string ; -- Begin function make_file_string
.p2align 2
_make_file_string: ; @make_file_string
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
stur x0, [x29, #-8]
mov w0, #1
str w0, [sp, #12] ; 4-byte Folded Spill
mov w1, #16
bl _calloc
ldr w8, [sp, #12] ; 4-byte Folded Reload
str x0, [sp, #16]
ldr x9, [sp, #16]
str w8, [x9]
ldr x9, [sp, #16]
str w8, [x9, #4]
ldur x8, [x29, #-8]
ldr x9, [sp, #16]
str x8, [x9, #8]
ldr x0, [sp, #16]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_file_string ## -- Begin function make_file_string
.p2align 4, 0x90
_make_file_string: ## @make_file_string
.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
movq %rdi, -8(%rbp)
movl $1, %edi
movl $16, %esi
callq _calloc
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movl $1, (%rax)
movq -16(%rbp), %rax
movl $1, 4(%rax)
movq -8(%rbp), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/8cc/extr_file.c_make_file_string.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _read_token ; -- Begin function read_token
.p2align 2
_read_token: ; @read_token
.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
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _read_expand
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #8]
mov w1, #35
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #8]
bl _read_directive
b LBB0_1
LBB0_5:
ldr x8, [sp, #8]
ldr x8, [x8]
adrp x9, _MIN_CPP_TOKEN@GOTPAGE
ldr x9, [x9, _MIN_CPP_TOKEN@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, lt
and w0, w8, #0x1
bl _assert
ldr x0, [sp, #8]
bl _maybe_convert_keyword
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _MIN_CPP_TOKEN,8,3 ; @MIN_CPP_TOKEN
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _read_token ## -- Begin function read_token
.p2align 4, 0x90
_read_token: ## @read_token
.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
LBB0_1: ## =>This Inner Loop Header: Depth=1
movb $0, %al
callq _read_expand
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
cmpq $0, 16(%rax)
je LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
movl $35, %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_5
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
cmpq $0, 8(%rax)
jne LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
callq _read_directive
jmp LBB0_1
LBB0_5:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _MIN_CPP_TOKEN@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
setl %al
andb $1, %al
movzbl %al, %edi
callq _assert
movq -8(%rbp), %rdi
callq _maybe_convert_keyword
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _MIN_CPP_TOKEN,8,3 ## @MIN_CPP_TOKEN
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_read_token.c |
.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:
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
str x0, [sp, #8]
mov w0, #4
bl _malloc
str x0, [sp]
ldr x8, [sp, #8]
ldr w8, [x8]
ldr x9, [sp]
str w8, [x9]
ldr x0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.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 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
subq $16, %rsp
movq %rdi, -8(%rbp)
movl $4, %edi
callq _malloc
movq %rax, -16(%rbp)
movq -8(%rbp), %rax
movl (%rax), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _copy_token
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_copy_token.c |
.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:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
stur x0, [x29, #-8]
stur w1, [x29, #-12]
str x2, [sp, #8]
ldur x0, [x29, #-8]
bl _copy_token
str x0, [sp]
ldur w8, [x29, #-12]
ldr x9, [sp]
str w8, [x9]
ldr x8, [sp, #8]
ldr x9, [sp]
str x8, [x9, #8]
ldr x0, [sp, #8]
bl _strlen
add x8, x0, #1
ldr x9, [sp]
str x8, [x9, #24]
adrp x8, _ENC_NONE@GOTPAGE
ldr x8, [x8, _ENC_NONE@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp]
str w8, [x9, #16]
ldr x0, [sp]
bl _unget_token
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.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 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
subq $32, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq %rdx, -24(%rbp)
movq -8(%rbp), %rdi
callq _copy_token
movq %rax, -32(%rbp)
movl -12(%rbp), %ecx
movq -32(%rbp), %rax
movl %ecx, (%rax)
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rdi
callq _strlen
movq %rax, %rcx
addq $1, %rcx
movq -32(%rbp), %rax
movq %rcx, 24(%rax)
movq _ENC_NONE@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -32(%rbp), %rax
movl %ecx, 16(%rax)
movq -32(%rbp), %rdi
callq _unget_token
addq $32, %rsp
popq %rbp
retq
.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 |
.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:
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
strb w0, [sp, #7]
ldrsb w8, [sp, #7]
subs w8, w8, #92
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
str x8, [sp, #8]
b LBB0_5
LBB0_2:
ldrsb w8, [sp, #7]
subs w8, w8, #39
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [sp, #8]
b LBB0_5
LBB0_4:
ldrsb w1, [sp, #7]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _format
str x0, [sp, #8]
b LBB0_5
LBB0_5:
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.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 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
subq $16, %rsp
movb %dil, %al
movb %al, -9(%rbp)
movsbl -9(%rbp), %eax
cmpl $92, %eax
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_5
LBB0_2:
movsbl -9(%rbp), %eax
cmpl $39, %eax
jne LBB0_4
## %bb.3:
leaq L_.str.1(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_5
LBB0_4:
leaq L_.str.2(%rip), %rdi
movsbl -9(%rbp), %esi
callq _format
movq %rax, -8(%rbp)
LBB0_5:
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.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 |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_file ; -- Begin function make_file
.p2align 2
_make_file: ; @make_file
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
stur x0, [x29, #-8]
str x1, [sp, #16]
mov w0, #1
str w0, [sp] ; 4-byte Folded Spill
mov w1, #32
bl _calloc
ldr w8, [sp] ; 4-byte Folded Reload
str x0, [sp, #8]
ldur x9, [x29, #-8]
ldr x10, [sp, #8]
str x9, [x10, #24]
ldr x9, [sp, #16]
ldr x10, [sp, #8]
str x9, [x10]
ldr x9, [sp, #8]
str w8, [x9, #8]
ldr x9, [sp, #8]
str w8, [x9, #12]
ldur x0, [x29, #-8]
bl _fileno
add x1, sp, #4
bl _fstat
adds w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _errno@GOTPAGE
ldr x8, [x8, _errno@GOTPAGEOFF]
ldr w0, [x8]
bl _strerror
mov x1, x0
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _error
b LBB0_2
LBB0_2:
ldr w8, [sp, #4]
ldr x9, [sp, #8]
str w8, [x9, #16]
ldr x0, [sp, #8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "fstat failed: %s"
.comm _errno,4,2 ; @errno
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_file ## -- Begin function make_file
.p2align 4, 0x90
_make_file: ## @make_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $1, %edi
movl $32, %esi
callq _calloc
movq %rax, -24(%rbp)
movq -8(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 24(%rax)
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movq -24(%rbp), %rax
movl $1, 8(%rax)
movq -24(%rbp), %rax
movl $1, 12(%rax)
movq -8(%rbp), %rdi
callq _fileno
movl %eax, %edi
leaq -32(%rbp), %rsi
callq _fstat
cmpl $-1, %eax
jne LBB0_2
## %bb.1:
movq _errno@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _strerror
movl %eax, %esi
leaq L_.str(%rip), %rdi
callq _error
LBB0_2:
movl -32(%rbp), %ecx
movq -24(%rbp), %rax
movl %ecx, 16(%rax)
movq -24(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "fstat failed: %s"
.comm _errno,4,2 ## @errno
.subsections_via_symbols
| AnghaBench/8cc/extr_file.c_make_file.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_pragma
_read_pragma: ; @read_pragma
.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
bl _read_ident
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _parse_pragma_operand
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _read_pragma
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_pragma
_read_pragma: ## @read_pragma
.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
movb $0, %al
callq _read_ident
movq %rax, -8(%rbp)
movq -8(%rbp), %rdi
callq _parse_pragma_operand
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _read_pragma
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_read_pragma.c |
.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:
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
stur w0, [x29, #-4]
str w1, [sp, #8]
mov w0, #32
bl _malloc
str x0, [sp]
adrp x8, _TMACRO_PARAM@GOTPAGE
ldr x8, [x8, _TMACRO_PARAM@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp]
str w8, [x9, #24]
ldr w8, [sp, #8]
ldr x9, [sp]
str w8, [x9]
ldr x8, [sp]
; kill: def $x9 killed $xzr
str xzr, [x8, #16]
ldur w8, [x29, #-4]
ldr x9, [sp]
str w8, [x9, #4]
ldr x8, [sp]
str wzr, [x8, #8]
ldr x8, [sp]
str wzr, [x8, #12]
ldr x0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.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 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
subq $16, %rsp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl $32, %edi
callq _malloc
movq %rax, -16(%rbp)
movq _TMACRO_PARAM@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -16(%rbp), %rax
movl %ecx, 24(%rax)
movl -8(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
movq $0, 16(%rax)
movl -4(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, 4(%rax)
movq -16(%rbp), %rax
movl $0, 8(%rax)
movq -16(%rbp), %rax
movl $0, 12(%rax)
movq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.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 |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _input_position ; -- Begin function input_position
.p2align 2
_input_position: ; @input_position
.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
adrp x8, _files@GOTPAGE
ldr x8, [x8, _files@GOTPAGEOFF]
ldr w0, [x8]
bl _vec_len
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
str x8, [sp, #8]
b LBB0_3
LBB0_2:
adrp x8, _files@GOTPAGE
ldr x8, [x8, _files@GOTPAGEOFF]
ldr w0, [x8]
bl _vec_tail
str x0, [sp]
ldr x8, [sp]
ldr w1, [x8, #8]
ldr x8, [sp]
ldr w2, [x8, #4]
ldr x8, [sp]
ldr w3, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _format
str x0, [sp, #8]
b LBB0_3
LBB0_3:
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _files,4,2 ; @files
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "(unknown)"
l_.str.1: ; @.str.1
.asciz "%s:%d:%d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _input_position ## -- Begin function input_position
.p2align 4, 0x90
_input_position: ## @input_position
.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
movq _files@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _vec_len
cmpq $0, %rax
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_3
LBB0_2:
movq _files@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _vec_tail
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movl 8(%rax), %esi
movq -16(%rbp), %rax
movl 4(%rax), %edx
movq -16(%rbp), %rax
movl (%rax), %ecx
leaq L_.str.1(%rip), %rdi
callq _format
movq %rax, -8(%rbp)
LBB0_3:
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _files,4,2 ## @files
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "(unknown)"
L_.str.1: ## @.str.1
.asciz "%s:%d:%d"
.subsections_via_symbols
| AnghaBench/8cc/extr_file.c_input_position.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_one_arg
_read_one_arg: ; @read_one_arg
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
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
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur w2, [x29, #-28]
bl _make_vector
str x0, [sp, #24]
str wzr, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _lex
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8]
adrp x9, _TEOF@GOTPAGE
ldr x9, [x9, _TEOF@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _errort
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8]
adrp x9, _TNEWLINE@GOTPAGE
ldr x9, [x9, _TNEWLINE@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr w8, [x8, #8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #8]
mov w1, #35
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #8]
bl _read_directive
b LBB0_1
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #8]
mov w1, #41
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr x0, [sp, #8]
bl _unget_token
ldur x9, [x29, #-24]
mov w8, #1
str w8, [x9]
ldr x8, [sp, #24]
stur x8, [x29, #-8]
b LBB0_22
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #8]
mov w1, #44
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
ldr x8, [sp, #24]
stur x8, [x29, #-8]
b LBB0_22
LBB0_15: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #8]
mov w1, #40
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #8]
mov w1, #41
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
subs w8, w8, #1
str w8, [sp, #20]
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr w8, [x8, #8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #8]
bl _copy_token
str x0, [sp, #8]
ldr x8, [sp, #8]
str wzr, [x8, #8]
ldr x9, [sp, #8]
mov w8, #1
str w8, [x9, #12]
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #24]
ldr x1, [sp, #8]
bl _vec_push
b LBB0_1
LBB0_22:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.comm _TEOF,8,3 ; @TEOF
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "unterminated macro argument list"
.comm _TNEWLINE,8,3 ; @TNEWLINE
.no_dead_strip _read_one_arg
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_one_arg
_read_one_arg: ## @read_one_arg
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movl %edx, -28(%rbp)
movb $0, %al
callq _make_vector
movq %rax, -40(%rbp)
movl $0, -44(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movb $0, %al
callq _lex
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
movq (%rax), %rax
movq _TEOF@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _errort
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rax
movq (%rax), %rax
movq _TNEWLINE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rax
cmpl $0, 8(%rax)
je LBB0_8
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rdi
movl $35, %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_8
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rdi
callq _read_directive
jmp LBB0_1
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -44(%rbp)
jne LBB0_11
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rdi
movl $41, %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_11
## %bb.10:
movq -56(%rbp), %rdi
callq _unget_token
movq -24(%rbp), %rax
movl $1, (%rax)
movq -40(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_22
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -44(%rbp)
jne LBB0_15
## %bb.12: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rdi
movl $44, %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_15
## %bb.13: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -28(%rbp)
jne LBB0_15
## %bb.14:
movq -40(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_22
LBB0_15: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rdi
movl $40, %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_17
## %bb.16: ## in Loop: Header=BB0_1 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
LBB0_17: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rdi
movl $41, %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_19
## %bb.18: ## in Loop: Header=BB0_1 Depth=1
movl -44(%rbp), %eax
addl $-1, %eax
movl %eax, -44(%rbp)
LBB0_19: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rax
cmpl $0, 8(%rax)
je LBB0_21
## %bb.20: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rdi
callq _copy_token
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
movl $0, 8(%rax)
movq -56(%rbp), %rax
movl $1, 12(%rax)
LBB0_21: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rdi
movq -56(%rbp), %rsi
callq _vec_push
jmp LBB0_1
LBB0_22:
movq -8(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TEOF,8,3 ## @TEOF
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "unterminated macro argument list"
.comm _TNEWLINE,8,3 ## @TNEWLINE
.no_dead_strip _read_one_arg
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_read_one_arg.c |
.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:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr w8, [x8]
lsl w8, w8, #1
stur w8, [x29, #-12]
ldur w0, [x29, #-12]
bl _malloc
str x0, [sp, #8]
ldr x0, [sp, #8]
ldur x8, [x29, #-8]
ldr x1, [x8, #8]
ldur x8, [x29, #-8]
ldr w2, [x8, #16]
bl _memcpy
ldr x8, [sp, #8]
ldur x9, [x29, #-8]
str x8, [x9, #8]
ldur w8, [x29, #-12]
ldur x9, [x29, #-8]
str w8, [x9]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.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 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
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movl (%rax), %eax
shll $1, %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %edi
callq _malloc
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
movq -8(%rbp), %rax
movq 8(%rax), %rsi
movq -8(%rbp), %rax
movl 16(%rax), %edx
callq _memcpy
movq -24(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, 8(%rax)
movl -12(%rbp), %ecx
movq -8(%rbp), %rax
movl %ecx, (%rax)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _realloc_body
.subsections_via_symbols
| AnghaBench/8cc/extr_buffer.c_realloc_body.c |
.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:
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
str x0, [sp, #8]
mov w0, #4
bl _malloc
str x0, [sp]
ldr x8, [sp, #8]
ldr w8, [x8]
ldr x9, [sp]
str w8, [x9]
ldr x0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.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 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
subq $16, %rsp
movq %rdi, -8(%rbp)
movl $4, %edi
callq _malloc
movq %rax, -16(%rbp)
movq -8(%rbp), %rax
movl (%rax), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _make_macro
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_make_macro.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function get
_get: ; @get
.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
adrp x8, _files@GOTPAGE
ldr x8, [x8, _files@GOTPAGEOFF]
ldr w0, [x8]
bl _vec_tail
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ls
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x10, [sp, #8]
ldr x9, [x10]
subs x9, x9, #1
str x9, [x10]
ldr w8, [x8, x9, lsl #2]
str w8, [sp, #4]
b LBB0_6
LBB0_2:
ldr x8, [sp, #8]
ldr x8, [x8, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x0, [sp, #8]
bl _readc_file
str w0, [sp, #4]
b LBB0_5
LBB0_4:
ldr x0, [sp, #8]
bl _readc_string
str w0, [sp, #4]
b LBB0_5
LBB0_5:
b LBB0_6
LBB0_6:
ldr w8, [sp, #4]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr x10, [sp, #8]
ldr w9, [x10, #20]
mov w8, #1
add w9, w9, #1
str w9, [x10, #20]
ldr x9, [sp, #8]
str w8, [x9, #16]
b LBB0_11
LBB0_8:
ldr w8, [sp, #4]
adrp x9, _EOF@GOTPAGE
ldr x9, [x9, _EOF@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldr x9, [sp, #8]
ldr w8, [x9, #16]
add w8, w8, #1
str w8, [x9, #16]
b LBB0_10
LBB0_10:
b LBB0_11
LBB0_11:
ldr w0, [sp, #4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _files,4,2 ; @files
.comm _EOF,4,2 ; @EOF
.no_dead_strip _get
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function get
_get: ## @get
.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
movq _files@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _vec_tail
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
cmpq $0, (%rax)
jbe LBB0_2
## %bb.1:
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq -8(%rbp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $-1, %rsi
movq %rsi, (%rdx)
movl -4(%rax,%rcx,4), %eax
movl %eax, -12(%rbp)
jmp LBB0_6
LBB0_2:
movq -8(%rbp), %rax
cmpq $0, 24(%rax)
je LBB0_4
## %bb.3:
movq -8(%rbp), %rdi
callq _readc_file
movl %eax, -12(%rbp)
jmp LBB0_5
LBB0_4:
movq -8(%rbp), %rdi
callq _readc_string
movl %eax, -12(%rbp)
LBB0_5:
jmp LBB0_6
LBB0_6:
cmpl $10, -12(%rbp)
jne LBB0_8
## %bb.7:
movq -8(%rbp), %rax
movl 20(%rax), %ecx
addl $1, %ecx
movl %ecx, 20(%rax)
movq -8(%rbp), %rax
movl $1, 16(%rax)
jmp LBB0_11
LBB0_8:
movl -12(%rbp), %eax
movq _EOF@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
je LBB0_10
## %bb.9:
movq -8(%rbp), %rax
movl 16(%rax), %ecx
addl $1, %ecx
movl %ecx, 16(%rax)
LBB0_10:
jmp LBB0_11
LBB0_11:
movl -12(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _files,4,2 ## @files
.comm _EOF,4,2 ## @EOF
.no_dead_strip _get
.subsections_via_symbols
| AnghaBench/8cc/extr_file.c_get.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_obj_macro
_read_obj_macro: ; @read_obj_macro
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
stur x0, [x29, #-8]
bl _make_vector
stur x0, [x29, #-16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _lex
str x0, [sp, #24]
ldr x8, [sp, #24]
ldr x8, [x8]
adrp x9, _TNEWLINE@GOTPAGE
ldr x9, [x9, _TNEWLINE@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
b LBB0_4
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
ldr x1, [sp, #24]
bl _vec_push
b LBB0_1
LBB0_4:
ldur x0, [x29, #-16]
bl _hashhash_check
adrp x8, _macros@GOTPAGE
ldr x8, [x8, _macros@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #20] ; 4-byte Folded Spill
ldur x8, [x29, #-8]
str x8, [sp, #8] ; 8-byte Folded Spill
ldur x0, [x29, #-16]
bl _make_obj_macro
ldr x1, [sp, #8] ; 8-byte Folded Reload
mov x2, x0
ldr w0, [sp, #20] ; 4-byte Folded Reload
bl _map_put
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _TNEWLINE,8,3 ; @TNEWLINE
.comm _macros,4,2 ; @macros
.no_dead_strip _read_obj_macro
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_obj_macro
_read_obj_macro: ## @read_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
subq $48, %rsp
movq %rdi, -8(%rbp)
movb $0, %al
callq _make_vector
movq %rax, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movb $0, %al
callq _lex
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movq (%rax), %rax
movq _TNEWLINE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_3
## %bb.2:
jmp LBB0_4
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
callq _vec_push
jmp LBB0_1
LBB0_4:
movq -16(%rbp), %rdi
callq _hashhash_check
movq _macros@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -36(%rbp) ## 4-byte Spill
movq -8(%rbp), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq -16(%rbp), %rdi
callq _make_obj_macro
movl -36(%rbp), %edi ## 4-byte Reload
movq -32(%rbp), %rsi ## 8-byte Reload
movl %eax, %edx
callq _map_put
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TNEWLINE,8,3 ## @TNEWLINE
.comm _macros,4,2 ## @macros
.no_dead_strip _read_obj_macro
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_read_obj_macro.c |
.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:
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
stur w0, [x29, #-4]
mov w0, #1
mov w1, #8
bl _calloc
str x0, [sp]
adrp x8, _IN_THEN@GOTPAGE
ldr x8, [x8, _IN_THEN@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp]
str w8, [x9, #4]
ldur w8, [x29, #-4]
ldr x9, [sp]
str w8, [x9]
ldr x0, [sp]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.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 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
subq $16, %rsp
movl %edi, -4(%rbp)
movl $1, %edi
movl $8, %esi
callq _calloc
movq %rax, -16(%rbp)
movq _IN_THEN@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -16(%rbp), %rax
movl %ecx, 4(%rax)
movl -4(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.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 |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _current_file ; -- Begin function current_file
.p2align 2
_current_file: ; @current_file
.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
adrp x8, _files@GOTPAGE
ldr x8, [x8, _files@GOTPAGEOFF]
ldr w0, [x8]
bl _vec_tail
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.comm _files,4,2 ; @files
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _current_file ## -- Begin function current_file
.p2align 4, 0x90
_current_file: ## @current_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _files@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _vec_tail
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _files,4,2 ## @files
.subsections_via_symbols
| AnghaBench/8cc/extr_file.c_current_file.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_linemarker
_read_linemarker: ; @read_linemarker
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x0, [x8]
bl _is_digit_sequence
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-8]
str x8, [sp, #8] ; 8-byte Folded Spill
ldur x0, [x29, #-8]
bl _tok2s
mov x2, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _errort
b LBB0_2
LBB0_2:
ldur x8, [x29, #-8]
ldr x0, [x8]
bl _atoi
stur w0, [x29, #-12]
bl _lex
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
adrp x9, _TSTRING@GOTPAGE
ldr x9, [x9, _TSTRING@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur x8, [x29, #-8]
str x8, [sp] ; 8-byte Folded Spill
ldur x0, [x29, #-8]
bl _tok2s
mov x2, x0
ldr x0, [sp] ; 8-byte Folded Reload
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _errort
b LBB0_4
LBB0_4:
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp, #24]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
bl _lex
stur x0, [x29, #-8]
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
adrp x9, _TNEWLINE@GOTPAGE
ldr x9, [x9, _TNEWLINE@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_7
LBB0_7:
bl _current_file
str x0, [sp, #16]
ldur w8, [x29, #-12]
ldr x9, [sp, #16]
str w8, [x9]
ldr x8, [sp, #24]
ldr x9, [sp, #16]
str x8, [x9, #8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "line number expected, but got %s"
.comm _TSTRING,8,3 ; @TSTRING
l_.str.1: ; @.str.1
.asciz "filename expected, but got %s"
.comm _TNEWLINE,8,3 ; @TNEWLINE
.no_dead_strip _read_linemarker
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_linemarker
_read_linemarker: ## @read_linemarker
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rdi
callq _is_digit_sequence
cmpl $0, %eax
jne LBB0_2
## %bb.1:
movq -8(%rbp), %rax
movq %rax, -40(%rbp) ## 8-byte Spill
movq -8(%rbp), %rdi
callq _tok2s
movq -40(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
leaq L_.str(%rip), %rsi
callq _errort
LBB0_2:
movq -8(%rbp), %rax
movq (%rax), %rdi
callq _atoi
movl %eax, -12(%rbp)
movb $0, %al
callq _lex
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq _TSTRING@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_4
## %bb.3:
movq -8(%rbp), %rax
movq %rax, -48(%rbp) ## 8-byte Spill
movq -8(%rbp), %rdi
callq _tok2s
movq -48(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
leaq L_.str.1(%rip), %rsi
callq _errort
LBB0_4:
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movb $0, %al
callq _lex
movq %rax, -8(%rbp)
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq _TNEWLINE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_5
## %bb.7:
movb $0, %al
callq _current_file
movq %rax, -32(%rbp)
movl -12(%rbp), %ecx
movq -32(%rbp), %rax
movl %ecx, (%rax)
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "line number expected, but got %s"
.comm _TSTRING,8,3 ## @TSTRING
L_.str.1: ## @.str.1
.asciz "filename expected, but got %s"
.comm _TNEWLINE,8,3 ## @TNEWLINE
.no_dead_strip _read_linemarker
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_read_linemarker.c |
.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:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
stur x0, [x29, #-8]
str x1, [sp, #16]
str w2, [sp, #12]
str wzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
ldr x8, [sp, #16]
ldrsw x9, [sp, #8]
ldrsb w1, [x8, x9]
bl _buf_write
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB0_1
LBB0_4:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.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 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
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl %edx, -20(%rbp)
movl $0, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -24(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movsbl (%rax,%rcx), %esi
callq _buf_write
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB0_1
LBB0_4:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| AnghaBench/8cc/extr_buffer.c_buf_append.c |
.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:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
stur x0, [x29, #-8]
bl _make_buffer
str x0, [sp, #16]
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
str w8, [sp, #8] ; 4-byte Folded Spill
ldur x0, [x29, #-8]
bl _vec_len
ldr w8, [sp, #8] ; 4-byte Folded Reload
subs w8, w8, w0
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
str x8, [sp] ; 8-byte Folded Spill
ldur x0, [x29, #-8]
ldr w1, [sp, #12]
bl _vec_get
bl _tok2s
mov x2, x0
ldr x0, [sp] ; 8-byte Folded Reload
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _buf_printf
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_1
LBB0_4:
ldr x0, [sp, #16]
bl _buf_body
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.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 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
subq $32, %rsp
movq %rdi, -8(%rbp)
movb $0, %al
callq _make_buffer
movq %rax, -16(%rbp)
movl $0, -20(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
movl %eax, -24(%rbp) ## 4-byte Spill
movq -8(%rbp), %rdi
callq _vec_len
movl %eax, %ecx
movl -24(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq -8(%rbp), %rdi
movl -20(%rbp), %esi
callq _vec_get
movl %eax, %edi
callq _tok2s
movq -32(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
leaq L_.str(%rip), %rsi
callq _buf_printf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_1
LBB0_4:
movq -16(%rbp), %rdi
callq _buf_body
addq $32, %rsp
popq %rbp
retq
.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 |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function close_file
_close_file: ; @close_file
.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
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #8]
ldr x0, [x8]
bl _fclose
b LBB0_2
LBB0_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _close_file
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function close_file
_close_file: ## @close_file
.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
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
cmpq $0, (%rax)
je LBB0_2
## %bb.1:
movq -8(%rbp), %rax
movq (%rax), %rdi
callq _fclose
LBB0_2:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _close_file
.subsections_via_symbols
| AnghaBench/8cc/extr_file.c_close_file.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_line
_read_line: ; @read_line
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
bl _read_expand_newline
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8]
adrp x9, _TNUMBER@GOTPAGE
ldr x9, [x9, _TNUMBER@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-8]
ldr x0, [x8, #8]
bl _is_digit_sequence
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldur x8, [x29, #-8]
str x8, [sp, #8] ; 8-byte Folded Spill
ldur x0, [x29, #-8]
bl _tok2s
mov x2, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _errort
b LBB0_3
LBB0_3:
ldur x8, [x29, #-8]
ldr x0, [x8, #8]
bl _atoi
stur w0, [x29, #-12]
bl _read_expand_newline
stur x0, [x29, #-8]
; kill: def $x8 killed $xzr
str xzr, [sp, #24]
ldur x8, [x29, #-8]
ldr x8, [x8]
adrp x9, _TSTRING@GOTPAGE
ldr x9, [x9, _TSTRING@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldur x8, [x29, #-8]
ldr x8, [x8, #8]
str x8, [sp, #24]
bl _expect_newline
b LBB0_8
LBB0_5:
ldur x8, [x29, #-8]
ldr x8, [x8]
adrp x9, _TNEWLINE@GOTPAGE
ldr x9, [x9, _TNEWLINE@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldur x8, [x29, #-8]
str x8, [sp] ; 8-byte Folded Spill
ldur x0, [x29, #-8]
bl _tok2s
mov x2, x0
ldr x0, [sp] ; 8-byte Folded Reload
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _errort
b LBB0_7
LBB0_7:
b LBB0_8
LBB0_8:
bl _current_file
str x0, [sp, #16]
ldur w8, [x29, #-12]
ldr x9, [sp, #16]
str w8, [x9]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldr x8, [sp, #24]
ldr x9, [sp, #16]
str x8, [x9, #8]
b LBB0_10
LBB0_10:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _TNUMBER,8,3 ; @TNUMBER
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "number expected after #line, but got %s"
.comm _TSTRING,8,3 ; @TSTRING
.comm _TNEWLINE,8,3 ; @TNEWLINE
l_.str.1: ; @.str.1
.asciz "newline or a source name are expected, but got %s"
.no_dead_strip _read_line
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_line
_read_line: ## @read_line
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movb $0, %al
callq _read_expand_newline
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movq _TNUMBER@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_2
## %bb.1:
movq -8(%rbp), %rax
movq 8(%rax), %rdi
callq _is_digit_sequence
cmpl $0, %eax
jne LBB0_3
LBB0_2:
movq -8(%rbp), %rax
movq %rax, -40(%rbp) ## 8-byte Spill
movq -8(%rbp), %rdi
callq _tok2s
movq -40(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
leaq L_.str(%rip), %rsi
callq _errort
LBB0_3:
movq -8(%rbp), %rax
movq 8(%rax), %rdi
callq _atoi
movl %eax, -12(%rbp)
movb $0, %al
callq _read_expand_newline
movq %rax, -8(%rbp)
movq $0, -24(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movq _TSTRING@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_5
## %bb.4:
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
movb $0, %al
callq _expect_newline
jmp LBB0_8
LBB0_5:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _TNEWLINE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_7
## %bb.6:
movq -8(%rbp), %rax
movq %rax, -48(%rbp) ## 8-byte Spill
movq -8(%rbp), %rdi
callq _tok2s
movq -48(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
leaq L_.str.1(%rip), %rsi
callq _errort
LBB0_7:
jmp LBB0_8
LBB0_8:
movb $0, %al
callq _current_file
movq %rax, -32(%rbp)
movl -12(%rbp), %ecx
movq -32(%rbp), %rax
movl %ecx, (%rax)
cmpq $0, -24(%rbp)
je LBB0_10
## %bb.9:
movq -24(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
LBB0_10:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TNUMBER,8,3 ## @TNUMBER
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "number expected after #line, but got %s"
.comm _TSTRING,8,3 ## @TSTRING
.comm _TNEWLINE,8,3 ## @TNEWLINE
L_.str.1: ## @.str.1
.asciz "newline or a source name are expected, but got %s"
.no_dead_strip _read_line
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_read_line.c |
.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:
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
str x0, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
ldrsb w0, [x8]
bl _isdigit
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
stur wzr, [x29, #-4]
b LBB0_7
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_1
LBB0_6:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_7
LBB0_7:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.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 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
subq $16, %rsp
movq %rdi, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
cmpb $0, (%rax)
je LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %edi
callq _isdigit
cmpl $0, %eax
jne LBB0_4
## %bb.3:
movl $0, -4(%rbp)
jmp LBB0_7
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_6:
movl $1, -4(%rbp)
LBB0_7:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _is_digit_sequence
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_is_digit_sequence.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _token_pos ; -- Begin function token_pos
.p2align 2
_token_pos: ; @token_pos
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
stur x0, [x29, #-16]
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
str x8, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
stur x8, [x29, #-8]
b LBB0_6
LBB0_2:
ldr x8, [sp, #24]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #24]
ldr x8, [x8]
str x8, [sp, #8] ; 8-byte Folded Spill
b LBB0_5
LBB0_4:
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
str x8, [sp, #8] ; 8-byte Folded Spill
b LBB0_5
LBB0_5:
ldr x8, [sp, #8] ; 8-byte Folded Reload
str x8, [sp, #16]
ldr x1, [sp, #16]
ldur x8, [x29, #-16]
ldr w2, [x8, #4]
ldur x8, [x29, #-16]
ldr w3, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _format
stur x0, [x29, #-8]
b LBB0_6
LBB0_6:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "(unknown)"
l_.str.1: ; @.str.1
.asciz "%s:%d:%d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _token_pos ## -- Begin function token_pos
.p2align 4, 0x90
_token_pos: ## @token_pos
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB0_6
LBB0_2:
movq -24(%rbp), %rax
cmpq $0, (%rax)
je LBB0_4
## %bb.3:
movq -24(%rbp), %rax
movq (%rax), %rax
movq %rax, -40(%rbp) ## 8-byte Spill
jmp LBB0_5
LBB0_4:
leaq L_.str(%rip), %rax
movq %rax, -40(%rbp) ## 8-byte Spill
jmp LBB0_5
LBB0_5:
movq -40(%rbp), %rax ## 8-byte Reload
movq %rax, -32(%rbp)
movq -32(%rbp), %rsi
movq -16(%rbp), %rax
movl 4(%rax), %edx
movq -16(%rbp), %rax
movl (%rax), %ecx
leaq L_.str.1(%rip), %rdi
callq _format
movq %rax, -8(%rbp)
LBB0_6:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "(unknown)"
L_.str.1: ## @.str.1
.asciz "%s:%d:%d"
.subsections_via_symbols
| AnghaBench/8cc/extr_error.c_token_pos.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_intexpr_line
_read_intexpr_line: ; @read_intexpr_line
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
bl _make_vector
stur x0, [x29, #-8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _read_expand_newline
str x0, [sp, #16]
ldr x8, [sp, #16]
ldr x8, [x8]
adrp x9, _TNEWLINE@GOTPAGE
ldr x9, [x9, _TNEWLINE@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _is_ident
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
str x8, [sp, #8] ; 8-byte Folded Spill
bl _read_defined_op
mov x1, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _vec_push
b LBB0_9
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
adrp x9, _TIDENT@GOTPAGE
ldr x9, [x9, _TIDENT@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
adrp x8, _cpp_token_zero@GOTPAGE
ldr x8, [x8, _cpp_token_zero@GOTPAGEOFF]
ldr x1, [x8]
bl _vec_push
b LBB0_8
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
ldr x1, [sp, #16]
bl _vec_push
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
.cfi_endproc
; -- End function
.comm _TNEWLINE,8,3 ; @TNEWLINE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "defined"
.comm _TIDENT,8,3 ; @TIDENT
.comm _cpp_token_zero,8,3 ; @cpp_token_zero
.no_dead_strip _read_intexpr_line
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_intexpr_line
_read_intexpr_line: ## @read_intexpr_line
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movb $0, %al
callq _make_vector
movq %rax, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movb $0, %al
callq _read_expand_newline
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq _TNEWLINE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_3
## %bb.2:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _is_ident
cmpq $0, %rax
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq %rax, -24(%rbp) ## 8-byte Spill
movb $0, %al
callq _read_defined_op
movq -24(%rbp), %rdi ## 8-byte Reload
movq %rax, %rsi
callq _vec_push
jmp LBB0_9
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movq _TIDENT@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_7
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
movq _cpp_token_zero@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _vec_push
jmp LBB0_8
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _vec_push
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
.cfi_endproc
## -- End function
.comm _TNEWLINE,8,3 ## @TNEWLINE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "defined"
.comm _TIDENT,8,3 ## @TIDENT
.comm _cpp_token_zero,8,3 ## @cpp_token_zero
.no_dead_strip _read_intexpr_line
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_read_intexpr_line.c |
.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
mov x8, x0
sub x0, x29, #4
stur w8, [x29, #-4]
adrp x1, _now@GOTPAGE
ldr x1, [x1, _now@GOTPAGEOFF]
bl _localtime_r
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.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 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 %eax, %eax
movl %eax, %edi
callq _time
movl %eax, -4(%rbp)
leaq -4(%rbp), %rdi
movq _now@GOTPCREL(%rip), %rsi
callq _localtime_r
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _now,4,2 ## @now
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_init_now.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function print_error
_print_error: ; @print_error
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
stur w4, [x29, #-36]
ldr w9, [x8]
str w9, [sp, #28] ; 4-byte Folded Spill
ldr w0, [x8]
bl _fileno
bl _isatty
mov x8, x0
ldr w0, [sp, #28] ; 4-byte Folded Reload
subs x8, x8, #0
cset w8, ne
and w10, w8, #0x1
adrp x9, l_.str.1@PAGE
add x9, x9, l_.str.1@PAGEOFF
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
ands w10, w10, #0x1
csel x1, x8, x9, ne
ldur x8, [x29, #-24]
mov x9, sp
str x8, [x9]
bl _fprintf
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x10, [x29, #-8]
ldur x8, [x29, #-16]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x1, [x29, #-32]
ldur w2, [x29, #-36]
bl _vfprintf
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\033[1;31m[%s]\033[0m "
l_.str.1: ; @.str.1
.asciz "[%s] "
l_.str.2: ; @.str.2
.asciz "%s: %s: "
l_.str.3: ; @.str.3
.asciz "\n"
.no_dead_strip _print_error
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function print_error
_print_error: ## @print_error
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movl %r8d, -36(%rbp)
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -40(%rbp) ## 4-byte Spill
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _fileno
movl %eax, %edi
callq _isatty
movl -40(%rbp), %edi ## 4-byte Reload
movq %rax, %rcx
leaq L_.str.1(%rip), %rsi
leaq L_.str(%rip), %rax
cmpq $0, %rcx
cmovneq %rax, %rsi
movq -24(%rbp), %rdx
movb $0, %al
callq _fprintf
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -8(%rbp), %rdx
movq -16(%rbp), %rcx
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -32(%rbp), %rsi
movl -36(%rbp), %edx
callq _vfprintf
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _fprintf
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\033[1;31m[%s]\033[0m "
L_.str.1: ## @.str.1
.asciz "[%s] "
L_.str.2: ## @.str.2
.asciz "%s: %s: "
L_.str.3: ## @.str.3
.asciz "\n"
.no_dead_strip _print_error
.subsections_via_symbols
| AnghaBench/8cc/extr_error.c_print_error.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_include_next
_read_include_next: ; @read_include_next
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _std_include_path@GOTPAGE
ldr x8, [x8, _std_include_path@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
sub x1, x29, #20
bl _read_cpp_header_name
stur x0, [x29, #-32]
bl _expect_newline
ldur x8, [x29, #-32]
ldrsb w8, [x8]
subs w8, w8, #47
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
ldur x1, [x29, #-32]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov w2, #0
bl _try_include
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
b LBB0_18
LBB0_3:
b LBB0_17
LBB0_4:
ldur x8, [x29, #-16]
ldr w0, [x8]
bl _fullpath
stur x0, [x29, #-40]
stur wzr, [x29, #-44]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldur w9, [x29, #-44]
str w9, [sp, #28] ; 4-byte Folded Spill
ldr w0, [x8]
bl _vec_len
ldr w8, [sp, #28] ; 4-byte Folded Reload
subs w8, w8, w0
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w0, [x8]
ldur w1, [x29, #-44]
bl _vec_get
str x0, [sp, #40]
ldur x8, [x29, #-40]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr x1, [sp, #40]
ldur x2, [x29, #-32]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _format
bl _fullpath
mov x1, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
b LBB0_10
LBB0_8: ; in Loop: Header=BB0_5 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_5 Depth=1
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
b LBB0_5
LBB0_10:
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
b LBB0_11
LBB0_11: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldur w9, [x29, #-44]
str w9, [sp, #12] ; 4-byte Folded Spill
ldr w0, [x8]
bl _vec_len
ldr w8, [sp, #12] ; 4-byte Folded Reload
subs w8, w8, w0
cset w8, ge
tbnz w8, #0, LBB0_16
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=1
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w0, [x8]
ldur w1, [x29, #-44]
bl _vec_get
ldur x1, [x29, #-32]
mov w2, #0
bl _try_include
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
b LBB0_18
LBB0_14: ; in Loop: Header=BB0_11 Depth=1
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_11 Depth=1
ldur w8, [x29, #-44]
add w8, w8, #1
stur w8, [x29, #-44]
b LBB0_11
LBB0_16:
b LBB0_17
LBB0_17:
ldur x0, [x29, #-8]
ldur x2, [x29, #-32]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _errort
b LBB0_18
LBB0_18:
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "/"
.comm _std_include_path,4,2 ; @std_include_path
l_.str.1: ; @.str.1
.asciz "%s/%s"
l_.str.2: ; @.str.2
.asciz "cannot find header file: %s"
.no_dead_strip _read_include_next
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_include_next
_read_include_next: ## @read_include_next
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
leaq -20(%rbp), %rsi
callq _read_cpp_header_name
movq %rax, -32(%rbp)
movb $0, %al
callq _expect_newline
movq -32(%rbp), %rax
movsbl (%rax), %eax
cmpl $47, %eax
jne LBB0_4
## %bb.1:
movq -32(%rbp), %rsi
leaq L_.str(%rip), %rdi
xorl %edx, %edx
callq _try_include
cmpq $0, %rax
je LBB0_3
## %bb.2:
jmp LBB0_18
LBB0_3:
jmp LBB0_17
LBB0_4:
movq -16(%rbp), %rax
movl (%rax), %edi
callq _fullpath
movq %rax, -40(%rbp)
movl $0, -44(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
movl %eax, -60(%rbp) ## 4-byte Spill
movq _std_include_path@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _vec_len
movl %eax, %ecx
movl -60(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jge LBB0_10
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq _std_include_path@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl -44(%rbp), %esi
callq _vec_get
movq %rax, -56(%rbp)
movq -40(%rbp), %rax
movq %rax, -72(%rbp) ## 8-byte Spill
movq -56(%rbp), %rsi
movq -32(%rbp), %rdx
leaq L_.str.1(%rip), %rdi
callq _format
movl %eax, %edi
callq _fullpath
movq -72(%rbp), %rdi ## 8-byte Reload
movq %rax, %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_8
## %bb.7:
jmp LBB0_10
LBB0_8: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_5 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_5
LBB0_10:
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
LBB0_11: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
movl %eax, -76(%rbp) ## 4-byte Spill
movq _std_include_path@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _vec_len
movl %eax, %ecx
movl -76(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jge LBB0_16
## %bb.12: ## in Loop: Header=BB0_11 Depth=1
movq _std_include_path@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl -44(%rbp), %esi
callq _vec_get
movq %rax, %rdi
movq -32(%rbp), %rsi
xorl %edx, %edx
callq _try_include
cmpq $0, %rax
je LBB0_14
## %bb.13:
jmp LBB0_18
LBB0_14: ## in Loop: Header=BB0_11 Depth=1
jmp LBB0_15
LBB0_15: ## in Loop: Header=BB0_11 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_11
LBB0_16:
jmp LBB0_17
LBB0_17:
movq -8(%rbp), %rdi
movq -32(%rbp), %rdx
leaq L_.str.2(%rip), %rsi
callq _errort
LBB0_18:
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "/"
.comm _std_include_path,4,2 ## @std_include_path
L_.str.1: ## @.str.1
.asciz "%s/%s"
L_.str.2: ## @.str.2
.asciz "cannot find header file: %s"
.no_dead_strip _read_include_next
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_read_include_next.c |
.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:
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
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _vec_len
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
b LBB0_6
LBB0_2:
ldr x0, [sp, #8]
bl _vec_head
adrp x8, _KHASHHASH@GOTPAGE
ldr x8, [x8, _KHASHHASH@GOTPAGEOFF]
ldr w1, [x8]
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x0, [sp, #8]
bl _vec_head
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _errort
b LBB0_4
LBB0_4:
ldr x0, [sp, #8]
bl _vec_tail
adrp x8, _KHASHHASH@GOTPAGE
ldr x8, [x8, _KHASHHASH@GOTPAGEOFF]
ldr w1, [x8]
bl _is_keyword
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x0, [sp, #8]
bl _vec_tail
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _errort
b LBB0_6
LBB0_6:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.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 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
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rdi
callq _vec_len
cmpq $0, %rax
jne LBB0_2
## %bb.1:
jmp LBB0_6
LBB0_2:
movq -8(%rbp), %rdi
callq _vec_head
movl %eax, %edi
movq _KHASHHASH@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_4
## %bb.3:
movq -8(%rbp), %rdi
callq _vec_head
movl %eax, %edi
leaq L_.str(%rip), %rsi
callq _errort
LBB0_4:
movq -8(%rbp), %rdi
callq _vec_tail
movl %eax, %edi
movq _KHASHHASH@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _is_keyword
cmpq $0, %rax
je LBB0_6
## %bb.5:
movq -8(%rbp), %rdi
callq _vec_tail
movl %eax, %edi
leaq L_.str.1(%rip), %rsi
callq _errort
LBB0_6:
addq $16, %rsp
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
| AnghaBench/8cc/extr_cpp.c_hashhash_check.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _write_utf8 ; -- Begin function write_utf8
.p2align 2
_write_utf8: ; @write_utf8
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
stur x0, [x29, #-8]
stur w1, [x29, #-12]
ldur w8, [x29, #-12]
subs w8, w8, #128
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x0, [x29, #-8]
ldur w1, [x29, #-12]
bl _buf_write
b LBB0_9
LBB0_2:
ldur w8, [x29, #-12]
subs w8, w8, #2048
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur x0, [x29, #-8]
ldur w9, [x29, #-12]
mov w8, #192
orr w1, w8, w9, asr #6
bl _buf_write
ldur x0, [x29, #-8]
ldur w8, [x29, #-12]
and w9, w8, #0x3f
mov w8, #128
orr w1, w8, w9
bl _buf_write
b LBB0_9
LBB0_4:
ldur w8, [x29, #-12]
subs w8, w8, #16, lsl #12 ; =65536
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldur x0, [x29, #-8]
ldur w9, [x29, #-12]
mov w8, #224
orr w1, w8, w9, asr #12
bl _buf_write
ldur x0, [x29, #-8]
ldur w8, [x29, #-12]
asr w8, w8, #6
and w9, w8, #0x3f
mov w8, #128
str w8, [sp, #16] ; 4-byte Folded Spill
orr w1, w8, w9
bl _buf_write
ldr w8, [sp, #16] ; 4-byte Folded Reload
ldur x0, [x29, #-8]
ldur w9, [x29, #-12]
and w9, w9, #0x3f
orr w1, w8, w9
bl _buf_write
b LBB0_9
LBB0_6:
ldur w8, [x29, #-12]
subs w8, w8, #512, lsl #12 ; =2097152
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldur x0, [x29, #-8]
ldur w9, [x29, #-12]
mov w8, #240
orr w1, w8, w9, asr #18
bl _buf_write
ldur x0, [x29, #-8]
ldur w8, [x29, #-12]
asr w8, w8, #12
and w9, w8, #0x3f
mov w8, #128
str w8, [sp, #12] ; 4-byte Folded Spill
orr w1, w8, w9
bl _buf_write
ldr w8, [sp, #12] ; 4-byte Folded Reload
ldur x0, [x29, #-8]
ldur w9, [x29, #-12]
asr w9, w9, #6
and w9, w9, #0x3f
orr w1, w8, w9
bl _buf_write
ldr w8, [sp, #12] ; 4-byte Folded Reload
ldur x0, [x29, #-8]
ldur w9, [x29, #-12]
and w9, w9, #0x3f
orr w1, w8, w9
bl _buf_write
b LBB0_9
LBB0_8:
ldur w1, [x29, #-12]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _error
b LBB0_9
LBB0_9:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "invalid UCS character: \\U%08x"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _write_utf8 ## -- Begin function write_utf8
.p2align 4, 0x90
_write_utf8: ## @write_utf8
.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
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
cmpl $128, -12(%rbp)
jge LBB0_2
## %bb.1:
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
callq _buf_write
jmp LBB0_9
LBB0_2:
cmpl $2048, -12(%rbp) ## imm = 0x800
jge LBB0_4
## %bb.3:
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
sarl $6, %esi
orl $192, %esi
callq _buf_write
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
andl $63, %esi
orl $128, %esi
callq _buf_write
jmp LBB0_9
LBB0_4:
cmpl $65536, -12(%rbp) ## imm = 0x10000
jge LBB0_6
## %bb.5:
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
sarl $12, %esi
orl $224, %esi
callq _buf_write
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
sarl $6, %esi
andl $63, %esi
orl $128, %esi
callq _buf_write
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
andl $63, %esi
orl $128, %esi
callq _buf_write
jmp LBB0_9
LBB0_6:
cmpl $2097152, -12(%rbp) ## imm = 0x200000
jge LBB0_8
## %bb.7:
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
sarl $18, %esi
orl $240, %esi
callq _buf_write
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
sarl $12, %esi
andl $63, %esi
orl $128, %esi
callq _buf_write
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
sarl $6, %esi
andl $63, %esi
orl $128, %esi
callq _buf_write
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
andl $63, %esi
orl $128, %esi
callq _buf_write
jmp LBB0_9
LBB0_8:
movl -12(%rbp), %esi
leaq L_.str(%rip), %rdi
callq _error
LBB0_9:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "invalid UCS character: \\U%08x"
.subsections_via_symbols
| AnghaBench/8cc/extr_encoding.c_write_utf8.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_include
_read_include: ; @read_include
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
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
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur w2, [x29, #-20]
ldur x0, [x29, #-8]
sub x1, x29, #24
bl _read_cpp_header_name
str x0, [sp, #32]
bl _expect_newline
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #47
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
ldr x1, [sp, #32]
ldur w2, [x29, #-20]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _try_include
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
b LBB0_19
LBB0_3:
b LBB0_18
LBB0_4:
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_5
LBB0_5:
ldur x8, [x29, #-16]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldur x8, [x29, #-16]
ldr x0, [x8]
bl _strdup
bl _dirname
str x0, [sp, #8] ; 8-byte Folded Spill
b LBB0_8
LBB0_7:
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [sp, #8] ; 8-byte Folded Spill
b LBB0_8
LBB0_8:
ldr x8, [sp, #8] ; 8-byte Folded Reload
str x8, [sp, #24]
ldr x0, [sp, #24]
ldr x1, [sp, #32]
ldur w2, [x29, #-20]
bl _try_include
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
b LBB0_19
LBB0_10:
b LBB0_11
LBB0_11:
str wzr, [sp, #20]
b LBB0_12
LBB0_12: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
str w8, [sp, #4] ; 4-byte Folded Spill
adrp x8, _std_include_path@GOTPAGE
ldr x8, [x8, _std_include_path@GOTPAGEOFF]
ldr w0, [x8]
bl _vec_len
ldr w8, [sp, #4] ; 4-byte Folded Reload
subs w8, w8, w0
cset w8, ge
tbnz w8, #0, LBB0_17
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_12 Depth=1
adrp x8, _std_include_path@GOTPAGE
ldr x8, [x8, _std_include_path@GOTPAGEOFF]
ldr w0, [x8]
ldr w1, [sp, #20]
bl _vec_get
ldr x1, [sp, #32]
ldur w2, [x29, #-20]
bl _try_include
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
b LBB0_19
LBB0_15: ; in Loop: Header=BB0_12 Depth=1
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_12
LBB0_17:
b LBB0_18
LBB0_18:
ldur x0, [x29, #-8]
ldr x2, [sp, #32]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _errort
b LBB0_19
LBB0_19:
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "/"
l_.str.1: ; @.str.1
.asciz "."
.comm _std_include_path,4,2 ; @std_include_path
l_.str.2: ; @.str.2
.asciz "cannot find header file: %s"
.no_dead_strip _read_include
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_include
_read_include: ## @read_include
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl %edx, -20(%rbp)
movq -8(%rbp), %rdi
leaq -24(%rbp), %rsi
callq _read_cpp_header_name
movq %rax, -32(%rbp)
movb $0, %al
callq _expect_newline
movq -32(%rbp), %rax
movsbl (%rax), %eax
cmpl $47, %eax
jne LBB0_4
## %bb.1:
movq -32(%rbp), %rsi
movl -20(%rbp), %edx
leaq L_.str(%rip), %rdi
callq _try_include
cmpq $0, %rax
je LBB0_3
## %bb.2:
jmp LBB0_19
LBB0_3:
jmp LBB0_18
LBB0_4:
cmpl $0, -24(%rbp)
jne LBB0_11
## %bb.5:
movq -16(%rbp), %rax
cmpq $0, (%rax)
je LBB0_7
## %bb.6:
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _strdup
movl %eax, %edi
callq _dirname
movq %rax, -56(%rbp) ## 8-byte Spill
jmp LBB0_8
LBB0_7:
leaq L_.str.1(%rip), %rax
movq %rax, -56(%rbp) ## 8-byte Spill
jmp LBB0_8
LBB0_8:
movq -56(%rbp), %rax ## 8-byte Reload
movq %rax, -40(%rbp)
movq -40(%rbp), %rdi
movq -32(%rbp), %rsi
movl -20(%rbp), %edx
callq _try_include
cmpq $0, %rax
je LBB0_10
## %bb.9:
jmp LBB0_19
LBB0_10:
jmp LBB0_11
LBB0_11:
movl $0, -44(%rbp)
LBB0_12: ## =>This Inner Loop Header: Depth=1
movl -44(%rbp), %eax
movl %eax, -60(%rbp) ## 4-byte Spill
movq _std_include_path@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _vec_len
movl %eax, %ecx
movl -60(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jge LBB0_17
## %bb.13: ## in Loop: Header=BB0_12 Depth=1
movq _std_include_path@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl -44(%rbp), %esi
callq _vec_get
movq %rax, %rdi
movq -32(%rbp), %rsi
movl -20(%rbp), %edx
callq _try_include
cmpq $0, %rax
je LBB0_15
## %bb.14:
jmp LBB0_19
LBB0_15: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_16
LBB0_16: ## in Loop: Header=BB0_12 Depth=1
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_12
LBB0_17:
jmp LBB0_18
LBB0_18:
movq -8(%rbp), %rdi
movq -32(%rbp), %rdx
leaq L_.str.2(%rip), %rsi
callq _errort
LBB0_19:
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "/"
L_.str.1: ## @.str.1
.asciz "."
.comm _std_include_path,4,2 ## @std_include_path
L_.str.2: ## @.str.2
.asciz "cannot find header file: %s"
.no_dead_strip _read_include
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_read_include.c |
.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, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str x0, [sp, #32]
ldr x8, [sp, #32]
ldr x0, [x8]
bl _localtime
mov x3, x0
sub x0, x29, #38
str x0, [sp, #8] ; 8-byte Folded Spill
mov w1, #30
adrp x2, l_.str@PAGE
add x2, x2, l_.str@PAGEOFF
bl _strftime
ldr x0, [sp, #8] ; 8-byte Folded Reload
ldr x8, [sp, #32]
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x8, _TSTRING@GOTPAGE
ldr x8, [x8, _TSTRING@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #20] ; 4-byte Folded Spill
bl _strdup
ldr w1, [sp, #20] ; 4-byte Folded Reload
mov x2, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _make_token_pushback
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl ___stack_chk_fail
LBB0_2:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.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 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
subq $80, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -56(%rbp)
leaq -48(%rbp), %rax
movq %rax, -80(%rbp) ## 8-byte Spill
movq -56(%rbp), %rax
movq (%rax), %rdi
callq _localtime
movq -80(%rbp), %rdi ## 8-byte Reload
movl %eax, %ecx
movl $30, %esi
leaq L_.str(%rip), %rdx
callq _strftime
movq -56(%rbp), %rax
movq %rax, -72(%rbp) ## 8-byte Spill
movq _TSTRING@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -60(%rbp) ## 4-byte Spill
leaq -48(%rbp), %rdi
callq _strdup
movq -72(%rbp), %rdi ## 8-byte Reload
movl -60(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
callq _make_token_pushback
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_2
## %bb.1:
addq $80, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.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 |
.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:
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 w0, #24
bl _malloc
str x0, [sp, #8]
adrp x8, _INIT_SIZE@GOTPAGE
ldr x8, [x8, _INIT_SIZE@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
ldr w0, [x8]
bl _malloc
ldr x8, [sp] ; 8-byte Folded Reload
ldr x9, [sp, #8]
str x0, [x9, #16]
ldr w8, [x8]
ldr x9, [sp, #8]
str w8, [x9]
ldr x8, [sp, #8]
str xzr, [x8, #8]
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.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 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
subq $16, %rsp
movl $24, %edi
callq _malloc
movq %rax, -8(%rbp)
movq _INIT_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _malloc
movq %rax, %rcx
movq -8(%rbp), %rax
movq %rcx, 16(%rax)
movq _INIT_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -8(%rbp), %rax
movl %ecx, (%rax)
movq -8(%rbp), %rax
movq $0, 8(%rax)
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _INIT_SIZE,4,2 ## @INIT_SIZE
.subsections_via_symbols
| AnghaBench/8cc/extr_buffer.c_make_buffer.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function write32
_write32: ; @write32
.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
str x0, [sp, #8]
str w1, [sp, #4]
ldr x0, [sp, #8]
ldrh w1, [sp, #4]
bl _write16
ldr x0, [sp, #8]
ldr w8, [sp, #4]
asr w1, w8, #16
bl _write16
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _write32
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function write32
_write32: ## @write32
.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
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
andl $65535, %esi ## imm = 0xFFFF
callq _write16
movq -8(%rbp), %rdi
movl -12(%rbp), %esi
sarl $16, %esi
callq _write16
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _write32
.subsections_via_symbols
| AnghaBench/8cc/extr_encoding.c_write32.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_ifndef
_read_ifndef: ; @read_ifndef
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
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
bl _lex
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
ldr x8, [x8]
adrp x9, _TIDENT@GOTPAGE
ldr x9, [x9, _TIDENT@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-8]
str x8, [sp, #8] ; 8-byte Folded Spill
ldur x0, [x29, #-8]
bl _tok2s
mov x2, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _errort
b LBB0_2
LBB0_2:
bl _expect_newline
adrp x8, _macros@GOTPAGE
ldr x8, [x8, _macros@GOTPAGEOFF]
ldr w0, [x8]
ldur x8, [x29, #-8]
ldr w1, [x8, #16]
bl _map_get
subs w8, w0, #0
cset w8, eq
and w0, w8, #0x1
bl _do_read_if
ldur x8, [x29, #-8]
ldr w8, [x8, #8]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x8, _cond_incl_stack@GOTPAGE
ldr x8, [x8, _cond_incl_stack@GOTPAGEOFF]
ldr w0, [x8]
bl _vec_tail
str x0, [sp, #16]
ldur x8, [x29, #-8]
ldr w8, [x8, #16]
ldr x9, [sp, #16]
str w8, [x9, #4]
ldur x8, [x29, #-8]
ldr w8, [x8, #12]
ldr x9, [sp, #16]
str w8, [x9]
b LBB0_4
LBB0_4:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.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 _cond_incl_stack,4,2 ; @cond_incl_stack
.no_dead_strip _read_ifndef
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_ifndef
_read_ifndef: ## @read_ifndef
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movb $0, %al
callq _lex
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movq _TIDENT@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_2
## %bb.1:
movq -8(%rbp), %rax
movq %rax, -24(%rbp) ## 8-byte Spill
movq -8(%rbp), %rdi
callq _tok2s
movq -24(%rbp), %rdi ## 8-byte Reload
movl %eax, %edx
leaq L_.str(%rip), %rsi
callq _errort
LBB0_2:
movb $0, %al
callq _expect_newline
movq _macros@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -8(%rbp), %rax
movl 16(%rax), %esi
callq _map_get
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %edi
callq _do_read_if
movq -8(%rbp), %rax
cmpl $2, 8(%rax)
jne LBB0_4
## %bb.3:
movq _cond_incl_stack@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _vec_tail
movq %rax, -16(%rbp)
movq -8(%rbp), %rax
movl 16(%rax), %ecx
movq -16(%rbp), %rax
movl %ecx, 4(%rax)
movq -8(%rbp), %rax
movl 12(%rax), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
LBB0_4:
addq $32, %rsp
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 _cond_incl_stack,4,2 ## @cond_incl_stack
.no_dead_strip _read_ifndef
.subsections_via_symbols
| AnghaBench/8cc/extr_cpp.c_read_ifndef.c |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 35