	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glk_init_clock_gating
_glk_init_clock_gating:                 ## @glk_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_gen9_init_clock_gating
	movq	_GEN9_CLKGATE_DIS_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_PWM1_GATING_DIS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_PWM2_GATING_DIS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_GLK_REVID_A1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_IS_GLK_REVID
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_CHICKEN_MISC_2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_GLK_CL0_PWR_DOWN@GOTPCREL(%rip), %rcx
	movq	_GLK_CL1_PWR_DOWN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_GLK_CL2_PWR_DOWN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN9_CLKGATE_DIS_0,4,2         ## @GEN9_CLKGATE_DIS_0
	.comm	_PWM1_GATING_DIS,4,2            ## @PWM1_GATING_DIS
	.comm	_PWM2_GATING_DIS,4,2            ## @PWM2_GATING_DIS
	.comm	_GLK_REVID_A1,4,2               ## @GLK_REVID_A1
	.comm	_CHICKEN_MISC_2,4,2             ## @CHICKEN_MISC_2
	.comm	_GLK_CL0_PWR_DOWN,4,2           ## @GLK_CL0_PWR_DOWN
	.comm	_GLK_CL1_PWR_DOWN,4,2           ## @GLK_CL1_PWR_DOWN
	.comm	_GLK_CL2_PWR_DOWN,4,2           ## @GLK_CL2_PWR_DOWN
	.no_dead_strip	_glk_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 glk_init_clock_gating
_glk_init_clock_gating:                 ; @glk_init_clock_gating
	.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, x0
	bl	_gen9_init_clock_gating
Lloh0:
	adrp	x8, _GEN9_CLKGATE_DIS_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN9_CLKGATE_DIS_0@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh3:
	adrp	x8, _PWM1_GATING_DIS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PWM1_GATING_DIS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh6:
	adrp	x9, _PWM2_GATING_DIS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PWM2_GATING_DIS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_I915_WRITE
Lloh9:
	adrp	x8, _GLK_REVID_A1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GLK_REVID_A1@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_IS_GLK_REVID
	cbz	x0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x19, _CHICKEN_MISC_2@GOTPAGE
Lloh13:
	ldr	x19, [x19, _CHICKEN_MISC_2@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_I915_READ
Lloh14:
	adrp	x8, _GLK_CL0_PWR_DOWN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GLK_CL0_PWR_DOWN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _GLK_CL1_PWR_DOWN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _GLK_CL1_PWR_DOWN@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _GLK_CL2_PWR_DOWN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _GLK_CL2_PWR_DOWN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w1, w0, w8
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN9_CLKGATE_DIS_0,4,2         ; @GEN9_CLKGATE_DIS_0
	.comm	_PWM1_GATING_DIS,4,2            ; @PWM1_GATING_DIS
	.comm	_PWM2_GATING_DIS,4,2            ; @PWM2_GATING_DIS
	.comm	_GLK_REVID_A1,4,2               ; @GLK_REVID_A1
	.comm	_CHICKEN_MISC_2,4,2             ; @CHICKEN_MISC_2
	.comm	_GLK_CL0_PWR_DOWN,4,2           ; @GLK_CL0_PWR_DOWN
	.comm	_GLK_CL1_PWR_DOWN,4,2           ; @GLK_CL1_PWR_DOWN
	.comm	_GLK_CL2_PWR_DOWN,4,2           ; @GLK_CL2_PWR_DOWN
	.no_dead_strip	_glk_init_clock_gating
.subsections_via_symbols
