	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _aarch64_minidump_vatop
__aarch64_minidump_vatop:               ## @_aarch64_minidump_vatop
	.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, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	_AARCH64_PAGE_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	%esi, %r15d
	andl	%r13d, %r15d
	movq	(%rax), %rcx
	cmpq	%r13, %rcx
	jg	LBB0_5
## %bb.1:
	cmpq	%r13, 8(%rax)
	jle	LBB0_5
## %bb.2:
	movl	%r13d, %edx
	subl	%ecx, %edx
	addl	16(%rax), %edx
	notl	%esi
	andl	%edx, %esi
	movq	_AARCH64_PAGE_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	__kvm_pt_find
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	addl	%r15d, %eax
	movl	%eax, (%rbx)
	movl	(%r12), %ebx
	subl	%r15d, %ebx
	jmp	LBB0_16
LBB0_5:
	movq	24(%rax), %rcx
	cmpq	%r13, %rcx
	jle	LBB0_6
## %bb.12:
	movl	(%r14), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_13:
	movq	%r14, %rdi
	movl	%r13d, %ecx
LBB0_14:
	xorl	%eax, %eax
	callq	__kvm_err
	jmp	LBB0_15
LBB0_6:
	movq	%r13, %rsi
	subq	%rcx, %rsi
	movq	_AARCH64_L3_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %rsi
	movslq	32(%rax), %rax
	shrq	$2, %rax
	cmpq	%rax, %rsi
	jae	LBB0_15
## %bb.7:
	movq	%r14, %rdi
	callq	__aarch64_pte_get
	movl	%eax, %r12d
	movq	_AARCH64_ATTR_DESCR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_AARCH64_L3_PAGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.9:
	movq	_AARCH64_ATTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	movq	_AARCH64_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	__kvm_pt_find
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.11:
	addl	%r15d, %eax
	movl	%eax, (%rbx)
	movq	_AARCH64_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	subl	%r15d, %ebx
	jmp	LBB0_16
LBB0_3:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_13
LBB0_8:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	__kvm_err
LBB0_15:
	leaq	L_.str.4(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	__kvm_err
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AARCH64_PAGE_MASK,8,3          ## @AARCH64_PAGE_MASK
	.comm	_AARCH64_PAGE_SIZE,4,2          ## @AARCH64_PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_aarch64_minidump_vatop: direct map address 0x%jx not in minidump"

	.comm	_AARCH64_L3_SHIFT,8,3           ## @AARCH64_L3_SHIFT
	.comm	_AARCH64_ATTR_DESCR_MASK,4,2    ## @AARCH64_ATTR_DESCR_MASK
	.comm	_AARCH64_L3_PAGE,4,2            ## @AARCH64_L3_PAGE
L_.str.1:                               ## @.str.1
	.asciz	"_aarch64_minidump_vatop: pde not valid"

	.comm	_AARCH64_ATTR_MASK,4,2          ## @AARCH64_ATTR_MASK
L_.str.2:                               ## @.str.2
	.asciz	"_aarch64_minidump_vatop: physical address 0x%jx not in minidump"

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

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

	.no_dead_strip	__aarch64_minidump_vatop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _aarch64_minidump_vatop
__aarch64_minidump_vatop:               ; @_aarch64_minidump_vatop
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _AARCH64_PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AARCH64_PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	and	w23, w9, w20
	ldr	x10, [x8]
	cmp	x10, x1
	b.gt	LBB0_4
; %bb.1:
	ldr	x11, [x8, #8]
	cmp	x11, x20
	b.le	LBB0_4
; %bb.2:
	ldr	w8, [x8, #16]
	sub	w10, w20, w10
	add	w8, w10, w8
	bic	w1, w8, w9
Lloh3:
	adrp	x22, _AARCH64_PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AARCH64_PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	__kvm_pt_find
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.3:
	add	w8, w0, w23
	str	w8, [x21]
	ldr	w8, [x22]
	sub	w0, w8, w23
	b	LBB0_12
LBB0_4:
	ldr	x9, [x8, #24]
	cmp	x9, x20
	b.le	LBB0_7
; %bb.5:
	ldr	w1, [x19]
	str	x20, [sp]
Lloh5:
	adrp	x2, l_.str.3@PAGE
Lloh6:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	__kvm_err
	b	LBB0_11
LBB0_7:
	sub	x9, x20, x9
Lloh7:
	adrp	x10, _AARCH64_L3_SHIFT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _AARCH64_L3_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	asr	x1, x9, x10
	ldrsw	x8, [x8, #32]
	cmp	x1, x8, lsr #2
	b.hs	LBB0_11
; %bb.8:
	mov	x0, x19
	bl	__aarch64_pte_get
Lloh10:
	adrp	x8, _AARCH64_ATTR_DESCR_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AARCH64_ATTR_DESCR_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh13:
	adrp	x9, _AARCH64_L3_PAGE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AARCH64_L3_PAGE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.9:
Lloh16:
	adrp	x8, _AARCH64_ATTR_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AARCH64_ATTR_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bic	w22, w0, w8
Lloh19:
	adrp	x24, _AARCH64_PAGE_SIZE@GOTPAGE
Lloh20:
	ldr	x24, [x24, _AARCH64_PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x22
	bl	__kvm_pt_find
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.10:
	add	w8, w0, w23
	str	w8, [x21]
	ldr	w8, [x24]
	sub	w0, w8, w23
	b	LBB0_12
LBB0_11:
	str	x20, [sp]
Lloh21:
	adrp	x2, l_.str.4@PAGE
Lloh22:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	__kvm_err
	mov	w0, #0
LBB0_12:
	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_13:
	ldr	w1, [x19]
	str	x20, [sp]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_6
LBB0_14:
	ldr	w1, [x19]
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_15:
	ldr	w1, [x19]
	str	x22, [sp]
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AARCH64_PAGE_MASK,8,3          ; @AARCH64_PAGE_MASK
	.comm	_AARCH64_PAGE_SIZE,4,2          ; @AARCH64_PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_aarch64_minidump_vatop: direct map address 0x%jx not in minidump"

	.comm	_AARCH64_L3_SHIFT,8,3           ; @AARCH64_L3_SHIFT
	.comm	_AARCH64_ATTR_DESCR_MASK,4,2    ; @AARCH64_ATTR_DESCR_MASK
	.comm	_AARCH64_L3_PAGE,4,2            ; @AARCH64_L3_PAGE
l_.str.1:                               ; @.str.1
	.asciz	"_aarch64_minidump_vatop: pde not valid"

	.comm	_AARCH64_ATTR_MASK,4,2          ; @AARCH64_ATTR_MASK
l_.str.2:                               ; @.str.2
	.asciz	"_aarch64_minidump_vatop: physical address 0x%jx not in minidump"

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

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

	.no_dead_strip	__aarch64_minidump_vatop
.subsections_via_symbols
