	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistnospace                    ## -- Begin function gistnospace
	.p2align	4, 0x90
_gistnospace:                           ## @gistnospace
	.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
	movl	%r8d, %ebx
	movq	%rcx, %r15
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	movq	%rsi, %r12
	movl	%edx, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r14,4), %edi
	callq	_IndexTupleSize
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %ebx
	addl	$4, %ebx
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_2
LBB0_3:
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpq	%r15, (%rax)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_5
## %bb.4:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_PageGetItemId
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movl	%eax, %edi
	callq	_IndexTupleSize
	movl	%eax, %r12d
	addl	$4, %r12d
LBB0_5:
	movl	%r14d, %edi
	callq	_PageGetFreeSpace
	addl	%r12d, %eax
	xorl	%ecx, %ecx
	cmpl	%ebx, %eax
	setb	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistnospace                    ; -- Begin function gistnospace
	.p2align	2
_gistnospace:                           ; @gistnospace
	.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, x4
	mov	x21, x3
	mov	x20, x0
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, x1
	mov	w23, w2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22], #4
	bl	_IndexTupleSize
	add	w8, w19, w0
	add	w19, w8, #4
	subs	x23, x23, #1
	b.ne	LBB0_2
LBB0_3:
Lloh0:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_5
; %bb.4:
	mov	w21, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x20
	bl	_PageGetItem
	bl	_IndexTupleSize
	add	w21, w0, #4
LBB0_6:
	mov	x0, x20
	bl	_PageGetFreeSpace
	add	w8, w0, w21
	cmp	w8, w19
	cset	w0, lo
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
.subsections_via_symbols
