	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen2_render_ring_flush
_gen2_render_ring_flush:                ## @gen2_render_ring_flush
	.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
	movl	%edx, %r15d
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	_MI_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_I915_GEM_DOMAIN_RENDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_MI_NO_WRITE_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_I915_GEM_DOMAIN_SAMPLER@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_MI_READ_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$2, %esi
	callq	_intel_ring_begin
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	andl	%eax, %r13d
	orl	%eax, %r15d
	xorl	%eax, %eax
	testl	%r15d, -48(%rbp)                ## 4-byte Folded Reload
	cmovel	-44(%rbp), %eax                 ## 4-byte Folded Reload
	orl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	testl	%r13d, %r13d
	cmovel	%r13d, %ebx
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_intel_ring_emit
	movq	_MI_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_intel_ring_emit
	movq	%r14, %rdi
	callq	_intel_ring_advance
LBB0_2:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MI_FLUSH,4,2                   ## @MI_FLUSH
	.comm	_I915_GEM_DOMAIN_RENDER,4,2     ## @I915_GEM_DOMAIN_RENDER
	.comm	_MI_NO_WRITE_FLUSH,4,2          ## @MI_NO_WRITE_FLUSH
	.comm	_I915_GEM_DOMAIN_SAMPLER,4,2    ## @I915_GEM_DOMAIN_SAMPLER
	.comm	_MI_READ_FLUSH,4,2              ## @MI_READ_FLUSH
	.comm	_MI_NOOP,4,2                    ## @MI_NOOP
	.no_dead_strip	_gen2_render_ring_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen2_render_ring_flush
_gen2_render_ring_flush:                ; @gen2_render_ring_flush
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MI_FLUSH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MI_FLUSH@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _I915_GEM_DOMAIN_RENDER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_GEM_DOMAIN_RENDER@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _MI_NO_WRITE_FLUSH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MI_NO_WRITE_FLUSH@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
Lloh9:
	adrp	x8, _I915_GEM_DOMAIN_SAMPLER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I915_GEM_DOMAIN_SAMPLER@GOTPAGEOFF]
Lloh11:
	ldr	w26, [x8]
Lloh12:
	adrp	x8, _MI_READ_FLUSH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MI_READ_FLUSH@GOTPAGEOFF]
Lloh14:
	ldr	w27, [x8]
	mov	w1, #2
	bl	_intel_ring_begin
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	orr	w8, w22, w21
	tst	w24, w8
	csel	w8, w25, wzr, eq
	orr	w8, w8, w23
	tst	w26, w21
	csel	w9, wzr, w27, eq
	orr	w1, w8, w9
	mov	x0, x19
	bl	_intel_ring_emit
Lloh15:
	adrp	x8, _MI_NOOP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MI_NOOP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_ring_emit
	mov	x0, x19
	bl	_intel_ring_advance
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MI_FLUSH,4,2                   ; @MI_FLUSH
	.comm	_I915_GEM_DOMAIN_RENDER,4,2     ; @I915_GEM_DOMAIN_RENDER
	.comm	_MI_NO_WRITE_FLUSH,4,2          ; @MI_NO_WRITE_FLUSH
	.comm	_I915_GEM_DOMAIN_SAMPLER,4,2    ; @I915_GEM_DOMAIN_SAMPLER
	.comm	_MI_READ_FLUSH,4,2              ; @MI_READ_FLUSH
	.comm	_MI_NOOP,4,2                    ; @MI_NOOP
	.no_dead_strip	_gen2_render_ring_flush
.subsections_via_symbols
