	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_devlink_port_register      ## -- Begin function nfp_devlink_port_register
	.p2align	4, 0x90
_nfp_devlink_port_register:             ## @nfp_devlink_port_register
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_rtnl_lock
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_nfp_devlink_fill_eth_port
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_nfp_cpp_serial
	leaq	4(%r15), %rbx
	movq	_DEVLINK_PORT_FLAVOUR_PHYSICAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	-32(%rbp), %edx
	movl	-40(%rbp), %r8d
	movl	-36(%rbp), %ecx
	movq	-48(%rbp), %r9
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	callq	_devlink_port_attrs_set
	movl	(%r14), %edi
	callq	_priv_to_devlink
	movl	(%r15), %edx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_devlink_port_register
	movl	%eax, %ebx
LBB0_2:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVLINK_PORT_FLAVOUR_PHYSICAL,4,2 ## @DEVLINK_PORT_FLAVOUR_PHYSICAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_devlink_port_register      ; -- Begin function nfp_devlink_port_register
	.p2align	2
_nfp_devlink_port_register:             ; @nfp_devlink_port_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	bl	_rtnl_lock
	add	x1, sp, #16
	mov	x0, x19
	bl	_nfp_devlink_fill_eth_port
	mov	x21, x0
	bl	_rtnl_unlock
	cbnz	w21, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_nfp_cpp_serial
	mov	x6, x0
Lloh0:
	adrp	x8, _DEVLINK_PORT_FLAVOUR_PHYSICAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEVLINK_PORT_FLAVOUR_PHYSICAL@GOTPAGEOFF]
	add	x21, x19, #4
Lloh2:
	ldr	w1, [x8]
	ldp	w3, w2, [sp, #20]
	ldr	w4, [sp, #16]
	ldr	x5, [sp, #8]
	mov	x0, x21
	bl	_devlink_port_attrs_set
	ldr	w0, [x20]
	bl	_priv_to_devlink
	ldr	w2, [x19]
	mov	x1, x21
	bl	_devlink_port_register
	mov	x21, x0
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVLINK_PORT_FLAVOUR_PHYSICAL,4,2 ; @DEVLINK_PORT_FLAVOUR_PHYSICAL
.subsections_via_symbols
