	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function search_plan_tree
_search_plan_tree:                      ## @search_plan_tree
	.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
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_nodeTag
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$12, %eax
	ja	LBB0_13
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	movl	(%r12), %edi
	callq	_RelationGetRelid
	movq	%r12, %rbx
	cmpl	%r15d, %eax
	je	LBB0_18
	jmp	LBB0_13
LBB0_14:
	leaq	8(%r12), %rax
	jmp	LBB0_16
LBB0_15:
	movq	%r12, %rax
LBB0_16:
	movq	(%rax), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_search_plan_tree
	movq	%rax, %rbx
LBB0_17:
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_18:
	cmpq	$0, (%r12)
	je	LBB0_20
## %bb.19:
	movl	$1, (%r14)
	jmp	LBB0_20
LBB0_3:
	cmpl	$0, (%r12)
	jle	LBB0_13
## %bb.4:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_search_plan_tree
	xorl	%ecx, %ecx
	testq	%rbx, %rbx
	setne	%cl
	testq	%rax, %rax
	movl	$8, %edx
	cmovel	%edx, %ecx
	testb	$1, %cl
	jne	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%rbx, %rbx
	movq	%rbx, %rcx
	cmoveq	%rax, %rcx
	testq	%rax, %rax
	cmovneq	%rcx, %rbx
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jl	LBB0_5
	jmp	LBB0_17
LBB0_7:
	cmpl	$0, (%r12)
	jle	LBB0_13
## %bb.8:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	testq	%rbx, %rbx
	movq	%rbx, %rcx
	cmoveq	%rax, %rcx
	testq	%rax, %rax
	cmovneq	%rcx, %rbx
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_17
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_search_plan_tree
	xorl	%ecx, %ecx
	testq	%rbx, %rbx
	setne	%cl
	testq	%rax, %rax
	movl	$5, %edx
	cmovel	%edx, %ecx
	cmpl	$5, %ecx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	testl	%ecx, %ecx
	je	LBB0_11
LBB0_13:
	xorl	%ebx, %ebx
LBB0_20:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_15
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_3
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_search_plan_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function search_plan_tree
_search_plan_tree:                      ; @search_plan_tree
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_nodeTag
	sub	w8, w0, #128
	cmp	w8, #12
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w0, [x20]
	bl	_RelationGetRelid
	mov	x22, x20
	cmp	w0, w21
	b.eq	LBB0_9
LBB0_4:
	mov	x22, #0
	b	LBB0_11
LBB0_5:
	add	x8, x20, #8
	b	LBB0_7
LBB0_6:
	mov	x8, x20
LBB0_7:
	ldr	x0, [x8]
	mov	x1, x21
	mov	x2, x19
	bl	_search_plan_tree
	mov	x22, x0
LBB0_8:
	cbz	x22, LBB0_11
LBB0_9:
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x19]
LBB0_11:
	mov	x0, 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
LBB0_12:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.13:
	mov	x23, #0
	mov	x22, #0
	mov	w24, #8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x23, lsl #3]
	mov	x1, x21
	mov	x2, x19
	bl	_search_plan_tree
	cmp	x22, #0
	cset	w8, ne
	cmp	x0, #0
	csel	w8, w24, w8, eq
	orr	w8, w8, #0x8
	cmp	w8, #8
	b.ne	LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	x22, #0
	csel	x8, x0, x22, eq
	cmp	x0, #0
	csel	x22, x22, x8, eq
	add	x23, x23, #1
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.lt	LBB0_14
	b	LBB0_8
LBB0_16:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.17:
	mov	x23, #0
	mov	x22, #0
	mov	w24, #5
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x23, lsl #3]
	mov	x1, x21
	mov	x2, x19
	bl	_search_plan_tree
	cmp	x22, #0
	cset	w8, ne
	cmp	x0, #0
	csel	w8, w24, w8, eq
	cmp	w8, #5
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_4
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	x22, #0
	csel	x8, x0, x22, eq
	cmp	x0, #0
	csel	x22, x22, x8, eq
	add	x23, x23, #1
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.lt	LBB0_18
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
                                        ; -- End function
	.no_dead_strip	_search_plan_tree
.subsections_via_symbols
