	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$0, 24(%rdi)
	movl	$0, (%rdi)
	movq	_BDB_LVDS_OPTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_find_section
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	4(%rax), %eax
	movl	%eax, 24(%r15)
	movl	(%rbx), %eax
	movl	%eax, 4(%r15)
	cmpl	$255, %eax
	je	LBB0_7
## %bb.2:
	movq	_BDB_LVDS_LFP_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_find_section
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	(%rax), %r12
	movslq	(%rbx), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r14
	leaq	(%r12,%rbx,4), %rsi
	movl	$1, (%r15)
	movq	%rax, %rdi
	callq	_fill_detail_timing_data
	cmpq	$0, (%r14)
	jle	LBB0_6
## %bb.5:
	cmpq	$0, 8(%r14)
	jle	LBB0_6
## %bb.9:
	movq	%r14, 16(%r15)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_mode_debug_printmodeline   ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_6:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movl	$0, (%r15)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BDB_LVDS_OPTIONS,4,2           ## @BDB_LVDS_OPTIONS
	.comm	_BDB_LVDS_LFP_DATA,4,2          ## @BDB_LVDS_LFP_DATA
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory for fixed panel mode\n"

L_.str.1:                               ## @.str.1
	.asciz	"ignoring invalid LVDS VBT\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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x19, x0
	str	wzr, [x0, #24]
	str	wzr, [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_7
; %bb.1:
	mov	x21, x0
	ldp	w9, w8, [x0]
	str	w8, [x19, #24]
	str	w9, [x19, #4]
	cmp	w9, #255
	b.eq	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _BDB_LVDS_LFP_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BDB_LVDS_LFP_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_find_section
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x22, [x0]
	ldrsw	x21, [x21]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x20, x0
	add	x1, x22, x21, lsl #2
	mov	w8, #1
	str	w8, [x19]
	bl	_fill_detail_timing_data
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.5:
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.6:
	str	x20, [x19, #16]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_drm_mode_debug_printmodeline
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_err
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	str	wzr, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BDB_LVDS_OPTIONS,4,2           ; @BDB_LVDS_OPTIONS
	.comm	_BDB_LVDS_LFP_DATA,4,2          ; @BDB_LVDS_LFP_DATA
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory for fixed panel mode\n"

l_.str.1:                               ; @.str.1
	.asciz	"ignoring invalid LVDS VBT\n"

	.no_dead_strip	_parse_lfp_panel_data
.subsections_via_symbols
