	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_combios_get_lvds_info   ## -- Begin function radeon_combios_get_lvds_info
	.p2align	4, 0x90
_radeon_combios_get_lvds_info:          ## @radeon_combios_get_lvds_info
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	48(%rdi), %rdi
	movq	(%rdi), %rbx
	movq	_COMBIOS_LCD_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_combios_get_table_offset
	testl	%eax, %eax
	je	LBB0_27
## %bb.1:
	movl	%eax, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_28
## %bb.2:
	movq	%rax, %r12
	leal	1(%r15), %edi
	callq	_RBIOS8
	movb	%al, -80(%rbp)
	leal	2(%r15), %edi
	callq	_RBIOS8
	movb	%al, -79(%rbp)
	leal	3(%r15), %edi
	callq	_RBIOS8
	movb	%al, -78(%rbp)
	leal	4(%r15), %edi
	callq	_RBIOS8
	movb	%al, -77(%rbp)
	leal	5(%r15), %edi
	callq	_RBIOS8
	movb	%al, -76(%rbp)
	leal	6(%r15), %edi
	callq	_RBIOS8
	movb	%al, -75(%rbp)
	leal	7(%r15), %edi
	callq	_RBIOS8
	movb	%al, -74(%rbp)
	leal	8(%r15), %edi
	callq	_RBIOS8
	movb	%al, -73(%rbp)
	leal	9(%r15), %edi
	callq	_RBIOS8
	movb	%al, -72(%rbp)
	leal	10(%r15), %edi
	callq	_RBIOS8
	movb	%al, -71(%rbp)
	leal	11(%r15), %edi
	callq	_RBIOS8
	movb	%al, -70(%rbp)
	leal	12(%r15), %edi
	callq	_RBIOS8
	movb	%al, -69(%rbp)
	leal	13(%r15), %edi
	callq	_RBIOS8
	movb	%al, -68(%rbp)
	leal	14(%r15), %edi
	callq	_RBIOS8
	movb	%al, -67(%rbp)
	leal	15(%r15), %edi
	callq	_RBIOS8
	movb	%al, -66(%rbp)
	leal	16(%r15), %edi
	callq	_RBIOS8
	movb	%al, -65(%rbp)
	leal	17(%r15), %edi
	callq	_RBIOS8
	movb	%al, -64(%rbp)
	leal	18(%r15), %edi
	callq	_RBIOS8
	movb	%al, -63(%rbp)
	leal	19(%r15), %edi
	callq	_RBIOS8
	movb	%al, -62(%rbp)
	leal	20(%r15), %edi
	callq	_RBIOS8
	movb	%al, -61(%rbp)
	leal	21(%r15), %edi
	callq	_RBIOS8
	movb	%al, -60(%rbp)
	leal	22(%r15), %edi
	callq	_RBIOS8
	movb	%al, -59(%rbp)
	leal	23(%r15), %edi
	callq	_RBIOS8
	movb	%al, -58(%rbp)
	leal	24(%r15), %edi
	callq	_RBIOS8
	movb	%al, -57(%rbp)
	movb	$0, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-80(%rbp), %rsi
	xorl	%eax, %eax
	callq	_DRM_INFO
	leal	25(%r15), %edi
	callq	_RBIOS16
	movl	%eax, 40(%r12)
	leal	27(%r15), %edi
	callq	_RBIOS16
	movl	%eax, 44(%r12)
	movl	40(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_INFO
	leal	44(%r15), %edi
	callq	_RBIOS16
	movl	%eax, (%r12)
	movq	_u16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	movl	$2000, %edx                     ## imm = 0x7D0
	callq	_min_t
	movl	%eax, (%r12)
	leal	36(%r15), %edi
	callq	_RBIOS8
	movl	%eax, 4(%r12)
	leal	56(%r15), %ebx
	movl	%ebx, %edi
	callq	_RBIOS16
	andl	$15, %eax
	movl	%eax, 8(%r12)
	movl	%ebx, %edi
	callq	_RBIOS16
	shrl	$4, %eax
	andl	$15, %eax
	movl	%eax, 12(%r12)
	leal	46(%r15), %edi
	callq	_RBIOS16
	movl	%eax, 16(%r12)
	leal	48(%r15), %edi
	callq	_RBIOS8
	movl	%eax, 20(%r12)
	leal	49(%r15), %edi
	callq	_RBIOS16
	movl	%eax, 24(%r12)
	cmpl	$0, 16(%r12)
	je	LBB0_5
## %bb.3:
	cmpl	$4, %eax
	jl	LBB0_5
## %bb.4:
	movl	$1, 28(%r12)
LBB0_5:
	leal	57(%r15), %edi
	callq	_RBIOS32
	movl	$65280, 32(%r12)                ## imm = 0xFF00
	movl	$65280, %ecx                    ## imm = 0xFF00
	testb	$1, %al
	je	LBB0_7
## %bb.6:
	movq	_RADEON_LVDS_PANEL_FORMAT@GOTPCREL(%rip), %rdx
	movl	$65280, %ecx                    ## imm = 0xFF00
	orl	(%rdx), %ecx
	movl	%ecx, 32(%r12)
LBB0_7:
	testb	$16, %al
	je	LBB0_9
## %bb.8:
	movq	_RADEON_LVDS_PANEL_TYPE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 32(%r12)
LBB0_9:
	movl	%eax, %edx
	shrl	$8, %edx
	andl	$7, %edx
	cmpl	$2, %edx
	jbe	LBB0_10
## %bb.11:
	testl	$65536, %eax                    ## imm = 0x10000
	jne	LBB0_12
LBB0_13:
	testl	$131072, %eax                   ## imm = 0x20000
	jne	LBB0_14
LBB0_15:
	testl	$262144, %eax                   ## imm = 0x40000
	je	LBB0_17
LBB0_16:
	movq	_RADEON_LVDS_DTM_POL_LOW@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 32(%r12)
LBB0_17:
	testl	$8388608, %eax                  ## imm = 0x800000
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	je	LBB0_19
## %bb.18:
	movq	_RADEON_LVDS_BL_CLK_SEL@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 32(%r12)
LBB0_19:
	movq	%r12, %r14
	addq	$40, %r14
	andl	$-268435456, %eax               ## imm = 0xF0000000
	orl	%ecx, %eax
	movl	%eax, 32(%r12)
	addl	$64, %r15d
	xorl	%r13d, %r13d
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=1
	addl	$2, %r13d
	cmpl	$64, %r13d
	je	LBB0_21
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r13), %edi
	callq	_RBIOS16
	testl	%eax, %eax
	je	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_RBIOS16
	cmpl	(%r14), %eax
	jne	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	leal	2(%rbx), %edi
	callq	_RBIOS16
	cmpl	44(%r12), %eax
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=1
	leal	21(%rbx), %edi
	callq	_RBIOS16
	movl	%eax, %r15d
	leal	19(%rbx), %edi
	movl	%edi, -92(%rbp)                 ## 4-byte Spill
	callq	_RBIOS16
	movl	%eax, %r14d
	notl	%r14d
	addl	%r15d, %r14d
	shll	$3, %r14d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	40(%rax), %r12d
	cmpl	%r12d, %r14d
	movl	$72, %eax
	cmovgl	%eax, %r14d
	leal	17(%rbx), %edi
	callq	_RBIOS16
	movl	%eax, %r15d
	movl	-92(%rbp), %edi                 ## 4-byte Reload
	callq	_RBIOS16
	subl	%eax, %r15d
	leal	(%r12,%r15,8), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 48(%rcx)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	40(%rax), %r14d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 52(%rax)
	leal	23(%rbx), %edi
	callq	_RBIOS8
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r14,%rax,8), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 56(%rcx)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	44(%rax), %r12d
	leal	24(%rbx), %edi
	callq	_RBIOS16
	movl	%eax, %r14d
	leal	26(%rbx), %r15d
	movl	%r15d, %edi
	callq	_RBIOS16
	addl	%r12d, %r14d
	subl	%eax, %r14d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 60(%rax)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	44(%rax), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	leal	28(%rbx), %r14d
	movl	%r14d, %edi
	callq	_RBIOS16
	movl	%eax, %r12d
	andl	$2047, %r12d                    ## imm = 0x7FF
	movl	%r15d, %edi
	movq	-120(%rbp), %r15                ## 8-byte Reload
	callq	_RBIOS16
	subl	%eax, %r12d
	addl	-92(%rbp), %r12d                ## 4-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, 64(%rax)
	movl	%r14d, %edi
	movq	-112(%rbp), %r14                ## 8-byte Reload
	callq	_RBIOS16
	shrl	$11, %eax
	andl	$31, %eax
	addl	%r12d, %eax
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, 68(%r12)
	addl	$9, %ebx
	movl	%ebx, %edi
	callq	_RBIOS16
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, 72(%r12)
	movq	$0, 80(%r12)
	movq	_CRTC_INTERLACE_HALVE_V@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_mode_set_crtcinfo
	jmp	LBB0_26
