	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_wmm_setup_queue_priorities ## -- Begin function mwifiex_wmm_setup_queue_priorities
	.p2align	4, 0x90
_mwifiex_wmm_setup_queue_priorities:    ## @mwifiex_wmm_setup_queue_priorities
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	cmpl	$0, 12(%r13)
	je	LBB0_2
## %bb.4:
	movq	%rsi, %r14
	movl	8(%r13), %edi
	movq	_INFO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_IEEE80211_WMM_IE_AP_QOSINFO_PARAM_SET_CNT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	andl	4(%r14), %r8d
	movl	(%r14), %ecx
	movl	8(%r14), %r9d
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	16(%r14), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r15
	movq	16(%r14), %rcx
	leaq	(,%r12,8), %r12
	movl	(%rcx,%r15,8), %eax
	movl	4(%rcx,%r15,8), %edx
	movq	_MWIFIEX_ECW_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	$-1, %r8d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r8d
	notl	%r8d
	movl	%r8d, %ecx
	sarl	%ecx
	movq	_MWIFIEX_AIFSN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	andl	%edx, %r9d
	addl	%ecx, %r9d
	movq	_wmm_aci_to_qidx_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_MWIFIEX_ACI@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edx
	sarl	$5, %edx
	movslq	%edx, %rdx
	movslq	(%rcx,%rdx,4), %rcx
	movq	(%r13), %rdx
	movl	%ecx, (%rdx,%rcx,4)
	movl	%r9d, -64(%rbp,%rcx,4)
	movl	8(%r13), %edi
	movl	(%rbx), %esi
	movq	_MWIFIEX_ECW_MAX@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	shrl	$4, %eax
	movq	%rbx, %r10
	movl	$-1, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	notl	%ebx
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	movq	%r10, %rbx
	callq	_mwifiex_dbg
	addq	16(%r14), %r12
	movq	%r12, %rdi
	callq	_mwifiex_wmm_ac_debug_print
	leaq	1(%r15), %r12
	movq	16(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r12
	jb	LBB0_6
## %bb.7:
	movl	-64(%rbp), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%r14), %rax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r14, %r15
	movq	%rax, %r14
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_17
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	subq	%r14, %r12
	cmpq	$2, %r12
	jb	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %r15d
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	%ebx, %esi
	callq	_swap
	movq	(%r13), %rax
	movl	-4(%rax,%r15,4), %edi
	movl	(%rax,%r15,4), %esi
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	callq	_swap
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=2
	incq	%r15
	cmpq	%r12, %r15
	jae	LBB0_16
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	movl	-64(%rbp,%r15,4), %ebx
	cmpl	%ebx, %edi
	jg	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r13), %rax
	movl	-4(%rax,%r15,4), %edi
	movl	(%rax,%r15,4), %esi
	cmpl	%esi, %edi
	jl	LBB0_14
	jmp	LBB0_15
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.3:
	movq	%r13, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mwifiex_wmm_default_queue_priorities ## TAILCALL
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.19:
	movq	%r13, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mwifiex_wmm_queue_priorities_tid ## TAILCALL
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: WMM Parameter IE: version=%d,\tqos_info Parameter Set Count=%d, Reserved=%#x\n"

	.comm	_IEEE80211_WMM_IE_AP_QOSINFO_PARAM_SET_CNT_MASK,4,2 ## @IEEE80211_WMM_IE_AP_QOSINFO_PARAM_SET_CNT_MASK
	.comm	_MWIFIEX_ECW_MIN,4,2            ## @MWIFIEX_ECW_MIN
	.comm	_MWIFIEX_AIFSN,4,2              ## @MWIFIEX_AIFSN
	.comm	_wmm_aci_to_qidx_map,8,3        ## @wmm_aci_to_qidx_map
	.comm	_MWIFIEX_ACI,4,2                ## @MWIFIEX_ACI
L_.str.1:                               ## @.str.1
	.asciz	"info: WMM: CWmax=%d CWmin=%d Avg Back-off=%d\n"

	.comm	_MWIFIEX_ECW_MAX,4,2            ## @MWIFIEX_ECW_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_wmm_setup_queue_priorities ; -- Begin function mwifiex_wmm_setup_queue_priorities
	.p2align	2
_mwifiex_wmm_setup_queue_priorities:    ; @mwifiex_wmm_setup_queue_priorities
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x1, LBB0_15
; %bb.1:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_15
; %bb.2:
	mov	x20, x1
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x27, _INFO@GOTPAGE
Lloh4:
	ldr	x27, [x27, _INFO@GOTPAGEOFF]
	ldr	w1, [x27]
	ldp	w3, w8, [x20]
