	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_eth_calc_port_type
_nfp_eth_calc_port_type:                ## @nfp_eth_calc_port_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movq	_NFP_INTERFACE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_PORT_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_NFP_INTERFACE_RJ45@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	8(%rsi), %rax
	movq	_NFP_MEDIA_FIBRE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_PORT_DA@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 16(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_INTERFACE_NONE,8,3         ## @NFP_INTERFACE_NONE
	.comm	_PORT_NONE,4,2                  ## @PORT_NONE
	.comm	_NFP_INTERFACE_RJ45,8,3         ## @NFP_INTERFACE_RJ45
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_NFP_MEDIA_FIBRE,8,3            ## @NFP_MEDIA_FIBRE
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_PORT_DA,4,2                    ## @PORT_DA
	.no_dead_strip	_nfp_eth_calc_port_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_eth_calc_port_type
_nfp_eth_calc_port_type:                ; @nfp_eth_calc_port_type
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _NFP_INTERFACE_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_INTERFACE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PORT_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORT_NONE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x9, _NFP_INTERFACE_RJ45@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NFP_INTERFACE_RJ45@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x1, #8]
Lloh10:
	adrp	x9, _NFP_MEDIA_FIBRE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NFP_MEDIA_FIBRE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _PORT_DA@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PORT_DA@GOTPAGEOFF]
Lloh15:
	adrp	x11, _PORT_FIBRE@GOTPAGE
Lloh16:
	ldr	x11, [x11, _PORT_FIBRE@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x1, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_INTERFACE_NONE,8,3         ; @NFP_INTERFACE_NONE
	.comm	_PORT_NONE,4,2                  ; @PORT_NONE
	.comm	_NFP_INTERFACE_RJ45,8,3         ; @NFP_INTERFACE_RJ45
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_NFP_MEDIA_FIBRE,8,3            ; @NFP_MEDIA_FIBRE
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_PORT_DA,4,2                    ; @PORT_DA
	.no_dead_strip	_nfp_eth_calc_port_type
.subsections_via_symbols
