	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_mbx_read_copy
_fm10k_mbx_read_copy:                   ## @fm10k_mbx_read_copy
	.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
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	24(%rsi), %r15
	movl	4(%rsi), %eax
	movl	8(%rsi), %r13d
	xorl	(%rsi), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rsi), %r14
	movq	%rsi, %rdi
	movl	%r13d, %esi
	callq	_fm10k_mbx_head_sub
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %r12d
	movl	16(%rbx), %esi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_fm10k_fifo_tail_offset
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.1:
	movl	32(%rbx), %r15d
	subl	%eax, %r15d
	cltq
	leaq	(%r14,%rax,4), %r14
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%r12d, %ecx
	setge	%al
	addl	%ecx, %eax
	movl	$1, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %r14
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	incl	%r13d
	movl	%r12d, %eax
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %r12d
	decl	%r12d
	andl	%eax, %r12d
	movl	$1, %eax
	cmovel	%eax, %r12d
	incl	12(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%r12,%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_fm10k_read_reg
	movl	%eax, (%r14)
	cmpl	%r13d, -48(%rbp)                ## 4-byte Folded Reload
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %r15d
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	jmp	LBB0_5
LBB0_7:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmb                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fm10k_mbx_read_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_mbx_read_copy
_fm10k_mbx_read_copy:                   ; @fm10k_mbx_read_copy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	x21, x1
	ldr	x25, [x21, #24]!
	ldp	w24, w26, [x1]
	ldr	w22, [x1, #8]
	mov	x0, x1
	mov	x1, x22
	bl	_fm10k_mbx_head_sub
	mov	x23, x0
	ldr	w27, [x19, #4]
	ldr	w1, [x19, #16]
	mov	x0, x21
	bl	_fm10k_fifo_tail_offset
	cbz	w22, LBB0_7
; %bb.1:
	eor	w24, w26, w24
	ldr	w9, [x19, #32]
	add	x25, x25, w0, sxtw #2
	cmp	w23, w27
	cinc	w8, w23, ge
	sub	w9, w0, w9
	add	w23, w9, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w26, #1
	add	w23, w23, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w22, w22, #1
	ldr	w9, [x19, #4]
	sub	w9, w9, #1
	ands	w8, w9, w8
	csinc	w26, w8, wzr, ne
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	add	w1, w26, w24
	mov	x0, x20
	bl	_fm10k_read_reg
	str	w0, [x25]
	cbz	w22, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w23, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x25, [x21]
	b	LBB0_3
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_wmb
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fm10k_mbx_read_copy
.subsections_via_symbols
