	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_mipi_config
_parse_mipi_config:                     ## @parse_mipi_config
	.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
	pushq	%rax
	.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, %r13
	movslq	(%rdi), %r15
	leaq	-44(%rbp), %rsi
	callq	_intel_bios_is_dsi_present
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	_MIPI_DSI_UNDEFINED_PANEL_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_BDB_MIPI_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_find_section
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_DEBUG_DRIVER
	leaq	(,%r15,4), %r12
	addq	8(%rbx), %r12
	movq	(%rbx), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_kmemdup
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	leaq	(%rbx,%r15,4), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kmemdup
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%r14), %esi
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	callq	_parse_dsi_backlight_ports
	movl	(%r12), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.7:
	cltq
	leaq	l_switch.table.parse_mipi_config(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
LBB0_8:
	movq	_MIPI_DSI_GENERIC_PANEL_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_9
LBB0_5:
	movq	16(%r13), %rdi
	callq	_kfree
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_DSI_UNDEFINED_PANEL_ID,4,2 ## @MIPI_DSI_UNDEFINED_PANEL_ID
	.comm	_BDB_MIPI_CONFIG,4,2            ## @BDB_MIPI_CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No MIPI config BDB found"

L_.str.1:                               ## @.str.1
	.asciz	"Found MIPI Config block, panel index = %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN,4,2 ## @DRM_MODE_PANEL_ORIENTATION_UNKNOWN
	.comm	_DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,4,2 ## @DRM_MODE_PANEL_ORIENTATION_RIGHT_UP
	.comm	_DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP,4,2 ## @DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP
	.comm	_DRM_MODE_PANEL_ORIENTATION_LEFT_UP,4,2 ## @DRM_MODE_PANEL_ORIENTATION_LEFT_UP
	.comm	_MIPI_DSI_GENERIC_PANEL_ID,4,2  ## @MIPI_DSI_GENERIC_PANEL_ID
	.no_dead_strip	_parse_mipi_config
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.parse_mipi_config
l_switch.table.parse_mipi_config:
	.quad	_DRM_MODE_PANEL_ORIENTATION_RIGHT_UP
	.quad	_DRM_MODE_PANEL_ORIENTATION_LEFT_UP
	.quad	_DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP
	.quad	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_mipi_config
_parse_mipi_config:                     ; @parse_mipi_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldrsw	x21, [x0]
	add	x1, sp, #12
	bl	_intel_bios_is_dsi_present
	cbz	w0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _MIPI_DSI_UNDEFINED_PANEL_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIPI_DSI_UNDEFINED_PANEL_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh3:
	adrp	x8, _BDB_MIPI_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BDB_MIPI_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_find_section
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_DRM_DEBUG_DRIVER
	ldp	x23, x8, [x22]
	add	x22, x8, x21, lsl #2
Lloh8:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x22
	mov	w1, #4
	bl	_kmemdup
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.3:
	add	x0, x23, x21, lsl #2
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kmemdup
	str	x0, [x19, #24]
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_parse_dsi_backlight_ports
	ldr	w8, [x22]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.5:
Lloh10:
	adrp	x9, l_switch.table.parse_mipi_config@PAGE
Lloh11:
	add	x9, x9, l_switch.table.parse_mipi_config@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_6:
Lloh12:
	adrp	x8, _MIPI_DSI_GENERIC_PANEL_ID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MIPI_DSI_GENERIC_PANEL_ID@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_9
LBB0_8:
	ldr	x0, [x19, #16]
	bl	_kfree
LBB0_9:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DSI_UNDEFINED_PANEL_ID,4,2 ; @MIPI_DSI_UNDEFINED_PANEL_ID
	.comm	_BDB_MIPI_CONFIG,4,2            ; @BDB_MIPI_CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No MIPI config BDB found"

l_.str.1:                               ; @.str.1
	.asciz	"Found MIPI Config block, panel index = %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN,4,2 ; @DRM_MODE_PANEL_ORIENTATION_UNKNOWN
	.comm	_DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,4,2 ; @DRM_MODE_PANEL_ORIENTATION_RIGHT_UP
	.comm	_DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP,4,2 ; @DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP
	.comm	_DRM_MODE_PANEL_ORIENTATION_LEFT_UP,4,2 ; @DRM_MODE_PANEL_ORIENTATION_LEFT_UP
	.comm	_MIPI_DSI_GENERIC_PANEL_ID,4,2  ; @MIPI_DSI_GENERIC_PANEL_ID
	.no_dead_strip	_parse_mipi_config
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.parse_mipi_config
l_switch.table.parse_mipi_config:
	.quad	_DRM_MODE_PANEL_ORIENTATION_RIGHT_UP
	.quad	_DRM_MODE_PANEL_ORIENTATION_LEFT_UP
	.quad	_DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP
	.quad	_DRM_MODE_PANEL_ORIENTATION_UNKNOWN

.subsections_via_symbols
