	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_pps_unlock_regs_wa       ## -- Begin function intel_pps_unlock_regs_wa
	.p2align	4, 0x90
_intel_pps_unlock_regs_wa:              ## @intel_pps_unlock_regs_wa
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_HAS_DDI
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_IS_VALLEYVIEW
	movl	$2, %r15d
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_IS_CHERRYVIEW
	cmpq	$1, %rax
	movl	$2, %r15d
	sbbl	$0, %r15d
LBB0_3:
	xorl	%r14d, %r14d
	movq	_PANEL_UNLOCK_MASK@GOTPCREL(%rip), %r12
	movq	_PANEL_UNLOCK_REGS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_PP_CONTROL
	movl	%eax, %edi
	callq	_I915_READ
	movl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	(%r13), %ebx
	movl	%r14d, %edi
	callq	_PP_CONTROL
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	incl	%r14d
	cmpl	%r14d, %r15d
	jne	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PANEL_UNLOCK_MASK,4,2          ## @PANEL_UNLOCK_MASK
	.comm	_PANEL_UNLOCK_REGS,4,2          ## @PANEL_UNLOCK_REGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_pps_unlock_regs_wa       ; -- Begin function intel_pps_unlock_regs_wa
	.p2align	2
_intel_pps_unlock_regs_wa:              ; @intel_pps_unlock_regs_wa
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_HAS_DDI
	cbnz	x0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cbz	x0, LBB0_3
; %bb.2:
	mov	w21, #2
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cmp	x0, #0
	mov	w8, #1
	cinc	w21, w8, ne
LBB0_4:
	mov	w19, #0
Lloh0:
	adrp	x22, _PANEL_UNLOCK_MASK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PANEL_UNLOCK_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x23, _PANEL_UNLOCK_REGS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PANEL_UNLOCK_REGS@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_PP_CONTROL
	bl	_I915_READ
	ldr	w8, [x22]
	bic	w8, w0, w8
	ldr	w9, [x23]
	orr	w20, w8, w9
	mov	x0, x19
	bl	_PP_CONTROL
	mov	x1, x20
	bl	_I915_WRITE
	add	w19, w19, #1
	cmp	w21, w19
	b.ne	LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PANEL_UNLOCK_MASK,4,2          ; @PANEL_UNLOCK_MASK
	.comm	_PANEL_UNLOCK_REGS,4,2          ; @PANEL_UNLOCK_REGS
.subsections_via_symbols
