	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea_mapdev_attr               ## -- Begin function moea_mapdev_attr
	.p2align	4, 0x90
_moea_mapdev_attr:                      ## @moea_mapdev_attr
	.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
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_trunc_page
	movl	%eax, %r12d
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%r14d, %r15d
	movslq	%r15d, %rdi
	addq	%rbx, %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_roundup
	movq	%rax, %r13
	xorl	%edi, %edi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movl	$1, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.2:
	movl	$2, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.3:
	movl	$3, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.4:
	movl	$4, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.5:
	movl	$5, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.6:
	movl	$6, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.7:
	movl	$7, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.8:
	movl	$8, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.9:
	movl	$9, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.10:
	movl	$10, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.11:
	movl	$11, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.12:
	movl	$12, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.13:
	movl	$13, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.14:
	movl	$14, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:
	movl	$15, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_moea_bat_mapped
	testq	%rax, %rax
	je	LBB0_22
## %bb.16:
	movq	%r13, %rdi
	callq	_kva_alloc
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_18:
	testq	%r13, %r13
	jle	LBB0_21
## %bb.19:
	movl	%r14d, %esi
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%esi, %r12d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_moea_kenter_attr
	movl	%r12d, %edi
	callq	_tlbie
	movl	%r12d, %esi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	(%rbx), %rax
	addl	%eax, %esi
	addl	%eax, %r12d
	subq	%rax, %r13
	jg	LBB0_20
LBB0_21:
	addl	%r15d, %r14d
LBB0_22:
	movslq	%r14d, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"moea_mapdev: Couldn't alloc kernel virtual memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea_mapdev_attr               ; -- Begin function moea_mapdev_attr
	.p2align	2
_moea_mapdev_attr:                      ; @moea_mapdev_attr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_trunc_page
	mov	x22, x0
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w25, w8, w21
	add	x0, x23, w25, sxtw
Lloh3:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x1, [x26]
	bl	_roundup
	mov	x23, x0
	mov	w0, #0
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.1:
	mov	w0, #1
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.2:
	mov	w0, #2
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.3:
	mov	w0, #3
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.4:
	mov	w0, #4
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.5:
	mov	w0, #5
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.6:
	mov	w0, #6
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.7:
	mov	w0, #7
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.8:
	mov	w0, #8
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.9:
	mov	w0, #9
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.10:
	mov	w0, #10
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.11:
	mov	w0, #11
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.12:
	mov	w0, #12
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.13:
	mov	w0, #13
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.14:
	mov	w0, #14
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.15:
	mov	w0, #15
	mov	x1, x21
	mov	x2, x23
	bl	_moea_bat_mapped
	cbz	x0, LBB0_22
; %bb.16:
	mov	x0, x23
	bl	_kva_alloc
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.17:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_18:
	cmp	x23, #1
	b.lt	LBB0_21
; %bb.19:
	mov	x24, x21
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x22
	mov	x3, x19
	bl	_moea_kenter_attr
	mov	x0, x24
	bl	_tlbie
	ldr	x8, [x26]
	sub	x23, x23, x8
	add	w24, w24, w8
	add	w22, w22, w8
	cmp	x23, #0
	b.gt	LBB0_20
LBB0_21:
	add	w21, w21, w25
LBB0_22:
	sxtw	x0, w21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"moea_mapdev: Couldn't alloc kernel virtual memory"

.subsections_via_symbols
