	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _kvm_pa2off
__kvm_pa2off:                           ## @_kvm_pa2off
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, (%rdi)
	movq	%rsi, %rax
	je	LBB0_1
LBB0_8:
	movq	%rax, (%rdx)
	movq	_I386_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_I386_PAGE_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rsi
	subq	%rsi, %rax
LBB0_9:
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rdi), %rax
	movq	(%rax), %r9
	testq	%r9, %r9
	je	LBB0_2
## %bb.3:
	movq	8(%rax), %rcx
	addq	$16, %rcx
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$24, %rcx
	decq	%r9
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-16(%rcx), %r8
	cmpq	%rsi, %r8
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-8(%rcx), %rdi
	addq	%r8, %rdi
	cmpq	%rsi, %rdi
	jle	LBB0_6
## %bb.7:
	movq	%rsi, %rax
	subq	%r8, %rax
	addq	(%rcx), %rax
	jmp	LBB0_8
LBB0_2:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I386_PAGE_SIZE,8,3             ## @I386_PAGE_SIZE
	.comm	_I386_PAGE_MASK,8,3             ## @I386_PAGE_MASK
	.no_dead_strip	__kvm_pa2off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _kvm_pa2off
__kvm_pa2off:                           ; @_kvm_pa2off
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	mov	x8, x1
	cbz	x9, LBB0_2
LBB0_1:
	str	x8, [x2]
Lloh0:
	adrp	x8, _I386_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I386_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _I386_PAGE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I386_PAGE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	and	x9, x9, x1
	sub	x0, x8, x9
	ret
LBB0_2:
	ldr	x9, [x0, #8]
	ldr	x8, [x9]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x9, [x9, #8]
	add	x9, x9, #16
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #24
	subs	x8, x8, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-16]
	cmp	x10, x1
	b.gt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x11, [x9, #-8]
	add	x11, x11, x10
	cmp	x11, x1
	b.le	LBB0_4
; %bb.7:
	ldr	x8, [x9]
	sub	x9, x1, x10
	add	x8, x9, x8
	b	LBB0_1
LBB0_8:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I386_PAGE_SIZE,8,3             ; @I386_PAGE_SIZE
	.comm	_I386_PAGE_MASK,8,3             ; @I386_PAGE_MASK
	.no_dead_strip	__kvm_pa2off
.subsections_via_symbols
