	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_plan                    ## -- Begin function create_plan
	.p2align	4, 0x90
_create_plan:                           ## @create_plan
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_NIL@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_Assert
	movq	$0, 24(%rbx)
	movq	(%r15), %rax
	movq	%rax, 8(%rbx)
	movq	_CP_EXACT_TLIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_create_plan_recurse
	movq	%rax, %r14
	movq	_ModifyTable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IsA
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movl	16(%rbx), %esi
	callq	_apply_tlist_labeling
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_SS_attach_initplans
	movq	8(%rbx), %rax
	cmpq	(%r15), %rax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movq	(%r15), %rax
LBB0_4:
	movq	%rax, (%rbx)
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_CP_EXACT_TLIST,4,2             ## @CP_EXACT_TLIST
	.comm	_ModifyTable,4,2                ## @ModifyTable
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to assign all NestLoopParams to plan nodes"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_plan                    ; -- Begin function create_plan
	.p2align	2
_create_plan:                           ; @create_plan
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _NIL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NIL@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	str	xzr, [x19, #24]
	ldr	x8, [x21]
	str	x8, [x19, #8]
Lloh2:
	adrp	x8, _CP_EXACT_TLIST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CP_EXACT_TLIST@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_create_plan_recurse
	mov	x20, x0
Lloh5:
	adrp	x8, _ModifyTable@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ModifyTable@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_IsA
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	ldr	w1, [x19, #16]
	bl	_apply_tlist_labeling
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_SS_attach_initplans
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	ldr	x8, [x21]
LBB0_4:
	str	x8, [x19]
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_CP_EXACT_TLIST,4,2             ; @CP_EXACT_TLIST
	.comm	_ModifyTable,4,2                ; @ModifyTable
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to assign all NestLoopParams to plan nodes"

.subsections_via_symbols
