	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_INTEL_PCH_LPT_LP_DEVICE_ID_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	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
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_PCH_LPT_LP_DEVICE_ID_TYPE,8,3 ## @INTEL_PCH_LPT_LP_DEVICE_ID_TYPE
	.comm	_SOUTH_DSPCLK_GATE_D,4,2        ## @SOUTH_DSPCLK_GATE_D
	.comm	_PCH_LP_PARTITION_LEVEL_DISABLE,4,2 ## @PCH_LP_PARTITION_LEVEL_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
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _INTEL_PCH_LPT_LP_DEVICE_ID_TYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTEL_PCH_LPT_LP_DEVICE_ID_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SOUTH_DSPCLK_GATE_D@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOUTH_DSPCLK_GATE_D@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_I915_READ
Lloh6:
	adrp	x8, _PCH_LP_PARTITION_LEVEL_DISABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCH_LP_PARTITION_LEVEL_DISABLE@GOTPAGEOFF]
Lloh8:
	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
LBB0_2:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_PCH_LPT_LP_DEVICE_ID_TYPE,8,3 ; @INTEL_PCH_LPT_LP_DEVICE_ID_TYPE
	.comm	_SOUTH_DSPCLK_GATE_D,4,2        ; @SOUTH_DSPCLK_GATE_D
	.comm	_PCH_LP_PARTITION_LEVEL_DISABLE,4,2 ; @PCH_LP_PARTITION_LEVEL_DISABLE
	.no_dead_strip	_lpt_init_clock_gating
.subsections_via_symbols
