	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ResourceOwnerReleaseInternal
_ResourceOwnerReleaseInternal:          ## @ResourceOwnerReleaseInternal
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	72(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_ResourceOwnerReleaseInternal
	movq	64(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_2:
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r14, (%rax)
	movq	_RESOURCE_RELEASE_BEFORE_LOCKS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_8
## %bb.3:
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	60(%r14), %rbx
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	leaq	-44(%rbp), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %edi
	callq	_ReleaseBuffer
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	callq	_DatumGetBuffer
	movl	%eax, %r14d
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %edi
	callq	_PrintBufferLeakWarning
	jmp	LBB0_5
LBB0_8:
	movq	_RESOURCE_RELEASE_LOCKS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_25
## %bb.9:
	testl	%r13d, %r13d
	je	LBB0_55
## %bb.10:
	movq	_TopTransactionResourceOwner@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_61
## %bb.11:
	movl	%r12d, %edi
	callq	_ProcReleaseLocks
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_ReleasePredicateLocks
	jmp	LBB0_61
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	56(%rax), %r14
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	leaq	-44(%rbp), %r13
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %edi
	callq	_RelationClose
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_17
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	callq	_DatumGetPointer
	movq	%rax, %rbx
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %edi
	callq	_PrintRelCacheLeakWarning
	jmp	LBB0_14
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	52(%rax), %r14
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_22
## %bb.18:
	leaq	-44(%rbp), %r13
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rdi
	callq	_dsm_detach
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_22
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	callq	_DatumGetPointer
	movq	%rax, %rbx
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rdi
	callq	_PrintDSMLeakWarning
	jmp	LBB0_19
LBB0_22:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addq	$48, %rbx
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_61
## %bb.23:
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	callq	_PointerGetDatum
	movq	%rax, %rdi
	callq	_jit_release_context
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	jne	LBB0_24
	jmp	LBB0_61
LBB0_25:
	movq	_RESOURCE_RELEASE_AFTER_LOCKS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_61
## %bb.26:
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	addq	$24, %r14
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_31
## %bb.27:
	leaq	-44(%rbp), %r13
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	movl	%ebx, %edi
	callq	_ReleaseCatCache
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_31
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	callq	_DatumGetPointer
	movq	%rax, %rbx
	testl	%r12d, %r12d
	je	LBB0_28
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movl	%ebx, %edi
	callq	_PrintCatCacheLeakWarning
	jmp	LBB0_28
LBB0_31:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	20(%rax), %r14
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_36
## %bb.32:
	leaq	-44(%rbp), %r13
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	%rbx, %rdi
	callq	_ReleaseCatCacheList
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_36
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	callq	_DatumGetPointer
	movq	%rax, %rbx
	testl	%r12d, %r12d
	je	LBB0_33
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%rbx, %rdi
	callq	_PrintCatCacheListLeakWarning
	jmp	LBB0_33
LBB0_36:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %r13
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_41
## %bb.37:
	leaq	-44(%rbp), %r14
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_39 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ReleaseCachedPlan
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_41
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	callq	_DatumGetPointer
	movq	%rax, %rbx
	testl	%r12d, %r12d
	je	LBB0_38
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=1
	movq	%rbx, %rdi
	callq	_PrintPlanCacheLeakWarning
	jmp	LBB0_38
LBB0_41:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	12(%rax), %r14
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_46
## %bb.42:
	leaq	-44(%rbp), %r13
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_44 Depth=1
	movl	%ebx, %edi
	callq	_DecrTupleDescRefCount
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_46
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	callq	_DatumGetPointer
	movq	%rax, %rbx
	testl	%r12d, %r12d
	je	LBB0_43
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=1
	movl	%ebx, %edi
	callq	_PrintTupleDescLeakWarning
	jmp	LBB0_43
LBB0_46:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r14
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_51
## %bb.47:
	leaq	-44(%rbp), %r13
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_49 Depth=1
	movl	%ebx, %edi
	callq	_UnregisterSnapshot
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_51
LBB0_49:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	callq	_DatumGetPointer
	movq	%rax, %rbx
	testl	%r12d, %r12d
	je	LBB0_48
## %bb.50:                              ##   in Loop: Header=BB0_49 Depth=1
	movl	%ebx, %edi
	callq	_PrintSnapshotLeakWarning
	jmp	LBB0_48
LBB0_51:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	addq	$4, %r14
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_53
	jmp	LBB0_61
	.p2align	4, 0x90
LBB0_52:                                ##   in Loop: Header=BB0_53 Depth=1
	movl	%ebx, %edi
	callq	_FileClose
	movq	%r14, %rdi
	leaq	-44(%rbp), %rsi
	callq	_ResourceArrayGetAny
	testq	%rax, %rax
	je	LBB0_61
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	callq	_DatumGetFile
	movl	%eax, %ebx
	testl	%r12d, %r12d
	je	LBB0_52
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=1
	movl	%ebx, %edi
	callq	_PrintFileLeakWarning
	jmp	LBB0_52
LBB0_55:
	xorl	%edi, %edi
	cmpq	$0, 40(%r14)
	setne	%dil
	callq	_Assert
	movl	(%r14), %esi
	movq	_MAX_RESOWNER_LOCKS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jle	LBB0_59
## %bb.56:
	xorl	%esi, %esi
	xorl	%edi, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	testl	%r12d, %r12d
	je	LBB0_60
LBB0_58:
	callq	_LockReassignCurrentOwner
	jmp	LBB0_61
LBB0_59:
	movq	32(%r14), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	testl	%r12d, %r12d
	jne	LBB0_58
LBB0_60:
	callq	_LockReleaseCurrentOwner
LBB0_61:
	movq	_ResourceRelease_callbacks@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_63
	.p2align	4, 0x90
LBB0_62:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	*8(%rbx)
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_62
LBB0_63:
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentResourceOwner,8,3       ## @CurrentResourceOwner
	.comm	_RESOURCE_RELEASE_BEFORE_LOCKS,4,2 ## @RESOURCE_RELEASE_BEFORE_LOCKS
	.comm	_RESOURCE_RELEASE_LOCKS,4,2     ## @RESOURCE_RELEASE_LOCKS
	.comm	_TopTransactionResourceOwner,8,3 ## @TopTransactionResourceOwner
	.comm	_MAX_RESOWNER_LOCKS,4,2         ## @MAX_RESOWNER_LOCKS
	.comm	_RESOURCE_RELEASE_AFTER_LOCKS,4,2 ## @RESOURCE_RELEASE_AFTER_LOCKS
	.comm	_ResourceRelease_callbacks,8,3  ## @ResourceRelease_callbacks
	.no_dead_strip	_ResourceOwnerReleaseInternal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ResourceOwnerReleaseInternal
_ResourceOwnerReleaseInternal:          ; @ResourceOwnerReleaseInternal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x0, #72]
	cbz	x23, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_ResourceOwnerReleaseInternal
	ldr	x23, [x23, #64]
	cbnz	x23, LBB0_1
LBB0_2:
Lloh0:
	adrp	x25, _CurrentResourceOwner@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CurrentResourceOwner@GOTPAGEOFF]
	ldr	x26, [x25]
	str	x22, [x25]
Lloh2:
	adrp	x8, _RESOURCE_RELEASE_BEFORE_LOCKS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RESOURCE_RELEASE_BEFORE_LOCKS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.3:
	add	x23, x22, #60
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_ReleaseBuffer
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x23
	bl	_ResourceArrayGetAny
	cbz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #12]
	bl	_DatumGetBuffer
	mov	x24, x0
	cbz	w20, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_PrintBufferLeakWarning
	b	LBB0_4
LBB0_8:
Lloh5:
	adrp	x8, _RESOURCE_RELEASE_LOCKS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RESOURCE_RELEASE_LOCKS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_25
; %bb.9:
	cbz	w19, LBB0_56
; %bb.10:
Lloh8:
	adrp	x8, _TopTransactionResourceOwner@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TopTransactionResourceOwner@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_61
; %bb.11:
	mov	x0, x20
	bl	_ProcReleaseLocks
	mov	x0, x20
	mov	w1, #0
	bl	_ReleasePredicateLocks
	b	LBB0_61
LBB0_12:
	add	x23, x22, #56
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	bl	_RelationClose
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x23
	bl	_ResourceArrayGetAny
	cbz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [sp, #12]
	bl	_DatumGetPointer
	mov	x24, x0
	cbz	w20, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	bl	_PrintRelCacheLeakWarning
	b	LBB0_13
LBB0_17:
	add	x23, x22, #52
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x24
	bl	_dsm_detach
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x23
	bl	_ResourceArrayGetAny
	cbz	x0, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [sp, #12]
	bl	_DatumGetPointer
	mov	x24, x0
	cbz	w20, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x24
	bl	_PrintDSMLeakWarning
	b	LBB0_18
LBB0_22:
	add	x22, x22, #48
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x22
	bl	_ResourceArrayGetAny
	cbz	x0, LBB0_61
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [sp, #12]
	bl	_PointerGetDatum
	bl	_jit_release_context
	b	LBB0_23
LBB0_25:
Lloh11:
	adrp	x8, _RESOURCE_RELEASE_AFTER_LOCKS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RESOURCE_RELEASE_AFTER_LOCKS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_61
; %bb.26:
	add	x23, x22, #24
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	mov	x0, x24
	bl	_ReleaseCatCache
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x23
	bl	_ResourceArrayGetAny
	cbz	x0, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	w0, [sp, #12]
	bl	_DatumGetPointer
	mov	x24, x0
	cbz	w20, LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x0, x24
	bl	_PrintCatCacheLeakWarning
	b	LBB0_27
LBB0_31:
	add	x23, x22, #20
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x24
	bl	_ReleaseCatCacheList
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x23
	bl	_ResourceArrayGetAny
	cbz	x0, LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	w0, [sp, #12]
	bl	_DatumGetPointer
	mov	x24, x0
	cbz	w20, LBB0_32
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x24
	bl	_PrintCatCacheListLeakWarning
	b	LBB0_32
LBB0_36:
	add	x23, x22, #16
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=1
	mov	x0, x24
	mov	w1, #1
	bl	_ReleaseCachedPlan
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x23
	bl	_ResourceArrayGetAny
	cbz	x0, LBB0_41
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	ldr	w0, [sp, #12]
	bl	_DatumGetPointer
	mov	x24, x0
	cbz	w20, LBB0_37
; %bb.40:                               ;   in Loop: Header=BB0_38 Depth=1
	mov	x0, x24
	bl	_PrintPlanCacheLeakWarning
	b	LBB0_37
LBB0_41:
	add	x23, x22, #12
	b	LBB0_43
LBB0_42:                                ;   in Loop: Header=BB0_43 Depth=1
	mov	x0, x24
	bl	_DecrTupleDescRefCount
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x23
	bl	_ResourceArrayGetAny
	cbz	x0, LBB0_46
; %bb.44:                               ;   in Loop: Header=BB0_43 Depth=1
	ldr	w0, [sp, #12]
	bl	_DatumGetPointer
	mov	x24, x0
	cbz	w20, LBB0_42
; %bb.45:                               ;   in Loop: Header=BB0_43 Depth=1
	mov	x0, x24
	bl	_PrintTupleDescLeakWarning
	b	LBB0_42
LBB0_46:
	add	x23, x22, #8
	b	LBB0_48
LBB0_47:                                ;   in Loop: Header=BB0_48 Depth=1
	mov	x0, x24
	bl	_UnregisterSnapshot
LBB0_48:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x23
	bl	_ResourceArrayGetAny
	cbz	x0, LBB0_51
; %bb.49:                               ;   in Loop: Header=BB0_48 Depth=1
	ldr	w0, [sp, #12]
	bl	_DatumGetPointer
	mov	x24, x0
	cbz	w20, LBB0_47
; %bb.50:                               ;   in Loop: Header=BB0_48 Depth=1
	mov	x0, x24
	bl	_PrintSnapshotLeakWarning
	b	LBB0_47
LBB0_51:
	add	x22, x22, #4
	b	LBB0_53
LBB0_52:                                ;   in Loop: Header=BB0_53 Depth=1
	mov	x0, x23
	bl	_FileClose
LBB0_53:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x22
	bl	_ResourceArrayGetAny
	cbz	x0, LBB0_61
; %bb.54:                               ;   in Loop: Header=BB0_53 Depth=1
	ldr	w0, [sp, #12]
	bl	_DatumGetFile
	mov	x23, x0
	cbz	w20, LBB0_52
; %bb.55:                               ;   in Loop: Header=BB0_53 Depth=1
	mov	x0, x23
	bl	_PrintFileLeakWarning
	b	LBB0_52
LBB0_56:
	ldr	x8, [x22, #40]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	w1, [x22]
Lloh14:
	adrp	x8, _MAX_RESOWNER_LOCKS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX_RESOWNER_LOCKS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w1, w8
	b.le	LBB0_59
; %bb.57:
	mov	w1, #0
	mov	x0, #0
	cbz	w20, LBB0_60
LBB0_58:
	bl	_LockReassignCurrentOwner
	b	LBB0_61
LBB0_59:
	ldr	x0, [x22, #32]
	cbnz	w20, LBB0_58
LBB0_60:
	bl	_LockReleaseCurrentOwner
LBB0_61:
Lloh17:
	adrp	x8, _ResourceRelease_callbacks@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ResourceRelease_callbacks@GOTPAGEOFF]
Lloh19:
	ldr	x22, [x8]
	cbz	x22, LBB0_63
LBB0_62:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w3, [x22]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x8
	ldr	x22, [x22, #16]
	cbnz	x22, LBB0_62
LBB0_63:
	str	x26, [x25]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentResourceOwner,8,3       ; @CurrentResourceOwner
	.comm	_RESOURCE_RELEASE_BEFORE_LOCKS,4,2 ; @RESOURCE_RELEASE_BEFORE_LOCKS
	.comm	_RESOURCE_RELEASE_LOCKS,4,2     ; @RESOURCE_RELEASE_LOCKS
	.comm	_TopTransactionResourceOwner,8,3 ; @TopTransactionResourceOwner
	.comm	_MAX_RESOWNER_LOCKS,4,2         ; @MAX_RESOWNER_LOCKS
	.comm	_RESOURCE_RELEASE_AFTER_LOCKS,4,2 ; @RESOURCE_RELEASE_AFTER_LOCKS
	.comm	_ResourceRelease_callbacks,8,3  ; @ResourceRelease_callbacks
	.no_dead_strip	_ResourceOwnerReleaseInternal
.subsections_via_symbols
