	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function assert_panel_unlocked
_assert_panel_unlocked:                 ## @assert_panel_unlocked
	.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	%esi, %r14d
	movq	_PIPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %edi
	callq	_HAS_PCH_SPLIT
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_PP_CONTROL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PCH_PP_CONTROL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	movq	_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_PCH_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_I915_READ
	movq	_PANEL_POWER_ON@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_PANEL_UNLOCK_REGS@GOTPCREL(%rip), %rcx
	notl	%eax
	movb	$1, %r13b
	testl	%eax, (%rcx)
	jne	LBB0_6
LBB0_5:
	xorl	%r13d, %r13d
LBB0_6:
	testq	%r15, %r15
	cmovel	%r12d, %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_LVDS_PIPEB_SELECT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_8
## %bb.7:
	movq	_PIPE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	cmpl	%r14d, %eax
	sete	%al
	andb	%al, %r13b
	movzbl	%r13b, %ebx
	movl	%r14d, %edi
	callq	_pipe_name
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPE_A,4,2                     ## @PIPE_A
	.comm	_PCH_PP_CONTROL,4,2             ## @PCH_PP_CONTROL
	.comm	_PCH_LVDS,4,2                   ## @PCH_LVDS
	.comm	_PP_CONTROL,4,2                 ## @PP_CONTROL
	.comm	_LVDS,4,2                       ## @LVDS
	.comm	_PANEL_POWER_ON,4,2             ## @PANEL_POWER_ON
	.comm	_PANEL_UNLOCK_REGS,4,2          ## @PANEL_UNLOCK_REGS
	.comm	_LVDS_PIPEB_SELECT,4,2          ## @LVDS_PIPEB_SELECT
	.comm	_PIPE_B,4,2                     ## @PIPE_B
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"panel assertion failure, pipe %c regs locked\n"

	.no_dead_strip	_assert_panel_unlocked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function assert_panel_unlocked
_assert_panel_unlocked:                 ; @assert_panel_unlocked
	.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, x1
Lloh0:
	adrp	x8, _PIPE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIPE_A@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x0]
	bl	_HAS_PCH_SPLIT
	mov	x20, x0
Lloh3:
	adrp	x8, _PP_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PP_CONTROL@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PCH_PP_CONTROL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCH_PP_CONTROL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _LVDS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LVDS@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
Lloh10:
	adrp	x8, _PCH_LVDS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCH_LVDS@GOTPAGEOFF]
Lloh12:
	ldr	w23, [x8]
	bl	_I915_READ
Lloh13:
	adrp	x8, _PANEL_POWER_ON@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PANEL_POWER_ON@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh16:
	adrp	x8, _PANEL_UNLOCK_REGS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PANEL_UNLOCK_REGS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bics	wzr, w8, w0
	b.ne	LBB0_3
LBB0_2:
	mov	w24, #0
	b	LBB0_4
LBB0_3:
	mov	w24, #1
LBB0_4:
	cmp	x20, #0
	csel	w0, w22, w23, eq
	bl	_I915_READ
Lloh19:
	adrp	x8, _LVDS_PIPEB_SELECT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LVDS_PIPEB_SELECT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _PIPE_B@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PIPE_B@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, w21, w9, eq
	cmp	w8, w19
	cset	w8, eq
	and	w20, w24, w8
	mov	x0, x19
	bl	_pipe_name
	mov	x2, x0
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	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	_WARN
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPE_A,4,2                     ; @PIPE_A
	.comm	_PCH_PP_CONTROL,4,2             ; @PCH_PP_CONTROL
	.comm	_PCH_LVDS,4,2                   ; @PCH_LVDS
	.comm	_PP_CONTROL,4,2                 ; @PP_CONTROL
	.comm	_LVDS,4,2                       ; @LVDS
	.comm	_PANEL_POWER_ON,4,2             ; @PANEL_POWER_ON
	.comm	_PANEL_UNLOCK_REGS,4,2          ; @PANEL_UNLOCK_REGS
	.comm	_LVDS_PIPEB_SELECT,4,2          ; @LVDS_PIPEB_SELECT
	.comm	_PIPE_B,4,2                     ; @PIPE_B
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"panel assertion failure, pipe %c regs locked\n"

	.no_dead_strip	_assert_panel_unlocked
.subsections_via_symbols
