	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea64_map                     ## -- Begin function moea64_map
	.p2align	4, 0x90
_moea64_map:                            ## @moea64_map
	.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	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r12d
	movq	_hw_direct_map@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%rbx, %r13
	cmpq	%r15, %rbx
	jge	LBB0_5
## %bb.2:
	movq	_LPTE_M@GOTPCREL(%rip), %r14
	movq	%rbx, %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_VM_MEMATTR_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_moea64_calc_wimg
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	cmpq	%r15, %r13
	jl	LBB0_3
LBB0_5:
	cmpq	%r15, %r13
	jne	LBB0_6
## %bb.10:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PHYS_TO_DMAP                   ## TAILCALL
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %rbx
	jge	LBB0_9
## %bb.7:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_moea64_kenter
	movq	(%r14), %rax
	addq	%rax, %rbx
	addq	%rax, %r13
	cmpq	%r15, %rbx
	jl	LBB0_8
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_direct_map,8,3              ## @hw_direct_map
	.comm	_VM_MEMATTR_DEFAULT,4,2         ## @VM_MEMATTR_DEFAULT
	.comm	_LPTE_M,8,3                     ## @LPTE_M
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea64_map                     ; -- Begin function moea64_map
	.p2align	2
_moea64_map:                            ; @moea64_map
	.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	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _hw_direct_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw_direct_map@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x23, x20
	cmp	x20, x21
	b.ge	LBB0_5
; %bb.2:
Lloh3:
	adrp	x24, _VM_MEMATTR_DEFAULT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _VM_MEMATTR_DEFAULT@GOTPAGEOFF]
Lloh5:
	adrp	x25, _LPTE_M@GOTPAGE
Lloh6:
	ldr	x25, [x25, _LPTE_M@GOTPAGEOFF]
	mov	x23, x20
Lloh7:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x23
	bl	_moea64_calc_wimg
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	add	x23, x8, x23
	cmp	x23, x21
	b.lt	LBB0_3
LBB0_5:
	cmp	x23, x21
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	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
	b	_PHYS_TO_DMAP
LBB0_7:
	ldr	x23, [x19]
	mov	x24, x23
	cmp	x20, x21
	b.ge	LBB0_10
; %bb.8:
Lloh9:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	mov	x24, x23
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	mov	x2, x20
	bl	_moea64_kenter
	ldr	x8, [x25]
	add	x24, x8, x24
	add	x20, x8, x20
	cmp	x20, x21
	b.lt	LBB0_9
LBB0_10:
	str	x24, [x19]
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_direct_map,8,3              ; @hw_direct_map
	.comm	_VM_MEMATTR_DEFAULT,4,2         ; @VM_MEMATTR_DEFAULT
	.comm	_LPTE_M,8,3                     ; @LPTE_M
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
.subsections_via_symbols
