	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpt_init_clock_gating
_lpt_init_clock_gating:                 ## @lpt_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
	callq	_HAS_PCH_LPT_LP
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SOUTH_DSPCLK_GATE_D@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_PCH_LP_PARTITION_LEVEL_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_2:
	movq	_PIPE_A@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_TRANS_CHICKEN1
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_TRANS_CHICKEN1
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TRANS_CHICKEN1_DP0UNIT_GC_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SOUTH_DSPCLK_GATE_D,4,2        ## @SOUTH_DSPCLK_GATE_D
	.comm	_PCH_LP_PARTITION_LEVEL_DISABLE,4,2 ## @PCH_LP_PARTITION_LEVEL_DISABLE
	.comm	_PIPE_A,4,2                     ## @PIPE_A
	.comm	_TRANS_CHICKEN1_DP0UNIT_GC_DISABLE,4,2 ## @TRANS_CHICKEN1_DP0UNIT_GC_DISABLE
	.no_dead_strip	_lpt_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 lpt_init_clock_gating
_lpt_init_clock_gating:                 ; @lpt_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
	bl	_HAS_PCH_LPT_LP
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SOUTH_DSPCLK_GATE_D@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOUTH_DSPCLK_GATE_D@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_I915_READ
Lloh3:
	adrp	x8, _PCH_LP_PARTITION_LEVEL_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCH_LP_PARTITION_LEVEL_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x19
	bl	_I915_WRITE
LBB0_2:
Lloh6:
	adrp	x20, _PIPE_A@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PIPE_A@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_TRANS_CHICKEN1
	mov	x19, x0
	ldr	w0, [x20]
	bl	_TRANS_CHICKEN1
	bl	_I915_READ
Lloh8:
	adrp	x8, _TRANS_CHICKEN1_DP0UNIT_GC_DISABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRANS_CHICKEN1_DP0UNIT_GC_DISABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SOUTH_DSPCLK_GATE_D,4,2        ; @SOUTH_DSPCLK_GATE_D
	.comm	_PCH_LP_PARTITION_LEVEL_DISABLE,4,2 ; @PCH_LP_PARTITION_LEVEL_DISABLE
	.comm	_PIPE_A,4,2                     ; @PIPE_A
	.comm	_TRANS_CHICKEN1_DP0UNIT_GC_DISABLE,4,2 ; @TRANS_CHICKEN1_DP0UNIT_GC_DISABLE
	.no_dead_strip	_lpt_init_clock_gating
.subsections_via_symbols
