	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReleaseCachedPlan              ## -- Begin function ReleaseCachedPlan
	.p2align	4, 0x90
_ReleaseCachedPlan:                     ## @ReleaseCachedPlan
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CACHEDPLAN_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	callq	_Assert
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_ResourceOwnerForgetPlanCacheRef
LBB0_2:
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	setg	%dil
	callq	_Assert
	decq	16(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	$0, (%rbx)
	cmpl	$0, 28(%rbx)
	je	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	24(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_MemoryContextDelete            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHEDPLAN_MAGIC,8,3           ## @CACHEDPLAN_MAGIC
	.comm	_CurrentResourceOwner,4,2       ## @CurrentResourceOwner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReleaseCachedPlan              ; -- Begin function ReleaseCachedPlan
	.p2align	2
_ReleaseCachedPlan:                     ; @ReleaseCachedPlan
	.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, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CACHEDPLAN_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CACHEDPLAN_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	cbz	w20, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_Assert
Lloh3:
	adrp	x8, _CurrentResourceOwner@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CurrentResourceOwner@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ResourceOwnerForgetPlanCacheRef
LBB0_2:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, gt
	bl	_Assert
	ldr	x8, [x19, #16]
	subs	x8, x8, #1
	str	x8, [x19, #16]
	b.ne	LBB0_4
; %bb.3:
	str	xzr, [x19]
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x19, #24]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MemoryContextDelete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHEDPLAN_MAGIC,8,3           ; @CACHEDPLAN_MAGIC
	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
.subsections_via_symbols
