	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flush_tlb_range                ## -- Begin function flush_tlb_range
	.p2align	4, 0x90
_flush_tlb_range:                       ## @flush_tlb_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
	movq	8(%rdi), %r13
	movq	(%r13), %rax
	movq	_NO_CONTEXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_local_save_flags
	movq	%r14, %rax
	subq	%rbx, %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	movq	__TLB_ENTRIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movslq	(%r15), %rcx
	addq	%rcx, %rax
	decq	%rax
	movslq	%edx, %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_2
## %bb.8:
	movq	%r13, %rdi
	callq	_flush_tlb_mm
	jmp	LBB0_9
LBB0_2:
	xorl	%eax, %eax
	callq	_get_rasid_register
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rdi
	callq	_ASID_INSERT
	movl	%eax, %edi
	callq	_set_rasid_register
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	_VM_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.3:
	cmpq	%r14, %rbx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jae	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_invalidate_itlb_mapping
	movq	%rbx, %rdi
	callq	_invalidate_dtlb_mapping
	movslq	(%r15), %rax
	addq	%rax, %rbx
	cmpq	%r14, %rbx
	jb	LBB0_4
	jmp	LBB0_7
LBB0_5:
	cmpq	%r14, %rbx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jae	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_invalidate_dtlb_mapping
	movslq	(%r15), %rax
	addq	%rax, %rbx
	cmpq	%r14, %rbx
	jb	LBB0_6
LBB0_7:
	movl	%r12d, %edi
	callq	_set_rasid_register
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local_irq_restore              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_CONTEXT,8,3                 ## @NO_CONTEXT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	__TLB_ENTRIES,4,2               ## @_TLB_ENTRIES
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_VM_EXEC,4,2                    ## @VM_EXEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flush_tlb_range                ; -- Begin function flush_tlb_range
	.p2align	2
_flush_tlb_range:                       ; @flush_tlb_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
	ldr	x23, [x0, #8]
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _NO_CONTEXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NO_CONTEXT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_local_save_flags
Lloh3:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x24]
	sub	x9, x19, x21
	add	x8, x8, x9
	sub	x8, x8, #1
Lloh5:
	adrp	x9, __TLB_ENTRIES@GOTPAGE
Lloh6:
	ldr	x9, [x9, __TLB_ENTRIES@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _PAGE_SHIFT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PAGE_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	cmp	x8, w9, sxtw
	b.ls	LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_flush_tlb_mm
	b	LBB0_10
LBB0_4:
	bl	_get_rasid_register
	mov	x20, x0
	ldr	x0, [x23]
	bl	_ASID_INSERT
	bl	_set_rasid_register
Lloh11:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	and	x21, x8, x21
	ldr	w8, [x22]
Lloh14:
	adrp	x9, _VM_EXEC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VM_EXEC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	cmp	x21, x19
	b.hs	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_invalidate_itlb_mapping
	mov	x0, x21
	bl	_invalidate_dtlb_mapping
	ldrsw	x8, [x24]
	add	x21, x21, x8
	cmp	x21, x19
	b.lo	LBB0_6
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_invalidate_dtlb_mapping
	ldrsw	x8, [x24]
	add	x21, x21, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x21, x19
	b.lo	LBB0_7
LBB0_9:
	mov	x0, x20
	bl	_set_rasid_register
LBB0_10:
	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	_local_irq_restore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_CONTEXT,8,3                 ; @NO_CONTEXT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	__TLB_ENTRIES,4,2               ; @_TLB_ENTRIES
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_VM_EXEC,4,2                    ; @VM_EXEC
.subsections_via_symbols
