	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_rs_get_tbl_info_from_mcs
_il4965_rs_get_tbl_info_from_mcs:       ## @il4965_rs_get_tbl_info_from_mcs
	.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	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %ebx
	movq	_RATE_MCS_ANT_ABC_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	_il4965_get_il4965_num_of_ant_from_rate
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%ebx, %edi
	callq	_il4965_hwrate_to_plcp_idx
	movl	%eax, (%r14)
	movq	_RATE_INVALID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	$-1, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_20
LBB0_2:
	andl	%ebx, %r13d
	movq	$0, (%r15)
	movl	$0, 8(%r15)
	movq	_RATE_MCS_ANT_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r13d
	movl	%r13d, 12(%r15)
	movq	_LQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_IL_MAX_SEARCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_RATE_MCS_HT_MSK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.7:
	movq	_RATE_MCS_SGI_MSK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movl	$1, (%r15)
LBB0_9:
	movq	_RATE_MCS_HT40_MSK@GOTPCREL(%rip), %rcx
	movq	_RATE_MCS_DUP_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, (%rcx)
	je	LBB0_10
## %bb.12:
	movl	$1, 4(%r15)
	testl	%ebx, %eax
	jne	LBB0_13
	jmp	LBB0_14
LBB0_3:
	xorl	%r12d, %r12d
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_20
## %bb.4:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_LQ_A@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_10:
	testl	%ebx, %eax
	je	LBB0_14
## %bb.11:
	movl	$1, 4(%r15)
LBB0_13:
	movl	$1, 8(%r15)
LBB0_14:
	movl	%ebx, %edi
	callq	_il4965_rs_extract_rate
	movq	_RATE_SISO_60M_PLCP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_15
## %bb.17:
	xorl	%r12d, %r12d
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_20
## %bb.18:
	movq	_LQ_MIMO2@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_15:
	xorl	%r12d, %r12d
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_20
## %bb.16:
	movq	_LQ_SISO@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_6:
	movq	_LQ_G@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
LBB0_20:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_MCS_ANT_ABC_MSK,4,2       ## @RATE_MCS_ANT_ABC_MSK
	.comm	_RATE_INVALID,4,2               ## @RATE_INVALID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RATE_MCS_ANT_POS,4,2           ## @RATE_MCS_ANT_POS
	.comm	_LQ_NONE,4,2                    ## @LQ_NONE
	.comm	_IL_MAX_SEARCH,4,2              ## @IL_MAX_SEARCH
	.comm	_RATE_MCS_HT_MSK,4,2            ## @RATE_MCS_HT_MSK
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_LQ_A,4,2                       ## @LQ_A
	.comm	_LQ_G,4,2                       ## @LQ_G
	.comm	_RATE_MCS_SGI_MSK,4,2           ## @RATE_MCS_SGI_MSK
	.comm	_RATE_MCS_HT40_MSK,4,2          ## @RATE_MCS_HT40_MSK
	.comm	_RATE_MCS_DUP_MSK,4,2           ## @RATE_MCS_DUP_MSK
	.comm	_RATE_SISO_60M_PLCP,4,2         ## @RATE_SISO_60M_PLCP
	.comm	_LQ_SISO,4,2                    ## @LQ_SISO
	.comm	_LQ_MIMO2,4,2                   ## @LQ_MIMO2
	.no_dead_strip	_il4965_rs_get_tbl_info_from_mcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_rs_get_tbl_info_from_mcs
_il4965_rs_get_tbl_info_from_mcs:       ; @il4965_rs_get_tbl_info_from_mcs
	.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	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _RATE_MCS_ANT_ABC_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_MCS_ANT_ABC_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	bl	_il4965_get_il4965_num_of_ant_from_rate
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, x21
	bl	_il4965_hwrate_to_plcp_idx
	str	w0, [x23]
Lloh3:
	adrp	x8, _RATE_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RATE_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #-1
	str	w8, [x23]
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_2:
	and	w8, w24, w21
	str	xzr, [x19]
