	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_tx_queue_insert
_efx_tx_queue_insert:                   ## @efx_tx_queue_insert
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r13
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	callq	_EFX_WARN_ON_ONCE_PARANOID
	movl	%r14d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_efx_tx_queue_get_insert_buffer
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	16(%r13), %rcx
	incq	%rax
	movq	%rax, (%r13)
	subq	8(%r13), %rax
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_EFX_WARN_ON_ONCE_PARANOID
	movl	%r12d, (%rbx)
	movq	16(%r13), %rax
	movq	8(%rax), %rax
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	*(%rax)
	subl	%eax, %r15d
	jbe	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, 4(%rbx)
	movq	_EFX_TX_BUF_CONT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	addl	%eax, %r12d
	movl	%r15d, %r14d
	jmp	LBB0_1
LBB0_3:
	xorl	%edi, %edi
	testl	%r14d, %r14d
	sete	%dil
	callq	_EFX_WARN_ON_ONCE_PARANOID
	movl	%r14d, 4(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_TX_BUF_CONT,4,2            ## @EFX_TX_BUF_CONT
	.no_dead_strip	_efx_tx_queue_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_tx_queue_insert
_efx_tx_queue_insert:                   ; @efx_tx_queue_insert
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cmp	w2, #0
	cset	w0, eq
	bl	_EFX_WARN_ON_ONCE_PARANOID
Lloh0:
	adrp	x24, _EFX_TX_BUF_CONT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EFX_TX_BUF_CONT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_efx_tx_queue_get_insert_buffer
	mov	x23, x0
	ldp	x8, x9, [x22]
	add	x8, x8, #1
	str	x8, [x22]
	ldr	x10, [x22, #16]
	ldr	x10, [x10]
	sub	x8, x8, x9
	cmp	x8, x10
	cset	w0, ge
	bl	_EFX_WARN_ON_ONCE_PARANOID
	str	w21, [x23]
	ldr	x8, [x22, #16]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	blr	x8
	subs	w8, w20, w0
	b.ls	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x24]
	stp	w0, w9, [x23, #4]
	add	w21, w0, w21
	mov	x20, x8
	b	LBB0_1
LBB0_3:
	cmp	w20, #0
	cset	w0, eq
	bl	_EFX_WARN_ON_ONCE_PARANOID
	str	w20, [x23, #4]
	str	x23, [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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_TX_BUF_CONT,4,2            ; @EFX_TX_BUF_CONT
	.no_dead_strip	_efx_tx_queue_insert
.subsections_via_symbols
