	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_lfp_panel_data
_parse_lfp_panel_data:                  ## @parse_lfp_panel_data
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_BDB_LVDS_OPTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_find_section
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rax, %rbx
	movl	8(%rax), %eax
	movl	%eax, 20(%r15)
	movq	%r15, %rdi
	callq	_intel_opregion_get_panel_type
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movl	%eax, %r13d
	xorl	%edi, %edi
	cmpl	$16, %eax
	setae	%dil
	callq	_WARN_ON
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_3:
	movl	(%rbx), %r13d
	cmpl	$16, %r13d
	jl	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
LBB0_5:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	%r13d, (%r15)
	movl	4(%rbx), %eax
	leal	(%r13,%r13), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movq	_MODE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_8
## %bb.9:
	cmpl	$2, %eax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	movq	_SEAMLESS_DRRS_SUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	movq	_STATIC_DRRS_SUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.5(%rip), %rdi
	movq	_DRRS_NOT_SUPPORTED@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_BDB_LVDS_LFP_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_find_section
	testq	%rax, %rax
	je	LBB0_19
## %bb.13:
	movq	%rax, %r12
	movq	_BDB_LVDS_LFP_DATA_PTRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_find_section
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_get_lvds_dvo_timing
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_fill_detail_timing_data
	movq	%rbx, 8(%r15)
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rdi
	callq	_drm_mode_debug_printmodeline
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_get_lvds_fp_timing
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	(%rax), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_19
## %bb.17:
	movq	8(%rax), %rcx
	cmpq	8(%rbx), %rcx
	jne	LBB0_19
## %bb.18:
	movl	16(%rax), %esi
	movl	%esi, 4(%r15)
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_5
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BDB_LVDS_OPTIONS,4,2           ## @BDB_LVDS_OPTIONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Panel type: %d (OpRegion)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid VBT panel type 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Panel type: %d (VBT)\n"

	.comm	_MODE_MASK,4,2                  ## @MODE_MASK
	.comm	_STATIC_DRRS_SUPPORT,4,2        ## @STATIC_DRRS_SUPPORT
L_.str.3:                               ## @.str.3
	.asciz	"DRRS supported mode is static\n"

	.comm	_SEAMLESS_DRRS_SUPPORT,4,2      ## @SEAMLESS_DRRS_SUPPORT
L_.str.4:                               ## @.str.4
	.asciz	"DRRS supported mode is seamless\n"

	.comm	_DRRS_NOT_SUPPORTED,4,2         ## @DRRS_NOT_SUPPORTED
L_.str.5:                               ## @.str.5
	.asciz	"DRRS not supported (VBT input)\n"

	.comm	_BDB_LVDS_LFP_DATA,4,2          ## @BDB_LVDS_LFP_DATA
	.comm	_BDB_LVDS_LFP_DATA_PTRS,4,2     ## @BDB_LVDS_LFP_DATA_PTRS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.6:                               ## @.str.6
	.asciz	"Found panel mode in BIOS VBT tables:\n"

L_.str.7:                               ## @.str.7
	.asciz	"VBT initial LVDS value %x\n"

	.no_dead_strip	_parse_lfp_panel_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_lfp_panel_data
_parse_lfp_panel_data:                  ; @parse_lfp_panel_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BDB_LVDS_OPTIONS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BDB_LVDS_OPTIONS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_find_section
	cbz	x0, LBB0_19
; %bb.1:
	mov	x22, x0
	ldr	w8, [x0, #8]
	str	w8, [x19, #20]
	mov	x0, x19
	bl	_intel_opregion_get_panel_type
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	x21, x0
	cmp	w0, #15
	cset	w0, hi
	bl	_WARN_ON
	str	x21, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_7
LBB0_3:
	ldr	w21, [x22]
	cmp	w21, #16
	b.lt	LBB0_6
; %bb.4:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_DRM_DEBUG_KMS
	b	LBB0_19
LBB0_6:
	str	x21, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_7:
	str	w21, [x19]
	ldr	w8, [x22, #4]
	lsl	w9, w21, #1
	asr	w8, w8, w9
Lloh9:
	adrp	x9, _MODE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MODE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ands	w8, w8, w9
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #2
	b.ne	LBB0_11
; %bb.9:
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh14:
	adrp	x8, _SEAMLESS_DRRS_SUPPORT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SEAMLESS_DRRS_SUPPORT@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh18:
	adrp	x8, _STATIC_DRRS_SUPPORT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STATIC_DRRS_SUPPORT@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh22:
	adrp	x8, _DRRS_NOT_SUPPORTED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DRRS_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	bl	_DRM_DEBUG_KMS
Lloh24:
	adrp	x8, _BDB_LVDS_LFP_DATA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BDB_LVDS_LFP_DATA@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_find_section
	cbz	x0, LBB0_19
; %bb.13:
	mov	x22, x0
Lloh27:
	adrp	x8, _BDB_LVDS_LFP_DATA_PTRS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BDB_LVDS_LFP_DATA_PTRS@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_find_section
	cbz	x0, LBB0_19
; %bb.14:
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_get_lvds_dvo_timing
	mov	x25, x0
Lloh30:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_19
; %bb.15:
	mov	x24, x0
	mov	x1, x25
	bl	_fill_detail_timing_data
	str	x24, [x19, #8]
Lloh33:
	adrp	x0, l_.str.6@PAGE
Lloh34:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x24
	bl	_drm_mode_debug_printmodeline
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	bl	_get_lvds_fp_timing
	cbz	x0, LBB0_19
; %bb.16:
	ldr	x8, [x0]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.17:
	ldr	x8, [x0, #8]
	ldr	x9, [x24, #8]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
	ldr	w8, [x0, #16]
	str	w8, [x19, #4]
	str	x8, [sp]
Lloh35:
	adrp	x0, l_.str.7@PAGE
Lloh36:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_5
LBB0_19:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_BDB_LVDS_OPTIONS,4,2           ; @BDB_LVDS_OPTIONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Panel type: %d (OpRegion)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid VBT panel type 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Panel type: %d (VBT)\n"

	.comm	_MODE_MASK,4,2                  ; @MODE_MASK
	.comm	_STATIC_DRRS_SUPPORT,4,2        ; @STATIC_DRRS_SUPPORT
l_.str.3:                               ; @.str.3
	.asciz	"DRRS supported mode is static\n"

	.comm	_SEAMLESS_DRRS_SUPPORT,4,2      ; @SEAMLESS_DRRS_SUPPORT
l_.str.4:                               ; @.str.4
	.asciz	"DRRS supported mode is seamless\n"

	.comm	_DRRS_NOT_SUPPORTED,4,2         ; @DRRS_NOT_SUPPORTED
l_.str.5:                               ; @.str.5
	.asciz	"DRRS not supported (VBT input)\n"

	.comm	_BDB_LVDS_LFP_DATA,4,2          ; @BDB_LVDS_LFP_DATA
	.comm	_BDB_LVDS_LFP_DATA_PTRS,4,2     ; @BDB_LVDS_LFP_DATA_PTRS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.6:                               ; @.str.6
	.asciz	"Found panel mode in BIOS VBT tables:\n"

l_.str.7:                               ; @.str.7
	.asciz	"VBT initial LVDS value %x\n"

	.no_dead_strip	_parse_lfp_panel_data
.subsections_via_symbols
