	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_wmm_init               ## -- Begin function mwifiex_wmm_init
	.p2align	4, 0x90
_mwifiex_wmm_init:                      ## @mwifiex_wmm_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	movq	_BA_STREAM_NOT_ALLOWED@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rcx
	movq	%rcx, 144(%rax)
	movq	%rcx, 152(%rax)
	movq	%rcx, 160(%rax)
	movq	%rcx, 168(%rax)
	movq	%rcx, 176(%rax)
	movq	%rcx, 184(%rax)
	movq	%r15, %rdi
	callq	_mwifiex_set_ba_params
	movq	%r15, %rdi
	callq	_mwifiex_reset_11n_rx_seq_num
	movq	_MWIFIEX_WMM_DRV_DELAY_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	leaq	4(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_HIGH_PRIO_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_atomic_set
	movl	(%r14), %eax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	16(%r14), %rcx
	movq	(%rcx,%r12,8), %r15
	testq	%r15, %r15
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_NUM_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_disable_tx_amsdu@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MWIFIEX_TX_DATA_BUF_SIZE_2K@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	16(%r15), %rax
	movq	24(%r15), %rsi
	shlq	$3, %rdi
	leaq	(%rdi,%rdi,2), %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	(%rdx), %rdx
	movq	%rdx, 16(%rax,%rbx)
	movq	(%rsi), %rdx
	movq	%rdx, 8(%rax,%rbx)
	movq	(%rsi), %rdx
	movq	%rdx, (%rax,%rbx)
	addq	$24, %rbx
	addq	$8, %rsi
	cmpq	%rbx, %rdi
	je	LBB0_10
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdx
	testl	%ecx, %ecx
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%rsi, %rdx
	cmpq	%r8, 8(%r14)
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%r13, %rdx
	jmp	LBB0_9
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NUM_TID,4,2                ## @MAX_NUM_TID
	.comm	_disable_tx_amsdu,4,2           ## @disable_tx_amsdu
	.comm	_MWIFIEX_TX_DATA_BUF_SIZE_2K,8,3 ## @MWIFIEX_TX_DATA_BUF_SIZE_2K
	.comm	_BA_STREAM_NOT_ALLOWED,8,3      ## @BA_STREAM_NOT_ALLOWED
	.comm	_MWIFIEX_WMM_DRV_DELAY_MAX,4,2  ## @MWIFIEX_WMM_DRV_DELAY_MAX
	.comm	_HIGH_PRIO_TID,4,2              ## @HIGH_PRIO_TID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_wmm_init               ; -- Begin function mwifiex_wmm_init
	.p2align	2
_mwifiex_wmm_init:                      ; @mwifiex_wmm_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x0
	mov	x21, #0
Lloh0:
	adrp	x22, _MAX_NUM_TID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_NUM_TID@GOTPAGEOFF]
Lloh2:
	adrp	x23, _disable_tx_amsdu@GOTPAGE
Lloh3:
	ldr	x23, [x23, _disable_tx_amsdu@GOTPAGEOFF]
Lloh4:
	adrp	x24, _MWIFIEX_TX_DATA_BUF_SIZE_2K@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MWIFIEX_TX_DATA_BUF_SIZE_2K@GOTPAGEOFF]
Lloh6:
	adrp	x25, _BA_STREAM_NOT_ALLOWED@GOTPAGE
Lloh7:
	ldr	x25, [x25, _BA_STREAM_NOT_ALLOWED@GOTPAGEOFF]
Lloh8:
	adrp	x26, _MWIFIEX_WMM_DRV_DELAY_MAX@GOTPAGE
Lloh9:
	ldr	x26, [x26, _MWIFIEX_WMM_DRV_DELAY_MAX@GOTPAGEOFF]
Lloh10:
	adrp	x27, _HIGH_PRIO_TID@GOTPAGE
Lloh11:
	ldr	x27, [x27, _HIGH_PRIO_TID@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x25]
	stp	x9, x9, [x8, #144]
	stp	x9, x9, [x8, #160]
	stp	x9, x9, [x8, #176]
	mov	x0, x20
	bl	_mwifiex_set_ba_params
	mov	x0, x20
	bl	_mwifiex_reset_11n_rx_seq_num
	ldr	w8, [x26]
	str	w8, [x20, #8]
	add	x0, x20, #4
	mov	w1, #0
	bl	_atomic_set
	ldr	w1, [x27]
	mov	x0, x20
	bl	_atomic_set
	ldr	w8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x9, [x19, #16]
	ldr	x20, [x9, x21, lsl #3]
	cbz	x20, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w13, [x22]
	cmp	w13, #0
	b.le	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, #0
	ldr	w10, [x23]
	ldr	x11, [x24]
	ldp	x8, x12, [x20, #16]
	add	x13, x13, x13, lsl #1
	lsl	x13, x13, #3
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x14, [x14]
	add	x15, x8, x9
	str	x14, [x15, #16]
	ldr	x14, [x12]
	str	x14, [x15, #8]
	ldr	x14, [x12], #8
	str	x14, [x15]
	add	x9, x9, #24
	cmp	x13, x9
	b.eq	LBB0_3
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x14, x25
	cbnz	w10, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x14, [x19, #8]
	cmp	x14, x11
	csel	x14, x12, x25, gt
	b	LBB0_8
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NUM_TID,4,2                ; @MAX_NUM_TID
	.comm	_disable_tx_amsdu,4,2           ; @disable_tx_amsdu
	.comm	_MWIFIEX_TX_DATA_BUF_SIZE_2K,8,3 ; @MWIFIEX_TX_DATA_BUF_SIZE_2K
	.comm	_BA_STREAM_NOT_ALLOWED,8,3      ; @BA_STREAM_NOT_ALLOWED
	.comm	_MWIFIEX_WMM_DRV_DELAY_MAX,4,2  ; @MWIFIEX_WMM_DRV_DELAY_MAX
	.comm	_HIGH_PRIO_TID,4,2              ; @HIGH_PRIO_TID
.subsections_via_symbols
