	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _arm_minidump_initvtop
__arm_minidump_initvtop:                ## @_arm_minidump_initvtop
	.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	%rdi, %r12
	movl	$64, %esi
	callq	__kvm_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movq	%rax, 8(%r12)
	movl	4(%r12), %edi
	movq	%rax, %rsi
	movl	$64, %edx
	xorl	%ecx, %ecx
	callq	_pread
	cmpl	$64, %eax
	jne	LBB0_5
## %bb.2:
	movq	_MINIDUMP_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	56(%r14), %esi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_6
LBB0_4:
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_6
LBB0_5:
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_6:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	__kvm_err
LBB0_7:
	movl	$-1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%r14), %rsi
	movq	%r12, %rdi
	callq	__kvm32toh
	movq	%rax, (%r14)
	movq	_MINIDUMP_VERSION@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_15
## %bb.10:
	movq	8(%r14), %rsi
	movq	%r12, %rdi
	callq	__kvm32toh
	movq	%rax, 8(%r14)
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	callq	__kvm32toh
	movq	%rax, 16(%r14)
	movq	24(%r14), %rsi
	movq	%r12, %rdi
	callq	__kvm32toh
	movq	%rax, 24(%r14)
	movq	32(%r14), %rsi
	movq	%r12, %rdi
	callq	__kvm32toh
	movq	%rax, 32(%r14)
	movq	40(%r14), %rsi
	movq	%r12, %rdi
	callq	__kvm32toh
	movq	%rax, 40(%r14)
	movq	48(%r14), %rsi
	movq	%r12, %rdi
	callq	__kvm32toh
	movq	%rax, 48(%r14)
	movq	_MINIDUMP_MMU_FORMAT_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_12
## %bb.11:
	movq	_MINIDUMP_MMU_FORMAT_V6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r14)
LBB0_12:
	movq	_ARM_PAGE_SIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movq	8(%r14), %rdi
	callq	_arm_round_page
	movq	%rax, %r15
	addq	%rbx, %r15
	movq	16(%r14), %rdi
	callq	_arm_round_page
	leaq	(%rax,%r15), %rbx
	movq	24(%r14), %rdi
	callq	_arm_round_page
	addq	%rax, %rbx
	movq	16(%r14), %rsi
	movq	(%r13), %r8
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movl	$4, %r9d
	callq	__kvm_pt_init
	movl	$-1, %ebx
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.13:
	movq	16(%r14), %rdi
	callq	_arm_round_page
	addq	%rax, %r15
	movq	24(%r14), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	__kvm_pmap_init
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.14:
	movq	24(%r14), %rdi
	callq	_arm_round_page
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_15:
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	__kvm_err
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate vm"

L_.str.1:                               ## @.str.1
	.asciz	"cannot read dump header"

	.comm	_MINIDUMP_MAGIC,4,2             ## @MINIDUMP_MAGIC
L_.str.2:                               ## @.str.2
	.asciz	"not a minidump for this platform"

	.comm	_MINIDUMP_VERSION,8,3           ## @MINIDUMP_VERSION
L_.str.3:                               ## @.str.3
	.asciz	"wrong minidump version. Expected %d got %d"

	.comm	_MINIDUMP_MMU_FORMAT_UNKNOWN,8,3 ## @MINIDUMP_MMU_FORMAT_UNKNOWN
	.comm	_MINIDUMP_MMU_FORMAT_V6,8,3     ## @MINIDUMP_MMU_FORMAT_V6
	.comm	_ARM_PAGE_SIZE,8,3              ## @ARM_PAGE_SIZE
	.no_dead_strip	__arm_minidump_initvtop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _arm_minidump_initvtop
