	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_fini
_mlxsw_sp_fini:                         ## @mlxsw_sp_fini
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_mlxsw_core_driver_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mlxsw_sp_ports_remove
	movq	%rbx, %rdi
	callq	_mlxsw_sp_dpipe_fini
	leaq	20(%rbx), %rdi
	callq	_unregister_netdevice_notifier
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movl	16(%rbx), %edi
	callq	*8(%rax)
	movq	(%rbx), %rdi
	movq	8(%rbx), %rax
	callq	*(%rax)
LBB0_2:
	movq	%rbx, %rdi
	callq	_mlxsw_sp_router_fini
	movq	%rbx, %rdi
	callq	_mlxsw_sp_acl_fini
	movq	%rbx, %rdi
	callq	_mlxsw_sp_nve_fini
	movq	%rbx, %rdi
	callq	_mlxsw_sp_afa_fini
	movq	%rbx, %rdi
	callq	_mlxsw_sp_counter_pool_fini
	movq	%rbx, %rdi
	callq	_mlxsw_sp_switchdev_fini
	movq	%rbx, %rdi
	callq	_mlxsw_sp_span_fini
	movq	%rbx, %rdi
	callq	_mlxsw_sp_lag_fini
	movq	%rbx, %rdi
	callq	_mlxsw_sp_buffers_fini
	movq	%rbx, %rdi
	callq	_mlxsw_sp_devlink_traps_fini
	movq	%rbx, %rdi
	callq	_mlxsw_sp_traps_fini
	movq	%rbx, %rdi
	callq	_mlxsw_sp_fids_fini
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mlxsw_sp_kvdl_fini             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlxsw_sp_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_fini
_mlxsw_sp_fini:                         ; @mlxsw_sp_fini
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_mlxsw_core_driver_priv
	mov	x19, x0
	bl	_mlxsw_sp_ports_remove
	mov	x0, x19
	bl	_mlxsw_sp_dpipe_fini
	add	x0, x19, #20
	bl	_unregister_netdevice_notifier
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #16]
	blr	x8
	ldp	x0, x8, [x19]
	ldr	x8, [x8]
	blr	x8
LBB0_2:
	mov	x0, x19
	bl	_mlxsw_sp_router_fini
	mov	x0, x19
	bl	_mlxsw_sp_acl_fini
	mov	x0, x19
	bl	_mlxsw_sp_nve_fini
	mov	x0, x19
	bl	_mlxsw_sp_afa_fini
	mov	x0, x19
	bl	_mlxsw_sp_counter_pool_fini
	mov	x0, x19
	bl	_mlxsw_sp_switchdev_fini
	mov	x0, x19
	bl	_mlxsw_sp_span_fini
	mov	x0, x19
	bl	_mlxsw_sp_lag_fini
	mov	x0, x19
	bl	_mlxsw_sp_buffers_fini
	mov	x0, x19
	bl	_mlxsw_sp_devlink_traps_fini
	mov	x0, x19
	bl	_mlxsw_sp_traps_fini
	mov	x0, x19
	bl	_mlxsw_sp_fids_fini
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mlxsw_sp_kvdl_fini
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlxsw_sp_fini
.subsections_via_symbols
