	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_write_dcomp
_hsw_write_dcomp:                       ## @hsw_write_dcomp
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_IS_HASWELL
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_GEN6_PCODE_WRITE_D_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_sandybridge_pcode_write
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
LBB0_3:
	movq	_D_COMP_BDW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN6_PCODE_WRITE_D_COMP,4,2    ## @GEN6_PCODE_WRITE_D_COMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to write to D_COMP\n"

	.comm	_D_COMP_BDW,4,2                 ## @D_COMP_BDW
	.no_dead_strip	_hsw_write_dcomp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_write_dcomp
_hsw_write_dcomp:                       ; @hsw_write_dcomp
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_IS_HASWELL
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _GEN6_PCODE_WRITE_D_COMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN6_PCODE_WRITE_D_COMP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_sandybridge_pcode_write
	cbz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEBUG_KMS
LBB0_3:
Lloh5:
	adrp	x20, _D_COMP_BDW@GOTPAGE
Lloh6:
	ldr	x20, [x20, _D_COMP_BDW@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_I915_WRITE
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_POSTING_READ
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN6_PCODE_WRITE_D_COMP,4,2    ; @GEN6_PCODE_WRITE_D_COMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to write to D_COMP\n"

	.comm	_D_COMP_BDW,4,2                 ; @D_COMP_BDW
	.no_dead_strip	_hsw_write_dcomp
.subsections_via_symbols
