	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _arm_minidump_kvatop
__arm_minidump_kvatop:                  ## @_arm_minidump_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_ISALIVE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	__kvm_err
	jmp	LBB0_19
LBB0_2:
	movq	8(%r13), %rax
	movq	(%rax), %rcx
	cmpq	%r14, %rcx
	jle	LBB0_3
## %bb.16:
	movl	(%r13), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rdi
	movl	%r14d, %ecx
LBB0_17:
	xorl	%eax, %eax
	callq	__kvm_err
	jmp	LBB0_18
LBB0_3:
	movq	%r14, %rsi
	subq	%rcx, %rsi
	movq	_ARM_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %rsi
	movslq	8(%rax), %rax
	shrq	$3, %rax
	cmpq	%rax, %rsi
	jae	LBB0_18
## %bb.4:
	movq	%r13, %rdi
	callq	__arm_pte_get
	movq	%rax, %r12
	movq	_ARM_L2_TYPE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%r12, %rax
	movq	_ARM_L2_TYPE_INV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_6
LBB0_7:
	movq	_ARM_L2_TYPE_L@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_ARM_L2_L_FRAME@GOTPCREL(%rip), %rax
	andq	(%rax), %r12
	movq	_ARM_L2_L_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%r14, %rax
	movq	_ARM_L2_S_FRAME@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	addq	%rax, %r12
	jmp	LBB0_13
LBB0_9:
	movq	8(%r13), %rcx
	movq	16(%rcx), %rcx
	movq	_MINIDUMP_MMU_FORMAT_V4@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.10:
	movq	_ARM_L2_TYPE_T@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_6:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	__kvm_err
