	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_mbx_write_copy
_fm10k_mbx_write_copy:                  ## @fm10k_mbx_write_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	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	leaq	32(%rsi), %r13
	movq	24(%rsi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %r15
	movq	32(%rsi), %r12
	leaq	-1(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_fm10k_mbx_tail_sub
	xorl	%r14d, %r14d
	cmpq	%r15, %rax
	setge	%r14b
	addq	%rax, %r14
	movl	4(%rbx), %esi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_fm10k_fifo_head_offset
	movq	%rax, %r15
	leaq	(%r12,%rax,8), %r13
	xorl	%eax, %eax
	callq	_rmb
	movq	40(%rbx), %r12
	subq	%r15, %r12
	movl	$1, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %r13
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	incq	%r15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	andq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	movl	$1, %eax
	cmoveq	%rax, %r14
	incl	(%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax), %rsi
	movl	(%r13), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_fm10k_write_reg
	cmpq	%r15, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, %r12
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	jmp	LBB0_5
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fm10k_mbx_write_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_write_copy
_fm10k_mbx_write_copy:                  ; @fm10k_mbx_write_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
	ldr	x22, [x1, #8]
	cbz	x22, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x21, x1, #32
	ldp	x24, x26, [x1, #24]
	ldr	x23, [x1, #16]
	sub	x25, x23, #1
	mov	x0, x1
	mov	x1, x22
	bl	_fm10k_mbx_tail_sub
	cmp	x0, x23
	cinc	x27, x0, ge
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_fm10k_fifo_head_offset
	mov	x23, x0
	add	x26, x26, x0, lsl #3
	bl	_rmb
	ldr	x8, [x19, #40]
	sub	x8, x23, x8
	add	x23, x8, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	add	x23, x23, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x22, x22, #1
	ands	x8, x27, x25
	csinc	x27, x8, xzr, ne
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	add	x1, x27, x24
	ldr	w2, [x26]
	mov	x0, x20
	bl	_fm10k_write_reg
	cbz	x22, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x23, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x26, [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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fm10k_mbx_write_copy
.subsections_via_symbols
