	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function panel_lvds_parse_dt
_panel_lvds_parse_dt:                   ## @panel_lvds_parse_dt
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_get_display_timing
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	leaq	36(%r15), %rsi
	leaq	-32(%rbp), %rdi
	callq	_videomode_from_timing
	leaq	32(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	leaq	28(%r15), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_of_property_read_string
	leaq	L_.str.6(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_string
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	-40(%rbp), %rbx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.5:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_17
## %bb.7:
	movq	16(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.6(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	movl	%eax, %ebx
	movq	16(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_9:
	movq	16(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_12
LBB0_10:
	movq	16(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_12
LBB0_11:
	movq	16(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.6(%rip), %rcx
LBB0_12:
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_MEDIA_BUS_FMT_RGB666_1X7X3_SPWG@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	movq	_MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_MEDIA_BUS_FMT_RGB888_1X7X4_SPWG@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_bool
	movl	%eax, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"panel-timing"

L_.str.1:                               ## @.str.1
	.asciz	"%pOF: problems parsing panel-timing (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"width-mm"

L_.str.3:                               ## @.str.3
	.asciz	"%pOF: invalid or missing %s DT property\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"height-mm"

L_.str.5:                               ## @.str.5
	.asciz	"label"

L_.str.6:                               ## @.str.6
	.asciz	"data-mapping"

L_.str.7:                               ## @.str.7
	.asciz	"jeida-18"

	.comm	_MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,4,2 ## @MEDIA_BUS_FMT_RGB666_1X7X3_SPWG
L_.str.8:                               ## @.str.8
	.asciz	"jeida-24"

	.comm	_MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,4,2 ## @MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA
L_.str.9:                               ## @.str.9
	.asciz	"vesa-24"

	.comm	_MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,4,2 ## @MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.10:                              ## @.str.10
	.asciz	"data-mirror"

	.no_dead_strip	_panel_lvds_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function panel_lvds_parse_dt
_panel_lvds_parse_dt:                   ; @panel_lvds_parse_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	mov	x0, x19
	bl	_of_get_display_timing
	tbnz	w0, #31, LBB0_10
; %bb.1:
	add	x1, x20, #36
	add	x0, sp, #24
	bl	_videomode_from_timing
	add	x2, x20, #32
Lloh2:
	adrp	x21, l_.str.2@PAGE
Lloh3:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_8
; %bb.2:
	add	x2, x20, #28
Lloh4:
	adrp	x21, l_.str.4@PAGE
Lloh5:
	add	x21, x21, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_8
; %bb.3:
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_of_property_read_string
Lloh8:
	adrp	x21, l_.str.6@PAGE
Lloh9:
	add	x21, x21, l_.str.6@PAGEOFF
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x21
	bl	_of_property_read_string
	tbnz	w0, #31, LBB0_8
; %bb.4:
	ldr	x22, [sp, #16]
Lloh10:
	adrp	x1, l_.str.7@PAGE
Lloh11:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.5:
Lloh12:
	adrp	x1, l_.str.8@PAGE
Lloh13:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_12
; %bb.6:
Lloh14:
	adrp	x1, l_.str.9@PAGE
Lloh15:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.7:
	ldr	x0, [x20, #16]
	str	x21, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	ldr	x0, [x20, #16]
	str	x21, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_dev_err
Lloh22:
	adrp	x8, _ENODEV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_10:
	mov	x21, x0
	ldr	x0, [x20, #16]
	str	x21, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	b	LBB0_15
LBB0_11:
Lloh26:
	adrp	x8, _MEDIA_BUS_FMT_RGB666_1X7X3_SPWG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB666_1X7X3_SPWG@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh28:
	adrp	x8, _MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh30:
	adrp	x8, _MEDIA_BUS_FMT_RGB888_1X7X4_SPWG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB888_1X7X4_SPWG@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh32:
	adrp	x1, l_.str.10@PAGE
Lloh33:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_bool
	mov	w21, #0
	str	w0, [x20, #8]
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"panel-timing"

l_.str.1:                               ; @.str.1
	.asciz	"%pOF: problems parsing panel-timing (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"width-mm"

l_.str.3:                               ; @.str.3
	.asciz	"%pOF: invalid or missing %s DT property\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"height-mm"

l_.str.5:                               ; @.str.5
	.asciz	"label"

l_.str.6:                               ; @.str.6
	.asciz	"data-mapping"

l_.str.7:                               ; @.str.7
	.asciz	"jeida-18"

	.comm	_MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,4,2 ; @MEDIA_BUS_FMT_RGB666_1X7X3_SPWG
l_.str.8:                               ; @.str.8
	.asciz	"jeida-24"

	.comm	_MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,4,2 ; @MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA
l_.str.9:                               ; @.str.9
	.asciz	"vesa-24"

	.comm	_MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,4,2 ; @MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.10:                              ; @.str.10
	.asciz	"data-mirror"

	.no_dead_strip	_panel_lvds_parse_dt
.subsections_via_symbols
