	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FunctionNext
_FunctionNext:                          ## @FunctionNext
	.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	%rdi, %r13
	movq	40(%rdi), %rax
	movq	48(%rdi), %rbx
	movl	(%rax), %r14d
	cmpq	$0, 64(%rdi)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	movq	56(%r13), %rax
	movq	16(%rax), %r12
	testq	%r12, %r12
	jne	LBB0_3
## %bb.2:
	movl	24(%rax), %ecx
	movl	28(%rax), %edi
	movl	24(%r13), %edx
	movl	32(%r13), %esi
	movq	_EXEC_FLAG_BACKWARD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	andl	(%r13), %r8d
	callq	_ExecMakeTableFunctionResult
	movq	%rax, %r12
	movq	56(%r13), %rax
	movq	%r12, 16(%rax)
	movq	%r12, %rdi
	callq	_tuplestore_rescan
LBB0_3:
	movl	%r14d, %edi
	callq	_ScanDirectionIsForward
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_tuplestore_gettupleslot
	jmp	LBB0_32
LBB0_4:
	movl	4(%r13), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_ScanDirectionIsForward
	xorl	%r15d, %r15d
	cmpq	$1, %rax
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	$1, %eax
	addl	%eax, 4(%r13)
	movq	%rbx, %rdi
	callq	_ExecClearTuple
	cmpl	$0, 8(%r13)
	jle	LBB0_27
## %bb.5:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	-48(%rbp), %r15d                ## 4-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movslq	8(%r13), %rax
	cmpq	%rax, %r12
	jge	LBB0_28
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	56(%r13), %r14
	movq	%r12, %r15
	shlq	$5, %r15
	leaq	(%r14,%r15), %rbx
	addq	$16, %rbx
	cmpq	$0, 16(%r14,%r15)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	24(%r14,%r15), %ecx
	movl	28(%r14,%r15), %edi
	movl	24(%r13), %edx
	movl	32(%r13), %esi
	movq	_EXEC_FLAG_BACKWARD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	andl	(%r13), %r8d
	callq	_ExecMakeTableFunctionResult
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_tuplestore_rescan
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r14,%r15), %eax
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r14,%r15), %rdi
	callq	_ExecClearTuple
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %rbx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_ScanDirectionIsForward
	movq	8(%r14,%r15), %rcx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_tuplestore_gettupleslot
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r14,%r15), %rdi
	callq	_TupIsNull
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_ScanDirectionIsForward
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%r14,%r15), %rax
	cmpl	$-1, (%rax)
	je	LBB0_25
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, 4(%r14,%r15)
	jle	LBB0_6
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%r14,%r15), %rax
	addq	$4, %rax
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movslq	%r15d, %rcx
	leaq	(,%rcx,8), %rdx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	8(%rsi), %rdx
	shlq	$2, %rcx
	addq	(%rsi), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	$0, (%rdx,%rsi,8)
	movl	$1, (%rcx,%rsi,4)
	incq	%rsi
	cmpl	(%rax), %esi
	jl	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	%esi, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%r14,%r15), %rbx
	addq	$8, %rbx
	movq	(%rbx), %rdi
	callq	_slot_getallattrs
	cmpl	$0, 4(%r14,%r15)
	jle	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	(%r14,%r15), %r8
	addq	$4, %r8
	movq	(%rbx), %rdx
	movq	(%rdx), %rcx
	movq	8(%rdx), %rdx
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movslq	%r15d, %rsi
	leaq	(,%rsi,8), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %rdi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rbx,8), %rax
	movq	%rax, (%rdi,%rbx,8)
	movl	(%rcx,%rbx,4), %eax
	movl	%eax, (%rsi,%rbx,4)
	incq	%rbx
	movslq	(%r8), %rax
	cmpq	%rax, %rbx
	jl	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	%ebx, %r15d
	jmp	LBB0_7
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%r13), %ecx
	movl	%ecx, (%rax)
	cmpl	$0, 4(%r14,%r15)
	jg	LBB0_18
	jmp	LBB0_6
LBB0_27:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_28:
	cmpq	$0, 16(%r13)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_30
## %bb.29:
	movl	4(%r13), %edi
	callq	_Int64GetDatumFast
	movq	8(%rbx), %rcx
	movslq	%r15d, %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rbx), %rax
	movl	$0, (%rax,%rdx,4)
LBB0_30:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_32
## %bb.31:
	movq	%rbx, %rdi
	callq	_ExecStoreVirtualTuple
LBB0_32:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXEC_FLAG_BACKWARD,4,2         ## @EXEC_FLAG_BACKWARD
	.no_dead_strip	_FunctionNext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FunctionNext
