	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_wait_panel_status
_ironlake_wait_panel_status:            ## @ironlake_wait_panel_status
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	callq	_intel_dp_to_dev
	movq	_PCH_PP_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_PCH_PP_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_I915_READ
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_DRM_DEBUG_KMS
	movl	(%r12), %edi
	callq	_I915_READ
	andl	%r15d, %eax
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	sete	%dil
	movl	$5000, %esi                     ## imm = 0x1388
	movl	$10, %edx
	callq	__wait_for
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r12), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_I915_READ
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mask %08x value %08x status %08x control %08x\n"

	.comm	_PCH_PP_STATUS,4,2              ## @PCH_PP_STATUS
	.comm	_PCH_PP_CONTROL,4,2             ## @PCH_PP_CONTROL
L_.str.1:                               ## @.str.1
	.asciz	"Panel status timeout: status %08x control %08x\n"

	.no_dead_strip	_ironlake_wait_panel_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_wait_panel_status
_ironlake_wait_panel_status:            ; @ironlake_wait_panel_status
	.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, x2
	mov	x20, x1
	bl	_intel_dp_to_dev
Lloh0:
	adrp	x22, _PCH_PP_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PCH_PP_STATUS@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x21, x0
Lloh2:
	adrp	x23, _PCH_PP_CONTROL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PCH_PP_CONTROL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_I915_READ
	mov	x4, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	bl	_DRM_DEBUG_KMS
	ldr	w0, [x22]
	bl	_I915_READ
	and	w8, w0, w20
	cmp	w8, w19
	cset	w0, eq
	mov	w1, #5000
	mov	w2, #10
	bl	__wait_for
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x19, x0
	ldr	w0, [x23]
	bl	_I915_READ
	mov	x2, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	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
	b	_DRM_ERROR
LBB0_2:
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mask %08x value %08x status %08x control %08x\n"

	.comm	_PCH_PP_STATUS,4,2              ; @PCH_PP_STATUS
	.comm	_PCH_PP_CONTROL,4,2             ; @PCH_PP_CONTROL
l_.str.1:                               ; @.str.1
	.asciz	"Panel status timeout: status %08x control %08x\n"

	.no_dead_strip	_ironlake_wait_panel_status
.subsections_via_symbols
