	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_assert_panel_unlocked          ## -- Begin function assert_panel_unlocked
	.p2align	4, 0x90
_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_INVALID_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	callq	_HAS_DDI
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_19
## %bb.1:
	movq	%rbx, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	xorl	%edi, %edi
	callq	_PP_CONTROL
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_PP_ON_DELAYS
	movl	%eax, %edi
	callq	_I915_READ
                                        ## kill: def $eax killed $eax def $rax
	movq	_PANEL_PORT_SELECT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_9
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_PCH_LVDS@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movq	%rbx, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_13
LBB0_12:
	movl	%r14d, %edi
	callq	_PP_CONTROL
	movl	%eax, %r15d
	movl	%r14d, -28(%rbp)
	jmp	LBB0_15
LBB0_9:
	movl	%eax, %edi
	callq	_MISSING_CASE
	jmp	LBB0_15
LBB0_8:
	movq	_PCH_DP_D@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PORT_D@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movq	_PCH_DP_C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PORT_C@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_DP_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PORT_A@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_intel_dp_port_enabled
	jmp	LBB0_15
LBB0_13:
	xorl	%edi, %edi
	callq	_PP_CONTROL
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_PP_ON_DELAYS
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PANEL_PORT_SELECT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	xorl	%edi, %edi
	cmpl	$128, %eax
	setne	%dil
	callq	_WARN_ON
	movq	_LVDS@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_intel_lvds_port_enabled
LBB0_15:
	movl	%r15d, %edi
	callq	_I915_READ
	movq	_PANEL_POWER_ON@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	_PANEL_UNLOCK_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PANEL_UNLOCK_REGS@GOTPCREL(%rip), %rdx
	movb	$1, %cl
	cmpl	(%rdx), %eax
	jne	LBB0_18
LBB0_17:
	xorl	%ecx, %ecx
LBB0_18:
	cmpl	%r14d, -28(%rbp)
	sete	%al
	andb	%cl, %al
	movzbl	%al, %ebx
	movl	%r14d, %edi
	callq	_pipe_name
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_I915_STATE_WARN
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_INVALID_PIPE,4,2               ## @INVALID_PIPE
	.comm	_PANEL_PORT_SELECT_MASK,4,2     ## @PANEL_PORT_SELECT_MASK
	.comm	_PCH_LVDS,4,2                   ## @PCH_LVDS
	.comm	_DP_A,4,2                       ## @DP_A
	.comm	_PORT_A,4,2                     ## @PORT_A
	.comm	_PCH_DP_C,4,2                   ## @PCH_DP_C
	.comm	_PORT_C,4,2                     ## @PORT_C
	.comm	_PCH_DP_D,4,2                   ## @PCH_DP_D
	.comm	_PORT_D,4,2                     ## @PORT_D
	.comm	_LVDS,4,2                       ## @LVDS
	.comm	_PANEL_POWER_ON,4,2             ## @PANEL_POWER_ON
	.comm	_PANEL_UNLOCK_MASK,4,2          ## @PANEL_UNLOCK_MASK
	.comm	_PANEL_UNLOCK_REGS,4,2          ## @PANEL_UNLOCK_REGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"panel assertion failure, pipe %c regs locked\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_assert_panel_unlocked          ; -- Begin function assert_panel_unlocked
	.p2align	2
_assert_panel_unlocked:                 ; @assert_panel_unlocked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _INVALID_PIPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INVALID_PIPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	bl	_HAS_DDI
	bl	_WARN_ON
	cbnz	x0, LBB0_20
; %bb.1:
	mov	x0, x20
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_5
; %bb.2:
	mov	w0, #0
	bl	_PP_CONTROL
	mov	x21, x0
	mov	w0, #0
	bl	_PP_ON_DELAYS
	bl	_I915_READ
Lloh3:
	adrp	x8, _PANEL_PORT_SELECT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PANEL_PORT_SELECT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w0, w8, w0
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.3:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh8:
	adrp	x8, _PCH_LVDS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCH_LVDS@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
	mov	x0, x20
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_13
LBB0_7:
	mov	x0, x19
	bl	_PP_CONTROL
	mov	x21, x0
	str	w19, [sp, #12]
	b	LBB0_15
LBB0_8:
	bl	_MISSING_CASE
	b	LBB0_15
LBB0_9:
Lloh10:
	adrp	x8, _PCH_DP_D@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCH_DP_D@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _PORT_D@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PORT_D@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh15:
	adrp	x8, _PCH_DP_C@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCH_DP_C@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _PORT_C@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PORT_C@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh20:
	adrp	x8, _DP_A@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DP_A@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _PORT_A@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PORT_A@GOTPAGEOFF]
LBB0_12:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x20
	bl	_intel_dp_port_enabled
	b	LBB0_15
LBB0_13:
	bl	_PP_CONTROL
	mov	x21, x0
	mov	w0, #0
	bl	_PP_ON_DELAYS
	bl	_I915_READ
Lloh25:
	adrp	x8, _PANEL_PORT_SELECT_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PANEL_PORT_SELECT_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	and	w8, w8, w0
	cmp	w8, #128
	cset	w0, ne
	bl	_WARN_ON
Lloh28:
	adrp	x8, _LVDS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LVDS@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_intel_lvds_port_enabled
LBB0_15:
	mov	x0, x21
	bl	_I915_READ
Lloh30:
	adrp	x8, _PANEL_POWER_ON@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PANEL_POWER_ON@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_17
; %bb.16:
Lloh33:
	adrp	x8, _PANEL_UNLOCK_MASK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PANEL_UNLOCK_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh36:
	adrp	x9, _PANEL_UNLOCK_REGS@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PANEL_UNLOCK_REGS@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_18
LBB0_17:
	mov	w8, #0
	b	LBB0_19
LBB0_18:
	mov	w8, #1
LBB0_19:
	ldr	w9, [sp, #12]
	cmp	w9, w19
	cset	w9, eq
	and	w20, w8, w9
	mov	x0, x19
	bl	_pipe_name
	mov	x2, x0
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_I915_STATE_WARN
LBB0_20:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
                                        ; -- End function
	.comm	_INVALID_PIPE,4,2               ; @INVALID_PIPE
	.comm	_PANEL_PORT_SELECT_MASK,4,2     ; @PANEL_PORT_SELECT_MASK
	.comm	_PCH_LVDS,4,2                   ; @PCH_LVDS
	.comm	_DP_A,4,2                       ; @DP_A
	.comm	_PORT_A,4,2                     ; @PORT_A
	.comm	_PCH_DP_C,4,2                   ; @PCH_DP_C
	.comm	_PORT_C,4,2                     ; @PORT_C
	.comm	_PCH_DP_D,4,2                   ; @PCH_DP_D
	.comm	_PORT_D,4,2                     ; @PORT_D
	.comm	_LVDS,4,2                       ; @LVDS
	.comm	_PANEL_POWER_ON,4,2             ; @PANEL_POWER_ON
	.comm	_PANEL_UNLOCK_MASK,4,2          ; @PANEL_UNLOCK_MASK
	.comm	_PANEL_UNLOCK_REGS,4,2          ; @PANEL_UNLOCK_REGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"panel assertion failure, pipe %c regs locked\n"

.subsections_via_symbols
