	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function from_fw_port_mod_type
_from_fw_port_mod_type:                 ## @from_fw_port_mod_type
	.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
	.cfi_offset %rbx, -24
	movq	_FW_PORT_TYPE_BT_SGMII@GOTPCREL(%rip), %rcx
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rcx)
	je	LBB0_17
## %bb.1:
	movq	_FW_PORT_TYPE_BT_XFI@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	je	LBB0_17
## %bb.2:
	movq	_FW_PORT_TYPE_BT_XAUI@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	je	LBB0_17
## %bb.3:
	movq	_FW_PORT_TYPE_FIBER_XFI@GOTPCREL(%rip), %rcx
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rcx)
	je	LBB0_17
## %bb.4:
	movq	_FW_PORT_TYPE_FIBER_XAUI@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	je	LBB0_17
## %bb.5:
	movq	_FW_PORT_TYPE_SFP@GOTPCREL(%rip), %rcx
	movq	_FW_PORT_TYPE_QSFP_10G@GOTPCREL(%rip), %rdx
	movq	_FW_PORT_TYPE_QSA@GOTPCREL(%rip), %r8
	movq	_FW_PORT_TYPE_QSFP@GOTPCREL(%rip), %r9
	movq	_FW_PORT_TYPE_CR4_QSFP@GOTPCREL(%rip), %r10
	movq	_FW_PORT_TYPE_CR_QSFP@GOTPCREL(%rip), %r11
	movq	_FW_PORT_TYPE_CR2_QSFP@GOTPCREL(%rip), %rbx
	movd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rdx), %xmm0
	pinsrd	$2, (%r8), %xmm0
	pinsrd	$3, (%r9), %xmm0
	movq	_FW_PORT_TYPE_SFP28@GOTPCREL(%rip), %rcx
	movd	(%r10), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, (%r11), %xmm1
	pinsrd	$2, (%rbx), %xmm1
	pinsrd	$3, (%rcx), %xmm1
	movd	%edi, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	pcmpeqd	%xmm2, %xmm1
	pcmpeqd	%xmm2, %xmm0
	packssdw	%xmm1, %xmm0
	psllw	$15, %xmm0
	pmovmskb	%xmm0, %ecx
	testl	$43690, %ecx                    ## imm = 0xAAAA
	je	LBB0_13
## %bb.6:
	movq	_FW_PORT_MOD_TYPE_LR@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_17
## %bb.7:
	movq	_FW_PORT_MOD_TYPE_SR@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_17
## %bb.8:
	movq	_FW_PORT_MOD_TYPE_ER@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_17
## %bb.9:
	movq	_FW_PORT_MOD_TYPE_LRM@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_17
## %bb.10:
	movq	_FW_PORT_MOD_TYPE_TWINAX_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FW_PORT_MOD_TYPE_TWINAX_ACTIVE@GOTPCREL(%rip), %rdi
	movq	_PORT_DA@GOTPCREL(%rip), %rdx
	movq	%rdx, %rax
	cmpl	%esi, (%rdi)
	je	LBB0_12
## %bb.11:
	movq	_PORT_OTHER@GOTPCREL(%rip), %rax
LBB0_12:
	cmpl	%esi, %ecx
	jmp	LBB0_16
LBB0_13:
	movq	_FW_PORT_TYPE_KR4_100G@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FW_PORT_TYPE_KR_SFP28@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FW_PORT_TYPE_KR_XLAUI@GOTPCREL(%rip), %rbx
	movq	_PORT_NONE@GOTPCREL(%rip), %rdx
	movq	%rdx, %rax
	cmpl	%edi, (%rbx)
	je	LBB0_15
## %bb.14:
	movq	_PORT_OTHER@GOTPCREL(%rip), %rax
LBB0_15:
	cmpl	%edi, %esi
	cmoveq	%rdx, %rax
	cmpl	%edi, %ecx
LBB0_16:
	cmoveq	%rdx, %rax
