	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setQFout                       ## -- Begin function setQFout
	.p2align	4, 0x90
_setQFout:                              ## @setQFout
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	leaq	-24(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	callq	_openQueryOutputFile
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_pset@GOTPCREL(%rip), %rbx
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.3:
	movq	_stdout@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_8
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_8
## %bb.5:
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.6:
	callq	_pclose
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	callq	_fclose
LBB0_8:
	movq	-24(%rbp), %rax
	movq	%rax, 8(%rbx)
	movl	-12(%rbp), %edi
	movl	%edi, (%rbx)
	callq	_set_sigpipe_trap_state
	xorl	%eax, %eax
	callq	_restore_sigpipe_trap
	movl	$1, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pset,16,3                      ## @pset
	.comm	_stdout,8,3                     ## @stdout
	.comm	_stderr,8,3                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setQFout                       ; -- Begin function setQFout
	.p2align	2
_setQFout:                              ; @setQFout
	.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
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_openQueryOutputFile
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x19, _pset@GOTPAGE
Lloh1:
	ldr	x19, [x19, _pset@GOTPAGEOFF]
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x8, _stdout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _stderr@GOTPAGE
Lloh6:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x0, #0
	ccmp	x0, x8, #4, ne
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_5
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.3:
	bl	_pclose
	b	LBB0_5
LBB0_4:
	bl	_fclose
LBB0_5:
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
	ldr	w0, [sp, #4]
	str	w0, [x19]
	bl	_set_sigpipe_trap_state
	bl	_restore_sigpipe_trap
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pset,16,3                      ; @pset
	.comm	_stdout,8,3                     ; @stdout
	.comm	_stderr,8,3                     ; @stderr
.subsections_via_symbols
