	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brinRevmapInitialize           ## -- Begin function brinRevmapInitialize
	.p2align	4, 0x90
_brinRevmapInitialize:                  ## @brinRevmapInitialize
	.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, %r12d
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_BRIN_METAPAGE_BLKNO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ReadBuffer
	movl	%eax, %r13d
	movq	_BUFFER_LOCK_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_LockBuffer
	movl	%r13d, %edi
	callq	_BufferGetPage
	movl	%eax, %ebx
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_TestForOldSnapshot
	movl	%ebx, %edi
	callq	_PageGetContents
	movq	%rax, %r12
	movl	$20, %edi
	callq	_palloc
	movq	%rax, %rbx
	movl	%r15d, 16(%rax)
	movl	(%r12), %eax
	movl	%eax, 12(%rbx)
	movl	4(%r12), %ecx
	movl	%ecx, 8(%rbx)
	movl	%r13d, 4(%rbx)
	movq	_InvalidBuffer@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	movl	%eax, (%r14)
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_LockBuffer
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRIN_METAPAGE_BLKNO,4,2        ## @BRIN_METAPAGE_BLKNO
	.comm	_BUFFER_LOCK_SHARE,4,2          ## @BUFFER_LOCK_SHARE
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brinRevmapInitialize           ; -- Begin function brinRevmapInitialize
	.p2align	2
_brinRevmapInitialize:                  ; @brinRevmapInitialize
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _BRIN_METAPAGE_BLKNO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRIN_METAPAGE_BLKNO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ReadBuffer
	mov	x22, x0
Lloh3:
	adrp	x8, _BUFFER_LOCK_SHARE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFFER_LOCK_SHARE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x22
	bl	_BufferGetPage
	mov	x23, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_TestForOldSnapshot
	mov	x0, x23
	bl	_PageGetContents
	mov	x19, x0
	mov	w0, #20
	bl	_palloc
	mov	x23, x0
	str	w21, [x0, #16]
	ldr	d0, [x19]
	rev64.2s	v1, v0
	str	d1, [x0, #8]
Lloh6:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh7:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w22, [x0]
	str	s0, [x20]
Lloh9:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_LockBuffer
	mov	x0, x23
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRIN_METAPAGE_BLKNO,4,2        ; @BRIN_METAPAGE_BLKNO
	.comm	_BUFFER_LOCK_SHARE,4,2          ; @BUFFER_LOCK_SHARE
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
.subsections_via_symbols