LBB0_17:
	movl	(%rax), %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_PORT_TYPE_BT_SGMII,4,2      ## @FW_PORT_TYPE_BT_SGMII
	.comm	_FW_PORT_TYPE_BT_XFI,4,2        ## @FW_PORT_TYPE_BT_XFI
	.comm	_FW_PORT_TYPE_BT_XAUI,4,2       ## @FW_PORT_TYPE_BT_XAUI
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_FW_PORT_TYPE_FIBER_XFI,4,2     ## @FW_PORT_TYPE_FIBER_XFI
	.comm	_FW_PORT_TYPE_FIBER_XAUI,4,2    ## @FW_PORT_TYPE_FIBER_XAUI
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_FW_PORT_TYPE_SFP,4,2           ## @FW_PORT_TYPE_SFP
	.comm	_FW_PORT_TYPE_QSFP_10G,4,2      ## @FW_PORT_TYPE_QSFP_10G
	.comm	_FW_PORT_TYPE_QSA,4,2           ## @FW_PORT_TYPE_QSA
	.comm	_FW_PORT_TYPE_QSFP,4,2          ## @FW_PORT_TYPE_QSFP
	.comm	_FW_PORT_TYPE_CR4_QSFP,4,2      ## @FW_PORT_TYPE_CR4_QSFP
	.comm	_FW_PORT_TYPE_CR_QSFP,4,2       ## @FW_PORT_TYPE_CR_QSFP
	.comm	_FW_PORT_TYPE_CR2_QSFP,4,2      ## @FW_PORT_TYPE_CR2_QSFP
	.comm	_FW_PORT_TYPE_SFP28,4,2         ## @FW_PORT_TYPE_SFP28
	.comm	_FW_PORT_MOD_TYPE_LR,4,2        ## @FW_PORT_MOD_TYPE_LR
	.comm	_FW_PORT_MOD_TYPE_SR,4,2        ## @FW_PORT_MOD_TYPE_SR
	.comm	_FW_PORT_MOD_TYPE_ER,4,2        ## @FW_PORT_MOD_TYPE_ER
	.comm	_FW_PORT_MOD_TYPE_LRM,4,2       ## @FW_PORT_MOD_TYPE_LRM
	.comm	_FW_PORT_MOD_TYPE_TWINAX_PASSIVE,4,2 ## @FW_PORT_MOD_TYPE_TWINAX_PASSIVE
	.comm	_FW_PORT_MOD_TYPE_TWINAX_ACTIVE,4,2 ## @FW_PORT_MOD_TYPE_TWINAX_ACTIVE
	.comm	_PORT_DA,4,2                    ## @PORT_DA
	.comm	_PORT_OTHER,4,2                 ## @PORT_OTHER
	.comm	_FW_PORT_TYPE_KR4_100G,4,2      ## @FW_PORT_TYPE_KR4_100G
	.comm	_FW_PORT_TYPE_KR_SFP28,4,2      ## @FW_PORT_TYPE_KR_SFP28
	.comm	_FW_PORT_TYPE_KR_XLAUI,4,2      ## @FW_PORT_TYPE_KR_XLAUI
	.comm	_PORT_NONE,4,2                  ## @PORT_NONE
	.no_dead_strip	_from_fw_port_mod_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function from_fw_port_mod_type
_from_fw_port_mod_type:                 ; @from_fw_port_mod_type
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _FW_PORT_TYPE_BT_SGMII@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_PORT_TYPE_BT_SGMII@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FW_PORT_TYPE_BT_XFI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FW_PORT_TYPE_BT_XFI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _FW_PORT_TYPE_BT_XAUI@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FW_PORT_TYPE_BT_XAUI@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	ccmp	w10, w0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
LBB0_2:
Lloh12:
	adrp	x8, _FW_PORT_TYPE_FIBER_XFI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FW_PORT_TYPE_FIBER_XFI@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _FW_PORT_TYPE_FIBER_XAUI@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FW_PORT_TYPE_FIBER_XAUI@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _PORT_FIBRE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PORT_FIBRE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ret
LBB0_4:
Lloh21:
	adrp	x8, _FW_PORT_TYPE_SFP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FW_PORT_TYPE_SFP@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w0
	b.eq	LBB0_13
; %bb.5:
Lloh24:
	adrp	x8, _FW_PORT_TYPE_QSFP_10G@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FW_PORT_TYPE_QSFP_10G@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, w0
	b.eq	LBB0_13
; %bb.6:
Lloh27:
	adrp	x8, _FW_PORT_TYPE_QSA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FW_PORT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ldr	w9, [x9]
Lloh51:
	adrp	x10, _FW_PORT_TYPE_KR_XLAUI@GOTPAGE
