	.file	"extr_usb.c_rtl_usb_cleanup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtl_usb_cleanup, @function
rtl_usb_cleanup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	rtl_usbpriv@PLT
	mov	edi, eax
	call	rtl_usbdev@PLT
	mov	rdi, rbx
	mov	r12, rax
	call	_rtl_usb_cleanup_rx@PLT
	cmp	QWORD PTR RTL_USB_MAX_EP_NUM[rip], 0
	je	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	lea	r13, 0[0+r14*4]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, rbp
	mov	rdi, rbx
	call	[QWORD PTR 16[r12]]
	mov	rdi, rbp
	call	IEEE80211_SKB_CB@PLT
	mov	r15, rax
	mov	rdi, rax
	call	ieee80211_tx_info_clear_status@PLT
	mov	eax, DWORD PTR IEEE80211_TX_STAT_ACK[rip]
	or	DWORD PTR [r15], eax
	mov	rsi, rbp
	mov	rdi, rbx
	call	ieee80211_tx_status_irqsafe@PLT
.L5:
	mov	rdi, QWORD PTR 24[r12]
	add	rdi, r13
	call	skb_dequeue@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
	mov	rdi, QWORD PTR 8[r12]
	add	r14, 1
	add	rdi, r13
	call	usb_kill_anchored_urbs@PLT
	cmp	QWORD PTR RTL_USB_MAX_EP_NUM[rip], r14
	ja	.L2
.L3:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, r12
	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
	jmp	usb_kill_anchored_urbs@PLT
	.cfi_endproc
.LFE0:
	.size	rtl_usb_cleanup, .-rtl_usb_cleanup
	.comm	RTL_USB_MAX_EP_NUM,8,8
	.comm	IEEE80211_TX_STAT_ACK,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_usb.c_rtl_usb_cleanup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl_usb_cleanup, %function
rtl_usb_cleanup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	bl	rtl_usbpriv
	bl	rtl_usbdev
	ldr	r10, .L9
	mov	fp, r0
	mov	r0, r6
	bl	_rtl_usb_cleanup_rx
	ldr	r3, [r10]
	cmp	r3, #0
	movne	r9, #0
	ldrne	r8, .L9+4
	beq	.L3
.L2:
	lsl	r7, r9, #2
	b	.L5
.L4:
	mov	r1, r4
	ldr	r3, [fp, #8]
	mov	r0, r6
	blx	r3
	mov	r0, r4
	bl	IEEE80211_SKB_CB
	mov	r5, r0
	bl	ieee80211_tx_info_clear_status
	ldr	r3, [r5]
	ldr	r2, [r8]
	mov	r1, r4
	orr	r3, r3, r2
	mov	r0, r6
	str	r3, [r5]
	bl	ieee80211_tx_status_irqsafe
.L5:
	ldr	r0, [fp, #12]
	add	r0, r0, r7
	bl	skb_dequeue
	subs	r4, r0, #0
	bne	.L4
	ldr	r0, [fp, #4]
	add	r9, r9, #1
	add	r0, r0, r7
	bl	usb_kill_anchored_urbs
	ldr	r3, [r10]
	cmp	r3, r9
	bhi	.L2
.L3:
	mov	r0, fp
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	usb_kill_anchored_urbs
.L10:
	.align	2
.L9:
	.word	RTL_USB_MAX_EP_NUM
	.word	IEEE80211_TX_STAT_ACK
	.size	rtl_usb_cleanup, .-rtl_usb_cleanup
	.comm	RTL_USB_MAX_EP_NUM,4,4
	.comm	IEEE80211_TX_STAT_ACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
