	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp1_ptp_got_piece
_mlxsw_sp1_ptp_got_piece:               ## @mlxsw_sp1_ptp_got_piece
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	(%r13), %rdi
	callq	_spin_lock
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_mlxsw_sp1_ptp_unmatched_lookup
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.2:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.3:
	movq	%r14, 8(%rbx)
	jmp	LBB0_4
LBB0_5:
	testq	%r12, %r12
	je	LBB0_9
## %bb.6:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.7:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.8:
	movq	%r12, (%rbx)
LBB0_4:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp1_ptp_unmatched_remove
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	movq	(%r13), %rdi
	callq	_spin_unlock
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp1_ptp_unmatched_finish
	jmp	LBB0_16
LBB0_9:
	cmpl	$99, -44(%rbp)
	jg	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_mlxsw_sp1_ptp_unmatched_save
	testq	%r14, %r14
	jne	LBB0_13
	jmp	LBB0_15
LBB0_11:
	movq	_E2BIG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testq	%r14, %r14
	je	LBB0_15
LBB0_13:
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdx
	shrq	$32, %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_mlxsw_sp1_ptp_packet_finish
LBB0_15:
	movq	(%r13), %rdi
	callq	_spin_unlock
LBB0_16:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E2BIG,4,2                      ## @E2BIG
	.no_dead_strip	_mlxsw_sp1_ptp_got_piece
.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_got_piece
_mlxsw_sp1_ptp_got_piece:               ; @mlxsw_sp1_ptp_got_piece
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_rcu_read_lock
	ldr	x0, [x19]
	bl	_spin_lock
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_mlxsw_sp1_ptp_unmatched_lookup
	mov	x23, x0
	cbz	x20, LBB0_4
; %bb.1:
	cbz	x23, LBB0_4
; %bb.2:
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.3:
	str	x20, [x23, #8]
	b	LBB0_8
LBB0_4:
	cbz	x22, LBB0_9
; %bb.5:
	cbz	x23, LBB0_9
; %bb.6:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_9
; %bb.7:
	str	x22, [x23]
LBB0_8:
	mov	x0, x19
	mov	x1, x23
	bl	_mlxsw_sp1_ptp_unmatched_remove
	bl	_WARN_ON_ONCE
	ldr	x0, [x19]
	bl	_spin_unlock
	mov	x0, x19
	mov	x1, x23
	bl	_mlxsw_sp1_ptp_unmatched_finish
	b	LBB0_15
LBB0_9:
	ldr	w8, [sp, #12]
	cmp	w8, #99
	b.gt	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_mlxsw_sp1_ptp_unmatched_save
	cbnz	x20, LBB0_12
	b	LBB0_14
LBB0_11:
Lloh0:
	adrp	x8, _E2BIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	cbz	x20, LBB0_14
LBB0_12:
	cbz	w0, LBB0_14
; %bb.13:
	lsr	x2, x21, #32
	mov	x0, x19
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x21
	mov	x4, #0
	bl	_mlxsw_sp1_ptp_packet_finish
LBB0_14:
	ldr	x0, [x19]
	bl	_spin_unlock
LBB0_15:
	bl	_rcu_read_unlock
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_E2BIG,4,2                      ; @E2BIG
	.no_dead_strip	_mlxsw_sp1_ptp_got_piece
.subsections_via_symbols
