	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmu_booke_sync_icache
_mmu_booke_sync_icache:                 ## @mmu_booke_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	_pvh_global_lock@GOTPCREL(%rip), %rdi
	callq	_rw_wlock
	movq	_curpmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movq	_kernel_pmap@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	sete	%r15b
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %rax
	sete	%al
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.1:
	orb	%al, %r15b
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movb	%r15b, -41(%rbp)                ## 1-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r12d, %rdi
	movl	%r13d, %esi
	callq	___syncicache
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	%r13d, %r12d
	subl	%r13d, %r14d
	jle	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_PMAP_LOCK
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_pte_find
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PTE_ISVALID
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_PTE_PA
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movb	$1, %bl
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_PMAP_UNLOCK
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	subl	%eax, %edi
	movl	%r14d, %esi
	callq	_min
	movl	%eax, %r13d
	testb	%bl, %bl
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	testb	%r15b, %r15b
	jne	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_PHYS_TO_VM_PAGE
	movl	%eax, %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_PMAP_LOCK
	movq	_PTE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_PTE_SR@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_pte_enter
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	___syncicache
	movq	_PTBL_UNHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_pte_remove
	movq	%r15, %rdi
	movzbl	-41(%rbp), %r15d                ## 1-byte Folded Reload
	callq	_PMAP_UNLOCK
	jmp	LBB0_3
LBB0_12:
	movq	_pvh_global_lock@GOTPCREL(%rip), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rw_wunlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pvh_global_lock,4,2            ## @pvh_global_lock
	.comm	_curpmap,4,2                    ## @curpmap
	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_PTE_SR,4,2                     ## @PTE_SR
	.comm	_PTE_VALID,4,2                  ## @PTE_VALID
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_PTBL_UNHOLD,4,2                ## @PTBL_UNHOLD
	.no_dead_strip	_mmu_booke_sync_icache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmu_booke_sync_icache
_mmu_booke_sync_icache:                 ; @mmu_booke_sync_icache
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x0, _pvh_global_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pvh_global_lock@GOTPAGEOFF]
	bl	_rw_wlock
Lloh2:
	adrp	x8, _curpmap@GOTPAGE
Lloh3:
	ldr	x8, [x8, _curpmap@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_PCPU_GET
Lloh5:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh6:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x21
	ccmp	x0, x21, #4, ne
	cset	w27, eq
	cmp	w19, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x23, x0
	mov	w24, #0
Lloh8:
	adrp	x28, _PAGE_MASK@GOTPAGE
Lloh9:
	ldr	x28, [x28, _PAGE_MASK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x0, w20
	mov	x1, x25
	bl	___syncicache
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w25, w20
	sub	w19, w19, w25
	cmp	w19, #0
	b.le	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_PMAP_LOCK
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_pte_find
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	bl	_PTE_ISVALID
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_PTE_PA
	mov	x24, x0
	mov	w26, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #0
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_PMAP_UNLOCK
Lloh10:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x28]
	and	w9, w9, w20
	sub	w0, w8, w9
	mov	x1, x19
	bl	_min
	mov	x25, x0
	cbz	w26, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w27, #0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_PHYS_TO_VM_PAGE
	mov	x26, x0
	mov	x0, x23
	bl	_PMAP_LOCK
Lloh13:
	adrp	x8, _PTE_SR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PTE_SR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _PTE_VALID@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PTE_VALID@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh19:
	adrp	x8, _FALSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh21:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x26
	mov	w3, #0
	bl	_pte_enter
	ldr	w8, [x28]
	and	w26, w8, w20
	sxtw	x0, w26
	mov	x1, x25
	bl	___syncicache
Lloh22:
	adrp	x8, _PTBL_UNHOLD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PTBL_UNHOLD@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x26
	bl	_pte_remove
	mov	x0, x23
	bl	_PMAP_UNLOCK
	b	LBB0_3
LBB0_11:
Lloh25:
	adrp	x0, _pvh_global_lock@GOTPAGE
Lloh26:
	ldr	x0, [x0, _pvh_global_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_rw_wunlock
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_pvh_global_lock,4,2            ; @pvh_global_lock
	.comm	_curpmap,4,2                    ; @curpmap
	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_PTE_SR,4,2                     ; @PTE_SR
	.comm	_PTE_VALID,4,2                  ; @PTE_VALID
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_PTBL_UNHOLD,4,2                ; @PTBL_UNHOLD
	.no_dead_strip	_mmu_booke_sync_icache
.subsections_via_symbols
