	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _arm_kvatop
__arm_kvatop:                           ## @_arm_kvatop
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movl	%r14d, %edi
	callq	_ARM_L1_IDX
	movl	(%rbx,%rax,4), %esi
	movq	%r12, %rdi
	callq	__kvm32toh
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_l1pte_valid
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%ebx, %edi
	callq	_l1pte_section_p
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ARM_L1_S_ADDR_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_ARM_L1_S_OFFSET@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	addl	%ebx, %r14d
	movl	%r14d, (%r15)
	movq	_ARM_L1_S_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ARM_PAGE_SIZE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__kvm_pa2off                    ## TAILCALL
LBB0_6:
	movq	_ARM_L1_C_ADDR_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_l2pte_index
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax,4), %esi
	movq	_ARM_L1_S_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	callq	__kvm_pa2off
	movl	4(%r12), %edi
	movl	-36(%rbp), %ecx
	leaq	-40(%rbp), %rsi
	movl	$4, %edx
	callq	_pread
	cmpl	$4, %eax
	jne	LBB0_7
## %bb.10:
	movl	-40(%rbp), %esi
	movq	%r12, %rdi
	callq	__kvm32toh
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_l2pte_valid
	testl	%eax, %eax
	je	LBB0_8
## %bb.11:
	movq	_ARM_L2_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_ARM_L2_TYPE_L@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.12:
	movq	_ARM_L2_L_FRAME@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_ARM_L2_L_OFFSET@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	orl	%ebx, %r14d
	movl	%r14d, (%r15)
	movq	_ARM_L2_L_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	__kvm_syserr
LBB0_8:
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %ecx
	callq	__kvm_err
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_ARM_L2_S_FRAME@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_ARM_L2_S_OFFSET@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	orl	%ebx, %r14d
	movl	%r14d, (%r15)
	movq	_ARM_PAGE_SIZE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	__kvm_pa2off
	movl	%eax, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_PAGE_SIZE,4,2              ## @ARM_PAGE_SIZE
	.comm	_ARM_L1_S_ADDR_MASK,4,2         ## @ARM_L1_S_ADDR_MASK
	.comm	_ARM_L1_S_OFFSET,4,2            ## @ARM_L1_S_OFFSET
	.comm	_ARM_L1_S_SIZE,4,2              ## @ARM_L1_S_SIZE
	.comm	_ARM_L1_C_ADDR_MASK,4,2         ## @ARM_L1_C_ADDR_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_arm_kvatop: pread"

	.comm	_ARM_L2_TYPE_MASK,4,2           ## @ARM_L2_TYPE_MASK
	.comm	_ARM_L2_TYPE_L,4,2              ## @ARM_L2_TYPE_L
	.comm	_ARM_L2_L_FRAME,4,2             ## @ARM_L2_L_FRAME
	.comm	_ARM_L2_L_OFFSET,4,2            ## @ARM_L2_L_OFFSET
	.comm	_ARM_L2_L_SIZE,4,2              ## @ARM_L2_L_SIZE
	.comm	_ARM_L2_S_FRAME,4,2             ## @ARM_L2_S_FRAME
	.comm	_ARM_L2_S_OFFSET,4,2            ## @ARM_L2_S_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"Invalid address (%jx)"

	.no_dead_strip	__arm_kvatop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _arm_kvatop
__arm_kvatop:                           ; @_arm_kvatop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	cbz	x22, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_ARM_L1_IDX
	ldr	w1, [x22, x0, lsl #2]
	mov	x0, x19
	bl	__kvm32toh
	mov	x22, x0
	bl	_l1pte_valid
	cbz	w0, LBB0_11
; %bb.2:
	mov	x0, x22
	bl	_l1pte_section_p
	cbz	x0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _ARM_L1_S_ADDR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARM_L1_S_ADDR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ARM_L1_S_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARM_L1_S_OFFSET@GOTPAGEOFF]
	and	w8, w8, w22
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w21
	add	w1, w9, w8
