	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp1_ptp_fifo_event_func
_mlxsw_sp1_ptp_fifo_event_func:         ## @mlxsw_sp1_ptp_fifo_event_func
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_mlxsw_reg_mtpptr_local_port_get
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_mlxsw_reg_mtpptr_num_rec_get
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	leaq	-56(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	leaq	-52(%rbp), %r8
	leaq	-48(%rbp), %r9
	callq	_mlxsw_reg_mtpptr_unpack
	movl	-56(%rbp), %ecx
	movl	-60(%rbp), %r8d
	movl	-52(%rbp), %r9d
	movl	-48(%rbp), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	callq	_mlxsw_sp1_ptp_got_timestamp
	incl	%r14d
	cmpl	%r14d, %ebx
	jne	LBB0_2
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlxsw_sp1_ptp_fifo_event_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp1_ptp_fifo_event_func
_mlxsw_sp1_ptp_fifo_event_func:         ; @mlxsw_sp1_ptp_fifo_event_func
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_mlxsw_reg_mtpptr_local_port_get
	mov	x22, x0
	mov	x0, x20
	bl	_mlxsw_reg_mtpptr_num_rec_get
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, x0
	mov	w24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	add	x3, sp, #12
	add	x4, sp, #4
	mov	x5, sp
	mov	x0, x20
	mov	x1, x24
	bl	_mlxsw_reg_mtpptr_unpack
	ldp	w3, w4, [sp, #8]
	ldp	w6, w5, [sp]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_mlxsw_sp1_ptp_got_timestamp
	add	w24, w24, #1
	cmp	w23, w24
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlxsw_sp1_ptp_fifo_event_func
.subsections_via_symbols
