	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GinNewBuffer                   ## -- Begin function GinNewBuffer
	.p2align	4, 0x90
_GinNewBuffer:                          ## @GinNewBuffer
	.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
	movl	%edi, %r14d
	callq	_GetFreeIndexPage
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_1
LBB0_6:
	movl	%r14d, %edi
	callq	_RELATION_IS_LOCAL
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_LockRelationForExtension
LBB0_8:
	movq	_P_NEW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edi
	callq	_ReadBuffer
	movl	%eax, %ebx
	movq	_GIN_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_LockBuffer
	testl	%r15d, %r15d
	jne	LBB0_10
## %bb.9:
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_UnlockRelationForExtension
	jmp	LBB0_10
LBB0_1:
	movq	_GIN_UNLOCK@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_LockBuffer
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_ReleaseBuffer
	movl	%r14d, %edi
	callq	_GetFreeIndexPage
	cmpq	(%r15), %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_ReadBuffer
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ConditionalLockBuffer
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_GinPageIsRecyclable
	testq	%rax, %rax
	je	LBB0_4
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_GIN_UNLOCK,4,2                 ## @GIN_UNLOCK
	.comm	_ExclusiveLock,4,2              ## @ExclusiveLock
	.comm	_P_NEW,8,3                      ## @P_NEW
	.comm	_GIN_EXCLUSIVE,4,2              ## @GIN_EXCLUSIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GinNewBuffer                   ; -- Begin function GinNewBuffer
	.p2align	2
_GinNewBuffer:                          ; @GinNewBuffer
	.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	x19, x0
	bl	_GetFreeIndexPage
Lloh0:
	adrp	x21, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x21, [x21, _InvalidBlockNumber@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_1:
	mov	x0, x19
	bl	_RELATION_IS_LOCAL
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _ExclusiveLock@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ExclusiveLock@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LockRelationForExtension
LBB0_3:
Lloh5:
	adrp	x8, _P_NEW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _P_NEW@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_ReadBuffer
	mov	x20, x0
Lloh8:
	adrp	x8, _GIN_EXCLUSIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GIN_EXCLUSIVE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_LockBuffer
	cbnz	w21, LBB0_10
; %bb.4:
Lloh11:
	adrp	x8, _ExclusiveLock@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ExclusiveLock@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_UnlockRelationForExtension
	b	LBB0_10
LBB0_5:
	mov	x1, x0
Lloh14:
	adrp	x22, _GIN_UNLOCK@GOTPAGE
Lloh15:
	ldr	x22, [x22, _GIN_UNLOCK@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_LockBuffer
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_ReleaseBuffer
	mov	x0, x19
	bl	_GetFreeIndexPage
	mov	x1, x0
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ReadBuffer
	mov	x20, x0
	bl	_ConditionalLockBuffer
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_BufferGetPage
	bl	_GinPageIsRecyclable
	cbz	x0, LBB0_6
LBB0_10:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_GIN_UNLOCK,4,2                 ; @GIN_UNLOCK
	.comm	_ExclusiveLock,4,2              ; @ExclusiveLock
	.comm	_P_NEW,8,3                      ; @P_NEW
	.comm	_GIN_EXCLUSIVE,4,2              ; @GIN_EXCLUSIVE
.subsections_via_symbols
