	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_panel_vdd_off_sync
_ironlake_panel_vdd_off_sync:           ## @ironlake_panel_vdd_off_sync
	.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
	movq	%rdi, %rbx
	callq	_intel_dp_to_dev
	movq	8(%rax), %r14
	movq	%rax, %rdi
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	cmpl	$0, 4(%rbx)
	je	LBB0_1
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_ironlake_edp_have_panel_vdd
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_ironlake_get_pp_control
	movq	_EDP_FORCE_VDD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_PCH_PP_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_I915_WRITE
	movl	(%r15), %edi
	callq	_POSTING_READ
	movq	_PCH_PP_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movl	(%r15), %edi
	callq	_I915_READ
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_DRM_DEBUG_KMS
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EDP_FORCE_VDD,4,2              ## @EDP_FORCE_VDD
	.comm	_PCH_PP_CONTROL,4,2             ## @PCH_PP_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCH_PP_STATUS: 0x%08x PCH_PP_CONTROL: 0x%08x\n"

	.comm	_PCH_PP_STATUS,4,2              ## @PCH_PP_STATUS
	.no_dead_strip	_ironlake_panel_vdd_off_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_panel_vdd_off_sync
_ironlake_panel_vdd_off_sync:           ; @ironlake_panel_vdd_off_sync
	.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	_intel_dp_to_dev
	ldr	x20, [x0, #8]
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_2
LBB0_1:
	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_2:
	mov	x0, x19
	bl	_ironlake_edp_have_panel_vdd
	cbz	x0, LBB0_1
; %bb.3:
	mov	x0, x20
	bl	_ironlake_get_pp_control
Lloh0:
	adrp	x8, _EDP_FORCE_VDD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EDP_FORCE_VDD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w1, w0, w8
Lloh3:
	adrp	x21, _PCH_PP_CONTROL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PCH_PP_CONTROL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_I915_WRITE
	ldr	w0, [x21]
	bl	_POSTING_READ
Lloh5:
	adrp	x8, _PCH_PP_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCH_PP_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x20, x0
	ldr	w0, [x21]
	bl	_I915_READ
	mov	x2, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_KMS
	ldr	w0, [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
	b	_msleep
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EDP_FORCE_VDD,4,2              ; @EDP_FORCE_VDD
	.comm	_PCH_PP_CONTROL,4,2             ; @PCH_PP_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCH_PP_STATUS: 0x%08x PCH_PP_CONTROL: 0x%08x\n"

	.comm	_PCH_PP_STATUS,4,2              ; @PCH_PP_STATUS
	.no_dead_strip	_ironlake_panel_vdd_off_sync
.subsections_via_symbols
