	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$1576, %rsp                     ## imm = 0x628
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$2, %edi
	jg	LBB0_2
## %bb.1:
	movq	(%r12), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %eax
	jmp	LBB0_13
LBB0_2:
	movl	%edi, %ebx
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r13
	movq	16(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_fopen
	movq	%rax, -1608(%rbp)               ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movl	%ebx, %r14d
	movq	8(%r12), %rcx
	leaq	L_.str.4(%rip), %rdx
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	addq	%rbx, %rax
	decq	%rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rax
	jbe	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%rax), %ecx
	decq	%rax
	cmpb	$92, %cl
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$47, %cl
	jne	LBB0_5
LBB0_8:
	movb	$0, 2(%rax)
LBB0_9:
	movq	%r13, %rdi
	callq	_feof
	testl	%eax, %eax
	movl	%r14d, -1596(%rbp)              ## 4-byte Spill
	je	LBB0_15
LBB0_10:
	movq	%r13, %rdi
	callq	_fclose
	movq	-1608(%rbp), %rdi               ## 8-byte Reload
	callq	_fclose
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movq	8(%r12), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$2, %eax
	jmp	LBB0_13
LBB0_12:
	movq	16(%r12), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$3, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_51
## %bb.14:
	addq	$1576, %rsp                     ## imm = 0x628
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	addq	$24, %r12
	addl	$-3, -1596(%rbp)                ## 4-byte Folded Spill
	movl	$1, %r15d
	movl	$0, -1588(%rbp)                 ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_18 Depth=1
	testl	%r14d, %r14d
	je	LBB0_29
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	%r15d
	movq	%r13, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_10
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
                                        ##     Child Loop BB0_39 Depth 2
                                        ##     Child Loop BB0_44 Depth 2
	leaq	-1584(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r13, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_10
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpb	$35, -1584(%rbp)
	jne	LBB0_16
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%ebx, -1592(%rbp)               ## 4-byte Spill
	leaq	-1584(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	$7, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_30
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_34
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.8(%rip), %rsi
	movl	$6, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_35
## %bb.24:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.10(%rip), %rsi
	movl	$9, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_48
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_48
## %bb.26:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r12, -1616(%rbp)               ## 8-byte Spill
	leaq	-1575(%rbp), %r12
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12), %eax
	orb	$2, %al
	cmpb	$34, %al
	jne	LBB0_37
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=2
	incq	%r12
	jmp	LBB0_27
LBB0_29:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%ebx, %r14d
	leaq	-1584(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_do_counters
	movq	%rbx, %rdi
	movl	%r14d, %ebx
	movq	-1608(%rbp), %rsi               ## 8-byte Reload
	callq	_my_fputs
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_30:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	-1592(%rbp), %ebx               ## 4-byte Reload
	incl	%ebx
	testl	%r14d, %r14d
	jne	LBB0_17
## %bb.31:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r12, %rdi
	movl	-1596(%rbp), %esi               ## 4-byte Reload
	leaq	-1577(%rbp), %rdx
	callq	_check_defines
	xorl	%r14d, %r14d
	testq	%rax, %rax
	sete	%r14b
	movl	-1588(%rbp), %eax               ## 4-byte Reload
	cmovel	%ebx, %eax
	movl	%eax, -1588(%rbp)               ## 4-byte Spill
	jmp	LBB0_17
LBB0_32:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	-1592(%rbp), %ebx               ## 4-byte Reload
	incl	%ebx
	testl	%r14d, %r14d
	jne	LBB0_17
## %bb.33:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r12, %rdi
	movl	-1596(%rbp), %esi               ## 4-byte Reload
	leaq	-1576(%rbp), %rdx
	callq	_check_defines
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	movl	-1588(%rbp), %eax               ## 4-byte Reload
	cmovnel	%ebx, %eax
	movl	%eax, -1588(%rbp)               ## 4-byte Spill
	jmp	LBB0_17
LBB0_34:                                ##   in Loop: Header=BB0_18 Depth=1
	testl	%r14d, %r14d
	sete	%al
	movl	-1588(%rbp), %edx               ## 4-byte Reload
	movl	-1592(%rbp), %ebx               ## 4-byte Reload
	cmpl	%ebx, %edx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	xorl	%eax, %r14d
	testb	%al, %al
	cmovnel	%ebx, %edx
	movl	%edx, -1588(%rbp)               ## 4-byte Spill
	jmp	LBB0_17
LBB0_35:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	-1592(%rbp), %edx               ## 4-byte Reload
	cmpl	%edx, -1588(%rbp)               ## 4-byte Folded Reload
	movl	$0, %ecx
	cmovel	%ecx, %r14d
	movl	%edx, %eax
	decl	%eax
	cmovel	%ecx, %r14d
	testl	%edx, %edx
	jle	LBB0_49
## %bb.36:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_37:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r12, %rdi
	callq	_strlen
	cltq
	leaq	(%r12,%rax), %rbx
	decq	%rbx
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_39 Depth=2
	movb	$0, (%rbx)
	decq	%rbx
LBB0_39:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r12, %rbx
	jbe	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=2
	movsbl	(%rbx), %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_38
## %bb.41:                              ##   in Loop: Header=BB0_39 Depth=2
	cmpb	$34, (%rbx)
	je	LBB0_38
LBB0_42:                                ##   in Loop: Header=BB0_18 Depth=1
	leaq	-560(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	leaq	L_.str.11(%rip), %rdx
	leaq	-304(%rbp), %rcx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_50
## %bb.43:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_feof
	testl	%eax, %eax
	leaq	-1584(%rbp), %rbx
	jne	LBB0_46
	.p2align	4, 0x90
LBB0_44:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=2
	movq	%rbx, %rdi
	movq	-1608(%rbp), %rsi               ## 8-byte Reload
	callq	_my_fputs
	movq	%r14, %rdi
	callq	_feof
	testl	%eax, %eax
	je	LBB0_44
LBB0_46:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r14, %rdi
	callq	_fclose
	xorl	%r14d, %r14d
	movq	-1616(%rbp), %r12               ## 8-byte Reload
LBB0_48:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	-1592(%rbp), %ebx               ## 4-byte Reload
	jmp	LBB0_17
LBB0_49:                                ##   in Loop: Header=BB0_18 Depth=1
	xorl	%ebx, %ebx
	leaq	L_.str.9(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_17
LBB0_50:
	leaq	L_.str.12(%rip), %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %eax
	jmp	LBB0_13
LBB0_51:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage:\n%s <file_in> <file_out> [defines...]\n"

L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"failed to open: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"wb"

L_.str.4:                               ## @.str.4
	.asciz	"%s"

L_.str.5:                               ## @.str.5
	.asciz	"#ifdef "

L_.str.6:                               ## @.str.6
	.asciz	"#ifndef "

L_.str.7:                               ## @.str.7
	.asciz	"#else"

L_.str.8:                               ## @.str.8
	.asciz	"#endif"

L_.str.9:                               ## @.str.9
	.asciz	"%i: warning: #endif without #ifdef, ignoring\n"

L_.str.10:                              ## @.str.10
	.asciz	"#include "

L_.str.11:                              ## @.str.11
	.asciz	"%s%s"

L_.str.12:                              ## @.str.12
	.asciz	"%i: error: failed to include \"%s\"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1600
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	cmp	w0, #2
	b.gt	LBB0_3
; %bb.1:
	ldr	x8, [x21]
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_printf
	mov	w0, #1
	b	LBB0_14
LBB0_3:
	mov	x22, x0
	ldr	x0, [x21, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_12
; %bb.4:
	mov	x19, x0
	ldr	x0, [x21, #16]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_13
; %bb.5:
	mov	x20, x0
	ldr	x3, [x21, #8]
Lloh9:
	adrp	x2, l_.str.4@PAGE
Lloh10:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x23, sp, #1328
	add	x0, sp, #1328
	mov	w1, #256
	bl	_snprintf
	add	x0, sp, #1328
	bl	_strlen
	add	x8, x23, w0, sxtw
	sub	x8, x8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x23
	b.ls	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w9, [x8], #-1
	cmp	w9, #92
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #47
	b.ne	LBB0_6
LBB0_9:
	strb	wzr, [x8, #2]
LBB0_10:
	mov	x0, x19
	bl	_feof
	cbz	w0, LBB0_16
LBB0_11:
	mov	x0, x19
	bl	_fclose
	mov	x0, x20
	bl	_fclose
	mov	w0, #0
	b	LBB0_14
LBB0_12:
	ldr	x8, [x21, #8]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	w0, #2
	b	LBB0_14
LBB0_13:
	ldr	x8, [x21, #16]
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	w0, #3
LBB0_14:
	ldur	x8, [x29, #-96]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_51
; %bb.15:
	add	sp, sp, #1600
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w27, #0
	mov	w26, #0
	mov	w23, #0
	add	x8, sp, #48
	add	x28, x8, #9
	add	x9, x21, #24
	sub	w22, w22, #3
	add	x21, x8, #8
	add	x8, x8, #7
	stp	x8, x9, [sp, #32]               ; 16-byte Folded Spill
	mov	w24, #1
Lloh18:
	adrp	x25, l_.str.5@PAGE
Lloh19:
	add	x25, x25, l_.str.5@PAGEOFF
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	cbz	w23, LBB0_30
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	w24, w24, #1
	mov	x0, x19
	bl	_feof
	cbnz	w0, LBB0_11
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
                                        ;     Child Loop BB0_40 Depth 2
                                        ;     Child Loop BB0_45 Depth 2
	add	x0, sp, #48
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_11
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldrb	w8, [sp, #48]
	cmp	w8, #35
	b.ne	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x0, sp, #48
	mov	x1, x25
	mov	w2, #7
	bl	_strncmp
	cbz	x0, LBB0_31
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x0, sp, #48
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w2, #8
	bl	_strncmp
	cbz	x0, LBB0_33
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x0, sp, #48
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w2, #5
	bl	_strncmp
	cbz	x0, LBB0_35
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x0, sp, #48
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w2, #6
	bl	_strncmp
	cbz	x0, LBB0_36
; %bb.25:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x0, sp, #48
Lloh26:
	adrp	x1, l_.str.10@PAGE
Lloh27:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w2, #9
	bl	_strncmp
	cbnz	x0, LBB0_18
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=1
	cbnz	w23, LBB0_18
; %bb.27:                               ;   in Loop: Header=BB0_19 Depth=1
	str	x21, [sp, #24]                  ; 8-byte Folded Spill
	mov	x21, x22
	mov	x22, x28
LBB0_28:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x28]
	orr	w8, w8, #0x2
	cmp	w8, #34
	b.ne	LBB0_38
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=2
	add	x28, x28, #1
	b	LBB0_28
LBB0_30:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x0, sp, #48
	bl	_do_counters
	add	x0, sp, #48
	mov	x1, x20
	bl	_my_fputs
	b	LBB0_18
LBB0_31:                                ;   in Loop: Header=BB0_19 Depth=1
	add	w26, w26, #1
	cbnz	w23, LBB0_18
; %bb.32:                               ;   in Loop: Header=BB0_19 Depth=1
	ldp	x2, x0, [sp, #32]               ; 16-byte Folded Reload
	mov	x1, x22
	bl	_check_defines
	cmp	x0, #0
	cset	w23, eq
	csel	w27, w26, w27, eq
	b	LBB0_18
LBB0_33:                                ;   in Loop: Header=BB0_19 Depth=1
	add	w26, w26, #1
	cbnz	w23, LBB0_18
; %bb.34:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x1, x22
	mov	x2, x21
	bl	_check_defines
	cmp	x0, #0
	cset	w23, ne
	csel	w27, w27, w26, eq
	b	LBB0_18
LBB0_35:                                ;   in Loop: Header=BB0_19 Depth=1
	cmp	w23, #0
	ccmp	w27, w26, #4, ne
	cset	w8, eq
	eor	w23, w23, w8
	csel	w27, w26, w27, eq
	b	LBB0_18
LBB0_36:                                ;   in Loop: Header=BB0_19 Depth=1
	sub	w8, w26, #1
	cmp	w27, w26
	ccmp	w8, #0, #4, ne
	csel	w23, wzr, w23, eq
	cmp	w26, #0
	b.le	LBB0_49
; %bb.37:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x26, x8
	b	LBB0_18
LBB0_38:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x28
	bl	_strlen
	add	x8, x28, w0, sxtw
	sub	x23, x8, #1
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_40 Depth=2
	strb	wzr, [x23], #-1
LBB0_40:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x23, x28
	b.ls	LBB0_43
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=2
	ldrsb	w0, [x23]
	bl	_isspace
	cbnz	x0, LBB0_39
; %bb.42:                               ;   in Loop: Header=BB0_40 Depth=2
	ldrb	w8, [x23]
	cmp	w8, #34
	b.eq	LBB0_39
LBB0_43:                                ;   in Loop: Header=BB0_19 Depth=1
	str	x28, [sp]
	add	x0, sp, #1072
	add	x3, sp, #1328
	mov	w1, #256
Lloh28:
	adrp	x2, l_.str.11@PAGE
Lloh29:
	add	x2, x2, l_.str.11@PAGEOFF
	bl	_snprintf
	add	x0, sp, #1072
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_50
; %bb.44:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x23, x0
LBB0_45:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_feof
	cbnz	w0, LBB0_48
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=2
	add	x0, sp, #48
	mov	w1, #1024
	mov	x2, x23
	bl	_fgets
	cbz	x0, LBB0_48
; %bb.47:                               ;   in Loop: Header=BB0_45 Depth=2
	add	x0, sp, #48
	mov	x1, x20
	bl	_my_fputs
	b	LBB0_45
LBB0_48:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x23
	bl	_fclose
	mov	w23, #0
	mov	x28, x22
	mov	x22, x21
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_18
LBB0_49:                                ;   in Loop: Header=BB0_19 Depth=1
	str	x24, [sp]
Lloh32:
	adrp	x0, l_.str.9@PAGE
Lloh33:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	mov	w26, #0
	b	LBB0_18
LBB0_50:
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	stp	x24, x28, [sp]
Lloh34:
	adrp	x0, l_.str.12@PAGE
Lloh35:
	add	x0, x0, l_.str.12@PAGEOFF
	b	LBB0_2
LBB0_51:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage:\n%s <file_in> <file_out> [defines...]\n"

l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"failed to open: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"wb"

l_.str.4:                               ; @.str.4
	.asciz	"%s"

l_.str.5:                               ; @.str.5
	.asciz	"#ifdef "

l_.str.6:                               ; @.str.6
	.asciz	"#ifndef "

l_.str.7:                               ; @.str.7
	.asciz	"#else"

l_.str.8:                               ; @.str.8
	.asciz	"#endif"

l_.str.9:                               ; @.str.9
	.asciz	"%i: warning: #endif without #ifdef, ignoring\n"

l_.str.10:                              ; @.str.10
	.asciz	"#include "

l_.str.11:                              ; @.str.11
	.asciz	"%s%s"

l_.str.12:                              ; @.str.12
	.asciz	"%i: error: failed to include \"%s\"\n"

.subsections_via_symbols