Lloh6:
	adrp	x8, _ARM_L1_S_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARM_L1_S_SIZE@GOTPAGEOFF]
	str	w1, [x20]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _ARM_PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARM_PAGE_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
LBB0_5:
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	__kvm_pa2off
LBB0_6:
Lloh12:
	adrp	x8, _ARM_L1_C_ADDR_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ARM_L1_C_ADDR_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w22, w8, w22
	mov	x0, x21
	bl	_l2pte_index
	add	w1, w22, w0, lsl #2
Lloh15:
	adrp	x8, _ARM_L1_S_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ARM_L1_S_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	__kvm_pa2off
	ldr	w0, [x19, #4]
	ldr	w3, [sp, #8]
	add	x1, sp, #12
	mov	w2, #4
	bl	_pread
	cmp	w0, #4
	b.ne	LBB0_10
; %bb.7:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	__kvm32toh
	mov	x22, x0
	bl	_l2pte_valid
	cbz	w0, LBB0_11
; %bb.8:
Lloh18:
	adrp	x8, _ARM_L2_TYPE_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ARM_L2_TYPE_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	and	w8, w8, w22
Lloh21:
	adrp	x9, _ARM_L2_TYPE_L@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ARM_L2_TYPE_L@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.9:
Lloh24:
	adrp	x8, _ARM_L2_L_FRAME@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ARM_L2_L_FRAME@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	and	w8, w8, w22
Lloh27:
	adrp	x9, _ARM_L2_L_OFFSET@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ARM_L2_L_OFFSET@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	and	w9, w9, w21
	orr	w1, w9, w8
	str	w1, [x20]
Lloh30:
	adrp	x8, _ARM_L2_L_SIZE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ARM_L2_L_SIZE@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	ldr	w1, [x19]
Lloh32:
	adrp	x2, l_.str@PAGE
Lloh33:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	__kvm_syserr
LBB0_11:
Lloh34:
	adrp	x2, l_.str.1@PAGE
Lloh35:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	x3, x21
	bl	__kvm_err
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
Lloh36:
	adrp	x8, _ARM_L2_S_FRAME@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ARM_L2_S_FRAME@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	and	w8, w8, w22
Lloh39:
	adrp	x9, _ARM_L2_S_OFFSET@GOTPAGE
Lloh40:
	ldr	x9, [x9, _ARM_L2_S_OFFSET@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	and	w9, w9, w21
	orr	w1, w9, w8
	str	w1, [x20]
Lloh42:
	adrp	x8, _ARM_PAGE_SIZE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ARM_PAGE_SIZE@GOTPAGEOFF]
LBB0_14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	__kvm_pa2off
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_PAGE_SIZE,4,2              ; @ARM_PAGE_SIZE
	.comm	_ARM_L1_S_ADDR_MASK,4,2         ; @ARM_L1_S_ADDR_MASK
	.comm	_ARM_L1_S_OFFSET,4,2            ; @ARM_L1_S_OFFSET
	.comm	_ARM_L1_S_SIZE,4,2              ; @ARM_L1_S_SIZE
	.comm	_ARM_L1_C_ADDR_MASK,4,2         ; @ARM_L1_C_ADDR_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_arm_kvatop: pread"

	.comm	_ARM_L2_TYPE_MASK,4,2           ; @ARM_L2_TYPE_MASK
	.comm	_ARM_L2_TYPE_L,4,2              ; @ARM_L2_TYPE_L
	.comm	_ARM_L2_L_FRAME,4,2             ; @ARM_L2_L_FRAME
	.comm	_ARM_L2_L_OFFSET,4,2            ; @ARM_L2_L_OFFSET
	.comm	_ARM_L2_L_SIZE,4,2              ; @ARM_L2_L_SIZE
	.comm	_ARM_L2_S_FRAME,4,2             ; @ARM_L2_S_FRAME
	.comm	_ARM_L2_S_OFFSET,4,2            ; @ARM_L2_S_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"Invalid address (%jx)"

	.no_dead_strip	__arm_kvatop
.subsections_via_symbols
