	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_ddi_port
_parse_ddi_port:                        ## @parse_ddi_port
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	56(%rsi), %edi
	callq	_dvo_port_to_port
	movl	%eax, %r13d
	movq	_PORT_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_58
## %bb.1:
	movq	(%rbx), %r12
	movl	%r13d, %edi
	shlq	$6, %rdi
	cmpq	$0, 40(%r12,%rdi)
	je	LBB0_2
## %bb.59:
	movl	%r13d, %edi
	callq	_port_name
	movslq	%eax, %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
LBB0_2:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	(%r15), %eax
	movq	_DEVICE_TYPE_TMDS_DVI_SIGNALING@GOTPCREL(%rip), %rcx
	movq	_DEVICE_TYPE_ANALOG_OUTPUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	setne	%cl
	movq	_DEVICE_TYPE_NOT_HDMI_OUTPUT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	movq	_DEVICE_TYPE_DISPLAYPORT_OUTPUT@GOTPCREL(%rip), %rsi
	sete	%dl
	andb	%cl, %dl
	movl	(%rsi), %esi
	andl	%eax, %esi
	movzbl	%dl, %ecx
	setne	%r8b
	movq	_DEVICE_TYPE_INTERNAL_CONNECTOR@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	setne	%al
	andb	%r8b, %al
	movzbl	%al, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_PORT_A@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	jne	LBB0_5
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	testl	%ecx, %ecx
	cmovneq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	xorl	%ecx, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, (%r12,%rdi)
	movl	%ecx, %r14d
	movl	%ecx, 4(%r12,%rdi)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r12,%rdi)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 12(%r12,%rdi)
	cmpl	$195, -52(%rbp)                 ## 4-byte Folded Reload
	jl	LBB0_8
## %bb.6:
	movl	52(%r15), %eax
	movl	%eax, 56(%r12,%rdi)
	cmpl	$209, -52(%rbp)                 ## 4-byte Folded Reload
	jb	LBB0_8
## %bb.7:
	movl	48(%r15), %eax
	movl	%eax, 52(%r12,%rdi)
LBB0_8:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_port_name
	movslq	%eax, %r12
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_HAS_LSPCON
	testq	%rax, %rax
	movl	%ebx, %r15d
	je	LBB0_9
## %bb.10:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 40(%rax)
	setne	%al
	jmp	LBB0_11
LBB0_9:
	xorl	%eax, %eax
LBB0_11:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movzbl	%al, %r10d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	52(%rax,%rcx), %ebx
	movl	56(%rax,%rcx), %r11d
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	movl	%r15d, %r12d
	pushq	%r11
	pushq	%r10
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	callq	_DRM_DEBUG_KMS
	addq	$32, %rsp
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.12:
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.13:
	movl	%r13d, %edi
	callq	_port_name
	movslq	%eax, %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_14:
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.15:
	movq	_PORT_E@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_17
## %bb.16:
	movl	%r13d, %edi
	callq	_port_name
	movslq	%eax, %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_17:
	movl	%r12d, %eax
	orl	%r14d, %eax
	setne	%al
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.18:
	testb	%al, %al
	je	LBB0_20
## %bb.19:
	movl	%r13d, %edi
	callq	_port_name
	movslq	%eax, %rsi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_20:
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.21:
	leaq	L_.str.8(%rip), %r12
	movq	_PORT_A@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_25
## %bb.22:
	movq	_PORT_E@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_26
	jmp	LBB0_25
LBB0_23:
	orl	%r14d, %ebx
	jne	LBB0_26
## %bb.24:
	leaq	L_.str.9(%rip), %r12
LBB0_25:
	movl	%r13d, %edi
	callq	_port_name
	movslq	%eax, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_26:
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_31
## %bb.27:
	movq	_PORT_B@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_30
## %bb.28:
	movq	_PORT_C@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_30
## %bb.29:
	movq	_PORT_E@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_31
