	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lo_close                       ## -- Begin function lo_close
	.p2align	4, 0x90
_lo_close:                              ## @lo_close
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_lo_initialize
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
LBB0_5:
	movabsq	$17179869185, %rcx              ## imm = 0x400000001
	movq	%rcx, -48(%rbp)
	movl	%r14d, -40(%rbp)
	movl	(%rax), %esi
	movl	$1, (%rsp)
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r9
	movq	%rbx, %rdi
	movl	$1, %r8d
	callq	_PQfn
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	%rax, %r14
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_PQclear
	movl	$-1, %eax
	cmpq	%r15, %r14
	jne	LBB0_7
## %bb.6:
	movl	-52(%rbp), %eax
	jmp	LBB0_7
LBB0_3:
	movl	$-1, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PGRES_COMMAND_OK,8,3           ## @PGRES_COMMAND_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function lo_close
lCPI0_0:
	.long	1                               ; 0x1
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_lo_close
	.p2align	2
_lo_close:                              ; @lo_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cbnz	x8, LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_lo_initialize
	tbnz	x0, #63, LBB0_5
; %bb.3:
	ldr	x8, [x19]
LBB0_4:
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	str	w20, [sp, #16]
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x3, sp
	add	x5, sp, #8
	mov	x0, x19
	mov	w4, #1
	mov	w6, #1
	bl	_PQfn
	mov	x19, x0
	bl	_PQresultStatus
	mov	x20, x0
Lloh5:
	adrp	x8, _PGRES_COMMAND_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh7:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_PQclear
	ldr	w8, [sp, #4]
	cmp	x20, x21
	csinv	w0, w8, wzr, eq
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PGRES_COMMAND_OK,8,3           ; @PGRES_COMMAND_OK
.subsections_via_symbols
