	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_nve_mc_record_ip_add
_mlxsw_sp_nve_mc_record_ip_add:         ## @mlxsw_sp_nve_mc_record_ip_add
	.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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_mlxsw_sp_nve_mc_free_entry_find
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	8(%r15), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	incl	(%r15)
	movl	$1, (%r14)
	movq	%r15, %rdi
	callq	_mlxsw_sp_nve_mc_record_refresh
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_4
LBB0_7:
	movl	$0, (%r14)
	decl	(%r15)
	movq	8(%r15), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*8(%rax)
	movl	%r12d, %ebx
	jmp	LBB0_8
LBB0_4:
	xorl	%ebx, %ebx
	cmpl	$1, (%r15)
	jne	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	callq	_mlxsw_sp_nve_mc_record_is_first
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	_list@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_list_prev_entry
	movq	%rax, %rdi
	callq	_mlxsw_sp_nve_mc_record_refresh
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_7
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_list,4,2                       ## @list
	.no_dead_strip	_mlxsw_sp_nve_mc_record_ip_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_nve_mc_record_ip_add
_mlxsw_sp_nve_mc_record_ip_add:         ; @mlxsw_sp_nve_mc_record_ip_add
	.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, x1
	mov	x19, x0
	bl	_mlxsw_sp_nve_mc_free_entry_find
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x19
	bl	_mlxsw_sp_nve_mc_record_refresh
	mov	x21, x0
	cbz	w0, LBB0_5
LBB0_4:
	str	wzr, [x20]
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	b	LBB0_8
LBB0_5:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_mlxsw_sp_nve_mc_record_is_first
	cbz	x0, LBB0_9
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	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
LBB0_9:
Lloh3:
	adrp	x8, _list@GOTPAGE
Lloh4:
	ldr	x8, [x8, _list@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_list_prev_entry
	bl	_mlxsw_sp_nve_mc_record_refresh
	mov	x21, x0
	cbnz	w0, LBB0_4
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_list,4,2                       ; @list
	.no_dead_strip	_mlxsw_sp_nve_mc_record_ip_add
.subsections_via_symbols
