	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atombios_get_lvds_info  ## -- Begin function radeon_atombios_get_lvds_info
	.p2align	4, 0x90
_radeon_atombios_get_lvds_info:         ## @radeon_atombios_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	$56, %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	56(%rdi), %rax
	movq	(%rax), %r13
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LVDS_Info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movq	_ENUM_ID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	(%r14), %ebx
	movq	_ENUM_ID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	movq	16(%r13), %rdi
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	leaq	-44(%rbp), %r9
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_atom_parse_data_header
	testq	%rax, %rax
	je	LBB0_33
## %bb.1:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	16(%r13), %rax
	movslq	(%rax), %r15
	movslq	-44(%rbp), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	movl	52(%r12,%r15), %edi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, 8(%r14)
	movl	48(%r12,%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, 12(%r14)
	movl	44(%r12,%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, 16(%r14)
	movl	12(%r14), %ebx
	movl	40(%r12,%r15), %edi
	callq	_le16_to_cpu
	addl	%ebx, %eax
	movl	%eax, 20(%r14)
	movl	12(%r14), %r13d
	movl	36(%r12,%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	addl	%r13d, %ebx
	movl	%ebx, 24(%r14)
	movl	32(%r12,%r15), %edi
	callq	_le16_to_cpu
	addl	%ebx, %eax
	movl	%eax, 28(%r14)
	movl	16(%r14), %ebx
	movl	28(%r12,%r15), %edi
	callq	_le16_to_cpu
	addl	%ebx, %eax
	movl	%eax, 32(%r14)
	movl	16(%r14), %r13d
	movl	24(%r12,%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	addl	%r13d, %ebx
	movl	%ebx, 36(%r14)
	movl	20(%r12,%r15), %edi
	callq	_le16_to_cpu
	addl	%ebx, %eax
	movl	%eax, 40(%r14)
	movl	60(%r12,%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, (%r14)
	movl	56(%r12,%r15), %eax
	movl	%eax, 60(%r14)
	movl	16(%r12,%r15), %edi
	callq	_le16_to_cpu
	movq	_ATOM_VSYNC_POLARITY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 52(%r14)
LBB0_5:
	movq	_ATOM_HSYNC_POLARITY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 52(%r14)
LBB0_7:
	movq	_ATOM_COMPOSITESYNC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movq	_DRM_MODE_FLAG_CSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 52(%r14)
LBB0_9:
	movq	_ATOM_INTERLACE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 52(%r14)
LBB0_11:
	addq	$8, -72(%rbp)                   ## 8-byte Folded Spill
	movq	_ATOM_DOUBLE_CLOCK_MODE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 52(%r14)
LBB0_13:
	movl	12(%r15,%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, 44(%r14)
	movl	8(%r15,%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, 48(%r14)
	movq	_CRTC_INTERLACE_HALVE_V@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_drm_mode_set_crtcinfo
	movl	4(%r15,%r12), %eax
	movl	%eax, 56(%r14)
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movups	32(%r13), %xmm2
	movups	%xmm2, 36(%rbx)
	movups	%xmm1, 20(%rbx)
	movups	%xmm0, 4(%rbx)
	xorl	%eax, %eax
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	sete	%al
	movl	%eax, 4(%r14)
	movl	(%r15,%r12), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	je	LBB0_32
## %bb.14:
	cmpl	$1, -56(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax), %r13d
	jne	LBB0_17
## %bb.15:
	cmpl	$1, -52(%rbp)
	jg	LBB0_17
## %bb.16:
	movl	(%r15,%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_33
LBB0_17:
	movl	%r13d, %ebx
	addl	-44(%rbp), %ebx
	movl	(%r15,%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
LBB0_18:
	movslq	%ebx, %rbx
	movslq	%r13d, %rcx
	movl	(%rbx,%rcx), %esi
	movq	_ATOM_RECORD_END_TYPE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpl	%eax, %esi
	jne	LBB0_19
LBB0_32:
	movq	%r14, %r15
LBB0_33:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	addq	%rcx, %rbx
	leaq	LJTI0_0(%rip), %r13
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=1
	addq	$16, %rbx
LBB0_31:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	(%rbx), %esi
	cmpl	%eax, %esi
	je	LBB0_32
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	leal	-128(%rsi), %ecx
	cmpl	$4, %ecx
	ja	LBB0_29
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movslq	(%r13,%rcx,4), %rcx
	addq	%r13, %rcx
	jmpq	*%rcx
LBB0_28:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	$129, 44(%r14)
	movl	4(%rbx), %ecx
	movl	%ecx, 48(%r14)
	addq	$32, %rbx
	jmp	LBB0_31
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	_EDID_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_max
	movl	%eax, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rax, %r15
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	movq	%rax, %rdi
	callq	_memcpy
	movq	%r15, %rdi
	callq	_drm_edid_is_valid
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, 8(%rax)
	movl	%r14d, (%rax)
	jmp	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r15, %rdi
	callq	_kfree
LBB0_27:                                ##   in Loop: Header=BB0_20 Depth=1
	addq	$64, %rbx
	movl	(%r12), %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_29:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DRM_ERROR
	jmp	LBB0_32
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_30
	.long	L0_0_set_28
	.long	L0_0_set_30
	.long	L0_0_set_22
	.long	L0_0_set_30
	.end_data_region
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_LVDS_Info,4,2                  ## @LVDS_Info
	.comm	_ENUM_ID_MASK,4,2               ## @ENUM_ID_MASK
	.comm	_ENUM_ID_SHIFT,4,2              ## @ENUM_ID_SHIFT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ATOM_VSYNC_POLARITY,4,2        ## @ATOM_VSYNC_POLARITY
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
	.comm	_ATOM_HSYNC_POLARITY,4,2        ## @ATOM_HSYNC_POLARITY
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.comm	_ATOM_COMPOSITESYNC,4,2         ## @ATOM_COMPOSITESYNC
	.comm	_DRM_MODE_FLAG_CSYNC,4,2        ## @DRM_MODE_FLAG_CSYNC
	.comm	_ATOM_INTERLACE,4,2             ## @ATOM_INTERLACE
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_ATOM_DOUBLE_CLOCK_MODE,4,2     ## @ATOM_DOUBLE_CLOCK_MODE
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_CRTC_INTERLACE_HALVE_V,4,2     ## @CRTC_INTERLACE_HALVE_V
	.comm	_ATOM_RECORD_END_TYPE,4,2       ## @ATOM_RECORD_END_TYPE
	.comm	_EDID_LENGTH,8,3                ## @EDID_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad LCD record %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atombios_get_lvds_info  ; -- Begin function radeon_atombios_get_lvds_info
	.p2align	2
_radeon_atombios_get_lvds_info:         ; @radeon_atombios_get_lvds_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	ldr	x8, [x0, #56]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _LVDS_Info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LVDS_Info@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
Lloh6:
	adrp	x8, _ENUM_ID_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENUM_ID_MASK@GOTPAGEOFF]
	ldr	w26, [x20]
Lloh8:
	ldr	w27, [x8]
Lloh9:
	adrp	x8, _ENUM_ID_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENUM_ID_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w25, [x8]
	ldr	x0, [x22, #16]
	add	x3, sp, #8
	add	x4, sp, #4
	add	x5, sp, #12
	mov	x2, #0
	bl	_atom_parse_data_header
	cbz	x0, LBB0_16
; %bb.1:
	ldr	x8, [x22, #16]
	ldrsw	x21, [x8]
	ldrsw	x24, [sp, #12]
Lloh12:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #64
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_19
; %bb.2:
	add	x24, x24, x21
	ldr	w0, [x24, #52]
	bl	_le16_to_cpu
	add	w8, w0, w0, lsl #2
	lsl	w8, w8, #1
	mov	x21, x19
	str	w8, [x21, #8]!
	ldr	w0, [x24, #48]
	bl	_le16_to_cpu
	str	w0, [x19, #12]
	ldr	w0, [x24, #44]
	bl	_le16_to_cpu
	str	w0, [x19, #16]
	ldr	w28, [x19, #12]
	ldr	w0, [x24, #40]
	bl	_le16_to_cpu
	add	w8, w0, w28
	str	w8, [x19, #20]
	ldr	w28, [x19, #12]
	ldr	w0, [x24, #36]
	bl	_le16_to_cpu
	add	w28, w0, w28
	str	w28, [x19, #24]
	ldr	w0, [x24, #32]
	bl	_le16_to_cpu
	add	w8, w0, w28
	str	w8, [x19, #28]
	ldr	w28, [x19, #16]
	ldr	w0, [x24, #28]
	bl	_le16_to_cpu
	add	w8, w0, w28
	str	w8, [x19, #32]
	ldr	w28, [x19, #16]
	ldr	w0, [x24, #24]
	bl	_le16_to_cpu
	add	w28, w0, w28
	str	w28, [x19, #36]
	ldr	w0, [x24, #20]
	bl	_le16_to_cpu
	add	w8, w0, w28
	str	w8, [x19, #40]
	ldr	w0, [x24, #60]
	bl	_le16_to_cpu
	str	w0, [x19]
	ldr	w8, [x24, #56]
	str	w8, [x19, #60]
	ldr	w0, [x24, #16]
	bl	_le16_to_cpu
Lloh14:
	adrp	x8, _ATOM_VSYNC_POLARITY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ATOM_VSYNC_POLARITY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh17:
	adrp	x8, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19, #52]
	orr	w8, w9, w8
	str	w8, [x19, #52]
LBB0_4:
Lloh20:
	adrp	x8, _ATOM_HSYNC_POLARITY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ATOM_HSYNC_POLARITY@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh23:
	adrp	x8, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x19, #52]
	orr	w8, w9, w8
	str	w8, [x19, #52]
LBB0_6:
Lloh26:
	adrp	x8, _ATOM_COMPOSITESYNC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ATOM_COMPOSITESYNC@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:
Lloh29:
	adrp	x8, _DRM_MODE_FLAG_CSYNC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DRM_MODE_FLAG_CSYNC@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x19, #52]
	orr	w8, w9, w8
	str	w8, [x19, #52]
LBB0_8:
	and	w8, w27, w26
Lloh32:
	adrp	x9, _ATOM_INTERLACE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ATOM_INTERLACE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_10
; %bb.9:
Lloh35:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	ldr	w10, [x19, #52]
	orr	w9, w10, w9
	str	w9, [x19, #52]
LBB0_10:
	asr	w25, w8, w25
Lloh38:
	adrp	x8, _ATOM_DOUBLE_CLOCK_MODE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ATOM_DOUBLE_CLOCK_MODE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.11:
Lloh41:
	adrp	x8, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	ldr	w9, [x19, #52]
	orr	w8, w9, w8
	str	w8, [x19, #52]
LBB0_12:
	ldr	w0, [x24, #12]
	bl	_le16_to_cpu
	str	w0, [x19, #44]
	ldr	w0, [x24, #8]
	bl	_le16_to_cpu
	str	w0, [x19, #48]
Lloh44:
	adrp	x8, _CRTC_INTERLACE_HALVE_V@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CRTC_INTERLACE_HALVE_V@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_drm_mode_set_crtcinfo
	ldr	w8, [x24, #4]
	str	w8, [x19, #56]
	ldp	q1, q0, [x21, #16]
	ldr	q2, [x21]
	stur	q2, [x20, #4]
	stur	q0, [x20, #36]
	stur	q1, [x20, #20]
	cmp	w25, #2
	cset	w8, eq
	str	w8, [x19, #4]
	ldr	w0, [x24]
	bl	_le16_to_cpu
	cbz	w0, LBB0_19
; %bb.13:
	ldr	w8, [sp, #8]
	ldr	x9, [x22, #16]
	ldr	w20, [x9]
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.14:
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.gt	LBB0_17
; %bb.15:
	ldr	w0, [x24]
	bl	_le16_to_cpu
	mov	x21, x0
	b	LBB0_18
LBB0_16:
	mov	x19, #0
	b	LBB0_19
LBB0_17:
	ldr	w8, [sp, #12]
	add	w21, w8, w20
	ldr	w0, [x24]
	bl	_le16_to_cpu
	mov	x20, x0
LBB0_18:
	sxtw	x8, w21
	add	x24, x8, w20, sxtw
	ldr	w1, [x24]
Lloh47:
	adrp	x25, _ATOM_RECORD_END_TYPE@GOTPAGE
Lloh48:
	ldr	x25, [x25, _ATOM_RECORD_END_TYPE@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w1, w8
	b.ne	LBB0_20
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
Lloh49:
	adrp	x26, lJTI0_0@PAGE
Lloh50:
	add	x26, x26, lJTI0_0@PAGEOFF
	mov	w27, #129
Lloh51:
	adrp	x28, _EDID_LENGTH@GOTPAGE
Lloh52:
	ldr	x28, [x28, _EDID_LENGTH@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x24, x24, #16
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w1, [x24]
	cmp	w1, w8
	b.eq	LBB0_19
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	sub	w9, w1, #128
	cmp	w9, #4
	b.hi	LBB0_32
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	adr	x10, LBB0_21
	ldrb	w11, [x26, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_25:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w9, [x24, #4]
	stp	w27, w9, [x19, #44]
	add	x24, x24, #32
	b	LBB0_22
LBB0_26:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x1, [x24]
	cbz	x1, LBB0_31
; %bb.27:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x28]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_max
	mov	x20, x0
	ldr	w1, [x23]
	bl	_kmalloc
	cbz	x0, LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x21, x0
	ldp	x2, x1, [x24]
	bl	_memcpy
	mov	x0, x21
	bl	_drm_edid_is_valid
	cbz	w0, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_23 Depth=1
	str	x21, [x22, #8]
	str	w20, [x22]
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x21
	bl	_kfree
LBB0_31:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x24, x24, #64
	ldr	w8, [x25]
	b	LBB0_22
LBB0_32:
Lloh53:
	adrp	x0, l_.str@PAGE
Lloh54:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_25-LBB0_21)>>2
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_26-LBB0_21)>>2
	.byte	(LBB0_21-LBB0_21)>>2
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_LVDS_Info,4,2                  ; @LVDS_Info
	.comm	_ENUM_ID_MASK,4,2               ; @ENUM_ID_MASK
	.comm	_ENUM_ID_SHIFT,4,2              ; @ENUM_ID_SHIFT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ATOM_VSYNC_POLARITY,4,2        ; @ATOM_VSYNC_POLARITY
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
	.comm	_ATOM_HSYNC_POLARITY,4,2        ; @ATOM_HSYNC_POLARITY
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.comm	_ATOM_COMPOSITESYNC,4,2         ; @ATOM_COMPOSITESYNC
	.comm	_DRM_MODE_FLAG_CSYNC,4,2        ; @DRM_MODE_FLAG_CSYNC
	.comm	_ATOM_INTERLACE,4,2             ; @ATOM_INTERLACE
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_ATOM_DOUBLE_CLOCK_MODE,4,2     ; @ATOM_DOUBLE_CLOCK_MODE
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_CRTC_INTERLACE_HALVE_V,4,2     ; @CRTC_INTERLACE_HALVE_V
	.comm	_ATOM_RECORD_END_TYPE,4,2       ; @ATOM_RECORD_END_TYPE
	.comm	_EDID_LENGTH,8,3                ; @EDID_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad LCD record %d\n"

.subsections_via_symbols
