	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpa_flush_array
_cpa_flush_array:                       ## @cpa_flush_array
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	setne	%al
	cmpl	$1024, %esi                     ## imm = 0x400
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %r14d
	xorl	%eax, %eax
	callq	_irqs_disabled
	movl	%eax, %edi
	callq	_BUG_ON
	movq	___cpa_flush_all@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_on_each_cpu
	cmpl	$1023, %r12d                    ## imm = 0x3FF
	jg	LBB0_11
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.3:
	movl	%r12d, %r15d
	xorl	%r14d, %r14d
	leaq	-60(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	cmpq	%r14, %r15
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_CPA_PAGES_ARRAY@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rdi
	callq	_page_address
	movq	%rax, %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_lookup_address
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %edi
	callq	_pte_val
	movq	__PAGE_PRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_clflush_cache_range
	jmp	LBB0_10
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___cpa_flush_all,4,2            ## @__cpa_flush_all
	.comm	_CPA_PAGES_ARRAY,4,2            ## @CPA_PAGES_ARRAY
	.comm	__PAGE_PRESENT,4,2              ## @_PAGE_PRESENT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_cpa_flush_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpa_flush_array
_cpa_flush_array:                       ; @cpa_flush_array
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	cmp	w2, #0
	cset	w8, ne
	cmp	w1, #1023
	cset	w9, gt
	and	w24, w9, w8
	bl	_irqs_disabled
	bl	_BUG_ON
Lloh0:
	adrp	x8, ___cpa_flush_all@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___cpa_flush_all@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x24
	mov	w2, #1
	bl	_on_each_cpu
	cmp	w22, #1023
	b.gt	LBB0_11
; %bb.1:
	cbz	w23, LBB0_11
; %bb.2:
	cbz	w22, LBB0_11
; %bb.3:
	mov	w23, w22
Lloh3:
	adrp	x24, _CPA_PAGES_ARRAY@GOTPAGE
Lloh4:
	ldr	x24, [x24, _CPA_PAGES_ARRAY@GOTPAGEOFF]
Lloh5:
	adrp	x25, __PAGE_PRESENT@GOTPAGE
Lloh6:
	ldr	x25, [x25, __PAGE_PRESENT@GOTPAGEOFF]
Lloh7:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #8
	add	x19, x19, #8
	subs	x23, x23, #1
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19]
	bl	_page_address
	mov	x22, x0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x22, [x21]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #12
	mov	x0, x22
	bl	_lookup_address
	cbz	x0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x0]
	bl	_pte_val
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x26]
	mov	x0, x22
	bl	_clflush_cache_range
	b	LBB0_4
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	___cpa_flush_all,4,2            ; @__cpa_flush_all
	.comm	_CPA_PAGES_ARRAY,4,2            ; @CPA_PAGES_ARRAY
	.comm	__PAGE_PRESENT,4,2              ; @_PAGE_PRESENT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_cpa_flush_array
.subsections_via_symbols