_FunctionNext:                          ; @FunctionNext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	ldp	x8, x19, [x0, #40]
	ldr	w21, [x8]
	ldr	x8, [x0, #64]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x20, #56]
	ldr	x22, [x8, #16]
	cbnz	x22, LBB0_3
; %bb.2:
	ldr	w1, [x20, #32]
	ldr	w2, [x20, #24]
	ldp	w3, w0, [x8, #24]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _EXEC_FLAG_BACKWARD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXEC_FLAG_BACKWARD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w4, w9, w8
	bl	_ExecMakeTableFunctionResult
	mov	x22, x0
	ldr	x8, [x20, #56]
	str	x0, [x8, #16]
	bl	_tuplestore_rescan
LBB0_3:
	mov	x0, x21
	bl	_ScanDirectionIsForward
	mov	x1, x0
	mov	x0, x22
	mov	w2, #0
	mov	x3, x19
	bl	_tuplestore_gettupleslot
	b	LBB0_30
LBB0_4:
	ldr	w8, [x20, #4]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x21
	bl	_ScanDirectionIsForward
	ldr	w8, [x20, #4]
	sub	w9, w8, #1
	cmp	x0, #0
	csinc	w8, w9, w8, eq
	str	w8, [x20, #4]
	mov	x0, x19
	bl	_ExecClearTuple
	ldr	w8, [x20, #8]
	mov	w25, #1
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.5:
	mov	x26, #0
	mov	w23, #0
	mov	w8, #1
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	str	wzr, [sp, #8]                   ; 4-byte Folded Spill
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x20, #8]
	cmp	x26, x8
	b.ge	LBB0_26
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_23 Depth 2
	ldr	x27, [x20, #56]
	add	x28, x27, x26, lsl #5
	mov	x22, x28
	ldr	x8, [x22, #16]!
	cbnz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x20, #32]
	ldr	w2, [x20, #24]
	ldp	w3, w0, [x28, #24]
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _EXEC_FLAG_BACKWARD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXEC_FLAG_BACKWARD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w4, w9, w8
	bl	_ExecMakeTableFunctionResult
	str	x0, [x22]
	bl	_tuplestore_rescan
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x28]
	cmn	w8, #1
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	ccmp	w8, w9, #0, ne
	b.lt	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x22, [x22]
	mov	x0, x21
	bl	_ScanDirectionIsForward
	mov	x1, x0
	add	x8, x27, x26, lsl #5
	ldr	x3, [x8, #8]
	mov	x0, x22
	mov	w2, #0
	bl	_tuplestore_gettupleslot
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x27, x26, lsl #5
	ldr	x0, [x8, #8]
	bl	_ExecClearTuple
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x27, x26, lsl #5
	mov	x24, x22
	ldr	x0, [x24, #8]!
	bl	_TupIsNull
	cbz	x0, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_ScanDirectionIsForward
	cbz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x28]
	cmn	w8, #1
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20, #4]
	str	w8, [x28]
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x27, x26, lsl #5
	ldr	w9, [x8, #4]!
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x9, #0
	ldp	x11, x10, [x19]
	add	x10, x10, w23, sxtw #3
	add	x11, x11, w23, sxtw #2
LBB0_19:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	xzr, [x10, x9, lsl #3]
	str	w25, [x11, x9, lsl #2]
	ldr	w12, [x8]
	add	x9, x9, #1
	cmp	w9, w12
	b.lt	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w23, w23, w9
	b	LBB0_7
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x24]
	bl	_slot_getallattrs
	ldr	w8, [x22, #4]!
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.22:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, #0
	ldr	x10, [x24]
	ldp	x10, x9, [x10]
	ldp	x12, x11, [x19]
	add	x11, x11, w23, sxtw #3
	add	x12, x12, w23, sxtw #2
LBB0_23:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x13, x8, #3
	ldr	x14, [x9, x13]
	str	x14, [x11, x13]
	lsl	x13, x8, #2
	ldr	w14, [x10, x13]
	str	w14, [x12, x13]
	add	x8, x8, #1
	ldrsw	x13, [x22]
	cmp	x8, x13
	b.lt	LBB0_23
; %bb.24:                               ;   in Loop: Header=BB0_8 Depth=1
	str	wzr, [sp, #8]                   ; 4-byte Folded Spill
	add	w23, w23, w8
	b	LBB0_7
LBB0_25:
	mov	w23, #0
	mov	w8, #1
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
LBB0_26:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_28
; %bb.27:
	ldr	w0, [x20, #4]
	bl	_Int64GetDatumFast
	ldp	x9, x8, [x19]
	str	x0, [x8, w23, sxtw #3]
	str	wzr, [x9, w23, sxtw #2]
LBB0_28:
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cbnz	w8, LBB0_30
; %bb.29:
	mov	x0, x19
	bl	_ExecStoreVirtualTuple
LBB0_30:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EXEC_FLAG_BACKWARD,4,2         ; @EXEC_FLAG_BACKWARD
	.no_dead_strip	_FunctionNext
.subsections_via_symbols
