	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_fib_lpm_tree_unlink
_mlxsw_sp_fib_lpm_tree_unlink:          ## @mlxsw_sp_fib_lpm_tree_unlink
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rsi), %r12
	movq	8(%r12), %rsi
	movq	(%rsi), %rax
	movq	(%rbx), %rcx
	decq	(%rax,%rcx,8)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	addq	$8, %rsi
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	_mlxsw_sp_prefix_usage_cpy
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_mlxsw_sp_prefix_usage_clear
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mlxsw_sp_lpm_tree_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_mlxsw_sp_vrs_lpm_tree_replace
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mlxsw_sp_lpm_tree_put
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlxsw_sp_fib_lpm_tree_unlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_fib_lpm_tree_unlink
_mlxsw_sp_fib_lpm_tree_unlink:          ; @mlxsw_sp_fib_lpm_tree_unlink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldp	x9, x20, [x1]
	ldr	x8, [x20, #8]
	ldr	x10, [x8]
	lsl	x9, x9, #3
	ldr	x11, [x10, x9]
	subs	x11, x11, #1
	str	x11, [x10, x9]
	b.ne	LBB0_4
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	add	x1, x8, #8
	add	x0, sp, #8
	bl	_mlxsw_sp_prefix_usage_cpy
	ldr	x1, [x21]
	add	x0, sp, #8
	bl	_mlxsw_sp_prefix_usage_clear
	ldr	w2, [x20]
	add	x1, sp, #8
	mov	x0, x19
	bl	_mlxsw_sp_lpm_tree_get
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mlxsw_sp_vrs_lpm_tree_replace
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_mlxsw_sp_lpm_tree_put
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlxsw_sp_fib_lpm_tree_unlink
.subsections_via_symbols