LBB0_21:
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_22
LBB0_27:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_INFO
	movq	%rbx, %rdi
	callq	_radeon_legacy_get_lvds_info_from_regs
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_28
LBB0_22:
	movups	40(%r12), %xmm0
	movups	56(%r12), %xmm1
	movups	72(%r12), %xmm2
	movups	%xmm2, 32(%r14)
	movups	%xmm1, 16(%r14)
	movups	%xmm0, (%r14)
	jmp	LBB0_29
LBB0_28:
	xorl	%r12d, %r12d
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	movq	%r12, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%edx, %edx
	leaq	l_switch.table.radeon_combios_get_lvds_info(%rip), %rsi
	movq	(%rsi,%rdx,8), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 32(%r12)
	testl	$65536, %eax                    ## imm = 0x10000
	je	LBB0_13
LBB0_12:
	movq	_RADEON_LVDS_FP_POL_LOW@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 32(%r12)
	testl	$131072, %eax                   ## imm = 0x20000
	je	LBB0_15
LBB0_14:
	movq	_RADEON_LVDS_LP_POL_LOW@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 32(%r12)
	testl	$262144, %eax                   ## imm = 0x40000
	jne	LBB0_16
	jmp	LBB0_17
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COMBIOS_LCD_INFO_TABLE,4,2     ## @COMBIOS_LCD_INFO_TABLE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Panel ID String: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Panel Size %dx%d\n"

	.comm	_u16,4,2                        ## @u16
	.comm	_RADEON_LVDS_PANEL_FORMAT,4,2   ## @RADEON_LVDS_PANEL_FORMAT
	.comm	_RADEON_LVDS_PANEL_TYPE,4,2     ## @RADEON_LVDS_PANEL_TYPE
	.comm	_RADEON_LVDS_NO_FM,4,2          ## @RADEON_LVDS_NO_FM
	.comm	_RADEON_LVDS_2_GREY,4,2         ## @RADEON_LVDS_2_GREY
	.comm	_RADEON_LVDS_4_GREY,4,2         ## @RADEON_LVDS_4_GREY
	.comm	_RADEON_LVDS_FP_POL_LOW,4,2     ## @RADEON_LVDS_FP_POL_LOW
	.comm	_RADEON_LVDS_LP_POL_LOW,4,2     ## @RADEON_LVDS_LP_POL_LOW
	.comm	_RADEON_LVDS_DTM_POL_LOW,4,2    ## @RADEON_LVDS_DTM_POL_LOW
	.comm	_RADEON_LVDS_BL_CLK_SEL,4,2     ## @RADEON_LVDS_BL_CLK_SEL
	.comm	_CRTC_INTERLACE_HALVE_V,4,2     ## @CRTC_INTERLACE_HALVE_V
