	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _sparc64_initvtop
__sparc64_initvtop:                     ## @_sparc64_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	$88, %esi
	callq	__kvm_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, 8(%r13)
	leaq	-128(%rbp), %rdx
	movl	$88, %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	__sparc64_read_phys
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	movq	-48(%rbp), %rdi
	callq	_be64toh
	movq	%rax, -48(%rbp)
	movq	-104(%rbp), %rdi
	callq	_be64toh
	movq	%rax, -104(%rbp)
	movq	-112(%rbp), %rdi
	callq	_be64toh
	movq	%rax, -112(%rbp)
	movq	-88(%rbp), %rdi
	callq	_be64toh
	movq	%rax, -88(%rbp)
	movl	-128(%rbp), %edi
	callq	_be32toh
	movl	%eax, -128(%rbp)
	cltq
	imulq	$88, %rax, %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	__kvm_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%r13, %rdi
	movl	$88, %esi
	movq	%rax, %rdx
	movq	%r12, %rcx
	callq	__sparc64_read_phys
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movl	-128(%rbp), %esi
	testl	%esi, %esi
	jle	LBB0_9
## %bb.7:
	movq	%r15, %rbx
	addq	$72, %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_be64toh
	movq	%rax, (%rbx)
	movq	-8(%rbx), %rdi
	callq	_be64toh
	movq	%rax, -8(%rbx)
	movq	-16(%rbx), %rdi
	callq	_be64toh
	movq	%rax, -16(%rbx)
	incq	%r12
	movslq	-128(%rbp), %rsi
	addq	$88, %rbx
	cmpq	%rsi, %r12
	jl	LBB0_8
LBB0_9:
	movq	__sparc64_reg_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$88, %edx
	callq	_qsort
	movq	-88(%rbp), %rax
	movq	%rax, 48(%r14)
	movq	%r15, 32(%r14)
	movl	-128(%rbp), %eax
	movl	%eax, 4(%r14)
	movq	-112(%rbp), %rdx
	movq	-104(%rbp), %rsi
	movq	%r14, %rdi
	callq	__sparc64_find_off
	movq	%rax, %rcx
	movq	%rax, 8(%r14)
	movq	_KVM_OFF_NOTFOUND@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_14
## %bb.10:
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	callq	__kvm_err
LBB0_11:
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_12
LBB0_1:
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	__kvm_err
	jmp	LBB0_13
LBB0_4:
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	callq	__kvm_err
LBB0_12:
	movq	%r14, %rdi
	callq	_free
LBB0_13:
	movl	$-1, %eax
LBB0_14:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate vm"

L_.str.1:                               ## @.str.1
	.asciz	"cannot allocate regions"

	.comm	__sparc64_reg_cmp,4,2           ## @_sparc64_reg_cmp
	.comm	_KVM_OFF_NOTFOUND,8,3           ## @KVM_OFF_NOTFOUND
L_.str.2:                               ## @.str.2
	.asciz	"tsb not found in dump"

	.no_dead_strip	__sparc64_initvtop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _sparc64_initvtop
__sparc64_initvtop:                     ; @_sparc64_initvtop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x0
	mov	w1, #88
	bl	__kvm_malloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	str	x0, [x20, #8]
	mov	w21, #88
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #0
	mov	w3, #88
	bl	__sparc64_read_phys
	cbz	w0, LBB0_12
; %bb.2:
	ldr	x0, [sp, #88]
	bl	_be64toh
	str	x0, [sp, #88]
	ldr	x0, [sp, #32]
	bl	_be64toh
	str	x0, [sp, #32]
	ldr	x0, [sp, #24]
	bl	_be64toh
	str	x0, [sp, #24]
	ldr	x0, [sp, #48]
	bl	_be64toh
	str	x0, [sp, #48]
	ldr	w0, [sp, #8]
	bl	_be32toh
	str	w0, [sp, #8]
	smull	x22, w0, w21
	mov	x0, x20
	mov	x1, x22
	bl	__kvm_malloc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	mov	w1, #88
	mov	x2, x21
	mov	x3, x22
	bl	__sparc64_read_phys
	cbz	w0, LBB0_9
; %bb.4:
	ldr	w1, [sp, #8]
	cmp	w1, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x22, #0
	add	x23, x21, #72
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	bl	_be64toh
	str	x0, [x23]
	ldur	x0, [x23, #-8]
	bl	_be64toh
	stur	x0, [x23, #-8]
	ldur	x0, [x23, #-16]
	bl	_be64toh
	stur	x0, [x23, #-16]
	add	x22, x22, #1
	ldrsw	x1, [sp, #8]
	add	x23, x23, #88
	cmp	x22, x1
	b.lt	LBB0_6
LBB0_7:
Lloh0:
	adrp	x8, __sparc64_reg_cmp@GOTPAGE
Lloh1:
	ldr	x8, [x8, __sparc64_reg_cmp@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #88
	bl	_qsort
	ldr	x8, [sp, #48]
	str	x8, [x19, #48]
	str	x21, [x19, #32]
	ldr	w8, [sp, #8]
	str	w8, [x19, #4]
	ldp	x2, x1, [sp, #24]
	mov	x0, x19
	bl	__sparc64_find_off
	str	x0, [x19, #8]
Lloh3:
	adrp	x8, _KVM_OFF_NOTFOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KVM_OFF_NOTFOUND@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.8:
	ldr	w1, [x20]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	__kvm_err
LBB0_9:
	mov	x0, x21
	bl	_free
	b	LBB0_12
LBB0_10:
	ldr	w1, [x20]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	__kvm_err
	b	LBB0_13
LBB0_11:
	ldr	w1, [x20]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	__kvm_err
LBB0_12:
	mov	x0, x19
	bl	_free
LBB0_13:
	mov	w0, #-1
LBB0_14:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_15:
	mov	w0, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate vm"

l_.str.1:                               ; @.str.1
	.asciz	"cannot allocate regions"

	.comm	__sparc64_reg_cmp,4,2           ; @_sparc64_reg_cmp
	.comm	_KVM_OFF_NOTFOUND,8,3           ; @KVM_OFF_NOTFOUND
l_.str.2:                               ; @.str.2
	.asciz	"tsb not found in dump"

	.no_dead_strip	__sparc64_initvtop
.subsections_via_symbols
