	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_get_pp_control
_ironlake_get_pp_control:               ## @ironlake_get_pp_control
	.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, %rbx
	callq	_dp_to_i915
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	__pp_ctrl_reg
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_HAS_DDI
	xorl	%edi, %edi
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_PANEL_UNLOCK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_PANEL_UNLOCK_REGS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
LBB0_2:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_PANEL_UNLOCK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_PANEL_UNLOCK_REGS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	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
	.no_dead_strip	_ironlake_get_pp_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_get_pp_control
_ironlake_get_pp_control:               ; @ironlake_get_pp_control
	.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	x19, x0
	bl	_dp_to_i915
	mov	x20, x0
	bl	_lockdep_assert_held
	mov	x0, x19
	bl	__pp_ctrl_reg
	bl	_I915_READ
	mov	x19, x0
	mov	x0, x20
	bl	_HAS_DDI
Lloh0:
	adrp	x21, _PANEL_UNLOCK_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PANEL_UNLOCK_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x20, _PANEL_UNLOCK_REGS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _PANEL_UNLOCK_REGS@GOTPAGEOFF]
	cbz	w0, LBB0_4
; %bb.1:
	mov	w0, #0
	bl	_WARN_ON
	cbz	x0, LBB0_3
LBB0_2:
	ldr	w8, [x21]
	bic	w8, w19, w8
	ldr	w9, [x20]
	orr	w19, w8, w9
LBB0_3:
	mov	x0, x19
	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
LBB0_4:
	ldr	w8, [x21]
	and	w8, w8, w19
	ldr	w9, [x20]
	cmp	w8, w9
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_2
	b	LBB0_3
	.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
	.no_dead_strip	_ironlake_get_pp_control
.subsections_via_symbols