L_.str.2:                               ## @.str.2
	.asciz	"No panel info found in BIOS\n"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.radeon_combios_get_lvds_info
l_switch.table.radeon_combios_get_lvds_info:
	.quad	_RADEON_LVDS_NO_FM
	.quad	_RADEON_LVDS_2_GREY
	.quad	_RADEON_LVDS_4_GREY

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_combios_get_lvds_info   ; -- Begin function radeon_combios_get_lvds_info
	.p2align	2
_radeon_combios_get_lvds_info:          ; @radeon_combios_get_lvds_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x0, [x0, #48]
	ldr	x20, [x0]
Lloh3:
	adrp	x8, _COMBIOS_LCD_INFO_TABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMBIOS_LCD_INFO_TABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_combios_get_table_offset
	cbz	w0, LBB0_21
; %bb.1:
	mov	x21, x0
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_23
; %bb.2:
	add	w0, w21, #1
	bl	_RBIOS8
	strb	w0, [sp, #26]
	add	w0, w21, #2
	bl	_RBIOS8
	strb	w0, [sp, #27]
	add	w0, w21, #3
	bl	_RBIOS8
	strb	w0, [sp, #28]
	add	w0, w21, #4
	bl	_RBIOS8
	strb	w0, [sp, #29]
	add	w0, w21, #5
	bl	_RBIOS8
	strb	w0, [sp, #30]
	add	w0, w21, #6
	bl	_RBIOS8
	strb	w0, [sp, #31]
	add	w0, w21, #7
	bl	_RBIOS8
	strb	w0, [sp, #32]
	add	w0, w21, #8
	bl	_RBIOS8
	strb	w0, [sp, #33]
	add	w0, w21, #9
	bl	_RBIOS8
	strb	w0, [sp, #34]
	add	w0, w21, #10
	bl	_RBIOS8
	strb	w0, [sp, #35]
	add	w0, w21, #11
	bl	_RBIOS8
	strb	w0, [sp, #36]
	add	w0, w21, #12
	bl	_RBIOS8
	strb	w0, [sp, #37]
	add	w0, w21, #13
	bl	_RBIOS8
	strb	w0, [sp, #38]
	add	w0, w21, #14
	bl	_RBIOS8
	strb	w0, [sp, #39]
	add	w0, w21, #15
	bl	_RBIOS8
	strb	w0, [sp, #40]
	add	w0, w21, #16
	bl	_RBIOS8
	strb	w0, [sp, #41]
	add	w0, w21, #17
	bl	_RBIOS8
	strb	w0, [sp, #42]
	add	w0, w21, #18
	bl	_RBIOS8
	strb	w0, [sp, #43]
	add	w0, w21, #19
	bl	_RBIOS8
	strb	w0, [sp, #44]
	add	w0, w21, #20
	bl	_RBIOS8
	strb	w0, [sp, #45]
	add	w0, w21, #21
	bl	_RBIOS8
	strb	w0, [sp, #46]
	add	w0, w21, #22
	bl	_RBIOS8
	strb	w0, [sp, #47]
	add	w0, w21, #23
	bl	_RBIOS8
	strb	w0, [sp, #48]
	add	w0, w21, #24
	bl	_RBIOS8
	strb	w0, [sp, #49]
	strb	wzr, [sp, #50]
	add	x8, sp, #26
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	add	w0, w21, #25
	bl	_RBIOS16
	mov	x22, x20
	str	w0, [x22, #40]!
	add	w0, w21, #27
	bl	_RBIOS16
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x20, #44]
	ldr	w8, [x22]
	stp	x8, x0, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_INFO
	add	w0, w21, #44
	bl	_RBIOS16
	mov	x1, x0
	str	w0, [x20]
Lloh13:
	adrp	x8, _u16@GOTPAGE
Lloh14:
	ldr	x8, [x8, _u16@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	w2, #2000
	bl	_min_t
	str	w0, [x20]
	add	w0, w21, #36
	bl	_RBIOS8
	str	w0, [x20, #4]
	add	w23, w21, #56
	mov	x0, x23
	bl	_RBIOS16
	and	w8, w0, #0xf
	str	w8, [x20, #8]
	mov	x0, x23
	bl	_RBIOS16
	ubfx	w8, w0, #4, #4
	str	w8, [x20, #12]
	add	w0, w21, #46
	bl	_RBIOS16
	str	w0, [x20, #16]
	add	w0, w21, #48
	bl	_RBIOS8
	str	w0, [x20, #20]
	add	w0, w21, #49
	bl	_RBIOS16
	str	w0, [x20, #24]
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_5
; %bb.3:
	cmp	w0, #4
	b.lt	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x20, #28]
LBB0_5:
	add	w0, w21, #57
	bl	_RBIOS32
	mov	w8, #65280
	str	w8, [x20, #32]
	tbz	w0, #0, LBB0_7
; %bb.6:
Lloh16:
	adrp	x8, _RADEON_LVDS_PANEL_FORMAT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RADEON_LVDS_PANEL_FORMAT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w8, w8, #0xff00
	str	w8, [x20, #32]
LBB0_7:
	tbz	w0, #4, LBB0_9
; %bb.8:
Lloh19:
	adrp	x9, _RADEON_LVDS_PANEL_TYPE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RADEON_LVDS_PANEL_TYPE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20, #32]
LBB0_9:
	ubfx	w9, w0, #8, #3
	cmp	w9, #2
	b.ls	LBB0_25
; %bb.10:
	tbnz	w0, #16, LBB0_26
LBB0_11:
	tbnz	w0, #17, LBB0_27
LBB0_12:
	tbnz	w0, #18, LBB0_28
LBB0_13:
	tbz	w0, #23, LBB0_15
LBB0_14:
Lloh22:
	adrp	x9, _RADEON_LVDS_BL_CLK_SEL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RADEON_LVDS_BL_CLK_SEL@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20, #32]
LBB0_15:
	mov	w25, #0
	and	w9, w0, #0xf0000000
	orr	w8, w8, w9
	str	w8, [x20, #32]
	add	w26, w21, #64
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w25, w25, #2
	cmp	w25, #64
	b.eq	LBB0_22
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	w0, w26, w25
	bl	_RBIOS16
	cbz	w0, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x21, x0
	bl	_RBIOS16
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	add	w0, w21, #2
	bl	_RBIOS16
	ldr	w8, [x20, #44]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	add	w0, w21, #21
	bl	_RBIOS16
	mov	x23, x0
	add	w24, w21, #19
	mov	x0, x24
	bl	_RBIOS16
	mvn	w8, w0
	add	w8, w23, w8
	lsl	w8, w8, #3
	ldr	w27, [x20, #40]
	cmp	w8, w27
	mov	w9, #72
	csel	w28, w9, w8, gt
	add	w0, w21, #17
	bl	_RBIOS16
	mov	x23, x0
	mov	x0, x24
	bl	_RBIOS16
	sub	w8, w23, w0
	add	w8, w27, w8, lsl #3
	ldr	w9, [x20, #40]
	add	w23, w9, w28
	stp	w8, w23, [x20, #48]
	add	w0, w21, #23
	bl	_RBIOS8
	add	w8, w23, w0, lsl #3
	str	w8, [x20, #56]
	ldr	w27, [x20, #44]
	add	w0, w21, #24
	bl	_RBIOS16
	mov	x23, x0
	add	w24, w21, #26
	mov	x0, x24
	bl	_RBIOS16
	add	w8, w23, w27
	sub	w8, w8, w0
	str	w8, [x20, #60]
	ldr	w27, [x20, #44]
	add	w23, w21, #28
	mov	x0, x23
	bl	_RBIOS16
	and	w28, w0, #0x7ff
	mov	x0, x24
	bl	_RBIOS16
	sub	w8, w28, w0
	add	w24, w8, w27
	str	w24, [x20, #64]
	mov	x0, x23
	bl	_RBIOS16
	ubfx	w8, w0, #11, #5
	add	w8, w8, w24
	str	w8, [x20, #68]
	add	w0, w21, #9
	bl	_RBIOS16
	add	w8, w0, w0, lsl #2
	lsl	w8, w8, #1
	str	w8, [x20, #72]
	str	xzr, [x20, #80]
Lloh25:
	adrp	x8, _CRTC_INTERLACE_HALVE_V@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CRTC_INTERLACE_HALVE_V@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_drm_mode_set_crtcinfo
	b	LBB0_16
LBB0_21:
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_INFO
	mov	x0, x20
	bl	_radeon_legacy_get_lvds_info_from_regs
	mov	x20, x0
	cbz	x0, LBB0_23
LBB0_22:
	ldur	q0, [x20, #40]
	ldur	q1, [x20, #56]
	ldur	q2, [x20, #72]
	stp	q1, q2, [x19, #16]
	str	q0, [x19]
LBB0_23:
	ldr	x8, [sp, #56]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.24:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_25:
Lloh33:
	adrp	x10, l_switch.table.radeon_combios_get_lvds_info@PAGE
Lloh34:
	add	x10, x10, l_switch.table.radeon_combios_get_lvds_info@PAGEOFF
	ldr	x9, [x10, w9, uxtw #3]
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20, #32]
	tbz	w0, #16, LBB0_11
LBB0_26:
Lloh35:
	adrp	x9, _RADEON_LVDS_FP_POL_LOW@GOTPAGE
Lloh36:
	ldr	x9, [x9, _RADEON_LVDS_FP_POL_LOW@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20, #32]
	tbz	w0, #17, LBB0_12
LBB0_27:
Lloh38:
	adrp	x9, _RADEON_LVDS_LP_POL_LOW@GOTPAGE
Lloh39:
	ldr	x9, [x9, _RADEON_LVDS_LP_POL_LOW@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20, #32]
	tbz	w0, #18, LBB0_13
LBB0_28:
Lloh41:
	adrp	x9, _RADEON_LVDS_DTM_POL_LOW@GOTPAGE
Lloh42:
	ldr	x9, [x9, _RADEON_LVDS_DTM_POL_LOW@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20, #32]
	tbnz	w0, #23, LBB0_14
	b	LBB0_15
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_COMBIOS_LCD_INFO_TABLE,4,2     ; @COMBIOS_LCD_INFO_TABLE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Panel ID String: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Panel Size %dx%d\n"

	.comm	_u16,4,2                        ; @u16
	.comm	_RADEON_LVDS_PANEL_FORMAT,4,2   ; @RADEON_LVDS_PANEL_FORMAT
	.comm	_RADEON_LVDS_PANEL_TYPE,4,2     ; @RADEON_LVDS_PANEL_TYPE
	.comm	_RADEON_LVDS_NO_FM,4,2          ; @RADEON_LVDS_NO_FM
	.comm	_RADEON_LVDS_2_GREY,4,2         ; @RADEON_LVDS_2_GREY
	.comm	_RADEON_LVDS_4_GREY,4,2         ; @RADEON_LVDS_4_GREY
	.comm	_RADEON_LVDS_FP_POL_LOW,4,2     ; @RADEON_LVDS_FP_POL_LOW
	.comm	_RADEON_LVDS_LP_POL_LOW,4,2     ; @RADEON_LVDS_LP_POL_LOW
	.comm	_RADEON_LVDS_DTM_POL_LOW,4,2    ; @RADEON_LVDS_DTM_POL_LOW
	.comm	_RADEON_LVDS_BL_CLK_SEL,4,2     ; @RADEON_LVDS_BL_CLK_SEL
	.comm	_CRTC_INTERLACE_HALVE_V,4,2     ; @CRTC_INTERLACE_HALVE_V
l_.str.2:                               ; @.str.2
	.asciz	"No panel info found in BIOS\n"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.radeon_combios_get_lvds_info
l_switch.table.radeon_combios_get_lvds_info:
	.quad	_RADEON_LVDS_NO_FM
	.quad	_RADEON_LVDS_2_GREY
	.quad	_RADEON_LVDS_4_GREY

.subsections_via_symbols
