	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea64_sync_icache             ## -- Begin function moea64_sync_icache
	.p2align	4, 0x90
_moea64_sync_icache:                    ## @moea64_sync_icache
	.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	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r12
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	testq	%rsi, %rsi
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
LBB0_2:
	movq	%r12, %rdi
	callq	_PMAP_LOCK
	testq	%r14, %r14
	jle	LBB0_8
## %bb.3:
	movq	_ADDR_POFF@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	%r13d, %ebx
	subq	%r13, %r14
	jle	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%rbx), %edi
	callq	_round_page
	subl	%ebx, %eax
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_MIN
	movq	%rax, %r13
	movl	(%r15), %esi
	notl	%esi
	andl	%ebx, %esi
	movq	%r12, %rdi
	callq	_moea64_pvo_find_va
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %eax
	movq	_LPTE_I@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_LPTE_RPGN@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	(%r15), %ecx
	andl	%ebx, %ecx
	orl	%eax, %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r13, %r8
	callq	_moea64_syncicache
	jmp	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PMAP_UNLOCK                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_ADDR_POFF,4,2                  ## @ADDR_POFF
	.comm	_LPTE_I,4,2                     ## @LPTE_I
	.comm	_LPTE_RPGN,4,2                  ## @LPTE_RPGN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea64_sync_icache             ; -- Begin function moea64_sync_icache
	.p2align	2
_moea64_sync_icache:                    ; @moea64_sync_icache
	.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	x20, x2
	mov	x22, x1
	mov	x21, x0
	cmp	x1, #0
	cset	w0, eq
	bl	___predict_false
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x22, [x8]
LBB0_2:
	mov	x0, x22
	bl	_PMAP_LOCK
	cmp	x19, #1
	b.lt	LBB0_8
; %bb.3:
Lloh3:
	adrp	x24, _ADDR_POFF@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ADDR_POFF@GOTPAGEOFF]
Lloh5:
	adrp	x25, _LPTE_I@GOTPAGE
Lloh6:
	ldr	x25, [x25, _LPTE_I@GOTPAGEOFF]
Lloh7:
	adrp	x26, _LPTE_RPGN@GOTPAGE
Lloh8:
	ldr	x26, [x26, _LPTE_RPGN@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, w23
	sub	x19, x19, x23
	cmp	x19, #0
	b.le	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w20, #1
	bl	_round_page
	sub	w0, w0, w20
	mov	x1, x19
	bl	_MIN
	mov	x23, x0
	ldr	w8, [x24]
	bic	w1, w20, w8
	mov	x0, x22
	bl	_moea64_pvo_find_va
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x0]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x26]
	and	w8, w9, w8
	ldr	w9, [x24]
	and	w9, w9, w20
	orr	w3, w9, w8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x4, x23
	bl	_moea64_syncicache
	b	LBB0_4
LBB0_8:
	mov	x0, x22
	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	_PMAP_UNLOCK
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_ADDR_POFF,4,2                  ; @ADDR_POFF
	.comm	_LPTE_I,4,2                     ; @LPTE_I
	.comm	_LPTE_RPGN,4,2                  ; @LPTE_RPGN
.subsections_via_symbols
