	.file	"extr_tx.c_efx_tx_queue_insert.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	efx_tx_queue_insert, @function
efx_tx_queue_insert:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 24[rdi]
	xor	edi, edi
	test	edx, edx
	sete	dil
	call	EFX_BUG_ON_PARANOID@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR EFX_TX_BUF_CONT[rip]
	mov	DWORD PTR [rbx], eax
	add	r14d, eax
	sub	r15d, eax
	mov	DWORD PTR 8[rbx], edx
.L3:
	mov	eax, DWORD PTR 0[r13]
	xor	edi, edi
	mov	ebx, eax
	add	eax, 1
	and	ebx, DWORD PTR 4[r13]
	mov	DWORD PTR 0[r13], eax
	sal	rbx, 4
	sub	rax, QWORD PTR 8[r13]
	add	rbx, QWORD PTR 16[r13]
	cmp	rax, QWORD PTR 0[rbp]
	setge	dil
	call	EFX_BUG_ON_PARANOID@PLT
	mov	edi, DWORD PTR [rbx]
	call	EFX_BUG_ON_PARANOID@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	EFX_BUG_ON_PARANOID@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	EFX_BUG_ON_PARANOID@PLT
	mov	DWORD PTR 12[rbx], r14d
	mov	esi, r14d
	mov	rdi, rbp
	call	efx_max_tx_len@PLT
	cmp	r15d, eax
	ja	.L6
	xor	edi, edi
	test	r15d, r15d
	sete	dil
	call	EFX_BUG_ON_PARANOID@PLT
	mov	DWORD PTR [rbx], r15d
	mov	QWORD PTR [r12], rbx
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	efx_tx_queue_insert, .-efx_tx_queue_insert
	.comm	EFX_TX_BUF_CONT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tx.c_efx_tx_queue_insert.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	efx_tx_queue_insert, %function
efx_tx_queue_insert:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r0
	clz	r0, r2
	sub	sp, sp, #12
	lsr	r0, r0, #5
	mov	r9, r1
	mov	fp, r2
	ldr	r7, [r10, #16]
	str	r3, [sp, #4]
	ldr	r8, .L7
	bl	EFX_BUG_ON_PARANOID
	b	.L3
.L6:
	ldr	r3, [r8]
	add	r9, r9, r0
	str	r0, [r6, r4, lsl #4]
	sub	fp, fp, r0
	str	r3, [r5, #8]
.L3:
	ldr	r4, [r10]
	ldr	r3, [r10, #8]
	add	r2, r4, #1
	ldr	r0, [r7]
	ldr	ip, [r10, #4]
	sub	r3, r2, r3
	cmp	r3, r0
	ldr	r6, [r10, #12]
	and	r4, r4, ip
	movcc	r0, #0
	movcs	r0, #1
	str	r2, [r10]
	bl	EFX_BUG_ON_PARANOID
	add	r5, r6, r4, lsl #4
	ldr	r0, [r6, r4, lsl #4]
	bl	EFX_BUG_ON_PARANOID
	ldr	r0, [r5, #4]
	bl	EFX_BUG_ON_PARANOID
	ldr	r0, [r5, #8]
	bl	EFX_BUG_ON_PARANOID
	mov	r1, r9
	mov	r0, r7
	str	r9, [r5, #12]
	bl	efx_max_tx_len
	cmp	fp, r0
	bhi	.L6
	clz	r0, fp
	lsr	r0, r0, #5
	bl	EFX_BUG_ON_PARANOID
	ldr	r3, [sp, #4]
	str	fp, [r5]
	str	r5, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	.align	2
.L7:
	.word	EFX_TX_BUF_CONT
	.size	efx_tx_queue_insert, .-efx_tx_queue_insert
	.comm	EFX_TX_BUF_CONT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
