	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_tuple_array
_load_tuple_array:                      ## @load_tuple_array
	.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
	testl	%esi, %esi
	je	LBB0_7
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	leal	-1(%r15), %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rcx,8), %edx
	cmpl	4(%rax,%rcx,8), %edx
	jne	LBB0_3
## %bb.2:
	leaq	(%rax,%rcx,8), %rdx
	addq	$4, %rdx
	movl	$0, (%rdx)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	$0, (%rdx)
	xorl	%edx, %edx
LBB0_3:
	movq	_MAX_TUPLE_STORE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jge	LBB0_7
## %bb.4:
	leaq	(%rax,%rcx,8), %r12
	addq	$16, %r12
	movslq	%edx, %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_gm_readnext_tuple
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-8(%r12), %rax
	movl	%ebx, (%rax,%r13,4)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	incq	%r13
	movq	_MAX_TUPLE_STORE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_5
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TUPLE_STORE,4,2            ## @MAX_TUPLE_STORE
	.no_dead_strip	_load_tuple_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_tuple_array
_load_tuple_array:                      ; @load_tuple_array
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	w1, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	sxtw	x9, w19
	sub	x9, x9, #1
	mov	w10, #24
	madd	x23, x9, x10, x8
	ldp	w10, w11, [x23]
	cmp	w10, w11
	b.ne	LBB0_3
; %bb.2:
	mov	w10, #0
	str	xzr, [x23]
LBB0_3:
Lloh0:
	adrp	x24, _MAX_TUPLE_STORE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_TUPLE_STORE@GOTPAGEOFF]
	ldr	w11, [x24]
	cmp	w10, w11
	b.ge	LBB0_7
; %bb.4:
	mov	w11, #24
	madd	x11, x9, x11, x8
	add	x21, x11, #16
	mov	w11, #24
	madd	x8, x9, x11, x8
	add	x25, x8, #8
	sxtw	x26, w10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	mov	x3, x21
	bl	_gm_readnext_tuple
	mov	x22, x0
	bl	_HeapTupleIsValid
	cbz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	str	w22, [x8, x26, lsl #2]
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	add	x26, x26, #1
	ldrsw	x8, [x24]
	cmp	x26, x8
	b.lt	LBB0_5
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TUPLE_STORE,4,2            ; @MAX_TUPLE_STORE
	.no_dead_strip	_load_tuple_array
.subsections_via_symbols
