	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_mbx_push_tail
_fm10k_mbx_push_tail:                   ## @fm10k_mbx_push_tail
	.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	%rsi, %rbx
	movq	%rdi, %r12
	leaq	28(%rsi), %r14
	movl	24(%rsi), %esi
	movq	%rbx, %rdi
	callq	_fm10k_mbx_index_len
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_fm10k_fifo_unused
	movq	%rax, %r15
	subq	(%rbx), %r15
	cmpq	%r13, %r15
	cmovgeq	%r13, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_fm10k_mbx_head_add
	movl	%eax, 24(%rbx)
	movq	%r15, 16(%rbx)
	xorl	%r14d, %r14d
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_fm10k_mbx_read_copy
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_fm10k_mbx_validate_msg_size
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_FM10K_MBX_ERR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addq	%r15, (%rbx)
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_fm10k_mbx_pushed_tail_len
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rcx
	subq	%rax, %rcx
	jl	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	%eax, 28(%rbx)
	movq	%rcx, (%rbx)
	incl	12(%rbx)
	addl	%eax, 8(%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_MBX_ERR_SIZE,4,2         ## @FM10K_MBX_ERR_SIZE
	.no_dead_strip	_fm10k_mbx_push_tail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_mbx_push_tail
_fm10k_mbx_push_tail:                   ; @fm10k_mbx_push_tail
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	add	x21, x1, #28
	ldr	w1, [x1, #24]
	mov	x0, x19
	bl	_fm10k_mbx_index_len
	mov	x22, x0
	mov	x0, x21
	bl	_fm10k_fifo_unused
	ldr	x8, [x19]
	sub	x8, x0, x8
	cmp	x8, x22
	csel	x21, x8, x22, lt
	mov	x0, x19
	mov	x1, x21
	bl	_fm10k_mbx_head_add
	str	w0, [x19, #24]
	str	x21, [x19, #16]
	cbz	x21, LBB0_7
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_fm10k_mbx_read_copy
	mov	x0, x19
	mov	x1, x21
	bl	_fm10k_mbx_validate_msg_size
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _FM10K_MBX_ERR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM10K_MBX_ERR_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_3:
	ldr	x8, [x19]
	add	x8, x8, x21
	str	x8, [x19]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_fm10k_mbx_pushed_tail_len
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	subs	x8, x8, x0
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19, #28]
	add	w9, w9, w0
	str	w9, [x19, #28]
	str	x8, [x19]
	ldr	d0, [x19, #8]
	movi.2s	v1, #1
	mov.s	v1[0], w0
	add.2s	v0, v0, v1
	str	d0, [x19, #8]
	b	LBB0_4
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_MBX_ERR_SIZE,4,2         ; @FM10K_MBX_ERR_SIZE
	.no_dead_strip	_fm10k_mbx_push_tail
.subsections_via_symbols
