	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_phys_paddr_to_vm_page       ## -- Begin function vm_phys_paddr_to_vm_page
	.p2align	4, 0x90
_vm_phys_paddr_to_vm_page:              ## @vm_phys_paddr_to_vm_page
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_vm_phys_nsegs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	_vm_phys_segs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r8
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rsi
	cmpq	%rsi, %r8
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi), %rdx
	cmpq	%rdi, %rdx
	jg	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdi, 8(%rcx,%rsi)
	jle	LBB0_6
## %bb.5:
	movq	16(%rcx,%rsi), %rbx
	subq	%rdx, %rdi
	callq	_atop
	leaq	(%rbx,%rax,4), %rax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vm_phys_nsegs,4,2              ## @vm_phys_nsegs
	.comm	_vm_phys_segs,8,3               ## @vm_phys_segs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_phys_paddr_to_vm_page       ; -- Begin function vm_phys_paddr_to_vm_page
	.p2align	2
_vm_phys_paddr_to_vm_page:              ; @vm_phys_paddr_to_vm_page
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _vm_phys_nsegs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vm_phys_nsegs@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
Lloh3:
	adrp	x9, _vm_phys_segs@GOTPAGE
Lloh4:
	ldr	x9, [x9, _vm_phys_segs@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x9, x9, #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #24
	subs	x8, x8, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-16]
	cmp	x10, x0
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x11, [x9, #-8]
	cmp	x11, x0
	b.le	LBB0_2
; %bb.5:
	ldr	x19, [x9]
	sub	x0, x0, x10
	bl	_atop
	add	x0, x19, x0, lsl #2
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_vm_phys_nsegs,4,2              ; @vm_phys_nsegs
	.comm	_vm_phys_segs,8,3               ; @vm_phys_segs
.subsections_via_symbols
