	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_devlink_port_unsplit
_nfp_devlink_port_unsplit:              ## @nfp_devlink_port_unsplit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_devlink_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	xorl	%eax, %eax
	callq	_rtnl_lock
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_nfp_devlink_fill_eth_port_from_id
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.1:
	cmpl	$0, -24(%rbp)
	je	LBB0_2
## %bb.3:
	movl	-32(%rbp), %eax
	movl	-28(%rbp), %esi
	cmpl	$8, %eax
	movl	$10, %edx
	cmovnel	%eax, %edx
	movq	%r14, %rdi
	callq	_nfp_devlink_set_lanes
	movl	%eax, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nfp_devlink_port_unsplit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_devlink_port_unsplit
_nfp_devlink_port_unsplit:              ; @nfp_devlink_port_unsplit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	bl	_devlink_priv
	mov	x19, x0
	bl	_mutex_lock
	bl	_rtnl_lock
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_nfp_devlink_fill_eth_port_from_id
	mov	x20, x0
	bl	_rtnl_unlock
	cbnz	w20, LBB0_4
; %bb.1:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_3
; %bb.2:
	mov	w8, #10
	ldp	w9, w1, [sp]
	cmp	w9, #8
	csel	w2, w8, w9, eq
	mov	x0, x19
	bl	_nfp_devlink_set_lanes
	mov	x20, x0
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nfp_devlink_port_unsplit
.subsections_via_symbols
