	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_edp
_parse_edp:                             ## @parse_edp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	_BDB_EDP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_find_section
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	8(%rax), %rcx
	movq	16(%rax), %rax
	movq	_panel_type@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, 20(%rbx)
	leaq	(%rdx,%rdx,2), %rax
	cmpq	$0, 16(%rcx,%rax,8)
	jne	LBB0_5
## %bb.6:
	movq	_DP_LINK_BW_1_62@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_1:
	movl	32(%rbx), %edi
	callq	_SUPPORTS_EDP
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_16
## %bb.3:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
LBB0_5:
	movq	_DP_LINK_BW_2_7@GOTPCREL(%rip), %rdx
LBB0_7:
	movl	(%rdx), %edx
	movl	%edx, 16(%rbx)
	movl	(%rcx,%rax,8), %edx
	xorl	%esi, %esi
	cmpl	$1, %edx
	setne	%sil
	addl	%esi, %esi
	addl	$2, %esi
	testl	%edx, %edx
	movl	$1, %edx
	cmovnel	%esi, %edx
	movl	%edx, 4(%rbx)
	movslq	4(%rcx,%rax,8), %rdx
	cmpq	$3, %rdx
	ja	LBB0_9
## %bb.8:
	leaq	l_switch.table.parse_edp(%rip), %rsi
	movq	(%rsi,%rdx,8), %rdx
	movl	(%rdx), %edx
	movl	%edx, 12(%rbx)
LBB0_9:
	movl	8(%rcx,%rax,8), %eax
	cmpq	$3, %rax
	ja	LBB0_16
## %bb.10:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	_DP_TRAIN_VOLTAGE_SWING_400@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_DP_TRAIN_VOLTAGE_SWING_600@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_DP_TRAIN_VOLTAGE_SWING_800@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_DP_TRAIN_VOLTAGE_SWING_1200@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_BDB_EDP,4,2                    ## @BDB_EDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No eDP BDB found but eDP panel supported.\n"

	.comm	_panel_type,4,2                 ## @panel_type
	.comm	_DP_LINK_BW_2_7,4,2             ## @DP_LINK_BW_2_7
	.comm	_DP_LINK_BW_1_62,4,2            ## @DP_LINK_BW_1_62
	.comm	_DP_TRAIN_PRE_EMPHASIS_0,4,2    ## @DP_TRAIN_PRE_EMPHASIS_0
	.comm	_DP_TRAIN_PRE_EMPHASIS_3_5,4,2  ## @DP_TRAIN_PRE_EMPHASIS_3_5
	.comm	_DP_TRAIN_PRE_EMPHASIS_6,4,2    ## @DP_TRAIN_PRE_EMPHASIS_6
	.comm	_DP_TRAIN_PRE_EMPHASIS_9_5,4,2  ## @DP_TRAIN_PRE_EMPHASIS_9_5
	.comm	_DP_TRAIN_VOLTAGE_SWING_400,4,2 ## @DP_TRAIN_VOLTAGE_SWING_400
	.comm	_DP_TRAIN_VOLTAGE_SWING_600,4,2 ## @DP_TRAIN_VOLTAGE_SWING_600
	.comm	_DP_TRAIN_VOLTAGE_SWING_800,4,2 ## @DP_TRAIN_VOLTAGE_SWING_800
	.comm	_DP_TRAIN_VOLTAGE_SWING_1200,4,2 ## @DP_TRAIN_VOLTAGE_SWING_1200
	.no_dead_strip	_parse_edp
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.parse_edp
l_switch.table.parse_edp:
	.quad	_DP_TRAIN_PRE_EMPHASIS_0
	.quad	_DP_TRAIN_PRE_EMPHASIS_3_5
	.quad	_DP_TRAIN_PRE_EMPHASIS_6
	.quad	_DP_TRAIN_PRE_EMPHASIS_9_5

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_edp
_parse_edp:                             ; @parse_edp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _BDB_EDP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BDB_EDP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_find_section
	cbz	x0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _panel_type@GOTPAGE
