	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecFindInitialMatchingSubPlans ## -- Begin function ExecFindInitialMatchingSubPlans
	.p2align	4, 0x90
_ExecFindInitialMatchingSubPlans:       ## @ExecFindInitialMatchingSubPlans
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movl	(%rdi), %edi
	callq	_Assert
	movl	32(%r15), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r12d
	cmpl	$0, 4(%r15)
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	8(%rdi), %r14
	movq	%r14, %rsi
	movl	$1, %edx
	movq	%r13, %rcx
	callq	_find_matching_subplans_recurse
	cmpq	$0, 40(%r14)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r14), %rax
	movl	(%rax), %edi
	callq	_ResetExprContext
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_1:
	xorl	%edi, %edi
LBB0_7:
	movq	8(%r15), %rsi
	callq	_bms_add_members
	movq	%rax, -48(%rbp)
	movl	%r12d, %edi
	callq	_MemoryContextSwitchTo
	movq	-48(%rbp), %rdi
	callq	_bms_copy
	movq	%rax, -48(%rbp)
	movl	32(%r15), %edi
	callq	_MemoryContextReset
	cmpq	$0, 24(%r15)
	je	LBB0_31
## %bb.8:
	movq	-48(%rbp), %rdi
	callq	_bms_num_members
	cmpl	%r13d, %eax
	jge	LBB0_31
## %bb.9:
	leal	(,%r13,4), %edi
	callq	_palloc0
	movq	%rax, %r12
	movq	-48(%rbp), %rdi
	movl	$-1, %esi
	callq	_bms_next_member
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	movl	%eax, %r14d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpl	%r13d, %r14d
	setl	%dil
	callq	_Assert
	movl	%r14d, %eax
	movl	%ebx, (%r12,%rax,4)
	incl	%ebx
	movq	-48(%rbp), %rdi
	movl	%r14d, %esi
	callq	_bms_next_member
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_11
LBB0_12:
	movl	4(%r15), %eax
	testl	%eax, %eax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_15
## %bb.13:
	xorl	%edx, %edx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
LBB0_27:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movslq	%eax, %rcx
	cmpq	%rcx, %rdx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jge	LBB0_15
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
	movq	16(%r15), %rcx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jg	LBB0_18
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=2
	cmpq	$2, -88(%rbp)                   ## 8-byte Folded Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	jl	LBB0_26
LBB0_18:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	decq	%rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r14
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	leaq	(%rax,%rax,2), %rbx
	shlq	$4, %rbx
	movl	(%r14,%rbx), %r13d
	movq	24(%r14,%rbx), %rdi
	callq	_bms_free
	movq	$0, 24(%r14,%rbx)
	testl	%r13d, %r13d
	jle	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	leaq	(%r14,%rbx), %r15
	addq	$24, %r15
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=3
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_bms_add_member
	movq	%rax, (%r15)
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=3
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_17
LBB0_20:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_18 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-16(%r15), %rax
	movl	(%rax,%rbx,4), %r14d
	testl	%r14d, %r14d
	js	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=3
	xorl	%edi, %edi
	cmpl	-72(%rbp), %r14d                ## 4-byte Folded Reload
	setl	%dil
	callq	_Assert
	movl	(%r12,%r14,4), %eax
	decl	%eax
	movq	-16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	cmpl	$0, (%r12,%r14,4)
	jg	LBB0_24
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=3
	movq	-8(%r15), %rax
	movl	(%rax,%rbx,4), %eax
	testl	%eax, %eax
	js	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=3
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	leaq	(%rax,%rax,2), %rax
	shlq	$4, %rax
	movq	24(%rcx,%rax), %rdi
	callq	_bms_is_empty
	testl	%eax, %eax
	jne	LBB0_25
	jmp	LBB0_24
LBB0_15:
	movq	8(%r15), %rdi
	movl	$-1, %esi
	callq	_bms_next_member
	testl	%eax, %eax
	js	LBB0_16
## %bb.28:
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movl	(%r12,%rax,4), %esi
	decl	%esi
	movq	%r15, %rdi
	callq	_bms_add_member
	movq	%rax, %r15
	movq	8(%r14), %rdi
	movl	%ebx, %esi
	callq	_bms_next_member
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_29
	jmp	LBB0_30
LBB0_16:
	xorl	%r15d, %r15d
LBB0_30:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	callq	_bms_free
	movq	%r15, 8(%rbx)
	movq	%r12, %rdi
	callq	_pfree
LBB0_31:
	movq	-48(%rbp), %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecFindInitialMatchingSubPlans ; -- Begin function ExecFindInitialMatchingSubPlans
	.p2align	2
