	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RevalidateCachedQuery
_RevalidateCachedQuery:                 ## @RevalidateCachedQuery
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpq	$0, 144(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	movq	%rbx, %rdi
	callq	_IsTransactionStmtPlan
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movl	(%rbx), %edi
	callq	_Assert
LBB0_13:
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_40:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, (%rbx)
	je	LBB0_15
## %bb.4:
	xorl	%edi, %edi
	cmpq	$0, 56(%rbx)
	setne	%dil
	callq	_Assert
	movq	56(%rbx), %rdi
	callq	_OverrideSearchPathMatchesCurrent
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	cmpl	$0, (%rbx)
	je	LBB0_15
## %bb.8:
	cmpq	$0, 64(%rbx)
	je	LBB0_12
## %bb.9:
	movq	8(%rbx), %r15
	xorl	%eax, %eax
	callq	_GetUserId
	cmpq	%rax, %r15
	jne	LBB0_15
## %bb.10:
	movq	16(%rbx), %rax
	movq	_row_security@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.11:
	cmpl	$0, (%rbx)
	je	LBB0_15
LBB0_12:
	movq	32(%rbx), %rdi
	movl	$1, %esi
	callq	_AcquirePlannerLocks
	cmpl	$0, (%rbx)
	jne	LBB0_13
## %bb.14:
	movq	32(%rbx), %rdi
	xorl	%esi, %esi
	callq	_AcquirePlannerLocks
	jmp	LBB0_15
LBB0_5:
	movq	136(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movl	$0, (%rax)
LBB0_15:
	movl	$0, (%rbx)
	movq	_NIL@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, 32(%rbx)
	movq	%rax, 80(%rbx)
	movq	%rax, 72(%rbx)
	movq	$0, 56(%rbx)
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	movq	$0, 40(%rbx)
	callq	_MemoryContextDelete
LBB0_17:
	movq	%rbx, %rdi
	callq	_ReleaseGenericPlan
	movl	24(%rbx), %edi
	callq	_Assert
	xorl	%eax, %eax
	callq	_ActiveSnapshotSet
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	callq	_GetTransactionSnapshot
	movl	%eax, %edi
	callq	_PushActiveSnapshot
LBB0_19:
	movq	128(%rbx), %rdi
	callq	_copyObject
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	120(%rbx), %rdx
	movl	112(%rbx), %esi
	testq	%rdx, %rdx
	je	LBB0_23
## %bb.22:
	movl	116(%rbx), %ecx
	movq	%rax, %rdi
	movq	%r14, %r8
	callq	_pg_analyze_and_rewrite_params
	jmp	LBB0_24
LBB0_20:
	movq	(%r12), %r14
	testl	%r15d, %r15d
	jne	LBB0_27
	jmp	LBB0_26
LBB0_23:
	movl	104(%rbx), %ecx
	movl	108(%rbx), %edx
	movq	%rax, %rdi
	movq	%r14, %r8
	callq	_pg_analyze_and_rewrite
LBB0_24:
	movq	%rax, %r14
	testl	%r15d, %r15d
	jne	LBB0_27
LBB0_26:
	xorl	%eax, %eax
	callq	_PopActiveSnapshot
LBB0_27:
	leaq	80(%rbx), %r15
	leaq	72(%rbx), %r12
	movq	%r14, %rdi
	callq	_PlanCacheComputeResultDesc
	movq	%rax, %r13
	movq	88(%rbx), %rsi
	testq	%rax, %rax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_28
## %bb.29:
	testq	%rsi, %rsi
	je	LBB0_31
## %bb.30:
	movq	%r13, %rdi
	callq	_equalTupleDescs
	testl	%eax, %eax
	jne	LBB0_39
	jmp	LBB0_31
LBB0_28:
	testq	%rsi, %rsi
	je	LBB0_39
LBB0_31:
	cmpq	$0, 96(%rbx)
	je	LBB0_33
## %bb.32:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_33:
	movq	48(%rbx), %rdi
	callq	_MemoryContextSwitchTo
	movq	%rax, %r15
	testq	%r13, %r13
	je	LBB0_34
## %bb.35:
	movq	%r13, %rdi
	callq	_CreateTupleDescCopy
	movq	%rax, %r12
	jmp	LBB0_36
LBB0_34:
	xorl	%r12d, %r12d
LBB0_36:
	movq	88(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_38
## %bb.37:
	callq	_FreeTupleDesc
LBB0_38:
	movq	%r12, 88(%rbx)
	movq	%r15, %rdi
	callq	_MemoryContextSwitchTo
LBB0_39:
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALLOCSET_START_SMALL_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_AllocSetContextCreate
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_MemoryContextSwitchTo
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_copyObject
	movq	%rax, %r15
	leaq	64(%rbx), %rcx
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_extract_query_dependencies
	xorl	%eax, %eax
	callq	_GetUserId
	movq	%rax, 8(%rbx)
	movq	_row_security@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%r13, %rdi
	callq	_GetOverrideSearchPath
	movq	%rax, 56(%rbx)
	movq	%r12, %rdi
	callq	_MemoryContextSwitchTo
	movq	48(%rbx), %rsi
	movq	%r13, %rdi
	callq	_MemoryContextSetParent
	movq	%r13, 40(%rbx)
	movq	%r15, 32(%rbx)
	movl	$1, (%rbx)
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_row_security,8,3               ## @row_security
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cached plan must not change result type"

	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
L_.str.1:                               ## @.str.1
	.asciz	"CachedPlanQuery"

	.comm	_ALLOCSET_START_SMALL_SIZES,4,2 ## @ALLOCSET_START_SMALL_SIZES
	.no_dead_strip	_RevalidateCachedQuery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RevalidateCachedQuery
_RevalidateCachedQuery:                 ; @RevalidateCachedQuery
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x8, [x0, #144]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x22, x1
	mov	x0, x19
	bl	_IsTransactionStmtPlan
	cbz	x0, LBB0_5
LBB0_2:
	ldr	w0, [x19]
	bl	_Assert
LBB0_3:
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x19]
Lloh3:
	adrp	x26, _row_security@GOTPAGE
Lloh4:
	ldr	x26, [x26, _row_security@GOTPAGEOFF]
	cbz	w8, LBB0_16
; %bb.6:
	ldr	x8, [x19, #56]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x0, [x19, #56]
	bl	_OverrideSearchPathMatchesCurrent
	cbz	w0, LBB0_14
; %bb.7:
	ldr	w8, [x19]
	cbz	w8, LBB0_16
; %bb.8:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_12
; %bb.9:
	ldr	x20, [x19, #8]
	bl	_GetUserId
	cmp	x20, x0
	b.ne	LBB0_16
; %bb.10:
	ldr	x8, [x19, #16]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.11:
	ldr	w8, [x19]
	cbz	w8, LBB0_16
LBB0_12:
	ldr	x0, [x19, #32]
	mov	w1, #1
	bl	_AcquirePlannerLocks
	ldr	w8, [x19]
	cbnz	w8, LBB0_3
; %bb.13:
	ldr	x0, [x19, #32]
	mov	w1, #0
	bl	_AcquirePlannerLocks
	b	LBB0_16
LBB0_14:
	ldr	x8, [x19, #136]
	cbz	x8, LBB0_16
; %bb.15:
	str	wzr, [x8]
LBB0_16:
	str	wzr, [x19]
Lloh5:
	adrp	x24, _NIL@GOTPAGE
Lloh6:
	ldr	x24, [x24, _NIL@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	x20, x19
	str	x8, [x20, #80]!
	str	x8, [x19, #32]
	mov	x21, x19
	str	x8, [x21, #72]!
	str	xzr, [x19, #56]
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_18
; %bb.17:
	str	xzr, [x19, #40]
	bl	_MemoryContextDelete
LBB0_18:
	mov	x0, x19
	bl	_ReleaseGenericPlan
	ldr	w0, [x19, #24]
	bl	_Assert
	bl	_ActiveSnapshotSet
	mov	x23, x0
	cbnz	w0, LBB0_20
; %bb.19:
	bl	_GetTransactionSnapshot
	bl	_PushActiveSnapshot
LBB0_20:
	ldr	x0, [x19, #128]
	bl	_copyObject
	cbz	x0, LBB0_23
; %bb.21:
	ldr	x2, [x19, #120]
	ldr	w1, [x19, #112]
	cbz	x2, LBB0_24
; %bb.22:
	ldr	w3, [x19, #116]
	mov	x4, x22
	bl	_pg_analyze_and_rewrite_params
	b	LBB0_25
LBB0_23:
	ldr	x22, [x24]
	cbnz	w23, LBB0_27
	b	LBB0_26
LBB0_24:
	ldp	w3, w2, [x19, #104]
	mov	x4, x22
	bl	_pg_analyze_and_rewrite
LBB0_25:
	mov	x22, x0
	cbnz	w23, LBB0_27
LBB0_26:
	bl	_PopActiveSnapshot
LBB0_27:
	mov	x0, x22
	bl	_PlanCacheComputeResultDesc
	mov	x23, x0
	ldr	x1, [x19, #88]
	cbz	x0, LBB0_30
; %bb.28:
	cbz	x1, LBB0_31
; %bb.29:
	mov	x0, x23
	bl	_equalTupleDescs
	cbnz	w0, LBB0_38
	b	LBB0_31
LBB0_30:
	cbz	x1, LBB0_38
LBB0_31:
	ldr	x8, [x19, #96]
	cbz	x8, LBB0_33
; %bb.32:
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w24, [x8]
Lloh10:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_errcode
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_33:
	ldr	x0, [x19, #48]
	bl	_MemoryContextSwitchTo
	mov	x24, x0
	cbz	x23, LBB0_35
; %bb.34:
	mov	x0, x23
	bl	_CreateTupleDescCopy
	mov	x23, x0
LBB0_35:
	ldr	x0, [x19, #88]
	cbz	x0, LBB0_37
; %bb.36:
	bl	_FreeTupleDesc
LBB0_37:
	str	x23, [x19, #88]
	mov	x0, x24
	bl	_MemoryContextSwitchTo
LBB0_38:
Lloh15:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _ALLOCSET_START_SMALL_SIZES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ALLOCSET_START_SMALL_SIZES@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_AllocSetContextCreate
	mov	x23, x0
	bl	_MemoryContextSwitchTo
	mov	x24, x0
	mov	x0, x22
	bl	_copyObject
	mov	x25, x0
	add	x3, x19, #64
	mov	x1, x20
	mov	x2, x21
	bl	_extract_query_dependencies
	bl	_GetUserId
	ldr	x8, [x26]
	stp	x0, x8, [x19, #8]
	mov	x0, x23
	bl	_GetOverrideSearchPath
	str	x0, [x19, #56]
	mov	x0, x24
	bl	_MemoryContextSwitchTo
	ldr	x1, [x19, #48]
	mov	x0, x23
	bl	_MemoryContextSetParent
	stp	x25, x23, [x19, #32]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_row_security,8,3               ; @row_security
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cached plan must not change result type"

	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
l_.str.1:                               ; @.str.1
	.asciz	"CachedPlanQuery"

	.comm	_ALLOCSET_START_SMALL_SIZES,4,2 ; @ALLOCSET_START_SMALL_SIZES
	.no_dead_strip	_RevalidateCachedQuery
.subsections_via_symbols
