	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_invalidate_cache_pages    ## -- Begin function pmap_invalidate_cache_pages
	.p2align	4, 0x90
_pmap_invalidate_cache_pages:           ## @pmap_invalidate_cache_pages
	.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	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_PMAP_CLFLUSH_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	cmpl	%esi, %eax
	jle	LBB0_18
## %bb.1:
	movq	_cpu_stdext_feature@GOTPCREL(%rip), %rax
	movq	_CPUID_STDEXT_CLFLUSHOPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	andl	(%rax), %r13d
	movq	_cpu_feature@GOTPCREL(%rip), %rax
	movq	_CPUID_CLFSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	orl	%r13d, %ecx
	je	LBB0_18
## %bb.2:
	movl	%esi, %r14d
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_atomic_thread_fence_seq_cst
	jmp	LBB0_6
LBB0_18:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmap_invalidate_cache          ## TAILCALL
LBB0_4:
	movq	_cpu_vendor_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CPU_VENDOR_INTEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_mfence
LBB0_6:
	testl	%r14d, %r14d
	jle	LBB0_15
## %bb.7:
	movl	%r14d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_cpu_clflush_line_size@GOTPCREL(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	cmpq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_15
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %edi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %edi
	callq	_PHYS_TO_DMAP
	movq	%rax, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	testq	%r14, %r14
	jle	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	addq	%rbx, %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	callq	_clflush
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	addq	(%r15), %rbx
	cmpq	%r14, %rbx
	jge	LBB0_14
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	callq	_clflushopt
	jmp	LBB0_13
LBB0_15:
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.19:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_thread_fence_seq_cst    ## TAILCALL
LBB0_16:
	movq	_cpu_vendor_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CPU_VENDOR_INTEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mfence                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_stdext_feature,4,2         ## @cpu_stdext_feature
	.comm	_CPUID_STDEXT_CLFLUSHOPT,4,2    ## @CPUID_STDEXT_CLFLUSHOPT
	.comm	_PMAP_CLFLUSH_THRESHOLD,4,2     ## @PMAP_CLFLUSH_THRESHOLD
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_cpu_feature,4,2                ## @cpu_feature
	.comm	_CPUID_CLFSH,4,2                ## @CPUID_CLFSH
	.comm	_cpu_vendor_id,8,3              ## @cpu_vendor_id
	.comm	_CPU_VENDOR_INTEL,8,3           ## @CPU_VENDOR_INTEL
	.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_invalidate_cache_pages    ; -- Begin function pmap_invalidate_cache_pages
	.p2align	2
_pmap_invalidate_cache_pages:           ; @pmap_invalidate_cache_pages
	.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
Lloh0:
	adrp	x8, _PMAP_CLFLUSH_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMAP_CLFLUSH_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w9, [x21]
	sdiv	w8, w8, w9
	cmp	w8, w1
	b.le	LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _cpu_stdext_feature@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cpu_stdext_feature@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _CPUID_STDEXT_CLFLUSHOPT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CPUID_STDEXT_CLFLUSHOPT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w22, w9, w8
Lloh11:
	adrp	x8, _cpu_feature@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cpu_feature@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _CPUID_CLFSH@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CPUID_CLFSH@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w8, w9, w8
	orr	w8, w8, w22
	cbz	w8, LBB0_4
; %bb.2:
	mov	x20, x1
	mov	x19, x0
	cbz	w22, LBB0_5
; %bb.3:
	bl	_atomic_thread_fence_seq_cst
	b	LBB0_7
LBB0_4:
	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_invalidate_cache
LBB0_5:
Lloh17:
	adrp	x8, _cpu_vendor_id@GOTPAGE
Lloh18:
	ldr	x8, [x8, _cpu_vendor_id@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _CPU_VENDOR_INTEL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CPU_VENDOR_INTEL@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	bl	_mfence
LBB0_7:
	cmp	w20, #1
	b.lt	LBB0_16
; %bb.8:
	mov	x23, #0
	mov	w24, w20
Lloh23:
	adrp	x25, _cpu_clflush_line_size@GOTPAGE
Lloh24:
	ldr	x25, [x25, _cpu_clflush_line_size@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	cmp	x23, x24
	b.eq	LBB0_16
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	w0, [x19, x23, lsl #2]
	bl	_VM_PAGE_TO_PHYS
	bl	_PHYS_TO_DMAP
	ldrsw	x8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x20, x0
	add	x26, x0, x8
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	bl	_clflush
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	x8, [x25]
	add	x20, x8, x20
	cmp	x20, x26
	b.ge	LBB0_9
LBB0_14:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	cbz	w22, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	bl	_clflushopt
	b	LBB0_13
LBB0_16:
	cbz	w22, LBB0_18
; %bb.17:
	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	_atomic_thread_fence_seq_cst
LBB0_18:
Lloh25:
	adrp	x8, _cpu_vendor_id@GOTPAGE
Lloh26:
	ldr	x8, [x8, _cpu_vendor_id@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _CPU_VENDOR_INTEL@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CPU_VENDOR_INTEL@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:
	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
	ret
LBB0_20:
	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	_mfence
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_stdext_feature,4,2         ; @cpu_stdext_feature
	.comm	_CPUID_STDEXT_CLFLUSHOPT,4,2    ; @CPUID_STDEXT_CLFLUSHOPT
	.comm	_PMAP_CLFLUSH_THRESHOLD,4,2     ; @PMAP_CLFLUSH_THRESHOLD
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_cpu_feature,4,2                ; @cpu_feature
	.comm	_CPUID_CLFSH,4,2                ; @CPUID_CLFSH
	.comm	_cpu_vendor_id,8,3              ; @cpu_vendor_id
	.comm	_CPU_VENDOR_INTEL,8,3           ; @CPU_VENDOR_INTEL
	.comm	_cpu_clflush_line_size,8,3      ; @cpu_clflush_line_size
.subsections_via_symbols