Lloh4:
	ldr	x8, [x8, _panel_type@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	ldp	x9, x10, [x0, #8]
	ldr	w10, [x10, x8, lsl #2]
	str	w10, [x19, #20]
	mov	w10, #24
	madd	x10, x8, x10, x9
	ldr	x11, [x10, #16]
Lloh6:
	adrp	x12, _DP_LINK_BW_2_7@GOTPAGE
Lloh7:
	ldr	x12, [x12, _DP_LINK_BW_2_7@GOTPAGEOFF]
Lloh8:
	adrp	x13, _DP_LINK_BW_1_62@GOTPAGE
Lloh9:
	ldr	x13, [x13, _DP_LINK_BW_1_62@GOTPAGEOFF]
	cmp	x11, #0
	csel	x11, x13, x12, eq
	ldr	w11, [x11]
	str	w11, [x19, #16]
	mov	w11, #4
	mov	w12, #2
	ldp	w13, w10, [x10]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	cmp	w13, #1
	csel	w11, w12, w11, eq
	cmp	w13, #0
	csinc	w11, w11, wzr, ne
	str	w11, [x19, #4]
	cmp	w10, #3
	b.hi	LBB0_3
; %bb.2:
Lloh10:
	adrp	x11, l_switch.table.parse_edp@PAGE
Lloh11:
	add	x11, x11, l_switch.table.parse_edp@PAGEOFF
	ldr	x10, [x11, x10, lsl #3]
	ldr	w10, [x10]
	str	w10, [x19, #12]
LBB0_3:
	mov	w10, #24
	madd	x8, x8, x10, x9
	ldr	w8, [x8, #8]
	cmp	w8, #3
	b.hi	LBB0_13
; %bb.4:
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh14:
	adrp	x8, _DP_TRAIN_VOLTAGE_SWING_400@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DP_TRAIN_VOLTAGE_SWING_400@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
	ldr	w0, [x19, #32]
	bl	_SUPPORTS_EDP
	cbz	x0, LBB0_13
; %bb.7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_13
; %bb.8:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEBUG_KMS
LBB0_9:
Lloh18:
	adrp	x8, _DP_TRAIN_VOLTAGE_SWING_600@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DP_TRAIN_VOLTAGE_SWING_600@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x8, _DP_TRAIN_VOLTAGE_SWING_800@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DP_TRAIN_VOLTAGE_SWING_800@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh22:
	adrp	x8, _DP_TRAIN_VOLTAGE_SWING_1200@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DP_TRAIN_VOLTAGE_SWING_1200@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
                                        ; -- End function
	.comm	_BDB_EDP,4,2                    ; @BDB_EDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No eDP BDB found but eDP panel supported.\n"

	.comm	_panel_type,4,2                 ; @panel_type
	.comm	_DP_LINK_BW_2_7,4,2             ; @DP_LINK_BW_2_7
	.comm	_DP_LINK_BW_1_62,4,2            ; @DP_LINK_BW_1_62
	.comm	_DP_TRAIN_PRE_EMPHASIS_0,4,2    ; @DP_TRAIN_PRE_EMPHASIS_0
	.comm	_DP_TRAIN_PRE_EMPHASIS_3_5,4,2  ; @DP_TRAIN_PRE_EMPHASIS_3_5
	.comm	_DP_TRAIN_PRE_EMPHASIS_6,4,2    ; @DP_TRAIN_PRE_EMPHASIS_6
	.comm	_DP_TRAIN_PRE_EMPHASIS_9_5,4,2  ; @DP_TRAIN_PRE_EMPHASIS_9_5
	.comm	_DP_TRAIN_VOLTAGE_SWING_400,4,2 ; @DP_TRAIN_VOLTAGE_SWING_400
	.comm	_DP_TRAIN_VOLTAGE_SWING_600,4,2 ; @DP_TRAIN_VOLTAGE_SWING_600
	.comm	_DP_TRAIN_VOLTAGE_SWING_800,4,2 ; @DP_TRAIN_VOLTAGE_SWING_800
	.comm	_DP_TRAIN_VOLTAGE_SWING_1200,4,2 ; @DP_TRAIN_VOLTAGE_SWING_1200
	.no_dead_strip	_parse_edp
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.parse_edp
l_switch.table.parse_edp:
	.quad	_DP_TRAIN_PRE_EMPHASIS_0
	.quad	_DP_TRAIN_PRE_EMPHASIS_3_5
	.quad	_DP_TRAIN_PRE_EMPHASIS_6
	.quad	_DP_TRAIN_PRE_EMPHASIS_9_5

.subsections_via_symbols
