	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl310_wbinv_range
_pl310_wbinv_range:                     ## @pl310_wbinv_range
	.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
	movl	%edi, %r14d
	movq	_pl310_softc@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	cmpl	$0, 8(%rdi)
	je	LBB0_6
## %bb.2:
	movl	%esi, %ebx
	callq	_PL310_LOCK
	movq	_g_l2cache_align_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	andl	%r14d, %eax
	addl	%eax, %ebx
	movl	%edx, %ecx
	notl	%ecx
	movl	%ebx, %r12d
	andl	%ecx, %r12d
	movq	_g_l2cache_line_size@GOTPCREL(%rip), %r13
	addl	(%r13), %r12d
	testl	%edx, %ebx
	cmovel	%ebx, %r12d
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	sbbl	%ebx, %ebx
	orl	%ecx, %ebx
	andl	%r14d, %ebx
	movq	_PL310_CLEAN_INV_LINE_PA@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	(%r14), %esi
	movl	%ebx, %edx
	callq	_pl310_write4
	movl	(%r13), %eax
	addl	%eax, %ebx
	subl	%eax, %r12d
	testl	%r12d, %r12d
	jg	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	callq	_pl310_cache_sync
	movq	(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PL310_UNLOCK                   ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pl310_softc,8,3                ## @pl310_softc
	.comm	_g_l2cache_align_mask,4,2       ## @g_l2cache_align_mask
	.comm	_g_l2cache_line_size,8,3        ## @g_l2cache_line_size
	.comm	_PL310_CLEAN_INV_LINE_PA,4,2    ## @PL310_CLEAN_INV_LINE_PA
	.comm	_CACHE_ID_RELEASE_r1p0,8,3      ## @CACHE_ID_RELEASE_r1p0
	.comm	_CACHE_ID_RELEASE_r2p0,8,3      ## @CACHE_ID_RELEASE_r2p0
	.comm	_CACHE_ID_RELEASE_r3p1,8,3      ## @CACHE_ID_RELEASE_r3p1
	.comm	_PL310_CLEAN_LINE_PA,4,2        ## @PL310_CLEAN_LINE_PA
	.comm	_PL310_INV_LINE_PA,4,2          ## @PL310_INV_LINE_PA
	.no_dead_strip	_pl310_wbinv_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl310_wbinv_range
_pl310_wbinv_range:                     ; @pl310_wbinv_range
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x21, _pl310_softc@GOTPAGE
Lloh1:
	ldr	x21, [x21, _pl310_softc@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x20, x1
	bl	_PL310_LOCK
Lloh2:
	adrp	x8, _g_l2cache_align_mask@GOTPAGE
Lloh3:
	ldr	x8, [x8, _g_l2cache_align_mask@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	and	w8, w9, w19
Lloh5:
	adrp	x22, _g_l2cache_line_size@GOTPAGE
Lloh6:
	ldr	x22, [x22, _g_l2cache_line_size@GOTPAGEOFF]
	add	w10, w8, w20
	bic	w11, w10, w9
	ldr	w12, [x22]
	add	w11, w11, w12
	tst	w10, w9
	csel	w20, w10, w11, eq
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.3:
	mvn	w9, w9
	cmp	w8, #0
	csinv	w8, w9, wzr, ne
	and	w19, w8, w19
Lloh7:
	adrp	x23, _PL310_CLEAN_INV_LINE_PA@GOTPAGE
Lloh8:
	ldr	x23, [x23, _PL310_CLEAN_INV_LINE_PA@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w1, [x23]
	mov	x2, x19
	bl	_pl310_write4
	ldr	w8, [x22]
	add	w19, w19, w8
	sub	w20, w20, w8
	cmp	w20, #0
	b.gt	LBB0_4
LBB0_5:
	bl	_pl310_cache_sync
	ldr	x0, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PL310_UNLOCK
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pl310_softc,8,3                ; @pl310_softc
	.comm	_g_l2cache_align_mask,4,2       ; @g_l2cache_align_mask
	.comm	_g_l2cache_line_size,8,3        ; @g_l2cache_line_size
	.comm	_PL310_CLEAN_INV_LINE_PA,4,2    ; @PL310_CLEAN_INV_LINE_PA
	.comm	_CACHE_ID_RELEASE_r1p0,8,3      ; @CACHE_ID_RELEASE_r1p0
	.comm	_CACHE_ID_RELEASE_r2p0,8,3      ; @CACHE_ID_RELEASE_r2p0
	.comm	_CACHE_ID_RELEASE_r3p1,8,3      ; @CACHE_ID_RELEASE_r3p1
	.comm	_PL310_CLEAN_LINE_PA,4,2        ; @PL310_CLEAN_LINE_PA
	.comm	_PL310_INV_LINE_PA,4,2          ; @PL310_INV_LINE_PA
	.no_dead_strip	_pl310_wbinv_range
.subsections_via_symbols
