	.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	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$3, %edi
	jne	LBB0_1
## %bb.2:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	movq	%rax, %r14
	movq	16(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_fopen
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	leaq	L_.str.5(%rip), %rdi
	movl	$41, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fwrite
	leaq	-304(%rbp), %r13
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_27
## %bb.6:
	movq	%r15, -568(%rbp)                ## 8-byte Spill
	jmp	LBB0_7
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=1
	movb	$0, (%rbx)
	movq	-568(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	leaq	L_.str.7(%rip), %rsi
	leaq	-560(%rbp), %rdx
	xorl	%eax, %eax
	callq	_fprintf
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_27
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movb	-304(%rbp), %al
	testb	%al, %al
	je	LBB0_26
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %r12
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movzbl	1(%r12), %eax
	incq	%r12
	testb	%al, %al
	jne	LBB0_9
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movb	(%r12), %al
	testb	%al, %al
	je	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$35, %al
	je	LBB0_26
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$91, %al
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcpy
	movb	(%r12), %al
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	-560(%rbp), %rbx
	testb	%al, %al
	je	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r15d, %r15d
	leaq	-560(%rbp), %rbx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=2
	movb	%al, (%rbx)
	incq	%rbx
LBB0_24:                                ##   in Loop: Header=BB0_17 Depth=2
	movzbl	1(%r12), %eax
	incq	%r12
	testb	%al, %al
	je	LBB0_25
LBB0_17:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=2
	cmpb	$34, %al
	jne	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=2
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	sete	%cl
	movb	$92, (%rbx)
	incq	%rbx
	movzbl	(%r12), %eax
	movl	%ecx, %r15d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_17 Depth=2
	movsbl	%al, %edi
	callq	_isspace
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=2
	movl	%ecx, %r15d
	jmp	LBB0_24
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=2
	movzbl	(%r12), %eax
	cmpb	$34, %al
	jne	LBB0_23
	jmp	LBB0_22
LBB0_1:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %eax
	jmp	LBB0_28
LBB0_4:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$1, %eax
	jmp	LBB0_28
LBB0_27:
	leaq	L_.str.8(%rip), %rdi
	movl	$2, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fwrite
	movq	%r14, %rdi
	callq	_fclose
	movq	%r15, %rdi
	callq	_fclose
	xorl	%eax, %eax
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_30
## %bb.29:
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage:\n%s <carthw.cfg> <carthw.c>\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"w"

L_.str.4:                               ## @.str.4
	.asciz	"/* generated by %s, do not modify */\n"

L_.str.5:                               ## @.str.5
	.asciz	"static const char builtin_carthw_cfg[] =\n"

L_.str.6:                               ## @.str.6
	.asciz	"[]"

L_.str.7:                               ## @.str.7
	.asciz	"  \"%s\\n\"\n"

L_.str.8:                               ## @.str.8
	.asciz	";\n"

L_str:                                  ## @str
	.asciz	"fopen failed"

.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, #528
	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, #-88]
	cmp	w0, #3
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [x21, #8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	mov	x19, x0
	ldr	x0, [x21, #16]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fopen
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh7:
	adrp	x0, l_str@PAGE
Lloh8:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #1
	b	LBB0_27
LBB0_3:
	ldr	x8, [x21]
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w0, #1
	b	LBB0_27
LBB0_4:
	mov	x20, x0
	ldr	x8, [x21]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	w1, #41
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
	add	x0, sp, #264
	mov	w1, #256
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_26
; %bb.5:
Lloh15:
	adrp	x21, l_.str.6@PAGE
Lloh16:
	add	x21, x21, l_.str.6@PAGEOFF
	add	x24, sp, #8
	mov	w25, #92
Lloh17:
	adrp	x22, l_.str.7@PAGE
Lloh18:
	add	x22, x22, l_.str.7@PAGEOFF
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, sp, #8
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	strb	wzr, [x26]
	str	x24, [sp]
	mov	x0, x20
	mov	x1, x22
	bl	_fprintf
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #264
	mov	w1, #256
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_26
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	ldrb	w8, [sp, #264]
	cbz	w8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x23, sp, #264
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isspace
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldrb	w8, [x23, #1]!
	cbnz	w8, LBB0_11
	b	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w8, [x23]
	cbz	w8, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, #35
	b.eq	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, #91
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_strcpy
	ldrb	w8, [x23]
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	w8, LBB0_6
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w27, #0
	add	x26, sp, #8
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	strb	w8, [x26], #1
	ldrb	w8, [x23, #1]!
	cbz	w8, LBB0_7
LBB0_20:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w27, LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_20 Depth=2
	and	w9, w8, #0xff
	cmp	w9, #34
	b.ne	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=2
	cmp	w27, #0
	cset	w27, eq
	strb	w25, [x26], #1
	ldrb	w8, [x23]
	b	LBB0_19
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=2
	sxtb	w0, w8
	bl	_isspace
	cbz	x0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=2
	mov	w27, #0
	ldrb	w8, [x23, #1]!
	cbnz	w8, LBB0_20
	b	LBB0_7
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=2
	ldrb	w8, [x23]
	b	LBB0_21
LBB0_26:
Lloh19:
	adrp	x0, l_.str.8@PAGE
Lloh20:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	w1, #2
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
	mov	x0, x19
	bl	_fclose
	mov	x0, x20
	bl	_fclose
	mov	w0, #0
LBB0_27:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	add	sp, sp, #528
	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_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage:\n%s <carthw.cfg> <carthw.c>\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"w"

l_.str.4:                               ; @.str.4
	.asciz	"/* generated by %s, do not modify */\n"

l_.str.5:                               ; @.str.5
	.asciz	"static const char builtin_carthw_cfg[] =\n"

l_.str.6:                               ; @.str.6
	.asciz	"[]"

l_.str.7:                               ; @.str.7
	.asciz	"  \"%s\\n\"\n"

l_.str.8:                               ; @.str.8
	.asciz	";\n"

l_str:                                  ; @str
	.asciz	"fopen failed"

.subsections_via_symbols
