	.file	"extr_rtw_xmit.c__rtw_free_xmit_priv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_rtw_free_xmit_priv
	.type	_rtw_free_xmit_priv, @function
_rtw_free_xmit_priv:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbp, QWORD PTR 80[rdi]
	mov	r13, QWORD PTR 64[rdi]
	mov	rbx, QWORD PTR 72[rdi]
	mov	rdi, rbp
	call	rtw_hal_free_xmit_priv@PLT
	cmp	QWORD PTR 64[r12], 0
	je	.L1
	mov	edi, DWORD PTR NR_XMITFRAME[rip]
	test	edi, edi
	jle	.L3
	xor	r14d, r14d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, r13
	mov	rdi, rbp
	add	r13, 4
	add	r14d, 1
	call	rtw_os_xmit_complete@PLT
	cmp	DWORD PTR NR_XMITFRAME[rip], r14d
	jg	.L4
.L3:
	mov	esi, DWORD PTR NR_XMITBUFF[rip]
	test	esi, esi
	jle	.L5
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, rbx
	mov	ecx, 1
	mov	rdi, rbp
	add	rbx, 4
	mov	rdx, QWORD PTR XMITBUF_ALIGN_SZ[rip]
	add	rdx, QWORD PTR MAX_XMITBUF_SZ[rip]
	add	r13d, 1
	call	rtw_os_xmit_resource_free@PLT
	cmp	DWORD PTR NR_XMITBUFF[rip], r13d
	jg	.L6
.L5:
	mov	rdi, QWORD PTR 56[r12]
	test	rdi, rdi
	jne	.L45
	mov	rdi, QWORD PTR 48[r12]
	test	rdi, rdi
	jne	.L46
.L8:
	mov	rbx, QWORD PTR 40[r12]
	test	rbx, rbx
	je	.L9
.L48:
	mov	ecx, DWORD PTR NR_XMIT_EXTBUFF[rip]
	test	ecx, ecx
	jle	.L10
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, rbx
	mov	rdi, rbp
	add	rbx, 4
	add	r13d, 1
	call	rtw_os_xmit_complete@PLT
	cmp	DWORD PTR NR_XMIT_EXTBUFF[rip], r13d
	jg	.L11
.L9:
	mov	rdi, QWORD PTR 32[r12]
	test	rdi, rdi
	jne	.L19
.L12:
	mov	edx, DWORD PTR NR_XMIT_EXTBUFF[rip]
	mov	rbx, QWORD PTR 24[r12]
	test	edx, edx
	jle	.L13
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rsi, rbx
	mov	ecx, 1
	mov	rdi, rbp
	add	rbx, 4
	mov	rdx, QWORD PTR XMITBUF_ALIGN_SZ[rip]
	add	rdx, QWORD PTR MAX_XMIT_EXTBUF_SZ[rip]
	add	r13d, 1
	call	rtw_os_xmit_resource_free@PLT
	cmp	DWORD PTR NR_XMIT_EXTBUFF[rip], r13d
	jg	.L14
.L13:
	mov	rdi, QWORD PTR 16[r12]
	test	rdi, rdi
	jne	.L47
.L15:
	mov	eax, DWORD PTR CMDBUF_MAX[rip]
	test	eax, eax
	jle	.L16
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rax, QWORD PTR 8[r12]
	lea	rsi, [rax+rbx*4]
	test	rsi, rsi
	je	.L17
	mov	rdx, QWORD PTR XMITBUF_ALIGN_SZ[rip]
	mov	ecx, 1
	add	rdx, QWORD PTR MAX_CMDBUF_SZ[rip]
	mov	rdi, rbp
	call	rtw_os_xmit_resource_free@PLT
.L17:
	add	rbx, 1
	cmp	DWORD PTR CMDBUF_MAX[rip], ebx
	jg	.L18
.L16:
	mov	rdi, rbp
	call	rtw_free_hwxmits@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	mutex_destroy@PLT
	.p2align 4,,10
	.p2align 3
.L46:
	.cfi_restore_state
	call	vfree@PLT
	mov	rbx, QWORD PTR 40[r12]
	test	rbx, rbx
	je	.L9
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L45:
	call	vfree@PLT
	mov	rdi, QWORD PTR 48[r12]
	test	rdi, rdi
	je	.L8
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L47:
	call	vfree@PLT
	jmp	.L15
.L10:
	mov	rdi, QWORD PTR 32[r12]
	test	rdi, rdi
	je	.L13
	.p2align 4,,10
	.p2align 3
