	.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
	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
	movl	%edi, %ebx
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_setbuf
	movq	_delete_temp_files@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
	testq	%rax, %rax
	jne	LBB0_1
LBB0_2:
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_parseopt
	movq	_infile@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_lex_init
	xorl	%eax, %eax
	callq	_cpp_init
	xorl	%eax, %eax
	callq	_parse_init
	xorl	%eax, %eax
	callq	_open_asmfile
	movl	%eax, %edi
	callq	_set_output_file
	movq	_cppdefs@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_buf_len
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	callq	_buf_body
	movl	%eax, %edi
	callq	_read_from_string
LBB0_4:
	movq	_cpponly@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_preprocess
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_read_toplevels
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_vec_len
	testl	%eax, %eax
	jle	LBB0_10
## %bb.7:
	movq	_dumpast@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rdi
	callq	_emit_toplevel
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	movq	%r14, %rdi
	callq	_vec_len
	cmpl	%eax, %ebx
	jge	LBB0_10
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_vec_get
	cmpq	$0, (%r13)
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rdi
	callq	_node2s
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_printf
	jmp	LBB0_17
LBB0_10:
	xorl	%eax, %eax
	callq	_close_output_file
	movq	_dumpast@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_23
## %bb.11:
	movq	_dumpasm@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_23
## %bb.12:
	movq	_outfile@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_14
## %bb.13:
	movl	(%r12), %edi
	callq	_base
	movl	%eax, %edi
	movl	$111, %esi
	callq	_replace_suffix
	movq	%rax, (%rbx)
LBB0_14:
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_15
## %bb.18:
	je	LBB0_19
LBB0_21:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$0, -44(%rbp)
	jns	LBB0_23
## %bb.22:
	leaq	L_.str.7(%rip), %rdi
	callq	_error
LBB0_23:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_2
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_20
LBB0_19:
	callq	_main.cold.1
	leaq	L_.str.6(%rip), %rdi
LBB0_20:
	callq	_perror
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function main.cold.1
_main.cold.1:                           ## @main.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_outfile@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_asmfile@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	andq	$0, (%rsp)
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.5(%rip), %r8
	movq	%rdi, %rsi
	callq	_execlp
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.comm	_delete_temp_files,4,2          ## @delete_temp_files
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atexit"

	.comm	_infile,4,2                     ## @infile
	.comm	_cppdefs,4,2                    ## @cppdefs
	.comm	_cpponly,8,3                    ## @cpponly
	.comm	_dumpast,8,3                    ## @dumpast
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_dumpasm,4,2                    ## @dumpasm
	.comm	_outfile,8,3                    ## @outfile
L_.str.2:                               ## @.str.2
	.asciz	"fork"

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

L_.str.4:                               ## @.str.4
	.asciz	"-o"

L_.str.5:                               ## @.str.5
	.asciz	"-c"

	.comm	_asmfile,4,2                    ## @asmfile
L_.str.6:                               ## @.str.6
	.asciz	"execl failed"

L_.str.7:                               ## @.str.7
	.asciz	"as 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:
	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
Lloh0:
	adrp	x8, _stdout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_setbuf
Lloh3:
	adrp	x8, _delete_temp_files@GOTPAGE
Lloh4:
	ldr	x8, [x8, _delete_temp_files@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_atexit
	cbnz	x0, LBB0_19
LBB0_1:
	mov	x0, x20
	mov	x1, x19
	bl	_parseopt
Lloh6:
	adrp	x22, _infile@GOTPAGE
Lloh7:
	ldr	x22, [x22, _infile@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_lex_init
	bl	_cpp_init
	bl	_parse_init
	bl	_open_asmfile
	bl	_set_output_file
Lloh8:
	adrp	x19, _cppdefs@GOTPAGE
Lloh9:
	ldr	x19, [x19, _cppdefs@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_buf_len
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	w0, [x19]
	bl	_buf_body
	bl	_read_from_string
LBB0_3:
Lloh10:
	adrp	x8, _cpponly@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cpponly@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	bl	_preprocess
LBB0_5:
	bl	_read_toplevels
	mov	x19, x0
	bl	_vec_len
Lloh13:
	adrp	x23, _dumpast@GOTPAGE
Lloh14:
	ldr	x23, [x23, _dumpast@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.6:
	mov	w20, #0
Lloh15:
	adrp	x21, l_.str.1@PAGE
Lloh16:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_emit_toplevel
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w20, w20, #1
	mov	x0, x19
	bl	_vec_len
	cmp	w20, w0
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_vec_get
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_node2s
	mov	x1, x0
	mov	x0, x21
	bl	_printf
	b	LBB0_8
LBB0_11:
	bl	_close_output_file
	ldr	x8, [x23]
Lloh17:
	adrp	x9, _dumpasm@GOTPAGE
Lloh18:
	ldr	x9, [x9, _dumpasm@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, eq
	b.ne	LBB0_18
; %bb.12:
Lloh20:
	adrp	x19, _outfile@GOTPAGE
Lloh21:
	ldr	x19, [x19, _outfile@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_14
; %bb.13:
	ldr	w0, [x22]
	bl	_base
	mov	w1, #111
	bl	_replace_suffix
	str	x0, [x19]
LBB0_14:
	bl	_fork
	mov	x19, x0
	tbnz	x0, #63, LBB0_20
; %bb.15:
	cbz	x19, LBB0_21
LBB0_16:
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #0
	bl	_waitpid
	ldr	w8, [sp, #12]
	tbz	w8, #31, LBB0_18
; %bb.17:
Lloh22:
	adrp	x0, l_.str.7@PAGE
Lloh23:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_error
LBB0_18:
	mov	w0, #0
	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_19:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_1
LBB0_20:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_22
LBB0_21:
	bl	_main.cold.1
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_22:
	bl	_perror
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function main.cold.1
_main.cold.1:                           ; @main.cold.1
	.cfi_startproc
; %bb.0:
Lloh30:
	adrp	x8, _outfile@GOTPAGE
Lloh31:
	ldr	x8, [x8, _outfile@GOTPAGEOFF]
Lloh32:
	ldr	x3, [x8]
Lloh33:
	adrp	x8, _asmfile@GOTPAGE
Lloh34:
	ldr	x8, [x8, _asmfile@GOTPAGEOFF]
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh37:
	ldr	w5, [x8]
Lloh38:
	adrp	x2, l_.str.4@PAGE
Lloh39:
	add	x2, x2, l_.str.4@PAGEOFF
Lloh40:
	adrp	x4, l_.str.5@PAGE
Lloh41:
	add	x4, x4, l_.str.5@PAGEOFF
	mov	x1, x0
	mov	x6, #0
	b	_execlp
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.comm	_delete_temp_files,4,2          ; @delete_temp_files
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atexit"

	.comm	_infile,4,2                     ; @infile
	.comm	_cppdefs,4,2                    ; @cppdefs
	.comm	_cpponly,8,3                    ; @cpponly
	.comm	_dumpast,8,3                    ; @dumpast
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_dumpasm,4,2                    ; @dumpasm
	.comm	_outfile,8,3                    ; @outfile
l_.str.2:                               ; @.str.2
	.asciz	"fork"

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

l_.str.4:                               ; @.str.4
	.asciz	"-o"

l_.str.5:                               ; @.str.5
	.asciz	"-c"

	.comm	_asmfile,4,2                    ; @asmfile
l_.str.6:                               ; @.str.6
	.asciz	"execl failed"

l_.str.7:                               ; @.str.7
	.asciz	"as failed"

.subsections_via_symbols
