	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_convert_mcsmap_to_maxrate
_mwifiex_convert_mcsmap_to_maxrate:     ## @mwifiex_convert_mcsmap_to_maxrate
	.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	%rdx, %r15
	movq	(%rdi), %rax
	movq	_BAND_AAC@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %esi
	setne	%dl
	movl	(%rax,%rdx,4), %r14d
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_GET_VHTNSSMCS
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_GET_VHTNSSMCS
	movq	_IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	cmpl	(%r12), %eax
	setl	%bl
	incl	%ebx
	movl	$3, %r13d
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_GET_VHTNSSMCS
	cmpl	(%r12), %eax
	cmovll	%r13d, %ebx
	movl	$4, %r13d
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_GET_VHTNSSMCS
	cmpl	(%r12), %eax
	cmovll	%r13d, %ebx
	movl	$5, %r13d
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_GET_VHTNSSMCS
	cmpl	(%r12), %eax
	cmovll	%r13d, %ebx
	movl	$6, %r13d
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_GET_VHTNSSMCS
	cmpl	(%r12), %eax
	cmovll	%r13d, %ebx
	movl	$7, %r13d
	movq	%r15, %rdi
	movl	$7, %esi
	callq	_GET_VHTNSSMCS
	cmpl	(%r12), %eax
	cmovll	%r13d, %ebx
	movl	$8, %r13d
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_GET_VHTNSSMCS
	cmpl	(%r12), %eax
	cmovll	%r13d, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_GET_VHTNSSMCS
	movl	%eax, %r15d
	cmpl	(%r12), %eax
	jne	LBB0_2
## %bb.1:
	movq	_IEEE80211_VHT_MCS_SUPPORT_0_9@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movl	%r14d, %edi
	callq	_GET_VHTCAP_CHWDSET
	movslq	%r15d, %rcx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_max_rate_lgi_160MHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_max_rate_lgi_80MHZ@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	decl	%ebx
	movq	(%rax,%rbx,8), %rdx
	movq	(%rdx,%rcx,8), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	-8(%rdx,%rcx,8), %rax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BAND_AAC,4,2                   ## @BAND_AAC
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ## @IEEE80211_VHT_MCS_NOT_SUPPORTED
	.comm	_IEEE80211_VHT_MCS_SUPPORT_0_9,4,2 ## @IEEE80211_VHT_MCS_SUPPORT_0_9
	.comm	_max_rate_lgi_160MHZ,8,3        ## @max_rate_lgi_160MHZ
	.comm	_max_rate_lgi_80MHZ,8,3         ## @max_rate_lgi_80MHZ
	.no_dead_strip	_mwifiex_convert_mcsmap_to_maxrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_convert_mcsmap_to_maxrate
_mwifiex_convert_mcsmap_to_maxrate:     ; @mwifiex_convert_mcsmap_to_maxrate
	.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	x20, x2
Lloh0:
	adrp	x8, _BAND_AAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BAND_AAC@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	cset	w8, ne
	ldr	w19, [x9, w8, uxtw #2]
	mov	w21, #1
	mov	x0, x2
	mov	w1, #1
	bl	_GET_VHTNSSMCS
	mov	x0, x20
	mov	w1, #2
	bl	_GET_VHTNSSMCS
Lloh3:
	adrp	x22, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	cinc	w21, w21, lt
	mov	w23, #3
	mov	x0, x20
	mov	w1, #3
	bl	_GET_VHTNSSMCS
	ldr	w8, [x22]
	cmp	w0, w8
	csel	w21, w23, w21, lt
	mov	w23, #4
	mov	x0, x20
	mov	w1, #4
	bl	_GET_VHTNSSMCS
	ldr	w8, [x22]
	cmp	w0, w8
	csel	w21, w23, w21, lt
	mov	w23, #5
	mov	x0, x20
	mov	w1, #5
	bl	_GET_VHTNSSMCS
	ldr	w8, [x22]
	cmp	w0, w8
	csel	w21, w23, w21, lt
	mov	w23, #6
	mov	x0, x20
	mov	w1, #6
	bl	_GET_VHTNSSMCS
	ldr	w8, [x22]
	cmp	w0, w8
	csel	w21, w23, w21, lt
	mov	w23, #7
	mov	x0, x20
	mov	w1, #7
	bl	_GET_VHTNSSMCS
	ldr	w8, [x22]
	cmp	w0, w8
	csel	w21, w23, w21, lt
	mov	w23, #8
	mov	x0, x20
	mov	w1, #8
	bl	_GET_VHTNSSMCS
	ldr	w8, [x22]
	cmp	w0, w8
	csel	w21, w23, w21, lt
	mov	x0, x20
	mov	x1, x21
	bl	_GET_VHTNSSMCS
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _IEEE80211_VHT_MCS_SUPPORT_0_9@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_VHT_MCS_SUPPORT_0_9@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w0, w8
	csel	w20, w9, w0, eq
	mov	x0, x19
	bl	_GET_VHTCAP_CHWDSET
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _max_rate_lgi_160MHZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _max_rate_lgi_160MHZ@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _max_rate_lgi_80MHZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _max_rate_lgi_80MHZ@GOTPAGEOFF]
LBB0_3:
	ldr	x8, [x8]
	sub	w9, w21, #1
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x0, [x8, w20, sxtw #3]
	cbnz	x0, LBB0_5
; %bb.4:
	add	x8, x8, w20, sxtw #3
	ldur	x0, [x8, #-8]
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BAND_AAC,4,2                   ; @BAND_AAC
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ; @IEEE80211_VHT_MCS_NOT_SUPPORTED
	.comm	_IEEE80211_VHT_MCS_SUPPORT_0_9,4,2 ; @IEEE80211_VHT_MCS_SUPPORT_0_9
	.comm	_max_rate_lgi_160MHZ,8,3        ; @max_rate_lgi_160MHZ
	.comm	_max_rate_lgi_80MHZ,8,3         ; @max_rate_lgi_80MHZ
	.no_dead_strip	_mwifiex_convert_mcsmap_to_maxrate
.subsections_via_symbols
