	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DisconnectDatabase             ## -- Begin function DisconnectDatabase
	.p2align	4, 0x90
_DisconnectDatabase:                    ## @DisconnectDatabase
	.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	%rdi, %rbx
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.2:
	callq	_PQtransactionStatus
	movq	_PQTRANS_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdi
	leaq	-9(%rbp), %rsi
	movl	$1, %edx
	callq	_PQcancel
LBB0_4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_set_archive_cancel_info
	movq	(%rbx), %rdi
LBB0_5:
	callq	_PQfinish
	movq	$0, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PQTRANS_ACTIVE,8,3             ## @PQTRANS_ACTIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DisconnectDatabase             ; -- Begin function DisconnectDatabase
	.p2align	2
_DisconnectDatabase:                    ; @DisconnectDatabase
	.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	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.2:
	bl	_PQtransactionStatus
Lloh0:
	adrp	x8, _PQTRANS_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PQTRANS_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	add	x1, sp, #15
	mov	w2, #1
	bl	_PQcancel
LBB0_4:
	mov	x0, x19
	mov	x1, #0
	bl	_set_archive_cancel_info
	ldr	x0, [x19]
LBB0_5:
	bl	_PQfinish
	str	xzr, [x19]
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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PQTRANS_ACTIVE,8,3             ; @PQTRANS_ACTIVE
.subsections_via_symbols
