	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CachedPlanSetParentContext     ## -- Begin function CachedPlanSetParentContext
	.p2align	4, 0x90
_CachedPlanSetParentContext:            ## @CachedPlanSetParentContext
	.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	_CACHEDPLANSOURCE_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movl	8(%rbx), %edi
	callq	_Assert
	cmpq	$0, 40(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	cmpq	$0, 32(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_4:
	movl	24(%rbx), %edi
	movl	%r14d, %esi
	callq	_MemoryContextSetParent
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%rax), %rax
	movq	_CACHEDPLAN_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	16(%rbx), %rax
	movl	8(%rax), %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_MemoryContextSetParent         ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHEDPLANSOURCE_MAGIC,8,3     ## @CACHEDPLANSOURCE_MAGIC
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot move a saved cached plan to another context"

L_.str.1:                               ## @.str.1
	.asciz	"cannot move a one-shot cached plan to another context"

	.comm	_CACHEDPLAN_MAGIC,8,3           ## @CACHEDPLAN_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CachedPlanSetParentContext     ; -- Begin function CachedPlanSetParentContext
	.p2align	2
_CachedPlanSetParentContext:            ; @CachedPlanSetParentContext
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CACHEDPLANSOURCE_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CACHEDPLANSOURCE_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x20, #8]
	bl	_Assert
	ldr	x8, [x20, #40]
Lloh3:
	adrp	x21, _ERROR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ERROR@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_4:
	ldr	w0, [x20, #24]
	mov	x1, x19
	bl	_MemoryContextSetParent
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _CACHEDPLAN_MAGIC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CACHEDPLAN_MAGIC@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #8]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_MemoryContextSetParent
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHEDPLANSOURCE_MAGIC,8,3     ; @CACHEDPLANSOURCE_MAGIC
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot move a saved cached plan to another context"

l_.str.1:                               ; @.str.1
	.asciz	"cannot move a one-shot cached plan to another context"

	.comm	_CACHEDPLAN_MAGIC,8,3           ; @CACHEDPLAN_MAGIC
.subsections_via_symbols
