	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_eth_port_update
_nfp_net_eth_port_update:               ## @nfp_net_eth_port_update
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movl	8(%r12), %esi
	movq	%rbx, %rdi
	callq	_nfp_net_find_port
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movl	8(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_nfp_warn
	movq	_NFP_PORT_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
LBB0_4:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_memcpy
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_NFP_PORT_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r12), %rsi
	callq	_set_bit
	movl	8(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_nfp_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_PORT_CHANGED,4,2           ## @NFP_PORT_CHANGED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: port #%d not present after reconfig\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"Port #%d config changed, unregistering. Driver reload required before port will be operational again.\n"

	.comm	_NFP_PORT_INVALID,4,2           ## @NFP_PORT_INVALID
	.no_dead_strip	_nfp_net_eth_port_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_eth_port_update
_nfp_net_eth_port_update:               ; @nfp_net_eth_port_update
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_ASSERT_RTNL
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_nfp_net_find_port
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w2, [x19, #8]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_nfp_warn
Lloh2:
	adrp	x8, _NFP_PORT_INVALID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NFP_PORT_INVALID@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_3:
	ldr	w0, [x19]
	mov	x1, x21
	mov	w2, #8
	bl	_memcpy
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _NFP_PORT_CHANGED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NFP_PORT_CHANGED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_set_bit
	ldr	w2, [x19, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_nfp_warn
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_PORT_CHANGED,4,2           ; @NFP_PORT_CHANGED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: port #%d not present after reconfig\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"Port #%d config changed, unregistering. Driver reload required before port will be operational again.\n"

	.comm	_NFP_PORT_INVALID,4,2           ; @NFP_PORT_INVALID
	.no_dead_strip	_nfp_net_eth_port_update
.subsections_via_symbols
