	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vnode_pager_input_old
_vnode_pager_input_old:                 ## @vnode_pager_input_old
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movl	8(%r14), %edi
	callq	_IDX_TO_OFF
	cmpq	8(%r15), %rax
	jge	LBB0_1
## %bb.2:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movl	8(%r14), %edi
	callq	_IDX_TO_OFF
	addq	%r13, %rax
	movq	8(%r15), %rbx
	cmpq	%rbx, %rax
	jle	LBB0_4
## %bb.3:
	movl	8(%r14), %edi
	callq	_IDX_TO_OFF
	subl	%eax, %ebx
	movl	%ebx, %r13d
LBB0_4:
	movq	(%r15), %r12
	movq	%r15, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_sf_buf_alloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_sf_buf_kva
	movq	%rax, -88(%rbp)
	movl	%r13d, -96(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, -48(%rbp)
	movl	$1, -80(%rbp)
	movl	8(%r14), %edi
	callq	_IDX_TO_OFF
	movq	%rax, -56(%rbp)
	movq	_UIO_SYSSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_UIO_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	%r13d, -76(%rbp)
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movl	(%rax), %ecx
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_VOP_READ
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	subl	-76(%rbp), %r13d
	jne	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_9
LBB0_1:
	movq	_VM_PAGER_BAD@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	xorl	%r12d, %r12d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_sf_buf_kva
	movslq	%r13d, %rdi
	addq	%rax, %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subl	%r13d, %esi
	callq	_bzero
LBB0_9:
	movq	%rbx, %rdi
	callq	_sf_buf_free
	movq	%r15, %rdi
	callq	_VM_OBJECT_WLOCK
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	movq	%r14, %rsi
	callq	_KASSERT
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.11:
	testl	%r12d, %r12d
	jne	LBB0_12
LBB0_13:
	movq	_VM_PAGER_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movq	%r14, %rdi
	callq	_vm_page_valid
	testl	%r12d, %r12d
	je	LBB0_13
LBB0_12:
	movq	_VM_PAGER_ERROR@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_PAGER_BAD,4,2               ## @VM_PAGER_BAD
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_UIO_SYSSPACE,4,2               ## @UIO_SYSSPACE
	.comm	_UIO_READ,4,2                   ## @UIO_READ
	.comm	_curthread,8,3                  ## @curthread
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VM_PAGER_ERROR,4,2             ## @VM_PAGER_ERROR
	.comm	_VM_PAGER_OK,4,2                ## @VM_PAGER_OK
	.no_dead_strip	_vnode_pager_input_old
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vnode_pager_input_old
_vnode_pager_input_old:                 ; @vnode_pager_input_old
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x20, x0
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	w0, [x19, #8]
	bl	_IDX_TO_OFF
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.1:
Lloh0:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldrsw	x24, [x23]
	ldr	w0, [x19, #8]
	bl	_IDX_TO_OFF
	ldr	x21, [x20, #8]
	add	x8, x0, x24
	cmp	x8, x21
	b.le	LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_IDX_TO_OFF
	sub	w24, w21, w0
LBB0_3:
	ldr	x22, [x20]
	mov	x0, x20
	bl	_VM_OBJECT_WUNLOCK
	mov	x0, x19
	mov	w1, #0
	bl	_sf_buf_alloc
	mov	x21, x0
	bl	_sf_buf_kva
	str	x0, [sp, #16]
	str	w24, [sp, #8]
	add	x8, sp, #8
	str	x8, [sp, #56]
	mov	w8, #1
	str	w8, [sp, #24]
	ldr	w0, [x19, #8]
	bl	_IDX_TO_OFF
	str	x0, [sp, #48]
Lloh2:
	adrp	x8, _UIO_SYSSPACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UIO_SYSSPACE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _UIO_READ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UIO_READ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
	str	w24, [sp, #28]
Lloh8:
	adrp	x8, _curthread@GOTPAGE
Lloh9:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [sp, #32]
	ldr	w3, [x8]
	add	x1, sp, #24
	mov	x0, x22
	mov	w2, #0
	bl	_VOP_READ
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w8, [sp, #28]
	subs	w22, w24, w8
	b.ne	LBB0_7
; %bb.5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	b	LBB0_10
LBB0_6:
Lloh14:
	adrp	x8, _VM_PAGER_BAD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VM_PAGER_BAD@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
	ldr	w8, [x23]
	cmp	w22, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_sf_buf_kva
	add	x0, x0, w22, sxtw
	ldr	w8, [x23]
	sub	w1, w8, w22
	bl	_bzero
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, x21
	bl	_sf_buf_free
	mov	x0, x20
	bl	_VM_OBJECT_WLOCK
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
	cbnz	w22, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_vm_page_valid
LBB0_12:
Lloh16:
	adrp	x8, _VM_PAGER_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VM_PAGER_ERROR@GOTPAGEOFF]
Lloh18:
	adrp	x9, _VM_PAGER_OK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VM_PAGER_OK@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, eq
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_PAGER_BAD,4,2               ; @VM_PAGER_BAD
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_UIO_SYSSPACE,4,2               ; @UIO_SYSSPACE
	.comm	_UIO_READ,4,2                   ; @UIO_READ
	.comm	_curthread,8,3                  ; @curthread
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VM_PAGER_ERROR,4,2             ; @VM_PAGER_ERROR
	.comm	_VM_PAGER_OK,4,2                ; @VM_PAGER_OK
	.no_dead_strip	_vnode_pager_input_old
.subsections_via_symbols
