	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_flush_cache_range         ## -- Begin function pmap_flush_cache_range
	.p2align	4, 0x90
_pmap_flush_cache_range:                ## @pmap_flush_cache_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_pmap_invalidate_cache_range_check_align
	movq	_cpu_stdext_feature@GOTPCREL(%rip), %rax
	movq	_CPUID_STDEXT_CLWB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_pmap_kextract
	movq	_lapic_paddr@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmap_force_invalidate_cache_range ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	callq	_atomic_thread_fence_seq_cst
	cmpq	%r14, %rbx
	jge	LBB0_5
## %bb.3:
	movq	_cpu_clflush_line_size@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_clwb
	addq	(%r15), %rbx
	cmpq	%r14, %rbx
	jl	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_thread_fence_seq_cst    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_stdext_feature,4,2         ## @cpu_stdext_feature
	.comm	_CPUID_STDEXT_CLWB,4,2          ## @CPUID_STDEXT_CLWB
	.comm	_lapic_paddr,8,3                ## @lapic_paddr
	.comm	_cpu_clflush_line_size,8,3      ## @cpu_clflush_line_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_flush_cache_range         ; -- Begin function pmap_flush_cache_range
	.p2align	2
_pmap_flush_cache_range:                ; @pmap_flush_cache_range
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_pmap_invalidate_cache_range_check_align
Lloh0:
	adrp	x8, _cpu_stdext_feature@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_stdext_feature@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CPUID_STDEXT_CLWB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CPUID_STDEXT_CLWB@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_pmap_kextract
Lloh6:
	adrp	x8, _lapic_paddr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lapic_paddr@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pmap_force_invalidate_cache_range
LBB0_4:
	bl	_atomic_thread_fence_seq_cst
	cmp	x20, x19
	b.ge	LBB0_7
; %bb.5:
Lloh9:
	adrp	x21, _cpu_clflush_line_size@GOTPAGE
Lloh10:
	ldr	x21, [x21, _cpu_clflush_line_size@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_clwb
	ldr	x8, [x21]
	add	x20, x8, x20
	cmp	x20, x19
	b.lt	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_atomic_thread_fence_seq_cst
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_stdext_feature,4,2         ; @cpu_stdext_feature
	.comm	_CPUID_STDEXT_CLWB,4,2          ; @CPUID_STDEXT_CLWB
	.comm	_lapic_paddr,8,3                ; @lapic_paddr
	.comm	_cpu_clflush_line_size,8,3      ; @cpu_clflush_line_size
.subsections_via_symbols
