	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_index_to_data_rate     ## -- Begin function mwifiex_index_to_data_rate
	.p2align	4, 0x90
_mwifiex_index_to_data_rate:            ## @mwifiex_index_to_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	%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), %rax
	movq	(%rax), %rcx
	movq	_HT_STREAM_2X2@GOTPCREL(%rip), %rbx
	xorl	%r13d, %r13d
	cmpq	(%rbx), %rcx
	movl	%edx, %r12d
	movl	%esi, %r14d
	sete	%r15b
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.17:
	movl	%r14d, %esi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mwifiex_index_to_acs_data_rate ## TAILCALL
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_14
## %bb.2:
	movq	_MWIFIEX_RATE_BITMAP_MCS0@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	$2, %edi
	callq	_BIT
	andl	%r12d, %eax
	cmpl	$1, %eax
	movl	$13, %eax
	sbbl	$0, %eax
	jmp	LBB0_16
LBB0_14:
	movq	_MWIFIEX_SUPPORTED_RATES_EXT@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	cmovgl	%r14d, %ebx
	movq	_mwifiex_data_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
LBB0_15:
	movl	(%rax,%rcx,4), %eax
	jmp	LBB0_16
LBB0_4:
	movb	%r15b, %r13b
	leal	8(,%r13,8), %eax
	cmpl	%r14d, %eax
	jle	LBB0_13
## %bb.5:
	movl	$1, %edi
	callq	_BIT
	movl	%eax, %r15d
	movl	$2, %edi
	callq	_BIT
	movq	_mcs_rate@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%r12d, %r15d
	je	LBB0_10
## %bb.6:
	testl	%r12d, %eax
	je	LBB0_9
## %bb.7:
	movq	8(%rcx), %rax
	movslq	%r14d, %rcx
	jmp	LBB0_15
LBB0_13:
	movq	_mwifiex_data_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testl	%r12d, %eax
	je	LBB0_12
## %bb.11:
	movq	24(%rcx), %rax
	movslq	%r14d, %rcx
	jmp	LBB0_15
LBB0_9:
	movq	(%rcx), %rax
	movslq	%r14d, %rcx
	jmp	LBB0_15
LBB0_12:
	movq	16(%rcx), %rax
	movslq	%r14d, %rcx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_HT_STREAM_2X2,8,3              ## @HT_STREAM_2X2
	.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_data_rate     ; -- Begin function mwifiex_index_to_data_rate
	.p2align	2
_mwifiex_index_to_data_rate:            ; @mwifiex_index_to_data_rate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HT_STREAM_2X2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HT_STREAM_2X2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldp	x10, x8, [x8]
	cmp	x10, x9
	mov	w9, #8
	mov	w10, #16
	csel	w21, w10, w9, eq
	cbz	x8, LBB0_2
; %bb.1:
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mwifiex_index_to_acs_data_rate
LBB0_2:
	mov	w0, #0
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _MWIFIEX_RATE_BITMAP_MCS0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MWIFIEX_RATE_BITMAP_MCS0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.4:
	mov	w0, #2
	bl	_BIT
	tst	w0, w20
	mov	w8, #12
	cinc	w0, w8, ne
	b	LBB0_11
LBB0_5:
Lloh6:
	adrp	x8, _MWIFIEX_SUPPORTED_RATES_EXT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MWIFIEX_SUPPORTED_RATES_EXT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w19
	csel	w8, w19, wzr, gt
Lloh9:
	adrp	x9, _mwifiex_data_rates@GOTPAGE
Lloh10:
	ldr	x9, [x9, _mwifiex_data_rates@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_11
LBB0_6:
	cmp	w21, w19
	b.le	LBB0_10
; %bb.7:
	mov	w0, #1
	bl	_BIT
	and	w21, w0, w20
	mov	w0, #2
	bl	_BIT
	and	w9, w0, w20
Lloh12:
	adrp	x8, _mcs_rate@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mcs_rate@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	w21, LBB0_12
; %bb.8:
	cbz	w9, LBB0_14
; %bb.9:
	ldr	x8, [x8, #8]
	ldr	w0, [x8, w19, sxtw #2]
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x8, _mwifiex_data_rates@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mwifiex_data_rates@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	w0, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	cbz	w9, LBB0_15
; %bb.13:
	ldr	x8, [x8, #24]
	ldr	w0, [x8, w19, sxtw #2]
	b	LBB0_11
LBB0_14:
	ldr	x8, [x8]
	ldr	w0, [x8, w19, sxtw #2]
	b	LBB0_11
LBB0_15:
	ldr	x8, [x8, #16]
	ldr	w0, [x8, w19, sxtw #2]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HT_STREAM_2X2,8,3              ; @HT_STREAM_2X2
	.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
