x86
stringlengths
122
3.84M
arm
stringlengths
122
16.1M
file
stringlengths
19
207
source
stringclasses
2 values
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _buf_append ## -- Begin function buf_append .p2align 4, 0x90 _buf_append: ## @buf_append .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 testl %edx, %edx jle LBB0_3 ## %bb.1: movq %rsi, %r14 movq %rdi, %r15 movl %edx, %r12d xorl %ebx, %ebx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movsbl (%r14,%rbx), %esi movq %r15, %rdi callq _buf_write incq %rbx cmpq %rbx, %r12 jne LBB0_2 LBB0_3: popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _buf_append ; -- Begin function buf_append .p2align 2 _buf_append: ; @buf_append .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 cmp w2, #1 b.lt LBB0_3 ; %bb.1: mov x19, x1 mov x20, x0 mov w21, w2 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldrsb w1, [x19], #1 mov x0, x20 bl _buf_write subs x21, x21, #1 b.ne LBB0_2 LBB0_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_buf_append.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _buf_body ## -- Begin function buf_body .p2align 4, 0x90 _buf_body: ## @buf_body .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq (%rdi), %rax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _buf_body ; -- Begin function buf_body .p2align 2 _buf_body: ; @buf_body .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_buf_body.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _buf_len ## -- Begin function buf_len .p2align 4, 0x90 _buf_len: ## @buf_len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _buf_len ; -- Begin function buf_len .p2align 2 _buf_len: ; @buf_len .cfi_startproc ; %bb.0: ldr w0, [x0] ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_buf_len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _buf_write ## -- Begin function buf_write .p2align 4, 0x90 _buf_write: ## @buf_write .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movl %esi, %r14d movq %rdi, %rbx movq 8(%rdi), %rax leaq 1(%rax), %rcx cmpq %rcx, (%rdi) jne LBB0_2 ## %bb.1: movq %rbx, %rdi callq _realloc_body movq 8(%rbx), %rax leaq 1(%rax), %rcx LBB0_2: movq 16(%rbx), %rdx movq %rcx, 8(%rbx) movb %r14b, (%rdx,%rax) popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _buf_write ; -- Begin function buf_write .p2align 2 _buf_write: ; @buf_write .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 ldp x10, x8, [x0] add x9, x8, #1 cmp x10, x9 b.ne LBB0_2 ; %bb.1: mov x0, x20 bl _realloc_body ldr x8, [x20, #8] add x9, x8, #1 LBB0_2: ldr x10, [x20, #16] str x9, [x20, #8] strb w19, [x10, x8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_buf_write.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _make_buffer ## -- Begin function make_buffer .p2align 4, 0x90 _make_buffer: ## @make_buffer .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movl $24, %edi callq _malloc movq %rax, %rbx movq _INIT_SIZE@GOTPCREL(%rip), %r14 movl (%r14), %edi callq _malloc movq %rax, 16(%rbx) movl (%r14), %eax movl %eax, (%rbx) movq $0, 8(%rbx) movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _INIT_SIZE,4,2 ## @INIT_SIZE .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _make_buffer ; -- Begin function make_buffer .p2align 2 _make_buffer: ; @make_buffer .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov w0, #24 bl _malloc mov x19, x0 Lloh0: adrp x20, _INIT_SIZE@GOTPAGE Lloh1: ldr x20, [x20, _INIT_SIZE@GOTPAGEOFF] ldr w0, [x20] bl _malloc ldr w8, [x20] str w8, [x19] stp xzr, x0, [x19, #8] mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _INIT_SIZE,4,2 ; @INIT_SIZE .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_make_buffer.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function print _print: ## @print .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %esi, %ebx movq %rdi, %r15 movl %esi, %edi callq _quote testq %rax, %rax je LBB0_1 ## %bb.5: leaq L_.str(%rip), %rsi movq %r15, %rdi movq %rax, %rdx xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _buf_printf ## TAILCALL LBB0_1: movsbl %bl, %r14d movl %r14d, %edi callq _isprint testq %rax, %rax je LBB0_4 ## %bb.2: leaq L_.str.1(%rip), %rsi jmp LBB0_3 LBB0_4: leaq L_.str.2(%rip), %rsi LBB0_3: movq %r15, %rdi movl %r14d, %edx xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _buf_printf ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" L_.str.1: ## @.str.1 .asciz "%c" L_.str.2: ## @.str.2 .asciz "\\x%02x" .no_dead_strip _print .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function print _print: ; @print .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x20, x1 mov x19, x0 mov x0, x1 bl _quote cbz x0, LBB0_2 ; %bb.1: str x0, [sp] Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF b LBB0_5 LBB0_2: mov x0, x20 bl _isprint cbz x0, LBB0_4 ; %bb.3: str x20, [sp] Lloh2: adrp x1, l_.str.1@PAGE Lloh3: add x1, x1, l_.str.1@PAGEOFF b LBB0_5 LBB0_4: ; kill: def $w20 killed $w20 killed $x20 def $x20 str x20, [sp] Lloh4: adrp x1, l_.str.2@PAGE Lloh5: add x1, x1, l_.str.2@PAGEOFF LBB0_5: mov x0, x19 bl _buf_printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload add sp, sp, #48 ret .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" l_.str.1: ; @.str.1 .asciz "%c" l_.str.2: ; @.str.2 .asciz "\\x%02x" .no_dead_strip _print .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_print.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function quote _quote: ## @quote .cfi_startproc ## %bb.0: ## kill: def $edi killed $edi def $rdi leal -8(%rdi), %ecx cmpl $26, %ecx ja LBB0_1 ## %bb.10: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax leaq LJTI0_0(%rip), %rdx movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx popq %rbp jmpq *%rcx LBB0_3: leaq L_.str.2(%rip), %rax retq LBB0_1: cmpl $92, %edi jne LBB0_8 ## %bb.2: leaq L_.str.1(%rip), %rax retq LBB0_8: xorl %eax, %eax LBB0_9: retq LBB0_7: leaq L_.str.6(%rip), %rax retq LBB0_5: leaq L_.str.4(%rip), %rax retq LBB0_4: leaq L_.str.3(%rip), %rax retq LBB0_6: leaq L_.str.5(%rip), %rax retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_3, LBB0_3-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 .set L0_0_set_5, LBB0_5-LJTI0_0 .set L0_0_set_8, LBB0_8-LJTI0_0 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 .set L0_0_set_9, LBB0_9-LJTI0_0 LJTI0_0: .long L0_0_set_3 .long L0_0_set_7 .long L0_0_set_5 .long L0_0_set_8 .long L0_0_set_4 .long L0_0_set_6 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_8 .long L0_0_set_9 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\\\"" L_.str.1: ## @.str.1 .asciz "\\\\" L_.str.2: ## @.str.2 .asciz "\\b" L_.str.3: ## @.str.3 .asciz "\\f" L_.str.4: ## @.str.4 .asciz "\\n" L_.str.5: ## @.str.5 .asciz "\\r" L_.str.6: ## @.str.6 .asciz "\\t" .no_dead_strip _quote .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function quote _quote: ; @quote .cfi_startproc ; %bb.0: sub w8, w0, #8 cmp w8, #26 b.hi LBB0_3 ; %bb.1: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF Lloh2: adrp x9, lJTI0_0@PAGE Lloh3: add x9, x9, lJTI0_0@PAGEOFF adr x10, LBB0_2 ldrb w11, [x9, x8] add x10, x10, x11, lsl #2 br x10 LBB0_2: Lloh4: adrp x0, l_.str.2@PAGE Lloh5: add x0, x0, l_.str.2@PAGEOFF ret LBB0_3: cmp w0, #92 b.ne LBB0_5 ; %bb.4: Lloh6: adrp x0, l_.str.1@PAGE Lloh7: add x0, x0, l_.str.1@PAGEOFF ret LBB0_5: mov x0, #0 LBB0_6: ret LBB0_7: Lloh8: adrp x0, l_.str.6@PAGE Lloh9: add x0, x0, l_.str.6@PAGEOFF ret LBB0_8: Lloh10: adrp x0, l_.str.4@PAGE Lloh11: add x0, x0, l_.str.4@PAGEOFF ret LBB0_9: Lloh12: adrp x0, l_.str.3@PAGE Lloh13: add x0, x0, l_.str.3@PAGEOFF ret LBB0_10: Lloh14: adrp x0, l_.str.5@PAGE Lloh15: add x0, x0, l_.str.5@PAGEOFF ret .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpAdd Lloh10, Lloh11 .loh AdrpAdd Lloh12, Lloh13 .loh AdrpAdd Lloh14, Lloh15 .cfi_endproc .section __TEXT,__const lJTI0_0: .byte (LBB0_2-LBB0_2)>>2 .byte (LBB0_7-LBB0_2)>>2 .byte (LBB0_8-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_9-LBB0_2)>>2 .byte (LBB0_10-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_5-LBB0_2)>>2 .byte (LBB0_6-LBB0_2)>>2 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\\\"" l_.str.1: ; @.str.1 .asciz "\\\\" l_.str.2: ; @.str.2 .asciz "\\b" l_.str.3: ; @.str.3 .asciz "\\f" l_.str.4: ; @.str.4 .asciz "\\n" l_.str.5: ; @.str.5 .asciz "\\r" l_.str.6: ; @.str.6 .asciz "\\t" .no_dead_strip _quote .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_quote.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _quote_char ## -- Begin function quote_char .p2align 4, 0x90 _quote_char: ## @quote_char .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp cmpb $92, %dil je LBB0_1 ## %bb.2: cmpb $39, %dil jne LBB0_5 ## %bb.3: leaq L_.str.1(%rip), %rax popq %rbp retq LBB0_1: leaq L_.str(%rip), %rax popq %rbp retq LBB0_5: movsbl %dil, %esi leaq L_.str.2(%rip), %rdi popq %rbp jmp _format ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\\\\" L_.str.1: ## @.str.1 .asciz "\\'" L_.str.2: ## @.str.2 .asciz "%c" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _quote_char ; -- Begin function quote_char .p2align 2 _quote_char: ; @quote_char .cfi_startproc ; %bb.0: cmp w0, #92 b.eq LBB0_3 ; %bb.1: mov x1, x0 cmp w0, #39 b.ne LBB0_4 ; %bb.2: Lloh0: adrp x0, l_.str.1@PAGE Lloh1: add x0, x0, l_.str.1@PAGEOFF ret LBB0_3: Lloh2: adrp x0, l_.str@PAGE Lloh3: add x0, x0, l_.str@PAGEOFF ret LBB0_4: Lloh4: adrp x0, l_.str.2@PAGE Lloh5: add x0, x0, l_.str.2@PAGEOFF b _format .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\\\\" l_.str.1: ; @.str.1 .asciz "\\'" l_.str.2: ; @.str.2 .asciz "%c" .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_quote_char.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _quote_cstring ## -- Begin function quote_cstring .p2align 4, 0x90 _quote_cstring: ## @quote_cstring .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %rbx xorl %eax, %eax callq _make_buffer movq %rax, %r14 movb (%rbx), %al testb %al, %al je LBB0_3 ## %bb.1: incq %rbx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movsbl %al, %esi movq %r14, %rdi callq _print movzbl (%rbx), %eax incq %rbx testb %al, %al jne LBB0_2 LBB0_3: movq %r14, %rdi popq %rbx popq %r14 popq %rbp jmp _buf_body ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _quote_cstring ; -- Begin function quote_cstring .p2align 2 _quote_cstring: ; @quote_cstring .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x20, x0 bl _make_buffer mov x19, x0 ldrb w8, [x20] cbz w8, LBB0_3 ; %bb.1: add x20, x20, #1 LBB0_2: ; =>This Inner Loop Header: Depth=1 sxtb w1, w8 mov x0, x19 bl _print ldrb w8, [x20], #1 cbnz w8, LBB0_2 LBB0_3: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _buf_body .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_quote_cstring.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _quote_cstring_len ## -- Begin function quote_cstring_len .p2align 4, 0x90 _quote_cstring_len: ## @quote_cstring_len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %esi, %r15d movq %rdi, %r14 xorl %eax, %eax callq _make_buffer movq %rax, %r12 testl %r15d, %r15d jle LBB0_3 ## %bb.1: movl %r15d, %r15d xorl %ebx, %ebx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movsbl (%r14,%rbx), %esi movq %r12, %rdi callq _print incq %rbx cmpq %rbx, %r15 jne LBB0_2 LBB0_3: movq %r12, %rdi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _buf_body ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _quote_cstring_len ; -- Begin function quote_cstring_len .p2align 2 _quote_cstring_len: ; @quote_cstring_len .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x21, x1 mov x19, x0 bl _make_buffer mov x20, x0 cmp w21, #1 b.lt LBB0_3 ; %bb.1: mov w21, w21 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldrsb w1, [x19], #1 mov x0, x20 bl _print subs x21, x21, #1 b.ne LBB0_2 LBB0_3: mov x0, x20 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _buf_body .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_quote_cstring_len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function realloc_body _realloc_body: ## @realloc_body .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx movl (%rdi), %r14d addl %r14d, %r14d movl %r14d, %edi callq _malloc movq %rax, %r15 movq 8(%rbx), %rsi movl 16(%rbx), %edx movq %rax, %rdi callq _memcpy movq %r15, 8(%rbx) movl %r14d, (%rbx) addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _realloc_body .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function realloc_body _realloc_body: ; @realloc_body .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 ldr w8, [x0] lsl w20, w8, #1 mov x0, x20 bl _malloc mov x21, x0 ldr x1, [x19, #8] ldr w2, [x19, #16] bl _memcpy str x21, [x19, #8] str w20, [x19] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _realloc_body .subsections_via_symbols
AnghaBench/8cc/extr_buffer.c_realloc_body.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function add_hide_set _add_hide_set: ## @add_hide_set .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r14 movq %rdi, %r15 xorl %r13d, %r13d xorl %eax, %eax callq _make_vector movq %rax, %r12 movq %r15, %rdi callq _vec_len testl %eax, %eax jle LBB0_2 .p2align 4, 0x90 LBB0_1: ## =>This Inner Loop Header: Depth=1 movq %r15, %rdi movl %r13d, %esi callq _vec_get movl %eax, %edi callq _copy_token movq %rax, %rbx movl (%rax), %edi movq %r14, %rsi callq _set_union movl %eax, (%rbx) movq %r12, %rdi movq %rbx, %rsi callq _vec_push incl %r13d movq %r15, %rdi callq _vec_len cmpl %eax, %r13d jl LBB0_1 LBB0_2: movq %r12, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _add_hide_set .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function add_hide_set _add_hide_set: ; @add_hide_set .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x19, x1 mov x20, x0 bl _make_vector mov x21, x0 mov x0, x20 bl _vec_len cmp w0, #1 b.lt LBB0_3 ; %bb.1: mov w22, #0 LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x20 mov x1, x22 bl _vec_get bl _copy_token mov x23, x0 ldr w0, [x0] mov x1, x19 bl _set_union str w0, [x23] mov x0, x21 mov x1, x23 bl _vec_push add w22, w22, #1 mov x0, x20 bl _vec_len cmp w22, w0 b.lt LBB0_2 LBB0_3: mov x0, x21 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _add_hide_set .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_add_hide_set.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _add_include_path ## -- Begin function add_include_path .p2align 4, 0x90 _add_include_path: ## @add_include_path .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, %rsi movq _std_include_path@GOTPCREL(%rip), %rax movl (%rax), %edi popq %rbp jmp _vec_push ## TAILCALL .cfi_endproc ## -- End function .comm _std_include_path,4,2 ## @std_include_path .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _add_include_path ; -- Begin function add_include_path .p2align 2 _add_include_path: ; @add_include_path .cfi_startproc ; %bb.0: mov x1, x0 Lloh0: adrp x8, _std_include_path@GOTPAGE Lloh1: ldr x8, [x8, _std_include_path@GOTPAGEOFF] Lloh2: ldr w0, [x8] b _vec_push .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _std_include_path,4,2 ; @std_include_path .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_add_include_path.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function copy_token _copy_token: ## @copy_token .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movl $4, %edi callq _malloc movl (%rbx), %ecx movl %ecx, (%rax) addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _copy_token .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function copy_token _copy_token: ; @copy_token .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 mov w0, #4 bl _malloc ldr w8, [x19] str w8, [x0] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _copy_token .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_copy_token.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _cpp_init ## -- Begin function cpp_init .p2align 4, 0x90 _cpp_init: ## @cpp_init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _LC_ALL@GOTPCREL(%rip), %rax movl (%rax), %edi leaq L_.str(%rip), %rsi callq _setlocale xorl %eax, %eax callq _init_keywords xorl %eax, %eax callq _init_now xorl %eax, %eax popq %rbp jmp _init_predefined_macros ## TAILCALL .cfi_endproc ## -- End function .comm _LC_ALL,4,2 ## @LC_ALL .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "C" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _cpp_init ; -- Begin function cpp_init .p2align 2 _cpp_init: ; @cpp_init .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 Lloh0: adrp x8, _LC_ALL@GOTPAGE Lloh1: ldr x8, [x8, _LC_ALL@GOTPAGEOFF] Lloh2: ldr w0, [x8] Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF bl _setlocale bl _init_keywords bl _init_now ldp x29, x30, [sp], #16 ; 16-byte Folded Reload b _init_predefined_macros .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _LC_ALL,4,2 ; @LC_ALL .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "C" .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_cpp_init.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function define_obj_macro _define_obj_macro: ## @define_obj_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 movq _macros@GOTPCREL(%rip), %rax movl (%rax), %ebx movq %rsi, %rdi callq _make_vector1 movl %eax, %edi callq _make_obj_macro movl %ebx, %edi movq %r14, %rsi movl %eax, %edx popq %rbx popq %r14 popq %rbp jmp _map_put ## TAILCALL .cfi_endproc ## -- End function .comm _macros,4,2 ## @macros .no_dead_strip _define_obj_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function define_obj_macro _define_obj_macro: ; @define_obj_macro .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x8, _macros@GOTPAGE Lloh1: ldr x8, [x8, _macros@GOTPAGEOFF] Lloh2: ldr w20, [x8] mov x0, x1 bl _make_vector1 bl _make_obj_macro mov x2, x0 mov x0, x20 mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _map_put .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _macros,4,2 ; @macros .no_dead_strip _define_obj_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_define_obj_macro.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function define_special_macro _define_special_macro: ## @define_special_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 movq _macros@GOTPCREL(%rip), %rax movl (%rax), %ebx movq %rsi, %rdi callq _make_special_macro movl %ebx, %edi movq %r14, %rsi movl %eax, %edx popq %rbx popq %r14 popq %rbp jmp _map_put ## TAILCALL .cfi_endproc ## -- End function .comm _macros,4,2 ## @macros .no_dead_strip _define_special_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function define_special_macro _define_special_macro: ; @define_special_macro .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x8, _macros@GOTPAGE Lloh1: ldr x8, [x8, _macros@GOTPAGEOFF] Lloh2: ldr w20, [x8] mov x0, x1 bl _make_special_macro mov x2, x0 mov x0, x20 mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _map_put .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _macros,4,2 ; @macros .no_dead_strip _define_special_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_define_special_macro.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function do_read_args _do_read_args: ## @do_read_args .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $16, %rsp .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %rbx movq %rdi, %r15 xorl %eax, %eax callq _make_vector movq %rax, %r14 movl $0, -36(%rbp) leaq -36(%rbp), %r12 jmp LBB0_1 .p2align 4, 0x90 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movq %r14, %rdi callq _vec_len incl %eax cmpl (%rbx), %eax sete %al LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movzbl %al, %edx movq %r15, %rdi movq %r12, %rsi callq _read_one_arg movq %r14, %rdi movq %rax, %rsi callq _vec_push cmpl $0, -36(%rbp) jne LBB0_5 LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, 8(%rbx) jne LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax jmp LBB0_4 LBB0_5: cmpq $0, 8(%rbx) je LBB0_8 ## %bb.6: movq %r14, %rdi callq _vec_len movl (%rbx), %ecx decl %ecx cmpl %ecx, %eax jne LBB0_8 ## %bb.7: xorl %eax, %eax callq _make_vector movq %r14, %rdi movq %rax, %rsi callq _vec_push LBB0_8: movq %r14, %rax addq $16, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _do_read_args .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function do_read_args _do_read_args: ; @do_read_args .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x20, x1 mov x21, x0 bl _make_vector mov x19, x0 str wzr, [sp, #12] b LBB0_3 LBB0_1: ; in Loop: Header=BB0_3 Depth=1 mov x0, x19 bl _vec_len add w8, w0, #1 ldr w9, [x20] cmp w8, w9 cset w2, eq LBB0_2: ; in Loop: Header=BB0_3 Depth=1 add x1, sp, #12 mov x0, x21 bl _read_one_arg mov x1, x0 mov x0, x19 bl _vec_push ldr w8, [sp, #12] cbnz w8, LBB0_5 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [x20, #8] cbnz x8, LBB0_1 ; %bb.4: ; in Loop: Header=BB0_3 Depth=1 mov w2, #0 b LBB0_2 LBB0_5: ldr x8, [x20, #8] cbz x8, LBB0_8 ; %bb.6: mov x0, x19 bl _vec_len ldr w8, [x20] sub w8, w8, #1 cmp w0, w8 b.ne LBB0_8 ; %bb.7: bl _make_vector mov x1, x0 mov x0, x19 bl _vec_push LBB0_8: mov x0, x19 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .no_dead_strip _do_read_args .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_do_read_args.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function do_read_if _do_read_if: ## @do_read_if .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movl %edi, %ebx movq _cond_incl_stack@GOTPCREL(%rip), %rax movl (%rax), %r14d callq _make_cond_incl movl %r14d, %edi movl %eax, %esi callq _vec_push testl %ebx, %ebx je LBB0_2 ## %bb.1: popq %rbx popq %r14 popq %rbp retq LBB0_2: xorl %eax, %eax popq %rbx popq %r14 popq %rbp jmp _skip_cond_incl ## TAILCALL .cfi_endproc ## -- End function .comm _cond_incl_stack,4,2 ## @cond_incl_stack .no_dead_strip _do_read_if .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function do_read_if _do_read_if: ; @do_read_if .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x8, _cond_incl_stack@GOTPAGE Lloh1: ldr x8, [x8, _cond_incl_stack@GOTPAGEOFF] Lloh2: ldr w20, [x8] bl _make_cond_incl mov x1, x0 mov x0, x20 bl _vec_push cbz w19, LBB0_2 ; %bb.1: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret LBB0_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _skip_cond_incl .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _cond_incl_stack,4,2 ; @cond_incl_stack .no_dead_strip _do_read_if .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_do_read_if.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function expand_all _expand_all: ## @expand_all .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r14 callq _vec_reverse movl %eax, %edi callq _token_buffer_stash xorl %eax, %eax callq _make_vector movq %rax, %rbx xorl %eax, %eax callq _read_expand movq (%rax), %rcx movq _TEOF@GOTPCREL(%rip), %r15 cmpq (%r15), %rcx je LBB0_3 .p2align 4, 0x90 LBB0_1: ## =>This Inner Loop Header: Depth=1 movq %rbx, %rdi movq %rax, %rsi callq _vec_push xorl %eax, %eax callq _read_expand movq (%rax), %rcx cmpq (%r15), %rcx jne LBB0_1 LBB0_3: movq %rbx, %rdi movq %r14, %rsi callq _propagate_space xorl %eax, %eax callq _token_buffer_unstash movq %rbx, %rax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _TEOF,8,3 ## @TEOF .no_dead_strip _expand_all .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function expand_all _expand_all: ; @expand_all .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x1 bl _vec_reverse bl _token_buffer_stash bl _make_vector mov x20, x0 bl _read_expand ldr x8, [x0] Lloh0: adrp x21, _TEOF@GOTPAGE Lloh1: ldr x21, [x21, _TEOF@GOTPAGEOFF] ldr x9, [x21] cmp x8, x9 b.eq LBB0_3 ; %bb.1: mov x1, x0 LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x20 bl _vec_push bl _read_expand mov x1, x0 ldr x8, [x0] ldr x9, [x21] cmp x8, x9 b.ne LBB0_2 LBB0_3: mov x0, x20 mov x1, x19 bl _propagate_space bl _token_buffer_unstash mov x0, x20 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _TEOF,8,3 ; @TEOF .no_dead_strip _expand_all .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_expand_all.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function expect _expect: ## @expect .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movl %edi, %r14d xorl %eax, %eax callq _lex movq %rax, %rbx movq %rax, %rdi movl %r14d, %esi callq _is_keyword testl %eax, %eax je LBB0_2 ## %bb.1: popq %rbx popq %r14 popq %rbp retq LBB0_2: movq %rbx, %rdi callq _tok2s movsbl %r14b, %edx leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %ecx popq %rbx popq %r14 popq %rbp jmp _errort ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%c expected, but got %s" .no_dead_strip _expect .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function expect _expect: ; @expect .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 bl _lex mov x20, x0 mov x1, x19 bl _is_keyword cbz w0, LBB0_2 ; %bb.1: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret LBB0_2: mov x0, x20 bl _tok2s mov x3, x0 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x20 mov x2, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _errort .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%c expected, but got %s" .no_dead_strip _expect .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_expect.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _expect_newline ## -- Begin function expect_newline .p2align 4, 0x90 _expect_newline: ## @expect_newline .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _lex movq %rax, %rbx movq (%rax), %rax movq _TNEWLINE@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_2 ## %bb.1: addq $8, %rsp popq %rbx popq %rbp retq LBB0_2: movq %rbx, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx addq $8, %rsp popq %rbx popq %rbp jmp _errort ## TAILCALL .cfi_endproc ## -- End function .comm _TNEWLINE,8,3 ## @TNEWLINE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "newline expected, but got %s" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _expect_newline ; -- Begin function expect_newline .p2align 2 _expect_newline: ; @expect_newline .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 bl _lex ldr x8, [x0] Lloh0: adrp x9, _TNEWLINE@GOTPAGE Lloh1: ldr x9, [x9, _TNEWLINE@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.ne LBB0_2 ; %bb.1: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret LBB0_2: mov x19, x0 bl _tok2s mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _errort .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .cfi_endproc ; -- End function .comm _TNEWLINE,8,3 ; @TNEWLINE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "newline expected, but got %s" .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_expect_newline.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function glue_push _glue_push: ## @glue_push .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %r14 movq %rdi, %rbx callq _vec_pop movq %rax, %rdi movq %r14, %rsi callq _glue_tokens movq %rbx, %rdi movl %eax, %esi popq %rbx popq %r14 popq %rbp jmp _vec_push ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _glue_push .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function glue_push _glue_push: ; @glue_push .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 bl _vec_pop mov x1, x19 bl _glue_tokens mov x1, x0 mov x0, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _vec_push .cfi_endproc ; -- End function .no_dead_strip _glue_push .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_glue_push.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function glue_tokens _glue_tokens: ## @glue_tokens .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r14 movq %rdi, %r15 xorl %eax, %eax callq _make_buffer movq %rax, %rbx movq %r15, %rdi callq _tok2s leaq L_.str(%rip), %r15 movq %rbx, %rdi movq %r15, %rsi movl %eax, %edx callq _buf_printf movq %r14, %rdi callq _tok2s movq %rbx, %rdi movq %r15, %rsi movl %eax, %edx callq _buf_printf movq %rbx, %rdi callq _buf_body movl %eax, %edi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _lex_string ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" .no_dead_strip _glue_tokens .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function glue_tokens _glue_tokens: ; @glue_tokens .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x1 mov x20, x0 bl _make_buffer mov x21, x0 mov x0, x20 bl _tok2s mov x2, x0 Lloh0: adrp x20, l_.str@PAGE Lloh1: add x20, x20, l_.str@PAGEOFF mov x0, x21 mov x1, x20 bl _buf_printf mov x0, x19 bl _tok2s mov x2, x0 mov x0, x21 mov x1, x20 bl _buf_printf mov x0, x21 bl _buf_body ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _lex_string .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" .no_dead_strip _glue_tokens .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_glue_tokens.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function guarded _guarded: ## @guarded .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rsi movq _include_guard@GOTPCREL(%rip), %rax movl (%rax), %edi callq _map_get testq %rax, %rax je LBB0_1 ## %bb.2: movq _macros@GOTPCREL(%rip), %rcx movl (%rcx), %edi movq %rax, %rsi callq _map_get xorl %ebx, %ebx testq %rax, %rax setne %al jne LBB0_3 ## %bb.4: movq _cpp_token_zero@GOTPCREL(%rip), %rcx jmp LBB0_5 LBB0_1: movq _cpp_token_zero@GOTPCREL(%rip), %rax movl (%rax), %esi xorl %ebx, %ebx jmp LBB0_6 LBB0_3: movq _cpp_token_one@GOTPCREL(%rip), %rcx LBB0_5: movb %al, %bl movl (%rcx), %esi LBB0_6: leaq L_.str(%rip), %rdi callq _define_obj_macro movl %ebx, %eax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .comm _include_guard,4,2 ## @include_guard .comm _macros,4,2 ## @macros .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "__8cc_include_guard" .comm _cpp_token_one,4,2 ## @cpp_token_one .comm _cpp_token_zero,4,2 ## @cpp_token_zero .no_dead_strip _guarded .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function guarded _guarded: ; @guarded .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x1, x0 Lloh0: adrp x8, _include_guard@GOTPAGE Lloh1: ldr x8, [x8, _include_guard@GOTPAGEOFF] Lloh2: ldr w0, [x8] bl _map_get cbz x0, LBB0_2 ; %bb.1: mov x1, x0 Lloh3: adrp x8, _macros@GOTPAGE Lloh4: ldr x8, [x8, _macros@GOTPAGEOFF] Lloh5: ldr w0, [x8] bl _map_get Lloh6: adrp x8, _cpp_token_one@GOTPAGE Lloh7: ldr x8, [x8, _cpp_token_one@GOTPAGEOFF] Lloh8: adrp x9, _cpp_token_zero@GOTPAGE Lloh9: ldr x9, [x9, _cpp_token_zero@GOTPAGEOFF] cmp x0, #0 csel x8, x9, x8, eq cset w19, ne b LBB0_3 LBB0_2: mov w19, #0 Lloh10: adrp x8, _cpp_token_zero@GOTPAGE Lloh11: ldr x8, [x8, _cpp_token_zero@GOTPAGEOFF] LBB0_3: ldr w1, [x8] Lloh12: adrp x0, l_.str@PAGE Lloh13: add x0, x0, l_.str@PAGEOFF bl _define_obj_macro mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGot Lloh8, Lloh9 .loh AdrpLdrGot Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGot Lloh10, Lloh11 .loh AdrpAdd Lloh12, Lloh13 .cfi_endproc ; -- End function .comm _include_guard,4,2 ; @include_guard .comm _macros,4,2 ; @macros .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "__8cc_include_guard" .comm _cpp_token_one,4,2 ; @cpp_token_one .comm _cpp_token_zero,4,2 ; @cpp_token_zero .no_dead_strip _guarded .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_guarded.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_base_file_macro _handle_base_file_macro: ## @handle_base_file_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 movq _TSTRING@GOTPCREL(%rip), %rax movl (%rax), %ebx xorl %eax, %eax callq _get_base_file movq %r14, %rdi movl %ebx, %esi movl %eax, %edx popq %rbx popq %r14 popq %rbp jmp _make_token_pushback ## TAILCALL .cfi_endproc ## -- End function .comm _TSTRING,4,2 ## @TSTRING .no_dead_strip _handle_base_file_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_base_file_macro _handle_base_file_macro: ; @handle_base_file_macro .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x8, _TSTRING@GOTPAGE Lloh1: ldr x8, [x8, _TSTRING@GOTPAGEOFF] Lloh2: ldr w20, [x8] bl _get_base_file mov x2, x0 mov x0, x19 mov x1, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _make_token_pushback .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _TSTRING,4,2 ; @TSTRING .no_dead_strip _handle_base_file_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_base_file_macro.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_counter_macro _handle_counter_macro: ## @handle_counter_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 movq _TNUMBER@GOTPCREL(%rip), %rax movl (%rax), %ebx movl _handle_counter_macro.counter(%rip), %esi leal 1(%rsi), %eax movl %eax, _handle_counter_macro.counter(%rip) leaq L_.str(%rip), %rdi ## kill: def $esi killed $esi killed $rsi callq _format movq %r14, %rdi movl %ebx, %esi movl %eax, %edx popq %rbx popq %r14 popq %rbp jmp _make_token_pushback ## TAILCALL .cfi_endproc ## -- End function .zerofill __DATA,__bss,_handle_counter_macro.counter,4,2 ## @handle_counter_macro.counter .comm _TNUMBER,4,2 ## @TNUMBER .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .no_dead_strip _handle_counter_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_counter_macro _handle_counter_macro: ; @handle_counter_macro .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x8, _TNUMBER@GOTPAGE Lloh1: ldr x8, [x8, _TNUMBER@GOTPAGEOFF] Lloh2: ldr w20, [x8] adrp x8, _handle_counter_macro.counter@PAGE ldr w1, [x8, _handle_counter_macro.counter@PAGEOFF] add w9, w1, #1 str w9, [x8, _handle_counter_macro.counter@PAGEOFF] Lloh3: adrp x0, l_.str@PAGE Lloh4: add x0, x0, l_.str@PAGEOFF bl _format mov x2, x0 mov x0, x19 mov x1, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _make_token_pushback .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .zerofill __DATA,__bss,_handle_counter_macro.counter,4,2 ; @handle_counter_macro.counter .comm _TNUMBER,4,2 ; @TNUMBER .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" .no_dead_strip _handle_counter_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_counter_macro.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_date_macro _handle_date_macro: ## @handle_date_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx subq $40, %rsp .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r15 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -32(%rbp) leaq L_.str(%rip), %rdx movq _now@GOTPCREL(%rip), %rcx leaq -64(%rbp), %r14 movq %r14, %rdi movl $20, %esi callq _strftime movq _TSTRING@GOTPCREL(%rip), %rax movl (%rax), %ebx movq %r14, %rdi callq _strdup movq %r15, %rdi movl %ebx, %esi movl %eax, %edx callq _make_token_pushback movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax cmpq -32(%rbp), %rax jne LBB0_2 ## %bb.1: addq $40, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq LBB0_2: callq ___stack_chk_fail .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%b %e %Y" .comm _now,4,2 ## @now .comm _TSTRING,4,2 ## @TSTRING .no_dead_strip _handle_date_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_date_macro _handle_date_macro: ; @handle_date_macro .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x8, ___stack_chk_guard@GOTPAGE Lloh1: ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] Lloh2: ldr x8, [x8] str x8, [sp, #24] Lloh3: adrp x2, l_.str@PAGE Lloh4: add x2, x2, l_.str@PAGEOFF Lloh5: adrp x3, _now@GOTPAGE Lloh6: ldr x3, [x3, _now@GOTPAGEOFF] add x0, sp, #4 mov w1, #20 bl _strftime Lloh7: adrp x8, _TSTRING@GOTPAGE Lloh8: ldr x8, [x8, _TSTRING@GOTPAGEOFF] Lloh9: ldr w20, [x8] add x0, sp, #4 bl _strdup mov x2, x0 mov x0, x19 mov x1, x20 bl _make_token_pushback ldr x8, [sp, #24] Lloh10: adrp x9, ___stack_chk_guard@GOTPAGE Lloh11: ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] Lloh12: ldr x9, [x9] cmp x9, x8 b.ne LBB0_2 ; %bb.1: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload add sp, sp, #64 ret LBB0_2: bl ___stack_chk_fail .loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12 .loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9 .loh AdrpLdrGot Lloh5, Lloh6 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%b %e %Y" .comm _now,4,2 ; @now .comm _TSTRING,4,2 ; @TSTRING .no_dead_strip _handle_date_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_date_macro.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_file_macro _handle_file_macro: ## @handle_file_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _TSTRING@GOTPCREL(%rip), %rax movl (%rax), %esi movq (%rdi), %rax movl (%rax), %edx popq %rbp jmp _make_token_pushback ## TAILCALL .cfi_endproc ## -- End function .comm _TSTRING,4,2 ## @TSTRING .no_dead_strip _handle_file_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_file_macro _handle_file_macro: ; @handle_file_macro .cfi_startproc ; %bb.0: Lloh0: adrp x8, _TSTRING@GOTPAGE Lloh1: ldr x8, [x8, _TSTRING@GOTPAGEOFF] Lloh2: ldr w1, [x8] ldr x8, [x0] ldr w2, [x8] b _make_token_pushback .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _TSTRING,4,2 ; @TSTRING .no_dead_strip _handle_file_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_file_macro.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_include_level_macro _handle_include_level_macro: ## @handle_include_level_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 movq _TNUMBER@GOTPCREL(%rip), %rax movl (%rax), %ebx xorl %eax, %eax callq _stream_depth leaq -1(%rax), %rsi leaq L_.str(%rip), %rdi callq _format movq %r14, %rdi movl %ebx, %esi movl %eax, %edx popq %rbx popq %r14 popq %rbp jmp _make_token_pushback ## TAILCALL .cfi_endproc ## -- End function .comm _TNUMBER,4,2 ## @TNUMBER .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .no_dead_strip _handle_include_level_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_include_level_macro _handle_include_level_macro: ; @handle_include_level_macro .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x8, _TNUMBER@GOTPAGE Lloh1: ldr x8, [x8, _TNUMBER@GOTPAGEOFF] Lloh2: ldr w20, [x8] bl _stream_depth sub x1, x0, #1 Lloh3: adrp x0, l_.str@PAGE Lloh4: add x0, x0, l_.str@PAGEOFF bl _format mov x2, x0 mov x0, x19 mov x1, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _make_token_pushback .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _TNUMBER,4,2 ; @TNUMBER .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" .no_dead_strip _handle_include_level_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_include_level_macro.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_line_macro _handle_line_macro: ## @handle_line_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %rbx movq _TNUMBER@GOTPCREL(%rip), %rax movl (%rax), %r14d movq (%rdi), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi callq _format movq %rbx, %rdi movl %r14d, %esi movl %eax, %edx popq %rbx popq %r14 popq %rbp jmp _make_token_pushback ## TAILCALL .cfi_endproc ## -- End function .comm _TNUMBER,4,2 ## @TNUMBER .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .no_dead_strip _handle_line_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_line_macro _handle_line_macro: ; @handle_line_macro .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x8, _TNUMBER@GOTPAGE Lloh1: ldr x8, [x8, _TNUMBER@GOTPAGEOFF] Lloh2: ldr w20, [x8] ldr x8, [x0] ldr w1, [x8] Lloh3: adrp x0, l_.str@PAGE Lloh4: add x0, x0, l_.str@PAGEOFF bl _format mov x2, x0 mov x0, x19 mov x1, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _make_token_pushback .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _TNUMBER,4,2 ; @TNUMBER .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" .no_dead_strip _handle_line_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_line_macro.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_pragma_macro _handle_pragma_macro: ## @handle_pragma_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 movl $40, %edi callq _expect xorl %eax, %eax callq _read_token movq %rax, %rbx movq (%rax), %rax movq _TSTRING@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_2 ## %bb.1: movq %rbx, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_2: movl $41, %edi callq _expect movq %rbx, %rdi callq _parse_pragma_operand movq _TNUMBER@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str.1(%rip), %rdx movq %r14, %rdi popq %rbx popq %r14 popq %rbp jmp _make_token_pushback ## TAILCALL .cfi_endproc ## -- End function .comm _TSTRING,8,3 ## @TSTRING .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "_Pragma takes a string literal, but got %s" .comm _TNUMBER,4,2 ## @TNUMBER L_.str.1: ## @.str.1 .asciz "1" .no_dead_strip _handle_pragma_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_pragma_macro _handle_pragma_macro: ; @handle_pragma_macro .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 mov w0, #40 bl _expect bl _read_token mov x20, x0 ldr x8, [x0] Lloh0: adrp x9, _TSTRING@GOTPAGE Lloh1: ldr x9, [x9, _TSTRING@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.eq LBB0_2 ; %bb.1: mov x0, x20 bl _tok2s mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x20 bl _errort LBB0_2: mov w0, #41 bl _expect mov x0, x20 bl _parse_pragma_operand Lloh5: adrp x8, _TNUMBER@GOTPAGE Lloh6: ldr x8, [x8, _TNUMBER@GOTPAGEOFF] Lloh7: ldr w1, [x8] Lloh8: adrp x2, l_.str.1@PAGE Lloh9: add x2, x2, l_.str.1@PAGEOFF mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _make_token_pushback .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .cfi_endproc ; -- End function .comm _TSTRING,8,3 ; @TSTRING .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "_Pragma takes a string literal, but got %s" .comm _TNUMBER,4,2 ; @TNUMBER l_.str.1: ; @.str.1 .asciz "1" .no_dead_strip _handle_pragma_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_pragma_macro.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_time_macro _handle_time_macro: ## @handle_time_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx subq $24, %rsp .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r15 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -32(%rbp) leaq L_.str(%rip), %rdx movq _now@GOTPCREL(%rip), %rcx leaq -42(%rbp), %r14 movq %r14, %rdi movl $10, %esi callq _strftime movq _TSTRING@GOTPCREL(%rip), %rax movl (%rax), %ebx movq %r14, %rdi callq _strdup movq %r15, %rdi movl %ebx, %esi movl %eax, %edx callq _make_token_pushback movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax cmpq -32(%rbp), %rax jne LBB0_2 ## %bb.1: addq $24, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq LBB0_2: callq ___stack_chk_fail .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%T" .comm _now,4,2 ## @now .comm _TSTRING,4,2 ## @TSTRING .no_dead_strip _handle_time_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_time_macro _handle_time_macro: ; @handle_time_macro .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x8, ___stack_chk_guard@GOTPAGE Lloh1: ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] Lloh2: ldr x8, [x8] str x8, [sp, #24] Lloh3: adrp x2, l_.str@PAGE Lloh4: add x2, x2, l_.str@PAGEOFF Lloh5: adrp x3, _now@GOTPAGE Lloh6: ldr x3, [x3, _now@GOTPAGEOFF] add x0, sp, #14 mov w1, #10 bl _strftime Lloh7: adrp x8, _TSTRING@GOTPAGE Lloh8: ldr x8, [x8, _TSTRING@GOTPAGEOFF] Lloh9: ldr w20, [x8] add x0, sp, #14 bl _strdup mov x2, x0 mov x0, x19 mov x1, x20 bl _make_token_pushback ldr x8, [sp, #24] Lloh10: adrp x9, ___stack_chk_guard@GOTPAGE Lloh11: ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] Lloh12: ldr x9, [x9] cmp x9, x8 b.ne LBB0_2 ; %bb.1: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload add sp, sp, #64 ret LBB0_2: bl ___stack_chk_fail .loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12 .loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9 .loh AdrpLdrGot Lloh5, Lloh6 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%T" .comm _now,4,2 ; @now .comm _TSTRING,4,2 ; @TSTRING .no_dead_strip _handle_time_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_time_macro.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function handle_timestamp_macro _handle_timestamp_macro: ## @handle_timestamp_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx subq $40, %rsp .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r15 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -32(%rbp) movq (%rdi), %rdi callq _localtime leaq L_.str(%rip), %rdx leaq -64(%rbp), %r14 movq %r14, %rdi movl $30, %esi movl %eax, %ecx callq _strftime movq _TSTRING@GOTPCREL(%rip), %rax movl (%rax), %ebx movq %r14, %rdi callq _strdup movq %r15, %rdi movl %ebx, %esi movl %eax, %edx callq _make_token_pushback movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax cmpq -32(%rbp), %rax jne LBB0_2 ## %bb.1: addq $40, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq LBB0_2: callq ___stack_chk_fail .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%a %b %e %T %Y" .comm _TSTRING,4,2 ## @TSTRING .no_dead_strip _handle_timestamp_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function handle_timestamp_macro _handle_timestamp_macro: ; @handle_timestamp_macro .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x20, x19, [sp, #48] ; 16-byte Folded Spill stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x8, ___stack_chk_guard@GOTPAGE Lloh1: ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] Lloh2: ldr x8, [x8] stur x8, [x29, #-24] ldr x0, [x0] bl _localtime mov x3, x0 Lloh3: adrp x2, l_.str@PAGE Lloh4: add x2, x2, l_.str@PAGEOFF add x0, sp, #10 mov w1, #30 bl _strftime Lloh5: adrp x8, _TSTRING@GOTPAGE Lloh6: ldr x8, [x8, _TSTRING@GOTPAGEOFF] Lloh7: ldr w20, [x8] add x0, sp, #10 bl _strdup mov x2, x0 mov x0, x19 mov x1, x20 bl _make_token_pushback ldur x8, [x29, #-24] Lloh8: adrp x9, ___stack_chk_guard@GOTPAGE Lloh9: ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] Lloh10: ldr x9, [x9] cmp x9, x8 b.ne LBB0_2 ; %bb.1: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload add sp, sp, #80 ret LBB0_2: bl ___stack_chk_fail .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%a %b %e %T %Y" .comm _TSTRING,4,2 ; @TSTRING .no_dead_strip _handle_timestamp_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_handle_timestamp_macro.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function hashhash_check _hashhash_check: ## @hashhash_check .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %rbx callq _vec_len testq %rax, %rax je LBB0_4 ## %bb.1: movq %rbx, %rdi callq _vec_head movq _KHASHHASH@GOTPCREL(%rip), %r14 movl (%r14), %esi movl %eax, %edi callq _is_keyword testq %rax, %rax je LBB0_3 ## %bb.2: movq %rbx, %rdi callq _vec_head leaq L_.str(%rip), %rsi movl %eax, %edi callq _errort LBB0_3: movq %rbx, %rdi callq _vec_tail movl (%r14), %esi movl %eax, %edi callq _is_keyword testq %rax, %rax je LBB0_4 ## %bb.5: movq %rbx, %rdi callq _vec_tail leaq L_.str.1(%rip), %rsi movl %eax, %edi popq %rbx popq %r14 popq %rbp jmp _errort ## TAILCALL LBB0_4: popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _KHASHHASH,4,2 ## @KHASHHASH .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "'##' cannot appear at start of macro expansion" L_.str.1: ## @.str.1 .asciz "'##' cannot appear at end of macro expansion" .no_dead_strip _hashhash_check .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function hashhash_check _hashhash_check: ; @hashhash_check .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 bl _vec_len cbz x0, LBB0_5 ; %bb.1: mov x0, x19 bl _vec_head Lloh0: adrp x20, _KHASHHASH@GOTPAGE Lloh1: ldr x20, [x20, _KHASHHASH@GOTPAGEOFF] ldr w1, [x20] bl _is_keyword cbz x0, LBB0_3 ; %bb.2: mov x0, x19 bl _vec_head Lloh2: adrp x1, l_.str@PAGE Lloh3: add x1, x1, l_.str@PAGEOFF bl _errort LBB0_3: mov x0, x19 bl _vec_tail ldr w1, [x20] bl _is_keyword cbz x0, LBB0_5 ; %bb.4: mov x0, x19 bl _vec_tail Lloh4: adrp x1, l_.str.1@PAGE Lloh5: add x1, x1, l_.str.1@PAGEOFF ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _errort LBB0_5: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .cfi_endproc ; -- End function .comm _KHASHHASH,4,2 ; @KHASHHASH .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "'##' cannot appear at start of macro expansion" l_.str.1: ; @.str.1 .asciz "'##' cannot appear at end of macro expansion" .no_dead_strip _hashhash_check .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_hashhash_check.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _init_now ## -- Begin function init_now .p2align 4, 0x90 _init_now: ## @init_now .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp xorl %edi, %edi callq _time movl %eax, -4(%rbp) movq _now@GOTPCREL(%rip), %rsi leaq -4(%rbp), %rdi callq _localtime_r addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _now,4,2 ## @now .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _init_now ; -- Begin function init_now .p2align 2 _init_now: ; @init_now .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, #0 bl _time stur w0, [x29, #-4] Lloh0: adrp x1, _now@GOTPAGE Lloh1: ldr x1, [x1, _now@GOTPAGEOFF] sub x0, x29, #4 bl _localtime_r ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _now,4,2 ; @now .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_init_now.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function is_digit_sequence _is_digit_sequence: ## @is_digit_sequence .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movb (%rdi), %al movl $1, %r14d testb %al, %al je LBB0_5 ## %bb.1: movq %rdi, %rbx incq %rbx .p2align 4, 0x90 LBB0_3: ## =>This Inner Loop Header: Depth=1 movsbl %al, %edi callq _isdigit testl %eax, %eax je LBB0_4 ## %bb.2: ## in Loop: Header=BB0_3 Depth=1 movzbl (%rbx), %eax incq %rbx testb %al, %al jne LBB0_3 jmp LBB0_5 LBB0_4: xorl %r14d, %r14d LBB0_5: movl %r14d, %eax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _is_digit_sequence .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function is_digit_sequence _is_digit_sequence: ; @is_digit_sequence .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 ldrb w8, [x0] cbz w8, LBB0_4 ; %bb.1: add x19, x0, #1 LBB0_2: ; =>This Inner Loop Header: Depth=1 sxtb w0, w8 bl _isdigit cbz w0, LBB0_5 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 ldrb w8, [x19], #1 cbnz w8, LBB0_2 LBB0_4: mov w0, #1 LBB0_5: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _is_digit_sequence .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_is_digit_sequence.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function join_paths _join_paths: ## @join_paths .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 xorl %ebx, %ebx xorl %eax, %eax callq _make_buffer movq %rax, %r15 movq %r14, %rdi callq _vec_len testl %eax, %eax jle LBB0_3 ## %bb.1: leaq L_.str(%rip), %r12 .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %r14, %rdi movl %ebx, %esi callq _vec_get movl %eax, %edi callq _tok2s movq %r15, %rdi movq %r12, %rsi movl %eax, %edx callq _buf_printf incl %ebx movq %r14, %rdi callq _vec_len cmpl %eax, %ebx jl LBB0_2 LBB0_3: movq %r15, %rdi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _buf_body ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" .no_dead_strip _join_paths .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function join_paths _join_paths: ; @join_paths .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 bl _make_buffer mov x20, x0 mov x0, x19 bl _vec_len cmp w0, #1 b.lt LBB0_3 ; %bb.1: mov w21, #0 Lloh0: adrp x22, l_.str@PAGE Lloh1: add x22, x22, l_.str@PAGEOFF LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x19 mov x1, x21 bl _vec_get bl _tok2s mov x2, x0 mov x0, x20 mov x1, x22 bl _buf_printf add w21, w21, #1 mov x0, x19 bl _vec_len cmp w21, w0 b.lt LBB0_2 LBB0_3: mov x0, x20 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _buf_body .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" .no_dead_strip _join_paths .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_join_paths.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function make_cond_incl _make_cond_incl: ## @make_cond_incl .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movl %edi, %ebx movl $1, %edi movl $8, %esi callq _calloc movq _IN_THEN@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 4(%rax) movl %ebx, (%rax) addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .comm _IN_THEN,4,2 ## @IN_THEN .no_dead_strip _make_cond_incl .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function make_cond_incl _make_cond_incl: ; @make_cond_incl .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 mov w0, #1 mov w1, #8 bl _calloc Lloh0: adrp x8, _IN_THEN@GOTPAGE Lloh1: ldr x8, [x8, _IN_THEN@GOTPAGEOFF] Lloh2: ldr w8, [x8] stp w19, w8, [x0] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _IN_THEN,4,2 ; @IN_THEN .no_dead_strip _make_cond_incl .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_make_cond_incl.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function make_macro _make_macro: ## @make_macro .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movl $4, %edi callq _malloc movl (%rbx), %ecx movl %ecx, (%rax) addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _make_macro .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function make_macro _make_macro: ; @make_macro .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 mov w0, #4 bl _malloc ldr w8, [x19] str w8, [x0] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _make_macro .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_make_macro.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function make_macro_token _make_macro_token: ## @make_macro_token .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movl %esi, %ebx movl %edi, %r14d movl $32, %edi callq _malloc movq _TMACRO_PARAM@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movl %ecx, 24(%rax) movl %ebx, (%rax) movl %r14d, 4(%rax) xorps %xmm0, %xmm0 movups %xmm0, 8(%rax) popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _TMACRO_PARAM,4,2 ## @TMACRO_PARAM .no_dead_strip _make_macro_token .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function make_macro_token _make_macro_token: ; @make_macro_token .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 mov w0, #32 bl _malloc Lloh0: adrp x8, _TMACRO_PARAM@GOTPAGE Lloh1: ldr x8, [x8, _TMACRO_PARAM@GOTPAGEOFF] Lloh2: ldr w8, [x8] str w8, [x0, #24] stp xzr, xzr, [x0, #8] stp w19, w20, [x0] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _TMACRO_PARAM,4,2 ; @TMACRO_PARAM .no_dead_strip _make_macro_token .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_make_macro_token.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function make_token_pushback _make_token_pushback: ## @make_token_pushback .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdx, %r15 movl %esi, %r14d callq _copy_token movq %rax, %rbx movl %r14d, (%rax) movq %r15, 8(%rax) movq %r15, %rdi callq _strlen incq %rax movq %rax, 24(%rbx) movq _ENC_NONE@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, 16(%rbx) movq %rbx, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _unget_token ## TAILCALL .cfi_endproc ## -- End function .comm _ENC_NONE,4,2 ## @ENC_NONE .no_dead_strip _make_token_pushback .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function make_token_pushback _make_token_pushback: ; @make_token_pushback .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x2 mov x20, x1 bl _copy_token mov x21, x0 str w20, [x0] str x19, [x0, #8] mov x0, x19 bl _strlen add x8, x0, #1 str x8, [x21, #24] Lloh0: adrp x8, _ENC_NONE@GOTPAGE Lloh1: ldr x8, [x8, _ENC_NONE@GOTPAGEOFF] Lloh2: ldr w8, [x8] str w8, [x21, #16] mov x0, x21 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _unget_token .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _ENC_NONE,4,2 ; @ENC_NONE .no_dead_strip _make_token_pushback .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_make_token_pushback.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function maybe_convert_keyword _maybe_convert_keyword: ## @maybe_convert_keyword .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %rbx movq (%rdi), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_3 ## %bb.1: movq _keywords@GOTPCREL(%rip), %rax movl (%rax), %edi movl 12(%rbx), %esi callq _map_get testl %eax, %eax je LBB0_3 ## %bb.2: movl %eax, %r14d movq %rbx, %rdi callq _copy_token movq %rax, %rbx movq _TKEYWORD@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, (%rbx) movl %r14d, 8(%rbx) LBB0_3: movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _TIDENT,8,3 ## @TIDENT .comm _keywords,4,2 ## @keywords .comm _TKEYWORD,8,3 ## @TKEYWORD .no_dead_strip _maybe_convert_keyword .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function maybe_convert_keyword _maybe_convert_keyword: ; @maybe_convert_keyword .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 ldr x8, [x0] Lloh0: adrp x9, _TIDENT@GOTPAGE Lloh1: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.ne LBB0_3 ; %bb.1: Lloh3: adrp x8, _keywords@GOTPAGE Lloh4: ldr x8, [x8, _keywords@GOTPAGEOFF] Lloh5: ldr w0, [x8] ldr w1, [x19, #12] bl _map_get cbz w0, LBB0_3 ; %bb.2: mov x20, x0 mov x0, x19 bl _copy_token mov x19, x0 Lloh6: adrp x8, _TKEYWORD@GOTPAGE Lloh7: ldr x8, [x8, _TKEYWORD@GOTPAGEOFF] Lloh8: ldr x8, [x8] str x8, [x0] str w20, [x0, #8] LBB0_3: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .cfi_endproc ; -- End function .comm _TIDENT,8,3 ; @TIDENT .comm _keywords,4,2 ; @keywords .comm _TKEYWORD,8,3 ; @TKEYWORD .no_dead_strip _maybe_convert_keyword .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_maybe_convert_keyword.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function next _next: ## @next .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movl %edi, %r14d xorl %eax, %eax callq _lex movq %rax, %rbx movq %rax, %rdi movl %r14d, %esi callq _is_keyword movq %rax, %rcx movl $1, %eax testq %rcx, %rcx jne LBB0_2 ## %bb.1: movq %rbx, %rdi callq _unget_token xorl %eax, %eax LBB0_2: popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _next .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function next _next: ; @next .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x20, x0 bl _lex mov x19, x0 mov x1, x20 bl _is_keyword cbz x0, LBB0_2 ; %bb.1: mov w0, #1 b LBB0_3 LBB0_2: mov x0, x19 bl _unget_token mov w0, #0 LBB0_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _next .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_next.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function parse_pragma_operand _parse_pragma_operand: ## @parse_pragma_operand .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 movq (%rdi), %rbx leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _strcmp testl %eax, %eax je LBB0_6 ## %bb.1: leaq L_.str.1(%rip), %rsi movq %rbx, %rdi callq _strcmp testl %eax, %eax je LBB0_2 ## %bb.3: leaq L_.str.2(%rip), %rsi movq %rbx, %rdi callq _strcmp testl %eax, %eax je LBB0_4 ## %bb.7: leaq L_.str.3(%rip), %rsi movq %r14, %rdi movq %rbx, %rdx popq %rbx popq %r14 popq %rbp jmp _errort ## TAILCALL LBB0_6: movq 8(%r14), %rax movl (%rax), %edi callq _fullpath movq _once@GOTPCREL(%rip), %rcx movl (%rcx), %edi movl $1, %edx movq %rax, %rsi popq %rbx popq %r14 popq %rbp jmp _map_put ## TAILCALL LBB0_2: movq _enable_warning@GOTPCREL(%rip), %rax movl $1, (%rax) jmp LBB0_5 LBB0_4: movq _enable_warning@GOTPCREL(%rip), %rax movl $0, (%rax) LBB0_5: popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "once" .comm _once,4,2 ## @once L_.str.1: ## @.str.1 .asciz "enable_warning" .comm _enable_warning,4,2 ## @enable_warning L_.str.2: ## @.str.2 .asciz "disable_warning" L_.str.3: ## @.str.3 .asciz "unknown #pragma: %s" .no_dead_strip _parse_pragma_operand .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function parse_pragma_operand _parse_pragma_operand: ; @parse_pragma_operand .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 ldr x20, [x0] Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x20 bl _strcmp cbz w0, LBB0_4 ; %bb.1: Lloh2: adrp x1, l_.str.1@PAGE Lloh3: add x1, x1, l_.str.1@PAGEOFF mov x0, x20 bl _strcmp cbz w0, LBB0_5 ; %bb.2: Lloh4: adrp x1, l_.str.2@PAGE Lloh5: add x1, x1, l_.str.2@PAGEOFF mov x0, x20 bl _strcmp cbz w0, LBB0_6 ; %bb.3: Lloh6: adrp x1, l_.str.3@PAGE Lloh7: add x1, x1, l_.str.3@PAGEOFF mov x0, x19 mov x2, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _errort LBB0_4: ldr x8, [x19, #8] ldr w0, [x8] bl _fullpath mov x1, x0 Lloh8: adrp x8, _once@GOTPAGE Lloh9: ldr x8, [x8, _once@GOTPAGEOFF] Lloh10: ldr w0, [x8] mov w2, #1 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _map_put LBB0_5: Lloh11: adrp x8, _enable_warning@GOTPAGE Lloh12: ldr x8, [x8, _enable_warning@GOTPAGEOFF] mov w9, #1 Lloh13: str w9, [x8] b LBB0_7 LBB0_6: Lloh14: adrp x8, _enable_warning@GOTPAGE Lloh15: ldr x8, [x8, _enable_warning@GOTPAGEOFF] Lloh16: str wzr, [x8] LBB0_7: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .loh AdrpLdrGotStr Lloh11, Lloh12, Lloh13 .loh AdrpLdrGotStr Lloh14, Lloh15, Lloh16 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "once" .comm _once,4,2 ; @once l_.str.1: ; @.str.1 .asciz "enable_warning" .comm _enable_warning,4,2 ; @enable_warning l_.str.2: ; @.str.2 .asciz "disable_warning" l_.str.3: ; @.str.3 .asciz "unknown #pragma: %s" .no_dead_strip _parse_pragma_operand .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_parse_pragma_operand.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _peek_token ## -- Begin function peek_token .p2align 4, 0x90 _peek_token: ## @peek_token .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _read_token movq %rax, %rbx movq %rax, %rdi callq _unget_token movq %rbx, %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _peek_token ; -- Begin function peek_token .p2align 2 _peek_token: ; @peek_token .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 bl _read_token mov x19, x0 bl _unget_token mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_peek_token.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function propagate_space _propagate_space: ## @propagate_space .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %r14 movq %rdi, %rbx callq _vec_len testq %rax, %rax je LBB0_1 ## %bb.2: movq %rbx, %rdi callq _vec_head movl %eax, %edi callq _copy_token movl (%r14), %ecx movl %ecx, (%rax) movq %rbx, %rdi xorl %esi, %esi movq %rax, %rdx popq %rbx popq %r14 popq %rbp jmp _vec_set ## TAILCALL LBB0_1: popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _propagate_space .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function propagate_space _propagate_space: ; @propagate_space .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x20, x1 mov x19, x0 bl _vec_len cbz x0, LBB0_2 ; %bb.1: mov x0, x19 bl _vec_head bl _copy_token mov x2, x0 ldr w8, [x20] str w8, [x0] mov x0, x19 mov w1, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _vec_set LBB0_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _propagate_space .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_propagate_space.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_args _read_args: ## @read_args .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %rbx movq %rdi, %r14 cmpq $0, (%rsi) je LBB0_1 LBB0_2: movq %r14, %rdi movq %rbx, %rsi callq _do_read_args movq %rax, %r15 movq %rax, %rdi callq _vec_len cmpq (%rbx), %rax je LBB0_4 ## %bb.3: leaq L_.str(%rip), %rsi movq %r14, %rdi callq _errort LBB0_4: movq %r15, %rax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq LBB0_1: xorl %eax, %eax callq _peek_token movl %eax, %edi movl $41, %esi callq _is_keyword testq %rax, %rax je LBB0_2 ## %bb.5: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _make_vector ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "macro argument number does not match" .no_dead_strip _read_args .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_args _read_args: ; @read_args .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x20, x1 mov x19, x0 ldr x8, [x1] cbz x8, LBB0_4 LBB0_1: mov x0, x19 mov x1, x20 bl _do_read_args mov x21, x0 bl _vec_len ldr x8, [x20] cmp x0, x8 b.eq LBB0_3 ; %bb.2: Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _errort LBB0_3: mov x0, x21 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret LBB0_4: bl _peek_token mov w1, #41 bl _is_keyword cbz x0, LBB0_1 ; %bb.5: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _make_vector .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "macro argument number does not match" .no_dead_strip _read_args .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_args.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_constexpr _read_constexpr: ## @read_constexpr .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 xorl %eax, %eax callq _read_intexpr_line movl %eax, %edi callq _vec_reverse movl %eax, %edi callq _token_buffer_stash xorl %eax, %eax callq _read_expr movq %rax, %r14 xorl %eax, %eax callq _lex movq %rax, %rbx movq (%rax), %rax movq _TEOF@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_2 ## %bb.1: movq %rbx, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_2: xorl %eax, %eax callq _token_buffer_unstash movq %r14, %rdi xorl %esi, %esi popq %rbx popq %r14 popq %rbp jmp _eval_intexpr ## TAILCALL .cfi_endproc ## -- End function .comm _TEOF,8,3 ## @TEOF .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "stray token: %s" .no_dead_strip _read_constexpr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_constexpr _read_constexpr: ; @read_constexpr .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 bl _read_intexpr_line bl _vec_reverse bl _token_buffer_stash bl _read_expr mov x19, x0 bl _lex ldr x8, [x0] Lloh0: adrp x9, _TEOF@GOTPAGE Lloh1: ldr x9, [x9, _TEOF@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.eq LBB0_2 ; %bb.1: mov x20, x0 bl _tok2s mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x20 bl _errort LBB0_2: bl _token_buffer_unstash mov x0, x19 mov x1, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _eval_intexpr .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .cfi_endproc ; -- End function .comm _TEOF,8,3 ; @TEOF .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "stray token: %s" .no_dead_strip _read_constexpr .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_constexpr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_cpp_header_name _read_cpp_header_name: ## @read_cpp_header_name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %rbx movq %rdi, %r12 movq %rsi, %rdi callq _read_header_file_name testq %rax, %rax jne LBB0_5 ## %bb.1: xorl %eax, %eax callq _read_expand_newline movq %rax, %r15 movq (%rax), %rax movq _TNEWLINE@GOTPCREL(%rip), %r14 cmpq (%r14), %rax jne LBB0_3 ## %bb.2: leaq L_.str(%rip), %rsi movq %r12, %rdi xorl %eax, %eax callq _errort movq (%r15), %rax LBB0_3: movq _TSTRING@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_6 ## %bb.4: movl $0, (%rbx) movq 8(%r15), %rax LBB0_5: addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_6: movq %rbx, -48(%rbp) ## 8-byte Spill movq %r15, %rdi movl $60, %esi callq _is_keyword testq %rax, %rax jne LBB0_8 ## %bb.7: movq %r15, %rdi callq _tok2s leaq L_.str.1(%rip), %rsi movq %r15, %rdi movl %eax, %edx xorl %eax, %eax callq _errort LBB0_8: xorl %eax, %eax callq _make_vector movq %rax, %r13 leaq L_.str.2(%rip), %r15 .p2align 4, 0x90 LBB0_9: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax callq _read_expand_newline movq %rax, %rbx movq (%rax), %rax cmpq (%r14), %rax jne LBB0_11 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movq %r12, %rdi movq %r15, %rsi xorl %eax, %eax callq _errort LBB0_11: ## in Loop: Header=BB0_9 Depth=1 movq %rbx, %rdi movl $62, %esi callq _is_keyword testq %rax, %rax jne LBB0_13 ## %bb.12: ## in Loop: Header=BB0_9 Depth=1 movq %r13, %rdi movq %rbx, %rsi callq _vec_push jmp LBB0_9 LBB0_13: movq -48(%rbp), %rax ## 8-byte Reload movl $1, (%rax) movq %r13, %rdi addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _join_paths ## TAILCALL .cfi_endproc ## -- End function .comm _TNEWLINE,8,3 ## @TNEWLINE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "expected filename, but got newline" .comm _TSTRING,8,3 ## @TSTRING L_.str.1: ## @.str.1 .asciz "< expected, but got %s" L_.str.2: ## @.str.2 .asciz "premature end of header name" .no_dead_strip _read_cpp_header_name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_cpp_header_name _read_cpp_header_name: ; @read_cpp_header_name .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x24, x23, [sp, #16] ; 16-byte Folded Spill stp x22, x21, [sp, #32] ; 16-byte Folded Spill stp x20, x19, [sp, #48] ; 16-byte Folded Spill stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x19, x1 mov x20, x0 mov x0, x1 bl _read_header_file_name cbnz x0, LBB0_5 ; %bb.1: bl _read_expand_newline mov x21, x0 ldr x8, [x0] Lloh0: adrp x24, _TNEWLINE@GOTPAGE Lloh1: ldr x24, [x24, _TNEWLINE@GOTPAGEOFF] ldr x9, [x24] cmp x8, x9 b.ne LBB0_3 ; %bb.2: Lloh2: adrp x1, l_.str@PAGE Lloh3: add x1, x1, l_.str@PAGEOFF mov x0, x20 bl _errort ldr x8, [x21] LBB0_3: Lloh4: adrp x9, _TSTRING@GOTPAGE Lloh5: ldr x9, [x9, _TSTRING@GOTPAGEOFF] Lloh6: ldr x9, [x9] cmp x8, x9 b.ne LBB0_6 ; %bb.4: str wzr, [x19] ldr x0, [x21, #8] LBB0_5: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload ldp x22, x21, [sp, #32] ; 16-byte Folded Reload ldp x24, x23, [sp, #16] ; 16-byte Folded Reload add sp, sp, #80 ret LBB0_6: mov x0, x21 mov w1, #60 bl _is_keyword cbnz x0, LBB0_8 ; %bb.7: mov x0, x21 bl _tok2s ; kill: def $w0 killed $w0 def $x0 str x0, [sp] Lloh7: adrp x1, l_.str.1@PAGE Lloh8: add x1, x1, l_.str.1@PAGEOFF mov x0, x21 bl _errort LBB0_8: bl _make_vector mov x21, x0 Lloh9: adrp x22, l_.str.2@PAGE Lloh10: add x22, x22, l_.str.2@PAGEOFF LBB0_9: ; =>This Inner Loop Header: Depth=1 bl _read_expand_newline mov x23, x0 ldr x8, [x0] ldr x9, [x24] cmp x8, x9 b.ne LBB0_11 ; %bb.10: ; in Loop: Header=BB0_9 Depth=1 mov x0, x20 mov x1, x22 bl _errort LBB0_11: ; in Loop: Header=BB0_9 Depth=1 mov x0, x23 mov w1, #62 bl _is_keyword cbnz x0, LBB0_13 ; %bb.12: ; in Loop: Header=BB0_9 Depth=1 mov x0, x21 mov x1, x23 bl _vec_push b LBB0_9 LBB0_13: mov w8, #1 str w8, [x19] mov x0, x21 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload ldp x22, x21, [sp, #32] ; 16-byte Folded Reload ldp x24, x23, [sp, #16] ; 16-byte Folded Reload add sp, sp, #80 b _join_paths .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .loh AdrpAdd Lloh7, Lloh8 .loh AdrpAdd Lloh9, Lloh10 .cfi_endproc ; -- End function .comm _TNEWLINE,8,3 ; @TNEWLINE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "expected filename, but got newline" .comm _TSTRING,8,3 ; @TSTRING l_.str.1: ; @.str.1 .asciz "< expected, but got %s" l_.str.2: ; @.str.2 .asciz "premature end of header name" .no_dead_strip _read_cpp_header_name .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_cpp_header_name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_define _read_define: ## @read_define .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 xorl %eax, %eax callq _read_ident movq %rax, %r14 xorl %eax, %eax callq _lex movq %rax, %rbx movq %rax, %rdi movl $40, %esi callq _is_keyword testq %rax, %rax je LBB0_3 ## %bb.1: cmpl $0, 4(%rbx) je LBB0_2 LBB0_3: movq %rbx, %rdi callq _unget_token movl (%r14), %edi popq %rbx popq %r14 popq %rbp jmp _read_obj_macro ## TAILCALL LBB0_2: movq %r14, %rdi popq %rbx popq %r14 popq %rbp jmp _read_funclike_macro ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _read_define .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_define _read_define: ; @read_define .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 bl _read_ident mov x19, x0 bl _lex mov x20, x0 mov w1, #40 bl _is_keyword cbz x0, LBB0_2 ; %bb.1: ldr w8, [x20, #4] cbz w8, LBB0_3 LBB0_2: mov x0, x20 bl _unget_token ldr w0, [x19] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_obj_macro LBB0_3: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_funclike_macro .cfi_endproc ; -- End function .no_dead_strip _read_define .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_define.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_defined_op _read_defined_op: ## @read_defined_op .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _lex movq %rax, %rbx movq %rax, %rdi movl $40, %esi callq _is_keyword testq %rax, %rax je LBB0_2 ## %bb.1: xorl %eax, %eax callq _lex movq %rax, %rbx movl $41, %edi callq _expect LBB0_2: movq (%rbx), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_4 ## %bb.3: movq %rbx, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_4: movq _macros@GOTPCREL(%rip), %rax movl (%rax), %edi movl 8(%rbx), %esi callq _map_get testq %rax, %rax jne LBB0_5 ## %bb.6: movq _cpp_token_zero@GOTPCREL(%rip), %rax jmp LBB0_7 LBB0_5: movq _cpp_token_one@GOTPCREL(%rip), %rax LBB0_7: movq (%rax), %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .comm _TIDENT,8,3 ## @TIDENT .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "identifier expected, but got %s" .comm _macros,4,2 ## @macros .comm _cpp_token_one,8,3 ## @cpp_token_one .comm _cpp_token_zero,8,3 ## @cpp_token_zero .no_dead_strip _read_defined_op .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_defined_op _read_defined_op: ; @read_defined_op .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 bl _lex mov x19, x0 mov w1, #40 bl _is_keyword cbz x0, LBB0_2 ; %bb.1: bl _lex mov x19, x0 mov w0, #41 bl _expect LBB0_2: ldr x8, [x19] Lloh0: adrp x9, _TIDENT@GOTPAGE Lloh1: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.eq LBB0_4 ; %bb.3: mov x0, x19 bl _tok2s mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _errort LBB0_4: Lloh5: adrp x8, _macros@GOTPAGE Lloh6: ldr x8, [x8, _macros@GOTPAGEOFF] Lloh7: ldr w0, [x8] ldr w1, [x19, #8] bl _map_get Lloh8: adrp x8, _cpp_token_one@GOTPAGE Lloh9: ldr x8, [x8, _cpp_token_one@GOTPAGEOFF] Lloh10: adrp x9, _cpp_token_zero@GOTPAGE Lloh11: ldr x9, [x9, _cpp_token_zero@GOTPAGEOFF] cmp x0, #0 csel x8, x9, x8, eq ldr x0, [x8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGot Lloh10, Lloh11 .loh AdrpLdrGot Lloh8, Lloh9 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .cfi_endproc ; -- End function .comm _TIDENT,8,3 ; @TIDENT .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "identifier expected, but got %s" .comm _macros,4,2 ; @macros .comm _cpp_token_one,8,3 ; @cpp_token_one .comm _cpp_token_zero,8,3 ; @cpp_token_zero .no_dead_strip _read_defined_op .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_defined_op.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_directive _read_directive: ## @read_directive .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 xorl %eax, %eax callq _lex movq %rax, %rbx movq (%rax), %rax movq _TNEWLINE@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_1 ## %bb.22: addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq LBB0_1: movq _TNUMBER@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_2 ## %bb.23: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_linemarker ## TAILCALL LBB0_2: movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_21 ## %bb.3: movq 8(%rbx), %r15 leaq L_.str(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_24 ## %bb.4: leaq L_.str.1(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_25 ## %bb.5: leaq L_.str.2(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_26 ## %bb.6: leaq L_.str.3(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_27 ## %bb.7: leaq L_.str.4(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_28 ## %bb.8: leaq L_.str.5(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_29 ## %bb.9: leaq L_.str.6(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_30 ## %bb.10: leaq L_.str.7(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_31 ## %bb.11: leaq L_.str.8(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_12 ## %bb.14: leaq L_.str.9(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_15 ## %bb.16: leaq L_.str.10(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_32 ## %bb.17: leaq L_.str.11(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_33 ## %bb.18: leaq L_.str.12(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_34 ## %bb.19: leaq L_.str.13(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_35 ## %bb.20: leaq L_.str.14(%rip), %rsi movq %r15, %rdi callq _strcmp testl %eax, %eax je LBB0_36 LBB0_21: movq %rbx, %rdi callq _tok2s leaq L_.str.15(%rip), %rsi movq %r14, %rdi movl %eax, %edx addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _errort ## TAILCALL LBB0_24: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_define ## TAILCALL LBB0_25: movq %r14, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_elif ## TAILCALL LBB0_26: movq %r14, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_else ## TAILCALL LBB0_27: movq %r14, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_endif ## TAILCALL LBB0_28: movq %r14, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_error ## TAILCALL LBB0_29: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_if ## TAILCALL LBB0_30: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_ifdef ## TAILCALL LBB0_31: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_ifndef ## TAILCALL LBB0_12: movl 16(%rbx), %esi movq %r14, %rdi movl $1, %edx jmp LBB0_13 LBB0_15: movl 16(%rbx), %esi movq %r14, %rdi xorl %edx, %edx LBB0_13: addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_include ## TAILCALL LBB0_32: movl 16(%rbx), %esi movq %r14, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_include_next ## TAILCALL LBB0_33: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_line ## TAILCALL LBB0_34: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_pragma ## TAILCALL LBB0_35: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_undef ## TAILCALL LBB0_36: movq %r14, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_warning ## TAILCALL .cfi_endproc ## -- End function .comm _TNEWLINE,8,3 ## @TNEWLINE .comm _TNUMBER,8,3 ## @TNUMBER .comm _TIDENT,8,3 ## @TIDENT .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "define" L_.str.1: ## @.str.1 .asciz "elif" L_.str.2: ## @.str.2 .asciz "else" L_.str.3: ## @.str.3 .asciz "endif" L_.str.4: ## @.str.4 .asciz "error" L_.str.5: ## @.str.5 .asciz "if" L_.str.6: ## @.str.6 .asciz "ifdef" L_.str.7: ## @.str.7 .asciz "ifndef" L_.str.8: ## @.str.8 .asciz "import" L_.str.9: ## @.str.9 .asciz "include" L_.str.10: ## @.str.10 .asciz "include_next" L_.str.11: ## @.str.11 .asciz "line" L_.str.12: ## @.str.12 .asciz "pragma" L_.str.13: ## @.str.13 .asciz "undef" L_.str.14: ## @.str.14 .asciz "warning" L_.str.15: ## @.str.15 .asciz "unsupported preprocessor directive: %s" .no_dead_strip _read_directive .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_directive _read_directive: ; @read_directive .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 bl _lex ldr x8, [x0] Lloh0: adrp x9, _TNEWLINE@GOTPAGE Lloh1: ldr x9, [x9, _TNEWLINE@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.ne LBB0_2 ; %bb.1: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret LBB0_2: mov x20, x0 Lloh3: adrp x9, _TNUMBER@GOTPAGE Lloh4: ldr x9, [x9, _TNUMBER@GOTPAGEOFF] Lloh5: ldr x9, [x9] cmp x8, x9 b.ne LBB0_4 ; %bb.3: mov x0, x20 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_linemarker LBB0_4: Lloh6: adrp x9, _TIDENT@GOTPAGE Lloh7: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh8: ldr x9, [x9] cmp x8, x9 b.ne LBB0_20 ; %bb.5: ldr x21, [x20, #8] Lloh9: adrp x1, l_.str@PAGE Lloh10: add x1, x1, l_.str@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_21 ; %bb.6: Lloh11: adrp x1, l_.str.1@PAGE Lloh12: add x1, x1, l_.str.1@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_22 ; %bb.7: Lloh13: adrp x1, l_.str.2@PAGE Lloh14: add x1, x1, l_.str.2@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_23 ; %bb.8: Lloh15: adrp x1, l_.str.3@PAGE Lloh16: add x1, x1, l_.str.3@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_24 ; %bb.9: Lloh17: adrp x1, l_.str.4@PAGE Lloh18: add x1, x1, l_.str.4@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_25 ; %bb.10: Lloh19: adrp x1, l_.str.5@PAGE Lloh20: add x1, x1, l_.str.5@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_26 ; %bb.11: Lloh21: adrp x1, l_.str.6@PAGE Lloh22: add x1, x1, l_.str.6@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_27 ; %bb.12: Lloh23: adrp x1, l_.str.7@PAGE Lloh24: add x1, x1, l_.str.7@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_28 ; %bb.13: Lloh25: adrp x1, l_.str.8@PAGE Lloh26: add x1, x1, l_.str.8@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_29 ; %bb.14: Lloh27: adrp x1, l_.str.9@PAGE Lloh28: add x1, x1, l_.str.9@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_30 ; %bb.15: Lloh29: adrp x1, l_.str.10@PAGE Lloh30: add x1, x1, l_.str.10@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_32 ; %bb.16: Lloh31: adrp x1, l_.str.11@PAGE Lloh32: add x1, x1, l_.str.11@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_33 ; %bb.17: Lloh33: adrp x1, l_.str.12@PAGE Lloh34: add x1, x1, l_.str.12@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_34 ; %bb.18: Lloh35: adrp x1, l_.str.13@PAGE Lloh36: add x1, x1, l_.str.13@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_35 ; %bb.19: Lloh37: adrp x1, l_.str.14@PAGE Lloh38: add x1, x1, l_.str.14@PAGEOFF mov x0, x21 bl _strcmp cbz w0, LBB0_36 LBB0_20: mov x0, x20 bl _tok2s mov x2, x0 Lloh39: adrp x1, l_.str.15@PAGE Lloh40: add x1, x1, l_.str.15@PAGEOFF mov x0, x19 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _errort LBB0_21: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_define LBB0_22: mov x0, x19 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_elif LBB0_23: mov x0, x19 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_else LBB0_24: mov x0, x19 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_endif LBB0_25: mov x0, x19 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_error LBB0_26: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_if LBB0_27: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_ifdef LBB0_28: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_ifndef LBB0_29: ldr w1, [x20, #16] mov x0, x19 mov w2, #1 b LBB0_31 LBB0_30: ldr w1, [x20, #16] mov x0, x19 mov w2, #0 LBB0_31: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_include LBB0_32: ldr w1, [x20, #16] mov x0, x19 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_include_next LBB0_33: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_line LBB0_34: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_pragma LBB0_35: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_undef LBB0_36: mov x0, x19 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _read_warning .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpAdd Lloh9, Lloh10 .loh AdrpAdd Lloh11, Lloh12 .loh AdrpAdd Lloh13, Lloh14 .loh AdrpAdd Lloh15, Lloh16 .loh AdrpAdd Lloh17, Lloh18 .loh AdrpAdd Lloh19, Lloh20 .loh AdrpAdd Lloh21, Lloh22 .loh AdrpAdd Lloh23, Lloh24 .loh AdrpAdd Lloh25, Lloh26 .loh AdrpAdd Lloh27, Lloh28 .loh AdrpAdd Lloh29, Lloh30 .loh AdrpAdd Lloh31, Lloh32 .loh AdrpAdd Lloh33, Lloh34 .loh AdrpAdd Lloh35, Lloh36 .loh AdrpAdd Lloh37, Lloh38 .loh AdrpAdd Lloh39, Lloh40 .cfi_endproc ; -- End function .comm _TNEWLINE,8,3 ; @TNEWLINE .comm _TNUMBER,8,3 ; @TNUMBER .comm _TIDENT,8,3 ; @TIDENT .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "define" l_.str.1: ; @.str.1 .asciz "elif" l_.str.2: ; @.str.2 .asciz "else" l_.str.3: ; @.str.3 .asciz "endif" l_.str.4: ; @.str.4 .asciz "error" l_.str.5: ; @.str.5 .asciz "if" l_.str.6: ; @.str.6 .asciz "ifdef" l_.str.7: ; @.str.7 .asciz "ifndef" l_.str.8: ; @.str.8 .asciz "import" l_.str.9: ; @.str.9 .asciz "include" l_.str.10: ; @.str.10 .asciz "include_next" l_.str.11: ; @.str.11 .asciz "line" l_.str.12: ; @.str.12 .asciz "pragma" l_.str.13: ; @.str.13 .asciz "undef" l_.str.14: ; @.str.14 .asciz "warning" l_.str.15: ; @.str.15 .asciz "unsupported preprocessor directive: %s" .no_dead_strip _read_directive .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_directive.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_elif _read_elif: ## @read_elif .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 movq _cond_incl_stack@GOTPCREL(%rip), %rbx movl (%rbx), %edi callq _vec_len testq %rax, %rax jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rsi movq %r14, %rdi callq _errort LBB0_2: movl (%rbx), %edi callq _vec_tail movq %rax, %rbx movq (%rax), %rax movq _IN_ELSE@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_4 ## %bb.3: leaq L_.str.1(%rip), %rsi movq %r14, %rdi callq _errort LBB0_4: movq _IN_ELIF@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, (%rbx) movq $0, 16(%rbx) cmpl $0, 8(%rbx) je LBB0_5 LBB0_7: xorl %eax, %eax popq %rbx popq %r14 popq %rbp jmp _skip_cond_incl ## TAILCALL LBB0_5: xorl %eax, %eax callq _read_constexpr testl %eax, %eax je LBB0_7 ## %bb.6: movl $1, 8(%rbx) popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _cond_incl_stack,4,2 ## @cond_incl_stack .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "stray #elif" .comm _IN_ELSE,8,3 ## @IN_ELSE L_.str.1: ## @.str.1 .asciz "#elif after #else" .comm _IN_ELIF,8,3 ## @IN_ELIF .no_dead_strip _read_elif .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_elif _read_elif: ; @read_elif .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x20, _cond_incl_stack@GOTPAGE Lloh1: ldr x20, [x20, _cond_incl_stack@GOTPAGEOFF] ldr w0, [x20] bl _vec_len cbnz x0, LBB0_2 ; %bb.1: Lloh2: adrp x1, l_.str@PAGE Lloh3: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _errort LBB0_2: ldr w0, [x20] bl _vec_tail mov x20, x0 ldr x8, [x0] Lloh4: adrp x9, _IN_ELSE@GOTPAGE Lloh5: ldr x9, [x9, _IN_ELSE@GOTPAGEOFF] Lloh6: ldr x9, [x9] cmp x8, x9 b.ne LBB0_4 ; %bb.3: Lloh7: adrp x1, l_.str.1@PAGE Lloh8: add x1, x1, l_.str.1@PAGEOFF mov x0, x19 bl _errort LBB0_4: Lloh9: adrp x8, _IN_ELIF@GOTPAGE Lloh10: ldr x8, [x8, _IN_ELIF@GOTPAGEOFF] Lloh11: ldr x8, [x8] str x8, [x20] str xzr, [x20, #16] ldr w8, [x20, #8] cbz w8, LBB0_6 LBB0_5: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _skip_cond_incl LBB0_6: bl _read_constexpr cbz w0, LBB0_5 ; %bb.7: mov w8, #1 str w8, [x20, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .loh AdrpAdd Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11 .cfi_endproc ; -- End function .comm _cond_incl_stack,4,2 ; @cond_incl_stack .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "stray #elif" .comm _IN_ELSE,8,3 ; @IN_ELSE l_.str.1: ; @.str.1 .asciz "#elif after #else" .comm _IN_ELIF,8,3 ; @IN_ELIF .no_dead_strip _read_elif .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_elif.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_else _read_else: ## @read_else .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 movq _cond_incl_stack@GOTPCREL(%rip), %rbx movl (%rbx), %edi callq _vec_len testq %rax, %rax jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rsi movq %r14, %rdi callq _errort LBB0_2: movl (%rbx), %edi callq _vec_tail movq %rax, %rbx movq (%rax), %rax movq _IN_ELSE@GOTPCREL(%rip), %r15 cmpq (%r15), %rax jne LBB0_4 ## %bb.3: leaq L_.str.1(%rip), %rsi movq %r14, %rdi callq _errort LBB0_4: xorl %eax, %eax callq _expect_newline movq (%r15), %rax movq %rax, (%rbx) movq $0, 16(%rbx) cmpq $0, 8(%rbx) je LBB0_5 ## %bb.6: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _skip_cond_incl ## TAILCALL LBB0_5: addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _cond_incl_stack,4,2 ## @cond_incl_stack .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "stray #else" .comm _IN_ELSE,8,3 ## @IN_ELSE L_.str.1: ## @.str.1 .asciz "#else appears in #else" .no_dead_strip _read_else .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_else _read_else: ; @read_else .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 Lloh0: adrp x20, _cond_incl_stack@GOTPAGE Lloh1: ldr x20, [x20, _cond_incl_stack@GOTPAGEOFF] ldr w0, [x20] bl _vec_len cbnz x0, LBB0_2 ; %bb.1: Lloh2: adrp x1, l_.str@PAGE Lloh3: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _errort LBB0_2: ldr w0, [x20] bl _vec_tail mov x20, x0 ldr x8, [x0] Lloh4: adrp x21, _IN_ELSE@GOTPAGE Lloh5: ldr x21, [x21, _IN_ELSE@GOTPAGEOFF] ldr x9, [x21] cmp x8, x9 b.ne LBB0_4 ; %bb.3: Lloh6: adrp x1, l_.str.1@PAGE Lloh7: add x1, x1, l_.str.1@PAGEOFF mov x0, x19 bl _errort LBB0_4: bl _expect_newline ldr x8, [x21] str x8, [x20] str xzr, [x20, #16] ldr x8, [x20, #8] cbz x8, LBB0_6 ; %bb.5: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _skip_cond_incl LBB0_6: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpAdd Lloh6, Lloh7 .cfi_endproc ; -- End function .comm _cond_incl_stack,4,2 ; @cond_incl_stack .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "stray #else" .comm _IN_ELSE,8,3 ; @IN_ELSE l_.str.1: ; @.str.1 .asciz "#else appears in #else" .no_dead_strip _read_else .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_else.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_endif _read_endif: ## @read_endif .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 movq _cond_incl_stack@GOTPCREL(%rip), %rbx movl (%rbx), %edi callq _vec_len testq %rax, %rax jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rsi movq %r14, %rdi callq _errort LBB0_2: movl (%rbx), %edi callq _vec_pop movq %rax, %rbx xorl %eax, %eax callq _expect_newline cmpl $0, (%rbx) je LBB0_5 ## %bb.3: movq 8(%rbx), %rax cmpq (%r14), %rax je LBB0_4 LBB0_5: popq %rbx popq %r14 popq %rbp retq LBB0_4: xorl %eax, %eax callq _skip_newlines movq 8(%rbx), %rcx cmpq (%rax), %rcx je LBB0_5 ## %bb.6: movq _include_guard@GOTPCREL(%rip), %rax movl (%rax), %edi movl (%rcx), %esi movl (%rbx), %edx popq %rbx popq %r14 popq %rbp jmp _map_put ## TAILCALL .cfi_endproc ## -- End function .comm _cond_incl_stack,4,2 ## @cond_incl_stack .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "stray #endif" .comm _include_guard,4,2 ## @include_guard .no_dead_strip _read_endif .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_endif _read_endif: ; @read_endif .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 Lloh0: adrp x20, _cond_incl_stack@GOTPAGE Lloh1: ldr x20, [x20, _cond_incl_stack@GOTPAGEOFF] ldr w0, [x20] bl _vec_len cbnz x0, LBB0_2 ; %bb.1: Lloh2: adrp x1, l_.str@PAGE Lloh3: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _errort LBB0_2: ldr w0, [x20] bl _vec_pop mov x20, x0 bl _expect_newline ldr w8, [x20] cbz w8, LBB0_4 ; %bb.3: ldr x8, [x20, #8] ldr x9, [x19] cmp x8, x9 b.eq LBB0_5 LBB0_4: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret LBB0_5: bl _skip_newlines ldr x8, [x20, #8] ldr x9, [x0] cmp x8, x9 b.eq LBB0_4 ; %bb.6: Lloh4: adrp x9, _include_guard@GOTPAGE Lloh5: ldr x9, [x9, _include_guard@GOTPAGEOFF] Lloh6: ldr w0, [x9] ldr w1, [x8] ldr w2, [x20] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _map_put .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .cfi_endproc ; -- End function .comm _cond_incl_stack,4,2 ; @cond_incl_stack .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "stray #endif" .comm _include_guard,4,2 ; @include_guard .no_dead_strip _read_endif .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_endif.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_error _read_error: ## @read_error .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx xorl %eax, %eax callq _read_error_message leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx addq $8, %rsp popq %rbx popq %rbp jmp _errort ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "#error: %s" .no_dead_strip _read_error .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_error _read_error: ; @read_error .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 bl _read_error_message mov x2, x0 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _errort .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "#error: %s" .no_dead_strip _read_error .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_error.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_error_message _read_error_message: ## @read_error_message .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 xorl %eax, %eax callq _make_buffer movq %rax, %r15 xorl %eax, %eax callq _lex movq %rax, %rbx movq (%rax), %rax movq _TNEWLINE@GOTPCREL(%rip), %r12 cmpq (%r12), %rax jne LBB0_1 LBB0_6: movq %r15, %rdi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _buf_body ## TAILCALL LBB0_1: leaq L_.str(%rip), %r14 jmp LBB0_2 .p2align 4, 0x90 LBB0_5: ## in Loop: Header=BB0_2 Depth=1 movq %rbx, %rdi callq _tok2s movq %r15, %rdi movq %r14, %rsi movl %eax, %edx callq _buf_printf xorl %eax, %eax callq _lex movq %rax, %rbx movq (%rax), %rax cmpq (%r12), %rax je LBB0_6 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %r15, %rdi callq _buf_len testq %rax, %rax je LBB0_5 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 cmpq $0, 8(%rbx) je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 movq %r15, %rdi movl $32, %esi callq _buf_write jmp LBB0_5 .cfi_endproc ## -- End function .comm _TNEWLINE,8,3 ## @TNEWLINE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" .no_dead_strip _read_error_message .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_error_message _read_error_message: ; @read_error_message .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 bl _make_buffer mov x19, x0 bl _lex ldr x8, [x0] Lloh0: adrp x22, _TNEWLINE@GOTPAGE Lloh1: ldr x22, [x22, _TNEWLINE@GOTPAGEOFF] ldr x9, [x22] cmp x8, x9 b.ne LBB0_2 LBB0_1: mov x0, x19 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _buf_body LBB0_2: mov x21, x0 Lloh2: adrp x20, l_.str@PAGE Lloh3: add x20, x20, l_.str@PAGEOFF b LBB0_4 LBB0_3: ; in Loop: Header=BB0_4 Depth=1 mov x0, x21 bl _tok2s mov x2, x0 mov x0, x19 mov x1, x20 bl _buf_printf bl _lex mov x21, x0 ldr x8, [x0] ldr x9, [x22] cmp x8, x9 b.eq LBB0_1 LBB0_4: ; =>This Inner Loop Header: Depth=1 mov x0, x19 bl _buf_len cbz x0, LBB0_3 ; %bb.5: ; in Loop: Header=BB0_4 Depth=1 ldr x8, [x21, #8] cbz x8, LBB0_3 ; %bb.6: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 mov w1, #32 bl _buf_write b LBB0_3 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .cfi_endproc ; -- End function .comm _TNEWLINE,8,3 ; @TNEWLINE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" .no_dead_strip _read_error_message .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_error_message.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_expand _read_expand: ## @read_expand .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq _TNEWLINE@GOTPCREL(%rip), %rbx .p2align 4, 0x90 LBB0_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax callq _read_expand_newline movq (%rax), %rcx cmpq (%rbx), %rcx je LBB0_1 ## %bb.2: addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .comm _TNEWLINE,8,3 ## @TNEWLINE .no_dead_strip _read_expand .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_expand _read_expand: ; @read_expand .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 Lloh0: adrp x19, _TNEWLINE@GOTPAGE Lloh1: ldr x19, [x19, _TNEWLINE@GOTPAGEOFF] LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _read_expand_newline ldr x8, [x0] ldr x9, [x19] cmp x8, x9 b.eq LBB0_1 ; %bb.2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _TNEWLINE,8,3 ; @TNEWLINE .no_dead_strip _read_expand .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_expand.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_expand_newline _read_expand_newline: ## @read_expand_newline .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 xorl %eax, %eax callq _lex movq %rax, %rbx movq (%rax), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_13 ## %bb.1: movq 8(%rbx), %r15 movq _macros@GOTPCREL(%rip), %rax movl (%rax), %edi movq %r15, %rsi callq _map_get testq %rax, %rax je LBB0_13 ## %bb.2: movq %rax, %r14 movl 16(%rbx), %edi movq %r15, %rsi callq _set_has testq %rax, %rax je LBB0_3 LBB0_13: movq %rbx, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_3: movl (%r14), %eax cmpl $128, %eax je LBB0_10 ## %bb.4: cmpl $130, %eax je LBB0_8 ## %bb.5: cmpl $129, %eax jne LBB0_12 ## %bb.6: movl 16(%rbx), %edi movq %r15, %rsi callq _set_add movq %r14, %rdi xorl %esi, %esi jmp LBB0_7 LBB0_10: movq %rbx, %rdi callq *8(%r14) jmp LBB0_11 LBB0_8: movl $40, %edi callq _next testl %eax, %eax je LBB0_13 ## %bb.9: movq %rbx, %rdi movq %r14, %rsi callq _read_args movq %rax, %r12 xorl %eax, %eax callq _peek_token movq %rax, %r13 movl $41, %edi callq _expect movl 16(%rbx), %edi movl 16(%r13), %esi callq _set_intersection movl %eax, %edi movq %r15, %rsi callq _set_add movq %r14, %rdi movq %r12, %rsi LBB0_7: movq %rax, %rdx callq _subst movq %rax, %r14 movq %rax, %rdi movq %rbx, %rsi callq _propagate_space movq %r14, %rdi callq _unget_all LBB0_11: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _read_expand ## TAILCALL LBB0_12: leaq L_.str(%rip), %rdi callq _error jmp LBB0_13 .cfi_endproc ## -- End function .comm _TIDENT,8,3 ## @TIDENT .comm _macros,4,2 ## @macros .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "internal error" .no_dead_strip _read_expand_newline .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_expand_newline _read_expand_newline: ; @read_expand_newline .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 bl _lex mov x19, x0 ldr x8, [x0] Lloh0: adrp x9, _TIDENT@GOTPAGE Lloh1: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.ne LBB0_3 ; %bb.1: ldr x21, [x19, #8] Lloh3: adrp x8, _macros@GOTPAGE Lloh4: ldr x8, [x8, _macros@GOTPAGEOFF] Lloh5: ldr w0, [x8] mov x1, x21 bl _map_get cbz x0, LBB0_3 ; %bb.2: mov x20, x0 ldr w0, [x19, #16] mov x1, x21 bl _set_has cbz x0, LBB0_4 LBB0_3: mov x0, x19 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret LBB0_4: ldr w8, [x20] cmp w8, #128 b.eq LBB0_8 ; %bb.5: cmp w8, #130 b.eq LBB0_9 ; %bb.6: cmp w8, #129 b.ne LBB0_13 ; %bb.7: ldr w0, [x19, #16] mov x1, x21 bl _set_add mov x2, x0 mov x0, x20 mov x1, #0 b LBB0_11 LBB0_8: ldr x8, [x20, #8] mov x0, x19 blr x8 b LBB0_12 LBB0_9: mov w0, #40 bl _next cbz w0, LBB0_3 ; %bb.10: mov x0, x19 mov x1, x20 bl _read_args mov x22, x0 bl _peek_token mov x23, x0 mov w0, #41 bl _expect ldr w0, [x19, #16] ldr w1, [x23, #16] bl _set_intersection mov x1, x21 bl _set_add mov x2, x0 mov x0, x20 mov x1, x22 LBB0_11: bl _subst mov x20, x0 mov x1, x19 bl _propagate_space mov x0, x20 bl _unget_all LBB0_12: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload b _read_expand LBB0_13: Lloh6: adrp x0, l_.str@PAGE Lloh7: add x0, x0, l_.str@PAGEOFF bl _error b LBB0_3 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpAdd Lloh6, Lloh7 .cfi_endproc ; -- End function .comm _TIDENT,8,3 ; @TIDENT .comm _macros,4,2 ; @macros .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "internal error" .no_dead_strip _read_expand_newline .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_expand_newline.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _read_from_string ## -- Begin function read_from_string .p2align 4, 0x90 _read_from_string: ## @read_from_string .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 callq _make_file_string movl %eax, %edi callq _stream_stash xorl %ebx, %ebx xorl %eax, %eax callq _read_toplevels movq %rax, %r14 movq %rax, %rdi callq _vec_len testl %eax, %eax jle LBB0_2 .p2align 4, 0x90 LBB0_1: ## =>This Inner Loop Header: Depth=1 movq %r14, %rdi movl %ebx, %esi callq _vec_get movl %eax, %edi callq _emit_toplevel incl %ebx movq %r14, %rdi callq _vec_len cmpl %eax, %ebx jl LBB0_1 LBB0_2: xorl %eax, %eax popq %rbx popq %r14 popq %rbp jmp _stream_unstash ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _read_from_string ; -- Begin function read_from_string .p2align 2 _read_from_string: ; @read_from_string .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 bl _make_file_string bl _stream_stash bl _read_toplevels mov x19, x0 bl _vec_len cmp w0, #1 b.lt LBB0_3 ; %bb.1: mov w20, #0 LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x19 mov x1, x20 bl _vec_get bl _emit_toplevel add w20, w20, #1 mov x0, x19 bl _vec_len cmp w20, w0 b.lt LBB0_2 LBB0_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _stream_unstash .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_from_string.c
anghabench
.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 pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 xorl %eax, %eax callq _make_map movq %rax, %rbx movq %r14, %rdi movq %rax, %rsi callq _read_funclike_macro_params movl %eax, %r15d movq %rbx, %rdi callq _read_funclike_macro_body movq %rax, %r12 movq %rax, %rdi callq _hashhash_check movq %rbx, %rdi callq _map_len movq %r12, %rdi movl %eax, %esi movl %r15d, %edx callq _make_func_macro movq _macros@GOTPCREL(%rip), %rcx movl (%rcx), %edi movl (%r14), %esi movq %rax, %rdx popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _map_put ## TAILCALL .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 2 ; -- Begin function read_funclike_macro _read_funclike_macro: ; @read_funclike_macro .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 bl _make_map mov x20, x0 mov x0, x19 mov x1, x20 bl _read_funclike_macro_params mov x21, x0 mov x0, x20 bl _read_funclike_macro_body mov x22, x0 bl _hashhash_check mov x0, x20 bl _map_len mov x1, x0 mov x0, x22 mov x2, x21 bl _make_func_macro mov x2, x0 Lloh0: adrp x8, _macros@GOTPAGE Lloh1: ldr x8, [x8, _macros@GOTPAGEOFF] Lloh2: ldr w0, [x8] ldr w1, [x19] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _map_put .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .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
anghabench
.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 pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 xorl %eax, %eax callq _make_vector movq %rax, %r15 xorl %eax, %eax callq _lex movq %rax, %rbx movq (%rax), %rax movq _TNEWLINE@GOTPCREL(%rip), %r12 cmpq (%r12), %rax jne LBB0_1 LBB0_7: movq %r15, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_1: movq _TIDENT@GOTPCREL(%rip), %r13 jmp LBB0_2 .p2align 4, 0x90 LBB0_5: ## in Loop: Header=BB0_2 Depth=1 movq %r15, %rdi movq %rbx, %rsi LBB0_6: ## in Loop: Header=BB0_2 Depth=1 callq _vec_push xorl %eax, %eax callq _lex movq %rax, %rbx movq (%rax), %rax cmpq (%r12), %rax je LBB0_7 LBB0_2: ## =>This Inner Loop Header: Depth=1 cmpq (%r13), %rax jne LBB0_5 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movl 12(%rbx), %esi movq %r14, %rdi callq _map_get testq %rax, %rax je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 movq %rax, %rdi callq _copy_token movl 8(%rbx), %ecx movl %ecx, 8(%rax) movq %r15, %rdi movq %rax, %rsi jmp LBB0_6 .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 2 ; -- Begin function read_funclike_macro_body _read_funclike_macro_body: ; @read_funclike_macro_body .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x19, x0 bl _make_vector mov x20, x0 bl _lex ldr x8, [x0] Lloh0: adrp x22, _TNEWLINE@GOTPAGE Lloh1: ldr x22, [x22, _TNEWLINE@GOTPAGEOFF] ldr x9, [x22] cmp x8, x9 b.ne LBB0_2 LBB0_1: mov x0, x20 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret LBB0_2: mov x21, x0 Lloh2: adrp x23, _TIDENT@GOTPAGE Lloh3: ldr x23, [x23, _TIDENT@GOTPAGEOFF] b LBB0_5 LBB0_3: ; in Loop: Header=BB0_5 Depth=1 mov x0, x20 mov x1, x21 LBB0_4: ; in Loop: Header=BB0_5 Depth=1 bl _vec_push bl _lex mov x21, x0 ldr x8, [x0] ldr x9, [x22] cmp x8, x9 b.eq LBB0_1 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr x9, [x23] cmp x8, x9 b.ne LBB0_3 ; %bb.6: ; in Loop: Header=BB0_5 Depth=1 ldr w1, [x21, #12] mov x0, x19 bl _map_get cbz x0, LBB0_3 ; %bb.7: ; in Loop: Header=BB0_5 Depth=1 bl _copy_token mov x1, x0 ldr w8, [x21, #8] str w8, [x0, #8] mov x0, x20 b LBB0_4 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGot Lloh2, Lloh3 .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
anghabench
.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 pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $24, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, -48(%rbp) ## 8-byte Spill movq %rdi, -56(%rbp) ## 8-byte Spill xorl %r12d, %r12d xorl %eax, %eax callq _lex movq %rax, %r13 movq %rax, %rdi movl $41, %esi callq _is_keyword testq %rax, %rax je LBB0_1 LBB0_15: movl %r12d, %eax addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_1: movq _KELLIPSIS@GOTPCREL(%rip), %r15 xorl %r14d, %r14d xorl %r12d, %r12d .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 testl %r14d, %r14d je LBB0_6 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movq %r13, %rdi movl $44, %esi callq _is_keyword testq %rax, %rax jne LBB0_5 ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 movq %r13, %rdi callq _tok2s movq %r13, %rdi leaq L_.str(%rip), %rsi movl %eax, %edx xorl %eax, %eax callq _errort LBB0_5: ## in Loop: Header=BB0_2 Depth=1 xorl %eax, %eax callq _lex movq %rax, %r13 LBB0_6: ## in Loop: Header=BB0_2 Depth=1 movq (%r13), %rax movq _TNEWLINE@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_2 Depth=1 movq -56(%rbp), %rdi ## 8-byte Reload leaq L_.str.1(%rip), %rsi xorl %eax, %eax callq _errort LBB0_8: ## in Loop: Header=BB0_2 Depth=1 movsbl (%r15), %esi movq %r13, %rdi callq _is_keyword testq %rax, %rax jne LBB0_9 ## %bb.10: ## in Loop: Header=BB0_2 Depth=1 movq (%r13), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_12 ## %bb.11: ## in Loop: Header=BB0_2 Depth=1 movq %r13, %rdi callq _tok2s movq %r13, %rdi leaq L_.str.3(%rip), %rsi movl %eax, %edx xorl %eax, %eax callq _errort LBB0_12: ## in Loop: Header=BB0_2 Depth=1 movq 8(%r13), %rbx movsbl (%r15), %edi callq _next testq %rax, %rax jne LBB0_13 ## %bb.14: ## in Loop: Header=BB0_2 Depth=1 movl %r14d, %edi xorl %esi, %esi callq _make_macro_token movq -48(%rbp), %rdi ## 8-byte Reload movq %rbx, %rsi movl %eax, %edx callq _map_put incl %r14d xorl %eax, %eax callq _lex movq %rax, %r13 movq %rax, %rdi movl $41, %esi callq _is_keyword testq %rax, %rax je LBB0_2 jmp LBB0_15 LBB0_9: movl $1, %r12d movl %r14d, %edi movl $1, %esi callq _make_macro_token leaq L_.str.2(%rip), %rsi movq -48(%rbp), %rdi ## 8-byte Reload movl %eax, %edx callq _map_put movl $41, %edi callq _expect jmp LBB0_15 LBB0_13: movl $41, %edi callq _expect movl $1, %r12d movl %r14d, %edi movl $1, %esi callq _make_macro_token movq -48(%rbp), %rdi ## 8-byte Reload movq %rbx, %rsi movl %eax, %edx callq _map_put jmp LBB0_15 .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 2 ; -- Begin function read_funclike_macro_params _read_funclike_macro_params: ; @read_funclike_macro_params .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x28, x27, [sp, #16] ; 16-byte Folded Spill stp x26, x25, [sp, #32] ; 16-byte Folded Spill stp x24, x23, [sp, #48] ; 16-byte Folded Spill stp x22, x21, [sp, #64] ; 16-byte Folded Spill stp x20, x19, [sp, #80] ; 16-byte Folded Spill 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 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 .cfi_offset w27, -88 .cfi_offset w28, -96 mov x19, x1 mov x20, x0 bl _lex mov x25, x0 mov w1, #41 bl _is_keyword cbz x0, LBB0_3 LBB0_1: mov w20, #0 LBB0_2: mov x0, x20 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload ldp x20, x19, [sp, #80] ; 16-byte Folded Reload ldp x22, x21, [sp, #64] ; 16-byte Folded Reload ldp x24, x23, [sp, #48] ; 16-byte Folded Reload ldp x26, x25, [sp, #32] ; 16-byte Folded Reload ldp x28, x27, [sp, #16] ; 16-byte Folded Reload add sp, sp, #112 ret LBB0_3: mov w21, #0 Lloh0: adrp x26, _TNEWLINE@GOTPAGE Lloh1: ldr x26, [x26, _TNEWLINE@GOTPAGEOFF] Lloh2: adrp x22, l_.str.1@PAGE Lloh3: add x22, x22, l_.str.1@PAGEOFF Lloh4: adrp x27, _KELLIPSIS@GOTPAGE Lloh5: ldr x27, [x27, _KELLIPSIS@GOTPAGEOFF] Lloh6: adrp x28, _TIDENT@GOTPAGE Lloh7: ldr x28, [x28, _TIDENT@GOTPAGEOFF] Lloh8: adrp x23, l_.str.3@PAGE Lloh9: add x23, x23, l_.str.3@PAGEOFF Lloh10: adrp x24, l_.str@PAGE Lloh11: add x24, x24, l_.str@PAGEOFF LBB0_4: ; =>This Inner Loop Header: Depth=1 cbz w21, LBB0_8 ; %bb.5: ; in Loop: Header=BB0_4 Depth=1 mov x0, x25 mov w1, #44 bl _is_keyword cbnz x0, LBB0_7 ; %bb.6: ; in Loop: Header=BB0_4 Depth=1 mov x0, x25 bl _tok2s ; kill: def $w0 killed $w0 def $x0 str x0, [sp] mov x0, x25 mov x1, x24 bl _errort LBB0_7: ; in Loop: Header=BB0_4 Depth=1 bl _lex mov x25, x0 LBB0_8: ; in Loop: Header=BB0_4 Depth=1 ldr x8, [x25] ldr x9, [x26] cmp x8, x9 b.ne LBB0_10 ; %bb.9: ; in Loop: Header=BB0_4 Depth=1 mov x0, x20 mov x1, x22 bl _errort LBB0_10: ; in Loop: Header=BB0_4 Depth=1 ldrsb w1, [x27] mov x0, x25 bl _is_keyword cbnz x0, LBB0_15 ; %bb.11: ; in Loop: Header=BB0_4 Depth=1 ldr x8, [x25] ldr x9, [x28] cmp x8, x9 b.eq LBB0_13 ; %bb.12: ; in Loop: Header=BB0_4 Depth=1 mov x0, x25 bl _tok2s ; kill: def $w0 killed $w0 def $x0 str x0, [sp] mov x0, x25 mov x1, x23 bl _errort LBB0_13: ; in Loop: Header=BB0_4 Depth=1 ldr x25, [x25, #8] ldrsb w0, [x27] bl _next cbnz x0, LBB0_16 ; %bb.14: ; in Loop: Header=BB0_4 Depth=1 mov x0, x21 mov w1, #0 bl _make_macro_token mov x2, x0 mov x0, x19 mov x1, x25 bl _map_put add w21, w21, #1 bl _lex mov x25, x0 mov w1, #41 bl _is_keyword cbz x0, LBB0_4 b LBB0_1 LBB0_15: mov w20, #1 mov x0, x21 mov w1, #1 bl _make_macro_token mov x2, x0 Lloh12: adrp x1, l_.str.2@PAGE Lloh13: add x1, x1, l_.str.2@PAGEOFF mov x0, x19 bl _map_put mov w0, #41 bl _expect b LBB0_2 LBB0_16: mov w0, #41 bl _expect mov w20, #1 mov x0, x21 mov w1, #1 bl _make_macro_token mov x2, x0 mov x0, x19 mov x1, x25 bl _map_put b LBB0_2 .loh AdrpAdd Lloh10, Lloh11 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpLdrGot Lloh6, Lloh7 .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh12, Lloh13 .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
anghabench
.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 pushq %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _lex movq %rax, %rbx movq (%rax), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_2 ## %bb.1: movq %rbx, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_2: movq %rbx, %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .comm _TIDENT,8,3 ## @TIDENT .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "identifier expected, but got %s" .no_dead_strip _read_ident .subsections_via_symbols
.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: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 bl _lex mov x19, x0 ldr x8, [x0] Lloh0: adrp x9, _TIDENT@GOTPAGE Lloh1: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.eq LBB0_2 ; %bb.1: mov x0, x19 bl _tok2s mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _errort LBB0_2: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .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
anghabench
.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 xorl %eax, %eax callq _read_constexpr movl %eax, %edi popq %rbp jmp _do_read_if ## TAILCALL .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 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 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload b _do_read_if .cfi_endproc ; -- End function .no_dead_strip _read_if .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_if.c
anghabench
.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 pushq %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _lex movq %rax, %rbx movq (%rax), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_2 ## %bb.1: movq %rbx, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_2: xorl %eax, %eax callq _expect_newline movq _macros@GOTPCREL(%rip), %rax movl (%rax), %edi movl 8(%rbx), %esi callq _map_get movl %eax, %edi addq $8, %rsp popq %rbx popq %rbp jmp _do_read_if ## TAILCALL .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 2 ; -- Begin function read_ifdef _read_ifdef: ; @read_ifdef .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 bl _lex mov x19, x0 ldr x8, [x0] Lloh0: adrp x9, _TIDENT@GOTPAGE Lloh1: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.eq LBB0_2 ; %bb.1: mov x0, x19 bl _tok2s mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _errort LBB0_2: bl _expect_newline Lloh5: adrp x8, _macros@GOTPAGE Lloh6: ldr x8, [x8, _macros@GOTPAGEOFF] Lloh7: ldr w0, [x8] ldr w1, [x19, #8] bl _map_get ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _do_read_if .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .cfi_endproc ; -- End function .comm _TIDENT,8,3 ; @TIDENT .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "identifier expected, but got %s" .comm _macros,4,2 ; @macros .no_dead_strip _read_ifdef .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_ifdef.c
anghabench
.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 pushq %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _lex movq %rax, %rbx movq (%rax), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_2 ## %bb.1: movq %rbx, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_2: xorl %eax, %eax callq _expect_newline movq _macros@GOTPCREL(%rip), %rax movl (%rax), %edi movl 16(%rbx), %esi callq _map_get xorl %edi, %edi testl %eax, %eax sete %dil callq _do_read_if cmpl $2, 8(%rbx) jne LBB0_4 ## %bb.3: movq _cond_incl_stack@GOTPCREL(%rip), %rax movl (%rax), %edi callq _vec_tail movl 16(%rbx), %ecx movl %ecx, 4(%rax) movl 12(%rbx), %ecx movl %ecx, (%rax) LBB0_4: addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .comm _TIDENT,8,3 ## @TIDENT .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "identifier expected, but got %s" .comm _macros,4,2 ## @macros .comm _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 2 ; -- Begin function read_ifndef _read_ifndef: ; @read_ifndef .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 bl _lex mov x19, x0 ldr x8, [x0] Lloh0: adrp x9, _TIDENT@GOTPAGE Lloh1: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.eq LBB0_2 ; %bb.1: mov x0, x19 bl _tok2s mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _errort LBB0_2: bl _expect_newline Lloh5: adrp x8, _macros@GOTPAGE Lloh6: ldr x8, [x8, _macros@GOTPAGEOFF] Lloh7: ldr w0, [x8] ldr w1, [x19, #16] bl _map_get cmp w0, #0 cset w0, eq bl _do_read_if ldr w8, [x19, #8] cmp w8, #2 b.ne LBB0_4 ; %bb.3: Lloh8: adrp x8, _cond_incl_stack@GOTPAGE Lloh9: ldr x8, [x8, _cond_incl_stack@GOTPAGEOFF] Lloh10: ldr w0, [x8] bl _vec_tail ldur d0, [x19, #12] str d0, [x0] LBB0_4: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .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
anghabench
.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 pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %edx, %r15d movq %rsi, %rbx movq %rdi, %r14 leaq -44(%rbp), %rsi callq _read_cpp_header_name movq %rax, %r12 xorl %eax, %eax callq _expect_newline cmpb $47, (%r12) jne LBB0_3 ## %bb.1: leaq L_.str(%rip), %rdi movq %r12, %rsi movl %r15d, %edx callq _try_include testq %rax, %rax jne LBB0_12 jmp LBB0_2 LBB0_3: cmpl $0, -44(%rbp) je LBB0_4 LBB0_8: movq _std_include_path@GOTPCREL(%rip), %r13 movl (%r13), %edi callq _vec_len testl %eax, %eax jle LBB0_2 ## %bb.9: xorl %ebx, %ebx .p2align 4, 0x90 LBB0_11: ## =>This Inner Loop Header: Depth=1 movl (%r13), %edi movl %ebx, %esi callq _vec_get movq %rax, %rdi movq %r12, %rsi movl %r15d, %edx callq _try_include testq %rax, %rax jne LBB0_12 ## %bb.10: ## in Loop: Header=BB0_11 Depth=1 incl %ebx movl (%r13), %edi callq _vec_len cmpl %eax, %ebx jl LBB0_11 LBB0_2: leaq L_.str.2(%rip), %rsi movq %r14, %rdi movq %r12, %rdx callq _errort jmp LBB0_12 LBB0_4: movq (%rbx), %rdi testq %rdi, %rdi je LBB0_5 ## %bb.6: callq _strdup movl %eax, %edi callq _dirname movq %rax, %rdi jmp LBB0_7 LBB0_5: leaq L_.str.1(%rip), %rdi LBB0_7: movq %r12, %rsi movl %r15d, %edx callq _try_include testq %rax, %rax je LBB0_8 LBB0_12: addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 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
.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 x24, x23, [sp, #16] ; 16-byte Folded Spill stp x22, x21, [sp, #32] ; 16-byte Folded Spill stp x20, x19, [sp, #48] ; 16-byte Folded Spill stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x21, x2 mov x22, x1 mov x19, x0 add x1, sp, #12 bl _read_cpp_header_name mov x20, x0 bl _expect_newline ldrb w8, [x20] cmp w8, #47 b.ne LBB0_2 ; %bb.1: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF mov x1, x20 mov x2, x21 bl _try_include cbnz x0, LBB0_12 b LBB0_7 LBB0_2: ldr w8, [sp, #12] cbz w8, LBB0_8 LBB0_3: Lloh2: adrp x23, _std_include_path@GOTPAGE Lloh3: ldr x23, [x23, _std_include_path@GOTPAGEOFF] ldr w0, [x23] bl _vec_len cmp w0, #1 b.lt LBB0_7 ; %bb.4: mov w22, #0 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w0, [x23] mov x1, x22 bl _vec_get mov x1, x20 mov x2, x21 bl _try_include cbnz x0, LBB0_12 ; %bb.6: ; in Loop: Header=BB0_5 Depth=1 add w22, w22, #1 ldr w0, [x23] bl _vec_len cmp w22, w0 b.lt LBB0_5 LBB0_7: Lloh4: adrp x1, l_.str.2@PAGE Lloh5: add x1, x1, l_.str.2@PAGEOFF mov x0, x19 mov x2, x20 bl _errort b LBB0_12 LBB0_8: ldr x0, [x22] cbz x0, LBB0_10 ; %bb.9: bl _strdup bl _dirname b LBB0_11 LBB0_10: Lloh6: adrp x0, l_.str.1@PAGE Lloh7: add x0, x0, l_.str.1@PAGEOFF LBB0_11: mov x1, x20 mov x2, x21 bl _try_include cbz x0, LBB0_3 LBB0_12: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload ldp x22, x21, [sp, #32] ; 16-byte Folded Reload ldp x24, x23, [sp, #16] ; 16-byte Folded Reload add sp, sp, #80 ret .loh AdrpAdd Lloh0, Lloh1 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh6, Lloh7 .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
anghabench
.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 pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $24, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r12 movq %rdi, %r13 leaq -52(%rbp), %rsi callq _read_cpp_header_name movq %rax, %r15 xorl %ebx, %ebx xorl %eax, %eax callq _expect_newline cmpb $47, (%r15) jne LBB0_3 ## %bb.1: leaq L_.str(%rip), %rdi movq %r15, %rsi xorl %edx, %edx callq _try_include testq %rax, %rax jne LBB0_10 LBB0_2: leaq L_.str.2(%rip), %rsi movq %r13, %rdi movq %r15, %rdx callq _errort jmp LBB0_10 LBB0_3: movq %r13, -48(%rbp) ## 8-byte Spill movl (%r12), %edi callq _fullpath movq %rax, %r12 movq _std_include_path@GOTPCREL(%rip), %r14 movl (%r14), %edi callq _vec_len testl %eax, %eax jle LBB0_7 ## %bb.4: xorl %ebx, %ebx leaq L_.str.1(%rip), %r13 .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 movl (%r14), %edi movl %ebx, %esi callq _vec_get movq %r13, %rdi movq %rax, %rsi movq %r15, %rdx callq _format movl %eax, %edi callq _fullpath movq %r12, %rdi movq %rax, %rsi callq _strcmp testl %eax, %eax je LBB0_7 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 incl %ebx movl (%r14), %edi callq _vec_len cmpl %eax, %ebx jl LBB0_5 LBB0_7: incl %ebx movq -48(%rbp), %r13 ## 8-byte Reload .p2align 4, 0x90 LBB0_8: ## =>This Inner Loop Header: Depth=1 movl (%r14), %edi callq _vec_len cmpl %eax, %ebx jge LBB0_2 ## %bb.9: ## in Loop: Header=BB0_8 Depth=1 movl (%r14), %edi movl %ebx, %esi callq _vec_get movq %rax, %rdi movq %r15, %rsi xorl %edx, %edx callq _try_include incl %ebx testq %rax, %rax je LBB0_8 LBB0_10: addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 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
.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, #80 .cfi_def_cfa_offset 80 stp x24, x23, [sp, #16] ; 16-byte Folded Spill stp x22, x21, [sp, #32] ; 16-byte Folded Spill stp x20, x19, [sp, #48] ; 16-byte Folded Spill stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x21, x1 mov x19, x0 add x1, sp, #12 bl _read_cpp_header_name mov x20, x0 bl _expect_newline ldrb w8, [x20] cmp w8, #47 b.ne LBB0_3 ; %bb.1: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF mov x1, x20 mov w2, #0 bl _try_include cbnz x0, LBB0_11 LBB0_2: Lloh2: adrp x1, l_.str.2@PAGE Lloh3: add x1, x1, l_.str.2@PAGEOFF mov x0, x19 mov x2, x20 bl _errort b LBB0_11 LBB0_3: ldr w0, [x21] bl _fullpath mov x21, x0 Lloh4: adrp x24, _std_include_path@GOTPAGE Lloh5: ldr x24, [x24, _std_include_path@GOTPAGEOFF] ldr w0, [x24] bl _vec_len cmp w0, #1 b.lt LBB0_7 ; %bb.4: mov w22, #0 Lloh6: adrp x23, l_.str.1@PAGE Lloh7: add x23, x23, l_.str.1@PAGEOFF LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w0, [x24] mov x1, x22 bl _vec_get mov x1, x0 mov x0, x23 mov x2, x20 bl _format bl _fullpath mov x1, x0 mov x0, x21 bl _strcmp cbz w0, LBB0_8 ; %bb.6: ; in Loop: Header=BB0_5 Depth=1 add w22, w22, #1 ldr w0, [x24] bl _vec_len cmp w22, w0 b.lt LBB0_5 b LBB0_8 LBB0_7: mov w22, #0 LBB0_8: add w21, w22, #1 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldr w0, [x24] bl _vec_len cmp w21, w0 b.ge LBB0_2 ; %bb.10: ; in Loop: Header=BB0_9 Depth=1 ldr w0, [x24] mov x1, x21 bl _vec_get mov x1, x20 mov w2, #0 bl _try_include add w21, w21, #1 cbz x0, LBB0_9 LBB0_11: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload ldp x22, x21, [sp, #32] ; 16-byte Folded Reload ldp x24, x23, [sp, #16] ; 16-byte Folded Reload add sp, sp, #80 ret .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpAdd Lloh6, Lloh7 .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
anghabench
.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 pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 xorl %eax, %eax callq _make_vector movq %rax, %r15 xorl %eax, %eax callq _read_expand_newline movq %rax, %rbx movq (%rax), %rax movq _TNEWLINE@GOTPCREL(%rip), %r12 cmpq (%r12), %rax jne LBB0_1 LBB0_8: movq %r15, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_1: leaq L_.str(%rip), %r14 movq _TIDENT@GOTPCREL(%rip), %r13 jmp LBB0_2 .p2align 4, 0x90 LBB0_3: ## in Loop: Header=BB0_2 Depth=1 xorl %eax, %eax callq _read_defined_op movq %r15, %rdi movq %rax, %rsi LBB0_7: ## in Loop: Header=BB0_2 Depth=1 callq _vec_push xorl %eax, %eax callq _read_expand_newline movq %rax, %rbx movq (%rax), %rax cmpq (%r12), %rax je LBB0_8 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %rbx, %rdi movq %r14, %rsi callq _is_ident testq %rax, %rax jne LBB0_3 ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 movq (%rbx), %rax cmpq (%r13), %rax jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_2 Depth=1 movq _cpp_token_zero@GOTPCREL(%rip), %rax movq (%rax), %rsi movq %r15, %rdi jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_2 Depth=1 movq %r15, %rdi movq %rbx, %rsi jmp LBB0_7 .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 2 ; -- Begin function read_intexpr_line _read_intexpr_line: ; @read_intexpr_line .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 bl _make_vector mov x19, x0 bl _read_expand_newline ldr x8, [x0] Lloh0: adrp x22, _TNEWLINE@GOTPAGE Lloh1: ldr x22, [x22, _TNEWLINE@GOTPAGEOFF] ldr x9, [x22] cmp x8, x9 b.ne LBB0_2 LBB0_1: mov x0, x19 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret LBB0_2: mov x21, x0 Lloh2: adrp x20, l_.str@PAGE Lloh3: add x20, x20, l_.str@PAGEOFF Lloh4: adrp x23, _TIDENT@GOTPAGE Lloh5: ldr x23, [x23, _TIDENT@GOTPAGEOFF] Lloh6: adrp x24, _cpp_token_zero@GOTPAGE Lloh7: ldr x24, [x24, _cpp_token_zero@GOTPAGEOFF] b LBB0_6 LBB0_3: ; in Loop: Header=BB0_6 Depth=1 bl _read_defined_op mov x1, x0 LBB0_4: ; in Loop: Header=BB0_6 Depth=1 mov x0, x19 LBB0_5: ; in Loop: Header=BB0_6 Depth=1 bl _vec_push bl _read_expand_newline mov x21, x0 ldr x8, [x0] ldr x9, [x22] cmp x8, x9 b.eq LBB0_1 LBB0_6: ; =>This Inner Loop Header: Depth=1 mov x0, x21 mov x1, x20 bl _is_ident cbnz x0, LBB0_3 ; %bb.7: ; in Loop: Header=BB0_6 Depth=1 ldr x8, [x21] ldr x9, [x23] cmp x8, x9 b.ne LBB0_9 ; %bb.8: ; in Loop: Header=BB0_6 Depth=1 ldr x1, [x24] b LBB0_4 LBB0_9: ; in Loop: Header=BB0_6 Depth=1 mov x0, x19 mov x1, x21 b LBB0_5 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGot Lloh6, Lloh7 .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpAdd Lloh2, Lloh3 .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
anghabench
.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 pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 xorl %eax, %eax callq _read_expand_newline movq %rax, %rbx movq (%rax), %rax movq _TNUMBER@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_2 ## %bb.1: movq 8(%rbx), %rdi callq _is_digit_sequence testl %eax, %eax jne LBB0_3 LBB0_2: movq %rbx, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_3: movq 8(%rbx), %rdi callq _atoi movl %eax, %r14d xorl %eax, %eax callq _read_expand_newline movq %rax, %rbx movq (%rax), %rax movq _TSTRING@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_4 ## %bb.7: movq 8(%rbx), %rbx xorl %eax, %eax callq _expect_newline xorl %eax, %eax callq _current_file movl %r14d, (%rax) testq %rbx, %rbx je LBB0_9 ## %bb.8: movq %rbx, 8(%rax) jmp LBB0_9 LBB0_4: movq _TNEWLINE@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_6 ## %bb.5: movq %rbx, %rdi callq _tok2s leaq L_.str.1(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_6: xorl %eax, %eax callq _current_file movl %r14d, (%rax) LBB0_9: popq %rbx popq %r14 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
.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: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 bl _read_expand_newline mov x19, x0 ldr x8, [x0] Lloh0: adrp x9, _TNUMBER@GOTPAGE Lloh1: ldr x9, [x9, _TNUMBER@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.ne LBB0_2 ; %bb.1: ldr x0, [x19, #8] bl _is_digit_sequence cbnz w0, LBB0_3 LBB0_2: mov x0, x19 bl _tok2s mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _errort LBB0_3: ldr x0, [x19, #8] bl _atoi mov x19, x0 bl _read_expand_newline mov x20, x0 ldr x8, [x0] Lloh5: adrp x9, _TSTRING@GOTPAGE Lloh6: ldr x9, [x9, _TSTRING@GOTPAGEOFF] Lloh7: ldr x9, [x9] cmp x8, x9 b.ne LBB0_6 ; %bb.4: ldr x20, [x20, #8] bl _expect_newline bl _current_file str w19, [x0] cbz x20, LBB0_9 ; %bb.5: str x20, [x0, #8] b LBB0_9 LBB0_6: Lloh8: adrp x9, _TNEWLINE@GOTPAGE Lloh9: ldr x9, [x9, _TNEWLINE@GOTPAGEOFF] Lloh10: ldr x9, [x9] cmp x8, x9 b.eq LBB0_8 ; %bb.7: mov x0, x20 bl _tok2s mov x2, x0 Lloh11: adrp x1, l_.str.1@PAGE Lloh12: add x1, x1, l_.str.1@PAGEOFF mov x0, x20 bl _errort LBB0_8: bl _current_file str w19, [x0] LBB0_9: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .loh AdrpAdd Lloh11, Lloh12 .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
anghabench
.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 pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %rbx movq (%rdi), %rdi callq _is_digit_sequence testl %eax, %eax jne LBB0_2 ## %bb.1: movq %rbx, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_2: movq (%rbx), %rdi callq _atoi movl %eax, %r14d xorl %eax, %eax callq _lex movq %rax, %rbx movq 8(%rax), %rax movq _TSTRING@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_4 ## %bb.3: movq %rbx, %rdi callq _tok2s leaq L_.str.1(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_4: movq (%rbx), %r15 movq _TNEWLINE@GOTPCREL(%rip), %rbx .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax callq _lex movq 8(%rax), %rax cmpq (%rbx), %rax jne LBB0_5 ## %bb.6: xorl %eax, %eax callq _current_file movl %r14d, (%rax) movq %r15, 8(%rax) addq $8, %rsp popq %rbx popq %r14 popq %r15 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
.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: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 ldr x0, [x0] bl _is_digit_sequence cbnz w0, LBB0_2 ; %bb.1: mov x0, x19 bl _tok2s mov x2, x0 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _errort LBB0_2: ldr x0, [x19] bl _atoi mov x19, x0 bl _lex mov x20, x0 ldr x8, [x0, #8] Lloh2: adrp x9, _TSTRING@GOTPAGE Lloh3: ldr x9, [x9, _TSTRING@GOTPAGEOFF] Lloh4: ldr x9, [x9] cmp x8, x9 b.eq LBB0_4 ; %bb.3: mov x0, x20 bl _tok2s mov x2, x0 Lloh5: adrp x1, l_.str.1@PAGE Lloh6: add x1, x1, l_.str.1@PAGEOFF mov x0, x20 bl _errort LBB0_4: ldr x20, [x20] Lloh7: adrp x21, _TNEWLINE@GOTPAGE Lloh8: ldr x21, [x21, _TNEWLINE@GOTPAGEOFF] LBB0_5: ; =>This Inner Loop Header: Depth=1 bl _lex ldr x8, [x0, #8] ldr x9, [x21] cmp x8, x9 b.ne LBB0_5 ; %bb.6: bl _current_file str w19, [x0] str x20, [x0, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpAdd Lloh5, Lloh6 .loh AdrpLdrGot Lloh7, Lloh8 .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
anghabench
.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 pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 xorl %eax, %eax callq _make_vector movq %rax, %rbx xorl %eax, %eax callq _lex movq (%rax), %rcx movq _TNEWLINE@GOTPCREL(%rip), %r15 cmpq (%r15), %rcx je LBB0_3 .p2align 4, 0x90 LBB0_1: ## =>This Inner Loop Header: Depth=1 movq %rbx, %rdi movq %rax, %rsi callq _vec_push xorl %eax, %eax callq _lex movq (%rax), %rcx cmpq (%r15), %rcx jne LBB0_1 LBB0_3: movq %rbx, %rdi callq _hashhash_check movq _macros@GOTPCREL(%rip), %rax movl (%rax), %r15d movq %rbx, %rdi callq _make_obj_macro movl %r15d, %edi movq %r14, %rsi movl %eax, %edx addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _map_put ## TAILCALL .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 2 ; -- Begin function read_obj_macro _read_obj_macro: ; @read_obj_macro .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 bl _make_vector mov x20, x0 bl _lex ldr x8, [x0] Lloh0: adrp x21, _TNEWLINE@GOTPAGE Lloh1: ldr x21, [x21, _TNEWLINE@GOTPAGEOFF] ldr x9, [x21] cmp x8, x9 b.eq LBB0_3 ; %bb.1: mov x1, x0 LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x20 bl _vec_push bl _lex mov x1, x0 ldr x8, [x0] ldr x9, [x21] cmp x8, x9 b.ne LBB0_2 LBB0_3: mov x0, x20 bl _hashhash_check Lloh2: adrp x8, _macros@GOTPAGE Lloh3: ldr x8, [x8, _macros@GOTPAGEOFF] Lloh4: ldr w21, [x8] mov x0, x20 bl _make_obj_macro mov x2, x0 mov x0, x21 mov x1, x19 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _map_put .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .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
anghabench
.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 pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $40, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %edx, -48(%rbp) ## 4-byte Spill movq %rsi, -72(%rbp) ## 8-byte Spill movq %rdi, %r13 xorl %eax, %eax callq _make_vector movq %rax, -64(%rbp) ## 8-byte Spill movq _TEOF@GOTPCREL(%rip), %r15 leaq L_.str(%rip), %rbx movq _TNEWLINE@GOTPCREL(%rip), %r12 movl $0, -44(%rbp) ## 4-byte Folded Spill movq %r13, -56(%rbp) ## 8-byte Spill jmp LBB0_1 .p2align 4, 0x90 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq %r14, %rdi callq _read_directive LBB0_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax callq _lex movq %rax, %r14 movq (%rax), %rax cmpq (%r15), %rax je LBB0_2 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 cmpq (%r12), %rax je LBB0_1 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, 8(%r14) je LBB0_7 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movq %r14, %rdi movl $35, %esi callq _is_keyword testq %rax, %rax jne LBB0_6 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -44(%rbp) ## 4-byte Folded Reload jne LBB0_13 ## %bb.8: ## in Loop: Header=BB0_1 Depth=1 movq %r14, %rdi movl $41, %esi callq _is_keyword testq %rax, %rax jne LBB0_9 ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movq %r14, %rdi movl $44, %esi callq _is_keyword cmpl $0, -48(%rbp) ## 4-byte Folded Reload jne LBB0_13 ## %bb.12: ## in Loop: Header=BB0_1 Depth=1 testq %rax, %rax jne LBB0_10 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movq %r14, %rdi movl $40, %esi callq _is_keyword cmpq $1, %rax movl -44(%rbp), %r13d ## 4-byte Reload sbbl $-1, %r13d movq %r14, %rdi movl $41, %esi callq _is_keyword cmpq $1, %rax adcl $-1, %r13d movl %r13d, -44(%rbp) ## 4-byte Spill cmpl $0, 8(%r14) je LBB0_15 ## %bb.14: ## in Loop: Header=BB0_1 Depth=1 movq %r14, %rdi callq _copy_token movq %rax, %r14 movabsq $4294967296, %rax ## imm = 0x100000000 movq %rax, 8(%r14) LBB0_15: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %r13 ## 8-byte Reload movq -64(%rbp), %rdi ## 8-byte Reload movq %r14, %rsi callq _vec_push jmp LBB0_1 .p2align 4, 0x90 LBB0_2: ## in Loop: Header=BB0_1 Depth=1 movq %r13, %rdi movq %rbx, %rsi callq _errort movq (%r14), %rax cmpq (%r12), %rax je LBB0_1 jmp LBB0_4 LBB0_9: movq %r14, %rdi callq _unget_token movq -72(%rbp), %rax ## 8-byte Reload movl $1, (%rax) LBB0_10: movq -64(%rbp), %rax ## 8-byte Reload addq $40, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 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
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function read_one_arg lCPI0_0: .long 0 ; 0x0 .long 1 ; 0x1 .section __TEXT,__text,regular,pure_instructions .p2align 2 _read_one_arg: ; @read_one_arg .cfi_startproc ; %bb.0: stp d9, d8, [sp, #-112]! ; 16-byte Folded Spill .cfi_def_cfa_offset 112 stp x28, x27, [sp, #16] ; 16-byte Folded Spill stp x26, x25, [sp, #32] ; 16-byte Folded Spill stp x24, x23, [sp, #48] ; 16-byte Folded Spill stp x22, x21, [sp, #64] ; 16-byte Folded Spill stp x20, x19, [sp, #80] ; 16-byte Folded Spill 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 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 .cfi_offset w27, -88 .cfi_offset w28, -96 .cfi_offset b8, -104 .cfi_offset b9, -112 mov x21, x2 mov x19, x1 mov x22, x0 bl _make_vector mov x20, x0 mov w27, #0 Lloh0: adrp x25, _TEOF@GOTPAGE Lloh1: ldr x25, [x25, _TEOF@GOTPAGEOFF] Lloh2: adrp x26, _TNEWLINE@GOTPAGE Lloh3: ldr x26, [x26, _TNEWLINE@GOTPAGEOFF] Lloh4: adrp x8, lCPI0_0@PAGE Lloh5: ldr d8, [x8, lCPI0_0@PAGEOFF] Lloh6: adrp x23, l_.str@PAGE Lloh7: add x23, x23, l_.str@PAGEOFF b LBB0_2 LBB0_1: ; in Loop: Header=BB0_2 Depth=1 mov x0, x24 bl _read_directive LBB0_2: ; =>This Inner Loop Header: Depth=1 bl _lex mov x24, x0 ldr x8, [x0] ldr x9, [x25] cmp x8, x9 b.ne LBB0_4 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 mov x0, x22 mov x1, x23 bl _errort ldr x8, [x24] LBB0_4: ; in Loop: Header=BB0_2 Depth=1 ldr x9, [x26] cmp x8, x9 b.eq LBB0_2 ; %bb.5: ; in Loop: Header=BB0_2 Depth=1 ldr w8, [x24, #8] cbz w8, LBB0_7 ; %bb.6: ; in Loop: Header=BB0_2 Depth=1 mov x0, x24 mov w1, #35 bl _is_keyword cbnz x0, LBB0_1 LBB0_7: ; in Loop: Header=BB0_2 Depth=1 cbnz w27, LBB0_11 ; %bb.8: ; in Loop: Header=BB0_2 Depth=1 mov x0, x24 mov w1, #41 bl _is_keyword cbnz x0, LBB0_14 ; %bb.9: ; in Loop: Header=BB0_2 Depth=1 mov x0, x24 mov w1, #44 bl _is_keyword cbnz w21, LBB0_11 ; %bb.10: ; in Loop: Header=BB0_2 Depth=1 cbnz x0, LBB0_15 LBB0_11: ; in Loop: Header=BB0_2 Depth=1 mov x0, x24 mov w1, #40 bl _is_keyword cmp x0, #0 cinc w27, w27, ne mov x0, x24 mov w1, #41 bl _is_keyword cmp x0, #0 cset w8, ne sub w27, w27, w8 ldr w8, [x24, #8] cbz w8, LBB0_13 ; %bb.12: ; in Loop: Header=BB0_2 Depth=1 mov x0, x24 bl _copy_token mov x24, x0 str d8, [x0, #8] LBB0_13: ; in Loop: Header=BB0_2 Depth=1 mov x0, x20 mov x1, x24 bl _vec_push b LBB0_2 LBB0_14: mov x0, x24 bl _unget_token mov w8, #1 str w8, [x19] LBB0_15: mov x0, x20 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload ldp x20, x19, [sp, #80] ; 16-byte Folded Reload ldp x22, x21, [sp, #64] ; 16-byte Folded Reload ldp x24, x23, [sp, #48] ; 16-byte Folded Reload ldp x26, x25, [sp, #32] ; 16-byte Folded Reload ldp x28, x27, [sp, #16] ; 16-byte Folded Reload ldp d9, d8, [sp], #112 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh6, Lloh7 .loh AdrpLdr Lloh4, Lloh5 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .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
anghabench
.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 xorl %eax, %eax callq _read_ident movq %rax, %rdi popq %rbp jmp _parse_pragma_operand ## TAILCALL .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 2 ; -- Begin function read_pragma _read_pragma: ; @read_pragma .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_ident ldp x29, x30, [sp], #16 ; 16-byte Folded Reload b _parse_pragma_operand .cfi_endproc ; -- End function .no_dead_strip _read_pragma .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_pragma.c
anghabench
.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 pushq %rbx pushq %rax .cfi_offset %rbx, -24 .p2align 4, 0x90 LBB0_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax callq _read_expand movq %rax, %rbx cmpq $0, 16(%rax) je LBB0_5 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq %rbx, %rdi movl $35, %esi callq _is_keyword testq %rax, %rax je LBB0_5 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 cmpq $0, 8(%rbx) jne LBB0_5 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movq %rbx, %rdi callq _read_directive jmp LBB0_1 LBB0_5: movq (%rbx), %rax movq _MIN_CPP_TOKEN@GOTPCREL(%rip), %rcx xorl %edi, %edi cmpq (%rcx), %rax setl %dil callq _assert movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _maybe_convert_keyword ## TAILCALL .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 2 _read_token: ; @read_token .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _read_expand mov x19, x0 ldr x8, [x0, #16] cbz x8, LBB0_5 ; %bb.2: ; in Loop: Header=BB0_1 Depth=1 mov x0, x19 mov w1, #35 bl _is_keyword cbz x0, LBB0_5 ; %bb.3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [x19, #8] cbnz x8, LBB0_5 ; %bb.4: ; in Loop: Header=BB0_1 Depth=1 mov x0, x19 bl _read_directive b LBB0_1 LBB0_5: ldr x8, [x19] Lloh0: adrp x9, _MIN_CPP_TOKEN@GOTPAGE Lloh1: ldr x9, [x9, _MIN_CPP_TOKEN@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 cset w0, lt bl _assert mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _maybe_convert_keyword .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _MIN_CPP_TOKEN,8,3 ; @MIN_CPP_TOKEN .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_read_token.c
anghabench
.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 pushq %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _read_ident movq %rax, %rbx xorl %eax, %eax callq _expect_newline movq _macros@GOTPCREL(%rip), %rax movl (%rax), %edi movl (%rbx), %esi addq $8, %rsp popq %rbx popq %rbp jmp _map_remove ## TAILCALL .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 2 ; -- Begin function read_undef _read_undef: ; @read_undef .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 bl _read_ident mov x19, x0 bl _expect_newline Lloh0: adrp x8, _macros@GOTPAGE Lloh1: ldr x8, [x8, _macros@GOTPAGEOFF] Lloh2: ldr w0, [x8] ldr w1, [x19] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _map_remove .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .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
anghabench
.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 pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx xorl %eax, %eax callq _read_error_message leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx addq $8, %rsp popq %rbx popq %rbp jmp _warnt ## TAILCALL .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 2 ; -- Begin function read_warning _read_warning: ; @read_warning .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 bl _read_error_message mov x2, x0 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _warnt .loh AdrpAdd Lloh0, Lloh1 .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
anghabench
.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 pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 xorl %eax, %eax callq _lex movq %rax, %rbx movq (%rax), %rax movq _TNEWLINE@GOTPCREL(%rip), %r14 cmpq (%r14), %rax jne LBB0_3 .p2align 4, 0x90 LBB0_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax callq _lex movq %rax, %rbx movq (%rax), %rax cmpq (%r14), %rax je LBB0_1 LBB0_3: movq %rbx, %rdi callq _unget_token movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq .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 2 ; -- Begin function skip_newlines _skip_newlines: ; @skip_newlines .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 bl _lex mov x19, x0 ldr x8, [x0] Lloh0: adrp x20, _TNEWLINE@GOTPAGE Lloh1: ldr x20, [x20, _TNEWLINE@GOTPAGEOFF] ldr x9, [x20] cmp x8, x9 b.ne LBB0_3 LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _lex ldr x8, [x0] ldr x9, [x20] cmp x8, x9 b.eq LBB0_1 ; %bb.2: mov x19, x0 LBB0_3: mov x0, x19 bl _unget_token mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .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
anghabench
.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 pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r15 movq %rdi, -48(%rbp) ## 8-byte Spill xorl %eax, %eax callq _make_buffer movq %rax, %rbx movq %r15, %rdi callq _vec_len testl %eax, %eax jle LBB0_6 ## %bb.1: leaq L_.str.1(%rip), %r12 xorl %r14d, %r14d jmp LBB0_2 .p2align 4, 0x90 LBB0_5: ## in Loop: Header=BB0_2 Depth=1 movq %r13, %rdi callq _tok2s movq %rbx, %rdi movq %r12, %rsi movl %eax, %edx xorl %eax, %eax callq _buf_printf incl %r14d movq %r15, %rdi callq _vec_len cmpl %eax, %r14d jge LBB0_6 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %r15, %rdi movl %r14d, %esi callq _vec_get movq %rax, %r13 movq %rbx, %rdi callq _buf_len testq %rax, %rax je LBB0_5 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 cmpq $0, 24(%r13) je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 movq %rbx, %rdi leaq L_.str(%rip), %rsi xorl %eax, %eax callq _buf_printf jmp LBB0_5 LBB0_6: movq %rbx, %rdi xorl %esi, %esi callq _buf_write movq -48(%rbp), %rdi ## 8-byte Reload callq _copy_token movq %rax, %r14 movq _TSTRING@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, 20(%r14) movq %rbx, %rdi callq _buf_body movl %eax, 16(%r14) movq %rbx, %rdi callq _buf_len movq %rax, 8(%r14) movq _ENC_NONE@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, (%r14) movq %r14, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 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
.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 x26, x25, [sp, #16] ; 16-byte Folded Spill stp x24, x23, [sp, #32] ; 16-byte Folded Spill stp x22, x21, [sp, #48] ; 16-byte Folded Spill stp x20, x19, [sp, #64] ; 16-byte Folded Spill 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 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 mov x21, x1 mov x20, x0 bl _make_buffer mov x19, x0 mov x0, x21 bl _vec_len cmp w0, #1 b.lt LBB0_6 ; %bb.1: mov w22, #0 Lloh0: adrp x23, l_.str.1@PAGE Lloh1: add x23, x23, l_.str.1@PAGEOFF Lloh2: adrp x24, l_.str@PAGE Lloh3: add x24, x24, l_.str@PAGEOFF b LBB0_3 LBB0_2: ; in Loop: Header=BB0_3 Depth=1 mov x0, x25 bl _tok2s ; kill: def $w0 killed $w0 def $x0 str x0, [sp] mov x0, x19 mov x1, x23 bl _buf_printf add w22, w22, #1 mov x0, x21 bl _vec_len cmp w22, w0 b.ge LBB0_6 LBB0_3: ; =>This Inner Loop Header: Depth=1 mov x0, x21 mov x1, x22 bl _vec_get mov x25, x0 mov x0, x19 bl _buf_len cbz x0, LBB0_2 ; %bb.4: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [x25, #24] cbz x8, LBB0_2 ; %bb.5: ; in Loop: Header=BB0_3 Depth=1 mov x0, x19 mov x1, x24 bl _buf_printf b LBB0_2 LBB0_6: mov x0, x19 mov w1, #0 bl _buf_write mov x0, x20 bl _copy_token mov x20, x0 Lloh4: adrp x8, _TSTRING@GOTPAGE Lloh5: ldr x8, [x8, _TSTRING@GOTPAGEOFF] Lloh6: ldr w8, [x8] str w8, [x0, #20] mov x0, x19 bl _buf_body str w0, [x20, #16] mov x0, x19 bl _buf_len str x0, [x20, #8] Lloh7: adrp x8, _ENC_NONE@GOTPAGE Lloh8: ldr x8, [x8, _ENC_NONE@GOTPAGEOFF] Lloh9: ldr w8, [x8] str w8, [x20] mov x0, x20 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload ldp x20, x19, [sp, #64] ; 16-byte Folded Reload ldp x22, x21, [sp, #48] ; 16-byte Folded Reload ldp x24, x23, [sp, #32] ; 16-byte Folded Reload ldp x26, x25, [sp, #16] ; 16-byte Folded Reload add sp, sp, #96 ret .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9 .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .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
anghabench
.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 pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $88, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdx, -96(%rbp) ## 8-byte Spill movq %rsi, -88(%rbp) ## 8-byte Spill movq %rdi, %r14 xorl %ebx, %ebx xorl %eax, %eax callq _make_vector movq %rax, %r12 movq (%r14), %rdi callq _vec_len testl %eax, %eax jle LBB0_38 ## %bb.1: leal -1(%rax), %ecx movl %ecx, -100(%rbp) ## 4-byte Spill movq %r12, -64(%rbp) ## 8-byte Spill movq %r14, -80(%rbp) ## 8-byte Spill movq %rax, -56(%rbp) ## 8-byte Spill jmp LBB0_2 LBB0_18: ## in Loop: Header=BB0_2 Depth=1 callq _vec_pop .p2align 4, 0x90 LBB0_23: ## in Loop: Header=BB0_2 Depth=1 incl %r13d movl %r13d, %r15d LBB0_37: ## in Loop: Header=BB0_2 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload incl %r15d movl %r15d, %ebx cmpl %eax, %r15d jge LBB0_38 LBB0_2: ## =>This Loop Header: Depth=1 ## Child Loop BB0_22 Depth 2 movq (%r14), %rdi movl %ebx, %esi callq _vec_get movq %rax, %r12 cmpl -100(%rbp), %ebx ## 4-byte Folded Reload movq %rbx, -72(%rbp) ## 8-byte Spill jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movq (%r12), %rax movq _TMACRO_PARAM@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax sete %r15b movq %r12, %rbx jmp LBB0_6 .p2align 4, 0x90 LBB0_4: ## in Loop: Header=BB0_2 Depth=1 movq (%r14), %rdi leal 1(%rbx), %r15d movl %r15d, %esi callq _vec_get movq %rax, %r13 movq _TMACRO_PARAM@GOTPCREL(%rip), %rax movq (%rax), %r14 cmpq %r14, (%r12) sete -41(%rbp) ## 1-byte Folded Spill testq %r13, %r13 movq %r12, %rbx je LBB0_5 ## %bb.14: ## in Loop: Header=BB0_2 Depth=1 movq (%r13), %rax movq %rax, -120(%rbp) ## 8-byte Spill cmpq %r14, %rax sete %al movq %rax, -112(%rbp) ## 8-byte Spill movq %rbx, %rdi movl $35, %esi callq _is_keyword movb $1, %r12b testq %rax, %rax je LBB0_15 ## %bb.16: ## in Loop: Header=BB0_2 Depth=1 cmpq %r14, -120(%rbp) ## 8-byte Folded Reload jne LBB0_15 ## %bb.17: ## in Loop: Header=BB0_2 Depth=1 movl 8(%r13), %esi movq -88(%rbp), %rdi ## 8-byte Reload callq _vec_get movq %rbx, %rdi movq %rax, %rsi callq _stringize movq -64(%rbp), %r12 ## 8-byte Reload movq %r12, %rdi movq %rax, %rsi callq _vec_push movq -80(%rbp), %r14 ## 8-byte Reload jmp LBB0_37 LBB0_5: ## in Loop: Header=BB0_2 Depth=1 movq -80(%rbp), %r14 ## 8-byte Reload movb -41(%rbp), %r15b ## 1-byte Reload LBB0_6: ## in Loop: Header=BB0_2 Depth=1 movq %rbx, %rdi movl $35, %esi callq _is_keyword xorl %eax, %eax movq %rax, -112(%rbp) ## 8-byte Spill xorl %r13d, %r13d xorl %r12d, %r12d LBB0_7: ## in Loop: Header=BB0_2 Depth=1 movq _KHASHHASH@GOTPCREL(%rip), %rax movsbl (%rax), %esi movq %rbx, %rdi callq _is_keyword testq %rax, %rax je LBB0_24 ## %bb.8: ## in Loop: Header=BB0_2 Depth=1 cmpb $0, -112(%rbp) ## 1-byte Folded Reload je LBB0_24 ## %bb.9: ## in Loop: Header=BB0_2 Depth=1 movl 8(%r13), %esi movq -88(%rbp), %rdi ## 8-byte Reload callq _vec_get movq %rax, %r15 cmpq $0, 24(%r13) movq -64(%rbp), %r12 ## 8-byte Reload je LBB0_19 ## %bb.10: ## in Loop: Header=BB0_2 Depth=1 movq %r12, %rdi callq _vec_len testq %rax, %rax jle LBB0_19 ## %bb.11: ## in Loop: Header=BB0_2 Depth=1 movq %r12, %rdi callq _vec_tail movq %rax, %rdi movl $44, %esi callq _is_keyword testq %rax, %rax je LBB0_19 ## %bb.12: ## in Loop: Header=BB0_2 Depth=1 movq %r15, %rdi callq _vec_len testq %rax, %rax movq -72(%rbp), %r13 ## 8-byte Reload movq %r12, %rdi jle LBB0_18 ## %bb.13: ## in Loop: Header=BB0_2 Depth=1 movq %r15, %rsi callq _vec_append jmp LBB0_23 .p2align 4, 0x90 LBB0_24: ## in Loop: Header=BB0_2 Depth=1 movq _KHASHHASH@GOTPCREL(%rip), %rax movsbl (%rax), %esi movq %rbx, %rdi callq _is_keyword testq %rax, %rax sete %al movl %r12d, %ecx xorb $1, %cl orb %al, %cl jne LBB0_26 ## %bb.25: ## in Loop: Header=BB0_2 Depth=1 movq 16(%r13), %rax movq %rax, -96(%rbp) ## 8-byte Spill movq -64(%rbp), %r12 ## 8-byte Reload movq %r12, %rdi movq %r13, %rsi callq _glue_push movq -72(%rbp), %rax ## 8-byte Reload incl %eax jmp LBB0_36 .p2align 4, 0x90 LBB0_19: ## in Loop: Header=BB0_2 Depth=1 movq %r15, %rdi callq _vec_len testq %rax, %rax movq -72(%rbp), %r13 ## 8-byte Reload jle LBB0_23 ## %bb.20: ## in Loop: Header=BB0_2 Depth=1 movq %r15, %rdi callq _vec_head movq %r12, %rdi movq %rax, %rsi callq _glue_push movq %r15, %rdi callq _vec_len cmpq $2, %rax jl LBB0_23 ## %bb.21: ## in Loop: Header=BB0_2 Depth=1 movl $1, %ebx .p2align 4, 0x90 LBB0_22: ## Parent Loop BB0_2 Depth=1 ## => This Inner Loop Header: Depth=2 movq %r15, %rdi movl %ebx, %esi callq _vec_get movq %r12, %rdi movq %rax, %rsi callq _vec_push incq %rbx movq %r15, %rdi callq _vec_len cmpq %rbx, %rax jg LBB0_22 jmp LBB0_23 .p2align 4, 0x90 LBB0_26: ## in Loop: Header=BB0_2 Depth=1 andb %r15b, %r12b cmpb $1, %r12b jne LBB0_32 ## %bb.27: ## in Loop: Header=BB0_2 Depth=1 movq _KHASHHASH@GOTPCREL(%rip), %rax movsbl (%rax), %esi movq %r13, %rdi callq _is_keyword testq %rax, %rax je LBB0_32 ## %bb.28: ## in Loop: Header=BB0_2 Depth=1 movq 16(%r13), %rax movq %rax, -96(%rbp) ## 8-byte Spill movl 8(%rbx), %esi movq -88(%rbp), %rdi ## 8-byte Reload callq _vec_get movq %rax, %rbx movq %rax, %rdi callq _vec_len testq %rax, %rax je LBB0_29 ## %bb.30: ## in Loop: Header=BB0_2 Depth=1 movq -64(%rbp), %r12 ## 8-byte Reload movq %r12, %rdi movq %rbx, %rsi callq _vec_append jmp LBB0_35 LBB0_15: ## in Loop: Header=BB0_2 Depth=1 movq -80(%rbp), %r14 ## 8-byte Reload movb -41(%rbp), %r15b ## 1-byte Reload jmp LBB0_7 LBB0_32: ## in Loop: Header=BB0_2 Depth=1 testb %r15b, %r15b je LBB0_34 ## %bb.33: ## in Loop: Header=BB0_2 Depth=1 movl 8(%rbx), %esi movq -88(%rbp), %rdi ## 8-byte Reload callq _vec_get movq %rax, %rdi movq %rbx, %rsi callq _expand_all movq -64(%rbp), %r12 ## 8-byte Reload movq %r12, %rdi movq %rax, %rsi callq _vec_append jmp LBB0_35 LBB0_34: ## in Loop: Header=BB0_2 Depth=1 movq -64(%rbp), %r12 ## 8-byte Reload movq %r12, %rdi movq %rbx, %rsi callq _vec_push LBB0_35: ## in Loop: Header=BB0_2 Depth=1 movq -72(%rbp), %rax ## 8-byte Reload LBB0_36: ## in Loop: Header=BB0_2 Depth=1 movl %eax, %r15d jmp LBB0_37 LBB0_29: ## in Loop: Header=BB0_2 Depth=1 movq -72(%rbp), %rax ## 8-byte Reload incl %eax movl %eax, %r15d movq -64(%rbp), %r12 ## 8-byte Reload jmp LBB0_37 LBB0_38: movq %r12, %rdi movq -96(%rbp), %rsi ## 8-byte Reload addq $88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _add_hide_set ## TAILCALL .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 2 ; -- Begin function subst _subst: ; @subst .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x28, x27, [sp, #48] ; 16-byte Folded Spill stp x26, x25, [sp, #64] ; 16-byte Folded Spill stp x24, x23, [sp, #80] ; 16-byte Folded Spill stp x22, x21, [sp, #96] ; 16-byte Folded Spill stp x20, x19, [sp, #112] ; 16-byte Folded Spill 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 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 .cfi_offset w25, -72 .cfi_offset w26, -80 .cfi_offset w27, -88 .cfi_offset w28, -96 str x2, [sp, #16] ; 8-byte Folded Spill str x1, [sp, #32] ; 8-byte Folded Spill mov x22, x0 bl _make_vector mov x20, x0 ldr x0, [x22] bl _vec_len str x0, [sp, #40] ; 8-byte Folded Spill subs w28, w0, #1 b.lt LBB0_32 ; %bb.1: mov w24, #0 str x22, [sp, #8] ; 8-byte Folded Spill str w28, [sp, #28] ; 4-byte Folded Spill b LBB0_5 LBB0_2: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [x26, #16] str x8, [sp, #16] ; 8-byte Folded Spill mov x0, x20 mov x1, x26 bl _glue_push LBB0_3: ; in Loop: Header=BB0_5 Depth=1 add w24, w24, #1 LBB0_4: ; in Loop: Header=BB0_5 Depth=1 add w24, w24, #1 ldr x8, [sp, #40] ; 8-byte Folded Reload cmp w24, w8 b.ge LBB0_32 LBB0_5: ; =>This Loop Header: Depth=1 ; Child Loop BB0_26 Depth 2 ldr x0, [x22] mov x1, x24 bl _vec_get mov x25, x0 cmp w24, w28 b.ne LBB0_7 ; %bb.6: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [x25] Lloh0: adrp x9, _TMACRO_PARAM@GOTPAGE Lloh1: ldr x9, [x9, _TMACRO_PARAM@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 cset w19, eq b LBB0_11 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr x0, [x22] add w27, w24, #1 mov x1, x27 bl _vec_get ldr x8, [x25] Lloh3: adrp x9, _TMACRO_PARAM@GOTPAGE Lloh4: ldr x9, [x9, _TMACRO_PARAM@GOTPAGEOFF] Lloh5: ldr x28, [x9] cmp x8, x28 cset w19, eq cbz x0, LBB0_10 ; %bb.8: ; in Loop: Header=BB0_5 Depth=1 mov x26, x0 ldr x22, [sp, #32] ; 8-byte Folded Reload ldr x23, [x0] cmp x23, x28 cset w21, eq mov x0, x25 mov w1, #35 bl _is_keyword cmp x0, #0 ccmp x23, x28, #0, ne b.eq LBB0_27 ; %bb.9: ; in Loop: Header=BB0_5 Depth=1 mov w27, #1 ldr x22, [sp, #8] ; 8-byte Folded Reload ldr w28, [sp, #28] ; 4-byte Folded Reload b LBB0_12 LBB0_10: ; in Loop: Header=BB0_5 Depth=1 ldr w28, [sp, #28] ; 4-byte Folded Reload LBB0_11: ; in Loop: Header=BB0_5 Depth=1 mov x0, x25 mov w1, #35 bl _is_keyword mov w21, #0 mov x26, #0 mov w27, #0 LBB0_12: ; in Loop: Header=BB0_5 Depth=1 Lloh6: adrp x23, _KHASHHASH@GOTPAGE Lloh7: ldr x23, [x23, _KHASHHASH@GOTPAGEOFF] ldrsb w1, [x23] mov x0, x25 bl _is_keyword cmp x0, #0 ccmp w21, #0, #4, ne b.ne LBB0_18 ; %bb.13: ; in Loop: Header=BB0_5 Depth=1 ldrsb w1, [x23] mov x0, x25 bl _is_keyword cmp x0, #0 cset w8, eq eor w9, w27, #0x1 orr w8, w9, w8 tbz w8, #0, LBB0_2 ; %bb.14: ; in Loop: Header=BB0_5 Depth=1 and w8, w19, w27 cmp w8, #1 b.ne LBB0_28 ; %bb.15: ; in Loop: Header=BB0_5 Depth=1 ldrsb w1, [x23] mov x0, x26 bl _is_keyword cbz x0, LBB0_28 ; %bb.16: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [x26, #16] str x8, [sp, #16] ; 8-byte Folded Spill ldr w1, [x25, #8] ldr x0, [sp, #32] ; 8-byte Folded Reload bl _vec_get mov x25, x0 bl _vec_len cbz x0, LBB0_3 ; %bb.17: ; in Loop: Header=BB0_5 Depth=1 mov x0, x20 mov x1, x25 bl _vec_append b LBB0_4 LBB0_18: ; in Loop: Header=BB0_5 Depth=1 ldr w1, [x26, #8] ldr x0, [sp, #32] ; 8-byte Folded Reload bl _vec_get mov x25, x0 ldr x8, [x26, #24] cbz x8, LBB0_23 ; %bb.19: ; in Loop: Header=BB0_5 Depth=1 mov x0, x20 bl _vec_len cmp x0, #1 b.lt LBB0_23 ; %bb.20: ; in Loop: Header=BB0_5 Depth=1 mov x0, x20 bl _vec_tail mov w1, #44 bl _is_keyword cbz x0, LBB0_23 ; %bb.21: ; in Loop: Header=BB0_5 Depth=1 mov x0, x25 bl _vec_len cmp x0, #1 b.lt LBB0_31 ; %bb.22: ; in Loop: Header=BB0_5 Depth=1 mov x0, x20 mov x1, x25 bl _vec_append b LBB0_3 LBB0_23: ; in Loop: Header=BB0_5 Depth=1 mov x0, x25 bl _vec_len cmp x0, #1 b.lt LBB0_3 ; %bb.24: ; in Loop: Header=BB0_5 Depth=1 mov x0, x25 bl _vec_head mov x1, x0 mov x0, x20 bl _glue_push mov x0, x25 bl _vec_len cmp x0, #2 b.lt LBB0_3 ; %bb.25: ; in Loop: Header=BB0_5 Depth=1 mov w26, #1 LBB0_26: ; Parent Loop BB0_5 Depth=1 ; => This Inner Loop Header: Depth=2 mov x0, x25 mov x1, x26 bl _vec_get mov x1, x0 mov x0, x20 bl _vec_push add x26, x26, #1 mov x0, x25 bl _vec_len cmp x0, x26 b.gt LBB0_26 b LBB0_3 LBB0_27: ; in Loop: Header=BB0_5 Depth=1 ldr w1, [x26, #8] mov x0, x22 bl _vec_get mov x1, x0 mov x0, x25 bl _stringize mov x1, x0 mov x0, x20 bl _vec_push mov x24, x27 ldr x22, [sp, #8] ; 8-byte Folded Reload ldr w28, [sp, #28] ; 4-byte Folded Reload b LBB0_4 LBB0_28: ; in Loop: Header=BB0_5 Depth=1 cbz w19, LBB0_30 ; %bb.29: ; in Loop: Header=BB0_5 Depth=1 ldr w1, [x25, #8] ldr x0, [sp, #32] ; 8-byte Folded Reload bl _vec_get mov x1, x25 bl _expand_all mov x1, x0 mov x0, x20 bl _vec_append b LBB0_4 LBB0_30: ; in Loop: Header=BB0_5 Depth=1 mov x0, x20 mov x1, x25 bl _vec_push b LBB0_4 LBB0_31: ; in Loop: Header=BB0_5 Depth=1 mov x0, x20 bl _vec_pop b LBB0_3 LBB0_32: mov x0, x20 ldr x1, [sp, #16] ; 8-byte Folded Reload ldp x29, x30, [sp, #128] ; 16-byte Folded Reload ldp x20, x19, [sp, #112] ; 16-byte Folded Reload ldp x22, x21, [sp, #96] ; 16-byte Folded Reload ldp x24, x23, [sp, #80] ; 16-byte Folded Reload ldp x26, x25, [sp, #64] ; 16-byte Folded Reload ldp x28, x27, [sp, #48] ; 16-byte Folded Reload add sp, sp, #144 b _add_hide_set .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGot Lloh6, Lloh7 .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
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function try_include _try_include: ## @try_include .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %edx, %r15d movq %rsi, %rdx movq %rdi, %rsi leaq L_.str(%rip), %rdi callq _format movl %eax, %edi callq _fullpath movq %rax, %rbx movq _once@GOTPCREL(%rip), %r13 movl (%r13), %edi movq %rax, %rsi callq _map_get movl $1, %r14d testq %rax, %rax jne LBB0_7 ## %bb.1: movq %rbx, %rdi callq _guarded testq %rax, %rax jne LBB0_7 ## %bb.2: leaq L_.str.1(%rip), %rsi movq %rbx, %rdi callq _fopen testq %rax, %rax je LBB0_3 ## %bb.4: movq %rax, %r12 testl %r15d, %r15d je LBB0_6 ## %bb.5: movl (%r13), %edi movl $1, %edx movq %rbx, %rsi callq _map_put LBB0_6: movq %r12, %rdi movq %rbx, %rsi callq _make_file movl %eax, %edi callq _stream_push jmp LBB0_7 LBB0_3: xorl %r14d, %r14d LBB0_7: movl %r14d, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s/%s" .comm _once,4,2 ## @once L_.str.1: ## @.str.1 .asciz "r" .no_dead_strip _try_include .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function try_include _try_include: ; @try_include .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x20, x2 mov x2, x1 mov x1, x0 Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF bl _format bl _fullpath mov x19, x0 Lloh2: adrp x22, _once@GOTPAGE Lloh3: ldr x22, [x22, _once@GOTPAGEOFF] ldr w0, [x22] mov x1, x19 bl _map_get cbnz x0, LBB0_6 ; %bb.1: mov x0, x19 bl _guarded cbnz x0, LBB0_6 ; %bb.2: Lloh4: adrp x1, l_.str.1@PAGE Lloh5: add x1, x1, l_.str.1@PAGEOFF mov x0, x19 bl _fopen cbz x0, LBB0_7 ; %bb.3: mov x21, x0 cbz w20, LBB0_5 ; %bb.4: ldr w0, [x22] mov x1, x19 mov w2, #1 bl _map_put LBB0_5: mov x0, x21 mov x1, x19 bl _make_file bl _stream_push LBB0_6: mov w0, #1 LBB0_7: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh4, Lloh5 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s/%s" .comm _once,4,2 ; @once l_.str.1: ; @.str.1 .asciz "r" .no_dead_strip _try_include .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_try_include.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function unget_all _unget_all: ## @unget_all .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 callq _vec_len testl %eax, %eax jle LBB0_3 ## %bb.1: movl %eax, %ebx incl %ebx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 leal -2(%rbx), %esi movq %r14, %rdi callq _vec_get movl %eax, %edi callq _unget_token decl %ebx cmpl $1, %ebx ja LBB0_2 LBB0_3: popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _unget_all .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function unget_all _unget_all: ; @unget_all .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 bl _vec_len cmp w0, #1 b.lt LBB0_3 ; %bb.1: add w20, w0, #1 LBB0_2: ; =>This Inner Loop Header: Depth=1 sub w1, w20, #2 mov x0, x19 bl _vec_get bl _unget_token sub w20, w20, #1 cmp w20, #1 b.hi LBB0_2 LBB0_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _unget_all .subsections_via_symbols
AnghaBench/8cc/extr_cpp.c_unget_all.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function a2s_declinit _a2s_declinit: ## @a2s_declinit .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r15 movq %rdi, %r14 movq %rsi, %rdi callq _vec_len testl %eax, %eax jle LBB0_4 ## %bb.1: movq %r15, %rdi xorl %esi, %esi callq _vec_get movq %rax, %rdi callq _node2s leaq L_.str.1(%rip), %rsi movq %r14, %rdi movl %eax, %edx xorl %eax, %eax callq _buf_printf movq %r15, %rdi callq _vec_len cmpl $2, %eax jl LBB0_4 ## %bb.2: movl $1, %ebx leaq L_.str(%rip), %r12 leaq L_.str.1(%rip), %r13 .p2align 4, 0x90 LBB0_3: ## =>This Inner Loop Header: Depth=1 movq %r14, %rdi movq %r12, %rsi xorl %eax, %eax callq _buf_printf movq %r15, %rdi movl %ebx, %esi callq _vec_get movq %rax, %rdi callq _node2s movq %r14, %rdi movq %r13, %rsi movl %eax, %edx xorl %eax, %eax callq _buf_printf incl %ebx movq %r15, %rdi callq _vec_len cmpl %eax, %ebx jl LBB0_3 LBB0_4: addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz " " L_.str.1: ## @.str.1 .asciz "%s" .no_dead_strip _a2s_declinit .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function a2s_declinit _a2s_declinit: ; @a2s_declinit .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x24, x23, [sp, #16] ; 16-byte Folded Spill stp x22, x21, [sp, #32] ; 16-byte Folded Spill stp x20, x19, [sp, #48] ; 16-byte Folded Spill stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x19, x1 mov x20, x0 mov x0, x1 bl _vec_len cmp w0, #1 b.lt LBB0_4 ; %bb.1: mov x0, x19 mov w1, #0 bl _vec_get bl _node2s ; kill: def $w0 killed $w0 def $x0 str x0, [sp] Lloh0: adrp x1, l_.str.1@PAGE Lloh1: add x1, x1, l_.str.1@PAGEOFF mov x0, x20 bl _buf_printf mov x0, x19 bl _vec_len cmp w0, #2 b.lt LBB0_4 ; %bb.2: mov w21, #1 Lloh2: adrp x22, l_.str@PAGE Lloh3: add x22, x22, l_.str@PAGEOFF Lloh4: adrp x23, l_.str.1@PAGE Lloh5: add x23, x23, l_.str.1@PAGEOFF LBB0_3: ; =>This Inner Loop Header: Depth=1 mov x0, x20 mov x1, x22 bl _buf_printf mov x0, x19 mov x1, x21 bl _vec_get bl _node2s ; kill: def $w0 killed $w0 def $x0 str x0, [sp] mov x0, x20 mov x1, x23 bl _buf_printf add w21, w21, #1 mov x0, x19 bl _vec_len cmp w21, w0 b.lt LBB0_3 LBB0_4: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload ldp x22, x21, [sp, #32] ; 16-byte Folded Reload ldp x24, x23, [sp, #16] ; 16-byte Folded Reload add sp, sp, #80 ret .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh2, Lloh3 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz " " l_.str.1: ; @.str.1 .asciz "%s" .no_dead_strip _a2s_declinit .subsections_via_symbols
AnghaBench/8cc/extr_debug.c_a2s_declinit.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function binop_to_string _binop_to_string: ## @binop_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 pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movl 4(%rdx), %edi callq _node2s movl %eax, %r12d movl (%rbx), %edi callq _node2s leaq L_.str(%rip), %rsi movq %r15, %rdi movq %r14, %rdx movl %r12d, %ecx movl %eax, %r8d popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _buf_printf ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "(%s %s %s)" .no_dead_strip _binop_to_string .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function binop_to_string _binop_to_string: ; @binop_to_string .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x2 mov x20, x1 mov x21, x0 ldr w0, [x2, #4] bl _node2s mov x22, x0 ldr w0, [x19] bl _node2s Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x4, x0 mov x0, x21 mov x2, x20 mov x3, x22 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload b _buf_printf .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "(%s %s %s)" .no_dead_strip _binop_to_string .subsections_via_symbols
AnghaBench/8cc/extr_debug.c_binop_to_string.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function decorate_int _decorate_int: ## @decorate_int .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rsi, %rax movq %rdi, %rdx cmpq $0, 16(%rsi) leaq L_.str.1(%rip), %rcx leaq L_.str(%rip), %rsi cmoveq %rcx, %rsi movq (%rax), %r8 testq %r8, %r8 jle LBB0_2 ## %bb.1: movq 8(%rax), %rcx addq %rcx, %r8 leaq L_.str.2(%rip), %rdi xorl %eax, %eax popq %rbp jmp _format ## TAILCALL LBB0_2: leaq L_.str.3(%rip), %rdi xorl %eax, %eax popq %rbp jmp _format ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "u" L_.str.1: ## @.str.1 .space 1 L_.str.2: ## @.str.2 .asciz "%s%s:%d:%d" L_.str.3: ## @.str.3 .asciz "%s%s" .no_dead_strip _decorate_int .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function decorate_int _decorate_int: ; @decorate_int .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 x8, x1 mov x2, x0 ldr x9, [x1, #16] Lloh0: adrp x10, l_.str@PAGE Lloh1: add x10, x10, l_.str@PAGEOFF Lloh2: adrp x11, l_.str.1@PAGE Lloh3: add x11, x11, l_.str.1@PAGEOFF cmp x9, #0 csel x1, x11, x10, eq ldr x9, [x8] cmp x9, #1 b.lt LBB0_2 ; %bb.1: ldr x8, [x8, #8] add x9, x8, x9 stp x8, x9, [sp] Lloh4: adrp x0, l_.str.2@PAGE Lloh5: add x0, x0, l_.str.2@PAGEOFF bl _format ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret LBB0_2: Lloh6: adrp x0, l_.str.3@PAGE Lloh7: add x0, x0, l_.str.3@PAGEOFF ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 b _format .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh6, Lloh7 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "u" l_.str.1: ; @.str.1 .space 1 l_.str.2: ; @.str.2 .asciz "%s%s:%d:%d" l_.str.3: ; @.str.3 .asciz "%s%s" .no_dead_strip _decorate_int .subsections_via_symbols
AnghaBench/8cc/extr_debug.c_decorate_int.c
anghabench
.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 pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 testq %rsi, %rsi je LBB0_4 ## %bb.1: movq %rsi, %r15 leaq LJTI0_0(%rip), %rcx LBB0_2: ## =>This Loop Header: Depth=1 ## Child Loop BB0_41 Depth 2 movl (%r15), %eax addl $-33, %eax cmpl $146, %eax ja LBB0_89 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_38: ## in Loop: Header=BB0_2 Depth=1 movq 48(%r15), %rdi callq _ty2s movq 8(%r15), %rcx leaq L_.str.16(%rip), %rsi movq %r14, %rdi movq %rax, %rdx xorl %eax, %eax callq _buf_printf movl 160(%r15), %edi callq _vec_len testl %eax, %eax jle LBB0_42 ## %bb.39: ## in Loop: Header=BB0_2 Depth=1 movl 160(%r15), %edi xorl %esi, %esi callq _vec_get movq %rax, %rbx movq 48(%rax), %rdi callq _ty2s movq %rax, %r12 movq %rbx, %rdi callq _node2s leaq L_.str.20(%rip), %rsi movq %r14, %rdi movq %r12, %rdx movq %rax, %rcx xorl %eax, %eax callq _buf_printf movl 160(%r15), %edi callq _vec_len cmpl $2, %eax jl LBB0_42 ## %bb.40: ## in Loop: Header=BB0_2 Depth=1 movl $1, %ebx .p2align 4, 0x90 LBB0_41: ## Parent Loop BB0_2 Depth=1 ## => This Inner Loop Header: Depth=2 leaq L_.str.17(%rip), %rsi movq %r14, %rdi xorl %eax, %eax callq _buf_printf movl 160(%r15), %edi movl %ebx, %esi callq _vec_get movq %rax, %r12 movq 48(%rax), %rdi callq _ty2s movq %rax, %r13 movq %r12, %rdi callq _node2s leaq L_.str.20(%rip), %rsi movq %r14, %rdi movq %r13, %rdx movq %rax, %rcx xorl %eax, %eax callq _buf_printf incl %ebx movl 160(%r15), %edi callq _vec_len cmpl %eax, %ebx jl LBB0_41 LBB0_42: ## in Loop: Header=BB0_2 Depth=1 leaq L_.str.14(%rip), %rsi movq %r14, %rdi xorl %eax, %eax callq _buf_printf movq 152(%r15), %r15 testq %r15, %r15 leaq LJTI0_0(%rip), %rcx jne LBB0_2 LBB0_4: leaq L_.str(%rip), %rsi LBB0_5: movq %r14, %rdi xorl %eax, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _buf_printf ## TAILCALL LBB0_64: leaq L_.str.37(%rip), %rsi jmp LBB0_63 LBB0_83: leaq L_.str.56(%rip), %rsi jmp LBB0_63 LBB0_28: movq 48(%r15), %rdi callq _ty2s movq %rax, %rbx cmpl $173, (%r15) jne LBB0_30 ## %bb.29: movq 8(%r15), %rcx jmp LBB0_31 LBB0_6: movq 48(%r15), %rcx movl $-153, %eax addl (%rcx), %eax cmpl $7, %eax ja LBB0_22 ## %bb.7: leaq LJTI0_1(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_20: movl 180(%r15), %edx leaq L_.str.8(%rip), %rsi jmp LBB0_15 LBB0_61: leaq L_.str.35(%rip), %rsi jmp LBB0_60 LBB0_84: leaq L_.str.57(%rip), %rsi jmp LBB0_60 LBB0_89: movq 24(%r15), %rdi callq _node2s movq %rax, %r12 movq 16(%r15), %rdi callq _node2s movq %rax, %rbx movl (%r15), %edx movq _OP_EQ@GOTPCREL(%rip), %rax cmpl (%rax), %edx jne LBB0_91 ## %bb.90: leaq L_.str.62(%rip), %rsi movq %r14, %rdi xorl %eax, %eax callq _buf_printf jmp LBB0_92 LBB0_85: leaq L_.str.58(%rip), %rsi jmp LBB0_63 LBB0_86: leaq L_.str.59(%rip), %rsi jmp LBB0_63 LBB0_62: leaq L_.str.36(%rip), %rsi jmp LBB0_63 LBB0_68: leaq L_.str.41(%rip), %rsi jmp LBB0_60 LBB0_69: leaq L_.str.42(%rip), %rsi jmp LBB0_60 LBB0_70: leaq L_.str.43(%rip), %rsi jmp LBB0_60 LBB0_71: leaq L_.str.44(%rip), %rsi jmp LBB0_60 LBB0_67: leaq L_.str.40(%rip), %rsi jmp LBB0_63 LBB0_73: leaq L_.str.46(%rip), %rsi jmp LBB0_63 LBB0_72: leaq L_.str.45(%rip), %rsi jmp LBB0_63 LBB0_66: leaq L_.str.39(%rip), %rsi jmp LBB0_63 LBB0_88: movl 32(%r15), %edx leaq L_.str.61(%rip), %rsi jmp LBB0_15 LBB0_65: leaq L_.str.38(%rip), %rsi jmp LBB0_63 LBB0_87: movq 40(%r15), %rax movq 48(%rax), %rdi callq _ty2s movq %rax, %r12 movq 48(%r15), %rdi callq _ty2s movq %rax, %rbx movq 40(%r15), %rdi callq _node2s leaq L_.str.60(%rip), %rsi jmp LBB0_51 LBB0_81: leaq L_.str.54(%rip), %rsi jmp LBB0_63 LBB0_75: leaq L_.str.48(%rip), %rsi jmp LBB0_63 LBB0_82: leaq L_.str.55(%rip), %rsi jmp LBB0_63 LBB0_80: leaq L_.str.53(%rip), %rsi jmp LBB0_63 LBB0_76: leaq L_.str.49(%rip), %rsi jmp LBB0_63 LBB0_78: leaq L_.str.51(%rip), %rsi jmp LBB0_63 LBB0_77: leaq L_.str.50(%rip), %rsi jmp LBB0_63 LBB0_79: leaq L_.str.52(%rip), %rsi jmp LBB0_63 LBB0_74: leaq L_.str.47(%rip), %rsi LBB0_63: movq %r14, %rdi movq %r15, %rdx addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _binop_to_string ## TAILCALL LBB0_50: movq 104(%r15), %rdi callq _node2s movq %rax, %r12 movq 96(%r15), %rdi callq _node2s movq %rax, %rbx movq 88(%r15), %rdi callq _node2s leaq L_.str.28(%rip), %rsi LBB0_51: movq %r14, %rdi movq %r12, %rdx movq %rbx, %rcx movq %rax, %r8 xorl %eax, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _buf_printf ## TAILCALL LBB0_58: movq 64(%r15), %rsi movq %r14, %rdi callq _do_node2s leaq L_.str.33(%rip), %rsi movq %r14, %rdi xorl %eax, %eax callq _buf_printf movslq 56(%r15), %rsi jmp LBB0_5 LBB0_52: movq 80(%r15), %rdi callq _node2s leaq L_.str.29(%rip), %rsi movq %r14, %rdi movq %rax, %rdx jmp LBB0_37 LBB0_24: movl 168(%r15), %edx leaq L_.str.12(%rip), %rsi movq %r14, %rdi xorl %eax, %eax callq _buf_printf cmpl $0, 172(%r15) je LBB0_57 ## %bb.25: leaq L_.str.13(%rip), %rsi movq %r14, %rdi xorl %eax, %eax callq _buf_printf movl 172(%r15), %esi jmp LBB0_26 LBB0_23: movl 32(%r15), %edx leaq L_.str.11(%rip), %rsi jmp LBB0_15 LBB0_46: movq 128(%r15), %rdi callq _node2s movq %rax, %rbx movl 120(%r15), %r12d movq 112(%r15), %rdi callq _ty2s leaq L_.str.24(%rip), %rsi movq %r14, %rdi movq %rbx, %rdx movl %r12d, %ecx movq %rax, %r8 xorl %eax, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _buf_printf ## TAILCALL LBB0_48: movq 104(%r15), %rdi callq _node2s movq %rax, %rbx movq 96(%r15), %rdi callq _node2s leaq L_.str.26(%rip), %rsi movq %r14, %rdi movq %rbx, %rdx movq %rax, %rcx xorl %eax, %eax callq _buf_printf movq 88(%r15), %rdi testq %rdi, %rdi je LBB0_35 ## %bb.49: callq _node2s leaq L_.str.27(%rip), %rsi movq %r14, %rdi movq %rax, %rdx xorl %eax, %eax callq _buf_printf leaq L_.str.14(%rip), %rsi jmp LBB0_5 LBB0_27: movl 168(%r15), %edx leaq L_.str.15(%rip), %rsi jmp LBB0_15 LBB0_43: movl 32(%r15), %edx leaq L_.str.21(%rip), %rsi LBB0_15: movq %r14, %rdi LBB0_16: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _buf_printf ## TAILCALL LBB0_36: movq 8(%r15), %rdx leaq L_.str.19(%rip), %rsi movq %r14, %rdi LBB0_37: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _buf_printf ## TAILCALL LBB0_44: movq 144(%r15), %rax movq 8(%rax), %rdi callq _ty2s movq 144(%r15), %rcx movq (%rcx), %rcx leaq L_.str.22(%rip), %rsi movq %r14, %rdi movq %rax, %rdx xorl %eax, %eax callq _buf_printf cmpl $0, 136(%r15) je LBB0_35 ## %bb.45: leaq L_.str.23(%rip), %rsi movq %r14, %rdi xorl %eax, %eax callq _buf_printf movl 136(%r15), %esi LBB0_26: movq %r14, %rdi callq _a2s_declinit leaq L_.str.14(%rip), %rsi jmp LBB0_5 LBB0_47: movq 40(%r15), %rdi callq _node2s movq %rax, %rbx movq 48(%r15), %rdi callq _ty2s leaq L_.str.25(%rip), %rsi movq %r14, %rdi movq %rbx, %rdx movq %rax, %rcx jmp LBB0_93 LBB0_53: leaq L_.str.30(%rip), %rsi movq %r14, %rdi xorl %eax, %eax callq _buf_printf movl 72(%r15), %edi callq _vec_len testl %eax, %eax jle LBB0_56 ## %bb.54: leaq L_.str.31(%rip), %r12 xorl %ebx, %ebx .p2align 4, 0x90 LBB0_55: ## =>This Inner Loop Header: Depth=1 movl 72(%r15), %edi movl %ebx, %esi callq _vec_get movq %r14, %rdi movq %rax, %rsi callq _do_node2s movq %r14, %rdi movq %r12, %rsi xorl %eax, %eax callq _buf_printf incl %ebx movl 72(%r15), %edi callq _vec_len cmpl %eax, %ebx jl LBB0_55 LBB0_56: leaq L_.str.32(%rip), %rsi jmp LBB0_5 LBB0_59: leaq L_.str.34(%rip), %rsi LBB0_60: movq %r14, %rdi movq %r15, %rdx addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _uop_to_string ## TAILCALL LBB0_30: movq %r15, %rdi callq _node2s movq %rax, %rcx LBB0_31: leaq L_.str.16(%rip), %rsi movq %r14, %rdi movq %rbx, %rdx xorl %eax, %eax callq _buf_printf movl 164(%r15), %edi callq _vec_len testl %eax, %eax jle LBB0_35 ## %bb.32: movl 164(%r15), %edi xorl %esi, %esi callq _vec_get movq %rax, %rdi callq _node2s leaq L_.str.18(%rip), %rsi movq %r14, %rdi movq %rax, %rdx xorl %eax, %eax callq _buf_printf movl 164(%r15), %edi callq _vec_len cmpl $2, %eax jl LBB0_35 ## %bb.33: movl $1, %ebx leaq L_.str.17(%rip), %r12 leaq L_.str.18(%rip), %r13 .p2align 4, 0x90 LBB0_34: ## =>This Inner Loop Header: Depth=1 movq %r14, %rdi movq %r12, %rsi xorl %eax, %eax callq _buf_printf movl 164(%r15), %edi movl %ebx, %esi callq _vec_get movq %rax, %rdi callq _node2s movq %r14, %rdi movq %r13, %rsi movq %rax, %rdx xorl %eax, %eax callq _buf_printf incl %ebx movl 164(%r15), %edi callq _vec_len cmpl %eax, %ebx jl LBB0_34 LBB0_35: leaq L_.str.14(%rip), %rsi jmp LBB0_5 LBB0_91: leaq L_.str.63(%rip), %rsi movq %r14, %rdi xorl %eax, %eax callq _buf_printf LBB0_92: leaq L_.str.64(%rip), %rsi movq %r14, %rdi movq %r12, %rdx movq %rbx, %rcx LBB0_93: xorl %eax, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _buf_printf ## TAILCALL LBB0_57: addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_22: leaq L_.str.10(%rip), %rdi addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _error ## TAILCALL LBB0_18: movsbl 4(%r15), %edx leaq L_.str.6(%rip), %rsi jmp LBB0_15 LBB0_19: movsbl 4(%r15), %edx leaq L_.str.7(%rip), %rsi jmp LBB0_15 LBB0_17: movsbl 4(%r15), %edx leaq L_.str.5(%rip), %rsi jmp LBB0_15 LBB0_8: movsbl 4(%r15), %edx testl %edx, %edx je LBB0_13 ## %bb.9: cmpb $92, %dl je LBB0_12 ## %bb.10: cmpb $10, %dl jne LBB0_14 ## %bb.11: leaq L_.str.1(%rip), %rsi jmp LBB0_5 LBB0_21: movl 176(%r15), %edi callq _quote_cstring leaq L_.str.9(%rip), %rsi movq %r14, %rdi movl %eax, %edx jmp LBB0_16 LBB0_13: leaq L_.str.3(%rip), %rsi jmp LBB0_5 LBB0_12: leaq L_.str.2(%rip), %rsi jmp LBB0_5 LBB0_14: leaq L_.str.4(%rip), %rsi jmp LBB0_15 .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_62, LBB0_62-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_50, LBB0_50-LJTI0_0 .set L0_0_set_58, LBB0_58-LJTI0_0 .set L0_0_set_52, LBB0_52-LJTI0_0 .set L0_0_set_24, LBB0_24-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 .set L0_0_set_23, LBB0_23-LJTI0_0 .set L0_0_set_46, LBB0_46-LJTI0_0 .set L0_0_set_48, LBB0_48-LJTI0_0 .set L0_0_set_27, LBB0_27-LJTI0_0 .set L0_0_set_43, LBB0_43-LJTI0_0 .set L0_0_set_28, LBB0_28-LJTI0_0 .set L0_0_set_36, LBB0_36-LJTI0_0 .set L0_0_set_38, LBB0_38-LJTI0_0 .set L0_0_set_61, LBB0_61-LJTI0_0 .set L0_0_set_44, LBB0_44-LJTI0_0 .set L0_0_set_47, LBB0_47-LJTI0_0 .set L0_0_set_53, LBB0_53-LJTI0_0 .set L0_0_set_59, LBB0_59-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_62 .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_50 .long L0_0_set_58 .long L0_0_set_52 .long L0_0_set_24 .long L0_0_set_6 .long L0_0_set_23 .long L0_0_set_46 .long L0_0_set_48 .long L0_0_set_27 .long L0_0_set_43 .long L0_0_set_28 .long L0_0_set_36 .long L0_0_set_28 .long L0_0_set_38 .long L0_0_set_61 .long L0_0_set_44 .long L0_0_set_47 .long L0_0_set_53 .long L0_0_set_59 .set L0_1_set_18, LBB0_18-LJTI0_1 .set L0_1_set_19, LBB0_19-LJTI0_1 .set L0_1_set_20, LBB0_20-LJTI0_1 .set L0_1_set_17, LBB0_17-LJTI0_1 .set L0_1_set_8, LBB0_8-LJTI0_1 .set L0_1_set_21, LBB0_21-LJTI0_1 LJTI0_1: .long L0_1_set_18 .long L0_1_set_19 .long L0_1_set_20 .long L0_1_set_17 .long L0_1_set_20 .long L0_1_set_20 .long L0_1_set_8 .long L0_1_set_21 .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
.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, #96 .cfi_def_cfa_offset 96 stp x24, x23, [sp, #32] ; 16-byte Folded Spill stp x22, x21, [sp, #48] ; 16-byte Folded Spill stp x20, x19, [sp, #64] ; 16-byte Folded Spill 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 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x19, x0 cbz x1, LBB0_9 ; %bb.1: mov x20, x1 Lloh0: adrp x24, lJTI0_0@PAGE Lloh1: add x24, x24, lJTI0_0@PAGEOFF LBB0_2: ; =>This Loop Header: Depth=1 ; Child Loop BB0_7 Depth 2 ldr w8, [x20] sub w8, w8, #33 cmp w8, #146 b.hi LBB0_20 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 adr x9, LBB0_4 ldrh w10, [x24, x8, lsl #1] add x9, x9, x10, lsl #2 br x9 LBB0_4: ; in Loop: Header=BB0_2 Depth=1 ldr x0, [x20, #48] bl _ty2s ldr x8, [x20, #8] stp x0, x8, [sp] Lloh2: adrp x1, l_.str.16@PAGE Lloh3: add x1, x1, l_.str.16@PAGEOFF mov x0, x19 bl _buf_printf ldr w0, [x20, #160] bl _vec_len cmp w0, #1 b.lt LBB0_8 ; %bb.5: ; in Loop: Header=BB0_2 Depth=1 ldr w0, [x20, #160] mov w1, #0 bl _vec_get mov x21, x0 ldr x0, [x0, #48] bl _ty2s mov x22, x0 mov x0, x21 bl _node2s stp x22, x0, [sp] Lloh4: adrp x1, l_.str.20@PAGE Lloh5: add x1, x1, l_.str.20@PAGEOFF mov x0, x19 bl _buf_printf ldr w0, [x20, #160] bl _vec_len cmp w0, #2 b.lt LBB0_8 ; %bb.6: ; in Loop: Header=BB0_2 Depth=1 mov w21, #1 LBB0_7: ; Parent Loop BB0_2 Depth=1 ; => This Inner Loop Header: Depth=2 Lloh6: adrp x1, l_.str.17@PAGE Lloh7: add x1, x1, l_.str.17@PAGEOFF mov x0, x19 bl _buf_printf ldr w0, [x20, #160] mov x1, x21 bl _vec_get mov x22, x0 ldr x0, [x0, #48] bl _ty2s mov x23, x0 mov x0, x22 bl _node2s stp x23, x0, [sp] Lloh8: adrp x1, l_.str.20@PAGE Lloh9: add x1, x1, l_.str.20@PAGEOFF mov x0, x19 bl _buf_printf add w21, w21, #1 ldr w0, [x20, #160] bl _vec_len cmp w21, w0 b.lt LBB0_7 LBB0_8: ; in Loop: Header=BB0_2 Depth=1 Lloh10: adrp x1, l_.str.14@PAGE Lloh11: add x1, x1, l_.str.14@PAGEOFF mov x0, x19 bl _buf_printf ldr x20, [x20, #152] cbnz x20, LBB0_2 LBB0_9: Lloh12: adrp x1, l_.str@PAGE Lloh13: add x1, x1, l_.str@PAGEOFF LBB0_10: mov x0, x19 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload ldp x20, x19, [sp, #64] ; 16-byte Folded Reload ldp x22, x21, [sp, #48] ; 16-byte Folded Reload ldp x24, x23, [sp, #32] ; 16-byte Folded Reload add sp, sp, #96 b _buf_printf LBB0_11: Lloh14: adrp x1, l_.str.37@PAGE Lloh15: add x1, x1, l_.str.37@PAGEOFF b LBB0_45 LBB0_12: Lloh16: adrp x1, l_.str.56@PAGE Lloh17: add x1, x1, l_.str.56@PAGEOFF b LBB0_45 LBB0_13: ldr x0, [x20, #48] bl _ty2s mov x21, x0 ldr w8, [x20] cmp w8, #173 b.ne LBB0_68 ; %bb.14: ldr x0, [x20, #8] b LBB0_69 LBB0_15: ldr x8, [x20, #48] ldr w8, [x8] sub w8, w8, #153 cmp w8, #7 b.hi LBB0_78 ; %bb.16: Lloh18: adrp x9, lJTI0_1@PAGE Lloh19: add x9, x9, lJTI0_1@PAGEOFF adr x10, LBB0_17 ldrh w11, [x9, x8, lsl #1] add x10, x10, x11, lsl #2 br x10 LBB0_17: ldr w8, [x20, #180] str x8, [sp] Lloh20: adrp x1, l_.str.8@PAGE Lloh21: add x1, x1, l_.str.8@PAGEOFF b LBB0_76 LBB0_18: Lloh22: adrp x1, l_.str.35@PAGE Lloh23: add x1, x1, l_.str.35@PAGEOFF b LBB0_67 LBB0_19: Lloh24: adrp x1, l_.str.57@PAGE Lloh25: add x1, x1, l_.str.57@PAGEOFF b LBB0_67 LBB0_20: ldr x0, [x20, #24] bl _node2s mov x21, x0 ldr x0, [x20, #16] bl _node2s mov x22, x0 ldr w8, [x20] Lloh26: adrp x9, _OP_EQ@GOTPAGE Lloh27: ldr x9, [x9, _OP_EQ@GOTPAGEOFF] Lloh28: ldr w9, [x9] cmp w8, w9 b.ne LBB0_74 ; %bb.21: Lloh29: adrp x1, l_.str.62@PAGE Lloh30: add x1, x1, l_.str.62@PAGEOFF b LBB0_75 LBB0_22: Lloh31: adrp x1, l_.str.58@PAGE Lloh32: add x1, x1, l_.str.58@PAGEOFF b LBB0_45 LBB0_23: Lloh33: adrp x1, l_.str.59@PAGE Lloh34: add x1, x1, l_.str.59@PAGEOFF b LBB0_45 LBB0_24: Lloh35: adrp x1, l_.str.36@PAGE Lloh36: add x1, x1, l_.str.36@PAGEOFF b LBB0_45 LBB0_25: Lloh37: adrp x1, l_.str.41@PAGE Lloh38: add x1, x1, l_.str.41@PAGEOFF b LBB0_67 LBB0_26: Lloh39: adrp x1, l_.str.42@PAGE Lloh40: add x1, x1, l_.str.42@PAGEOFF b LBB0_67 LBB0_27: Lloh41: adrp x1, l_.str.43@PAGE Lloh42: add x1, x1, l_.str.43@PAGEOFF b LBB0_67 LBB0_28: Lloh43: adrp x1, l_.str.44@PAGE Lloh44: add x1, x1, l_.str.44@PAGEOFF b LBB0_67 LBB0_29: Lloh45: adrp x1, l_.str.40@PAGE Lloh46: add x1, x1, l_.str.40@PAGEOFF b LBB0_45 LBB0_30: Lloh47: adrp x1, l_.str.46@PAGE Lloh48: add x1, x1, l_.str.46@PAGEOFF b LBB0_45 LBB0_31: Lloh49: adrp x1, l_.str.45@PAGE Lloh50: add x1, x1, l_.str.45@PAGEOFF b LBB0_45 LBB0_32: Lloh51: adrp x1, l_.str.39@PAGE Lloh52: add x1, x1, l_.str.39@PAGEOFF b LBB0_45 LBB0_33: ldr w8, [x20, #32] str x8, [sp] Lloh53: adrp x1, l_.str.61@PAGE Lloh54: add x1, x1, l_.str.61@PAGEOFF b LBB0_76 LBB0_34: Lloh55: adrp x1, l_.str.38@PAGE Lloh56: add x1, x1, l_.str.38@PAGEOFF b LBB0_45 LBB0_35: ldr x8, [x20, #40] ldr x0, [x8, #48] bl _ty2s mov x21, x0 ldr x0, [x20, #48] bl _ty2s mov x22, x0 ldr x0, [x20, #40] bl _node2s stp x22, x0, [sp, #8] str x21, [sp] Lloh57: adrp x1, l_.str.60@PAGE Lloh58: add x1, x1, l_.str.60@PAGEOFF b LBB0_76 LBB0_36: Lloh59: adrp x1, l_.str.54@PAGE Lloh60: add x1, x1, l_.str.54@PAGEOFF b LBB0_45 LBB0_37: Lloh61: adrp x1, l_.str.48@PAGE Lloh62: add x1, x1, l_.str.48@PAGEOFF b LBB0_45 LBB0_38: Lloh63: adrp x1, l_.str.55@PAGE Lloh64: add x1, x1, l_.str.55@PAGEOFF b LBB0_45 LBB0_39: Lloh65: adrp x1, l_.str.53@PAGE Lloh66: add x1, x1, l_.str.53@PAGEOFF b LBB0_45 LBB0_40: Lloh67: adrp x1, l_.str.49@PAGE Lloh68: add x1, x1, l_.str.49@PAGEOFF b LBB0_45 LBB0_41: Lloh69: adrp x1, l_.str.51@PAGE Lloh70: add x1, x1, l_.str.51@PAGEOFF b LBB0_45 LBB0_42: Lloh71: adrp x1, l_.str.50@PAGE Lloh72: add x1, x1, l_.str.50@PAGEOFF b LBB0_45 LBB0_43: Lloh73: adrp x1, l_.str.52@PAGE Lloh74: add x1, x1, l_.str.52@PAGEOFF b LBB0_45 LBB0_44: Lloh75: adrp x1, l_.str.47@PAGE Lloh76: add x1, x1, l_.str.47@PAGEOFF LBB0_45: mov x0, x19 mov x2, x20 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload ldp x20, x19, [sp, #64] ; 16-byte Folded Reload ldp x22, x21, [sp, #48] ; 16-byte Folded Reload ldp x24, x23, [sp, #32] ; 16-byte Folded Reload add sp, sp, #96 b _binop_to_string LBB0_46: ldr x0, [x20, #104] bl _node2s mov x21, x0 ldr x0, [x20, #96] bl _node2s mov x22, x0 ldr x0, [x20, #88] bl _node2s stp x22, x0, [sp, #8] str x21, [sp] Lloh77: adrp x1, l_.str.28@PAGE Lloh78: add x1, x1, l_.str.28@PAGEOFF b LBB0_76 LBB0_47: ldr x1, [x20, #64] mov x0, x19 bl _do_node2s Lloh79: adrp x1, l_.str.33@PAGE Lloh80: add x1, x1, l_.str.33@PAGEOFF mov x0, x19 bl _buf_printf ldrsw x1, [x20, #56] b LBB0_10 LBB0_48: ldr x0, [x20, #80] bl _node2s str x0, [sp] Lloh81: adrp x1, l_.str.29@PAGE Lloh82: add x1, x1, l_.str.29@PAGEOFF b LBB0_76 LBB0_49: ldr w8, [x20, #168] str x8, [sp] Lloh83: adrp x1, l_.str.12@PAGE Lloh84: add x1, x1, l_.str.12@PAGEOFF mov x0, x19 bl _buf_printf ldr w8, [x20, #172] cbz w8, LBB0_77 ; %bb.50: Lloh85: adrp x1, l_.str.13@PAGE Lloh86: add x1, x1, l_.str.13@PAGEOFF mov x0, x19 bl _buf_printf ldr w1, [x20, #172] b LBB0_60 LBB0_51: ldr w8, [x20, #32] str x8, [sp] Lloh87: adrp x1, l_.str.11@PAGE Lloh88: add x1, x1, l_.str.11@PAGEOFF b LBB0_76 LBB0_52: ldr x0, [x20, #128] bl _node2s mov x21, x0 ldr x0, [x20, #112] ldr w20, [x20, #120] bl _ty2s stp x20, x0, [sp, #8] str x21, [sp] Lloh89: adrp x1, l_.str.24@PAGE Lloh90: add x1, x1, l_.str.24@PAGEOFF b LBB0_76 LBB0_53: ldr x0, [x20, #104] bl _node2s mov x21, x0 ldr x0, [x20, #96] bl _node2s stp x21, x0, [sp] Lloh91: adrp x1, l_.str.26@PAGE Lloh92: add x1, x1, l_.str.26@PAGEOFF mov x0, x19 bl _buf_printf ldr x0, [x20, #88] cbz x0, LBB0_73 ; %bb.54: bl _node2s str x0, [sp] Lloh93: adrp x1, l_.str.27@PAGE Lloh94: add x1, x1, l_.str.27@PAGEOFF mov x0, x19 bl _buf_printf b LBB0_73 LBB0_55: ldr w8, [x20, #168] str x8, [sp] Lloh95: adrp x1, l_.str.15@PAGE Lloh96: add x1, x1, l_.str.15@PAGEOFF b LBB0_76 LBB0_56: ldr w8, [x20, #32] str x8, [sp] Lloh97: adrp x1, l_.str.21@PAGE Lloh98: add x1, x1, l_.str.21@PAGEOFF b LBB0_76 LBB0_57: ldr x8, [x20, #8] str x8, [sp] Lloh99: adrp x1, l_.str.19@PAGE Lloh100: add x1, x1, l_.str.19@PAGEOFF b LBB0_76 LBB0_58: ldr x8, [x20, #144] ldr x0, [x8, #8] bl _ty2s ldr x8, [x20, #144] ldr x8, [x8] stp x0, x8, [sp] Lloh101: adrp x1, l_.str.22@PAGE Lloh102: add x1, x1, l_.str.22@PAGEOFF mov x0, x19 bl _buf_printf ldr w8, [x20, #136] cbz w8, LBB0_73 ; %bb.59: Lloh103: adrp x1, l_.str.23@PAGE Lloh104: add x1, x1, l_.str.23@PAGEOFF mov x0, x19 bl _buf_printf ldr w1, [x20, #136] LBB0_60: mov x0, x19 bl _a2s_declinit b LBB0_73 LBB0_61: ldr x0, [x20, #40] bl _node2s mov x21, x0 ldr x0, [x20, #48] bl _ty2s stp x21, x0, [sp] Lloh105: adrp x1, l_.str.25@PAGE Lloh106: add x1, x1, l_.str.25@PAGEOFF b LBB0_76 LBB0_62: Lloh107: adrp x1, l_.str.30@PAGE Lloh108: add x1, x1, l_.str.30@PAGEOFF mov x0, x19 bl _buf_printf ldr w0, [x20, #72] bl _vec_len cmp w0, #1 b.lt LBB0_65 ; %bb.63: mov w21, #0 Lloh109: adrp x22, l_.str.31@PAGE Lloh110: add x22, x22, l_.str.31@PAGEOFF LBB0_64: ; =>This Inner Loop Header: Depth=1 ldr w0, [x20, #72] mov x1, x21 bl _vec_get mov x1, x0 mov x0, x19 bl _do_node2s mov x0, x19 mov x1, x22 bl _buf_printf add w21, w21, #1 ldr w0, [x20, #72] bl _vec_len cmp w21, w0 b.lt LBB0_64 LBB0_65: Lloh111: adrp x1, l_.str.32@PAGE Lloh112: add x1, x1, l_.str.32@PAGEOFF b LBB0_10 LBB0_66: Lloh113: adrp x1, l_.str.34@PAGE Lloh114: add x1, x1, l_.str.34@PAGEOFF LBB0_67: mov x0, x19 mov x2, x20 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload ldp x20, x19, [sp, #64] ; 16-byte Folded Reload ldp x22, x21, [sp, #48] ; 16-byte Folded Reload ldp x24, x23, [sp, #32] ; 16-byte Folded Reload add sp, sp, #96 b _uop_to_string LBB0_68: mov x0, x20 bl _node2s LBB0_69: stp x21, x0, [sp] Lloh115: adrp x1, l_.str.16@PAGE Lloh116: add x1, x1, l_.str.16@PAGEOFF mov x0, x19 bl _buf_printf ldr w0, [x20, #164] bl _vec_len cmp w0, #1 b.lt LBB0_73 ; %bb.70: ldr w0, [x20, #164] mov w1, #0 bl _vec_get bl _node2s str x0, [sp] Lloh117: adrp x1, l_.str.18@PAGE Lloh118: add x1, x1, l_.str.18@PAGEOFF mov x0, x19 bl _buf_printf ldr w0, [x20, #164] bl _vec_len cmp w0, #2 b.lt LBB0_73 ; %bb.71: mov w21, #1 Lloh119: adrp x22, l_.str.17@PAGE Lloh120: add x22, x22, l_.str.17@PAGEOFF Lloh121: adrp x23, l_.str.18@PAGE Lloh122: add x23, x23, l_.str.18@PAGEOFF LBB0_72: ; =>This Inner Loop Header: Depth=1 mov x0, x19 mov x1, x22 bl _buf_printf ldr w0, [x20, #164] mov x1, x21 bl _vec_get bl _node2s str x0, [sp] mov x0, x19 mov x1, x23 bl _buf_printf add w21, w21, #1 ldr w0, [x20, #164] bl _vec_len cmp w21, w0 b.lt LBB0_72 LBB0_73: Lloh123: adrp x1, l_.str.14@PAGE Lloh124: add x1, x1, l_.str.14@PAGEOFF b LBB0_10 LBB0_74: str x8, [sp] Lloh125: adrp x1, l_.str.63@PAGE Lloh126: add x1, x1, l_.str.63@PAGEOFF LBB0_75: mov x0, x19 bl _buf_printf stp x21, x22, [sp] Lloh127: adrp x1, l_.str.64@PAGE Lloh128: add x1, x1, l_.str.64@PAGEOFF LBB0_76: mov x0, x19 bl _buf_printf LBB0_77: ldp x29, x30, [sp, #80] ; 16-byte Folded Reload ldp x20, x19, [sp, #64] ; 16-byte Folded Reload ldp x22, x21, [sp, #48] ; 16-byte Folded Reload ldp x24, x23, [sp, #32] ; 16-byte Folded Reload add sp, sp, #96 ret LBB0_78: Lloh129: adrp x0, l_.str.10@PAGE Lloh130: add x0, x0, l_.str.10@PAGEOFF ldp x29, x30, [sp, #80] ; 16-byte Folded Reload ldp x20, x19, [sp, #64] ; 16-byte Folded Reload ldp x22, x21, [sp, #48] ; 16-byte Folded Reload ldp x24, x23, [sp, #32] ; 16-byte Folded Reload add sp, sp, #96 b _error LBB0_79: ldrsb x8, [x20, #4] str x8, [sp] Lloh131: adrp x1, l_.str.6@PAGE Lloh132: add x1, x1, l_.str.6@PAGEOFF b LBB0_76 LBB0_80: ldrsb x8, [x20, #4] str x8, [sp] Lloh133: adrp x1, l_.str.7@PAGE Lloh134: add x1, x1, l_.str.7@PAGEOFF b LBB0_76 LBB0_81: ldrsb x8, [x20, #4] str x8, [sp] Lloh135: adrp x1, l_.str.5@PAGE Lloh136: add x1, x1, l_.str.5@PAGEOFF b LBB0_76 LBB0_82: ldrb w8, [x20, #4] cbz w8, LBB0_87 ; %bb.83: cmp w8, #92 b.eq LBB0_88 ; %bb.84: cmp w8, #10 b.ne LBB0_89 ; %bb.85: Lloh137: adrp x1, l_.str.1@PAGE Lloh138: add x1, x1, l_.str.1@PAGEOFF b LBB0_10 LBB0_86: ldr w0, [x20, #176] bl _quote_cstring ; kill: def $w0 killed $w0 def $x0 str x0, [sp] Lloh139: adrp x1, l_.str.9@PAGE Lloh140: add x1, x1, l_.str.9@PAGEOFF b LBB0_76 LBB0_87: Lloh141: adrp x1, l_.str.3@PAGE Lloh142: add x1, x1, l_.str.3@PAGEOFF b LBB0_10 LBB0_88: Lloh143: adrp x1, l_.str.2@PAGE Lloh144: add x1, x1, l_.str.2@PAGEOFF b LBB0_10 LBB0_89: sxtb w8, w8 str x8, [sp] Lloh145: adrp x1, l_.str.4@PAGE Lloh146: add x1, x1, l_.str.4@PAGEOFF b LBB0_76 .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh10, Lloh11 .loh AdrpAdd Lloh12, Lloh13 .loh AdrpAdd Lloh14, Lloh15 .loh AdrpAdd Lloh16, Lloh17 .loh AdrpAdd Lloh18, Lloh19 .loh AdrpAdd Lloh20, Lloh21 .loh AdrpAdd Lloh22, Lloh23 .loh AdrpAdd Lloh24, Lloh25 .loh AdrpLdrGotLdr Lloh26, Lloh27, Lloh28 .loh AdrpAdd Lloh29, Lloh30 .loh AdrpAdd Lloh31, Lloh32 .loh AdrpAdd Lloh33, Lloh34 .loh AdrpAdd Lloh35, Lloh36 .loh AdrpAdd Lloh37, Lloh38 .loh AdrpAdd Lloh39, Lloh40 .loh AdrpAdd Lloh41, Lloh42 .loh AdrpAdd Lloh43, Lloh44 .loh AdrpAdd Lloh45, Lloh46 .loh AdrpAdd Lloh47, Lloh48 .loh AdrpAdd Lloh49, Lloh50 .loh AdrpAdd Lloh51, Lloh52 .loh AdrpAdd Lloh53, Lloh54 .loh AdrpAdd Lloh55, Lloh56 .loh AdrpAdd Lloh57, Lloh58 .loh AdrpAdd Lloh59, Lloh60 .loh AdrpAdd Lloh61, Lloh62 .loh AdrpAdd Lloh63, Lloh64 .loh AdrpAdd Lloh65, Lloh66 .loh AdrpAdd Lloh67, Lloh68 .loh AdrpAdd Lloh69, Lloh70 .loh AdrpAdd Lloh71, Lloh72 .loh AdrpAdd Lloh73, Lloh74 .loh AdrpAdd Lloh75, Lloh76 .loh AdrpAdd Lloh77, Lloh78 .loh AdrpAdd Lloh79, Lloh80 .loh AdrpAdd Lloh81, Lloh82 .loh AdrpAdd Lloh83, Lloh84 .loh AdrpAdd Lloh85, Lloh86 .loh AdrpAdd Lloh87, Lloh88 .loh AdrpAdd Lloh89, Lloh90 .loh AdrpAdd Lloh91, Lloh92 .loh AdrpAdd Lloh93, Lloh94 .loh AdrpAdd Lloh95, Lloh96 .loh AdrpAdd Lloh97, Lloh98 .loh AdrpAdd Lloh99, Lloh100 .loh AdrpAdd Lloh101, Lloh102 .loh AdrpAdd Lloh103, Lloh104 .loh AdrpAdd Lloh105, Lloh106 .loh AdrpAdd Lloh107, Lloh108 .loh AdrpAdd Lloh109, Lloh110 .loh AdrpAdd Lloh111, Lloh112 .loh AdrpAdd Lloh113, Lloh114 .loh AdrpAdd Lloh115, Lloh116 .loh AdrpAdd Lloh117, Lloh118 .loh AdrpAdd Lloh121, Lloh122 .loh AdrpAdd Lloh119, Lloh120 .loh AdrpAdd Lloh123, Lloh124 .loh AdrpAdd Lloh125, Lloh126 .loh AdrpAdd Lloh127, Lloh128 .loh AdrpAdd Lloh129, Lloh130 .loh AdrpAdd Lloh131, Lloh132 .loh AdrpAdd Lloh133, Lloh134 .loh AdrpAdd Lloh135, Lloh136 .loh AdrpAdd Lloh137, Lloh138 .loh AdrpAdd Lloh139, Lloh140 .loh AdrpAdd Lloh141, Lloh142 .loh AdrpAdd Lloh143, Lloh144 .loh AdrpAdd Lloh145, Lloh146 .cfi_endproc .section __TEXT,__const .p2align 1 lJTI0_0: .short (LBB0_19-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_22-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_23-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_11-LBB0_4)>>2 .short (LBB0_11-LBB0_4)>>2 .short (LBB0_24-LBB0_4)>>2 .short (LBB0_25-LBB0_4)>>2 .short (LBB0_26-LBB0_4)>>2 .short (LBB0_27-LBB0_4)>>2 .short (LBB0_28-LBB0_4)>>2 .short (LBB0_29-LBB0_4)>>2 .short (LBB0_30-LBB0_4)>>2 .short (LBB0_31-LBB0_4)>>2 .short (LBB0_32-LBB0_4)>>2 .short (LBB0_33-LBB0_4)>>2 .short (LBB0_34-LBB0_4)>>2 .short (LBB0_35-LBB0_4)>>2 .short (LBB0_36-LBB0_4)>>2 .short (LBB0_37-LBB0_4)>>2 .short (LBB0_12-LBB0_4)>>2 .short (LBB0_12-LBB0_4)>>2 .short (LBB0_38-LBB0_4)>>2 .short (LBB0_39-LBB0_4)>>2 .short (LBB0_40-LBB0_4)>>2 .short (LBB0_41-LBB0_4)>>2 .short (LBB0_42-LBB0_4)>>2 .short (LBB0_43-LBB0_4)>>2 .short (LBB0_44-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_20-LBB0_4)>>2 .short (LBB0_46-LBB0_4)>>2 .short (LBB0_47-LBB0_4)>>2 .short (LBB0_48-LBB0_4)>>2 .short (LBB0_49-LBB0_4)>>2 .short (LBB0_15-LBB0_4)>>2 .short (LBB0_51-LBB0_4)>>2 .short (LBB0_52-LBB0_4)>>2 .short (LBB0_53-LBB0_4)>>2 .short (LBB0_55-LBB0_4)>>2 .short (LBB0_56-LBB0_4)>>2 .short (LBB0_13-LBB0_4)>>2 .short (LBB0_57-LBB0_4)>>2 .short (LBB0_13-LBB0_4)>>2 .short (LBB0_4-LBB0_4)>>2 .short (LBB0_18-LBB0_4)>>2 .short (LBB0_58-LBB0_4)>>2 .short (LBB0_61-LBB0_4)>>2 .short (LBB0_62-LBB0_4)>>2 .short (LBB0_66-LBB0_4)>>2 .p2align 1 lJTI0_1: .short (LBB0_79-LBB0_17)>>2 .short (LBB0_80-LBB0_17)>>2 .short (LBB0_17-LBB0_17)>>2 .short (LBB0_81-LBB0_17)>>2 .short (LBB0_17-LBB0_17)>>2 .short (LBB0_17-LBB0_17)>>2 .short (LBB0_82-LBB0_17)>>2 .short (LBB0_86-LBB0_17)>>2 ; -- 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
anghabench
.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: addl $-128, %edi cmpl $3, %edi ja LBB0_1 ## %bb.2: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movslq %edi, %rax leaq l_reltable.encoding_prefix(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax popq %rbp retq LBB0_1: leaq L_.str.4(%rip), %rax retq .cfi_endproc ## -- 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 .section __TEXT,__const .p2align 2 ## @reltable.encoding_prefix l_reltable.encoding_prefix: .long L_.str.3-l_reltable.encoding_prefix .long L_.str.2-l_reltable.encoding_prefix .long L_.str.1-l_reltable.encoding_prefix .long L_.str-l_reltable.encoding_prefix .subsections_via_symbols
.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 w8, w0, #128 cmp w8, #3 b.hi LBB0_2 ; %bb.1: Lloh0: adrp x9, l_switch.table.encoding_prefix@PAGE Lloh1: add x9, x9, l_switch.table.encoding_prefix@PAGEOFF ldr x0, [x9, w8, sxtw #3] ret LBB0_2: Lloh2: adrp x0, l_.str.4@PAGE Lloh3: add x0, x0, l_.str.4@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .cfi_endproc ; -- 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 .section __DATA,__const .p2align 3 ; @switch.table.encoding_prefix l_switch.table.encoding_prefix: .quad l_.str.3 .quad l_.str.2 .quad l_.str.1 .quad l_.str .subsections_via_symbols
AnghaBench/8cc/extr_debug.c_encoding_prefix.c
anghabench
.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 pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 xorl %eax, %eax callq _make_buffer movq %rax, %rbx movq %rax, %rdi movq %r14, %rsi callq _do_node2s movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp _buf_body ## TAILCALL .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _node2s ; -- Begin function node2s .p2align 2 _node2s: ; @node2s .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 bl _make_buffer mov x20, x0 mov x1, x19 bl _do_node2s mov x0, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _buf_body .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_debug.c_node2s.c
anghabench
.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 pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx xorl %eax, %eax callq _make_dict movl %eax, %edi movq %rbx, %rsi addq $8, %rsp popq %rbx popq %rbp jmp _do_ty2s ## TAILCALL .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 2 _ty2s: ; @ty2s .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 bl _make_dict mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _do_ty2s .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_debug.c_ty2s.c
anghabench
.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 pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %r14 movq %rdi, %rbx movl (%rdx), %edi callq _node2s leaq L_.str(%rip), %rsi movq %rbx, %rdi movq %r14, %rdx movl %eax, %ecx popq %rbx popq %r14 popq %rbp jmp _buf_printf ## TAILCALL .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 2 ; -- Begin function uop_to_string _uop_to_string: ; @uop_to_string .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 ldr w0, [x2] bl _node2s mov x3, x0 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x20 mov x2, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _buf_printf .loh AdrpAdd Lloh0, Lloh1 .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
anghabench
.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 movl (%rdi), %edi popq %rbp jmp _map_get ## TAILCALL .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 2 _dict_get: ; @dict_get .cfi_startproc ; %bb.0: ldr w0, [x0] b _map_get .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_dict.c_dict_get.c
anghabench
.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), %rax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _dict_keys ; -- Begin function dict_keys .p2align 2 _dict_keys: ; @dict_keys .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_dict.c_dict_keys.c
anghabench
.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 pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %r14 movq %rdi, %rbx movl 4(%rdi), %edi callq _map_put movl (%rbx), %edi movq %r14, %rsi popq %rbx popq %r14 popq %rbp jmp _vec_push ## TAILCALL .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 2 _dict_put: ; @dict_put .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 ldr w0, [x0, #4] bl _map_put ldr w0, [x20] mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _vec_push .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_dict.c_dict_put.c
anghabench
.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 pushq %rbx pushq %rax .cfi_offset %rbx, -24 movl $8, %edi callq _malloc movq %rax, %rbx xorl %eax, %eax callq _make_map movl %eax, 4(%rbx) xorl %eax, %eax callq _make_vector movl %eax, (%rbx) movq %rbx, %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _make_dict ; -- Begin function make_dict .p2align 2 _make_dict: ; @make_dict .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov w0, #8 bl _malloc mov x19, x0 bl _make_map str w0, [x19, #4] bl _make_vector str w0, [x19] mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_dict.c_make_dict.c
anghabench
.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 xorl %eax, %eax testb $-128, %dil je LBB0_8 ## %bb.1: movl $1, %eax testb $64, %dil je LBB0_8 ## %bb.2: movl $2, %eax testb $32, %dil je LBB0_8 ## %bb.3: movl $3, %eax testb $16, %dil je LBB0_8 ## %bb.4: movl $4, %eax testb $8, %dil je LBB0_8 ## %bb.5: movl $5, %eax testb $4, %dil je LBB0_8 ## %bb.6: movl $6, %eax testb $2, %dil je LBB0_8 ## %bb.7: movzbl %dil, %eax andl $1, %eax addl $7, %eax LBB0_8: popq %rbp retq .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 2 ; -- Begin function count_leading_ones _count_leading_ones: ; @count_leading_ones .cfi_startproc ; %bb.0: tbnz w0, #7, LBB0_2 ; %bb.1: mov w0, #0 ret LBB0_2: and w8, w0, #0xff tbnz w8, #6, LBB0_4 ; %bb.3: mov w0, #1 ret LBB0_4: mov w9, #2 mov w10, #3 mov w11, #4 mov w12, #5 mov w13, #6 tst w8, #0x1 mov w14, #7 cinc w14, w14, ne tst w8, #0x2 csel w13, w13, w14, eq tst w8, #0x4 csel w12, w12, w13, eq tst w8, #0x8 csel w11, w11, w12, eq tst w8, #0x10 csel w10, w10, w11, eq tst w8, #0x20 csel w0, w9, w10, eq ret .cfi_endproc ; -- End function .no_dead_strip _count_leading_ones .subsections_via_symbols
AnghaBench/8cc/extr_encoding.c_count_leading_ones.c
anghabench
.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 pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdx, %r12 movq %rsi, %r13 movq %rdi, %rbx movsbl (%rsi), %edi callq _count_leading_ones testl %eax, %eax je LBB0_1 ## %bb.2: movl %eax, %r15d movq %rbx, -48(%rbp) ## 8-byte Spill cltq addq %r13, %rax cmpq %r12, %rax jbe LBB0_4 ## %bb.3: leaq L_.str(%rip), %rdi callq _error LBB0_4: cmpl $2, %r15d jl LBB0_9 ## %bb.5: movl %r15d, %ebx movl $1, %r14d leaq L_.str.1(%rip), %r12 jmp LBB0_6 .p2align 4, 0x90 LBB0_8: ## in Loop: Header=BB0_6 Depth=1 incq %r14 cmpq %r14, %rbx je LBB0_9 LBB0_6: ## =>This Inner Loop Header: Depth=1 movzbl (%r13,%r14), %eax andb $-64, %al cmpb $-128, %al je LBB0_8 ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 movq %r12, %rdi callq _error jmp LBB0_8 LBB0_9: cmpl $2, %r15d je LBB0_13 ## %bb.10: cmpl $3, %r15d movq -48(%rbp), %rdx ## 8-byte Reload je LBB0_14 ## %bb.11: cmpl $4, %r15d jne LBB0_15 ## %bb.12: movb 2(%r13), %al movb 3(%r13), %cl shlb $6, %al andb $63, %cl orb %al, %cl movb %cl, (%rdx) movl $4, %eax jmp LBB0_16 LBB0_1: movb (%r13), %al movb %al, (%rbx) movl $1, %eax jmp LBB0_16 LBB0_13: movb (%r13), %al movb 1(%r13), %cl shlb $6, %al andb $63, %cl orb %al, %cl movq -48(%rbp), %rax ## 8-byte Reload movb %cl, (%rax) movl $2, %eax jmp LBB0_16 LBB0_14: movb 1(%r13), %al movb 2(%r13), %cl shlb $6, %al andb $63, %cl orb %al, %cl movb %cl, (%rdx) movl $3, %eax jmp LBB0_16 LBB0_15: leaq L_.str(%rip), %rdi callq _error ## implicit-def: $eax LBB0_16: addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 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
.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: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x22, x2 mov x20, x1 mov x19, x0 ldrsb w0, [x1] bl _count_leading_ones cbz w0, LBB0_12 ; %bb.1: mov x21, x0 add x8, x20, w0, sxtw cmp x8, x22 b.ls LBB0_3 ; %bb.2: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF bl _error LBB0_3: cmp w21, #2 b.lt LBB0_8 ; %bb.4: mov w8, w21 add x23, x20, #1 sub x24, x8, #1 Lloh2: adrp x22, l_.str.1@PAGE Lloh3: add x22, x22, l_.str.1@PAGEOFF b LBB0_6 LBB0_5: ; in Loop: Header=BB0_6 Depth=1 add x23, x23, #1 subs x24, x24, #1 b.eq LBB0_8 LBB0_6: ; =>This Inner Loop Header: Depth=1 ldrb w8, [x23] and w8, w8, #0xc0 cmp w8, #128 b.eq LBB0_5 ; %bb.7: ; in Loop: Header=BB0_6 Depth=1 mov x0, x22 bl _error b LBB0_5 LBB0_8: cmp w21, #2 b.eq LBB0_13 ; %bb.9: cmp w21, #3 b.eq LBB0_14 ; %bb.10: cmp w21, #4 b.ne LBB0_15 ; %bb.11: ldrb w8, [x20, #2] ldrb w9, [x20, #3] bfi w9, w8, #6, #26 strb w9, [x19] mov w0, #4 b LBB0_16 LBB0_12: ldrb w8, [x20] strb w8, [x19] mov w0, #1 b LBB0_16 LBB0_13: ldrb w8, [x20] ldrb w9, [x20, #1] bfi w9, w8, #6, #26 strb w9, [x19] mov w0, #2 b LBB0_16 LBB0_14: ldrb w8, [x20, #1] ldrb w9, [x20, #2] bfi w9, w8, #6, #26 strb w9, [x19] mov w0, #3 b LBB0_16 LBB0_15: Lloh4: adrp x0, l_.str@PAGE Lloh5: add x0, x0, l_.str@PAGEOFF bl _error ; implicit-def: $w0 LBB0_16: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "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
anghabench
.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 pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %esi, %r15d movq %rdi, %r13 xorl %eax, %eax callq _make_buffer movq %rax, %r14 testl %r15d, %r15d je LBB0_5 ## %bb.1: movslq %r15d, %r15 addq %r13, %r15 leaq -44(%rbp), %r12 jmp LBB0_2 .p2align 4, 0x90 LBB0_4: ## in Loop: Header=BB0_2 Depth=1 movq %r14, %rdi callq _write16 cmpq %r15, %r13 je LBB0_5 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %r13, %rbx movq %r12, %rdi movq %r13, %rsi movq %r15, %rdx callq _read_rune movslq %eax, %r13 addq %rbx, %r13 movl -44(%rbp), %esi cmpl $65536, %esi ## imm = 0x10000 jl LBB0_4 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 shrl $10, %esi addl $55232, %esi ## imm = 0xD7C0 movq %r14, %rdi callq _write16 movl -44(%rbp), %esi movl $1023, %eax ## imm = 0x3FF andl %eax, %esi orl $56320, %esi ## imm = 0xDC00 jmp LBB0_4 LBB0_5: movq %r14, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _to_utf16 ; -- Begin function to_utf16 .p2align 2 _to_utf16: ; @to_utf16 .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x24, x23, [sp, #16] ; 16-byte Folded Spill stp x22, x21, [sp, #32] ; 16-byte Folded Spill stp x20, x19, [sp, #48] ; 16-byte Folded Spill stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x21, x1 mov x19, x0 bl _make_buffer mov x20, x0 cbz w21, LBB0_5 ; %bb.1: add x21, x19, w21, sxtw mov w23, #55232 b LBB0_3 LBB0_2: ; in Loop: Header=BB0_3 Depth=1 add x19, x19, w22, sxtw mov x0, x20 bl _write16 cmp x19, x21 b.eq LBB0_5 LBB0_3: ; =>This Inner Loop Header: Depth=1 add x0, sp, #12 mov x1, x19 mov x2, x21 bl _read_rune mov x22, x0 ldr w1, [sp, #12] cmp w1, #16, lsl #12 ; =65536 b.lt LBB0_2 ; %bb.4: ; in Loop: Header=BB0_3 Depth=1 add w1, w23, w1, lsr #10 mov x0, x20 bl _write16 ldr w8, [sp, #12] mov w1, #56320 bfxil w1, w8, #0, #10 b LBB0_2 LBB0_5: mov x0, x20 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload ldp x22, x21, [sp, #32] ; 16-byte Folded Reload ldp x24, x23, [sp, #16] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_encoding.c_to_utf16.c
anghabench
.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 pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $16, %rsp .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %esi, %r15d movq %rdi, %rbx xorl %eax, %eax callq _make_buffer movq %rax, %r14 testl %r15d, %r15d je LBB0_3 ## %bb.1: movslq %r15d, %r15 addq %rbx, %r15 leaq -36(%rbp), %r12 .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %r12, %rdi movq %rbx, %rsi movq %r15, %rdx callq _read_rune cltq addq %rax, %rbx movl -36(%rbp), %esi movq %r14, %rdi callq _write32 cmpq %r15, %rbx jne LBB0_2 LBB0_3: movq %r14, %rax addq $16, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _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 x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x21, x1 mov x19, x0 bl _make_buffer mov x20, x0 cbz w21, LBB0_3 ; %bb.1: add x21, x19, w21, sxtw LBB0_2: ; =>This Inner Loop Header: Depth=1 add x0, sp, #12 mov x1, x19 mov x2, x21 bl _read_rune add x19, x19, w0, sxtw ldr w1, [sp, #12] mov x0, x20 bl _write32 cmp x19, x21 b.ne LBB0_2 LBB0_3: mov x0, x20 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .subsections_via_symbols
AnghaBench/8cc/extr_encoding.c_to_utf32.c
anghabench