	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbl_init_clock_gating
_kbl_init_clock_gating:                 ## @kbl_init_clock_gating
	.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, %rbx
	callq	_gen9_init_clock_gating
	movq	_KBL_REVID_B0@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_IS_KBL_REVID
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GEN8_UCGCTL6@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_I915_READ
	movq	_GEN8_SDEUNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_2:
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_IS_KBL_REVID
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_GEN6_UCGCTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_GEN6_GAMUNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_4:
	movq	_ILK_DPFC_CHICKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_ILK_DPFC_NUKE_ON_ANY_MODIFICATION@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KBL_REVID_B0,4,2               ## @KBL_REVID_B0
	.comm	_GEN8_UCGCTL6,4,2               ## @GEN8_UCGCTL6
	.comm	_GEN8_SDEUNIT_CLOCK_GATE_DISABLE,4,2 ## @GEN8_SDEUNIT_CLOCK_GATE_DISABLE
	.comm	_GEN6_UCGCTL1,4,2               ## @GEN6_UCGCTL1
	.comm	_GEN6_GAMUNIT_CLOCK_GATE_DISABLE,4,2 ## @GEN6_GAMUNIT_CLOCK_GATE_DISABLE
	.comm	_ILK_DPFC_CHICKEN,4,2           ## @ILK_DPFC_CHICKEN
	.comm	_ILK_DPFC_NUKE_ON_ANY_MODIFICATION,4,2 ## @ILK_DPFC_NUKE_ON_ANY_MODIFICATION
	.no_dead_strip	_kbl_init_clock_gating
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbl_init_clock_gating
_kbl_init_clock_gating:                 ; @kbl_init_clock_gating
	.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, x0
	bl	_gen9_init_clock_gating
Lloh0:
	adrp	x21, _KBL_REVID_B0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _KBL_REVID_B0@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_IS_KBL_REVID
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _GEN8_UCGCTL6@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GEN8_UCGCTL6@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh5:
	adrp	x8, _GEN8_SDEUNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GEN8_SDEUNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_I915_WRITE
LBB0_2:
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_IS_KBL_REVID
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _GEN6_UCGCTL1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GEN6_UCGCTL1@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_I915_READ
Lloh11:
	adrp	x8, _GEN6_GAMUNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GEN6_GAMUNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x19
	bl	_I915_WRITE
LBB0_4:
Lloh14:
	adrp	x8, _ILK_DPFC_CHICKEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ILK_DPFC_CHICKEN@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_I915_READ
Lloh17:
	adrp	x8, _ILK_DPFC_NUKE_ON_ANY_MODIFICATION@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ILK_DPFC_NUKE_ON_ANY_MODIFICATION@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w1, w8, w0
	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	_I915_WRITE
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_KBL_REVID_B0,4,2               ; @KBL_REVID_B0
	.comm	_GEN8_UCGCTL6,4,2               ; @GEN8_UCGCTL6
	.comm	_GEN8_SDEUNIT_CLOCK_GATE_DISABLE,4,2 ; @GEN8_SDEUNIT_CLOCK_GATE_DISABLE
	.comm	_GEN6_UCGCTL1,4,2               ; @GEN6_UCGCTL1
	.comm	_GEN6_GAMUNIT_CLOCK_GATE_DISABLE,4,2 ; @GEN6_GAMUNIT_CLOCK_GATE_DISABLE
	.comm	_ILK_DPFC_CHICKEN,4,2           ; @ILK_DPFC_CHICKEN
	.comm	_ILK_DPFC_NUKE_ON_ANY_MODIFICATION,4,2 ; @ILK_DPFC_NUKE_ON_ANY_MODIFICATION
	.no_dead_strip	_kbl_init_clock_gating
.subsections_via_symbols
