	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _ilk_disable_lp_wm
__ilk_disable_lp_wm:                    ## @_ilk_disable_lp_wm
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$3, %edi
	callq	_WM_DIRTY_LP
	xorl	%r15d, %r15d
	testl	%ebx, %eax
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movl	8(%rax), %esi
	movq	_WM1_LP_SR_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%esi, %ecx
	je	LBB0_3
## %bb.2:
	notl	%ecx
	andl	%ecx, %esi
	movl	%esi, 8(%rax)
	movq	_WM3_LP_ILK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_WRITE
	movl	$1, %r15d
LBB0_3:
	movl	$2, %edi
	callq	_WM_DIRTY_LP
	testl	%ebx, %eax
	je	LBB0_6
## %bb.4:
	movq	(%r14), %rax
	movl	4(%rax), %esi
	movq	_WM1_LP_SR_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%esi, %ecx
	je	LBB0_6
## %bb.5:
	notl	%ecx
	andl	%ecx, %esi
	movl	%esi, 4(%rax)
	movq	_WM2_LP_ILK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_WRITE
	movl	$1, %r15d
LBB0_6:
	movl	$1, %edi
	callq	_WM_DIRTY_LP
	testl	%ebx, %eax
	je	LBB0_9
## %bb.7:
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	_WM1_LP_SR_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%esi, %ecx
	je	LBB0_9
## %bb.8:
	notl	%ecx
	andl	%ecx, %esi
	movl	%esi, (%rax)
	movq	_WM1_LP_ILK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_WRITE
	movl	$1, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM1_LP_SR_EN,4,2               ## @WM1_LP_SR_EN
	.comm	_WM3_LP_ILK,4,2                 ## @WM3_LP_ILK
	.comm	_WM2_LP_ILK,4,2                 ## @WM2_LP_ILK
	.comm	_WM1_LP_ILK,4,2                 ## @WM1_LP_ILK
	.no_dead_strip	__ilk_disable_lp_wm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _ilk_disable_lp_wm
__ilk_disable_lp_wm:                    ; @_ilk_disable_lp_wm
	.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	x20, x1
	mov	x19, x0
	mov	w0, #3
	bl	_WM_DIRTY_LP
Lloh0:
	adrp	x22, _WM1_LP_SR_EN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WM1_LP_SR_EN@GOTPAGEOFF]
	tst	w0, w20
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	w9, [x8, #8]
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
	bic	w1, w9, w10
	str	w1, [x8, #8]
Lloh2:
	adrp	x8, _WM3_LP_ILK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM3_LP_ILK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_I915_WRITE
	mov	w21, #1
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	w0, #2
	bl	_WM_DIRTY_LP
	tst	w0, w20
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
	bic	w1, w9, w10
	str	w1, [x8, #4]
Lloh5:
	adrp	x8, _WM2_LP_ILK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WM2_LP_ILK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_I915_WRITE
	mov	w21, #1
LBB0_7:
	mov	w0, #1
	bl	_WM_DIRTY_LP
	tst	w0, w20
	b.eq	LBB0_10
; %bb.8:
	ldr	x8, [x19]
	ldr	w9, [x8]
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.9:
	bic	w1, w9, w10
	str	w1, [x8]
Lloh8:
	adrp	x8, _WM1_LP_ILK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WM1_LP_ILK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_I915_WRITE
	mov	w21, #1
LBB0_10:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WM1_LP_SR_EN,4,2               ; @WM1_LP_SR_EN
	.comm	_WM3_LP_ILK,4,2                 ; @WM3_LP_ILK
	.comm	_WM2_LP_ILK,4,2                 ; @WM2_LP_ILK
	.comm	_WM1_LP_ILK,4,2                 ; @WM1_LP_ILK
	.no_dead_strip	__ilk_disable_lp_wm
.subsections_via_symbols
