	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_wmm_setup_ac_downgrade ## -- Begin function mwifiex_wmm_setup_ac_downgrade
	.p2align	4, 0x90
_mwifiex_wmm_setup_ac_downgrade:        ## @mwifiex_wmm_setup_ac_downgrade
	.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
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	cmpl	$0, 12(%r14)
	movq	_WMM_AC_BK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movslq	%r12d, %rbx
	movq	_WMM_AC_VO@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	je	LBB0_1
## %bb.4:
	cmpl	%eax, %r12d
	jg	LBB0_7
## %bb.5:
	decq	%rbx
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_mwifiex_wmm_eval_downgrade_ac
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx,%rbx,4)
	movl	8(%r14), %edi
	movq	_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movslq	(%r13), %rax
	incq	%rbx
	incl	%r12d
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_7
LBB0_1:
	cmpl	%eax, %r12d
	jg	LBB0_7
## %bb.2:
	movq	(%r14), %rax
	decq	%rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, 4(%rax,%rbx,4)
	movslq	(%r13), %rcx
	incq	%rbx
	incl	%r12d
	cmpq	%rcx, %rbx
	jl	LBB0_3
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: WMM: AC Priorities:\tBK(0), BE(1), VI(2), VO(3)\n"

	.comm	_WMM_AC_BK,4,2                  ## @WMM_AC_BK
	.comm	_WMM_AC_VO,4,2                  ## @WMM_AC_VO
L_.str.1:                               ## @.str.1
	.asciz	"info: WMM: AC PRIO %d maps to %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_wmm_setup_ac_downgrade ; -- Begin function mwifiex_wmm_setup_ac_downgrade
	.p2align	2
_mwifiex_wmm_setup_ac_downgrade:        ; @mwifiex_wmm_setup_ac_downgrade
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x23, _INFO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _INFO@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
	ldr	w9, [x19, #12]
Lloh4:
	adrp	x8, _WMM_AC_BK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WMM_AC_BK@GOTPAGEOFF]
Lloh6:
	ldrsw	x20, [x8]
Lloh7:
	adrp	x22, _WMM_AC_VO@GOTPAGE
Lloh8:
	ldr	x22, [x22, _WMM_AC_VO@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w20, w8
	cbz	w9, LBB0_4
; %bb.1:
	b.gt	LBB0_7
; %bb.2:
Lloh9:
	adrp	x21, l_.str.1@PAGE
Lloh10:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_mwifiex_wmm_eval_downgrade_ac
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19]
	str	w0, [x8, x20, lsl #2]
	ldr	w8, [x19, #8]
	ldr	w1, [x23]
	stp	x20, x0, [sp]
	mov	x0, x8
	mov	x2, x21
	bl	_mwifiex_dbg
	add	x8, x20, #1
	ldrsw	x9, [x22]
	cmp	x20, x9
	mov	x20, x8
	b.lt	LBB0_3
	b	LBB0_7
LBB0_4:
	b.gt	LBB0_7
; %bb.5:
	ldr	x8, [x19]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	w20, [x8, x20, lsl #2]
	add	x9, x20, #1
	ldrsw	x10, [x22]
	cmp	x20, x10
	mov	x20, x9
	b.lt	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: WMM: AC Priorities:\tBK(0), BE(1), VI(2), VO(3)\n"

	.comm	_WMM_AC_BK,4,2                  ; @WMM_AC_BK
	.comm	_WMM_AC_VO,4,2                  ; @WMM_AC_VO
l_.str.1:                               ; @.str.1
	.asciz	"info: WMM: AC PRIO %d maps to %d\n"

.subsections_via_symbols
