	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spool_tuples
_spool_tuples:                          ## @spool_tuples
	.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	%rdi, %r12
	movl	12(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.1:
	cmpl	$0, (%r12)
	je	LBB0_2
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%esi, %ebx
	movq	40(%r12), %r13
	callq	_tuplestore_in_memory
	xorl	%r14d, %r14d
	cmpl	$1, %eax
	sbbl	%r14d, %r14d
	orl	%ebx, %r14d
	movq	%r12, %rdi
	callq	_outerPlanState
	movq	%rax, %r15
	movq	32(%r12), %rax
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %r14d
	je	LBB0_4
## %bb.3:
	cmpl	%r14d, 4(%r12)
	jg	LBB0_12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%r13)
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r12), %rsi
	movl	16(%r12), %eax
	movl	%eax, 8(%rsi)
	movq	%rbx, (%rsi)
	movl	20(%r12), %edi
	callq	_ExecQualAndReset
	testl	%eax, %eax
	je	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r12), %edi
	movq	%rbx, %rsi
	callq	_tuplestore_puttupleslot
	movl	4(%r12), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%r12)
	cmpl	$-1, %r14d
	je	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r14d, %eax
	jge	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_ExecProcNode
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TupIsNull
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	movl	16(%r12), %edi
	movq	%rbx, %rsi
	callq	_ExecCopySlot
	movl	$1, %eax
LBB0_9:
	movl	$1, (%r12)
	movl	%eax, 8(%r12)
LBB0_12:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MemoryContextSwitchTo          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_spool_tuples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spool_tuples
_spool_tuples:                          ; @spool_tuples
	.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, x0
	ldr	w0, [x0, #12]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
LBB0_2:
	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_3:
	mov	x20, x1
	ldr	x23, [x19, #40]
	bl	_tuplestore_in_memory
	cmp	w0, #0
	csinv	w24, w20, wzr, ne
	mov	x0, x19
	bl	_outerPlanState
	mov	x21, x0
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	ldr	w8, [x19, #4]
	cmn	w24, #1
	ccmp	w8, w24, #4, ne
	b.gt	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_ExecProcNode
	mov	x22, x0
	bl	_TupIsNull
	cbnz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x19, #24]
	ldp	w8, w0, [x19, #16]
	str	w8, [x1, #8]
	str	x22, [x1]
	bl	_ExecQualAndReset
	cbz	w0, LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #12]
	mov	x1, x22
	bl	_tuplestore_puttupleslot
	ldr	w8, [x19, #4]
	add	w9, w8, #1
	str	w9, [x19, #4]
	cmn	w24, #1
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w24
	b.lt	LBB0_4
	b	LBB0_12
LBB0_9:
	mov	w8, #0
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19, #16]
	mov	x1, x22
	bl	_ExecCopySlot
	mov	w8, #1
LBB0_11:
	mov	w9, #1
	str	w9, [x19]
	str	w8, [x19, #8]
LBB0_12:
	mov	x0, x20
	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
	b	_MemoryContextSwitchTo
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_spool_tuples
.subsections_via_symbols
