	.file	"extr_rtwn_usb_tx.c_rtwn_usb_txeof.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtwn_usb_txeof, @function
rtwn_usb_txeof:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	add	rdi, 16
	call	RTWN_ASSERT_LOCKED@PLT
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L2
	mov	rsi, QWORD PTR 0[rbp]
	mov	edx, r12d
	call	ieee80211_tx_complete@PLT
.L2:
	mov	rax, QWORD PTR RTWN_RATECTL_NET80211[rip]
	cmp	QWORD PTR 16[rbx], rax
	je	.L3
	mov	rax, QWORD PTR 24[rbx]
	test	rax, rax
	jle	.L3
	sub	rax, 1
	mov	QWORD PTR 24[rbx], rax
.L3:
	mov	QWORD PTR 8[rbp], 0
	mov	edx, DWORD PTR next[rip]
	lea	rdi, 8[rbx]
	mov	rsi, rbp
	mov	QWORD PTR 0[rbp], 0
	call	STAILQ_INSERT_TAIL@PLT
	mov	QWORD PTR 40[rbx], 0
	lea	rdi, 4[rbx]
	call	STAILQ_EMPTY@PLT
	test	rax, rax
	jne	.L16
.L4:
	mov	eax, 5
	mov	DWORD PTR 32[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, rbx
	call	STAILQ_EMPTY@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L4
	mov	DWORD PTR 32[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rtwn_usb_txeof, .-rtwn_usb_txeof
	.comm	next,4,4
	.comm	RTWN_RATECTL_NET80211,8,8
	.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_rtwn_usb_tx.c_rtwn_usb_txeof.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtwn_usb_txeof, %function
rtwn_usb_txeof:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	add	r0, r0, #12
	mov	r6, r2
	bl	RTWN_ASSERT_LOCKED
	ldr	r0, [r5, #4]
	cmp	r0, #0
	beq	.L2
	mov	r2, r6
	ldr	r1, [r5]
	bl	ieee80211_tx_complete
.L2:
	ldr	r3, .L17
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L3
	ldr	r3, [r4, #16]
	cmp	r3, #0
	subgt	r3, r3, #1
	strgt	r3, [r4, #16]
.L3:
	mov	r6, #0
	ldr	r3, .L17+4
	mov	r1, r5
	ldr	r2, [r3]
	str	r6, [r5, #4]
	str	r6, [r5]
	add	r0, r4, #8
	bl	STAILQ_INSERT_TAIL
	str	r6, [r4, #24]
	add	r0, r4, #4
	bl	STAILQ_EMPTY
	cmp	r0, r6
	bne	.L16
.L4:
	mov	r6, #5
	str	r6, [r4, #20]
	pop	{r4, r5, r6, pc}
.L16:
	mov	r0, r4
	bl	STAILQ_EMPTY
	cmp	r0, r6
	beq	.L4
	str	r6, [r4, #20]
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	RTWN_RATECTL_NET80211
	.word	next
	.size	rtwn_usb_txeof, .-rtwn_usb_txeof
	.comm	next,4,4
	.comm	RTWN_RATECTL_NET80211,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
