	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mi_flush_dw
_mi_flush_dw:                           ## @mi_flush_dw
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$4, %esi
	callq	_intel_ring_begin
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_MI_FLUSH_DW@GOTPCREL(%rip), %rax
	movq	_MI_FLUSH_DW_STORE_INDEX@GOTPCREL(%rip), %rcx
	movq	_MI_FLUSH_DW_OP_STOREDW@GOTPCREL(%rip), %rdx
	orl	(%rax), %r15d
	orl	(%rcx), %r15d
	orl	(%rdx), %r15d
	movl	%r15d, (%rbx)
	movq	_I915_GEM_HWS_SCRATCH_ADDR@GOTPCREL(%rip), %rax
	movq	_MI_FLUSH_DW_USE_GTT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	$0, 8(%rbx)
	movq	_MI_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rsi
	addq	$16, %rsi
	movl	%eax, 12(%rbx)
	movq	%r14, %rdi
	callq	_intel_ring_advance
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MI_FLUSH_DW,4,2                ## @MI_FLUSH_DW
	.comm	_MI_FLUSH_DW_STORE_INDEX,4,2    ## @MI_FLUSH_DW_STORE_INDEX
	.comm	_MI_FLUSH_DW_OP_STOREDW,4,2     ## @MI_FLUSH_DW_OP_STOREDW
	.comm	_I915_GEM_HWS_SCRATCH_ADDR,4,2  ## @I915_GEM_HWS_SCRATCH_ADDR
	.comm	_MI_FLUSH_DW_USE_GTT,4,2        ## @MI_FLUSH_DW_USE_GTT
	.comm	_MI_NOOP,4,2                    ## @MI_NOOP
	.no_dead_strip	_mi_flush_dw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mi_flush_dw
_mi_flush_dw:                           ; @mi_flush_dw
	.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	x21, x1
	mov	x19, x0
	mov	w1, #4
	bl	_intel_ring_begin
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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	_PTR_ERR
LBB0_2:
Lloh0:
	adrp	x8, _MI_FLUSH_DW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MI_FLUSH_DW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MI_FLUSH_DW_STORE_INDEX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MI_FLUSH_DW_STORE_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MI_FLUSH_DW_OP_STOREDW@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MI_FLUSH_DW_OP_STOREDW@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w8, w21
	orr	w8, w8, w9
	orr	w8, w8, w10
	str	w8, [x20]
Lloh9:
	adrp	x8, _I915_GEM_HWS_SCRATCH_ADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I915_GEM_HWS_SCRATCH_ADDR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MI_FLUSH_DW_USE_GTT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MI_FLUSH_DW_USE_GTT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w8, wzr, [x20, #4]
Lloh15:
	adrp	x8, _MI_NOOP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MI_NOOP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	x1, x20, #16
	str	w8, [x20, #12]
	mov	x0, x19
	bl	_intel_ring_advance
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MI_FLUSH_DW,4,2                ; @MI_FLUSH_DW
	.comm	_MI_FLUSH_DW_STORE_INDEX,4,2    ; @MI_FLUSH_DW_STORE_INDEX
	.comm	_MI_FLUSH_DW_OP_STOREDW,4,2     ; @MI_FLUSH_DW_OP_STOREDW
	.comm	_I915_GEM_HWS_SCRATCH_ADDR,4,2  ; @I915_GEM_HWS_SCRATCH_ADDR
	.comm	_MI_FLUSH_DW_USE_GTT,4,2        ; @MI_FLUSH_DW_USE_GTT
	.comm	_MI_NOOP,4,2                    ; @MI_NOOP
	.no_dead_strip	_mi_flush_dw
.subsections_via_symbols
