	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function revmap_get_buffer
_revmap_get_buffer:                     ## @revmap_get_buffer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_revmap_get_blkno
	movq	%rax, %r14
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_elog
LBB0_2:
	movq	_BRIN_METAPAGE_BLKNO@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r14
	je	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	(%r15), %r14
	setle	%dil
LBB0_4:
	callq	_Assert
	movl	8(%r15), %edi
	movq	_InvalidBuffer@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %edi
	je	LBB0_8
## %bb.5:
	callq	_BufferGetBlockNumber
	movq	%rax, %rcx
	movl	8(%r15), %eax
	cmpq	%rcx, %r14
	je	LBB0_9
## %bb.6:
	cmpl	(%rbx), %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %edi
	callq	_ReleaseBuffer
LBB0_8:
	movl	12(%r15), %edi
	movq	%r14, %rsi
	callq	_ReadBuffer
	movl	%eax, 8(%r15)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"revmap does not cover heap block %u"

	.comm	_BRIN_METAPAGE_BLKNO,8,3        ## @BRIN_METAPAGE_BLKNO
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.no_dead_strip	_revmap_get_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function revmap_get_buffer
_revmap_get_buffer:                     ; @revmap_get_buffer
	.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	x21, x1
	mov	x19, x0
	bl	_revmap_get_blkno
	mov	x20, x0
Lloh0:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_elog
LBB0_2:
Lloh8:
	adrp	x8, _BRIN_METAPAGE_BLKNO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BRIN_METAPAGE_BLKNO@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	cmp	x20, x8
	cset	w0, le
LBB0_5:
	bl	_Assert
	ldr	w0, [x19, #8]
Lloh11:
	adrp	x21, _InvalidBuffer@GOTPAGE
Lloh12:
	ldr	x21, [x21, _InvalidBuffer@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.6:
	bl	_BufferGetBlockNumber
	mov	x8, x0
	ldr	w0, [x19, #8]
	cmp	x20, x8
	b.eq	LBB0_10
; %bb.7:
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.8:
	bl	_ReleaseBuffer
LBB0_9:
	ldr	w0, [x19, #12]
	mov	x1, x20
	bl	_ReadBuffer
	str	w0, [x19, #8]
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"revmap does not cover heap block %u"

	.comm	_BRIN_METAPAGE_BLKNO,8,3        ; @BRIN_METAPAGE_BLKNO
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.no_dead_strip	_revmap_get_buffer
.subsections_via_symbols