LBB0_18:
	leaq	L_.str.5(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	__kvm_err
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ARM_L2_S_FRAME@GOTPCREL(%rip), %rax
	andq	(%rax), %r12
LBB0_13:
	movq	_ARM_L2_S_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_ARM_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	__kvm_pt_find
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.15:
	movq	%rbx, %rcx
	andl	%r14d, %ecx
	addl	%ecx, %eax
	movl	%eax, (%r15)
	movq	_ARM_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	subl	%ecx, %ebx
	jmp	LBB0_19
LBB0_14:
	movl	(%r13), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	movl	%r12d, %ecx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_arm_minidump_kvatop called in live kernel!"

	.comm	_ARM_PAGE_SHIFT,8,3             ## @ARM_PAGE_SHIFT
	.comm	_ARM_L2_TYPE_MASK,8,3           ## @ARM_L2_TYPE_MASK
	.comm	_ARM_L2_TYPE_INV,8,3            ## @ARM_L2_TYPE_INV
L_.str.1:                               ## @.str.1
	.asciz	"_arm_minidump_kvatop: pte not valid"

	.comm	_ARM_L2_TYPE_L,8,3              ## @ARM_L2_TYPE_L
	.comm	_ARM_L2_S_OFFSET,8,3            ## @ARM_L2_S_OFFSET
	.comm	_ARM_L2_L_FRAME,8,3             ## @ARM_L2_L_FRAME
	.comm	_ARM_L2_L_OFFSET,8,3            ## @ARM_L2_L_OFFSET
	.comm	_ARM_L2_S_FRAME,8,3             ## @ARM_L2_S_FRAME
	.comm	_MINIDUMP_MMU_FORMAT_V4,8,3     ## @MINIDUMP_MMU_FORMAT_V4
	.comm	_ARM_L2_TYPE_T,8,3              ## @ARM_L2_TYPE_T
L_.str.2:                               ## @.str.2
	.asciz	"_arm_minidump_kvatop: pte not supported"

	.comm	_ARM_PAGE_SIZE,4,2              ## @ARM_PAGE_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"_arm_minidump_kvatop: physical address 0x%jx not in minidump"

L_.str.4:                               ## @.str.4
	.asciz	"_arm_minidump_kvatop: virtual address 0x%jx not minidumped"

L_.str.5:                               ## @.str.5
	.asciz	"invalid address (0x%jx)"

	.no_dead_strip	__arm_minidump_kvatop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _arm_minidump_kvatop
__arm_minidump_kvatop:                  ; @_arm_minidump_kvatop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_ISALIVE
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_9
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	cmp	x9, x20
	b.le	LBB0_5
; %bb.3:
	ldr	w1, [x19]
	str	x20, [sp]
Lloh2:
	adrp	x2, l_.str.4@PAGE
Lloh3:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	__kvm_err
	b	LBB0_8
LBB0_5:
	sub	x9, x20, x9
Lloh4:
	adrp	x10, _ARM_PAGE_SHIFT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _ARM_PAGE_SHIFT@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	asr	x1, x9, x10
	ldrsw	x8, [x8, #8]
	cmp	x1, x8, lsr #3
	b.hs	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	__arm_pte_get
Lloh7:
	adrp	x8, _ARM_L2_TYPE_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARM_L2_TYPE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh10:
	adrp	x9, _ARM_L2_TYPE_INV@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ARM_L2_TYPE_INV@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
	ldr	w1, [x19]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_8:
	str	x20, [sp]
Lloh15:
	adrp	x2, l_.str.5@PAGE
Lloh16:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	bl	__kvm_err
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
Lloh17:
	adrp	x9, _ARM_L2_TYPE_L@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ARM_L2_TYPE_L@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
Lloh20:
	adrp	x8, _ARM_L2_L_FRAME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ARM_L2_L_FRAME@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh23:
	adrp	x9, _ARM_L2_L_OFFSET@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ARM_L2_L_OFFSET@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	and	x9, x9, x20
Lloh26:
	adrp	x10, _ARM_L2_S_FRAME@GOTPAGE
Lloh27:
	ldr	x10, [x10, _ARM_L2_S_FRAME@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	and	x9, x9, x10
	add	x22, x9, x8
	b	LBB0_15
LBB0_13:
	ldr	x9, [x19, #8]
	ldr	x9, [x9, #16]
Lloh29:
	adrp	x10, _MINIDUMP_MMU_FORMAT_V4@GOTPAGE
Lloh30:
	ldr	x10, [x10, _MINIDUMP_MMU_FORMAT_V4@GOTPAGEOFF]
Lloh31:
	ldr	x10, [x10]
Lloh32:
	adrp	x11, _ARM_L2_TYPE_T@GOTPAGE
Lloh33:
	ldr	x11, [x11, _ARM_L2_TYPE_T@GOTPAGEOFF]
Lloh34:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x8, x11, #0, eq
	b.eq	LBB0_17
; %bb.14:
Lloh35:
	adrp	x8, _ARM_L2_S_FRAME@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ARM_L2_S_FRAME@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	and	x22, x8, x0
LBB0_15:
Lloh38:
	adrp	x8, _ARM_L2_S_OFFSET@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ARM_L2_S_OFFSET@GOTPAGEOFF]
Lloh40:
	ldr	x24, [x8]
Lloh41:
	adrp	x23, _ARM_PAGE_SIZE@GOTPAGE
Lloh42:
	ldr	x23, [x23, _ARM_PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x22
	bl	__kvm_pt_find
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.16:
	and	w8, w24, w20
	add	w9, w0, w8
	str	w9, [x21]
	ldr	w9, [x23]
	sub	w0, w9, w8
	b	LBB0_10
LBB0_17:
	ldr	w1, [x19]
Lloh43:
	adrp	x2, l_.str.2@PAGE
Lloh44:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_18:
	ldr	w1, [x19]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh45:
	adrp	x2, l_.str.3@PAGE
Lloh46:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_arm_minidump_kvatop called in live kernel!"

	.comm	_ARM_PAGE_SHIFT,8,3             ; @ARM_PAGE_SHIFT
	.comm	_ARM_L2_TYPE_MASK,8,3           ; @ARM_L2_TYPE_MASK
	.comm	_ARM_L2_TYPE_INV,8,3            ; @ARM_L2_TYPE_INV
l_.str.1:                               ; @.str.1
	.asciz	"_arm_minidump_kvatop: pte not valid"

	.comm	_ARM_L2_TYPE_L,8,3              ; @ARM_L2_TYPE_L
	.comm	_ARM_L2_S_OFFSET,8,3            ; @ARM_L2_S_OFFSET
	.comm	_ARM_L2_L_FRAME,8,3             ; @ARM_L2_L_FRAME
	.comm	_ARM_L2_L_OFFSET,8,3            ; @ARM_L2_L_OFFSET
	.comm	_ARM_L2_S_FRAME,8,3             ; @ARM_L2_S_FRAME
	.comm	_MINIDUMP_MMU_FORMAT_V4,8,3     ; @MINIDUMP_MMU_FORMAT_V4
	.comm	_ARM_L2_TYPE_T,8,3              ; @ARM_L2_TYPE_T
l_.str.2:                               ; @.str.2
	.asciz	"_arm_minidump_kvatop: pte not supported"

	.comm	_ARM_PAGE_SIZE,4,2              ; @ARM_PAGE_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"_arm_minidump_kvatop: physical address 0x%jx not in minidump"

l_.str.4:                               ; @.str.4
	.asciz	"_arm_minidump_kvatop: virtual address 0x%jx not minidumped"

l_.str.5:                               ; @.str.5
	.asciz	"invalid address (0x%jx)"

	.no_dead_strip	__arm_minidump_kvatop
.subsections_via_symbols
