	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function firebird_handle_closer
_firebird_handle_closer:                ## @firebird_handle_closer
	.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, %r14
	movq	24(%rdi), %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_6
## %bb.1:
	leaq	32(%rbx), %rsi
	cmpq	$0, 8(%r14)
	movl	28(%rbx), %edi
	je	LBB0_3
## %bb.2:
	callq	_isc_commit_transaction
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_RECORD_ERROR
LBB0_6:
	movl	28(%rbx), %edi
	leaq	24(%rbx), %rsi
	callq	_isc_detach_database
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_RECORD_ERROR
LBB0_8:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_efree
LBB0_10:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_efree
LBB0_12:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_efree
LBB0_14:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_pefree
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	callq	_isc_rollback_transaction
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_firebird_handle_closer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function firebird_handle_closer
_firebird_handle_closer:                ; @firebird_handle_closer
	.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	x20, x0
	ldp	x8, x19, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w0, [x19, #28]
	add	x1, x19, #32
	cbz	x8, LBB0_13
; %bb.2:
	bl	_isc_commit_transaction
	cbz	x0, LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_RECORD_ERROR
LBB0_4:
	ldr	w0, [x19, #28]
	add	x1, x19, #24
	bl	_isc_detach_database
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_RECORD_ERROR
LBB0_6:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_efree
LBB0_8:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_efree
LBB0_10:
	ldr	x0, [x19]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_efree
LBB0_12:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_pefree
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	_isc_rollback_transaction
	cbnz	x0, LBB0_3
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_firebird_handle_closer
.subsections_via_symbols
