	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_mbx_pull_head
_fm10k_mbx_pull_head:                   ## @fm10k_mbx_pull_head
	.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, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	32(%rsi), %eax
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	%eax, %edx
	callq	_fm10k_mbx_index_len
	movq	%rax, %r13
	leaq	36(%r12), %r15
	movq	8(%r12), %rax
	movq	16(%r12), %rbx
	subq	%r13, %rax
	addq	%rax, (%r12)
	movq	%r15, %rdi
	callq	_fm10k_fifo_used
	subq	(%r12), %rax
	leaq	-1(%rbx), %r14
	cmpq	%rbx, %rax
	cmovlq	%rax, %r14
	movq	%r14, %rsi
	subq	%r13, %rsi
	movq	%r12, %rdi
	callq	_fm10k_mbx_tail_add
	movl	%eax, 32(%r12)
	movq	%r14, 8(%r12)
	movq	%r15, %rdi
	callq	_fm10k_fifo_head_len
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%r12)
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_fm10k_fifo_head_drop
	subq	%rax, (%r12)
	incl	28(%r12)
	addl	%ebx, 24(%r12)
	movq	%r15, %rdi
	callq	_fm10k_fifo_head_len
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fm10k_mbx_write_copy           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fm10k_mbx_pull_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_mbx_pull_head
_fm10k_mbx_pull_head:                   ; @fm10k_mbx_pull_head
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x8, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w2, [x1, #32]
	mov	x0, x1
	mov	x1, x8
	bl	_fm10k_mbx_index_len
	mov	x22, x0
	add	x21, x19, #36
	ldp	x9, x8, [x19]
	sub	x8, x8, x0
	add	x8, x8, x9
	str	x8, [x19]
	ldr	x23, [x19, #16]
	mov	x0, x21
	bl	_fm10k_fifo_used
	ldr	x8, [x19]
	sub	x9, x23, #1
	sub	x8, x0, x8
	cmp	x8, x23
	csel	x23, x8, x9, lt
	sub	x1, x23, x22
	mov	x0, x19
	bl	_fm10k_mbx_tail_add
	str	w0, [x19, #32]
	str	x23, [x19, #8]
	mov	x0, x21
	bl	_fm10k_fifo_head_len
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	cmp	x8, x22
	b.lt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_fm10k_fifo_head_drop
	ldr	x8, [x19]
	sub	x8, x8, x0
	str	x8, [x19]
	ldr	d0, [x19, #24]
	movi.2s	v1, #1
	mov.s	v1[0], w22
	add.2s	v0, v0, v1
	str	d0, [x19, #24]
	mov	x0, x21
	bl	_fm10k_fifo_head_len
	mov	x22, x0
	cbnz	x0, LBB0_2
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_fm10k_mbx_write_copy
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fm10k_mbx_pull_head
.subsections_via_symbols
