	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_readbuf
_vm_readbuf:                            ## @vm_readbuf
	.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	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_RelationOpenSmgr
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.5:
	cmpq	%r14, %rax
	jle	LBB0_6
	jmp	LBB0_8
LBB0_1:
	movq	_VISIBILITYMAP_FORKNUM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_smgrexists
	movq	(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%r12), %esi
	callq	_smgrnblocks
	movq	(%rbx), %rdi
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movq	%rax, (%rdi)
	cmpq	%r14, %rax
	jg	LBB0_8
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.7:
	leaq	1(%r14), %rsi
	movq	%rbx, %rdi
	callq	_vm_extend
LBB0_8:
	movq	_VISIBILITYMAP_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RBM_ZERO_ON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_ReadBufferExtended
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageIsNew
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	_BUFFER_LOCK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_LockBuffer
	movl	%ebx, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageIsNew
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	%ebx, %edi
	callq	_BufferGetPage
	movq	_BLCKSZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_PageInit
LBB0_11:
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_LockBuffer
	jmp	LBB0_12
LBB0_13:
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_VISIBILITYMAP_FORKNUM,4,2      ## @VISIBILITYMAP_FORKNUM
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_RBM_ZERO_ON_ERROR,4,2          ## @RBM_ZERO_ON_ERROR
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ## @BUFFER_LOCK_EXCLUSIVE
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.no_dead_strip	_vm_readbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_readbuf
_vm_readbuf:                            ; @vm_readbuf
	.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, x2
	mov	x19, x1
	mov	x20, x0
	bl	_RelationOpenSmgr
	ldr	x8, [x20]
	ldr	x0, [x8]
Lloh0:
	adrp	x9, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x9, [x9, _InvalidBlockNumber@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x22, _VISIBILITYMAP_FORKNUM@GOTPAGE
Lloh4:
	ldr	x22, [x22, _VISIBILITYMAP_FORKNUM@GOTPAGEOFF]
	cmp	x0, x9
	b.eq	LBB0_2
; %bb.1:
	cmp	x0, x19
	b.le	LBB0_5
	b	LBB0_7
LBB0_2:
	ldr	w1, [x22]
	mov	x0, x8
	bl	_smgrexists
	ldr	x8, [x20]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x22]
	mov	x0, x8
	bl	_smgrnblocks
	ldr	x8, [x20]
LBB0_4:
	str	x0, [x8]
	cmp	x0, x19
	b.gt	LBB0_7
LBB0_5:
	cbz	w21, LBB0_11
; %bb.6:
	add	x1, x19, #1
	mov	x0, x20
	bl	_vm_extend
LBB0_7:
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _RBM_ZERO_ON_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RBM_ZERO_ON_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	x4, #0
	bl	_ReadBufferExtended
	mov	x19, x0
	bl	_BufferGetPage
	bl	_PageIsNew
	cbz	x0, LBB0_12
; %bb.8:
Lloh8:
	adrp	x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LockBuffer
	mov	x0, x19
	bl	_BufferGetPage
	bl	_PageIsNew
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_BufferGetPage
Lloh11:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_PageInit
LBB0_10:
Lloh14:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LockBuffer
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh18:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
LBB0_12:
	mov	x0, x19
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_VISIBILITYMAP_FORKNUM,4,2      ; @VISIBILITYMAP_FORKNUM
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_RBM_ZERO_ON_ERROR,4,2          ; @RBM_ZERO_ON_ERROR
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ; @BUFFER_LOCK_EXCLUSIVE
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.no_dead_strip	_vm_readbuf
.subsections_via_symbols
