	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp1_ptp_fini             ## -- Begin function mlxsw_sp1_ptp_fini
	.p2align	4, 0x90
_mlxsw_sp1_ptp_fini:                    ## @mlxsw_sp1_ptp_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	addq	$4, %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mlxsw_sp1_ptp_mtpppc_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mlxsw_sp1_ptp_set_fifo_clr_on_trap
	movq	_MLXSW_REG_MTPTPT_TRAP_ID_PTP1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mlxsw_sp_ptp_mtptpt_set
	movq	_MLXSW_REG_MTPTPT_TRAP_ID_PTP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mlxsw_sp_ptp_mtptpt_set
	movq	_mlxsw_sp1_ptp_unmatched_free_fn@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rhltable_free_and_destroy
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_MTPTPT_TRAP_ID_PTP1,4,2 ## @MLXSW_REG_MTPTPT_TRAP_ID_PTP1
	.comm	_MLXSW_REG_MTPTPT_TRAP_ID_PTP0,4,2 ## @MLXSW_REG_MTPTPT_TRAP_ID_PTP0
	.comm	_mlxsw_sp1_ptp_unmatched_free_fn,4,2 ## @mlxsw_sp1_ptp_unmatched_free_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp1_ptp_fini             ; -- Begin function mlxsw_sp1_ptp_fini
	.p2align	2
_mlxsw_sp1_ptp_fini:                    ; @mlxsw_sp1_ptp_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
	mov	x19, x0
	ldr	x20, [x0, #8]
	add	x0, x0, #4
	bl	_cancel_delayed_work_sync
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_mlxsw_sp1_ptp_mtpppc_set
	mov	x0, x20
	mov	w1, #0
	bl	_mlxsw_sp1_ptp_set_fifo_clr_on_trap
Lloh0:
	adrp	x8, _MLXSW_REG_MTPTPT_TRAP_ID_PTP1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_REG_MTPTPT_TRAP_ID_PTP1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_mlxsw_sp_ptp_mtptpt_set
Lloh3:
	adrp	x8, _MLXSW_REG_MTPTPT_TRAP_ID_PTP0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_REG_MTPTPT_TRAP_ID_PTP0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_mlxsw_sp_ptp_mtptpt_set
Lloh6:
	adrp	x1, _mlxsw_sp1_ptp_unmatched_free_fn@GOTPAGE
Lloh7:
	ldr	x1, [x1, _mlxsw_sp1_ptp_unmatched_free_fn@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, #0
	bl	_rhltable_free_and_destroy
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_MTPTPT_TRAP_ID_PTP1,4,2 ; @MLXSW_REG_MTPTPT_TRAP_ID_PTP1
	.comm	_MLXSW_REG_MTPTPT_TRAP_ID_PTP0,4,2 ; @MLXSW_REG_MTPTPT_TRAP_ID_PTP0
	.comm	_mlxsw_sp1_ptp_unmatched_free_fn,4,2 ; @mlxsw_sp1_ptp_unmatched_free_fn
.subsections_via_symbols
