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
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _buf_body ; -- Begin function buf_body .p2align 2 _buf_body: ; @buf_body .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldr x0, [x8] add sp, sp, #16 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_body ## -- Begin function buf_body .p2align 4, 0x90 _buf_body: ## @buf_body .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq (%rax), %rax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_buf_body.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_time_macro _handle_time_macro: ; @handle_time_macro .cfi_startproc ; %bb.0: sub sp, sp, #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 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #32] sub x0, x29, #18 str x0, [sp, #8] ; 8-byte Folded Spill mov w1, #10 adrp x2, l_.str@PAGE add x2, x2, l_.str@PAGEOFF adrp x3, _now@GOTPAGE ldr x3, [x3, _now@GOTPAGEOFF] 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, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%T" .comm _now,4,2 ; @now .comm _TSTRING,4,2 ; @TSTRING .no_dead_strip _handle_time_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_time_macro _handle_time_macro: ## @handle_time_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -32(%rbp) leaq -18(%rbp), %rdi movl $10, %esi leaq L_.str(%rip), %rdx movq _now@GOTPCREL(%rip), %rcx callq _strftime movq -32(%rbp), %rax movq %rax, -48(%rbp) ## 8-byte Spill movq _TSTRING@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -36(%rbp) ## 4-byte Spill leaq -18(%rbp), %rdi callq _strdup movq -48(%rbp), %rdi ## 8-byte Reload movl -36(%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 $48, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%T" .comm _now,4,2 ## @now .comm _TSTRING,4,2 ## @TSTRING .no_dead_strip _handle_time_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_time_macro.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function write16 _write16: ; @write16 .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] ldrb w1, [sp, #4] bl _buf_write ldr x0, [sp, #8] ldr w8, [sp, #4] asr w1, w8, #8 bl _buf_write ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .no_dead_strip _write16 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function write16 _write16: ## @write16 .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 $255, %esi callq _buf_write movq -8(%rbp), %rdi movl -12(%rbp), %esi sarl $8, %esi callq _buf_write addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _write16 .subsections_via_symbols
AnghaBench/8cc/extr_encoding.c_write16.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_ifdef _read_ifdef: ; @read_ifdef .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] ldr x8, [sp, #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: ldr x8, [sp, #8] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #8] bl _tok2s mov x2, x0 ldr x0, [sp] ; 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] ldr x8, [sp, #8] ldr w1, [x8, #8] bl _map_get bl _do_read_if ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 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 .no_dead_strip _read_ifdef .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_ifdef _read_ifdef: ## @read_ifdef .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) 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, -16(%rbp) ## 8-byte Spill movq -8(%rbp), %rdi callq _tok2s movq -16(%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 8(%rax), %esi callq _map_get movl %eax, %edi callq _do_read_if addq $16, %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 .no_dead_strip _read_ifdef .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_ifdef.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function print _print: ; @print .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp 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] sturb w1, [x29, #-9] ldursb w0, [x29, #-9] bl _quote str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur x0, [x29, #-8] ldr x8, [sp, #8] mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _buf_printf b LBB0_6 LBB0_2: ldursb w0, [x29, #-9] bl _isprint subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur x0, [x29, #-8] ldursb w10, [x29, #-9] 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_5 LBB0_4: ldur x0, [x29, #-8] ldursb w10, [x29, #-9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _buf_printf b LBB0_5 LBB0_5: b LBB0_6 LBB0_6: 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" l_.str.1: ; @.str.1 .asciz "%c" l_.str.2: ; @.str.2 .asciz "\\x%02x" .no_dead_strip _print .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function print _print: ## @print .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movb %sil, %al movq %rdi, -8(%rbp) movb %al, -9(%rbp) movsbl -9(%rbp), %edi callq _quote movq %rax, -24(%rbp) cmpq $0, -24(%rbp) je LBB0_2 ## %bb.1: movq -8(%rbp), %rdi movq -24(%rbp), %rdx leaq L_.str(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_6 LBB0_2: movsbl -9(%rbp), %edi callq _isprint cmpq $0, %rax je LBB0_4 ## %bb.3: movq -8(%rbp), %rdi movsbl -9(%rbp), %edx leaq L_.str.1(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_5 LBB0_4: movq -8(%rbp), %rdi movsbl -9(%rbp), %edx leaq L_.str.2(%rip), %rsi movb $0, %al callq _buf_printf LBB0_5: jmp LBB0_6 LBB0_6: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" L_.str.1: ## @.str.1 .asciz "%c" L_.str.2: ## @.str.2 .asciz "\\x%02x" .no_dead_strip _print .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_print.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_pragma_macro _handle_pragma_macro: ; @handle_pragma_macro .cfi_startproc ; %bb.0: 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, #40 bl _expect bl _read_token str x0, [sp, #16] ldr x8, [sp, #16] ldr x8, [x8] adrp x9, _TSTRING@GOTPAGE ldr x9, [x9, _TSTRING@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] str x8, [sp, #8] ; 8-byte Folded Spill ldr x0, [sp, #16] 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: mov w0, #41 bl _expect ldr x0, [sp, #16] bl _parse_pragma_operand ldur x0, [x29, #-8] adrp x8, _TNUMBER@GOTPAGE ldr x8, [x8, _TNUMBER@GOTPAGEOFF] ldr w1, [x8] adrp x2, l_.str.1@PAGE add x2, x2, l_.str.1@PAGEOFF bl _make_token_pushback ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .comm _TSTRING,8,3 ; @TSTRING .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "_Pragma takes a string literal, but got %s" .comm _TNUMBER,4,2 ; @TNUMBER l_.str.1: ; @.str.1 .asciz "1" .no_dead_strip _handle_pragma_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_pragma_macro _handle_pragma_macro: ## @handle_pragma_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl $40, %edi callq _expect movb $0, %al callq _read_token movq %rax, -16(%rbp) movq -16(%rbp), %rax movq (%rax), %rax movq _TSTRING@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_2 ## %bb.1: movq -16(%rbp), %rax movq %rax, -24(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi callq _tok2s movq -24(%rbp), %rdi ## 8-byte Reload movl %eax, %edx leaq L_.str(%rip), %rsi callq _errort LBB0_2: movl $41, %edi callq _expect movq -16(%rbp), %rdi callq _parse_pragma_operand movq -8(%rbp), %rdi movq _TNUMBER@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str.1(%rip), %rdx callq _make_token_pushback addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _TSTRING,8,3 ## @TSTRING .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "_Pragma takes a string literal, but got %s" .comm _TNUMBER,4,2 ## @TNUMBER L_.str.1: ## @.str.1 .asciz "1" .no_dead_strip _handle_pragma_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_pragma_macro.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _quote_cstring_len ; -- Begin function quote_cstring_len .p2align 2 _quote_cstring_len: ; @quote_cstring_len .cfi_startproc ; %bb.0: 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] bl _make_buffer str x0, [sp, #8] str wzr, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldur w9, [x29, #-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 ldr x0, [sp, #8] ldur x8, [x29, #-8] ldrsw x9, [sp, #4] ldrsb w1, [x8, x9] bl _print b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_1 LBB0_4: ldr x0, [sp, #8] bl _buf_body 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 _quote_cstring_len ## -- Begin function quote_cstring_len .p2align 4, 0x90 _quote_cstring_len: ## @quote_cstring_len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%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 cmpl -12(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rdi movq -8(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %esi callq _print ## %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), %rdi callq _buf_body addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_quote_cstring_len.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _to_utf32 ; -- Begin function to_utf32 .p2align 2 _to_utf32: ; @to_utf32 .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 w1, [x29, #-12] bl _make_buffer str x0, [sp, #24] ldur x8, [x29, #-8] ldursw x9, [x29, #-12] add x8, x8, x9 str x8, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x1, [x29, #-8] ldr x2, [sp, #16] add x0, sp, #12 bl _read_rune ldur x8, [x29, #-8] add x8, x8, w0, sxtw stur x8, [x29, #-8] ldr x0, [sp, #24] ldr w1, [sp, #12] bl _write32 b LBB0_1 LBB0_3: ldr x0, [sp, #24] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _to_utf32 ## -- Begin function to_utf32 .p2align 4, 0x90 _to_utf32: ## @to_utf32 .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) movl %esi, -12(%rbp) movb $0, %al callq _make_buffer movq %rax, -24(%rbp) movq -8(%rbp), %rax movslq -12(%rbp), %rcx addq %rcx, %rax movq %rax, -32(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax cmpq -32(%rbp), %rax je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rsi movq -32(%rbp), %rdx leaq -36(%rbp), %rdi callq _read_rune movl %eax, %ecx movq -8(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -8(%rbp) movq -24(%rbp), %rdi movl -36(%rbp), %esi callq _write32 jmp LBB0_1 LBB0_3: movq -24(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
AnghaBench/8cc/extr_encoding.c_to_utf32.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_if _read_if: ; @read_if .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 bl _read_constexpr bl _do_read_if ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _read_if .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_if _read_if: ## @read_if .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb $0, %al callq _read_constexpr movl %eax, %edi callq _do_read_if popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _read_if .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_if.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_line_macro _handle_line_macro: ; @handle_line_macro .cfi_startproc ; %bb.0: 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] str x8, [sp, #16] ; 8-byte Folded Spill adrp x8, _TNUMBER@GOTPAGE ldr x8, [x8, _TNUMBER@GOTPAGEOFF] ldr w8, [x8] str w8, [sp, #12] ; 4-byte Folded Spill ldur x8, [x29, #-8] ldr x8, [x8] ldr w1, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _format ldr w1, [sp, #12] ; 4-byte Folded Reload mov x2, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload bl _make_token_pushback ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .comm _TNUMBER,4,2 ; @TNUMBER .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" .no_dead_strip _handle_line_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_line_macro _handle_line_macro: ## @handle_line_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) ## 8-byte Spill movq _TNUMBER@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -12(%rbp) ## 4-byte Spill movq -8(%rbp), %rax movq (%rax), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi callq _format movq -24(%rbp), %rdi ## 8-byte Reload movl -12(%rbp), %esi ## 4-byte Reload movl %eax, %edx callq _make_token_pushback addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _TNUMBER,4,2 ## @TNUMBER .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .no_dead_strip _handle_line_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_line_macro.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _to_utf16 ; -- Begin function to_utf16 .p2align 2 _to_utf16: ; @to_utf16 .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 w1, [x29, #-12] bl _make_buffer str x0, [sp, #24] ldur x8, [x29, #-8] ldursw x9, [x29, #-12] add x8, x8, x9 str x8, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x1, [x29, #-8] ldr x2, [sp, #16] add x0, sp, #12 bl _read_rune ldur x8, [x29, #-8] add x8, x8, w0, sxtw stur x8, [x29, #-8] ldr w8, [sp, #12] subs w8, w8, #16, lsl #12 ; =65536 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #24] ldr w1, [sp, #12] bl _write16 b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #24] ldr w9, [sp, #12] mov w8, #55232 add w1, w8, w9, asr #10 bl _write16 ldr x0, [sp, #24] ldr w8, [sp, #12] and w8, w8, #0x3ff mov w9, #56320 add w1, w8, w9 bl _write16 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_6: ldr x0, [sp, #24] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _to_utf16 ## -- Begin function to_utf16 .p2align 4, 0x90 _to_utf16: ## @to_utf16 .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) movl %esi, -12(%rbp) movb $0, %al callq _make_buffer movq %rax, -24(%rbp) movq -8(%rbp), %rax movslq -12(%rbp), %rcx addq %rcx, %rax movq %rax, -32(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax cmpq -32(%rbp), %rax je LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rsi movq -32(%rbp), %rdx leaq -36(%rbp), %rdi callq _read_rune movl %eax, %ecx movq -8(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -8(%rbp) cmpl $65536, -36(%rbp) ## imm = 0x10000 jge LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rdi movl -36(%rbp), %esi callq _write16 jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rdi movl -36(%rbp), %esi sarl $10, %esi addl $55232, %esi ## imm = 0xD7C0 callq _write16 movq -24(%rbp), %rdi movl -36(%rbp), %esi andl $1023, %esi ## imm = 0x3FF addl $56320, %esi ## imm = 0xDC00 callq _write16 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_6: movq -24(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
AnghaBench/8cc/extr_encoding.c_to_utf16.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_ident _read_ident: ; @read_ident .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] ldr x8, [sp, #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: ldr x8, [sp, #8] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #8] bl _tok2s mov x2, x0 ldr x0, [sp] ; 8-byte Folded Reload adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _errort b LBB0_2 LBB0_2: ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _TIDENT,8,3 ; @TIDENT .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "identifier expected, but got %s" .no_dead_strip _read_ident .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_ident _read_ident: ## @read_ident .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) 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, -16(%rbp) ## 8-byte Spill movq -8(%rbp), %rdi callq _tok2s movq -16(%rbp), %rdi ## 8-byte Reload movl %eax, %edx leaq L_.str(%rip), %rsi callq _errort LBB0_2: movq -8(%rbp), %rax addq $16, %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" .no_dead_strip _read_ident .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_ident.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _buf_write ; -- Begin function buf_write .p2align 2 _buf_write: ; @buf_write .cfi_startproc ; %bb.0: 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] strb w1, [sp, #7] ldr x8, [sp, #8] ldr x8, [x8] ldr x9, [sp, #8] ldr x9, [x9, #8] add x9, x9, #1 subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x0, [sp, #8] bl _realloc_body b LBB0_2 LBB0_2: ldrb w8, [sp, #7] ldr x9, [sp, #8] ldr x9, [x9, #16] ldr x12, [sp, #8] ldr x10, [x12, #8] add x11, x10, #1 str x11, [x12, #8] add x9, x9, x10 strb w8, [x9] 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 _buf_write ## -- Begin function buf_write .p2align 4, 0x90 _buf_write: ## @buf_write .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movb %sil, %al movq %rdi, -8(%rbp) movb %al, -9(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq -8(%rbp), %rcx movq 8(%rcx), %rcx addq $1, %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: movq -8(%rbp), %rdi callq _realloc_body LBB0_2: movb -9(%rbp), %dl movq -8(%rbp), %rax movq 16(%rax), %rax movq -8(%rbp), %rsi movq 8(%rsi), %rcx movq %rcx, %rdi addq $1, %rdi movq %rdi, 8(%rsi) movb %dl, (%rax,%rcx) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_buf_write.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_include_level_macro _handle_include_level_macro: ; @handle_include_level_macro .cfi_startproc ; %bb.0: 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] str x8, [sp, #16] ; 8-byte Folded Spill adrp x8, _TNUMBER@GOTPAGE ldr x8, [x8, _TNUMBER@GOTPAGEOFF] ldr w8, [x8] str w8, [sp, #12] ; 4-byte Folded Spill bl _stream_depth subs x1, x0, #1 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _format ldr w1, [sp, #12] ; 4-byte Folded Reload mov x2, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload bl _make_token_pushback ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .comm _TNUMBER,4,2 ; @TNUMBER .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" .no_dead_strip _handle_include_level_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_include_level_macro _handle_include_level_macro: ## @handle_include_level_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) ## 8-byte Spill movq _TNUMBER@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -12(%rbp) ## 4-byte Spill movb $0, %al callq _stream_depth movq %rax, %rsi subq $1, %rsi leaq L_.str(%rip), %rdi callq _format movq -24(%rbp), %rdi ## 8-byte Reload movl -12(%rbp), %esi ## 4-byte Reload movl %eax, %edx callq _make_token_pushback addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _TNUMBER,4,2 ## @TNUMBER .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .no_dead_strip _handle_include_level_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_include_level_macro.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_rune _read_rune: ; @read_rune .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] str x1, [sp, #24] str x2, [sp, #16] ldr x8, [sp, #24] ldrsb w0, [x8] bl _count_leading_ones str w0, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #24] ldrb w8, [x8] ldur x9, [x29, #-16] strb w8, [x9] mov w8, #1 stur w8, [x29, #-4] b LBB0_17 LBB0_2: ldr x8, [sp, #24] ldrsw x9, [sp, #12] add x8, x8, x9 ldr x9, [sp, #16] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _error b LBB0_4 LBB0_4: mov w8, #1 str w8, [sp, #8] b LBB0_5 LBB0_5: ; =>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_10 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #8] ldrsb w8, [x8, x9] and w8, w8, #0xc0 subs w8, w8, #128 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _error b LBB0_8 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_5 LBB0_10: ldr w8, [sp, #12] str w8, [sp, #4] ; 4-byte Folded Spill subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_13 b LBB0_11 LBB0_11: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ldr w8, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #4 cset w8, eq tbnz w8, #0, LBB0_15 b LBB0_16 LBB0_13: ldr x8, [sp, #24] ldrsb w8, [x8] and w9, w8, #0x1f ldr x8, [sp, #24] ldrsb w8, [x8, #1] bfi w8, w9, #6, #26 ldur x9, [x29, #-16] strb w8, [x9] mov w8, #2 stur w8, [x29, #-4] b LBB0_17 LBB0_14: ldr x8, [sp, #24] ldrsb w8, [x8] and w9, w8, #0xf ldr x8, [sp, #24] ldrsb w8, [x8, #1] and w8, w8, #0x3f lsl w8, w8, #6 orr w8, w8, w9, lsl #12 ldr x9, [sp, #24] ldrsb w9, [x9, #2] and w9, w9, #0x3f orr w8, w8, w9 ldur x9, [x29, #-16] strb w8, [x9] mov w8, #3 stur w8, [x29, #-4] b LBB0_17 LBB0_15: ldr x8, [sp, #24] ldrsb w8, [x8] and w9, w8, #0x7 ldr x8, [sp, #24] ldrsb w8, [x8, #1] and w8, w8, #0x3f lsl w8, w8, #12 orr w8, w8, w9, lsl #18 ldr x9, [sp, #24] ldrsb w9, [x9, #2] and w9, w9, #0x3f orr w8, w8, w9, lsl #6 ldr x9, [sp, #24] ldrsb w9, [x9, #3] and w9, w9, #0x3f orr w8, w8, w9 ldur x9, [x29, #-16] strb w8, [x9] mov w8, #4 stur w8, [x29, #-4] b LBB0_17 LBB0_16: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _error b LBB0_17 LBB0_17: ldur w0, [x29, #-4] 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 "invalid UTF-8 sequence" l_.str.1: ; @.str.1 .asciz "invalid UTF-8 continuation byte" .no_dead_strip _read_rune .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_rune _read_rune: ## @read_rune .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 %rsi, -24(%rbp) movq %rdx, -32(%rbp) movq -24(%rbp), %rax movsbl (%rax), %edi callq _count_leading_ones movl %eax, -36(%rbp) cmpl $0, -36(%rbp) jne LBB0_2 ## %bb.1: movq -24(%rbp), %rax movb (%rax), %cl movq -16(%rbp), %rax movb %cl, (%rax) movl $1, -4(%rbp) jmp LBB0_15 LBB0_2: movq -24(%rbp), %rax movslq -36(%rbp), %rcx addq %rcx, %rax cmpq -32(%rbp), %rax jbe LBB0_4 ## %bb.3: leaq L_.str(%rip), %rdi callq _error LBB0_4: movl $1, -40(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -40(%rbp), %eax cmpl -36(%rbp), %eax jge LBB0_10 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -24(%rbp), %rax movslq -40(%rbp), %rcx movsbl (%rax,%rcx), %eax andl $192, %eax cmpl $128, %eax je LBB0_8 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 leaq L_.str.1(%rip), %rdi callq _error LBB0_8: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_5 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB0_5 LBB0_10: movl -36(%rbp), %eax movl %eax, -44(%rbp) ## 4-byte Spill subl $2, %eax je LBB0_11 jmp LBB0_16 LBB0_16: movl -44(%rbp), %eax ## 4-byte Reload subl $3, %eax je LBB0_12 jmp LBB0_17 LBB0_17: movl -44(%rbp), %eax ## 4-byte Reload subl $4, %eax je LBB0_13 jmp LBB0_14 LBB0_11: movq -24(%rbp), %rax movsbl (%rax), %eax andl $31, %eax shll $6, %eax movq -24(%rbp), %rcx movsbl 1(%rcx), %ecx andl $63, %ecx orl %ecx, %eax movb %al, %cl movq -16(%rbp), %rax movb %cl, (%rax) movl $2, -4(%rbp) jmp LBB0_15 LBB0_12: movq -24(%rbp), %rax movsbl (%rax), %eax andl $15, %eax shll $12, %eax movq -24(%rbp), %rcx movsbl 1(%rcx), %ecx andl $63, %ecx shll $6, %ecx orl %ecx, %eax movq -24(%rbp), %rcx movsbl 2(%rcx), %ecx andl $63, %ecx orl %ecx, %eax movb %al, %cl movq -16(%rbp), %rax movb %cl, (%rax) movl $3, -4(%rbp) jmp LBB0_15 LBB0_13: movq -24(%rbp), %rax movsbl (%rax), %eax andl $7, %eax shll $18, %eax movq -24(%rbp), %rcx movsbl 1(%rcx), %ecx andl $63, %ecx shll $12, %ecx orl %ecx, %eax movq -24(%rbp), %rcx movsbl 2(%rcx), %ecx andl $63, %ecx shll $6, %ecx orl %ecx, %eax movq -24(%rbp), %rcx movsbl 3(%rcx), %ecx andl $63, %ecx orl %ecx, %eax movb %al, %cl movq -16(%rbp), %rax movb %cl, (%rax) movl $4, -4(%rbp) jmp LBB0_15 LBB0_14: leaq L_.str(%rip), %rdi callq _error LBB0_15: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "invalid UTF-8 sequence" L_.str.1: ## @.str.1 .asciz "invalid UTF-8 continuation byte" .no_dead_strip _read_rune .subsections_via_symbols
AnghaBench/8cc/extr_encoding.c_read_rune.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_funclike_macro_params _read_funclike_macro_params: ; @read_funclike_macro_params .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur wzr, [x29, #-28] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _lex stur x0, [x29, #-40] ldur x0, [x29, #-40] mov w1, #41 bl _is_keyword subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: stur wzr, [x29, #-4] b LBB0_16 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur x0, [x29, #-40] mov w1, #44 bl _is_keyword subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-40] stur x8, [x29, #-56] ; 8-byte Folded Spill ldur x0, [x29, #-40] bl _tok2s mov x10, x0 ldur x0, [x29, #-56] ; 8-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _errort b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 bl _lex stur x0, [x29, #-40] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-40] 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_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldur x0, [x29, #-16] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _errort b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldur x0, [x29, #-40] adrp x8, _KELLIPSIS@GOTPAGE ldr x8, [x8, _KELLIPSIS@GOTPAGEOFF] ldrsb w1, [x8] bl _is_keyword subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ldur x8, [x29, #-24] str x8, [sp, #56] ; 8-byte Folded Spill ldur w0, [x29, #-28] mov w1, #1 stur w1, [x29, #-60] ; 4-byte Folded Spill add w8, w0, #1 stur w8, [x29, #-28] bl _make_macro_token mov x2, x0 ldr x0, [sp, #56] ; 8-byte Folded Reload adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _map_put mov w0, #41 bl _expect ldur w8, [x29, #-60] ; 4-byte Folded Reload stur w8, [x29, #-4] b LBB0_16 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-40] 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_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-40] str x8, [sp, #48] ; 8-byte Folded Spill ldur x0, [x29, #-40] bl _tok2s mov x10, x0 ldr x0, [sp, #48] ; 8-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _errort b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-40] ldr x8, [x8, #8] stur x8, [x29, #-48] adrp x8, _KELLIPSIS@GOTPAGE ldr x8, [x8, _KELLIPSIS@GOTPAGEOFF] ldrsb w0, [x8] bl _next subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: mov w0, #41 bl _expect ldur x8, [x29, #-24] str x8, [sp, #32] ; 8-byte Folded Spill ldur x8, [x29, #-48] str x8, [sp, #24] ; 8-byte Folded Spill ldur w0, [x29, #-28] mov w1, #1 str w1, [sp, #44] ; 4-byte Folded Spill add w8, w0, #1 stur w8, [x29, #-28] bl _make_macro_token ldr x1, [sp, #24] ; 8-byte Folded Reload mov x2, x0 ldr x0, [sp, #32] ; 8-byte Folded Reload bl _map_put ldr w8, [sp, #44] ; 4-byte Folded Reload stur w8, [x29, #-4] b LBB0_16 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-24] str x8, [sp, #16] ; 8-byte Folded Spill ldur x8, [x29, #-48] str x8, [sp, #8] ; 8-byte Folded Spill ldur w0, [x29, #-28] add w8, w0, #1 stur w8, [x29, #-28] mov w1, #0 bl _make_macro_token ldr x1, [sp, #8] ; 8-byte Folded Reload mov x2, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload bl _map_put b LBB0_1 LBB0_16: ldur w0, [x29, #-4] ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz ", expected, but got %s" .comm _TNEWLINE,8,3 ; @TNEWLINE l_.str.1: ; @.str.1 .asciz "missing ')' in macro parameter list" .comm _KELLIPSIS,1,0 ; @KELLIPSIS l_.str.2: ; @.str.2 .asciz "__VA_ARGS__" .comm _TIDENT,8,3 ; @TIDENT l_.str.3: ; @.str.3 .asciz "identifier expected, but got %s" .no_dead_strip _read_funclike_macro_params .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_funclike_macro_params _read_funclike_macro_params: ## @read_funclike_macro_params .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $112, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl $0, -28(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movb $0, %al callq _lex movq %rax, -40(%rbp) movq -40(%rbp), %rdi movl $41, %esi callq _is_keyword cmpq $0, %rax je LBB0_3 ## %bb.2: movl $0, -4(%rbp) jmp LBB0_16 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -28(%rbp) je LBB0_7 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rdi movl $44, %esi callq _is_keyword cmpq $0, %rax jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movq %rax, -56(%rbp) ## 8-byte Spill movq -40(%rbp), %rdi callq _tok2s movq -56(%rbp), %rdi ## 8-byte Reload movl %eax, %edx leaq L_.str(%rip), %rsi movb $0, %al callq _errort LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movb $0, %al callq _lex movq %rax, -40(%rbp) LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movq (%rax), %rax movq _TNEWLINE@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_9 ## %bb.8: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _errort LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rdi movq _KELLIPSIS@GOTPCREL(%rip), %rax movsbl (%rax), %esi callq _is_keyword cmpq $0, %rax je LBB0_11 ## %bb.10: movq -24(%rbp), %rax movq %rax, -64(%rbp) ## 8-byte Spill movl -28(%rbp), %edi movl %edi, %eax addl $1, %eax movl %eax, -28(%rbp) movl $1, %esi callq _make_macro_token movq -64(%rbp), %rdi ## 8-byte Reload movl %eax, %edx leaq L_.str.2(%rip), %rsi callq _map_put movl $41, %edi callq _expect movl $1, -4(%rbp) jmp LBB0_16 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movq (%rax), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_13 ## %bb.12: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movq %rax, -72(%rbp) ## 8-byte Spill movq -40(%rbp), %rdi callq _tok2s movq -72(%rbp), %rdi ## 8-byte Reload movl %eax, %edx leaq L_.str.3(%rip), %rsi movb $0, %al callq _errort LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movq 8(%rax), %rax movq %rax, -48(%rbp) movq _KELLIPSIS@GOTPCREL(%rip), %rax movsbl (%rax), %edi callq _next cmpq $0, %rax je LBB0_15 ## %bb.14: movl $41, %edi callq _expect movq -24(%rbp), %rax movq %rax, -88(%rbp) ## 8-byte Spill movq -48(%rbp), %rax movq %rax, -80(%rbp) ## 8-byte Spill movl -28(%rbp), %edi movl %edi, %eax addl $1, %eax movl %eax, -28(%rbp) movl $1, %esi callq _make_macro_token movq -88(%rbp), %rdi ## 8-byte Reload movq -80(%rbp), %rsi ## 8-byte Reload movl %eax, %edx callq _map_put movl $1, -4(%rbp) jmp LBB0_16 LBB0_15: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movq %rax, -104(%rbp) ## 8-byte Spill movq -48(%rbp), %rax movq %rax, -96(%rbp) ## 8-byte Spill movl -28(%rbp), %edi movl %edi, %eax addl $1, %eax movl %eax, -28(%rbp) xorl %esi, %esi callq _make_macro_token movq -104(%rbp), %rdi ## 8-byte Reload movq -96(%rbp), %rsi ## 8-byte Reload movl %eax, %edx callq _map_put jmp LBB0_1 LBB0_16: movl -4(%rbp), %eax addq $112, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz ", expected, but got %s" .comm _TNEWLINE,8,3 ## @TNEWLINE L_.str.1: ## @.str.1 .asciz "missing ')' in macro parameter list" .comm _KELLIPSIS,1,0 ## @KELLIPSIS L_.str.2: ## @.str.2 .asciz "__VA_ARGS__" .comm _TIDENT,8,3 ## @TIDENT L_.str.3: ## @.str.3 .asciz "identifier expected, but got %s" .no_dead_strip _read_funclike_macro_params .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_funclike_macro_params.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function quote _quote: ; @quote .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #7] ldrsb w8, [sp, #7] str w8, [sp] ; 4-byte Folded Spill subs w8, w8, #8 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_1 LBB0_1: ldr w8, [sp] ; 4-byte Folded Reload subs w8, w8, #9 cset w8, eq tbnz w8, #0, LBB0_13 b LBB0_2 LBB0_2: ldr w8, [sp] ; 4-byte Folded Reload subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_3 LBB0_3: ldr w8, [sp] ; 4-byte Folded Reload subs w8, w8, #12 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_4 LBB0_4: ldr w8, [sp] ; 4-byte Folded Reload subs w8, w8, #13 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_5 LBB0_5: ldr w8, [sp] ; 4-byte Folded Reload subs w8, w8, #34 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ldr w8, [sp] ; 4-byte Folded Reload subs w8, w8, #92 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_14 LBB0_7: adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF str x8, [sp, #8] b LBB0_15 LBB0_8: adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF str x8, [sp, #8] b LBB0_15 LBB0_9: adrp x8, l_.str.2@PAGE add x8, x8, l_.str.2@PAGEOFF str x8, [sp, #8] b LBB0_15 LBB0_10: adrp x8, l_.str.3@PAGE add x8, x8, l_.str.3@PAGEOFF str x8, [sp, #8] b LBB0_15 LBB0_11: adrp x8, l_.str.4@PAGE add x8, x8, l_.str.4@PAGEOFF str x8, [sp, #8] b LBB0_15 LBB0_12: adrp x8, l_.str.5@PAGE add x8, x8, l_.str.5@PAGEOFF str x8, [sp, #8] b LBB0_15 LBB0_13: adrp x8, l_.str.6@PAGE add x8, x8, l_.str.6@PAGEOFF str x8, [sp, #8] b LBB0_15 LBB0_14: ; kill: def $x8 killed $xzr str xzr, [sp, #8] b LBB0_15 LBB0_15: ldr x0, [sp, #8] add sp, sp, #16 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 "\\b" l_.str.3: ; @.str.3 .asciz "\\f" l_.str.4: ; @.str.4 .asciz "\\n" l_.str.5: ; @.str.5 .asciz "\\r" l_.str.6: ; @.str.6 .asciz "\\t" .no_dead_strip _quote .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function quote _quote: ## @quote .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %dil, %al movb %al, -9(%rbp) movsbl -9(%rbp), %eax movl %eax, -16(%rbp) ## 4-byte Spill subl $8, %eax je LBB0_3 jmp LBB0_10 LBB0_10: movl -16(%rbp), %eax ## 4-byte Reload subl $9, %eax je LBB0_7 jmp LBB0_11 LBB0_11: movl -16(%rbp), %eax ## 4-byte Reload subl $10, %eax je LBB0_5 jmp LBB0_12 LBB0_12: movl -16(%rbp), %eax ## 4-byte Reload subl $12, %eax je LBB0_4 jmp LBB0_13 LBB0_13: movl -16(%rbp), %eax ## 4-byte Reload subl $13, %eax je LBB0_6 jmp LBB0_14 LBB0_14: movl -16(%rbp), %eax ## 4-byte Reload subl $34, %eax je LBB0_1 jmp LBB0_15 LBB0_15: movl -16(%rbp), %eax ## 4-byte Reload subl $92, %eax je LBB0_2 jmp LBB0_8 LBB0_1: leaq L_.str(%rip), %rax movq %rax, -8(%rbp) jmp LBB0_9 LBB0_2: leaq L_.str.1(%rip), %rax movq %rax, -8(%rbp) jmp LBB0_9 LBB0_3: leaq L_.str.2(%rip), %rax movq %rax, -8(%rbp) jmp LBB0_9 LBB0_4: leaq L_.str.3(%rip), %rax movq %rax, -8(%rbp) jmp LBB0_9 LBB0_5: leaq L_.str.4(%rip), %rax movq %rax, -8(%rbp) jmp LBB0_9 LBB0_6: leaq L_.str.5(%rip), %rax movq %rax, -8(%rbp) jmp LBB0_9 LBB0_7: leaq L_.str.6(%rip), %rax movq %rax, -8(%rbp) jmp LBB0_9 LBB0_8: movq $0, -8(%rbp) LBB0_9: movq -8(%rbp), %rax 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 "\\b" L_.str.3: ## @.str.3 .asciz "\\f" L_.str.4: ## @.str.4 .asciz "\\n" L_.str.5: ## @.str.5 .asciz "\\r" L_.str.6: ## @.str.6 .asciz "\\t" .no_dead_strip _quote .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_quote.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_file_macro _handle_file_macro: ; @handle_file_macro .cfi_startproc ; %bb.0: 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] adrp x8, _TSTRING@GOTPAGE ldr x8, [x8, _TSTRING@GOTPAGEOFF] ldr w1, [x8] ldr x8, [sp, #8] ldr x8, [x8] ldr w2, [x8] bl _make_token_pushback ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _TSTRING,4,2 ; @TSTRING .no_dead_strip _handle_file_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_file_macro _handle_file_macro: ## @handle_file_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi movq _TSTRING@GOTPCREL(%rip), %rax movl (%rax), %esi movq -8(%rbp), %rax movq (%rax), %rax movl (%rax), %edx callq _make_token_pushback addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _TSTRING,4,2 ## @TSTRING .no_dead_strip _handle_file_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_file_macro.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function count_leading_ones _count_leading_ones: ; @count_leading_ones .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, #11] mov w8, #7 str w8, [sp, #4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #11] ldr w10, [sp, #4] mov w9, #1 lsl w9, w9, w10 ands w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr w9, [sp, #4] mov w8, #7 subs w8, w8, w9 str w8, [sp, #12] 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 w8, [sp, #4] subs w8, w8, #1 str w8, [sp, #4] b LBB0_1 LBB0_6: mov w8, #8 str w8, [sp, #12] b LBB0_7 LBB0_7: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .no_dead_strip _count_leading_ones .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function count_leading_ones _count_leading_ones: ## @count_leading_ones .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movb %dil, %al movb %al, -5(%rbp) movl $7, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -12(%rbp) jl LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movsbl -5(%rbp), %eax movl -12(%rbp), %ecx movl $1, %edx ## kill: def $cl killed $ecx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0, %eax jne LBB0_4 ## %bb.3: movl $7, %eax subl -12(%rbp), %eax movl %eax, -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 movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_6: movl $8, -4(%rbp) LBB0_7: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _count_leading_ones .subsections_via_symbols
AnghaBench/8cc/extr_encoding.c_count_leading_ones.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_funclike_macro_body _read_funclike_macro_body: ; @read_funclike_macro_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] bl _make_vector str x0, [sp, #16] 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, _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: ldr x0, [sp, #16] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #8] 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_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur x0, [x29, #-8] ldr x8, [sp, #8] ldr w1, [x8, #12] bl _map_get str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp] bl _copy_token str x0, [sp] ldr x8, [sp, #8] ldr w8, [x8, #8] ldr x9, [sp] str w8, [x9, #8] ldr x0, [sp, #16] ldr x1, [sp] bl _vec_push b LBB0_1 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #16] ldr x1, [sp, #8] bl _vec_push b LBB0_1 .cfi_endproc ; -- End function .comm _TNEWLINE,8,3 ; @TNEWLINE .comm _TIDENT,8,3 ; @TIDENT .no_dead_strip _read_funclike_macro_body .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_funclike_macro_body _read_funclike_macro_body: ## @read_funclike_macro_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) 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: movq -16(%rbp), %rax addq $32, %rsp popq %rbp retq LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movq (%rax), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_7 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rdi movq -24(%rbp), %rax movl 12(%rax), %esi callq _map_get movq %rax, -32(%rbp) cmpq $0, -32(%rbp) je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movq -32(%rbp), %rdi callq _copy_token movq %rax, -32(%rbp) movq -24(%rbp), %rax movl 8(%rax), %ecx movq -32(%rbp), %rax movl %ecx, 8(%rax) movq -16(%rbp), %rdi movq -32(%rbp), %rsi callq _vec_push jmp LBB0_1 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rdi movq -24(%rbp), %rsi callq _vec_push jmp LBB0_1 .cfi_endproc ## -- End function .comm _TNEWLINE,8,3 ## @TNEWLINE .comm _TIDENT,8,3 ## @TIDENT .no_dead_strip _read_funclike_macro_body .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_funclike_macro_body.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_date_macro _handle_date_macro: ; @handle_date_macro .cfi_startproc ; %bb.0: sub sp, sp, #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 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #24] sub x0, x29, #28 str x0, [sp] ; 8-byte Folded Spill mov w1, #20 adrp x2, l_.str@PAGE add x2, x2, l_.str@PAGEOFF adrp x3, _now@GOTPAGE ldr x3, [x3, _now@GOTPAGEOFF] bl _strftime ldr x0, [sp] ; 8-byte Folded Reload ldr x8, [sp, #24] str x8, [sp, #16] ; 8-byte Folded Spill adrp x8, _TSTRING@GOTPAGE ldr x8, [x8, _TSTRING@GOTPAGEOFF] ldr w8, [x8] str w8, [sp, #12] ; 4-byte Folded Spill bl _strdup ldr w1, [sp, #12] ; 4-byte Folded Reload mov x2, x0 ldr x0, [sp, #16] ; 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, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%b %e %Y" .comm _now,4,2 ; @now .comm _TSTRING,4,2 ; @TSTRING .no_dead_strip _handle_date_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_date_macro _handle_date_macro: ## @handle_date_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -40(%rbp) leaq -32(%rbp), %rdi movl $20, %esi leaq L_.str(%rip), %rdx movq _now@GOTPCREL(%rip), %rcx callq _strftime movq -40(%rbp), %rax movq %rax, -56(%rbp) ## 8-byte Spill movq _TSTRING@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -44(%rbp) ## 4-byte Spill leaq -32(%rbp), %rdi callq _strdup movq -56(%rbp), %rdi ## 8-byte Reload movl -44(%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 $64, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%b %e %Y" .comm _now,4,2 ## @now .comm _TSTRING,4,2 ## @TSTRING .no_dead_strip _handle_date_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_date_macro.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _make_dict ; -- Begin function make_dict .p2align 2 _make_dict: ; @make_dict .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, #8 bl _malloc str x0, [sp, #8] bl _make_map ldr x8, [sp, #8] str w0, [x8, #4] bl _make_vector ldr x8, [sp, #8] str w0, [x8] 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 _make_dict ## -- Begin function make_dict .p2align 4, 0x90 _make_dict: ## @make_dict .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 $8, %edi callq _malloc movq %rax, -8(%rbp) movb $0, %al callq _make_map movl %eax, %ecx movq -8(%rbp), %rax movl %ecx, 4(%rax) movb $0, %al callq _make_vector movl %eax, %ecx movq -8(%rbp), %rax movl %ecx, (%rax) movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
AnghaBench/8cc/extr_dict.c_make_dict.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_funclike_macro _read_funclike_macro: ; @read_funclike_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_map stur x0, [x29, #-16] ldur x0, [x29, #-8] ldur x1, [x29, #-16] bl _read_funclike_macro_params stur w0, [x29, #-20] ldur x0, [x29, #-16] bl _read_funclike_macro_body str x0, [sp, #16] ldr x0, [sp, #16] bl _hashhash_check ldr x8, [sp, #16] str x8, [sp] ; 8-byte Folded Spill ldur x0, [x29, #-16] bl _map_len mov x1, x0 ldr x0, [sp] ; 8-byte Folded Reload ldur w2, [x29, #-20] bl _make_func_macro str x0, [sp, #8] adrp x8, _macros@GOTPAGE ldr x8, [x8, _macros@GOTPAGEOFF] ldr w0, [x8] ldur x8, [x29, #-8] ldr w1, [x8] ldr x2, [sp, #8] bl _map_put ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .comm _macros,4,2 ; @macros .no_dead_strip _read_funclike_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_funclike_macro _read_funclike_macro: ## @read_funclike_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_map movq %rax, -16(%rbp) movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq _read_funclike_macro_params movl %eax, -20(%rbp) movq -16(%rbp), %rdi callq _read_funclike_macro_body movq %rax, -32(%rbp) movq -32(%rbp), %rdi callq _hashhash_check movq -32(%rbp), %rax movq %rax, -48(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi callq _map_len movq -48(%rbp), %rdi ## 8-byte Reload movl %eax, %esi movl -20(%rbp), %edx callq _make_func_macro movq %rax, -40(%rbp) movq _macros@GOTPCREL(%rip), %rax movl (%rax), %edi movq -8(%rbp), %rax movl (%rax), %esi movq -40(%rbp), %rdx callq _map_put addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _macros,4,2 ## @macros .no_dead_strip _read_funclike_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_funclike_macro.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_counter_macro _handle_counter_macro: ; @handle_counter_macro .cfi_startproc ; %bb.0: 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] str x8, [sp, #16] ; 8-byte Folded Spill adrp x8, _TNUMBER@GOTPAGE ldr x8, [x8, _TNUMBER@GOTPAGEOFF] ldr w8, [x8] str w8, [sp, #12] ; 4-byte Folded Spill adrp x9, _handle_counter_macro.counter@PAGE ldr w1, [x9, _handle_counter_macro.counter@PAGEOFF] add w8, w1, #1 str w8, [x9, _handle_counter_macro.counter@PAGEOFF] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _format ldr w1, [sp, #12] ; 4-byte Folded Reload mov x2, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload bl _make_token_pushback ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .zerofill __DATA,__bss,_handle_counter_macro.counter,4,2 ; @handle_counter_macro.counter .comm _TNUMBER,4,2 ; @TNUMBER .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" .no_dead_strip _handle_counter_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_counter_macro _handle_counter_macro: ## @handle_counter_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) ## 8-byte Spill movq _TNUMBER@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -12(%rbp) ## 4-byte Spill movl _handle_counter_macro.counter(%rip), %esi movl %esi, %eax addl $1, %eax movl %eax, _handle_counter_macro.counter(%rip) leaq L_.str(%rip), %rdi callq _format movq -24(%rbp), %rdi ## 8-byte Reload movl -12(%rbp), %esi ## 4-byte Reload movl %eax, %edx callq _make_token_pushback addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .zerofill __DATA,__bss,_handle_counter_macro.counter,4,2 ## @handle_counter_macro.counter .comm _TNUMBER,4,2 ## @TNUMBER .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .no_dead_strip _handle_counter_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_counter_macro.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _dict_put ; -- Begin function dict_put .p2align 2 _dict_put: ; @dict_put .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 x2, [sp, #8] ldur x8, [x29, #-8] ldr w0, [x8, #4] ldr x1, [sp, #16] ldr x2, [sp, #8] bl _map_put ldur x8, [x29, #-8] ldr w0, [x8] ldr x1, [sp, #16] bl _vec_push 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 _dict_put ## -- Begin function dict_put .p2align 4, 0x90 _dict_put: ## @dict_put .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 %rdx, -24(%rbp) movq -8(%rbp), %rax movl 4(%rax), %edi movq -16(%rbp), %rsi movq -24(%rbp), %rdx callq _map_put movq -8(%rbp), %rax movl (%rax), %edi movq -16(%rbp), %rsi callq _vec_push addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
AnghaBench/8cc/extr_dict.c_dict_put.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _read_from_string ; -- Begin function read_from_string .p2align 2 _read_from_string: ; @read_from_string .cfi_startproc ; %bb.0: 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 x0, [x29, #-8] bl _make_file_string bl _stream_stash bl _read_toplevels 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 ldr x0, [sp, #16] 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 x0, [sp, #16] ldr w1, [sp, #12] bl _vec_get bl _emit_toplevel 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: bl _stream_unstash 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 _read_from_string ## -- Begin function read_from_string .p2align 4, 0x90 _read_from_string: ## @read_from_string .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _make_file_string movl %eax, %edi callq _stream_stash movb $0, %al callq _read_toplevels 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 -16(%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), %rdi movl -20(%rbp), %esi callq _vec_get movl %eax, %edi callq _emit_toplevel ## %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: movb $0, %al callq _stream_unstash addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_from_string.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_base_file_macro _handle_base_file_macro: ; @handle_base_file_macro .cfi_startproc ; %bb.0: 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] str x8, [sp, #16] ; 8-byte Folded Spill adrp x8, _TSTRING@GOTPAGE ldr x8, [x8, _TSTRING@GOTPAGEOFF] ldr w8, [x8] str w8, [sp, #12] ; 4-byte Folded Spill bl _get_base_file ldr w1, [sp, #12] ; 4-byte Folded Reload mov x2, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload bl _make_token_pushback ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .comm _TSTRING,4,2 ; @TSTRING .no_dead_strip _handle_base_file_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_base_file_macro _handle_base_file_macro: ## @handle_base_file_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) ## 8-byte Spill movq _TSTRING@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -12(%rbp) ## 4-byte Spill movb $0, %al callq _get_base_file movq -24(%rbp), %rdi ## 8-byte Reload movl -12(%rbp), %esi ## 4-byte Reload movl %eax, %edx callq _make_token_pushback addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _TSTRING,4,2 ## @TSTRING .no_dead_strip _handle_base_file_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_base_file_macro.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _dict_keys ; -- Begin function dict_keys .p2align 2 _dict_keys: ; @dict_keys .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldr x0, [x8] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _dict_keys ## -- Begin function dict_keys .p2align 4, 0x90 _dict_keys: ## @dict_keys .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 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
AnghaBench/8cc/extr_dict.c_dict_keys.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_expand_newline _read_expand_newline: ; @read_expand_newline .cfi_startproc ; %bb.0: 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 bl _lex stur x0, [x29, #-16] ldur x8, [x29, #-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: ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB0_14 LBB0_2: ldur x8, [x29, #-16] ldr x8, [x8, #8] stur x8, [x29, #-24] adrp x8, _macros@GOTPAGE ldr x8, [x8, _macros@GOTPAGEOFF] ldr w0, [x8] ldur x1, [x29, #-24] bl _map_get stur x0, [x29, #-32] ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur x8, [x29, #-16] ldr w0, [x8, #16] ldur x1, [x29, #-24] bl _set_has subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB0_14 LBB0_5: ldur x8, [x29, #-32] ldr w8, [x8] str w8, [sp, #12] ; 4-byte Folded Spill subs w8, w8, #128 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_6 LBB0_6: ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #129 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ldr w8, [sp, #12] ; 4-byte Folded Reload subs w8, w8, #130 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_13 LBB0_8: ldur x8, [x29, #-16] ldr w0, [x8, #16] ldur x1, [x29, #-24] bl _set_add stur x0, [x29, #-40] ldur x0, [x29, #-32] ldur x2, [x29, #-40] mov x1, #0 bl _subst str x0, [sp, #48] ldr x0, [sp, #48] ldur x1, [x29, #-16] bl _propagate_space ldr x0, [sp, #48] bl _unget_all bl _read_expand stur x0, [x29, #-8] b LBB0_14 LBB0_9: mov w0, #40 bl _next subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB0_14 LBB0_11: ldur x0, [x29, #-16] ldur x1, [x29, #-32] bl _read_args str x0, [sp, #40] bl _peek_token str x0, [sp, #32] mov w0, #41 bl _expect ldur x8, [x29, #-16] ldr w0, [x8, #16] ldr x8, [sp, #32] ldr w1, [x8, #16] bl _set_intersection ldur x1, [x29, #-24] bl _set_add str x0, [sp, #24] ldur x0, [x29, #-32] ldr x1, [sp, #40] ldr x2, [sp, #24] bl _subst str x0, [sp, #16] ldr x0, [sp, #16] ldur x1, [x29, #-16] bl _propagate_space ldr x0, [sp, #16] bl _unget_all bl _read_expand stur x0, [x29, #-8] b LBB0_14 LBB0_12: ldur x8, [x29, #-32] ldr x8, [x8, #8] ldur x0, [x29, #-16] blr x8 bl _read_expand stur x0, [x29, #-8] b LBB0_14 LBB0_13: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _error b LBB0_14 LBB0_14: ldur x0, [x29, #-8] ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .comm _TIDENT,8,3 ; @TIDENT .comm _macros,4,2 ; @macros .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "internal error" .no_dead_strip _read_expand_newline .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_expand_newline _read_expand_newline: ## @read_expand_newline .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movb $0, %al callq _lex movq %rax, -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_12 LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) movq _macros@GOTPCREL(%rip), %rax movl (%rax), %edi movq -24(%rbp), %rsi callq _map_get movq %rax, -32(%rbp) cmpq $0, -32(%rbp) je LBB0_4 ## %bb.3: movq -16(%rbp), %rax movl 16(%rax), %edi movq -24(%rbp), %rsi callq _set_has cmpq $0, %rax je LBB0_5 LBB0_4: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB0_12 LBB0_5: movq -32(%rbp), %rax movl (%rax), %eax movl %eax, -84(%rbp) ## 4-byte Spill subl $128, %eax je LBB0_10 jmp LBB0_13 LBB0_13: movl -84(%rbp), %eax ## 4-byte Reload subl $129, %eax je LBB0_6 jmp LBB0_14 LBB0_14: movl -84(%rbp), %eax ## 4-byte Reload subl $130, %eax je LBB0_7 jmp LBB0_11 LBB0_6: movq -16(%rbp), %rax movl 16(%rax), %edi movq -24(%rbp), %rsi callq _set_add movq %rax, -40(%rbp) movq -32(%rbp), %rdi movq -40(%rbp), %rdx xorl %eax, %eax movl %eax, %esi callq _subst movq %rax, -48(%rbp) movq -48(%rbp), %rdi movq -16(%rbp), %rsi callq _propagate_space movq -48(%rbp), %rdi callq _unget_all movb $0, %al callq _read_expand movq %rax, -8(%rbp) jmp LBB0_12 LBB0_7: movl $40, %edi callq _next cmpl $0, %eax jne LBB0_9 ## %bb.8: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB0_12 LBB0_9: movq -16(%rbp), %rdi movq -32(%rbp), %rsi callq _read_args movq %rax, -56(%rbp) movb $0, %al callq _peek_token movq %rax, -64(%rbp) movl $41, %edi callq _expect movq -16(%rbp), %rax movl 16(%rax), %edi movq -64(%rbp), %rax movl 16(%rax), %esi callq _set_intersection movl %eax, %edi movq -24(%rbp), %rsi callq _set_add movq %rax, -72(%rbp) movq -32(%rbp), %rdi movq -56(%rbp), %rsi movq -72(%rbp), %rdx callq _subst movq %rax, -80(%rbp) movq -80(%rbp), %rdi movq -16(%rbp), %rsi callq _propagate_space movq -80(%rbp), %rdi callq _unget_all movb $0, %al callq _read_expand movq %rax, -8(%rbp) jmp LBB0_12 LBB0_10: movq -32(%rbp), %rax movq 8(%rax), %rax movq -16(%rbp), %rdi callq *%rax movb $0, %al callq _read_expand movq %rax, -8(%rbp) jmp LBB0_12 LBB0_11: leaq L_.str(%rip), %rdi callq _error LBB0_12: movq -8(%rbp), %rax addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _TIDENT,8,3 ## @TIDENT .comm _macros,4,2 ## @macros .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "internal error" .no_dead_strip _read_expand_newline .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_expand_newline.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function guarded _guarded: ; @guarded .cfi_startproc ; %bb.0: 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] adrp x8, _include_guard@GOTPAGE ldr x8, [x8, _include_guard@GOTPAGEOFF] ldr w0, [x8] ldur x1, [x29, #-8] bl _map_get str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, _macros@GOTPAGE ldr x8, [x8, _macros@GOTPAGEOFF] ldr w0, [x8] ldr x1, [sp, #16] bl _map_get subs x8, x0, #0 cset w8, ne str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_2 LBB0_2: ldr w8, [sp, #8] ; 4-byte Folded Reload and w8, w8, #0x1 str w8, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x8, _cpp_token_one@GOTPAGE ldr x8, [x8, _cpp_token_one@GOTPAGEOFF] ldr w8, [x8] str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_5 LBB0_4: adrp x8, _cpp_token_zero@GOTPAGE ldr x8, [x8, _cpp_token_zero@GOTPAGEOFF] ldr w8, [x8] str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_5 LBB0_5: ldr w1, [sp, #4] ; 4-byte Folded Reload adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _define_obj_macro ldr w0, [sp, #12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .comm _include_guard,4,2 ; @include_guard .comm _macros,4,2 ; @macros .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "__8cc_include_guard" .comm _cpp_token_one,4,2 ; @cpp_token_one .comm _cpp_token_zero,4,2 ; @cpp_token_zero .no_dead_strip _guarded .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function guarded _guarded: ## @guarded .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq _include_guard@GOTPCREL(%rip), %rax movl (%rax), %edi movq -8(%rbp), %rsi callq _map_get movq %rax, -16(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, -16(%rbp) movb %al, -21(%rbp) ## 1-byte Spill je LBB0_2 ## %bb.1: movq _macros@GOTPCREL(%rip), %rax movl (%rax), %edi movq -16(%rbp), %rsi callq _map_get cmpq $0, %rax setne %al movb %al, -21(%rbp) ## 1-byte Spill LBB0_2: movb -21(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax movl %eax, -20(%rbp) cmpl $0, -20(%rbp) je LBB0_4 ## %bb.3: movq _cpp_token_one@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -28(%rbp) ## 4-byte Spill jmp LBB0_5 LBB0_4: movq _cpp_token_zero@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -28(%rbp) ## 4-byte Spill LBB0_5: movl -28(%rbp), %esi ## 4-byte Reload leaq L_.str(%rip), %rdi callq _define_obj_macro movl -20(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _include_guard,4,2 ## @include_guard .comm _macros,4,2 ## @macros .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "__8cc_include_guard" .comm _cpp_token_one,4,2 ## @cpp_token_one .comm _cpp_token_zero,4,2 ## @cpp_token_zero .no_dead_strip _guarded .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_guarded.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _dict_get ; -- Begin function dict_get .p2align 2 _dict_get: ; @dict_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 str x0, [sp, #8] str x1, [sp] ldr x8, [sp, #8] ldr w0, [x8] ldr x1, [sp] bl _map_get 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 _dict_get ## -- Begin function dict_get .p2align 4, 0x90 _dict_get: ## @dict_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 %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax movl (%rax), %edi movq -16(%rbp), %rsi callq _map_get addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
AnghaBench/8cc/extr_dict.c_dict_get.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_expand _read_expand: ; @read_expand .cfi_startproc ; %bb.0: 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_newline str x0, [sp, #8] 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, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret LBB0_3: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 .cfi_endproc ; -- End function .comm _TNEWLINE,8,3 ; @TNEWLINE .no_dead_strip _read_expand .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_expand _read_expand: ## @read_expand .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp LBB0_1: ## =>This Inner Loop Header: Depth=1 movb $0, %al callq _read_expand_newline movq %rax, -8(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq _TNEWLINE@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_3 ## %bb.2: movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq LBB0_3: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 .cfi_endproc ## -- End function .comm _TNEWLINE,8,3 ## @TNEWLINE .no_dead_strip _read_expand .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_expand.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _buf_len ; -- Begin function buf_len .p2align 2 _buf_len: ; @buf_len .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] ldr w0, [x8] add sp, sp, #16 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_len ## -- Begin function buf_len .p2align 4, 0x90 _buf_len: ## @buf_len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl (%rax), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_buf_len.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function glue_tokens _glue_tokens: ; @glue_tokens .cfi_startproc ; %bb.0: 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] bl _make_buffer stur x0, [x29, #-24] ldur x8, [x29, #-24] 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 str x1, [sp, #16] ; 8-byte Folded Spill bl _buf_printf ldur x8, [x29, #-24] str x8, [sp, #24] ; 8-byte Folded Spill ldur x0, [x29, #-16] bl _tok2s ldr x1, [sp, #16] ; 8-byte Folded Reload mov x2, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload bl _buf_printf ldur x0, [x29, #-24] bl _buf_body bl _lex_string str x0, [sp, #32] ldr x0, [sp, #32] 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 "%s" .no_dead_strip _glue_tokens .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function glue_tokens _glue_tokens: ## @glue_tokens .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movb $0, %al callq _make_buffer movq %rax, -24(%rbp) movq -24(%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(%rip), %rsi callq _buf_printf movq -24(%rbp), %rax movq %rax, -40(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi callq _tok2s movq -40(%rbp), %rdi ## 8-byte Reload movl %eax, %edx leaq L_.str(%rip), %rsi callq _buf_printf movq -24(%rbp), %rdi callq _buf_body movl %eax, %edi callq _lex_string movq %rax, -32(%rbp) movq -32(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" .no_dead_strip _glue_tokens .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_glue_tokens.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function uop_to_string _uop_to_string: ; @uop_to_string .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] str x2, [sp, #24] ldur x8, [x29, #-8] str x8, [sp, #16] ; 8-byte Folded Spill ldur x8, [x29, #-16] str x8, [sp, #8] ; 8-byte Folded Spill ldr x8, [sp, #24] ldr w0, [x8] bl _node2s ldr x2, [sp, #8] ; 8-byte Folded Reload mov x3, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _buf_printf 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 "(%s %s)" .no_dead_strip _uop_to_string .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function uop_to_string _uop_to_string: ## @uop_to_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 $48, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq -8(%rbp), %rax movq %rax, -40(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq %rax, -32(%rbp) ## 8-byte Spill movq -24(%rbp), %rax movl (%rax), %edi callq _node2s movq -40(%rbp), %rdi ## 8-byte Reload movq -32(%rbp), %rdx ## 8-byte Reload movl %eax, %ecx leaq L_.str(%rip), %rsi callq _buf_printf addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "(%s %s)" .no_dead_strip _uop_to_string .subsections_via_symbols
AnghaBench/8cc/extr_debug.c_uop_to_string.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_error_message _read_error_message: ; @read_error_message .cfi_startproc ; %bb.0: 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_buffer stur x0, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _lex 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] bl _buf_body ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur x0, [x29, #-8] bl _buf_len subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur x0, [x29, #-8] mov w1, #32 bl _buf_write b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] str x8, [sp, #8] ; 8-byte Folded Spill ldr x0, [sp, #16] 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 _buf_printf b LBB0_1 .cfi_endproc ; -- End function .comm _TNEWLINE,8,3 ; @TNEWLINE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" .no_dead_strip _read_error_message .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_error_message _read_error_message: ## @read_error_message .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movb $0, %al callq _make_buffer movq %rax, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movb $0, %al callq _lex 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), %rdi callq _buf_body addq $32, %rsp popq %rbp retq LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rdi callq _buf_len cmpq $0, %rax je LBB0_6 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax cmpq $0, 8(%rax) je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rdi movl $32, %esi callq _buf_write LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movq %rax, -24(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi callq _tok2s movq -24(%rbp), %rdi ## 8-byte Reload movl %eax, %edx leaq L_.str(%rip), %rsi callq _buf_printf jmp LBB0_1 .cfi_endproc ## -- End function .comm _TNEWLINE,8,3 ## @TNEWLINE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" .no_dead_strip _read_error_message .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_error_message.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function glue_push _glue_push: ; @glue_push .cfi_startproc ; %bb.0: 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_pop str x0, [sp, #8] ldur x8, [x29, #-8] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #8] ldr x1, [sp, #16] bl _glue_tokens mov x1, x0 ldr x0, [sp] ; 8-byte Folded Reload bl _vec_push ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .no_dead_strip _glue_push .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function glue_push _glue_push: ## @glue_push .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rdi callq _vec_pop movq %rax, -24(%rbp) movq -8(%rbp), %rax movq %rax, -32(%rbp) ## 8-byte Spill movq -24(%rbp), %rdi movq -16(%rbp), %rsi callq _glue_tokens movq -32(%rbp), %rdi ## 8-byte Reload movl %eax, %esi callq _vec_push addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _glue_push .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_glue_push.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ty2s ; -- Begin function ty2s .p2align 2 _ty2s: ; @ty2s .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_dict ldr x1, [sp, #8] bl _do_ty2s 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 _ty2s ## -- Begin function ty2s .p2align 4, 0x90 _ty2s: ## @ty2s .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_dict movl %eax, %edi movq -8(%rbp), %rsi callq _do_ty2s addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
AnghaBench/8cc/extr_debug.c_ty2s.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_error _read_error: ; @read_error .cfi_startproc ; %bb.0: 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 _errort 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 "#error: %s" .no_dead_strip _read_error .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_error _read_error: ## @read_error .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp 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 _errort addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "#error: %s" .no_dead_strip _read_error .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_error.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _expect_newline ; -- Begin function expect_newline .p2align 2 _expect_newline: ; @expect_newline .cfi_startproc ; %bb.0: 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] 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, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #8] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #8] bl _tok2s mov x2, x0 ldr x0, [sp] ; 8-byte Folded Reload adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _errort b LBB0_2 LBB0_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _TNEWLINE,8,3 ; @TNEWLINE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "newline expected, but got %s" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _expect_newline ## -- Begin function expect_newline .p2align 4, 0x90 _expect_newline: ## @expect_newline .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movb $0, %al callq _lex movq %rax, -8(%rbp) movq -8(%rbp), %rax movq (%rax), %rax movq _TNEWLINE@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_2 ## %bb.1: movq -8(%rbp), %rax movq %rax, -16(%rbp) ## 8-byte Spill movq -8(%rbp), %rdi callq _tok2s movq -16(%rbp), %rdi ## 8-byte Reload movl %eax, %edx leaq L_.str(%rip), %rsi callq _errort LBB0_2: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _TNEWLINE,8,3 ## @TNEWLINE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "newline expected, but got %s" .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_expect_newline.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _node2s ; -- Begin function node2s .p2align 2 _node2s: ; @node2s .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] ldr x0, [sp] ldr x1, [sp, #8] bl _do_node2s 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 _node2s ## -- Begin function node2s .p2align 4, 0x90 _node2s: ## @node2s .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) movq -16(%rbp), %rdi movq -8(%rbp), %rsi callq _do_node2s movq -16(%rbp), %rdi callq _buf_body addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
AnghaBench/8cc/extr_debug.c_node2s.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_endif _read_endif: ; @read_endif .cfi_startproc ; %bb.0: 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] adrp x8, _cond_incl_stack@GOTPAGE ldr x8, [x8, _cond_incl_stack@GOTPAGEOFF] ldr w0, [x8] bl _vec_len subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur x0, [x29, #-8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _errort b LBB0_2 LBB0_2: adrp x8, _cond_incl_stack@GOTPAGE ldr x8, [x8, _cond_incl_stack@GOTPAGEOFF] ldr w0, [x8] bl _vec_pop str x0, [sp, #16] bl _expect_newline ldr x8, [sp, #16] ldr w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #16] ldr x8, [x8, #8] ldur x9, [x29, #-8] ldr x9, [x9] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: b LBB0_7 LBB0_5: bl _skip_newlines str x0, [sp, #8] ldr x8, [sp, #16] ldr x8, [x8, #8] ldr x9, [sp, #8] ldr x9, [x9] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: adrp x8, _include_guard@GOTPAGE ldr x8, [x8, _include_guard@GOTPAGEOFF] ldr w0, [x8] ldr x8, [sp, #16] ldr x8, [x8, #8] ldr w1, [x8] ldr x8, [sp, #16] ldr w2, [x8] bl _map_put b LBB0_7 LBB0_7: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .comm _cond_incl_stack,4,2 ; @cond_incl_stack .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "stray #endif" .comm _include_guard,4,2 ; @include_guard .no_dead_strip _read_endif .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_endif _read_endif: ## @read_endif .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq _cond_incl_stack@GOTPCREL(%rip), %rax movl (%rax), %edi callq _vec_len cmpq $0, %rax jne LBB0_2 ## %bb.1: movq -8(%rbp), %rdi leaq L_.str(%rip), %rsi callq _errort LBB0_2: movq _cond_incl_stack@GOTPCREL(%rip), %rax movl (%rax), %edi callq _vec_pop movq %rax, -16(%rbp) movb $0, %al callq _expect_newline movq -16(%rbp), %rax cmpl $0, (%rax) je LBB0_4 ## %bb.3: movq -16(%rbp), %rax movq 8(%rax), %rax movq -8(%rbp), %rcx cmpq (%rcx), %rax je LBB0_5 LBB0_4: jmp LBB0_7 LBB0_5: movb $0, %al callq _skip_newlines movq %rax, -24(%rbp) movq -16(%rbp), %rax movq 8(%rax), %rax movq -24(%rbp), %rcx cmpq (%rcx), %rax je LBB0_7 ## %bb.6: movq _include_guard@GOTPCREL(%rip), %rax movl (%rax), %edi movq -16(%rbp), %rax movq 8(%rax), %rax movl (%rax), %esi movq -16(%rbp), %rax movl (%rax), %edx callq _map_put LBB0_7: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _cond_incl_stack,4,2 ## @cond_incl_stack .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "stray #endif" .comm _include_guard,4,2 ## @include_guard .no_dead_strip _read_endif .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_endif.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function define_obj_macro _define_obj_macro: ; @define_obj_macro .cfi_startproc ; %bb.0: 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] adrp x8, _macros@GOTPAGE ldr x8, [x8, _macros@GOTPAGEOFF] ldr w8, [x8] str w8, [sp, #12] ; 4-byte Folded Spill ldur x8, [x29, #-8] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #16] bl _make_vector1 bl _make_obj_macro ldr x1, [sp] ; 8-byte Folded Reload mov x2, x0 ldr w0, [sp, #12] ; 4-byte Folded Reload bl _map_put ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .comm _macros,4,2 ; @macros .no_dead_strip _define_obj_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function define_obj_macro _define_obj_macro: ## @define_obj_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq _macros@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -28(%rbp) ## 4-byte Spill movq -8(%rbp), %rax movq %rax, -24(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi callq _make_vector1 movl %eax, %edi callq _make_obj_macro movl -28(%rbp), %edi ## 4-byte Reload movq -24(%rbp), %rsi ## 8-byte Reload movl %eax, %edx callq _map_put addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _macros,4,2 ## @macros .no_dead_strip _define_obj_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_define_obj_macro.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function encoding_prefix _encoding_prefix: ; @encoding_prefix .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #128 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB0_6 ; %bb.1: ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp1: adr x8, Ltmp1 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_2: adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF str x8, [sp, #24] b LBB0_7 LBB0_3: adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF str x8, [sp, #24] b LBB0_7 LBB0_4: adrp x8, l_.str.2@PAGE add x8, x8, l_.str.2@PAGEOFF str x8, [sp, #24] b LBB0_7 LBB0_5: adrp x8, l_.str.3@PAGE add x8, x8, l_.str.3@PAGEOFF str x8, [sp, #24] b LBB0_7 LBB0_6: adrp x8, l_.str.4@PAGE add x8, x8, l_.str.4@PAGEOFF str x8, [sp, #24] b LBB0_7 LBB0_7: ldr x0, [sp, #24] add sp, sp, #32 ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_5-Ltmp1 .long LBB0_4-Ltmp1 .long LBB0_3-Ltmp1 .long LBB0_2-Ltmp1 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "u" l_.str.1: ; @.str.1 .asciz "U" l_.str.2: ; @.str.2 .asciz "u8" l_.str.3: ; @.str.3 .asciz "L" l_.str.4: ; @.str.4 .space 1 .no_dead_strip _encoding_prefix .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function encoding_prefix _encoding_prefix: ## @encoding_prefix .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -12(%rbp) movl -12(%rbp), %eax addl $-128, %eax movl %eax, %ecx movq %rcx, -24(%rbp) ## 8-byte Spill subl $3, %eax ja LBB0_5 ## %bb.7: movq -24(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_1: leaq L_.str(%rip), %rax movq %rax, -8(%rbp) jmp LBB0_6 LBB0_2: leaq L_.str.1(%rip), %rax movq %rax, -8(%rbp) jmp LBB0_6 LBB0_3: leaq L_.str.2(%rip), %rax movq %rax, -8(%rbp) jmp LBB0_6 LBB0_4: leaq L_.str.3(%rip), %rax movq %rax, -8(%rbp) jmp LBB0_6 LBB0_5: leaq L_.str.4(%rip), %rax movq %rax, -8(%rbp) LBB0_6: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_3, LBB0_3-LJTI0_0 .set L0_0_set_2, LBB0_2-LJTI0_0 .set L0_0_set_1, LBB0_1-LJTI0_0 LJTI0_0: .long L0_0_set_4 .long L0_0_set_3 .long L0_0_set_2 .long L0_0_set_1 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "u" L_.str.1: ## @.str.1 .asciz "U" L_.str.2: ## @.str.2 .asciz "u8" L_.str.3: ## @.str.3 .asciz "L" L_.str.4: ## @.str.4 .space 1 .no_dead_strip _encoding_prefix .subsections_via_symbols
AnghaBench/8cc/extr_debug.c_encoding_prefix.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_else _read_else: ; @read_else .cfi_startproc ; %bb.0: 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, _cond_incl_stack@GOTPAGE ldr x8, [x8, _cond_incl_stack@GOTPAGEOFF] ldr w0, [x8] bl _vec_len subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x0, [sp, #8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _errort b LBB0_2 LBB0_2: adrp x8, _cond_incl_stack@GOTPAGE ldr x8, [x8, _cond_incl_stack@GOTPAGEOFF] ldr w0, [x8] bl _vec_tail str x0, [sp] ldr x8, [sp] ldr x8, [x8] adrp x9, _IN_ELSE@GOTPAGE ldr x9, [x9, _IN_ELSE@GOTPAGEOFF] ldr x9, [x9] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x0, [sp, #8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _errort b LBB0_4 LBB0_4: bl _expect_newline adrp x8, _IN_ELSE@GOTPAGE ldr x8, [x8, _IN_ELSE@GOTPAGEOFF] ldr x8, [x8] ldr x9, [sp] str x8, [x9] ldr x8, [sp] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldr x8, [sp] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: bl _skip_cond_incl b LBB0_6 LBB0_6: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _cond_incl_stack,4,2 ; @cond_incl_stack .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "stray #else" .comm _IN_ELSE,8,3 ; @IN_ELSE l_.str.1: ; @.str.1 .asciz "#else appears in #else" .no_dead_strip _read_else .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_else _read_else: ## @read_else .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq _cond_incl_stack@GOTPCREL(%rip), %rax movl (%rax), %edi callq _vec_len cmpq $0, %rax jne LBB0_2 ## %bb.1: movq -8(%rbp), %rdi leaq L_.str(%rip), %rsi callq _errort LBB0_2: movq _cond_incl_stack@GOTPCREL(%rip), %rax movl (%rax), %edi callq _vec_tail movq %rax, -16(%rbp) movq -16(%rbp), %rax movq (%rax), %rax movq _IN_ELSE@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_4 ## %bb.3: movq -8(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _errort LBB0_4: movb $0, %al callq _expect_newline movq _IN_ELSE@GOTPCREL(%rip), %rax movq (%rax), %rcx movq -16(%rbp), %rax movq %rcx, (%rax) movq -16(%rbp), %rax movq $0, 16(%rax) movq -16(%rbp), %rax cmpq $0, 8(%rax) je LBB0_6 ## %bb.5: movb $0, %al callq _skip_cond_incl LBB0_6: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _cond_incl_stack,4,2 ## @cond_incl_stack .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "stray #else" .comm _IN_ELSE,8,3 ## @IN_ELSE L_.str.1: ## @.str.1 .asciz "#else appears in #else" .no_dead_strip _read_else .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_else.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function do_node2s _do_node2s: ; @do_node2s .cfi_startproc ; %bb.0: sub sp, sp, #352 .cfi_def_cfa_offset 352 stp x28, x27, [sp, #320] ; 16-byte Folded Spill stp x29, x30, [sp, #336] ; 16-byte Folded Spill add x29, sp, #336 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 stur x0, [x29, #-24] stur x1, [x29, #-32] ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur x0, [x29, #-24] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _buf_printf b LBB0_95 LBB0_2: ldur x8, [x29, #-32] ldr w8, [x8] subs w8, w8, #33 ; kill: def $x8 killed $w8 stur x8, [x29, #-80] ; 8-byte Folded Spill subs x8, x8, #146 cset w8, hi tbnz w8, #0, LBB0_91 ; %bb.3: ldur x11, [x29, #-80] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_4: ldur x8, [x29, #-32] ldr x8, [x8, #48] ldr w8, [x8] subs w8, w8, #153 ; kill: def $x8 killed $w8 stur x8, [x29, #-88] ; 8-byte Folded Spill subs x8, x8, #7 cset w8, hi tbnz w8, #0, LBB0_21 ; %bb.5: ldur x11, [x29, #-88] ; 8-byte Folded Reload adrp x10, lJTI0_1@PAGE add x10, x10, lJTI0_1@PAGEOFF Ltmp1: adr x8, Ltmp1 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_6: ldur x8, [x29, #-32] ldrsb w8, [x8, #4] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ldur x0, [x29, #-24] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _buf_printf b LBB0_15 LBB0_8: ldur x8, [x29, #-32] ldrsb w8, [x8, #4] subs w8, w8, #92 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ldur x0, [x29, #-24] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _buf_printf b LBB0_14 LBB0_10: ldur x8, [x29, #-32] ldrsb w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ldur x0, [x29, #-24] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _buf_printf b LBB0_13 LBB0_12: ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldrsb w10, [x8, #4] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _buf_printf b LBB0_13 LBB0_13: b LBB0_14 LBB0_14: b LBB0_15 LBB0_15: b LBB0_22 LBB0_16: ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldrsb w10, [x8, #4] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _buf_printf b LBB0_22 LBB0_17: ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldrsb w10, [x8, #4] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _buf_printf b LBB0_22 LBB0_18: ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldrsb w10, [x8, #4] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _buf_printf b LBB0_22 LBB0_19: ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldr w9, [x8, #180] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _buf_printf b LBB0_22 LBB0_20: ldur x8, [x29, #-24] stur x8, [x29, #-96] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr w0, [x8, #176] bl _quote_cstring mov x10, x0 ldur x0, [x29, #-96] ; 8-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _buf_printf b LBB0_22 LBB0_21: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _error b LBB0_22 LBB0_22: b LBB0_95 LBB0_23: ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldr w9, [x8, #32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _buf_printf b LBB0_95 LBB0_24: ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldr w9, [x8, #168] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _buf_printf ldur x8, [x29, #-32] ldr w8, [x8, #172] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_26 b LBB0_25 LBB0_25: ldur x0, [x29, #-24] adrp x1, l_.str.13@PAGE add x1, x1, l_.str.13@PAGEOFF bl _buf_printf ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldr w1, [x8, #172] bl _a2s_declinit ldur x0, [x29, #-24] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _buf_printf b LBB0_26 LBB0_26: b LBB0_95 LBB0_27: ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldr w9, [x8, #168] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.15@PAGE add x1, x1, l_.str.15@PAGEOFF bl _buf_printf b LBB0_95 LBB0_28: ldur x8, [x29, #-24] stur x8, [x29, #-112] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #48] bl _ty2s stur x0, [x29, #-104] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr w8, [x8] subs w8, w8, #173 cset w8, ne tbnz w8, #0, LBB0_30 b LBB0_29 LBB0_29: ldur x8, [x29, #-32] ldr x0, [x8, #8] stur x0, [x29, #-120] ; 8-byte Folded Spill b LBB0_31 LBB0_30: ldur x0, [x29, #-32] bl _node2s stur x0, [x29, #-120] ; 8-byte Folded Spill b LBB0_31 LBB0_31: ldur x0, [x29, #-112] ; 8-byte Folded Reload ldur x10, [x29, #-104] ; 8-byte Folded Reload ldur x8, [x29, #-120] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.16@PAGE add x1, x1, l_.str.16@PAGEOFF bl _buf_printf stur wzr, [x29, #-36] b LBB0_32 LBB0_32: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] stur w8, [x29, #-124] ; 4-byte Folded Spill ldur x8, [x29, #-32] ldr w0, [x8, #164] bl _vec_len ldur w8, [x29, #-124] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, ge tbnz w8, #0, LBB0_37 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_32 Depth=1 ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_35 b LBB0_34 LBB0_34: ; in Loop: Header=BB0_32 Depth=1 ldur x0, [x29, #-24] adrp x1, l_.str.17@PAGE add x1, x1, l_.str.17@PAGEOFF bl _buf_printf b LBB0_35 LBB0_35: ; in Loop: Header=BB0_32 Depth=1 ldur x8, [x29, #-24] stur x8, [x29, #-136] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr w0, [x8, #164] ldur w1, [x29, #-36] bl _vec_get bl _node2s mov x8, x0 ldur x0, [x29, #-136] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x1, l_.str.18@PAGE add x1, x1, l_.str.18@PAGEOFF bl _buf_printf b LBB0_36 LBB0_36: ; in Loop: Header=BB0_32 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB0_32 LBB0_37: ldur x0, [x29, #-24] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _buf_printf b LBB0_95 LBB0_38: ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldr x8, [x8, #8] mov x9, sp str x8, [x9] adrp x1, l_.str.19@PAGE add x1, x1, l_.str.19@PAGEOFF bl _buf_printf b LBB0_95 LBB0_39: ldur x8, [x29, #-24] stur x8, [x29, #-144] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #48] bl _ty2s mov x10, x0 ldur x0, [x29, #-144] ; 8-byte Folded Reload ldur x8, [x29, #-32] ldr x8, [x8, #8] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.16@PAGE add x1, x1, l_.str.16@PAGEOFF bl _buf_printf stur wzr, [x29, #-40] b LBB0_40 LBB0_40: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-40] stur w8, [x29, #-148] ; 4-byte Folded Spill ldur x8, [x29, #-32] ldr w0, [x8, #160] bl _vec_len ldur w8, [x29, #-148] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, ge tbnz w8, #0, LBB0_45 b LBB0_41 LBB0_41: ; in Loop: Header=BB0_40 Depth=1 ldur w8, [x29, #-40] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_43 b LBB0_42 LBB0_42: ; in Loop: Header=BB0_40 Depth=1 ldur x0, [x29, #-24] adrp x1, l_.str.17@PAGE add x1, x1, l_.str.17@PAGEOFF bl _buf_printf b LBB0_43 LBB0_43: ; in Loop: Header=BB0_40 Depth=1 ldur x8, [x29, #-32] ldr w0, [x8, #160] ldur w1, [x29, #-40] bl _vec_get stur x0, [x29, #-48] ldur x8, [x29, #-24] stur x8, [x29, #-160] ; 8-byte Folded Spill ldur x8, [x29, #-48] ldr x0, [x8, #48] bl _ty2s str x0, [sp, #168] ; 8-byte Folded Spill ldur x0, [x29, #-48] bl _node2s ldr x10, [sp, #168] ; 8-byte Folded Reload mov x8, x0 ldur x0, [x29, #-160] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.20@PAGE add x1, x1, l_.str.20@PAGEOFF bl _buf_printf b LBB0_44 LBB0_44: ; in Loop: Header=BB0_40 Depth=1 ldur w8, [x29, #-40] add w8, w8, #1 stur w8, [x29, #-40] b LBB0_40 LBB0_45: ldur x0, [x29, #-24] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _buf_printf ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldr x1, [x8, #152] bl _do_node2s b LBB0_95 LBB0_46: ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldr w9, [x8, #32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.21@PAGE add x1, x1, l_.str.21@PAGEOFF bl _buf_printf b LBB0_95 LBB0_47: ldur x8, [x29, #-24] str x8, [sp, #160] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x8, [x8, #144] ldr x0, [x8, #8] bl _ty2s mov x10, x0 ldr x0, [sp, #160] ; 8-byte Folded Reload ldur x8, [x29, #-32] ldr x8, [x8, #144] ldr x8, [x8] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.22@PAGE add x1, x1, l_.str.22@PAGEOFF bl _buf_printf ldur x8, [x29, #-32] ldr w8, [x8, #136] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_49 b LBB0_48 LBB0_48: ldur x0, [x29, #-24] adrp x1, l_.str.23@PAGE add x1, x1, l_.str.23@PAGEOFF bl _buf_printf ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldr w1, [x8, #136] bl _a2s_declinit b LBB0_49 LBB0_49: ldur x0, [x29, #-24] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _buf_printf b LBB0_95 LBB0_50: ldur x8, [x29, #-24] str x8, [sp, #152] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #128] bl _node2s str x0, [sp, #136] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr w9, [x8, #120] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #144] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #112] bl _ty2s ldr x11, [sp, #136] ; 8-byte Folded Reload ldr x10, [sp, #144] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #152] ; 8-byte Folded Reload mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.24@PAGE add x1, x1, l_.str.24@PAGEOFF bl _buf_printf b LBB0_95 LBB0_51: ldur x8, [x29, #-24] str x8, [sp, #128] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #40] bl _node2s str x0, [sp, #120] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #48] bl _ty2s ldr x10, [sp, #120] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #128] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.25@PAGE add x1, x1, l_.str.25@PAGEOFF bl _buf_printf b LBB0_95 LBB0_52: ldur x8, [x29, #-24] str x8, [sp, #112] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #104] bl _node2s str x0, [sp, #104] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #96] bl _node2s ldr x10, [sp, #104] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #112] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.26@PAGE add x1, x1, l_.str.26@PAGEOFF bl _buf_printf ldur x8, [x29, #-32] ldr x8, [x8, #88] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_54 b LBB0_53 LBB0_53: ldur x8, [x29, #-24] str x8, [sp, #96] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #88] bl _node2s mov x8, x0 ldr x0, [sp, #96] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x1, l_.str.27@PAGE add x1, x1, l_.str.27@PAGEOFF bl _buf_printf b LBB0_54 LBB0_54: ldur x0, [x29, #-24] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _buf_printf b LBB0_95 LBB0_55: ldur x8, [x29, #-24] str x8, [sp, #88] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #104] bl _node2s str x0, [sp, #72] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #96] bl _node2s str x0, [sp, #80] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #88] bl _node2s ldr x11, [sp, #72] ; 8-byte Folded Reload ldr x10, [sp, #80] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #88] ; 8-byte Folded Reload mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.28@PAGE add x1, x1, l_.str.28@PAGEOFF bl _buf_printf b LBB0_95 LBB0_56: ldur x8, [x29, #-24] str x8, [sp, #64] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #80] bl _node2s mov x8, x0 ldr x0, [sp, #64] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x1, l_.str.29@PAGE add x1, x1, l_.str.29@PAGEOFF bl _buf_printf b LBB0_95 LBB0_57: ldur x0, [x29, #-24] adrp x1, l_.str.30@PAGE add x1, x1, l_.str.30@PAGEOFF bl _buf_printf stur wzr, [x29, #-52] b LBB0_58 LBB0_58: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-52] str w8, [sp, #60] ; 4-byte Folded Spill ldur x8, [x29, #-32] ldr w0, [x8, #72] bl _vec_len ldr w8, [sp, #60] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, ge tbnz w8, #0, LBB0_61 b LBB0_59 LBB0_59: ; in Loop: Header=BB0_58 Depth=1 ldur x8, [x29, #-24] str x8, [sp, #48] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr w0, [x8, #72] ldur w1, [x29, #-52] bl _vec_get mov x1, x0 ldr x0, [sp, #48] ; 8-byte Folded Reload bl _do_node2s ldur x0, [x29, #-24] adrp x1, l_.str.31@PAGE add x1, x1, l_.str.31@PAGEOFF bl _buf_printf b LBB0_60 LBB0_60: ; in Loop: Header=BB0_58 Depth=1 ldur w8, [x29, #-52] add w8, w8, #1 stur w8, [x29, #-52] b LBB0_58 LBB0_61: ldur x0, [x29, #-24] adrp x1, l_.str.32@PAGE add x1, x1, l_.str.32@PAGEOFF bl _buf_printf b LBB0_95 LBB0_62: ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldr x1, [x8, #64] bl _do_node2s ldur x0, [x29, #-24] adrp x1, l_.str.33@PAGE add x1, x1, l_.str.33@PAGEOFF bl _buf_printf ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldrsw x1, [x8, #56] bl _buf_printf b LBB0_95 LBB0_63: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.34@PAGE add x1, x1, l_.str.34@PAGEOFF bl _uop_to_string b LBB0_95 LBB0_64: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.35@PAGE add x1, x1, l_.str.35@PAGEOFF bl _uop_to_string b LBB0_95 LBB0_65: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.36@PAGE add x1, x1, l_.str.36@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_66: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.37@PAGE add x1, x1, l_.str.37@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_67: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.38@PAGE add x1, x1, l_.str.38@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_68: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.39@PAGE add x1, x1, l_.str.39@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_69: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.40@PAGE add x1, x1, l_.str.40@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_70: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.41@PAGE add x1, x1, l_.str.41@PAGEOFF bl _uop_to_string b LBB0_95 LBB0_71: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.42@PAGE add x1, x1, l_.str.42@PAGEOFF bl _uop_to_string b LBB0_95 LBB0_72: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.43@PAGE add x1, x1, l_.str.43@PAGEOFF bl _uop_to_string b LBB0_95 LBB0_73: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.44@PAGE add x1, x1, l_.str.44@PAGEOFF bl _uop_to_string b LBB0_95 LBB0_74: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.45@PAGE add x1, x1, l_.str.45@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_75: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.46@PAGE add x1, x1, l_.str.46@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_76: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.47@PAGE add x1, x1, l_.str.47@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_77: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.48@PAGE add x1, x1, l_.str.48@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_78: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.49@PAGE add x1, x1, l_.str.49@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_79: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.50@PAGE add x1, x1, l_.str.50@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_80: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.51@PAGE add x1, x1, l_.str.51@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_81: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.52@PAGE add x1, x1, l_.str.52@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_82: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.53@PAGE add x1, x1, l_.str.53@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_83: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.54@PAGE add x1, x1, l_.str.54@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_84: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.55@PAGE add x1, x1, l_.str.55@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_85: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.56@PAGE add x1, x1, l_.str.56@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_86: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.57@PAGE add x1, x1, l_.str.57@PAGEOFF bl _uop_to_string b LBB0_95 LBB0_87: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.58@PAGE add x1, x1, l_.str.58@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_88: ldur x0, [x29, #-24] ldur x2, [x29, #-32] adrp x1, l_.str.59@PAGE add x1, x1, l_.str.59@PAGEOFF bl _binop_to_string b LBB0_95 LBB0_89: ldur x8, [x29, #-24] str x8, [sp, #40] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x8, [x8, #40] ldr x0, [x8, #48] bl _ty2s str x0, [sp, #24] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #48] bl _ty2s str x0, [sp, #32] ; 8-byte Folded Spill ldur x8, [x29, #-32] ldr x0, [x8, #40] bl _node2s ldr x11, [sp, #24] ; 8-byte Folded Reload ldr x10, [sp, #32] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #40] ; 8-byte Folded Reload mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.60@PAGE add x1, x1, l_.str.60@PAGEOFF bl _buf_printf b LBB0_95 LBB0_90: ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldr w9, [x8, #32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.61@PAGE add x1, x1, l_.str.61@PAGEOFF bl _buf_printf b LBB0_95 LBB0_91: ldur x8, [x29, #-32] ldr x0, [x8, #24] bl _node2s stur x0, [x29, #-64] ldur x8, [x29, #-32] ldr x0, [x8, #16] bl _node2s stur x0, [x29, #-72] ldur x8, [x29, #-32] ldr w8, [x8] adrp x9, _OP_EQ@GOTPAGE ldr x9, [x9, _OP_EQ@GOTPAGEOFF] ldr w9, [x9] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_93 b LBB0_92 LBB0_92: ldur x0, [x29, #-24] adrp x1, l_.str.62@PAGE add x1, x1, l_.str.62@PAGEOFF bl _buf_printf b LBB0_94 LBB0_93: ldur x0, [x29, #-24] ldur x8, [x29, #-32] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.63@PAGE add x1, x1, l_.str.63@PAGEOFF bl _buf_printf b LBB0_94 LBB0_94: ldur x0, [x29, #-24] ldur x10, [x29, #-64] ldur x8, [x29, #-72] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.64@PAGE add x1, x1, l_.str.64@PAGEOFF bl _buf_printf b LBB0_95 LBB0_95: ldp x29, x30, [sp, #336] ; 16-byte Folded Reload ldp x28, x27, [sp, #320] ; 16-byte Folded Reload add sp, sp, #352 ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_86-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_87-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_88-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_66-Ltmp0 .long LBB0_66-Ltmp0 .long LBB0_65-Ltmp0 .long LBB0_70-Ltmp0 .long LBB0_71-Ltmp0 .long LBB0_72-Ltmp0 .long LBB0_73-Ltmp0 .long LBB0_69-Ltmp0 .long LBB0_75-Ltmp0 .long LBB0_74-Ltmp0 .long LBB0_68-Ltmp0 .long LBB0_90-Ltmp0 .long LBB0_67-Ltmp0 .long LBB0_89-Ltmp0 .long LBB0_83-Ltmp0 .long LBB0_77-Ltmp0 .long LBB0_85-Ltmp0 .long LBB0_85-Ltmp0 .long LBB0_84-Ltmp0 .long LBB0_82-Ltmp0 .long LBB0_78-Ltmp0 .long LBB0_80-Ltmp0 .long LBB0_79-Ltmp0 .long LBB0_81-Ltmp0 .long LBB0_76-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_91-Ltmp0 .long LBB0_55-Ltmp0 .long LBB0_62-Ltmp0 .long LBB0_56-Ltmp0 .long LBB0_24-Ltmp0 .long LBB0_4-Ltmp0 .long LBB0_23-Ltmp0 .long LBB0_50-Ltmp0 .long LBB0_52-Ltmp0 .long LBB0_27-Ltmp0 .long LBB0_46-Ltmp0 .long LBB0_28-Ltmp0 .long LBB0_38-Ltmp0 .long LBB0_28-Ltmp0 .long LBB0_39-Ltmp0 .long LBB0_64-Ltmp0 .long LBB0_47-Ltmp0 .long LBB0_51-Ltmp0 .long LBB0_57-Ltmp0 .long LBB0_63-Ltmp0 .p2align 2 lJTI0_1: .long LBB0_17-Ltmp1 .long LBB0_18-Ltmp1 .long LBB0_19-Ltmp1 .long LBB0_16-Ltmp1 .long LBB0_19-Ltmp1 .long LBB0_19-Ltmp1 .long LBB0_6-Ltmp1 .long LBB0_20-Ltmp1 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "(nil)" l_.str.1: ; @.str.1 .asciz "'\n'" l_.str.2: ; @.str.2 .asciz "'\\\\'" l_.str.3: ; @.str.3 .asciz "'\\0'" l_.str.4: ; @.str.4 .asciz "'%c'" l_.str.5: ; @.str.5 .asciz "%d" l_.str.6: ; @.str.6 .asciz "%ldL" l_.str.7: ; @.str.7 .asciz "%lldL" l_.str.8: ; @.str.8 .asciz "%f" l_.str.9: ; @.str.9 .asciz "\"%s\"" l_.str.10: ; @.str.10 .asciz "internal error" l_.str.11: ; @.str.11 .asciz "%s:" l_.str.12: ; @.str.12 .asciz "lv=%s" l_.str.13: ; @.str.13 .asciz "(" l_.str.14: ; @.str.14 .asciz ")" l_.str.15: ; @.str.15 .asciz "gv=%s" l_.str.16: ; @.str.16 .asciz "(%s)%s(" l_.str.17: ; @.str.17 .asciz "," l_.str.18: ; @.str.18 .asciz "%s" l_.str.19: ; @.str.19 .asciz "(funcdesg %s)" l_.str.20: ; @.str.20 .asciz "%s %s" l_.str.21: ; @.str.21 .asciz "goto(%s)" l_.str.22: ; @.str.22 .asciz "(decl %s %s" l_.str.23: ; @.str.23 .asciz " " l_.str.24: ; @.str.24 .asciz "%s@%d" l_.str.25: ; @.str.25 .asciz "(conv %s=>%s)" l_.str.26: ; @.str.26 .asciz "(if %s %s" l_.str.27: ; @.str.27 .asciz " %s" l_.str.28: ; @.str.28 .asciz "(? %s %s %s)" l_.str.29: ; @.str.29 .asciz "(return %s)" l_.str.30: ; @.str.30 .asciz "{" l_.str.31: ; @.str.31 .asciz ";" l_.str.32: ; @.str.32 .asciz "}" l_.str.33: ; @.str.33 .asciz "." l_.str.34: ; @.str.34 .asciz "addr" l_.str.35: ; @.str.35 .asciz "deref" l_.str.36: ; @.str.36 .asciz "<<" l_.str.37: ; @.str.37 .asciz ">>" l_.str.38: ; @.str.38 .asciz ">=" l_.str.39: ; @.str.39 .asciz "<=" l_.str.40: ; @.str.40 .asciz "!=" l_.str.41: ; @.str.41 .asciz "pre++" l_.str.42: ; @.str.42 .asciz "pre--" l_.str.43: ; @.str.43 .asciz "post++" l_.str.44: ; @.str.44 .asciz "post--" l_.str.45: ; @.str.45 .asciz "and" l_.str.46: ; @.str.46 .asciz "or" l_.str.47: ; @.str.47 .asciz "+=" l_.str.48: ; @.str.48 .asciz "-=" l_.str.49: ; @.str.49 .asciz "*=" l_.str.50: ; @.str.50 .asciz "/=" l_.str.51: ; @.str.51 .asciz "%=" l_.str.52: ; @.str.52 .asciz "&=" l_.str.53: ; @.str.53 .asciz "|=" l_.str.54: ; @.str.54 .asciz "^=" l_.str.55: ; @.str.55 .asciz "<<=" l_.str.56: ; @.str.56 .asciz ">>=" l_.str.57: ; @.str.57 .asciz "!" l_.str.58: ; @.str.58 .asciz "&" l_.str.59: ; @.str.59 .asciz "|" l_.str.60: ; @.str.60 .asciz "((%s)=>(%s) %s)" l_.str.61: ; @.str.61 .asciz "&&%s" .comm _OP_EQ,4,2 ; @OP_EQ l_.str.62: ; @.str.62 .asciz "(== " l_.str.63: ; @.str.63 .asciz "(%c " l_.str.64: ; @.str.64 .asciz "%s %s)" .no_dead_strip _do_node2s .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function do_node2s _do_node2s: ## @do_node2s .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $304, %rsp ## imm = 0x130 movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) cmpq $0, -16(%rbp) jne LBB0_2 ## %bb.1: movq -8(%rbp), %rdi leaq L_.str(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_2: movq -16(%rbp), %rax movl (%rax), %eax addl $-33, %eax movl %eax, %ecx movq %rcx, -64(%rbp) ## 8-byte Spill subl $146, %eax ja LBB0_89 ## %bb.94: movq -64(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_3: movq -16(%rbp), %rax movq 48(%rax), %rax movl (%rax), %eax addl $-153, %eax movl %eax, %ecx movq %rcx, -72(%rbp) ## 8-byte Spill subl $7, %eax ja LBB0_19 ## %bb.95: movq -72(%rbp), %rax ## 8-byte Reload leaq LJTI0_1(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_4: movq -16(%rbp), %rax movsbl 4(%rax), %eax cmpl $10, %eax jne LBB0_6 ## %bb.5: movq -8(%rbp), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_13 LBB0_6: movq -16(%rbp), %rax movsbl 4(%rax), %eax cmpl $92, %eax jne LBB0_8 ## %bb.7: movq -8(%rbp), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_12 LBB0_8: movq -16(%rbp), %rax movsbl 4(%rax), %eax cmpl $0, %eax jne LBB0_10 ## %bb.9: movq -8(%rbp), %rdi leaq L_.str.3(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_11 LBB0_10: movq -8(%rbp), %rdi movq -16(%rbp), %rax movsbl 4(%rax), %edx leaq L_.str.4(%rip), %rsi movb $0, %al callq _buf_printf LBB0_11: jmp LBB0_12 LBB0_12: jmp LBB0_13 LBB0_13: jmp LBB0_20 LBB0_14: movq -8(%rbp), %rdi movq -16(%rbp), %rax movsbl 4(%rax), %edx leaq L_.str.5(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_20 LBB0_15: movq -8(%rbp), %rdi movq -16(%rbp), %rax movsbl 4(%rax), %edx leaq L_.str.6(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_20 LBB0_16: movq -8(%rbp), %rdi movq -16(%rbp), %rax movsbl 4(%rax), %edx leaq L_.str.7(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_20 LBB0_17: movq -8(%rbp), %rdi movq -16(%rbp), %rax movl 180(%rax), %edx leaq L_.str.8(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_20 LBB0_18: movq -8(%rbp), %rax movq %rax, -80(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movl 176(%rax), %edi callq _quote_cstring movq -80(%rbp), %rdi ## 8-byte Reload movl %eax, %edx leaq L_.str.9(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_20 LBB0_19: leaq L_.str.10(%rip), %rdi callq _error LBB0_20: jmp LBB0_93 LBB0_21: movq -8(%rbp), %rdi movq -16(%rbp), %rax movl 32(%rax), %edx leaq L_.str.11(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_22: movq -8(%rbp), %rdi movq -16(%rbp), %rax movl 168(%rax), %edx leaq L_.str.12(%rip), %rsi movb $0, %al callq _buf_printf movq -16(%rbp), %rax cmpl $0, 172(%rax) je LBB0_24 ## %bb.23: movq -8(%rbp), %rdi leaq L_.str.13(%rip), %rsi movb $0, %al callq _buf_printf movq -8(%rbp), %rdi movq -16(%rbp), %rax movl 172(%rax), %esi callq _a2s_declinit movq -8(%rbp), %rdi leaq L_.str.14(%rip), %rsi movb $0, %al callq _buf_printf LBB0_24: jmp LBB0_93 LBB0_25: movq -8(%rbp), %rdi movq -16(%rbp), %rax movl 168(%rax), %edx leaq L_.str.15(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_26: movq -8(%rbp), %rax movq %rax, -96(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 48(%rax), %rdi callq _ty2s movq %rax, -88(%rbp) ## 8-byte Spill movq -16(%rbp), %rax cmpl $173, (%rax) jne LBB0_28 ## %bb.27: movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -104(%rbp) ## 8-byte Spill jmp LBB0_29 LBB0_28: movq -16(%rbp), %rdi callq _node2s movq %rax, -104(%rbp) ## 8-byte Spill LBB0_29: movq -88(%rbp), %rdx ## 8-byte Reload movq -96(%rbp), %rdi ## 8-byte Reload movq -104(%rbp), %rcx ## 8-byte Reload leaq L_.str.16(%rip), %rsi movb $0, %al callq _buf_printf movl $0, -20(%rbp) LBB0_30: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax movl %eax, -108(%rbp) ## 4-byte Spill movq -16(%rbp), %rax movl 164(%rax), %edi callq _vec_len movl %eax, %ecx movl -108(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jge LBB0_35 ## %bb.31: ## in Loop: Header=BB0_30 Depth=1 cmpl $0, -20(%rbp) jle LBB0_33 ## %bb.32: ## in Loop: Header=BB0_30 Depth=1 movq -8(%rbp), %rdi leaq L_.str.17(%rip), %rsi movb $0, %al callq _buf_printf LBB0_33: ## in Loop: Header=BB0_30 Depth=1 movq -8(%rbp), %rax movq %rax, -120(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movl 164(%rax), %edi movl -20(%rbp), %esi callq _vec_get movq %rax, %rdi callq _node2s movq -120(%rbp), %rdi ## 8-byte Reload movq %rax, %rdx leaq L_.str.18(%rip), %rsi movb $0, %al callq _buf_printf ## %bb.34: ## in Loop: Header=BB0_30 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_30 LBB0_35: movq -8(%rbp), %rdi leaq L_.str.14(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_36: movq -8(%rbp), %rdi movq -16(%rbp), %rax movq 8(%rax), %rdx leaq L_.str.19(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_37: movq -8(%rbp), %rax movq %rax, -128(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 48(%rax), %rdi callq _ty2s movq -128(%rbp), %rdi ## 8-byte Reload movq %rax, %rdx movq -16(%rbp), %rax movq 8(%rax), %rcx leaq L_.str.16(%rip), %rsi movb $0, %al callq _buf_printf movl $0, -24(%rbp) LBB0_38: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax movl %eax, -132(%rbp) ## 4-byte Spill movq -16(%rbp), %rax movl 160(%rax), %edi callq _vec_len movl %eax, %ecx movl -132(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jge LBB0_43 ## %bb.39: ## in Loop: Header=BB0_38 Depth=1 cmpl $0, -24(%rbp) jle LBB0_41 ## %bb.40: ## in Loop: Header=BB0_38 Depth=1 movq -8(%rbp), %rdi leaq L_.str.17(%rip), %rsi movb $0, %al callq _buf_printf LBB0_41: ## in Loop: Header=BB0_38 Depth=1 movq -16(%rbp), %rax movl 160(%rax), %edi movl -24(%rbp), %esi callq _vec_get movq %rax, -32(%rbp) movq -8(%rbp), %rax movq %rax, -152(%rbp) ## 8-byte Spill movq -32(%rbp), %rax movq 48(%rax), %rdi callq _ty2s movq %rax, -144(%rbp) ## 8-byte Spill movq -32(%rbp), %rdi callq _node2s movq -152(%rbp), %rdi ## 8-byte Reload movq -144(%rbp), %rdx ## 8-byte Reload movq %rax, %rcx leaq L_.str.20(%rip), %rsi movb $0, %al callq _buf_printf ## %bb.42: ## in Loop: Header=BB0_38 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_38 LBB0_43: movq -8(%rbp), %rdi leaq L_.str.14(%rip), %rsi movb $0, %al callq _buf_printf movq -8(%rbp), %rdi movq -16(%rbp), %rax movq 152(%rax), %rsi callq _do_node2s jmp LBB0_93 LBB0_44: movq -8(%rbp), %rdi movq -16(%rbp), %rax movl 32(%rax), %edx leaq L_.str.21(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_45: movq -8(%rbp), %rax movq %rax, -160(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 144(%rax), %rax movq 8(%rax), %rdi callq _ty2s movq -160(%rbp), %rdi ## 8-byte Reload movq %rax, %rdx movq -16(%rbp), %rax movq 144(%rax), %rax movq (%rax), %rcx leaq L_.str.22(%rip), %rsi movb $0, %al callq _buf_printf movq -16(%rbp), %rax cmpl $0, 136(%rax) je LBB0_47 ## %bb.46: movq -8(%rbp), %rdi leaq L_.str.23(%rip), %rsi movb $0, %al callq _buf_printf movq -8(%rbp), %rdi movq -16(%rbp), %rax movl 136(%rax), %esi callq _a2s_declinit LBB0_47: movq -8(%rbp), %rdi leaq L_.str.14(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_48: movq -8(%rbp), %rax movq %rax, -184(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 128(%rax), %rdi callq _node2s movq %rax, -176(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movl 120(%rax), %eax movl %eax, -164(%rbp) ## 4-byte Spill movq -16(%rbp), %rax movq 112(%rax), %rdi callq _ty2s movq -184(%rbp), %rdi ## 8-byte Reload movq -176(%rbp), %rdx ## 8-byte Reload movl -164(%rbp), %ecx ## 4-byte Reload movq %rax, %r8 leaq L_.str.24(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_49: movq -8(%rbp), %rax movq %rax, -200(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 40(%rax), %rdi callq _node2s movq %rax, -192(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 48(%rax), %rdi callq _ty2s movq -200(%rbp), %rdi ## 8-byte Reload movq -192(%rbp), %rdx ## 8-byte Reload movq %rax, %rcx leaq L_.str.25(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_50: movq -8(%rbp), %rax movq %rax, -216(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 104(%rax), %rdi callq _node2s movq %rax, -208(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 96(%rax), %rdi callq _node2s movq -216(%rbp), %rdi ## 8-byte Reload movq -208(%rbp), %rdx ## 8-byte Reload movq %rax, %rcx leaq L_.str.26(%rip), %rsi movb $0, %al callq _buf_printf movq -16(%rbp), %rax cmpq $0, 88(%rax) je LBB0_52 ## %bb.51: movq -8(%rbp), %rax movq %rax, -224(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 88(%rax), %rdi callq _node2s movq -224(%rbp), %rdi ## 8-byte Reload movq %rax, %rdx leaq L_.str.27(%rip), %rsi movb $0, %al callq _buf_printf LBB0_52: movq -8(%rbp), %rdi leaq L_.str.14(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_53: movq -8(%rbp), %rax movq %rax, -248(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 104(%rax), %rdi callq _node2s movq %rax, -240(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 96(%rax), %rdi callq _node2s movq %rax, -232(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 88(%rax), %rdi callq _node2s movq -248(%rbp), %rdi ## 8-byte Reload movq -240(%rbp), %rdx ## 8-byte Reload movq -232(%rbp), %rcx ## 8-byte Reload movq %rax, %r8 leaq L_.str.28(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_54: movq -8(%rbp), %rax movq %rax, -256(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 80(%rax), %rdi callq _node2s movq -256(%rbp), %rdi ## 8-byte Reload movq %rax, %rdx leaq L_.str.29(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_55: movq -8(%rbp), %rdi leaq L_.str.30(%rip), %rsi movb $0, %al callq _buf_printf movl $0, -36(%rbp) LBB0_56: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax movl %eax, -260(%rbp) ## 4-byte Spill movq -16(%rbp), %rax movl 72(%rax), %edi callq _vec_len movl %eax, %ecx movl -260(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jge LBB0_59 ## %bb.57: ## in Loop: Header=BB0_56 Depth=1 movq -8(%rbp), %rax movq %rax, -272(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movl 72(%rax), %edi movl -36(%rbp), %esi callq _vec_get movq -272(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi callq _do_node2s movq -8(%rbp), %rdi leaq L_.str.31(%rip), %rsi movb $0, %al callq _buf_printf ## %bb.58: ## in Loop: Header=BB0_56 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_56 LBB0_59: movq -8(%rbp), %rdi leaq L_.str.32(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_60: movq -8(%rbp), %rdi movq -16(%rbp), %rax movq 64(%rax), %rsi callq _do_node2s movq -8(%rbp), %rdi leaq L_.str.33(%rip), %rsi movb $0, %al callq _buf_printf movq -8(%rbp), %rdi movq -16(%rbp), %rax movslq 56(%rax), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_61: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.34(%rip), %rsi callq _uop_to_string jmp LBB0_93 LBB0_62: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.35(%rip), %rsi callq _uop_to_string jmp LBB0_93 LBB0_63: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.36(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_64: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.37(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_65: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.38(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_66: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.39(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_67: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.40(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_68: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.41(%rip), %rsi callq _uop_to_string jmp LBB0_93 LBB0_69: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.42(%rip), %rsi callq _uop_to_string jmp LBB0_93 LBB0_70: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.43(%rip), %rsi callq _uop_to_string jmp LBB0_93 LBB0_71: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.44(%rip), %rsi callq _uop_to_string jmp LBB0_93 LBB0_72: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.45(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_73: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.46(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_74: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.47(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_75: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.48(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_76: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.49(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_77: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.50(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_78: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.51(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_79: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.52(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_80: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.53(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_81: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.54(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_82: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.55(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_83: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.56(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_84: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.57(%rip), %rsi callq _uop_to_string jmp LBB0_93 LBB0_85: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.58(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_86: movq -8(%rbp), %rdi movq -16(%rbp), %rdx leaq L_.str.59(%rip), %rsi callq _binop_to_string jmp LBB0_93 LBB0_87: movq -8(%rbp), %rax movq %rax, -296(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 40(%rax), %rax movq 48(%rax), %rdi callq _ty2s movq %rax, -288(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 48(%rax), %rdi callq _ty2s movq %rax, -280(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movq 40(%rax), %rdi callq _node2s movq -296(%rbp), %rdi ## 8-byte Reload movq -288(%rbp), %rdx ## 8-byte Reload movq -280(%rbp), %rcx ## 8-byte Reload movq %rax, %r8 leaq L_.str.60(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_88: movq -8(%rbp), %rdi movq -16(%rbp), %rax movl 32(%rax), %edx leaq L_.str.61(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_93 LBB0_89: movq -16(%rbp), %rax movq 24(%rax), %rdi callq _node2s movq %rax, -48(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rdi callq _node2s movq %rax, -56(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movq _OP_EQ@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jne LBB0_91 ## %bb.90: movq -8(%rbp), %rdi leaq L_.str.62(%rip), %rsi movb $0, %al callq _buf_printf jmp LBB0_92 LBB0_91: movq -8(%rbp), %rdi movq -16(%rbp), %rax movl (%rax), %edx leaq L_.str.63(%rip), %rsi movb $0, %al callq _buf_printf LBB0_92: movq -8(%rbp), %rdi movq -48(%rbp), %rdx movq -56(%rbp), %rcx leaq L_.str.64(%rip), %rsi movb $0, %al callq _buf_printf LBB0_93: addq $304, %rsp ## imm = 0x130 popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_84, LBB0_84-LJTI0_0 .set L0_0_set_89, LBB0_89-LJTI0_0 .set L0_0_set_85, LBB0_85-LJTI0_0 .set L0_0_set_86, LBB0_86-LJTI0_0 .set L0_0_set_64, LBB0_64-LJTI0_0 .set L0_0_set_63, LBB0_63-LJTI0_0 .set L0_0_set_68, LBB0_68-LJTI0_0 .set L0_0_set_69, LBB0_69-LJTI0_0 .set L0_0_set_70, LBB0_70-LJTI0_0 .set L0_0_set_71, LBB0_71-LJTI0_0 .set L0_0_set_67, LBB0_67-LJTI0_0 .set L0_0_set_73, LBB0_73-LJTI0_0 .set L0_0_set_72, LBB0_72-LJTI0_0 .set L0_0_set_66, LBB0_66-LJTI0_0 .set L0_0_set_88, LBB0_88-LJTI0_0 .set L0_0_set_65, LBB0_65-LJTI0_0 .set L0_0_set_87, LBB0_87-LJTI0_0 .set L0_0_set_81, LBB0_81-LJTI0_0 .set L0_0_set_75, LBB0_75-LJTI0_0 .set L0_0_set_83, LBB0_83-LJTI0_0 .set L0_0_set_82, LBB0_82-LJTI0_0 .set L0_0_set_80, LBB0_80-LJTI0_0 .set L0_0_set_76, LBB0_76-LJTI0_0 .set L0_0_set_78, LBB0_78-LJTI0_0 .set L0_0_set_77, LBB0_77-LJTI0_0 .set L0_0_set_79, LBB0_79-LJTI0_0 .set L0_0_set_74, LBB0_74-LJTI0_0 .set L0_0_set_53, LBB0_53-LJTI0_0 .set L0_0_set_60, LBB0_60-LJTI0_0 .set L0_0_set_54, LBB0_54-LJTI0_0 .set L0_0_set_22, LBB0_22-LJTI0_0 .set L0_0_set_3, LBB0_3-LJTI0_0 .set L0_0_set_21, LBB0_21-LJTI0_0 .set L0_0_set_48, LBB0_48-LJTI0_0 .set L0_0_set_50, LBB0_50-LJTI0_0 .set L0_0_set_25, LBB0_25-LJTI0_0 .set L0_0_set_44, LBB0_44-LJTI0_0 .set L0_0_set_26, LBB0_26-LJTI0_0 .set L0_0_set_36, LBB0_36-LJTI0_0 .set L0_0_set_37, LBB0_37-LJTI0_0 .set L0_0_set_62, LBB0_62-LJTI0_0 .set L0_0_set_45, LBB0_45-LJTI0_0 .set L0_0_set_49, LBB0_49-LJTI0_0 .set L0_0_set_55, LBB0_55-LJTI0_0 .set L0_0_set_61, LBB0_61-LJTI0_0 LJTI0_0: .long L0_0_set_84 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_85 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_86 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_64 .long L0_0_set_64 .long L0_0_set_63 .long L0_0_set_68 .long L0_0_set_69 .long L0_0_set_70 .long L0_0_set_71 .long L0_0_set_67 .long L0_0_set_73 .long L0_0_set_72 .long L0_0_set_66 .long L0_0_set_88 .long L0_0_set_65 .long L0_0_set_87 .long L0_0_set_81 .long L0_0_set_75 .long L0_0_set_83 .long L0_0_set_83 .long L0_0_set_82 .long L0_0_set_80 .long L0_0_set_76 .long L0_0_set_78 .long L0_0_set_77 .long L0_0_set_79 .long L0_0_set_74 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_89 .long L0_0_set_53 .long L0_0_set_60 .long L0_0_set_54 .long L0_0_set_22 .long L0_0_set_3 .long L0_0_set_21 .long L0_0_set_48 .long L0_0_set_50 .long L0_0_set_25 .long L0_0_set_44 .long L0_0_set_26 .long L0_0_set_36 .long L0_0_set_26 .long L0_0_set_37 .long L0_0_set_62 .long L0_0_set_45 .long L0_0_set_49 .long L0_0_set_55 .long L0_0_set_61 .set L0_1_set_15, LBB0_15-LJTI0_1 .set L0_1_set_16, LBB0_16-LJTI0_1 .set L0_1_set_17, LBB0_17-LJTI0_1 .set L0_1_set_14, LBB0_14-LJTI0_1 .set L0_1_set_4, LBB0_4-LJTI0_1 .set L0_1_set_18, LBB0_18-LJTI0_1 LJTI0_1: .long L0_1_set_15 .long L0_1_set_16 .long L0_1_set_17 .long L0_1_set_14 .long L0_1_set_17 .long L0_1_set_17 .long L0_1_set_4 .long L0_1_set_18 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "(nil)" L_.str.1: ## @.str.1 .asciz "'\n'" L_.str.2: ## @.str.2 .asciz "'\\\\'" L_.str.3: ## @.str.3 .asciz "'\\0'" L_.str.4: ## @.str.4 .asciz "'%c'" L_.str.5: ## @.str.5 .asciz "%d" L_.str.6: ## @.str.6 .asciz "%ldL" L_.str.7: ## @.str.7 .asciz "%lldL" L_.str.8: ## @.str.8 .asciz "%f" L_.str.9: ## @.str.9 .asciz "\"%s\"" L_.str.10: ## @.str.10 .asciz "internal error" L_.str.11: ## @.str.11 .asciz "%s:" L_.str.12: ## @.str.12 .asciz "lv=%s" L_.str.13: ## @.str.13 .asciz "(" L_.str.14: ## @.str.14 .asciz ")" L_.str.15: ## @.str.15 .asciz "gv=%s" L_.str.16: ## @.str.16 .asciz "(%s)%s(" L_.str.17: ## @.str.17 .asciz "," L_.str.18: ## @.str.18 .asciz "%s" L_.str.19: ## @.str.19 .asciz "(funcdesg %s)" L_.str.20: ## @.str.20 .asciz "%s %s" L_.str.21: ## @.str.21 .asciz "goto(%s)" L_.str.22: ## @.str.22 .asciz "(decl %s %s" L_.str.23: ## @.str.23 .asciz " " L_.str.24: ## @.str.24 .asciz "%s@%d" L_.str.25: ## @.str.25 .asciz "(conv %s=>%s)" L_.str.26: ## @.str.26 .asciz "(if %s %s" L_.str.27: ## @.str.27 .asciz " %s" L_.str.28: ## @.str.28 .asciz "(? %s %s %s)" L_.str.29: ## @.str.29 .asciz "(return %s)" L_.str.30: ## @.str.30 .asciz "{" L_.str.31: ## @.str.31 .asciz ";" L_.str.32: ## @.str.32 .asciz "}" L_.str.33: ## @.str.33 .asciz "." L_.str.34: ## @.str.34 .asciz "addr" L_.str.35: ## @.str.35 .asciz "deref" L_.str.36: ## @.str.36 .asciz "<<" L_.str.37: ## @.str.37 .asciz ">>" L_.str.38: ## @.str.38 .asciz ">=" L_.str.39: ## @.str.39 .asciz "<=" L_.str.40: ## @.str.40 .asciz "!=" L_.str.41: ## @.str.41 .asciz "pre++" L_.str.42: ## @.str.42 .asciz "pre--" L_.str.43: ## @.str.43 .asciz "post++" L_.str.44: ## @.str.44 .asciz "post--" L_.str.45: ## @.str.45 .asciz "and" L_.str.46: ## @.str.46 .asciz "or" L_.str.47: ## @.str.47 .asciz "+=" L_.str.48: ## @.str.48 .asciz "-=" L_.str.49: ## @.str.49 .asciz "*=" L_.str.50: ## @.str.50 .asciz "/=" L_.str.51: ## @.str.51 .asciz "%=" L_.str.52: ## @.str.52 .asciz "&=" L_.str.53: ## @.str.53 .asciz "|=" L_.str.54: ## @.str.54 .asciz "^=" L_.str.55: ## @.str.55 .asciz "<<=" L_.str.56: ## @.str.56 .asciz ">>=" L_.str.57: ## @.str.57 .asciz "!" L_.str.58: ## @.str.58 .asciz "&" L_.str.59: ## @.str.59 .asciz "|" L_.str.60: ## @.str.60 .asciz "((%s)=>(%s) %s)" L_.str.61: ## @.str.61 .asciz "&&%s" .comm _OP_EQ,4,2 ## @OP_EQ L_.str.62: ## @.str.62 .asciz "(== " L_.str.63: ## @.str.63 .asciz "(%c " L_.str.64: ## @.str.64 .asciz "%s %s)" .no_dead_strip _do_node2s .subsections_via_symbols
AnghaBench/8cc/extr_debug.c_do_node2s.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_elif _read_elif: ; @read_elif .cfi_startproc ; %bb.0: 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, _cond_incl_stack@GOTPAGE ldr x8, [x8, _cond_incl_stack@GOTPAGEOFF] ldr w0, [x8] bl _vec_len subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x0, [sp, #8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _errort b LBB0_2 LBB0_2: adrp x8, _cond_incl_stack@GOTPAGE ldr x8, [x8, _cond_incl_stack@GOTPAGEOFF] ldr w0, [x8] bl _vec_tail str x0, [sp] ldr x8, [sp] ldr x8, [x8] adrp x9, _IN_ELSE@GOTPAGE ldr x9, [x9, _IN_ELSE@GOTPAGEOFF] ldr x9, [x9] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x0, [sp, #8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _errort b LBB0_4 LBB0_4: adrp x8, _IN_ELIF@GOTPAGE ldr x8, [x8, _IN_ELIF@GOTPAGEOFF] ldr x8, [x8] ldr x9, [sp] str x8, [x9] ldr x8, [sp] ; kill: def $x9 killed $xzr str xzr, [x8, #16] ldr x8, [sp] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: bl _read_constexpr subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: bl _skip_cond_incl b LBB0_8 LBB0_7: ldr x9, [sp] mov w8, #1 str w8, [x9, #8] b LBB0_8 LBB0_8: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .comm _cond_incl_stack,4,2 ; @cond_incl_stack .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "stray #elif" .comm _IN_ELSE,8,3 ; @IN_ELSE l_.str.1: ; @.str.1 .asciz "#elif after #else" .comm _IN_ELIF,8,3 ; @IN_ELIF .no_dead_strip _read_elif .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_elif _read_elif: ## @read_elif .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq _cond_incl_stack@GOTPCREL(%rip), %rax movl (%rax), %edi callq _vec_len cmpq $0, %rax jne LBB0_2 ## %bb.1: movq -8(%rbp), %rdi leaq L_.str(%rip), %rsi callq _errort LBB0_2: movq _cond_incl_stack@GOTPCREL(%rip), %rax movl (%rax), %edi callq _vec_tail movq %rax, -16(%rbp) movq -16(%rbp), %rax movq (%rax), %rax movq _IN_ELSE@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_4 ## %bb.3: movq -8(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _errort LBB0_4: movq _IN_ELIF@GOTPCREL(%rip), %rax movq (%rax), %rcx movq -16(%rbp), %rax movq %rcx, (%rax) movq -16(%rbp), %rax movq $0, 16(%rax) movq -16(%rbp), %rax cmpl $0, 8(%rax) jne LBB0_6 ## %bb.5: movb $0, %al callq _read_constexpr cmpl $0, %eax jne LBB0_7 LBB0_6: movb $0, %al callq _skip_cond_incl jmp LBB0_8 LBB0_7: movq -16(%rbp), %rax movl $1, 8(%rax) LBB0_8: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _cond_incl_stack,4,2 ## @cond_incl_stack .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "stray #elif" .comm _IN_ELSE,8,3 ## @IN_ELSE L_.str.1: ## @.str.1 .asciz "#elif after #else" .comm _IN_ELIF,8,3 ## @IN_ELIF .no_dead_strip _read_elif .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_elif.c