.L19:
	call	vfree@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	_rtw_free_xmit_priv, .-_rtw_free_xmit_priv
	.comm	XMITBUF_ALIGN_SZ,8,8
	.comm	NR_XMIT_EXTBUFF,4,4
	.comm	NR_XMITFRAME,4,4
	.comm	NR_XMITBUFF,4,4
	.comm	MAX_XMIT_EXTBUF_SZ,8,8
	.comm	MAX_XMITBUF_SZ,8,8
	.comm	MAX_CMDBUF_SZ,8,8
	.comm	CMDBUF_MAX,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_rtw_xmit.c__rtw_free_xmit_priv.c"
	.text
	.align	2
	.global	_rtw_free_xmit_priv
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtw_free_xmit_priv, %function
_rtw_free_xmit_priv:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	ldr	r5, [r0, #40]
	ldr	r6, [r0, #32]
	mov	r0, r5
	ldr	r4, [r7, #36]
	bl	rtw_hal_free_xmit_priv
	ldr	r3, [r7, #32]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r9, .L48
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L3
	mov	r8, #0
.L4:
	mov	r1, r6
	mov	r0, r5
	bl	rtw_os_xmit_complete
	ldr	r3, [r9]
	add	r8, r8, #1
	cmp	r3, r8
	add	r6, r6, #4
	bgt	.L4
.L3:
	ldr	r9, .L48+4
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L5
	mov	r6, #0
	ldr	r10, .L48+8
	ldr	r8, .L48+12
.L6:
	ldr	r1, [r10]
	ldr	r2, [r8]
	mov	r3, #1
	add	r2, r1, r2
	mov	r0, r5
	mov	r1, r4
	bl	rtw_os_xmit_resource_free
	ldr	r3, [r9]
	add	r6, r6, #1
	cmp	r3, r6
	add	r4, r4, #4
	bgt	.L6
.L5:
	ldr	r0, [r7, #28]
	cmp	r0, #0
	bne	.L45
	ldr	r0, [r7, #24]
	cmp	r0, #0
	bne	.L46
.L8:
	ldr	r4, [r7, #20]
	ldr	r9, .L48+16
	cmp	r4, #0
	beq	.L9
.L42:
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L10
	mov	r6, #0
.L11:
	mov	r1, r4
	mov	r0, r5
	bl	rtw_os_xmit_complete
	ldr	r3, [r9]
	add	r6, r6, #1
	cmp	r3, r6
	add	r4, r4, #4
	bgt	.L11
.L9:
	ldr	r0, [r7, #16]
	cmp	r0, #0
	bne	.L19
.L12:
	ldr	r3, [r9]
	ldr	r4, [r7, #12]
	cmp	r3, #0
	ble	.L13
	mov	r6, #0
	ldr	r8, .L48+12
	ldr	r10, .L48+20
.L14:
	ldr	r1, [r10]
	ldr	r2, [r8]
	mov	r3, #1
	add	r2, r1, r2
	mov	r0, r5
	mov	r1, r4
	bl	rtw_os_xmit_resource_free
	ldr	r3, [r9]
	add	r6, r6, #1
	cmp	r3, r6
	add	r4, r4, #4
	bgt	.L14
.L13:
	ldr	r0, [r7, #8]
	cmp	r0, #0
	bne	.L47
.L15:
	ldr	r6, .L48+24
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L16
	mov	r4, #0
	ldr	r9, .L48+28
	ldr	r8, .L48+12
.L18:
	ldr	r1, [r7, #4]
	adds	r1, r1, r4, lsl #2
	add	r4, r4, #1
	beq	.L17
	ldr	r3, [r8]
	ldr	r2, [r9]
	mov	r0, r5
	add	r2, r2, r3
	mov	r3, #1
	bl	rtw_os_xmit_resource_free
.L17:
	ldr	r3, [r6]
	cmp	r3, r4
	bgt	.L18
.L16:
	mov	r0, r5
	bl	rtw_free_hwxmits
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	mutex_destroy
.L46:
	bl	vfree
	ldr	r4, [r7, #20]
	ldr	r9, .L48+16
	cmp	r4, #0
	bne	.L42
	b	.L9
.L45:
	bl	vfree
	ldr	r0, [r7, #24]
	cmp	r0, #0
	beq	.L8
	b	.L46
.L47:
	bl	vfree
	b	.L15
.L10:
	ldr	r0, [r7, #16]
	cmp	r0, #0
	beq	.L13
.L19:
	bl	vfree
	b	.L12
.L49:
	.align	2
.L48:
	.word	NR_XMITFRAME
	.word	NR_XMITBUFF
	.word	MAX_XMITBUF_SZ
	.word	XMITBUF_ALIGN_SZ
	.word	NR_XMIT_EXTBUFF
	.word	MAX_XMIT_EXTBUF_SZ
	.word	CMDBUF_MAX
	.word	MAX_CMDBUF_SZ
	.size	_rtw_free_xmit_priv, .-_rtw_free_xmit_priv
	.comm	XMITBUF_ALIGN_SZ,4,4
	.comm	NR_XMIT_EXTBUFF,4,4
	.comm	NR_XMITFRAME,4,4
	.comm	NR_XMITBUFF,4,4
	.comm	MAX_XMIT_EXTBUF_SZ,4,4
	.comm	MAX_XMITBUF_SZ,4,4
	.comm	MAX_CMDBUF_SZ,4,4
	.comm	CMDBUF_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