Lloh52:
	ldr	x10, [x10, _FW_PORT_TYPE_KR_XLAUI@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	cmp	w10, w0
	ccmp	w9, w0, #4, ne
	ccmp	w8, w0, #4, ne
Lloh54:
	adrp	x8, _PORT_OTHER@GOTPAGE
Lloh55:
	ldr	x8, [x8, _PORT_OTHER@GOTPAGEOFF]
Lloh56:
	adrp	x9, _PORT_NONE@GOTPAGE
Lloh57:
	ldr	x9, [x9, _PORT_NONE@GOTPAGEOFF]
	b	LBB0_18
LBB0_13:
Lloh58:
	adrp	x8, _FW_PORT_MOD_TYPE_LR@GOTPAGE
Lloh59:
	ldr	x8, [x8, _FW_PORT_MOD_TYPE_LR@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x8]
Lloh61:
	adrp	x8, _PORT_FIBRE@GOTPAGE
Lloh62:
	ldr	x8, [x8, _PORT_FIBRE@GOTPAGEOFF]
	cmp	w9, w1
	b.eq	LBB0_19
; %bb.14:
Lloh63:
	adrp	x9, _FW_PORT_MOD_TYPE_SR@GOTPAGE
Lloh64:
	ldr	x9, [x9, _FW_PORT_MOD_TYPE_SR@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	cmp	w9, w1
	b.eq	LBB0_19
; %bb.15:
Lloh66:
	adrp	x9, _FW_PORT_MOD_TYPE_ER@GOTPAGE
Lloh67:
	ldr	x9, [x9, _FW_PORT_MOD_TYPE_ER@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	cmp	w9, w1
	b.eq	LBB0_19
; %bb.16:
Lloh69:
	adrp	x9, _FW_PORT_MOD_TYPE_LRM@GOTPAGE
Lloh70:
	ldr	x9, [x9, _FW_PORT_MOD_TYPE_LRM@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	cmp	w9, w1
	b.eq	LBB0_19
; %bb.17:
Lloh72:
	adrp	x8, _FW_PORT_MOD_TYPE_TWINAX_PASSIVE@GOTPAGE
Lloh73:
	ldr	x8, [x8, _FW_PORT_MOD_TYPE_TWINAX_PASSIVE@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
Lloh75:
	adrp	x9, _FW_PORT_MOD_TYPE_TWINAX_ACTIVE@GOTPAGE
Lloh76:
	ldr	x9, [x9, _FW_PORT_MOD_TYPE_TWINAX_ACTIVE@GOTPAGEOFF]
Lloh77:
	ldr	w9, [x9]
	cmp	w9, w1
	ccmp	w8, w1, #4, ne
Lloh78:
	adrp	x8, _PORT_OTHER@GOTPAGE
Lloh79:
	ldr	x8, [x8, _PORT_OTHER@GOTPAGEOFF]
Lloh80:
	adrp	x9, _PORT_DA@GOTPAGE
Lloh81:
	ldr	x9, [x9, _PORT_DA@GOTPAGEOFF]
LBB0_18:
	csel	x8, x9, x8, eq
LBB0_19:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_PORT_TYPE_BT_SGMII,4,2      ; @FW_PORT_TYPE_BT_SGMII
	.comm	_FW_PORT_TYPE_BT_XFI,4,2        ; @FW_PORT_TYPE_BT_XFI
	.comm	_FW_PORT_TYPE_BT_XAUI,4,2       ; @FW_PORT_TYPE_BT_XAUI
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_FW_PORT_TYPE_FIBER_XFI,4,2     ; @FW_PORT_TYPE_FIBER_XFI
	.comm	_FW_PORT_TYPE_FIBER_XAUI,4,2    ; @FW_PORT_TYPE_FIBER_XAUI
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_FW_PORT_TYPE_SFP,4,2           ; @FW_PORT_TYPE_SFP
	.comm	_FW_PORT_TYPE_QSFP_10G,4,2      ; @FW_PORT_TYPE_QSFP_10G
	.comm	_FW_PORT_TYPE_QSA,4,2           ; @FW_PORT_TYPE_QSA
	.comm	_FW_PORT_TYPE_QSFP,4,2          ; @FW_PORT_TYPE_QSFP
	.comm	_FW_PORT_TYPE_CR4_QSFP,4,2      ; @FW_PORT_TYPE_CR4_QSFP
	.comm	_FW_PORT_TYPE_CR_QSFP,4,2       ; @FW_PORT_TYPE_CR_QSFP
	.comm	_FW_PORT_TYPE_CR2_QSFP,4,2      ; @FW_PORT_TYPE_CR2_QSFP
	.comm	_FW_PORT_TYPE_SFP28,4,2         ; @FW_PORT_TYPE_SFP28
	.comm	_FW_PORT_MOD_TYPE_LR,4,2        ; @FW_PORT_MOD_TYPE_LR
	.comm	_FW_PORT_MOD_TYPE_SR,4,2        ; @FW_PORT_MOD_TYPE_SR
	.comm	_FW_PORT_MOD_TYPE_ER,4,2        ; @FW_PORT_MOD_TYPE_ER
	.comm	_FW_PORT_MOD_TYPE_LRM,4,2       ; @FW_PORT_MOD_TYPE_LRM
	.comm	_FW_PORT_MOD_TYPE_TWINAX_PASSIVE,4,2 ; @FW_PORT_MOD_TYPE_TWINAX_PASSIVE
	.comm	_FW_PORT_MOD_TYPE_TWINAX_ACTIVE,4,2 ; @FW_PORT_MOD_TYPE_TWINAX_ACTIVE
	.comm	_PORT_DA,4,2                    ; @PORT_DA
	.comm	_PORT_OTHER,4,2                 ; @PORT_OTHER
	.comm	_FW_PORT_TYPE_KR4_100G,4,2      ; @FW_PORT_TYPE_KR4_100G
	.comm	_FW_PORT_TYPE_KR_SFP28,4,2      ; @FW_PORT_TYPE_KR_SFP28
	.comm	_FW_PORT_TYPE_KR_XLAUI,4,2      ; @FW_PORT_TYPE_KR_XLAUI
	.comm	_PORT_NONE,4,2                  ; @PORT_NONE
	.no_dead_strip	_from_fw_port_mod_type
.subsections_via_symbols