__arm_minidump_initvtop:                ; @_arm_minidump_initvtop
	.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	x19, x0
	mov	w1, #64
	bl	__kvm_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x0, [x19, #8]
	ldr	w0, [x19, #4]
	mov	x1, x20
	mov	w2, #64
	mov	w3, #0
	bl	_pread
	cmp	w0, #64
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _MINIDUMP_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MINIDUMP_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #56]
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w1, [x19]
Lloh3:
	adrp	x2, l_.str.2@PAGE
Lloh4:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w1, [x19]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w1, [x19]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	__kvm_err
	mov	w0, #-1
LBB0_7:
	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_8:
	ldr	x1, [x20]
	mov	x0, x19
	bl	__kvm32toh
	str	x0, [x20]
Lloh9:
	adrp	x8, _MINIDUMP_VERSION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MINIDUMP_VERSION@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_14
; %bb.9:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	__kvm32toh
	str	x0, [x20, #8]
	ldr	x1, [x20, #16]
	mov	x0, x19
	bl	__kvm32toh
	str	x0, [x20, #16]
	ldr	x1, [x20, #24]
	mov	x0, x19
	bl	__kvm32toh
	str	x0, [x20, #24]
	ldr	x1, [x20, #32]
	mov	x0, x19
	bl	__kvm32toh
	str	x0, [x20, #32]
	ldr	x1, [x20, #40]
	mov	x0, x19
	bl	__kvm32toh
	str	x0, [x20, #40]
	ldr	x1, [x20, #48]
	mov	x0, x19
	bl	__kvm32toh
	str	x0, [x20, #48]
Lloh12:
	adrp	x8, _MINIDUMP_MMU_FORMAT_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MINIDUMP_MMU_FORMAT_UNKNOWN@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_11
; %bb.10:
Lloh15:
	adrp	x8, _MINIDUMP_MMU_FORMAT_V6@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MINIDUMP_MMU_FORMAT_V6@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x20, #48]
LBB0_11:
Lloh18:
	adrp	x22, _ARM_PAGE_SIZE@GOTPAGE
Lloh19:
	ldr	x22, [x22, _ARM_PAGE_SIZE@GOTPAGEOFF]
	ldr	x21, [x22]
	ldr	x0, [x20, #8]
	bl	_arm_round_page
	add	x21, x0, x21
	ldr	x0, [x20, #16]
	bl	_arm_round_page
	add	x23, x0, x21
	ldr	x0, [x20, #24]
	bl	_arm_round_page
	add	x3, x23, x0
	ldr	x1, [x20, #16]
	ldr	x4, [x22]
	mov	x0, x19
	mov	x2, x21
	mov	w5, #4
	bl	__kvm_pt_init
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.12:
	ldr	x0, [x20, #16]
	bl	_arm_round_page
	add	x2, x0, x21
	ldr	x1, [x20, #24]
	mov	x0, x19
	bl	__kvm_pmap_init
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.13:
	ldr	x0, [x20, #24]
	bl	_arm_round_page
	mov	w0, #0
	b	LBB0_7
LBB0_14:
	ldr	w1, [x19]
	stp	x8, x0, [sp]
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate vm"

l_.str.1:                               ; @.str.1
	.asciz	"cannot read dump header"

	.comm	_MINIDUMP_MAGIC,4,2             ; @MINIDUMP_MAGIC
l_.str.2:                               ; @.str.2
	.asciz	"not a minidump for this platform"

	.comm	_MINIDUMP_VERSION,8,3           ; @MINIDUMP_VERSION
l_.str.3:                               ; @.str.3
	.asciz	"wrong minidump version. Expected %d got %d"

	.comm	_MINIDUMP_MMU_FORMAT_UNKNOWN,8,3 ; @MINIDUMP_MMU_FORMAT_UNKNOWN
	.comm	_MINIDUMP_MMU_FORMAT_V6,8,3     ; @MINIDUMP_MMU_FORMAT_V6
	.comm	_ARM_PAGE_SIZE,8,3              ; @ARM_PAGE_SIZE
	.no_dead_strip	__arm_minidump_initvtop
.subsections_via_symbols
