	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen6_ring_put_irq
_gen6_ring_put_irq:                     ## @gen6_ring_put_irq
	.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, %r15
	movq	24(%rdi), %rbx
	movq	(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	decq	(%r15)
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_HAS_L3_GPU_CACHE
	movl	$-1, %esi
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	8(%r15), %rax
	movq	_RCS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_GEN6_RENDER_L3_PARITY_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
LBB0_4:
	movq	%r15, %rdi
	callq	_I915_WRITE_IMR
	movl	4(%r14), %esi
	orl	16(%r15), %esi
	movl	%esi, 4(%r14)
	movq	_GTIMR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_WRITE
	movl	(%rbx), %edi
	callq	_POSTING_READ
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gen6_gt_force_wake_put         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RCS,8,3                        ## @RCS
	.comm	_GEN6_RENDER_L3_PARITY_ERROR,4,2 ## @GEN6_RENDER_L3_PARITY_ERROR
	.comm	_GTIMR,4,2                      ## @GTIMR
	.no_dead_strip	_gen6_ring_put_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen6_ring_put_irq
_gen6_ring_put_irq:                     ; @gen6_ring_put_irq
	.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	x20, x0
	ldr	x21, [x0, #24]
	ldr	x19, [x21]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_HAS_L3_GPU_CACHE
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _RCS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RCS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _GEN6_RENDER_L3_PARITY_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN6_RENDER_L3_PARITY_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mvn	w1, w8
	b	LBB0_5
LBB0_4:
	mov	w1, #-1
LBB0_5:
	mov	x0, x20
	bl	_I915_WRITE_IMR
	ldr	w8, [x20, #16]
	ldr	w9, [x19, #4]
	orr	w1, w9, w8
	str	w1, [x19, #4]
Lloh6:
	adrp	x20, _GTIMR@GOTPAGE
Lloh7:
	ldr	x20, [x20, _GTIMR@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_POSTING_READ
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	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	_gen6_gt_force_wake_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RCS,8,3                        ; @RCS
	.comm	_GEN6_RENDER_L3_PARITY_ERROR,4,2 ; @GEN6_RENDER_L3_PARITY_ERROR
	.comm	_GTIMR,4,2                      ; @GTIMR
	.no_dead_strip	_gen6_ring_put_irq
.subsections_via_symbols
