	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_panel_status
_wait_panel_status:                     ## @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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	callq	_dp_to_i915
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_intel_pps_verify_state
	movq	%rbx, %rdi
	callq	__pp_stat_reg
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	__pp_ctrl_reg
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_I915_READ
	leaq	L_.str(%rip), %rdi
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	$5000, %r8d                     ## imm = 0x1388
	callq	_intel_de_wait_for_register
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_I915_READ
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_DRM_ERROR
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mask %08x value %08x status %08x control %08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Panel status timeout: status %08x control %08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Wait complete\n"

	.no_dead_strip	_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 wait_panel_status
_wait_panel_status:                     ; @wait_panel_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_dp_to_i915
	mov	x23, x0
	bl	_lockdep_assert_held
	mov	x0, x20
	bl	_intel_pps_verify_state
	mov	x0, x20
	bl	__pp_stat_reg
	mov	x19, x0
	mov	x0, x20
	bl	__pp_ctrl_reg
	mov	x20, x0
	mov	x0, x19
	bl	_I915_READ
	mov	x24, x0
	mov	x0, x20
	bl	_I915_READ
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp, #16]
	stp	x22, x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	mov	w4, #5000
	bl	_intel_de_wait_for_register
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_I915_READ
	mov	x19, x0
	mov	x0, x20
	bl	_I915_READ
	mov	x2, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DRM_ERROR
LBB0_2:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_DRM_DEBUG_KMS
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mask %08x value %08x status %08x control %08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Panel status timeout: status %08x control %08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Wait complete\n"

	.no_dead_strip	_wait_panel_status
.subsections_via_symbols
