	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CteScanNext
_CteScanNext:                           ## @CteScanNext
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movl	(%rax), %edi
	callq	_ScanDirectionIsForward
	movl	%eax, %r12d
	movq	8(%rbx), %rax
	movq	8(%rax), %r15
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_tuplestore_select_read_pointer
	movq	24(%rbx), %r14
	movq	%r15, %rdi
	callq	_tuplestore_ateof
	testl	%r12d, %r12d
	jne	LBB0_4
## %bb.1:
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_tuplestore_advance
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_10
LBB0_4:
	testl	%eax, %eax
	jne	LBB0_7
LBB0_5:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_tuplestore_gettupleslot
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	testl	%r12d, %r12d
	je	LBB0_13
LBB0_7:
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
LBB0_13:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ExecClearTuple                 ## TAILCALL
LBB0_8:
	movl	16(%rbx), %edi
	callq	_ExecProcNode
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TupIsNull
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	8(%rbx), %rax
	movl	$1, (%rax)
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_tuplestore_select_read_pointer
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_tuplestore_puttupleslot
	movq	%r14, %rdi
	movq	%r12, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ExecCopySlot                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_CteScanNext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CteScanNext
_CteScanNext:                           ; @CteScanNext
	.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, x0
	ldr	x8, [x0, #32]
	ldr	w0, [x8]
	bl	_ScanDirectionIsForward
	mov	x22, x0
	ldr	x8, [x20, #8]
	ldr	x21, [x8, #8]
	ldr	w1, [x20]
	mov	x0, x21
	bl	_tuplestore_select_read_pointer
	ldr	x19, [x20, #24]
	mov	x0, x21
	bl	_tuplestore_ateof
	cmp	w22, #0
	ccmp	w0, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
	cbnz	w0, LBB0_6
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	w1, #0
	bl	_tuplestore_advance
	cbz	w0, LBB0_10
LBB0_4:
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	mov	x3, x19
	bl	_tuplestore_gettupleslot
	cbnz	x0, LBB0_11
; %bb.5:
	cbz	w22, LBB0_7
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_8
LBB0_7:
	mov	x0, x19
	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
	b	_ExecClearTuple
LBB0_8:
	ldr	w0, [x20, #16]
	bl	_ExecProcNode
	mov	x22, x0
	bl	_TupIsNull
	cbz	x0, LBB0_12
; %bb.9:
	mov	x19, #0
	ldr	x8, [x20, #8]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_11
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	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
LBB0_12:
	ldr	w1, [x20]
	mov	x0, x21
	bl	_tuplestore_select_read_pointer
	mov	x0, x21
	mov	x1, x22
	bl	_tuplestore_puttupleslot
	mov	x0, x19
	mov	x1, x22
	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
	b	_ExecCopySlot
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_CteScanNext
.subsections_via_symbols
