	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_getbuf                     ## -- Begin function _bt_getbuf
	.p2align	4, 0x90
__bt_getbuf:                            ## @_bt_getbuf
	.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	%edx, %ebx
	movl	%edi, %r14d
	movq	_P_NEW@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	sete	%dil
	callq	_Assert
	movl	%r14d, %edi
	callq	_GetFreeIndexPage
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_3
LBB0_14:
	movl	%r14d, %edi
	callq	_RELATION_IS_LOCAL
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_LockRelationForExtension
LBB0_16:
	movq	_P_NEW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edi
	callq	_ReadBuffer
	movl	%eax, %r15d
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
	testl	%ebx, %ebx
	jne	LBB0_18
## %bb.17:
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_UnlockRelationForExtension
LBB0_18:
	movl	%r15d, %edi
	callq	_BufferGetPage
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_PageIsNew
	movl	%eax, %edi
	callq	_Assert
	movl	%r15d, %edi
	callq	_BufferGetPageSize
	movl	%ebx, %edi
LBB0_19:
	movl	%eax, %esi
	callq	__bt_pageinit
	jmp	LBB0_20
LBB0_1:
	movl	%r14d, %edi
	callq	_ReadBuffer
	movl	%eax, %r15d
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_LockBuffer
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	__bt_checkpage
LBB0_20:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rax, %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
	movl	%r15d, %edi
	callq	_ReleaseBuffer
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %edi
	callq	_GetFreeIndexPage
	movq	%rax, %rbx
	cmpq	(%r13), %rax
	je	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_ReadBuffer
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ConditionalLockBuffer
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %edi
	callq	_BufferGetPage
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	__bt_page_recyclable
	testq	%rax, %rax
	jne	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	__bt_relbuf
	jmp	LBB0_13
LBB0_6:
	xorl	%eax, %eax
	callq	_XLogStandbyInfoActive
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	%r14d, %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movl	%r12d, %edi
	callq	_PageIsNew
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	%r12d, %edi
	callq	_PageGetSpecialPointer
	cltq
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	__bt_log_reuse_page
LBB0_10:
	movl	%r15d, %edi
	callq	_BufferGetPageSize
	movl	%r12d, %edi
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_P_NEW,8,3                      ## @P_NEW
	.comm	_BT_WRITE,4,2                   ## @BT_WRITE
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_DEBUG2,4,2                     ## @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FSM returned nonrecyclable page"

L_.str.1:                               ## @.str.1
	.asciz	"FSM returned nonlockable page"

	.comm	_ExclusiveLock,4,2              ## @ExclusiveLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_getbuf                     ; -- Begin function _bt_getbuf
	.p2align	2
__bt_getbuf:                            ; @_bt_getbuf
	.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	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x26, _P_NEW@GOTPAGE
Lloh1:
	ldr	x26, [x26, _P_NEW@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x8, x1
	b.ne	LBB0_8
; %bb.1:
Lloh2:
	adrp	x25, _BT_WRITE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _BT_WRITE@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, w21
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_GetFreeIndexPage
Lloh4:
	adrp	x27, _InvalidBlockNumber@GOTPAGE
Lloh5:
	ldr	x27, [x27, _InvalidBlockNumber@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_RELATION_IS_LOCAL
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ExclusiveLock@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ExclusiveLock@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LockRelationForExtension
LBB0_4:
	ldr	x1, [x26]
	mov	x0, x19
	bl	_ReadBuffer
	mov	x20, x0
	ldr	w1, [x25]
	bl	_LockBuffer
	cbnz	w21, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _ExclusiveLock@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ExclusiveLock@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_UnlockRelationForExtension
LBB0_6:
	mov	x0, x20
	bl	_BufferGetPage
	mov	x19, x0
	bl	_PageIsNew
	bl	_Assert
	mov	x0, x20
	bl	_BufferGetPageSize
	mov	x1, x0
	mov	x0, x19
LBB0_7:
	bl	__bt_pageinit
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_ReadBuffer
	mov	x20, x0
	mov	x1, x21
	bl	_LockBuffer
	mov	x0, x19
	mov	x1, x20
	bl	__bt_checkpage
LBB0_9:
	mov	x0, x20
	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
LBB0_10:
	mov	x21, x0
Lloh12:
	adrp	x28, _DEBUG2@GOTPAGE
Lloh13:
	ldr	x28, [x28, _DEBUG2@GOTPAGEOFF]
Lloh14:
	adrp	x22, l_.str.1@PAGE
Lloh15:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh16:
	adrp	x23, l_.str@PAGE
Lloh17:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x28]
	mov	x1, x22
	bl	_elog
	mov	x0, x20
	bl	_ReleaseBuffer
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	bl	_GetFreeIndexPage
	mov	x21, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_2
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_ReadBuffer
	mov	x20, x0
	bl	_ConditionalLockBuffer
	cbz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	bl	_BufferGetPage
	mov	x24, x0
	bl	__bt_page_recyclable
	cbnz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x28]
	mov	x1, x23
	bl	_elog
	mov	x0, x19
	mov	x1, x20
	bl	__bt_relbuf
	b	LBB0_12
LBB0_16:
	bl	_XLogStandbyInfoActive
	cbz	x0, LBB0_20
; %bb.17:
	mov	x0, x19
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_20
; %bb.18:
	mov	x0, x24
	bl	_PageIsNew
	cbnz	w0, LBB0_20
; %bb.19:
	mov	x0, x24
	bl	_PageGetSpecialPointer
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	__bt_log_reuse_page
LBB0_20:
	mov	x0, x20
	bl	_BufferGetPageSize
	mov	x1, x0
	mov	x0, x24
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_P_NEW,8,3                      ; @P_NEW
	.comm	_BT_WRITE,4,2                   ; @BT_WRITE
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_DEBUG2,4,2                     ; @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FSM returned nonrecyclable page"

l_.str.1:                               ; @.str.1
	.asciz	"FSM returned nonlockable page"

	.comm	_ExclusiveLock,4,2              ; @ExclusiveLock
.subsections_via_symbols
