	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen9_set_dc_state_debugmask
_gen9_set_dc_state_debugmask:           ## @gen9_set_dc_state_debugmask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_DC_STATE_DEBUG_MASK_MEMORY_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_IS_GEN9_LP
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_DC_STATE_DEBUG_MASK_CORES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	orl	%r14d, %ebx
	movq	_DC_STATE_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_I915_READ
	movl	%eax, %ecx
	notl	%ecx
	testl	%ecx, %ebx
	jne	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	orl	%ebx, %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_STATE_DEBUG_MASK_MEMORY_UP,4,2 ## @DC_STATE_DEBUG_MASK_MEMORY_UP
	.comm	_DC_STATE_DEBUG_MASK_CORES,4,2  ## @DC_STATE_DEBUG_MASK_CORES
	.comm	_DC_STATE_DEBUG,4,2             ## @DC_STATE_DEBUG
	.no_dead_strip	_gen9_set_dc_state_debugmask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen9_set_dc_state_debugmask
_gen9_set_dc_state_debugmask:           ; @gen9_set_dc_state_debugmask
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _DC_STATE_DEBUG_MASK_MEMORY_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DC_STATE_DEBUG_MASK_MEMORY_UP@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_IS_GEN9_LP
Lloh3:
	adrp	x8, _DC_STATE_DEBUG_MASK_CORES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DC_STATE_DEBUG_MASK_CORES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w8, w19
Lloh6:
	adrp	x19, _DC_STATE_DEBUG@GOTPAGE
Lloh7:
	ldr	x19, [x19, _DC_STATE_DEBUG@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_I915_READ
	bics	wzr, w20, w0
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	orr	w1, w0, w20
	ldr	w0, [x19]
	bl	_I915_WRITE
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_POSTING_READ
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_STATE_DEBUG_MASK_MEMORY_UP,4,2 ; @DC_STATE_DEBUG_MASK_MEMORY_UP
	.comm	_DC_STATE_DEBUG_MASK_CORES,4,2  ; @DC_STATE_DEBUG_MASK_CORES
	.comm	_DC_STATE_DEBUG,4,2             ; @DC_STATE_DEBUG
	.no_dead_strip	_gen9_set_dc_state_debugmask
.subsections_via_symbols
