	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_tc_port_get_target_mode
_intel_tc_port_get_target_mode:         ## @intel_tc_port_get_target_mode
	.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	%rdi, %rbx
	callq	_tc_port_live_status_mask
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_fls
	decl	%eax
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	callq	_icl_tc_phy_status_complete
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	_TC_PORT_LEGACY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_TC_PORT_TBT_ALT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TC_PORT_LEGACY,4,2             ## @TC_PORT_LEGACY
	.comm	_TC_PORT_TBT_ALT,4,2            ## @TC_PORT_TBT_ALT
	.no_dead_strip	_intel_tc_port_get_target_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_tc_port_get_target_mode
_intel_tc_port_get_target_mode:         ; @intel_tc_port_get_target_mode
	.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	x19, x0
	bl	_tc_port_live_status_mask
	cbz	x0, LBB0_2
; %bb.1:
	bl	_fls
	sub	w0, w0, #1
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_icl_tc_phy_status_complete
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _TC_PORT_LEGACY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TC_PORT_LEGACY@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _TC_PORT_TBT_ALT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TC_PORT_TBT_ALT@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_TC_PORT_LEGACY,4,2             ; @TC_PORT_LEGACY
	.comm	_TC_PORT_TBT_ALT,4,2            ; @TC_PORT_TBT_ALT
	.no_dead_strip	_intel_tc_port_get_target_mode
.subsections_via_symbols