LBB0_30:
	movl	%r13d, %edi
	callq	_port_name
	movslq	%eax, %rsi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_31:
	testl	%r15d, %r15d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_36
## %bb.32:
	movq	%r12, %rbx
	movl	36(%r12), %esi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_map_ddc_pin
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_intel_gmbus_is_valid_pin
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, 16(%r14,%rax)
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_sanitize_ddc_pin
	jmp	LBB0_35
LBB0_34:
	movl	%r13d, %edi
	callq	_port_name
	movslq	%eax, %rsi
	leaq	L_.str.11(%rip), %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_35:
	movq	%rbx, %r12
LBB0_36:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_38
## %bb.37:
	movl	32(%r12), %eax
	movl	%eax, 48(%r14,%rbx)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_sanitize_aux_ch
LBB0_38:
	addq	%rbx, %r14
	addq	$40, %r14
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	cmpl	$158, %r15d
	jl	LBB0_57
## %bb.39:
	movq	%r12, %rbx
	movl	4(%r12), %r12d
	movl	%r13d, %edi
	callq	_port_name
	movslq	%eax, %rsi
	leaq	L_.str.12(%rip), %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, 20(%rax,%rdx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$204, %r15d
	jb	LBB0_50
## %bb.40:
	movl	8(%rbx), %edi
	cmpl	$132, %edi
	movq	%rbx, %r12
	je	LBB0_41
## %bb.42:
	cmpl	$133, %edi
	movq	%rax, %rbx
	movl	$0, %r15d
	je	LBB0_43
## %bb.44:
	cmpl	$134, %edi
	jne	LBB0_45
## %bb.46:
	movl	$165000, %r15d                  ## imm = 0x28488
	jmp	LBB0_47
LBB0_50:
	cmpl	$196, %r15d
	movq	%rbx, %r12
	movq	%rax, %rbx
	jae	LBB0_51
	jmp	LBB0_57
LBB0_41:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	movl	%r15d, 24(%rax,%rdx)
	jmp	LBB0_51
LBB0_43:
	movl	$297000, %r15d                  ## imm = 0x48828
LBB0_47:
	movl	%r13d, %edi
	callq	_port_name
	movslq	%eax, %rsi
	leaq	L_.str.13(%rip), %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_48
LBB0_45:
	callq	_MISSING_CASE
LBB0_48:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, 24(%rbx,%rdx)
LBB0_51:
	cmpq	$0, 24(%r12)
	je	LBB0_53
## %bb.52:
	movl	20(%r12), %edi
	callq	_translate_iboost
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 28(%rbx,%rcx)
	movl	%r13d, %edi
	callq	_port_name
	movslq	%eax, %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rbx,%rax), %edx
	leaq	L_.str.14(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	16(%r12), %edi
	callq	_translate_iboost
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 32(%rbx,%rcx)
	movl	%r13d, %edi
	callq	_port_name
	movslq	%eax, %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rbx,%rax), %edx
	leaq	L_.str.15(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_53:
	cmpl	$216, -52(%rbp)                 ## 4-byte Folded Reload
	jb	LBB0_57
## %bb.54:
	movl	12(%r12), %eax
	addl	$-128, %eax
	movl	$810000, %ecx                   ## imm = 0xC5C10
	cmpl	$3, %eax
	ja	LBB0_56
## %bb.55:
	cltq
	leaq	L_switch.table.parse_ddi_port(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
LBB0_56:
	movl	%ecx, 36(%rbx,%rdx)
	movl	%r13d, %edi
	movq	%rdx, %r15
	callq	_port_name
	movslq	%eax, %rsi
	movl	36(%rbx,%r15), %edx
	leaq	L_.str.16(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_57:
	movq	%r12, (%r14)
LBB0_58:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_NONE,4,2                  ## @PORT_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"More than one child device for port %c in VBT, using the first.\n"

	.comm	_DEVICE_TYPE_TMDS_DVI_SIGNALING,4,2 ## @DEVICE_TYPE_TMDS_DVI_SIGNALING
	.comm	_DEVICE_TYPE_DISPLAYPORT_OUTPUT,4,2 ## @DEVICE_TYPE_DISPLAYPORT_OUTPUT
	.comm	_DEVICE_TYPE_ANALOG_OUTPUT,4,2  ## @DEVICE_TYPE_ANALOG_OUTPUT
	.comm	_DEVICE_TYPE_NOT_HDMI_OUTPUT,4,2 ## @DEVICE_TYPE_NOT_HDMI_OUTPUT
	.comm	_DEVICE_TYPE_INTERNAL_CONNECTOR,4,2 ## @DEVICE_TYPE_INTERNAL_CONNECTOR
	.comm	_PORT_A,4,2                     ## @PORT_A
L_.str.1:                               ## @.str.1
	.asciz	"VBT claims port A supports DVI%s, ignoring\n"

L_.str.2:                               ## @.str.2
	.asciz	"/HDMI"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"Port %c VBT info: CRT:%d DVI:%d HDMI:%d DP:%d eDP:%d LSPCON:%d USB-Type-C:%d TBT:%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Internal DP port %c is TMDS compatible\n"

	.comm	_PORT_E,4,2                     ## @PORT_E
L_.str.6:                               ## @.str.6
	.asciz	"Port %c is analog\n"

L_.str.7:                               ## @.str.7
	.asciz	"Analog port %c is also DP or TMDS compatible\n"

L_.str.8:                               ## @.str.8
	.asciz	"Port %c is TMDS compatible\n"

L_.str.9:                               ## @.str.9
	.asciz	"Port %c is not DP/TMDS/CRT compatible\n"

	.comm	_PORT_B,4,2                     ## @PORT_B
	.comm	_PORT_C,4,2                     ## @PORT_C
L_.str.10:                              ## @.str.10
	.asciz	"Port %c is internal DP\n"

L_.str.11:                              ## @.str.11
	.asciz	"Port %c has invalid DDC pin %d, sticking to defaults\n"

L_.str.12:                              ## @.str.12
	.asciz	"VBT HDMI level shift for port %c: %d\n"

L_.str.13:                              ## @.str.13
	.asciz	"VBT HDMI max TMDS clock for port %c: %d kHz\n"

L_.str.14:                              ## @.str.14
	.asciz	"VBT (e)DP boost level for port %c: %d\n"

L_.str.15:                              ## @.str.15
	.asciz	"VBT HDMI boost level for port %c: %d\n"

L_.str.16:                              ## @.str.16
	.asciz	"VBT DP max link rate for port %c: %d\n"

	.no_dead_strip	_parse_ddi_port
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.parse_ddi_port
L_switch.table.parse_ddi_port:
	.long	162000                          ## 0x278d0
	.long	810000                          ## 0xc5c10
	.long	540000                          ## 0x83d60
	.long	270000                          ## 0x41eb0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_ddi_port
_parse_ddi_port:                        ; @parse_ddi_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x1, #56]
	bl	_dvo_port_to_port
Lloh0:
	adrp	x8, _PORT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_57
; %bb.1:
	mov	x20, x0
	ldr	x25, [x22]
	mov	w26, w0
	add	x9, x25, x26, lsl #6
	ldr	x8, [x9, #40]!
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_DRM_DEBUG_KMS
LBB0_3:
	str	w21, [sp, #84]                  ; 4-byte Folded Spill
	str	x9, [sp, #72]                   ; 8-byte Folded Spill
	ldr	w23, [x19]
Lloh5:
	adrp	x8, _DEVICE_TYPE_TMDS_DVI_SIGNALING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEVICE_TYPE_TMDS_DVI_SIGNALING@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ands	w28, w8, w23
Lloh8:
	adrp	x8, _DEVICE_TYPE_DISPLAYPORT_OUTPUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEVICE_TYPE_DISPLAYPORT_OUTPUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cset	w9, ne
Lloh11:
	adrp	x10, _DEVICE_TYPE_NOT_HDMI_OUTPUT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DEVICE_TYPE_NOT_HDMI_OUTPUT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w23
	cset	w10, eq
	ands	w8, w8, w23
	str	x8, [sp, #88]                   ; 8-byte Folded Spill
Lloh14:
	adrp	x8, _DEVICE_TYPE_ANALOG_OUTPUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DEVICE_TYPE_ANALOG_OUTPUT@GOTPAGEOFF]
Lloh16:
	ldr	w24, [x8]
	and	w21, w9, w10
	cset	w8, ne
Lloh17:
	adrp	x9, _DEVICE_TYPE_INTERNAL_CONNECTOR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DEVICE_TYPE_INTERNAL_CONNECTOR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w23
	cset	w9, ne
	and	w27, w8, w9
Lloh20:
	adrp	x8, _PORT_A@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PORT_A@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w20, w8
	ccmp	w28, #0, #4, eq
	b.eq	LBB0_5
; %bb.4:
Lloh23:
	adrp	x8, l_.str.3@PAGE
Lloh24:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh25:
	adrp	x9, l_.str.2@PAGE
Lloh26:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #0
	csel	x1, x9, x8, ne
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w21, #0
	mov	w28, #0
LBB0_5:
	add	x8, x25, x26, lsl #6
	stp	w28, w21, [x8]
	ldr	x9, [sp, #88]                   ; 8-byte Folded Reload
	stp	w9, w27, [x8, #8]
	ldr	w9, [sp, #84]                   ; 4-byte Folded Reload
	cmp	w9, #195
	b.lt	LBB0_8
; %bb.6:
	ldr	w9, [x19, #52]
	str	w9, [x8, #56]
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cmp	w8, #209
	b.lo	LBB0_8
; %bb.7:
	ldr	w8, [x19, #48]
	add	x9, x25, x26, lsl #6
	str	w8, [x9, #52]
LBB0_8:
	and	w24, w24, w23
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	mov	x0, x22
	bl	_HAS_LSPCON
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19, #40]
	cmp	x8, #0
	cset	w8, ne
	b	LBB0_11
LBB0_10:
	mov	w8, #0
LBB0_11:
	add	x9, x25, x26, lsl #6
	ldp	w9, w10, [x9, #52]
	stp	x10, x9, [sp, #48]
	mov	w8, w8
	stp	x27, x8, [sp, #32]
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	stp	x21, x8, [sp, #16]
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	stp	x24, x28, [sp]
	mov	x1, x23
	bl	_DRM_DEBUG_KMS
	cbz	w27, LBB0_14
; %bb.12:
	cbz	w28, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh31:
	adrp	x0, l_.str.5@PAGE
Lloh32:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_14:
Lloh33:
	adrp	x21, _PORT_E@GOTPAGE
Lloh34:
	ldr	x21, [x21, _PORT_E@GOTPAGEOFF]
	cbz	w24, LBB0_17
; %bb.15:
	ldr	w8, [x21]
	cmp	w20, w8
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh35:
	adrp	x0, l_.str.6@PAGE
Lloh36:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_17:
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	orr	w8, w28, w8
	cmp	w8, #0
	cset	w8, ne
	cbz	w24, LBB0_20
; %bb.18:
	cbz	w8, LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh37:
	adrp	x0, l_.str.7@PAGE
Lloh38:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_20:
	cbz	w28, LBB0_23
; %bb.21:
Lloh39:
	adrp	x8, _PORT_A@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PORT_A@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x23, l_.str.8@PAGE
Lloh43:
	add	x23, x23, l_.str.8@PAGEOFF
	cmp	w20, w8
	b.eq	LBB0_25
; %bb.22:
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_26
	b	LBB0_25
LBB0_23:
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	orr	w8, w8, w24
	cbnz	w8, LBB0_26
; %bb.24:
Lloh44:
	adrp	x23, l_.str.9@PAGE
Lloh45:
	add	x23, x23, l_.str.9@PAGEOFF
LBB0_25:
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x23
	bl	_DRM_DEBUG_KMS
LBB0_26:
	cbz	w27, LBB0_31
; %bb.27:
Lloh46:
	adrp	x8, _PORT_B@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PORT_B@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_30
; %bb.28:
Lloh49:
	adrp	x8, _PORT_C@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PORT_C@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_30
; %bb.29:
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_31
LBB0_30:
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh52:
	adrp	x0, l_.str.10@PAGE
Lloh53:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_31:
	cbz	w28, LBB0_34
; %bb.32:
	ldr	w1, [x19, #36]
	mov	x0, x22
	bl	_map_ddc_pin
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	bl	_intel_gmbus_is_valid_pin
	cbz	x0, LBB0_43
; %bb.33:
	add	x8, x25, x26, lsl #6
	str	w23, [x8, #16]
	mov	x0, x22
	mov	x1, x20
	bl	_sanitize_ddc_pin
LBB0_34:
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	cbz	w8, LBB0_36
LBB0_35:
	ldr	w8, [x19, #32]
	add	x9, x25, x26, lsl #6
	str	w8, [x9, #48]
	mov	x0, x22
	mov	x1, x20
	bl	_sanitize_aux_ch
LBB0_36:
	ldr	w23, [sp, #84]                  ; 4-byte Folded Reload
	cmp	w23, #158
	ldr	x22, [sp, #72]                  ; 8-byte Folded Reload
	b.lt	LBB0_56
; %bb.37:
	ldr	w21, [x19, #4]
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x21, [sp]
Lloh54:
	adrp	x0, l_.str.12@PAGE
Lloh55:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_DRM_DEBUG_KMS
	add	x8, x25, x26, lsl #6
	str	w21, [x8, #20]
	cmp	w23, #204
	b.lo	LBB0_42
; %bb.38:
	ldr	w0, [x19, #8]
	cmp	w0, #132
	b.eq	LBB0_47
; %bb.39:
	cmp	w0, #133
	b.eq	LBB0_44
; %bb.40:
	cmp	w0, #134
	b.ne	LBB0_46
; %bb.41:
	mov	w21, #33928
	movk	w21, #2, lsl #16
	b	LBB0_45
LBB0_42:
	cmp	w23, #196
	b.hs	LBB0_49
	b	LBB0_56
LBB0_43:
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x23, [sp]
Lloh56:
	adrp	x0, l_.str.11@PAGE
Lloh57:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	cbnz	w8, LBB0_35
	b	LBB0_36
LBB0_44:
	mov	w21, #34856
	movk	w21, #4, lsl #16
LBB0_45:
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x21, [sp]
Lloh58:
	adrp	x0, l_.str.13@PAGE
Lloh59:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_48
LBB0_46:
	bl	_MISSING_CASE
LBB0_47:
	mov	w21, #0
LBB0_48:
	add	x8, x25, x26, lsl #6
	str	w21, [x8, #24]
LBB0_49:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_51
; %bb.50:
	ldr	w0, [x19, #20]
	bl	_translate_iboost
	add	x21, x25, x26, lsl #6
	str	w0, [x21, #28]
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	ldr	w8, [x21, #28]
	str	x8, [sp]
Lloh60:
	adrp	x0, l_.str.14@PAGE
Lloh61:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w0, [x19, #16]
	bl	_translate_iboost
	str	w0, [x21, #32]
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	ldr	w8, [x21, #32]
	str	x8, [sp]
Lloh62:
	adrp	x0, l_.str.15@PAGE
Lloh63:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_51:
	cmp	w23, #216
	b.lo	LBB0_56
; %bb.52:
	ldr	w8, [x19, #12]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_54
; %bb.53:
Lloh64:
	adrp	x9, l_switch.table.parse_ddi_port@PAGE
Lloh65:
	add	x9, x9, l_switch.table.parse_ddi_port@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_55
LBB0_54:
	mov	w8, #23568
	movk	w8, #12, lsl #16
LBB0_55:
	add	x21, x25, x26, lsl #6
	str	w8, [x21, #36]
	mov	x0, x20
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	ldr	w8, [x21, #36]
	str	x8, [sp]
Lloh66:
	adrp	x0, l_.str.16@PAGE
Lloh67:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_56:
	str	x19, [x22]
LBB0_57:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_NONE,4,2                  ; @PORT_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"More than one child device for port %c in VBT, using the first.\n"

	.comm	_DEVICE_TYPE_TMDS_DVI_SIGNALING,4,2 ; @DEVICE_TYPE_TMDS_DVI_SIGNALING
	.comm	_DEVICE_TYPE_DISPLAYPORT_OUTPUT,4,2 ; @DEVICE_TYPE_DISPLAYPORT_OUTPUT
	.comm	_DEVICE_TYPE_ANALOG_OUTPUT,4,2  ; @DEVICE_TYPE_ANALOG_OUTPUT
	.comm	_DEVICE_TYPE_NOT_HDMI_OUTPUT,4,2 ; @DEVICE_TYPE_NOT_HDMI_OUTPUT
	.comm	_DEVICE_TYPE_INTERNAL_CONNECTOR,4,2 ; @DEVICE_TYPE_INTERNAL_CONNECTOR
	.comm	_PORT_A,4,2                     ; @PORT_A
l_.str.1:                               ; @.str.1
	.asciz	"VBT claims port A supports DVI%s, ignoring\n"

l_.str.2:                               ; @.str.2
	.asciz	"/HDMI"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"Port %c VBT info: CRT:%d DVI:%d HDMI:%d DP:%d eDP:%d LSPCON:%d USB-Type-C:%d TBT:%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Internal DP port %c is TMDS compatible\n"

	.comm	_PORT_E,4,2                     ; @PORT_E
l_.str.6:                               ; @.str.6
	.asciz	"Port %c is analog\n"

l_.str.7:                               ; @.str.7
	.asciz	"Analog port %c is also DP or TMDS compatible\n"

l_.str.8:                               ; @.str.8
	.asciz	"Port %c is TMDS compatible\n"

l_.str.9:                               ; @.str.9
	.asciz	"Port %c is not DP/TMDS/CRT compatible\n"

	.comm	_PORT_B,4,2                     ; @PORT_B
	.comm	_PORT_C,4,2                     ; @PORT_C
l_.str.10:                              ; @.str.10
	.asciz	"Port %c is internal DP\n"

l_.str.11:                              ; @.str.11
	.asciz	"Port %c has invalid DDC pin %d, sticking to defaults\n"

l_.str.12:                              ; @.str.12
	.asciz	"VBT HDMI level shift for port %c: %d\n"

l_.str.13:                              ; @.str.13
	.asciz	"VBT HDMI max TMDS clock for port %c: %d kHz\n"

l_.str.14:                              ; @.str.14
	.asciz	"VBT (e)DP boost level for port %c: %d\n"

l_.str.15:                              ; @.str.15
	.asciz	"VBT HDMI boost level for port %c: %d\n"

l_.str.16:                              ; @.str.16
	.asciz	"VBT DP max link rate for port %c: %d\n"

	.no_dead_strip	_parse_ddi_port
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.parse_ddi_port
l_switch.table.parse_ddi_port:
	.long	162000                          ; 0x278d0
	.long	810000                          ; 0xc5c10
	.long	540000                          ; 0x83d60
	.long	270000                          ; 0x41eb0

.subsections_via_symbols