Lloh9:
	adrp	x9, _RATE_MCS_ANT_POS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RATE_MCS_ANT_POS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w8, w8, w9
	stp	wzr, w8, [x19, #8]
Lloh12:
	adrp	x8, _LQ_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LQ_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _IL_MAX_SEARCH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IL_MAX_SEARCH@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #16]
Lloh18:
	adrp	x8, _RATE_MCS_HT_MSK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RATE_MCS_HT_MSK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.3:
Lloh21:
	adrp	x8, _RATE_MCS_SGI_MSK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RATE_MCS_SGI_MSK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19]
LBB0_5:
Lloh24:
	adrp	x8, _RATE_MCS_HT40_MSK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RATE_MCS_HT40_MSK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x8]
Lloh27:
	adrp	x8, _RATE_MCS_DUP_MSK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RATE_MCS_DUP_MSK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	and	w8, w8, w21
	tst	w9, w21
	b.eq	LBB0_10
; %bb.6:
	mov	w9, #1
	str	w9, [x19, #4]
	cbnz	w8, LBB0_12
	b	LBB0_13
LBB0_7:
	cmp	w20, #1
	b.ne	LBB0_18
; %bb.8:
Lloh30:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_19
; %bb.9:
	mov	w0, #0
Lloh33:
	adrp	x8, _LQ_A@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LQ_A@GOTPAGEOFF]
	b	LBB0_20
LBB0_10:
	cbz	w8, LBB0_13
; %bb.11:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_12:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_13:
	mov	x0, x21
	bl	_il4965_rs_extract_rate
Lloh35:
	adrp	x8, _RATE_SISO_60M_PLCP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RATE_SISO_60M_PLCP@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_16
; %bb.14:
	cmp	w20, #2
	b.ne	LBB0_18
; %bb.15:
	mov	w0, #0
Lloh38:
	adrp	x8, _LQ_MIMO2@GOTPAGE
Lloh39:
	ldr	x8, [x8, _LQ_MIMO2@GOTPAGEOFF]
	b	LBB0_20
LBB0_16:
	cmp	w20, #1
	b.ne	LBB0_18
; %bb.17:
	mov	w0, #0
Lloh40:
	adrp	x8, _LQ_SISO@GOTPAGE
Lloh41:
	ldr	x8, [x8, _LQ_SISO@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	mov	w0, #0
	b	LBB0_21
LBB0_19:
	mov	w0, #0
Lloh42:
	adrp	x8, _LQ_G@GOTPAGE
Lloh43:
	ldr	x8, [x8, _LQ_G@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_21:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_MCS_ANT_ABC_MSK,4,2       ; @RATE_MCS_ANT_ABC_MSK
	.comm	_RATE_INVALID,4,2               ; @RATE_INVALID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RATE_MCS_ANT_POS,4,2           ; @RATE_MCS_ANT_POS
	.comm	_LQ_NONE,4,2                    ; @LQ_NONE
	.comm	_IL_MAX_SEARCH,4,2              ; @IL_MAX_SEARCH
	.comm	_RATE_MCS_HT_MSK,4,2            ; @RATE_MCS_HT_MSK
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_LQ_A,4,2                       ; @LQ_A
	.comm	_LQ_G,4,2                       ; @LQ_G
	.comm	_RATE_MCS_SGI_MSK,4,2           ; @RATE_MCS_SGI_MSK
	.comm	_RATE_MCS_HT40_MSK,4,2          ; @RATE_MCS_HT40_MSK
	.comm	_RATE_MCS_DUP_MSK,4,2           ; @RATE_MCS_DUP_MSK
	.comm	_RATE_SISO_60M_PLCP,4,2         ; @RATE_SISO_60M_PLCP
	.comm	_LQ_SISO,4,2                    ; @LQ_SISO
	.comm	_LQ_MIMO2,4,2                   ; @LQ_MIMO2
	.no_dead_strip	_il4965_rs_get_tbl_info_from_mcs
.subsections_via_symbols
