	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetOutput
_SetOutput:                             ## @SetOutput
	.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
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	movl	$-1, %edi
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_7
LBB0_3:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	callq	_fileno
	movl	%eax, %edi
LBB0_8:
	movq	16(%rbx), %rax
	movq	_archModeAppend@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.9:
	testl	%edi, %edi
	js	LBB0_12
## %bb.10:
	callq	_dup
	movq	_PG_BINARY_A@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_13:
	testl	%edi, %edi
	js	LBB0_15
## %bb.14:
	callq	_dup
	movq	_PG_BINARY_W@GOTPCREL(%rip), %rcx
LBB0_11:
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_fdopen
	jmp	LBB0_17
LBB0_12:
	movq	_PG_BINARY_A@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_PG_BINARY_W@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_fopen
LBB0_17:
	movq	%rax, 24(%rbx)
	movl	$0, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_18
## %bb.20:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_18:
	testq	%r14, %r14
	je	LBB0_19
## %bb.21:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fatal                          ## TAILCALL
LBB0_4:
	movq	(%rbx), %r14
	movl	$-1, %edi
	testq	%r14, %r14
	jne	LBB0_8
## %bb.5:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_6
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fatal                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

	.comm	_stdout,8,3                     ## @stdout
	.comm	_archModeAppend,8,3             ## @archModeAppend
	.comm	_PG_BINARY_A,4,2                ## @PG_BINARY_A
	.comm	_PG_BINARY_W,4,2                ## @PG_BINARY_W
L_.str.1:                               ## @.str.1
	.asciz	"could not open output file \"%s\": %m"

L_.str.2:                               ## @.str.2
	.asciz	"could not open output file: %m"

	.no_dead_strip	_SetOutput
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetOutput
_SetOutput:                             ; @SetOutput
	.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, x0
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_6
LBB0_2:
	mov	w0, #-1
	b	LBB0_8
LBB0_3:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_5
; %bb.4:
	mov	x19, #0
	b	LBB0_7
LBB0_5:
	ldr	x19, [x20]
	cbnz	x19, LBB0_2
LBB0_6:
Lloh2:
	adrp	x8, _stdout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
LBB0_7:
	bl	_fileno
LBB0_8:
	ldr	x8, [x20, #16]
Lloh5:
	adrp	x9, _archModeAppend@GOTPAGE
Lloh6:
	ldr	x9, [x9, _archModeAppend@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	tbnz	w0, #31, LBB0_14
; %bb.10:
	bl	_dup
Lloh8:
	adrp	x8, _PG_BINARY_A@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PG_BINARY_A@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	tbnz	w0, #31, LBB0_15
; %bb.12:
	bl	_dup
Lloh10:
	adrp	x8, _PG_BINARY_W@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PG_BINARY_W@GOTPAGEOFF]
LBB0_13:
	ldr	w1, [x8]
	bl	_fdopen
	b	LBB0_17
LBB0_14:
Lloh12:
	adrp	x8, _PG_BINARY_A@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PG_BINARY_A@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh14:
	adrp	x8, _PG_BINARY_W@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PG_BINARY_W@GOTPAGEOFF]
LBB0_16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fopen
LBB0_17:
	str	x0, [x20, #24]
	str	wzr, [x20, #8]
	cbnz	x0, LBB0_20
; %bb.18:
	cbz	x19, LBB0_21
; %bb.19:
	str	x19, [sp]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_21:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_fatal
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

	.comm	_stdout,8,3                     ; @stdout
	.comm	_archModeAppend,8,3             ; @archModeAppend
	.comm	_PG_BINARY_A,4,2                ; @PG_BINARY_A
	.comm	_PG_BINARY_W,4,2                ; @PG_BINARY_W
l_.str.1:                               ; @.str.1
	.asciz	"could not open output file \"%s\": %m"

l_.str.2:                               ; @.str.2
	.asciz	"could not open output file: %m"

	.no_dead_strip	_SetOutput
.subsections_via_symbols
