	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecSubPlan                    ## -- Begin function ExecSubPlan
	.p2align	4, 0x90
_ExecSubPlan:                           ## @ExecSubPlan
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r13
	movq	(%rax), %r12
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	$0, (%r15)
	movq	(%r13), %rax
	movq	_CTE_SUBLINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movq	8(%r13), %rax
	movq	_NIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	(%r13), %rax
	movq	_MULTIEXPR_SUBLINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_5:
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	cmpq	$0, 16(%r13)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_ExecHashSubPlan
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_ExecScanSubPlan
LBB0_8:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTE_SUBLINK,8,3                ## @CTE_SUBLINK
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CTE subplans should not be executed via ExecSubPlan"

	.comm	_NIL,8,3                        ## @NIL
	.comm	_MULTIEXPR_SUBLINK,8,3          ## @MULTIEXPR_SUBLINK
L_.str.1:                               ## @.str.1
	.asciz	"cannot set parent params from subquery"

	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecSubPlan                    ; -- Begin function ExecSubPlan
	.p2align	2
_ExecSubPlan:                           ; @ExecSubPlan
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x8, x24, [x0]
	ldr	x22, [x8]
	ldr	w23, [x22]
	bl	_CHECK_FOR_INTERRUPTS
	str	wzr, [x19]
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _CTE_SUBLINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CTE_SUBLINK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	ldr	x8, [x24, #8]
Lloh8:
	adrp	x9, _NIL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NIL@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x24]
Lloh11:
	adrp	x9, _MULTIEXPR_SUBLINK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MULTIEXPR_SUBLINK@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_5:
Lloh19:
	adrp	x8, _ForwardScanDirection@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ForwardScanDirection@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x22]
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ExecHashSubPlan
	b	LBB0_8
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ExecScanSubPlan
LBB0_8:
	str	w23, [x22]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CTE_SUBLINK,8,3                ; @CTE_SUBLINK
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CTE subplans should not be executed via ExecSubPlan"

	.comm	_NIL,8,3                        ; @NIL
	.comm	_MULTIEXPR_SUBLINK,8,3          ; @MULTIEXPR_SUBLINK
l_.str.1:                               ; @.str.1
	.asciz	"cannot set parent params from subquery"

	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
.subsections_via_symbols
