	.file	"extr_wmm.c_mwifiex_wmm_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mwifiex_wmm_init
	.type	mwifiex_wmm_init, @function
mwifiex_wmm_init:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L18
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 16[rbx]
	mov	rbp, QWORD PTR [rax+r12*8]
	test	rbp, rbp
	je	.L3
	mov	ecx, DWORD PTR MAX_NUM_TID[rip]
	mov	rsi, QWORD PTR BA_STREAM_NOT_ALLOWED[rip]
	mov	r9, QWORD PTR 16[rbp]
	test	ecx, ecx
	jle	.L8
	mov	rax, QWORD PTR 24[rbp]
	sub	ecx, 1
	mov	rdx, r9
	mov	r8d, DWORD PTR disable_tx_amsdu[rip]
	mov	r10, QWORD PTR MWIFIEX_TX_DATA_BUF_SIZE_2K[rip]
	lea	rdi, 8[rax+rcx*8]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	cmp	QWORD PTR 8[rbx], r10
	jle	.L5
	mov	rcx, QWORD PTR [rax]
	mov	QWORD PTR 16[rdx], rcx
.L6:
	mov	rcx, QWORD PTR [rax]
	add	rax, 8
	add	rdx, 24
	mov	QWORD PTR -16[rdx], rcx
	mov	rcx, QWORD PTR -8[rax]
	mov	QWORD PTR -24[rdx], rcx
	cmp	rdi, rax
	je	.L8
.L7:
	test	r8d, r8d
	je	.L22
.L5:
	mov	QWORD PTR 16[rdx], rsi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	QWORD PTR 144[r9], rsi
	mov	rdi, rbp
	mov	QWORD PTR 152[r9], rsi
	mov	QWORD PTR 160[r9], rsi
	mov	QWORD PTR 168[r9], rsi
	mov	QWORD PTR 176[r9], rsi
	mov	QWORD PTR 184[r9], rsi
	call	mwifiex_set_ba_params@PLT
	mov	rdi, rbp
	call	mwifiex_reset_11n_rx_seq_num@PLT
	mov	eax, DWORD PTR MWIFIEX_WMM_DRV_DELAY_MAX[rip]
	lea	rdi, 4[rbp]
	xor	esi, esi
	mov	DWORD PTR 8[rbp], eax
	call	atomic_set@PLT
	mov	esi, DWORD PTR HIGH_PRIO_TID[rip]
	mov	rdi, rbp
	call	atomic_set@PLT
.L3:
	add	r12, 1
	cmp	DWORD PTR [rbx], r12d
	jg	.L2
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE0:
	.size	mwifiex_wmm_init, .-mwifiex_wmm_init
	.comm	disable_tx_amsdu,4,4
	.comm	MWIFIEX_WMM_DRV_DELAY_MAX,4,4
	.comm	MWIFIEX_TX_DATA_BUF_SIZE_2K,8,8
	.comm	MAX_NUM_TID,4,4
	.comm	HIGH_PRIO_TID,4,4
	.comm	BA_STREAM_NOT_ALLOWED,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_wmm.c_mwifiex_wmm_init.c"
	.text
	.align	2
	.global	mwifiex_wmm_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	mwifiex_wmm_init, %function
mwifiex_wmm_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	cmp	r2, #0
	bxle	lr
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	mov	r9, #0
	ldr	r7, .L22
	ldr	r6, .L22+4
	ldr	r5, .L22+8
.L2:
	ldr	r3, [r8, #8]
	ldr	r4, [r3, r9, lsl #2]
	cmp	r4, #0
	beq	.L3
	ldr	r0, [r7]
	ldr	ip, [r6]
	cmp	r0, #0
	ldr	r10, [r4, #12]
	ble	.L8
	ldr	r1, .L22+12
	ldr	r3, [r4, #16]
	ldr	lr, [r1]
	ldr	r1, .L22+16
	add	r0, r3, r0, lsl #2
	mov	r2, r10
	ldr	fp, [r1]
	sub	r0, r0, #4
	sub	r3, r3, #4
	b	.L7
.L21:
	ldr	r1, [r8, #4]
	cmp	r1, fp
	ble	.L5
	ldr	r1, [r3, #4]
	str	r1, [r2, #8]
.L6:
	ldr	r1, [r3, #4]!
	str	r1, [r2, #4]
	ldr	r1, [r3]
	cmp	r3, r0
	str	r1, [r2], #12
	beq	.L8
.L7:
	cmp	lr, #0
	beq	.L21
.L5:
	str	ip, [r2, #8]
	b	.L6
.L8:
	str	ip, [r10, #72]
	str	ip, [r10, #76]
	str	ip, [r10, #80]
	str	ip, [r10, #84]
	str	ip, [r10, #88]
	str	ip, [r10, #92]
	mov	r0, r4
	bl	mwifiex_set_ba_params
	mov	r0, r4
	bl	mwifiex_reset_11n_rx_seq_num
	ldr	r3, [r5]
	mov	r1, #0
	str	r3, [r4, #8]
	add	r0, r4, #4
	bl	atomic_set
	ldr	r3, .L22+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	atomic_set
	ldr	r2, [r8]
.L3:
	add	r9, r9, #1
	cmp	r2, r9
	bgt	.L2
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	.align	2
.L22:
	.word	MAX_NUM_TID
	.word	BA_STREAM_NOT_ALLOWED
	.word	MWIFIEX_WMM_DRV_DELAY_MAX
	.word	disable_tx_amsdu
	.word	MWIFIEX_TX_DATA_BUF_SIZE_2K
	.word	HIGH_PRIO_TID
	.size	mwifiex_wmm_init, .-mwifiex_wmm_init
	.comm	disable_tx_amsdu,4,4
	.comm	MWIFIEX_WMM_DRV_DELAY_MAX,4,4
	.comm	MWIFIEX_TX_DATA_BUF_SIZE_2K,4,4
	.comm	MAX_NUM_TID,4,4
	.comm	HIGH_PRIO_TID,4,4
	.comm	BA_STREAM_NOT_ALLOWED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
