	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen9_write_dc_state
_gen9_write_dc_state:                   ## @gen9_write_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_DC_STATE_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_I915_WRITE
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_I915_WRITE
	incl	%ebx
	cmpl	$100, %ebx
	je	LBB0_3
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_I915_READ
	movq	%rax, %r15
	cmpq	%r14, %rax
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_I915_READ
	movq	%rax, %r15
	cmpq	%r14, %rax
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_I915_READ
	movq	%rax, %r15
	cmpq	%r14, %rax
	jne	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_I915_READ
	movq	%rax, %r15
	cmpq	%r14, %rax
	jne	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_I915_READ
	movq	%rax, %r15
	cmpq	%r14, %rax
	jne	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_I915_READ
	movq	%rax, %r15
	cmpq	%r14, %rax
	jne	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_I915_READ
	movq	%rax, %r15
	cmpq	%r14, %rax
	jne	LBB0_2
## %bb.11:
	cmpl	$1, %ebx
	ja	LBB0_4
## %bb.12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_DRM_ERROR
	movl	$100, %ebx
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_STATE_EN,4,2                ## @DC_STATE_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Writing dc state to 0x%x failed, now 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Rewrote dc state to 0x%x %d times\n"

	.no_dead_strip	_gen9_write_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_write_dc_state
_gen9_write_dc_state:                   ; @gen9_write_dc_state
	.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	x19, x1
Lloh0:
	adrp	x22, _DC_STATE_EN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DC_STATE_EN@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_I915_WRITE
	mov	w20, #0
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	bl	_I915_WRITE
	add	w20, w20, #1
	cmp	w20, #100
	b.eq	LBB0_11
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x21, x0
	cmp	x0, x19
	b.ne	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x21, x0
	cmp	x0, x19
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x21, x0
	cmp	x0, x19
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x21, x0
	cmp	x0, x19
	b.ne	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x21, x0
	cmp	x0, x19
	b.ne	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x21, x0
	cmp	x0, x19
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x21, x0
	cmp	x0, x19
	b.ne	LBB0_1
; %bb.9:
	cmp	w20, #1
	b.hi	LBB0_12
; %bb.10:
	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
LBB0_11:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_DRM_ERROR
LBB0_12:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, 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	_DRM_DEBUG_KMS
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_STATE_EN,4,2                ; @DC_STATE_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Writing dc state to 0x%x failed, now 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Rewrote dc state to 0x%x %d times\n"

	.no_dead_strip	_gen9_write_dc_state
.subsections_via_symbols
