	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_wmm_eval_downgrade_ac
_mwifiex_wmm_eval_downgrade_ac:         ## @mwifiex_wmm_eval_downgrade_ac
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movl	%esi, %eax
	cmpl	$0, 4(%rcx,%rax,8)
	je	LBB0_1
## %bb.2:
	movq	_WMM_AC_BK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	jae	LBB0_11
## %bb.3:
	movslq	%eax, %rdx
	movl	%esi, %edi
	subl	%eax, %edi
	movl	%eax, %r8d
	notl	%r8d
	testb	$1, %dil
	je	LBB0_5
## %bb.4:
	incq	%rdx
LBB0_5:
	addl	%esi, %r8d
	jne	LBB0_6
LBB0_11:
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rdx
	cmpl	%esi, %edx
	jae	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 4(%rcx,%rdx,8)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 12(%rcx,%rdx,8)
	jne	LBB0_10
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, (%rcx,%rdx,8)
	cmovel	%edx, %eax
	cmpl	$0, 12(%rcx,%rdx,8)
	jne	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	leal	1(%rdx), %edi
	cmpl	$0, 8(%rcx,%rdx,8)
	cmovel	%edi, %eax
	jmp	LBB0_10
LBB0_1:
	movl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMM_AC_BK,4,2                  ## @WMM_AC_BK
	.no_dead_strip	_mwifiex_wmm_eval_downgrade_ac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_wmm_eval_downgrade_ac
_mwifiex_wmm_eval_downgrade_ac:         ; @mwifiex_wmm_eval_downgrade_ac
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	add	x8, x9, w1, uxtw #3
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _WMM_AC_BK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMM_AC_BK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.hs	LBB0_7
; %bb.2:
	sxtw	x10, w8
	add	x9, x9, x10, lsl #3
	add	x9, x9, #4
	mov	x0, x8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	add	w8, w8, #1
	cmp	w8, w1
	b.hs	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cbnz	w10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w10, [x9, #-4]
	cmp	w10, #0
	csel	w0, w8, w0, eq
	b	LBB0_3
LBB0_6:
	mov	x0, x1
	ret
LBB0_7:
	mov	x0, x8
LBB0_8:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WMM_AC_BK,4,2                  ; @WMM_AC_BK
	.no_dead_strip	_mwifiex_wmm_eval_downgrade_ac
.subsections_via_symbols
