	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_adjust_data_rate       ## -- Begin function mwifiex_adjust_data_rate
	.p2align	4, 0x90
_mwifiex_adjust_data_rate:              ## @mwifiex_adjust_data_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	xorl	%edi, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_3
## %bb.1:
	movl	$1, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_3
## %bb.2:
	movq	_MWIFIEX_RATE_INDEX_MCS0@GOTPCREL(%rip), %rax
	movq	_MWIFIEX_BW20_MCS_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rax), %ecx
	jmp	LBB0_6
LBB0_3:
	xorl	%edi, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_5
## %bb.4:
	movq	_MWIFIEX_RATE_INDEX_MCS0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_6
LBB0_5:
	movq	_MWIFIEX_RATE_INDEX_OFDM0@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r14d, (%rax)
	setl	%cl
	negl	%ecx
LBB0_6:
	addl	%r14d, %ecx
	movq	_MWIFIEX_MAX_AC_RX_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	-1(%rdx), %eax
	cmpl	%edx, %ecx
	cmovll	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_RATE_INDEX_MCS0,4,2    ## @MWIFIEX_RATE_INDEX_MCS0
	.comm	_MWIFIEX_BW20_MCS_NUM,4,2       ## @MWIFIEX_BW20_MCS_NUM
	.comm	_MWIFIEX_RATE_INDEX_OFDM0,4,2   ## @MWIFIEX_RATE_INDEX_OFDM0
	.comm	_MWIFIEX_MAX_AC_RX_RATES,4,2    ## @MWIFIEX_MAX_AC_RX_RATES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_adjust_data_rate       ; -- Begin function mwifiex_adjust_data_rate
	.p2align	2
_mwifiex_adjust_data_rate:              ; @mwifiex_adjust_data_rate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
	mov	w0, #0
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _MWIFIEX_RATE_INDEX_MCS0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWIFIEX_RATE_INDEX_MCS0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MWIFIEX_BW20_MCS_NUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MWIFIEX_BW20_MCS_NUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w9, w8
	b	LBB0_6
LBB0_3:
	mov	w0, #0
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _MWIFIEX_RATE_INDEX_MCS0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MWIFIEX_RATE_INDEX_MCS0@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _MWIFIEX_RATE_INDEX_OFDM0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MWIFIEX_RATE_INDEX_OFDM0@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w19
	csetm	w8, lt
LBB0_6:
Lloh12:
	adrp	x9, _MWIFIEX_MAX_AC_RX_RATES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MWIFIEX_MAX_AC_RX_RATES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	sub	w10, w9, #1
	add	w8, w8, w19
	cmp	w8, w9
	csel	w0, w8, w10, lt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_RATE_INDEX_MCS0,4,2    ; @MWIFIEX_RATE_INDEX_MCS0
	.comm	_MWIFIEX_BW20_MCS_NUM,4,2       ; @MWIFIEX_BW20_MCS_NUM
	.comm	_MWIFIEX_RATE_INDEX_OFDM0,4,2   ; @MWIFIEX_RATE_INDEX_OFDM0
	.comm	_MWIFIEX_MAX_AC_RX_RATES,4,2    ; @MWIFIEX_MAX_AC_RX_RATES
.subsections_via_symbols