_ExecFindInitialMatchingSubPlans:       ; @ExecFindInitialMatchingSubPlans
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x24, x0
	str	xzr, [sp, #24]
	ldr	w0, [x0]
	bl	_Assert
	ldr	w0, [x24, #32]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	ldr	w8, [x24, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x24, #4]
	cmp	x19, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #16]
	ldr	x0, [x8, x19, lsl #3]
	ldr	x22, [x0, #8]
	add	x3, sp, #24
	mov	x1, x22
	mov	w2, #1
	bl	_find_matching_subplans_recurse
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #32]
	ldr	w0, [x8]
	bl	_ResetExprContext
	b	LBB0_2
LBB0_5:
	ldr	x0, [sp, #24]
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	ldr	x1, [x24, #8]
	bl	_bms_add_members
	str	x0, [sp, #24]
	mov	x0, x21
	bl	_MemoryContextSwitchTo
	ldr	x0, [sp, #24]
	bl	_bms_copy
	str	x0, [sp, #24]
	ldr	w0, [x24, #32]
	bl	_MemoryContextReset
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_31
; %bb.8:
	ldr	x0, [sp, #24]
	bl	_bms_num_members
	cmp	w0, w20
	b.ge	LBB0_31
; %bb.9:
	lsl	w0, w20, #2
	bl	_palloc0
	mov	x21, x0
	ldr	x0, [sp, #24]
	mov	w1, #-1
	bl	_bms_next_member
	tbnz	w0, #31, LBB0_12
; %bb.10:
	mov	x22, x0
	mov	w19, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cmp	w22, w20
	cset	w0, lt
	bl	_Assert
	add	w23, w19, #1
	str	w19, [x21, w22, uxtw #2]
	ldr	x0, [sp, #24]
	mov	x1, x22
	bl	_bms_next_member
	mov	x22, x0
	mov	x19, x23
	tbz	w0, #31, LBB0_11
LBB0_12:
	ldr	w8, [x24, #4]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.13:
	mov	x10, #0
	str	x24, [sp]                       ; 8-byte Folded Spill
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	w8, [x8, #4]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldp	x24, x10, [sp]                  ; 16-byte Folded Reload
	add	x10, x10, #1
	cmp	x10, w8, sxtw
	b.ge	LBB0_26
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;       Child Loop BB0_22 Depth 3
	ldr	x9, [x24, #16]
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x25, [x9, x10, lsl #3]
	ldr	w26, [x25]
	cmp	w26, #1
	b.ge	LBB0_18
	b	LBB0_15
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	cmp	x26, #2
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
	b.lt	LBB0_14
LBB0_18:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_22 Depth 3
	sub	x8, x26, #1
	ldr	x23, [x25, #8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	and	x24, x8, #0xffffffff
	mov	w8, #48
	mul	x8, x24, x8
	add	x28, x23, x8
	ldr	w19, [x23, x8]
	ldr	x0, [x28, #24]!
	bl	_bms_free
	str	xzr, [x28]
	cmp	w19, #1
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x22, #0
	mov	w8, #48
	madd	x8, x24, x8, x23
	add	x23, x8, #8
	add	x24, x8, #16
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=3
	ldr	x0, [x28]
	mov	x1, x22
	bl	_bms_add_member
	str	x0, [x28]
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=3
	add	x22, x22, #1
	cmp	x19, x22
	b.eq	LBB0_17
LBB0_22:                                ;   Parent Loop BB0_16 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x23]
	ldr	w27, [x8, x22, lsl #2]
	tbnz	w27, #31, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=3
	cmp	w27, w20
	cset	w0, lt
	bl	_Assert
	lsl	x8, x27, #2
	ldr	w9, [x21, x8]
	sub	w9, w9, #1
	ldr	x10, [x23]
	str	w9, [x10, x22, lsl #2]
	ldr	w8, [x21, x8]
	cmp	w8, #0
	b.gt	LBB0_20
	b	LBB0_21
LBB0_24:                                ;   in Loop: Header=BB0_22 Depth=3
	ldr	x8, [x24]
	ldr	w8, [x8, x22, lsl #2]
	tbnz	w8, #31, LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=3
	ldr	x9, [x25, #8]
	mov	w10, #48
	madd	x8, x8, x10, x9
	ldr	x0, [x8, #24]
	bl	_bms_is_empty
	cbnz	w0, LBB0_21
	b	LBB0_20
LBB0_26:
	ldr	x0, [x24, #8]
	mov	w1, #-1
	bl	_bms_next_member
	tbnz	w0, #31, LBB0_29
; %bb.27:
	mov	x22, x0
	mov	x20, #0
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, w22, uxtw #2]
	sub	w1, w8, #1
	mov	x0, x20
	bl	_bms_add_member
	mov	x20, x0
	ldr	x0, [x24, #8]
	mov	x1, x22
	bl	_bms_next_member
	mov	x22, x0
	tbz	w0, #31, LBB0_28
	b	LBB0_30
LBB0_29:
	mov	x20, #0
LBB0_30:
	ldr	x0, [x24, #8]
	bl	_bms_free
	str	x20, [x24, #8]
	mov	x0, x21
	bl	_pfree
LBB0_31:
	ldr	x0, [sp, #24]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
