	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_cs_tlb
_flush_cs_tlb:                          ## @flush_cs_tlb
	.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	%rdi, %rbx
	movq	16(%rdi), %rdi
	movl	$6, %esi
	movl	$7, %edx
	callq	_IS_GEN_RANGE
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_RING_MI_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ENGINE_READ
	movq	_MODE_IDLE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	sete	%dil
	callq	_WARN_ON
	movq	_INSTPM_TLB_INVALIDATE@GOTPCREL(%rip), %rax
	movq	_INSTPM_SYNC_FLUSH@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	orl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movq	_RING_INSTPM@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ENGINE_WRITE
	movl	4(%rbx), %edi
	movl	8(%rbx), %r14d
	callq	_RING_INSTPM
	movl	(%r15), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_intel_wait_for_register
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_MI_MODE,4,2               ## @RING_MI_MODE
	.comm	_MODE_IDLE,4,2                  ## @MODE_IDLE
	.comm	_INSTPM_TLB_INVALIDATE,4,2      ## @INSTPM_TLB_INVALIDATE
	.comm	_INSTPM_SYNC_FLUSH,4,2          ## @INSTPM_SYNC_FLUSH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: wait for SyncFlush to complete for TLB invalidation timed out\n"

	.no_dead_strip	_flush_cs_tlb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_cs_tlb
_flush_cs_tlb:                          ; @flush_cs_tlb
	.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, x0
	ldr	x0, [x0, #16]
	mov	w1, #6
	mov	w2, #7
	bl	_IS_GEN_RANGE
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _RING_MI_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RING_MI_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ENGINE_READ
Lloh3:
	adrp	x8, _MODE_IDLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MODE_IDLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, eq
	bl	_WARN_ON
Lloh6:
	adrp	x8, _INSTPM_TLB_INVALIDATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INSTPM_TLB_INVALIDATE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x21, _INSTPM_SYNC_FLUSH@GOTPAGE
Lloh10:
	ldr	x21, [x21, _INSTPM_SYNC_FLUSH@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w0, w9, w8
	bl	__MASKED_BIT_ENABLE
	mov	x2, x0
Lloh11:
	adrp	x1, _RING_INSTPM@GOTPAGE
Lloh12:
	ldr	x1, [x1, _RING_INSTPM@GOTPAGEOFF]
	mov	x0, x19
	bl	_ENGINE_WRITE
	ldp	w0, w20, [x19, #4]
	bl	_RING_INSTPM
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x20
	mov	w3, #0
	mov	w4, #1000
	bl	_intel_wait_for_register
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x19]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	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	_DRM_ERROR
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_MI_MODE,4,2               ; @RING_MI_MODE
	.comm	_MODE_IDLE,4,2                  ; @MODE_IDLE
	.comm	_INSTPM_TLB_INVALIDATE,4,2      ; @INSTPM_TLB_INVALIDATE
	.comm	_INSTPM_SYNC_FLUSH,4,2          ; @INSTPM_SYNC_FLUSH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: wait for SyncFlush to complete for TLB invalidation timed out\n"

	.no_dead_strip	_flush_cs_tlb
.subsections_via_symbols
