	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_sm_mbx_transmit
_fm10k_sm_mbx_transmit:                 ## @fm10k_sm_mbx_transmit
	.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, %r15
	leaq	24(%rsi), %r14
	movq	(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-1(%rax), %r13
	xorl	%ebx, %ebx
	cmpq	%rdx, 8(%rsi)
	movl	$0, %eax
	cmovlq	%r13, %rax
	addq	%rax, %rdx
	callq	_fm10k_mbx_pull_head
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	movq	24(%r15), %rbx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_fm10k_fifo_head_offset
	cltq
	movl	(%rbx,%rax,4), %edi
	callq	_FM10K_TLV_DWORD_LEN
	movq	%rax, %rbx
	addq	%r12, %rbx
	movq	16(%r15), %rsi
	cmpq	%rsi, %rbx
	jg	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r13, %rbx
	jl	LBB0_1
LBB0_3:
	subq	%r12, %rsi
	jle	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_fm10k_mbx_tail_sub
	movq	%rax, 8(%r15)
	movq	%r12, 16(%r15)
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	jge	LBB0_7
	jmp	LBB0_8
LBB0_4:
	movq	8(%r15), %rax
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	jl	LBB0_8
LBB0_7:
	subq	%r13, %rax
	movq	%rax, 8(%r15)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fm10k_sm_mbx_transmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_sm_mbx_transmit
_fm10k_sm_mbx_transmit:                 ; @fm10k_sm_mbx_transmit
	.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	x19, x1
	add	x20, x1, #24
	ldp	x23, x8, [x1]
	sub	x22, x23, #1
	cmp	x8, x2
	csel	x8, x22, xzr, lt
	add	x2, x8, x2
	bl	_fm10k_mbx_pull_head
	mov	x8, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x8
	ldr	x24, [x19, #24]
	mov	x0, x20
	mov	x1, x8
	bl	_fm10k_fifo_head_offset
	ldr	w0, [x24, w0, sxtw #2]
	bl	_FM10K_TLV_DWORD_LEN
	ldr	x9, [x19, #16]
	add	x8, x0, x21
	cmp	x8, x9
	ccmp	x8, x22, #0, le
	b.lt	LBB0_1
; %bb.2:
	subs	x1, x9, x21
	b.le	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_fm10k_mbx_tail_sub
	stp	x0, x21, [x19, #8]
	cmp	x0, x23
	b.ge	LBB0_5
	b	LBB0_6
LBB0_4:
	ldr	x0, [x19, #8]
	cmp	x0, x23
	b.lt	LBB0_6
LBB0_5:
	sub	x8, x0, x22
	str	x8, [x19, #8]
LBB0_6:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fm10k_sm_mbx_transmit
.subsections_via_symbols
