	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_vr_destroy
_mlxsw_sp_vr_destroy:                   ## @mlxsw_sp_vr_destroy
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rsi), %rax
	movq	_MLXSW_SP_L3_PROTO_IPV6@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_mlxsw_sp_mr_table_destroy
	movq	16(%rbx), %rax
	movq	(%r15), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	16(%rbx), %rax
	movq	_MLXSW_SP_L3_PROTO_IPV4@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_mlxsw_sp_mr_table_destroy
	movq	16(%rbx), %rax
	movq	(%r15), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_mlxsw_sp_fib_destroy
	movq	$0, 8(%rbx)
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_mlxsw_sp_fib_destroy
	movq	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_L3_PROTO_IPV6,8,3     ## @MLXSW_SP_L3_PROTO_IPV6
	.comm	_MLXSW_SP_L3_PROTO_IPV4,8,3     ## @MLXSW_SP_L3_PROTO_IPV4
	.no_dead_strip	_mlxsw_sp_vr_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_vr_destroy
_mlxsw_sp_vr_destroy:                   ; @mlxsw_sp_vr_destroy
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #16]
Lloh0:
	adrp	x21, _MLXSW_SP_L3_PROTO_IPV6@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MLXSW_SP_L3_PROTO_IPV6@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	bl	_mlxsw_sp_mr_table_destroy
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	str	xzr, [x8, x9, lsl #3]
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x21, _MLXSW_SP_L3_PROTO_IPV4@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MLXSW_SP_L3_PROTO_IPV4@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	bl	_mlxsw_sp_mr_table_destroy
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	str	xzr, [x8, x9, lsl #3]
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_mlxsw_sp_fib_destroy
	str	xzr, [x19, #8]
	ldr	x1, [x19]
	mov	x0, x20
	bl	_mlxsw_sp_fib_destroy
	str	xzr, [x19]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_L3_PROTO_IPV6,8,3     ; @MLXSW_SP_L3_PROTO_IPV6
	.comm	_MLXSW_SP_L3_PROTO_IPV4,8,3     ; @MLXSW_SP_L3_PROTO_IPV4
	.no_dead_strip	_mlxsw_sp_vr_destroy
.subsections_via_symbols
