	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_devlink_port_split
_nfp_devlink_port_split:                ## @nfp_devlink_port_split
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	callq	_devlink_priv
	cmpl	$1, %r15d
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	xorl	%eax, %eax
	callq	_rtnl_lock
	leaq	-48(%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_7
## %bb.3:
	cmpq	$0, -32(%rbp)
	jne	LBB0_5
## %bb.4:
	movl	-48(%rbp), %eax
	xorl	%edx, %edx
	divl	%r15d
	testl	%edx, %edx
	je	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	-44(%rbp), %ecx
	movl	-40(%rbp), %esi
	xorl	$10, %ecx
	xorl	$2, %r15d
	orl	%ecx, %r15d
	movl	$4, %ecx
	cmovel	%ecx, %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_nfp_devlink_set_lanes
	movl	%eax, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nfp_devlink_port_split
.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_split
_nfp_devlink_port_split:                ; @nfp_devlink_port_split
	.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	x20, x2
	mov	x21, x1
	bl	_devlink_priv
	cmp	w20, #1
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	bl	_mutex_lock
	bl	_rtnl_lock
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_nfp_devlink_fill_eth_port_from_id
	mov	x21, x0
	bl	_rtnl_unlock
	cbnz	w21, LBB0_6
; %bb.3:
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	w9, [sp, #8]
	udiv	w8, w9, w20
	msub	w9, w8, w20, w9
	cbz	w9, LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	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
LBB0_8:
	ldp	w9, w1, [sp, #12]
	cmp	w9, #10
	ccmp	w20, #2, #0, eq
	mov	w9, #4
	csel	w2, w9, w8, eq
	mov	x0, x19
	bl	_nfp_devlink_set_lanes
	mov	x21, x0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nfp_devlink_port_split
.subsections_via_symbols
