	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_lo_relation              ## -- Begin function close_lo_relation
	.p2align	4, 0x90
_close_lo_relation:                     ## @close_lo_relation
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ecx
	movq	_lo_heap_r@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_lo_index_r@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rdi, %rdx
	orq	%rax, %rdx
	je	LBB0_8
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.2:
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	movq	_TopTransactionResourceOwner@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_NoLock@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_index_close
	movq	(%rbx), %rdi
LBB0_4:
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_close
LBB0_6:
	movl	%r12d, (%r15)
LBB0_7:
	movq	$0, (%rbx)
	movq	$0, (%r14)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lo_heap_r,8,3                  ## @lo_heap_r
	.comm	_lo_index_r,8,3                 ## @lo_index_r
	.comm	_CurrentResourceOwner,4,2       ## @CurrentResourceOwner
	.comm	_TopTransactionResourceOwner,4,2 ## @TopTransactionResourceOwner
	.comm	_NoLock,4,2                     ## @NoLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_lo_relation              ; -- Begin function close_lo_relation
	.p2align	2
_close_lo_relation:                     ; @close_lo_relation
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x9, x0
Lloh0:
	adrp	x19, _lo_heap_r@GOTPAGE
Lloh1:
	ldr	x19, [x19, _lo_heap_r@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x20, _lo_index_r@GOTPAGE
Lloh3:
	ldr	x20, [x20, _lo_index_r@GOTPAGEOFF]
	ldr	x8, [x20]
	orr	x10, x0, x8
	cbz	x10, LBB0_8
; %bb.1:
	cbz	w9, LBB0_7
; %bb.2:
Lloh4:
	adrp	x21, _CurrentResourceOwner@GOTPAGE
Lloh5:
	ldr	x21, [x21, _CurrentResourceOwner@GOTPAGEOFF]
	ldr	w22, [x21]
Lloh6:
	adrp	x9, _TopTransactionResourceOwner@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TopTransactionResourceOwner@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x21]
Lloh9:
	adrp	x23, _NoLock@GOTPAGE
Lloh10:
	ldr	x23, [x23, _NoLock@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x23]
	mov	x0, x8
	bl	_index_close
	ldr	x0, [x19]
LBB0_4:
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x23]
	bl	_table_close
LBB0_6:
	str	w22, [x21]
LBB0_7:
	str	xzr, [x19]
	str	xzr, [x20]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_lo_heap_r,8,3                  ; @lo_heap_r
	.comm	_lo_index_r,8,3                 ; @lo_index_r
	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
	.comm	_TopTransactionResourceOwner,4,2 ; @TopTransactionResourceOwner
	.comm	_NoLock,4,2                     ; @NoLock
.subsections_via_symbols
