	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_port_init_phy_port         ## -- Begin function nfp_port_init_phy_port
	.p2align	4, 0x90
_nfp_port_init_phy_port:                ## @nfp_port_init_phy_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpl	%ecx, (%rax)
	jbe	LBB0_2
## %bb.3:
	movq	%rdx, %rbx
	movq	8(%rax), %rax
	movl	%ecx, %ecx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdx
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_5
## %bb.4:
	movl	(%rsi), %edi
	movl	(%rdx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_nfp_warn
	movq	_NFP_PORT_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	movl	(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ecx, %edx
	callq	_nfp_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	%rdx, 16(%rbx)
	movslq	(%rax,%rcx), %rcx
	movl	%ecx, (%rbx)
	movq	(%rdi), %rdx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	_NFP_MAC_STATS_SIZE@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	movq	%rdx, 8(%rbx)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NSP port entries don't match vNICs (no entry %d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Config changed for port #%d, reboot required before port will be operational\n"

	.comm	_NFP_PORT_INVALID,4,2           ## @NFP_PORT_INVALID
	.comm	_NFP_MAC_STATS_SIZE,4,2         ## @NFP_MAC_STATS_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_port_init_phy_port         ; -- Begin function nfp_port_init_phy_port
	.p2align	2
_nfp_port_init_phy_port:                ; @nfp_port_init_phy_port
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w9, [x8]
	cmp	w9, w3
	b.ls	LBB0_4
; %bb.2:
	mov	x19, x2
	ldr	x8, [x8, #8]
	add	x9, x8, w3, uxtw #4
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_6
; %bb.3:
	ldr	w0, [x1]
	ldr	w2, [x9]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nfp_warn
	mov	w0, #0
Lloh2:
	adrp	x8, _NFP_PORT_INVALID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NFP_PORT_INVALID@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x1]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x3
	bl	_nfp_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w10, w3
	str	x9, [x19, #16]
	lsl	x9, x10, #4
	ldrsw	x8, [x8, x9]
	str	w8, [x19]
	ldr	x9, [x0]
	cbz	x9, LBB0_8
; %bb.7:
	mov	w0, #0
Lloh10:
	adrp	x10, _NFP_MAC_STATS_SIZE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _NFP_MAC_STATS_SIZE@GOTPAGEOFF]
Lloh12:
	ldrsw	x10, [x10]
	madd	x8, x10, x8, x9
	str	x8, [x19, #8]
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NSP port entries don't match vNICs (no entry %d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Config changed for port #%d, reboot required before port will be operational\n"

	.comm	_NFP_PORT_INVALID,4,2           ; @NFP_PORT_INVALID
	.comm	_NFP_MAC_STATS_SIZE,4,2         ; @NFP_MAC_STATS_SIZE
.subsections_via_symbols
