	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_port_to_ddc_pin
_icl_port_to_ddc_pin:                   ## @icl_port_to_ddc_pin
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_intel_port_to_phy
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_phy_is_combo
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GMBUS_PIN_1_BXT@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_intel_phy_is_tc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_GMBUS_PIN_9_TC1_ICP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_intel_port_to_tc
	movl	%eax, %ebx
	addl	%r15d, %ebx
	jmp	LBB0_5
LBB0_4:
	movl	%ebx, %edi
	callq	_port_name
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_WARN
	movq	_GMBUS_PIN_2_BXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GMBUS_PIN_1_BXT,4,2            ## @GMBUS_PIN_1_BXT
	.comm	_GMBUS_PIN_9_TC1_ICP,4,2        ## @GMBUS_PIN_9_TC1_ICP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown port:%c\n"

	.comm	_GMBUS_PIN_2_BXT,4,2            ## @GMBUS_PIN_2_BXT
	.no_dead_strip	_icl_port_to_ddc_pin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_port_to_ddc_pin
_icl_port_to_ddc_pin:                   ; @icl_port_to_ddc_pin
	.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	x19, x1
	mov	x20, x0
	bl	_intel_port_to_phy
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_intel_phy_is_combo
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GMBUS_PIN_1_BXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GMBUS_PIN_1_BXT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w0, w8, w19
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	bl	_intel_phy_is_tc
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _GMBUS_PIN_9_TC1_ICP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GMBUS_PIN_9_TC1_ICP@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_intel_port_to_tc
	add	w0, w0, w21
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_port_name
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
Lloh8:
	adrp	x8, _GMBUS_PIN_2_BXT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GMBUS_PIN_2_BXT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GMBUS_PIN_1_BXT,4,2            ; @GMBUS_PIN_1_BXT
	.comm	_GMBUS_PIN_9_TC1_ICP,4,2        ; @GMBUS_PIN_9_TC1_ICP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown port:%c\n"

	.comm	_GMBUS_PIN_2_BXT,4,2            ; @GMBUS_PIN_2_BXT
	.no_dead_strip	_icl_port_to_ddc_pin
.subsections_via_symbols
