	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_asmfile
_open_asmfile:                          ## @open_asmfile
	.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	_dumpasm@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_outfile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.2:
	movq	_infile@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_base
	movl	%eax, %edi
	movl	$115, %esi
	callq	_replace_suffix
	movq	%rax, %rdi
LBB0_3:
	movq	_asmfile@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_format
	movq	_asmfile@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_mkstemps
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	_tmpfiles@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	callq	_vec_push
	movq	(%rbx), %rdi
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	_asmfile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_dumpasm,8,3                    ## @dumpasm
	.comm	_outfile,8,3                    ## @outfile
	.comm	_infile,4,2                     ## @infile
	.comm	_asmfile,8,3                    ## @asmfile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/tmp/8ccXXXXXX.s"

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

	.comm	_tmpfiles,4,2                   ## @tmpfiles
L_.str.2:                               ## @.str.2
	.asciz	"-"

	.comm	_stdout,8,3                     ## @stdout
L_.str.3:                               ## @.str.3
	.asciz	"w"

L_.str.4:                               ## @.str.4
	.asciz	"fopen"

	.no_dead_strip	_open_asmfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_asmfile
_open_asmfile:                          ; @open_asmfile
	.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	x8, _dumpasm@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dumpasm@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x19, _asmfile@GOTPAGE
Lloh4:
	ldr	x19, [x19, _asmfile@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _outfile@GOTPAGE
Lloh6:
	ldr	x8, [x8, _outfile@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _infile@GOTPAGE
Lloh9:
	ldr	x8, [x8, _infile@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_base
	mov	w1, #115
	bl	_replace_suffix
LBB0_3:
	str	x0, [x19]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_format
	str	x0, [x19]
	mov	w1, #2
	bl	_mkstemps
	cbz	w0, LBB0_11
LBB0_5:
Lloh13:
	adrp	x8, _tmpfiles@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tmpfiles@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_vec_push
	ldr	x0, [x19]
LBB0_6:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.7:
	ldr	x0, [x19]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fopen
	cbnz	x0, LBB0_10
; %bb.8:
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
	mov	x0, #0
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x8, _stdout@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_5
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_dumpasm,8,3                    ; @dumpasm
	.comm	_outfile,8,3                    ; @outfile
	.comm	_infile,4,2                     ; @infile
	.comm	_asmfile,8,3                    ; @asmfile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/tmp/8ccXXXXXX.s"

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

	.comm	_tmpfiles,4,2                   ; @tmpfiles
l_.str.2:                               ; @.str.2
	.asciz	"-"

	.comm	_stdout,8,3                     ; @stdout
l_.str.3:                               ; @.str.3
	.asciz	"w"

l_.str.4:                               ; @.str.4
	.asciz	"fopen"

	.no_dead_strip	_open_asmfile
.subsections_via_symbols
