	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_mbx_reset_work
_fm10k_mbx_reset_work:                  ## @fm10k_mbx_reset_work
	.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	%rdi, %rbx
	movq	32(%rdi), %rax
	decq	%rax
	movq	%rax, 72(%rdi)
	movl	68(%rdi), %edi
	movq	_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FM10K_MSG_HDR_FIELD_GET
	movl	64(%rbx), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_fm10k_mbx_index_len
	movq	8(%rbx), %rcx
	subq	%rax, %rcx
	leaq	60(%rbx), %r14
	addq	%rcx, (%rbx)
	movq	%r14, %rdi
	callq	_fm10k_fifo_head_len
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_fm10k_fifo_head_drop
	incl	56(%rbx)
	movq	(%rbx), %rcx
	subq	%rax, %rcx
	cmovlq	%r15, %rcx
	movq	%rcx, (%rbx)
	movq	%r14, %rdi
	callq	_fm10k_fifo_head_len
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movups	%xmm0, (%rbx)
	movups	%xmm0, 40(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAD,4,2                       ## @HEAD
	.no_dead_strip	_fm10k_mbx_reset_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_mbx_reset_work
_fm10k_mbx_reset_work:                  ; @fm10k_mbx_reset_work
	.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	x8, [x0, #32]
	sub	x8, x8, #1
	str	x8, [x0, #72]
	ldr	w0, [x0, #68]
Lloh0:
	adrp	x8, _HEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEAD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_FM10K_MSG_HDR_FIELD_GET
	mov	x1, x0
	ldr	w2, [x19, #64]
	mov	x0, x19
	bl	_fm10k_mbx_index_len
	ldp	x9, x8, [x19]
	sub	x8, x8, x0
	add	x8, x8, x9
	add	x20, x19, #60
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	x8, [x19]
	mov	x0, x20
	bl	_fm10k_fifo_head_len
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_fm10k_fifo_head_drop
	ldr	w8, [x19, #56]
	add	w8, w8, #1
	str	w8, [x19, #56]
	ldr	x8, [x19]
	subs	x8, x8, x0
	csel	x8, xzr, x8, lt
	b	LBB0_1
LBB0_4:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19]
	stp	xzr, xzr, [x19, #40]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAD,4,2                       ; @HEAD
	.no_dead_strip	_fm10k_mbx_reset_work
.subsections_via_symbols
