	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen9_set_dc_state
_gen9_set_dc_state:                     ## @gen9_set_dc_state
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %edi
	notl	%edi
	andl	%esi, %edi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	andl	(%r15), %r14d
LBB0_2:
	movq	_DC_STATE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_gen9_dc_mask
	movl	%eax, %r12d
	movl	%eax, %ebx
	andl	%r13d, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_DRM_DEBUG_KMS
	movl	4(%r15), %esi
	cmpl	%esi, %ebx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	callq	_DRM_ERROR
LBB0_4:
	movl	%r12d, %eax
	notl	%eax
	andl	%eax, %r13d
	orl	%r14d, %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_gen9_write_dc_state
	andl	%r14d, %r12d
	movl	%r12d, 4(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_STATE_EN,4,2                ## @DC_STATE_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting DC state from %02x to %02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"DC state mismatch (0x%x -> 0x%x)\n"

	.no_dead_strip	_gen9_set_dc_state
.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
_gen9_set_dc_state:                     ; @gen9_set_dc_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	bic	w0, w1, w8
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	and	w20, w8, w20
LBB0_2:
Lloh0:
	adrp	x8, _DC_STATE_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DC_STATE_EN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x22, x0
	mov	x0, x19
	bl	_gen9_dc_mask
	mov	x21, x0
	and	w23, w0, w22
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x20
	bl	_DRM_DEBUG_KMS
	ldr	w1, [x19, #4]
	cmp	w23, w1
	b.eq	LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_DRM_ERROR
LBB0_4:
	bic	w8, w22, w21
	orr	w1, w8, w20
	mov	x0, x19
	bl	_gen9_write_dc_state
	and	w8, w21, w20
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_STATE_EN,4,2                ; @DC_STATE_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting DC state from %02x to %02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"DC state mismatch (0x%x -> 0x%x)\n"

	.no_dead_strip	_gen9_set_dc_state
.subsections_via_symbols
