	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_nestloop_plan
_create_nestloop_plan:                  ## @create_nestloop_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_build_path_tlist
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	40(%r15), %r14
	movl	(%rbx), %r12d
	movq	24(%r15), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_create_plan_recurse
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_bms_union
	movl	%eax, (%rbx)
	movq	32(%r15), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_create_plan_recurse
	movq	%rax, %r13
	movl	(%rbx), %edi
	callq	_bms_free
	movl	%r12d, (%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_order_qual_clauses
	movq	%rax, %r14
	movl	20(%r15), %edi
	callq	_IS_OUTER_JOIN
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r15), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	callq	_extract_actual_join_clauses
	cmpq	$0, (%r15)
	je	LBB0_5
LBB0_4:
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_replace_nestloop_params
	movq	%rax, -56(%rbp)
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_replace_nestloop_params
	movq	%rax, -48(%rbp)
LBB0_5:
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_identify_current_nestloop_params
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdx
	movl	16(%r15), %ebx
	movl	20(%r15), %r10d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	pushq	%rbx
	pushq	%r10
	callq	_make_nestloop
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_copy_generic_path_info
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_extract_actual_clauses
	movq	%rax, -56(%rbp)
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, (%r15)
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.no_dead_strip	_create_nestloop_plan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_nestloop_plan
_create_nestloop_plan:                  ; @create_nestloop_plan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x21, x0
	bl	_build_path_tlist
	mov	x20, x0
	ldr	x24, [x19, #40]
	ldr	w25, [x21]
	ldr	x1, [x19, #24]
	mov	x0, x21
	mov	w2, #0
	bl	_create_plan_recurse
	mov	x22, x0
	ldr	w0, [x21]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_bms_union
	str	w0, [x21]
	ldr	x1, [x19, #32]
	mov	x0, x21
	mov	w2, #0
	bl	_create_plan_recurse
	mov	x23, x0
	ldr	w0, [x21]
	bl	_bms_free
	str	w25, [x21]
	mov	x0, x21
	mov	x1, x24
	bl	_order_qual_clauses
	mov	x24, x0
	ldr	w0, [x19, #20]
	bl	_IS_OUTER_JOIN
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x24
	bl	_extract_actual_join_clauses
	ldr	x8, [x19]
	cbz	x8, LBB0_3
LBB0_2:
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_replace_nestloop_params
	str	x0, [sp, #8]
	ldr	x1, [sp]
	mov	x0, x21
	bl	_replace_nestloop_params
	str	x0, [sp]
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_identify_current_nestloop_params
	mov	x3, x0
	ldp	x2, x1, [sp]
	ldp	w7, w6, [x19, #16]
	mov	x0, x20
	mov	x4, x22
	mov	x5, x23
	bl	_make_nestloop
	mov	x20, x0
	mov	x1, x19
	bl	_copy_generic_path_info
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	mov	x0, x24
	mov	w1, #0
	bl	_extract_actual_clauses
	str	x0, [sp, #8]
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp]
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.no_dead_strip	_create_nestloop_plan
.subsections_via_symbols
