	.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
	movq	(%rdi), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movq	8(%rax), %r10
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %r10
	decq	%r8
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %r9
	cmpq	%rsi, %r9
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r10), %rdi
	addq	%r9, %rdi
	cmpq	%rsi, %rdi
	jle	LBB0_5
## %bb.6:
	movq	%rsi, %rax
	subq	%r9, %rax
	addq	16(%r10), %rax
	movq	%rax, (%rdx)
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:
	leaq	-1(%rcx), %rax
	andq	%rsi, %rax
	subq	%rax, %rcx
	movq	%rcx, %rax
LBB0_9:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_7:
	movq	8(%r10), %rax
	subq	%rsi, %rax
	addq	(%r10), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	x8, [x0]
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.1:
	ldr	x8, [x8, #8]
	add	x8, x8, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #24
	subs	x9, x9, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x8, #-8]
	cmp	x10, x1
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x8]
	add	x11, x11, x10
	cmp	x11, x1
	b.le	LBB0_2
; %bb.5:
	ldr	x9, [x8, #8]
	sub	x10, x1, x10
	add	x9, x10, x9
	str	x9, [x2]
	cbz	x3, LBB0_8
; %bb.6:
	sub	x8, x3, #1
	and	x8, x8, x1
	sub	x0, x3, x8
	ret
LBB0_7:
	mov	x0, #0
	ret
LBB0_8:
	ldp	x8, x9, [x8, #-8]
	sub	x9, x9, x1
	add	x0, x9, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__kvm_pa2off
.subsections_via_symbols
