	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function output_reset
_output_reset:                          ## @output_reset
	.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
	movq	(%rdi), %rax
	cmpb	$124, (%rax)
	movl	8(%rdi), %edi
	jne	LBB0_2
## %bb.1:
	callq	_pclose
	jmp	LBB0_6
LBB0_2:
	callq	_output_file_close
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.3:
	movl	24(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_sqlite3_mprintf
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_system
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_utf8_printf
LBB0_5:
	movq	%r14, %rdi
	callq	_sqlite3_free
	movq	%rbx, %rdi
	callq	_outputModePop
	movq	$0, 16(%rbx)
	movl	$100, %edi
	callq	_sqlite3_sleep
LBB0_6:
	movq	(%rbx), %rax
	movb	$0, (%rax)
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open"

L_.str.1:                               ## @.str.1
	.asciz	"%s %s"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Failed: [%s]\n"

	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_output_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function output_reset
_output_reset:                          ; @output_reset
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldrb	w8, [x8]
	ldr	w0, [x0, #8]
	cmp	w8, #124
	b.ne	LBB0_2
; %bb.1:
	bl	_pclose
	b	LBB0_6
LBB0_2:
	bl	_output_file_close
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w2, [x19, #24]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sqlite3_mprintf
	mov	x20, x0
	bl	_system
	cbz	x0, LBB0_5
; %bb.4:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_utf8_printf
LBB0_5:
	mov	x0, x20
	bl	_sqlite3_free
	mov	x0, x19
	bl	_outputModePop
	str	xzr, [x19, #16]
	mov	w0, #100
	bl	_sqlite3_sleep
LBB0_6:
	ldr	x8, [x19]
	strb	wzr, [x8]
Lloh9:
	adrp	x8, _stdout@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open"

l_.str.1:                               ; @.str.1
	.asciz	"%s %s"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Failed: [%s]\n"

	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_output_reset
.subsections_via_symbols
