	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _amd64_minidump_vatop
__amd64_minidump_vatop:                 ## @_amd64_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AMD64_NPTEPG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	8(%r14), %rax
	movq	_AMD64_PAGE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %r13d
	andl	%r15d, %r13d
	movl	(%rax), %ecx
	cmpl	%r15d, %ecx
	jle	LBB0_1
## %bb.18:
	movl	8(%rax), %ecx
	cmpl	%r15d, %ecx
	jg	LBB0_23
## %bb.19:
	cmpl	%r15d, 12(%rax)
	jle	LBB0_23
## %bb.20:
	movl	%r15d, %eax
	subl	%ecx, %eax
	notl	%esi
	andl	%eax, %esi
	movq	_AMD64_PAGE_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%r14, %rdi
	callq	__kvm_pt_find
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.22:
	addl	%r13d, %eax
	movl	%eax, (%rbx)
	movl	(%r12), %ebx
	subl	%r13d, %ebx
	jmp	LBB0_27
LBB0_1:
	movl	%r15d, %esi
	subl	%ecx, %esi
	movq	_AMD64_PDRSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %esi
	movslq	%esi, %rcx
	movslq	4(%rax), %rax
	shrq	$2, %rax
	cmpq	%rcx, %rax
	jbe	LBB0_26
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	__amd64_pde_get
	movl	%eax, %ebx
	movq	_AMD64_PG_V@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.5:
	movq	_AMD64_PG_PS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.14:
	movq	_AMD64_PG_PS_FRAME@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_AMD64_PDRMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%r15d, %r12d
	xorl	%r13d, %r12d
	addl	%ebx, %r12d
LBB0_15:
	movq	_AMD64_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	__kvm_pt_find
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.17:
	addl	%r13d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	(%rbx), %ebx
	subl	%r13d, %ebx
	jmp	LBB0_27
LBB0_23:
	movl	(%r14), %esi
	leaq	L_.str.6(%rip), %rdx
LBB0_24:
	movq	%r14, %rdi
	movl	%r15d, %ecx
LBB0_25:
	xorl	%eax, %eax
	callq	__kvm_err
