	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_index_to_acs_data_rate ## -- Begin function mwifiex_index_to_acs_data_rate
	.p2align	4, 0x90
_mwifiex_index_to_acs_data_rate:        ## @mwifiex_index_to_acs_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
	movl	%edx, %eax
	andl	$3, %eax
	movq	_MWIFIEX_RATE_FORMAT_VHT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.1:
	movl	%r14d, %edi
	andl	$15, %edi
	movl	$9, %esi
	callq	_min
	movl	%ebx, %ecx
	shrl	$2, %ecx
	andl	$3, %ecx
	shrl	$4, %ebx
	andl	$1, %ebx
	andl	$-16, %r14d
	cmpl	$16, %r14d
	jne	LBB0_4
## %bb.2:
	movq	_ac_mcs_rate_nss2@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_5:
	movq	_MWIFIEX_RATE_FORMAT_HT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.6:
	movl	%ebx, %eax
	shrl	$4, %eax
	andl	$1, %eax
	movq	_MWIFIEX_RATE_BITMAP_MCS0@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_8
## %bb.7:
	orl	$12, %eax
	jmp	LBB0_14
LBB0_4:
	movq	_ac_mcs_rate_nss1@GOTPCREL(%rip), %rdx
LBB0_3:
	movq	(%rdx), %rdx
	leal	(%rbx,%rcx,2), %ecx
	xorl	$6, %ecx
	movq	(%rdx,%rcx,8), %rcx
	cltq
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_14
LBB0_12:
	movq	_MWIFIEX_SUPPORTED_RATES_EXT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r14d, (%rax)
	cmovgl	%r14d, %ecx
	movq	_mwifiex_data_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ecx, %rcx
LBB0_13:
	movl	(%rax,%rcx,4), %eax
	jmp	LBB0_14
LBB0_8:
	cmpl	$15, %r14d
	jg	LBB0_11
## %bb.9:
	shrl	$2, %ebx
	andl	$3, %ebx
	cmpl	$1, %ebx
	ja	LBB0_11
## %bb.10:
	movq	_mcs_rate@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addl	%ebx, %ebx
	subl	%ebx, %eax
	addl	$2, %eax
	cltq
	movq	(%rcx,%rax,8), %rax
	movslq	%r14d, %rcx
	jmp	LBB0_13
LBB0_11:
	movq	_mwifiex_data_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_RATE_FORMAT_VHT,4,2    ## @MWIFIEX_RATE_FORMAT_VHT
	.comm	_ac_mcs_rate_nss2,8,3           ## @ac_mcs_rate_nss2
	.comm	_ac_mcs_rate_nss1,8,3           ## @ac_mcs_rate_nss1
	.comm	_MWIFIEX_RATE_FORMAT_HT,4,2     ## @MWIFIEX_RATE_FORMAT_HT
	.comm	_MWIFIEX_RATE_BITMAP_MCS0,4,2   ## @MWIFIEX_RATE_BITMAP_MCS0
	.comm	_mcs_rate,8,3                   ## @mcs_rate
	.comm	_mwifiex_data_rates,8,3         ## @mwifiex_data_rates
	.comm	_MWIFIEX_SUPPORTED_RATES_EXT,4,2 ## @MWIFIEX_SUPPORTED_RATES_EXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_index_to_acs_data_rate ; -- Begin function mwifiex_index_to_acs_data_rate
	.p2align	2
_mwifiex_index_to_acs_data_rate:        ; @mwifiex_index_to_acs_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
	and	w8, w2, #0x3
Lloh0:
	adrp	x9, _MWIFIEX_RATE_FORMAT_VHT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MWIFIEX_RATE_FORMAT_VHT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	and	w0, w19, #0xf
	mov	w1, #9
	bl	_min
	ubfx	w9, w20, #2, #2
	ubfx	w8, w20, #4, #1
	and	w10, w19, #0xfffffff0
	cmp	w10, #16
	b.ne	LBB0_6
; %bb.2:
Lloh3:
	adrp	x10, _ac_mcs_rate_nss2@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ac_mcs_rate_nss2@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh5:
	adrp	x9, _MWIFIEX_RATE_FORMAT_HT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MWIFIEX_RATE_FORMAT_HT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.4:
	ubfx	w8, w20, #4, #1
Lloh8:
	adrp	x9, _MWIFIEX_RATE_BITMAP_MCS0@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MWIFIEX_RATE_BITMAP_MCS0@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w9, w19
	b.ne	LBB0_9
; %bb.5:
	orr	w0, w8, #0xc
	b	LBB0_13
LBB0_6:
Lloh11:
	adrp	x10, _ac_mcs_rate_nss1@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ac_mcs_rate_nss1@GOTPAGEOFF]
LBB0_7:
	ldr	x10, [x10]
	bfi	w8, w9, #1, #2
	eor	w8, w8, #0x6
	ldr	x8, [x10, w8, uxtw #3]
	ldr	w0, [x8, w0, sxtw #2]
	b	LBB0_13
LBB0_8:
Lloh13:
	adrp	x8, _MWIFIEX_SUPPORTED_RATES_EXT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MWIFIEX_SUPPORTED_RATES_EXT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w19
	csel	w8, w19, wzr, gt
Lloh16:
	adrp	x9, _mwifiex_data_rates@GOTPAGE
Lloh17:
	ldr	x9, [x9, _mwifiex_data_rates@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_13
LBB0_9:
	cmp	w19, #15
	b.gt	LBB0_12
; %bb.10:
	ubfx	w9, w20, #2, #2
	cmp	w9, #1
	b.hi	LBB0_12
; %bb.11:
Lloh19:
	adrp	x10, _mcs_rate@GOTPAGE
Lloh20:
	ldr	x10, [x10, _mcs_rate@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	sub	w8, w8, w9, lsl #1
	add	w8, w8, #2
	ldr	x8, [x10, w8, sxtw #3]
	ldr	w0, [x8, w19, sxtw #2]
	b	LBB0_13
LBB0_12:
Lloh22:
	adrp	x8, _mwifiex_data_rates@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mwifiex_data_rates@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_RATE_FORMAT_VHT,4,2    ; @MWIFIEX_RATE_FORMAT_VHT
	.comm	_ac_mcs_rate_nss2,8,3           ; @ac_mcs_rate_nss2
	.comm	_ac_mcs_rate_nss1,8,3           ; @ac_mcs_rate_nss1
	.comm	_MWIFIEX_RATE_FORMAT_HT,4,2     ; @MWIFIEX_RATE_FORMAT_HT
	.comm	_MWIFIEX_RATE_BITMAP_MCS0,4,2   ; @MWIFIEX_RATE_BITMAP_MCS0
	.comm	_mcs_rate,8,3                   ; @mcs_rate
	.comm	_mwifiex_data_rates,8,3         ; @mwifiex_data_rates
	.comm	_MWIFIEX_SUPPORTED_RATES_EXT,4,2 ; @MWIFIEX_SUPPORTED_RATES_EXT
.subsections_via_symbols
