	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ri_FetchPreparedPlan
_ri_FetchPreparedPlan:                  ## @ri_FetchPreparedPlan
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ri_query_cache@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_ri_InitHashTables
	movl	(%rbx), %edi
LBB0_2:
	movq	_HASH_FIND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_hash_search
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rbx
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_SPI_plan_is_valid
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	$0, (%rbx)
	movq	%r15, %rdi
	callq	_SPI_freeplan
	jmp	LBB0_7
LBB0_6:
	movq	$0, (%rbx)
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ri_query_cache,4,2             ## @ri_query_cache
	.comm	_HASH_FIND,4,2                  ## @HASH_FIND
	.no_dead_strip	_ri_FetchPreparedPlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ri_FetchPreparedPlan
_ri_FetchPreparedPlan:                  ; @ri_FetchPreparedPlan
	.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	x19, x0
Lloh0:
	adrp	x20, _ri_query_cache@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ri_query_cache@GOTPAGEOFF]
	ldr	w0, [x20]
	cbnz	w0, LBB0_2
; %bb.1:
	bl	_ri_InitHashTables
	ldr	w0, [x20]
LBB0_2:
Lloh2:
	adrp	x8, _HASH_FIND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HASH_FIND@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x19
	mov	x3, #0
	bl	_hash_search
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	ldr	x19, [x0]
	cbz	x19, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_SPI_plan_is_valid
	cbnz	x0, LBB0_8
; %bb.5:
	str	xzr, [x20]
	mov	x0, x19
	bl	_SPI_freeplan
LBB0_6:
	mov	x19, #0
	b	LBB0_8
LBB0_7:
	str	xzr, [x20]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ri_query_cache,4,2             ; @ri_query_cache
	.comm	_HASH_FIND,4,2                  ; @HASH_FIND
	.no_dead_strip	_ri_FetchPreparedPlan
.subsections_via_symbols