LBB0_26:
	leaq	L_.str.7(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	__kvm_err
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
LBB0_4:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	__kvm_err
	jmp	LBB0_26
LBB0_6:
	movq	_AMD64_PG_FRAME@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_AMD64_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	__kvm_pt_find
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.9:
	movl	4(%r14), %edi
	movq	_AMD64_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r12, %rsi
	movl	%eax, %ecx
	callq	_pread
	movq	_AMD64_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.11:
	movq	_AMD64_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r15d, %eax
	sarl	%cl, %eax
	movq	_AMD64_NPTEPG@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	cltq
	andq	%rcx, %rax
	movl	(%r12,%rax,4), %edi
	callq	_le64toh
	movl	%eax, %r12d
	movq	_AMD64_PG_V@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_12
## %bb.13:
	movq	_AMD64_PG_FRAME@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	jmp	LBB0_15
LBB0_21:
	movl	(%r14), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_24
LBB0_16:
	movl	(%r14), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	jmp	LBB0_25
LBB0_7:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_8
LBB0_10:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_8:
	movq	%r14, %rdi
	movl	%ebx, %ecx
	jmp	LBB0_25
LBB0_12:
	movl	(%r14), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_4
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD64_NPTEPG,4,2               ## @AMD64_NPTEPG
	.comm	_AMD64_PAGE_MASK,4,2            ## @AMD64_PAGE_MASK
	.comm	_AMD64_PDRSHIFT,4,2             ## @AMD64_PDRSHIFT
	.comm	_AMD64_PG_V,4,2                 ## @AMD64_PG_V
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_amd64_minidump_vatop: pde not valid"

	.comm	_AMD64_PG_PS,4,2                ## @AMD64_PG_PS
	.comm	_AMD64_PG_FRAME,4,2             ## @AMD64_PG_FRAME
	.comm	_AMD64_PAGE_SIZE,8,3            ## @AMD64_PAGE_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"cannot find page table entry for %ju"

L_.str.2:                               ## @.str.2
	.asciz	"cannot read page table entry for %ju"

	.comm	_AMD64_PAGE_SHIFT,4,2           ## @AMD64_PAGE_SHIFT
L_.str.3:                               ## @.str.3
	.asciz	"_amd64_minidump_vatop: pte not valid"

	.comm	_AMD64_PG_PS_FRAME,4,2          ## @AMD64_PG_PS_FRAME
	.comm	_AMD64_PDRMASK,4,2              ## @AMD64_PDRMASK
L_.str.4:                               ## @.str.4
	.asciz	"_amd64_minidump_vatop: physical address 0x%jx not in minidump"

L_.str.5:                               ## @.str.5
	.asciz	"_amd64_minidump_vatop: direct map address 0x%jx not in minidump"

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

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

	.no_dead_strip	__amd64_minidump_vatop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _amd64_minidump_vatop
__amd64_minidump_vatop:                 ; @_amd64_minidump_vatop
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _AMD64_NPTEPG@GOTPAGE
Lloh4:
	ldr	x25, [x25, _AMD64_NPTEPG@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x8, [x0, #8]
Lloh7:
	adrp	x9, _AMD64_PAGE_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AMD64_PAGE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w24, w9, w1
	ldr	w10, [x8]
	cmp	w10, w1
	b.le	LBB0_5
; %bb.1:
	ldr	w10, [x8, #8]
	cmp	w10, w20
	b.gt	LBB0_11
; %bb.2:
	ldr	w8, [x8, #12]
	cmp	w8, w20
	b.le	LBB0_11
; %bb.3:
	sub	w8, w20, w10
	bic	w1, w8, w9
Lloh10:
	adrp	x22, _AMD64_PAGE_SIZE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _AMD64_PAGE_SIZE@GOTPAGEOFF]
	ldr	x2, [x22]
	mov	x0, x19
	bl	__kvm_pt_find
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.4:
	add	w8, w0, w24
	str	w8, [x21]
	ldr	w8, [x22]
	sub	w0, w8, w24
	b	LBB0_14
LBB0_5:
Lloh12:
	adrp	x9, _AMD64_PDRSHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AMD64_PDRSHIFT@GOTPAGEOFF]
	sub	w10, w20, w10
Lloh14:
	ldr	w9, [x9]
	asr	w1, w10, w9
	sxtw	x9, w1
	ldrsw	x8, [x8, #4]
	cmp	x9, x8, lsr #2
	b.hs	LBB0_13
; %bb.6:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	__amd64_pde_get
Lloh15:
	adrp	x27, _AMD64_PG_V@GOTPAGE
Lloh16:
	ldr	x27, [x27, _AMD64_PG_V@GOTPAGEOFF]
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.7:
Lloh17:
	adrp	x8, _AMD64_PG_PS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AMD64_PG_PS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x26, _AMD64_PAGE_SIZE@GOTPAGE
Lloh21:
	ldr	x26, [x26, _AMD64_PAGE_SIZE@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_18
; %bb.8:
Lloh22:
	adrp	x8, _AMD64_PG_PS_FRAME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AMD64_PG_PS_FRAME@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh25:
	adrp	x9, _AMD64_PDRMASK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AMD64_PDRMASK@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	and	w9, w9, w20
	eor	w9, w9, w24
	add	w22, w9, w8
LBB0_9:
	ldr	x2, [x26]
	mov	x0, x19
	mov	x1, x22
	bl	__kvm_pt_find
	cmn	w0, #1
	b.eq	LBB0_23
; %bb.10:
	add	w8, w0, w24
	str	w8, [x21]
	ldr	w8, [x26]
	sub	w0, w8, w24
	b	LBB0_14
LBB0_11:
	ldr	w1, [x19]
	mov	x8, x20
	str	x8, [sp, #-16]!
Lloh28:
	adrp	x2, l_.str.6@PAGE
Lloh29:
	add	x2, x2, l_.str.6@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	__kvm_err
	add	sp, sp, #16
LBB0_13:
	str	x20, [sp, #-16]!
Lloh30:
	adrp	x2, l_.str.7@PAGE
Lloh31:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	__kvm_err
	add	sp, sp, #16
	mov	w0, #0
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.15:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	w1, [x19]
Lloh35:
	adrp	x2, l_.str@PAGE
Lloh36:
	add	x2, x2, l_.str@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	__kvm_err
	b	LBB0_13
LBB0_18:
Lloh37:
	adrp	x28, _AMD64_PG_FRAME@GOTPAGE
Lloh38:
	ldr	x28, [x28, _AMD64_PG_FRAME@GOTPAGEOFF]
	ldr	w8, [x28]
	and	w23, w8, w0
	ldr	x2, [x26]
	mov	x0, x19
	mov	x1, x23
	bl	__kvm_pt_find
	cmn	w0, #1
	b.eq	LBB0_24
; %bb.19:
	mov	x3, x0
	ldr	w0, [x19, #4]
	ldr	x2, [x26]
	mov	x1, x22
	bl	_pread
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_25
; %bb.20:
Lloh39:
	adrp	x8, _AMD64_PAGE_SHIFT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AMD64_PAGE_SHIFT@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	asr	w8, w20, w8
	ldr	w9, [x25]
	sub	w9, w9, #1
	and	w8, w9, w8
	ldr	w0, [x22, w8, sxtw #2]
	bl	_le64toh
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_26
; %bb.21:
	ldr	w8, [x28]
	and	w22, w8, w0
	b	LBB0_9
LBB0_22:
	ldr	w1, [x19]
	mov	x8, x20
	str	x8, [sp, #-16]!
Lloh42:
	adrp	x2, l_.str.5@PAGE
Lloh43:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_23:
	ldr	w1, [x19]
	str	x22, [sp, #-16]!
Lloh44:
	adrp	x2, l_.str.4@PAGE
Lloh45:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_24:
	ldr	w1, [x19]
	str	x23, [sp, #-16]!
Lloh46:
	adrp	x2, l_.str.1@PAGE
Lloh47:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_25:
	ldr	w1, [x19]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp, #-16]!
Lloh48:
	adrp	x2, l_.str.2@PAGE
Lloh49:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_26:
	ldr	w1, [x19]
Lloh50:
	adrp	x2, l_.str.3@PAGE
Lloh51:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD64_NPTEPG,4,2               ; @AMD64_NPTEPG
	.comm	_AMD64_PAGE_MASK,4,2            ; @AMD64_PAGE_MASK
	.comm	_AMD64_PDRSHIFT,4,2             ; @AMD64_PDRSHIFT
	.comm	_AMD64_PG_V,4,2                 ; @AMD64_PG_V
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_amd64_minidump_vatop: pde not valid"

	.comm	_AMD64_PG_PS,4,2                ; @AMD64_PG_PS
	.comm	_AMD64_PG_FRAME,4,2             ; @AMD64_PG_FRAME
	.comm	_AMD64_PAGE_SIZE,8,3            ; @AMD64_PAGE_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"cannot find page table entry for %ju"

l_.str.2:                               ; @.str.2
	.asciz	"cannot read page table entry for %ju"

	.comm	_AMD64_PAGE_SHIFT,4,2           ; @AMD64_PAGE_SHIFT
l_.str.3:                               ; @.str.3
	.asciz	"_amd64_minidump_vatop: pte not valid"

	.comm	_AMD64_PG_PS_FRAME,4,2          ; @AMD64_PG_PS_FRAME
	.comm	_AMD64_PDRMASK,4,2              ; @AMD64_PDRMASK
l_.str.4:                               ; @.str.4
	.asciz	"_amd64_minidump_vatop: physical address 0x%jx not in minidump"

l_.str.5:                               ; @.str.5
	.asciz	"_amd64_minidump_vatop: direct map address 0x%jx not in minidump"

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

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

	.no_dead_strip	__amd64_minidump_vatop
.subsections_via_symbols
