	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_get_rates_from_cfg80211 ## -- Begin function mwifiex_get_rates_from_cfg80211
	.p2align	4, 0x90
_mwifiex_get_rates_from_cfg80211:       ## @mwifiex_get_rates_from_cfg80211
	.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	%rsi, %r14
	movq	(%rdi), %r13
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_2:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rbx
LBB0_3:
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_WARN_ON_ONCE
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_4
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.6:
	movq	(%r13), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %r13d
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rax
	movslq	(%rax,%rbx,4), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$33, %rax
	addl	%ecx, %eax
	cltq
	movslq	%r15d, %rcx
	incl	%r15d
	movq	%rax, (%r14,%rcx,8)
	jmp	LBB0_9
LBB0_5:
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_get_rates_from_cfg80211 ; -- Begin function mwifiex_get_rates_from_cfg80211
	.p2align	2
_mwifiex_get_rates_from_cfg80211:       ; @mwifiex_get_rates_from_cfg80211
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	ldp	x23, x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x24, _NL80211_BAND_5GHZ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NL80211_BAND_5GHZ@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x24, _NL80211_BAND_2GHZ@GOTPAGE
Lloh3:
	ldr	x24, [x24, _NL80211_BAND_2GHZ@GOTPAGEOFF]
LBB0_3:
	ldr	x9, [x24]
	ldr	x22, [x8, x9, lsl #3]
	cmp	x22, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_6
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.7:
	mov	x21, #0
	mov	w20, #0
	ldr	x8, [x23]
	ldr	x9, [x24]
	ldr	w23, [x8, x9, lsl #2]
	mov	w24, #26215
	movk	w24, #26214, lsl #16
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.ge	LBB0_5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x22, #8]
	ldrsw	x8, [x8, x21, lsl #2]
	mul	x8, x8, x24
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	sxtw	x8, w8
	str	x8, [x19, w20, sxtw #3]
	add	w20, w20, #1
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
.subsections_via_symbols
