	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocNewBuffer
_allocNewBuffer:                        ## @allocNewBuffer
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r15d
	callq	_spgGetCache
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_GBUF_REQ_LEAF
	xorl	%ebx, %ebx
	movq	_SPGIST_LEAF@GOTPCREL(%rip), %r13
	movl	$0, %r14d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r13), %r14d
LBB0_2:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_GBUF_REQ_NULLS
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_SPGIST_NULLS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	orl	%r14d, %ebx
	movl	%r15d, %edi
	callq	_SpGistNewBuffer
	movl	%eax, %r12d
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_SpGistInitBuffer
	testl	%ebx, (%r13)
	je	LBB0_5
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	orl	%eax, %ecx
	movq	(%r13), %rax
	movslq	%ecx, %r15
	movl	%r14d, 4(%rax,%r15,8)
	movl	%r12d, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetExactFreeSpace
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%r15,8)
	movl	%r12d, %edi
	callq	_UnlockReleaseBuffer
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_SpGistNewBuffer
	movl	%eax, %r12d
	movl	%eax, %edi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_SpGistInitBuffer
	movq	_SPGIST_LEAF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_BufferGetBlockNumber
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_GBUF_INNER_PARITY
	movq	_GBUF_PARITY_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	cmpl	%eax, %ecx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_SPGIST_NULLS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_GBUF_NULLS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SPGIST_LEAF,4,2                ## @SPGIST_LEAF
	.comm	_SPGIST_NULLS,4,2               ## @SPGIST_NULLS
	.comm	_GBUF_PARITY_MASK,4,2           ## @GBUF_PARITY_MASK
	.comm	_GBUF_NULLS,4,2                 ## @GBUF_NULLS
	.no_dead_strip	_allocNewBuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocNewBuffer
_allocNewBuffer:                        ; @allocNewBuffer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	bl	_spgGetCache
	mov	x21, x0
	mov	x0, x19
	bl	_GBUF_REQ_LEAF
Lloh0:
	adrp	x25, _SPGIST_LEAF@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SPGIST_LEAF@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	x0, #0
	csel	w22, wzr, w8, eq
	mov	x0, x19
	bl	_GBUF_REQ_NULLS
Lloh2:
	adrp	x26, _SPGIST_NULLS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SPGIST_NULLS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w22, w8, w22
	mov	x0, x20
	bl	_SpGistNewBuffer
	mov	x23, x0
	mov	x1, x22
	bl	_SpGistInitBuffer
	ldr	w8, [x25]
	tst	w8, w22
	b.ne	LBB0_4
; %bb.1:
Lloh4:
	adrp	x27, _GBUF_PARITY_MASK@GOTPAGE
Lloh5:
	ldr	x27, [x27, _GBUF_PARITY_MASK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_BufferGetBlockNumber
	mov	x24, x0
	bl	_GBUF_INNER_PARITY
	ldr	w8, [x27]
	and	w8, w8, w19
	cmp	w8, w0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x26]
Lloh6:
	adrp	x9, _GBUF_NULLS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GBUF_NULLS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w8, w22
	csel	w8, wzr, w9, eq
	orr	w8, w8, w0
	ldr	x9, [x21]
	sbfiz	x28, x8, #3, #32
	add	x8, x9, x28
	str	w24, [x8, #4]
	mov	x0, x23
	bl	_BufferGetPage
	bl	_PageGetExactFreeSpace
	ldr	x8, [x21]
	str	w0, [x8, x28]
	mov	x0, x23
	bl	_UnlockReleaseBuffer
	mov	x0, x20
	bl	_SpGistNewBuffer
	mov	x23, x0
	mov	x1, x22
	bl	_SpGistInitBuffer
	ldr	w8, [x25]
	tst	w8, w22
	b.eq	LBB0_2
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SPGIST_LEAF,4,2                ; @SPGIST_LEAF
	.comm	_SPGIST_NULLS,4,2               ; @SPGIST_NULLS
	.comm	_GBUF_PARITY_MASK,4,2           ; @GBUF_PARITY_MASK
	.comm	_GBUF_NULLS,4,2                 ; @GBUF_NULLS
	.no_dead_strip	_allocNewBuffer
.subsections_via_symbols