Lloh5:
	adrp	x9, _IEEE80211_WMM_IE_AP_QOSINFO_PARAM_SET_CNT_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_WMM_IE_AP_QOSINFO_PARAM_SET_CNT_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w4, w9, w8
	ldr	w5, [x20, #8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
	ldr	x0, [x20, #16]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_17
; %bb.3:
	mov	x24, #0
	mov	x22, #0
Lloh10:
	adrp	x28, _MWIFIEX_ACI@GOTPAGE
Lloh11:
	ldr	x28, [x28, _MWIFIEX_ACI@GOTPAGEOFF]
	mov	w23, #-1
	add	x25, sp, #8
Lloh12:
	adrp	x26, _MWIFIEX_ECW_MAX@GOTPAGE
Lloh13:
	ldr	x26, [x26, _MWIFIEX_ECW_MAX@GOTPAGEOFF]
Lloh14:
	adrp	x21, l_.str.1@PAGE
Lloh15:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x8, x8, x24
	ldp	w9, w8, [x8]
Lloh16:
	adrp	x10, _MWIFIEX_ECW_MIN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MWIFIEX_ECW_MIN@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	and	w10, w10, w9
	lsl	w10, w23, w10
	mvn	w4, w10
Lloh19:
	adrp	x10, _MWIFIEX_AIFSN@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MWIFIEX_AIFSN@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	and	w10, w10, w8
	add	w5, w10, w4, asr #1
Lloh22:
	adrp	x10, _wmm_aci_to_qidx_map@GOTPAGE
Lloh23:
	ldr	x10, [x10, _wmm_aci_to_qidx_map@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	ldr	w11, [x28]
	and	w8, w11, w8
	asr	w8, w8, #5
	ldrsw	x8, [x10, w8, sxtw #2]
	ldr	x10, [x19]
	lsl	x11, x8, #2
	str	w8, [x10, x11]
	str	w5, [x25, x11]
	ldr	w0, [x19, #8]
	ldr	w1, [x27]
	ldr	w8, [x26]
	and	w8, w8, w9
	asr	w8, w8, #4
	lsl	w8, w23, w8
	mvn	w3, w8
	mov	x2, x21
	bl	_mwifiex_dbg
	ldr	x8, [x20, #16]
	add	x0, x8, x24
	bl	_mwifiex_wmm_ac_debug_print
	add	x22, x22, #1
	ldr	x0, [x20, #16]
	bl	_ARRAY_SIZE
	add	x24, x24, #8
	cmp	x22, x0
	b.lo	LBB0_4
; %bb.5:
	mov	x23, #0
	ldr	w21, [sp, #8]
	add	x8, sp, #8
	add	x24, x8, #4
	sub	x25, x22, #1
	mov	x26, x25
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x23, #1
	sub	x26, x26, #1
	cmp	x25, x23
	mov	x23, x8
	b.eq	LBB0_17
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	sub	x8, x22, x23
	cmp	x8, #2
	b.lo	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x27, #0
	mov	x20, x21
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=2
	mov	x1, x20
	bl	_swap
	ldr	x8, [x19]
	add	x8, x8, x27, lsl #2
	ldp	w0, w1, [x8]
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	bl	_swap
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x27, x27, #1
	cmp	x26, x27
	b.eq	LBB0_6
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	ldr	w20, [x24, x27, lsl #2]
	cmp	w0, w20
	b.gt	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	b.ne	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x19]
	add	x8, x8, x27, lsl #2
	ldp	w0, w1, [x8]
	cmp	w0, w1
	b.lt	LBB0_10
	b	LBB0_11
LBB0_15:
	ldr	x8, [sp, #24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.16:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_mwifiex_wmm_default_queue_priorities
LBB0_17:
	ldr	x8, [sp, #24]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_mwifiex_wmm_queue_priorities_tid
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: WMM Parameter IE: version=%d,\tqos_info Parameter Set Count=%d, Reserved=%#x\n"

	.comm	_IEEE80211_WMM_IE_AP_QOSINFO_PARAM_SET_CNT_MASK,4,2 ; @IEEE80211_WMM_IE_AP_QOSINFO_PARAM_SET_CNT_MASK
	.comm	_MWIFIEX_ECW_MIN,4,2            ; @MWIFIEX_ECW_MIN
	.comm	_MWIFIEX_AIFSN,4,2              ; @MWIFIEX_AIFSN
	.comm	_wmm_aci_to_qidx_map,8,3        ; @wmm_aci_to_qidx_map
	.comm	_MWIFIEX_ACI,4,2                ; @MWIFIEX_ACI
l_.str.1:                               ; @.str.1
	.asciz	"info: WMM: CWmax=%d CWmin=%d Avg Back-off=%d\n"

	.comm	_MWIFIEX_ECW_MAX,4,2            ; @MWIFIEX_ECW_MAX
.subsections_via_symbols
