	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_move_mimo2_to_other
_rs_move_mimo2_to_other:                ## @rs_move_mimo2_to_other
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	32(%rsi), %ecx
	movq	(%rsi), %r13
	movq	24(%rsi), %rdx
	leaq	(%r13,%r13,4), %rsi
	leaq	(%rdx,%rsi,8), %rbx
	movl	$1, %r15d
	movq	_IWL_RATE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	32(%rdx,%rsi,8), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	(%r12), %edx
	movl	16(%r12), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	leal	-137(%rdx), %eax
	cmpl	$2, %eax
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	jb	LBB0_5
## %bb.1:
	cmpl	$135, %edx
	je	LBB0_8
## %bb.2:
	cmpl	$136, %edx
	jne	LBB0_7
## %bb.3:
	movl	(%rbx), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_8
	jmp	LBB0_4
LBB0_5:
	cmpl	$130, (%rbx)
	je	LBB0_8
LBB0_4:
	movl	$130, (%rbx)
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_IWL_ERR
LBB0_8:
	subq	%r13, %r15
	movq	%r12, %rdi
	callq	_iwl_tx_ant_restriction
	movq	_IWL_ANT_OK_SINGLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	$130, (%rbx)
LBB0_10:
	leaq	(%r15,%r15,4), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	shll	$2, %edi
	movl	$40, -44(%rbp)                  ## 4-byte Folded Spill
	cmpq	$0, 8(%r12)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	movl	$130, (%rbx)
	movl	$130, %r15d
	jmp	LBB0_13
LBB0_12:
	movl	(%rbx), %r15d
LBB0_13:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,8), %r13
	movslq	-48(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	subl	%edi, -44(%rbp)                 ## 4-byte Folded Spill
	leaq	(%rax,%rsi,8), %rdx
	addq	$28, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	leaq	24(%rax,%rcx,8), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, %eax
	movl	%r15d, -80(%rbp)                ## 4-byte Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	(%rbx), %ecx
	leal	1(%rcx), %eax
	cmpl	$131, %ecx
	movl	$134, %ecx
	cmovgel	%ecx, %eax
	movl	%eax, (%rbx)
	cmpl	%r15d, %eax
	je	LBB0_33
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	incl	16(%r14)
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_32
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_IWL_DEBUG_RATE
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movl	(%rbx), %ecx
	movq	_ANT_C@GOTPCREL(%rip), %rax
	cmpl	$129, %ecx
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_ANT_B@GOTPCREL(%rip), %rax
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$130, %ecx
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_ANT_A@GOTPCREL(%rip), %rax
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	(%rax), %esi
	movl	%esi, 20(%r13)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_rs_is_valid_ant
	testl	%eax, %eax
	je	LBB0_32
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_rs_switch_to_siso
	testl	%eax, %eax
	jne	LBB0_32
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_IWL_DEBUG_RATE
	cmpl	$3, -84(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %eax
	movq	_IWL_RS_GOOD_RATIO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_32
## %bb.26:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_rs_toggle_antenna
	testl	%eax, %eax
	je	LBB0_32
	jmp	LBB0_36
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_IWL_DEBUG_RATE
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movl	$0, 4(%r13)
	movq	_ANT_ABC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 20(%r13)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_rs_is_valid_ant
	testl	%eax, %eax
	je	LBB0_32
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_rs_switch_to_mimo3
	testl	%eax, %eax
	jne	LBB0_32
	jmp	LBB0_34
LBB0_27:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_30
	jmp	LBB0_32
LBB0_29:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_32
LBB0_30:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_IWL_DEBUG_RATE
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	xorl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpl	$0, -24(%r15)
	sete	%al
	movl	%eax, 4(%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_rs_set_expected_tpt_table
	cmpl	$0, -24(%r15)
	movl	-80(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_16 Depth=1
	movslq	8(%r14), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movq	8(%r13), %rcx
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	cmpl	(%rcx,%rdx,4), %eax
	jge	LBB0_32
LBB0_35:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	callq	_rate_n_flags_from_tbl
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_36:
	movl	$1, 12(%r14)
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	cmpl	$131, %eax
	movl	$134, %eax
	cmovll	%ecx, %eax
	movl	%eax, (%rbx)
	movl	%eax, (%r13)
	jmp	LBB0_37
LBB0_33:
	movq	_LQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, 16(%rcx,%rdx,8)
	jmp	LBB0_37
LBB0_34:
	movl	$1, 12(%r14)
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	cmpl	$131, %eax
	movl	$134, %eax
	cmovll	%ecx, %eax
	movl	%eax, (%rbx)
LBB0_37:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_14
	.long	L0_0_set_27
	.long	L0_0_set_24
	.long	L0_0_set_24
	.end_data_region
                                        ## -- End function
	.comm	_IWL_RATE_COUNT,4,2             ## @IWL_RATE_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid BT load %d\n"

	.comm	_IWL_ANT_OK_SINGLE,8,3          ## @IWL_ANT_OK_SINGLE
L_.str.1:                               ## @.str.1
	.asciz	"LQ: MIMO2 toggle Antennas\n"

	.comm	_IWL_RS_GOOD_RATIO,4,2          ## @IWL_RS_GOOD_RATIO
L_.str.2:                               ## @.str.2
	.asciz	"LQ: MIMO2 switch to SISO\n"

	.comm	_ANT_A,4,2                      ## @ANT_A
	.comm	_ANT_B,4,2                      ## @ANT_B
	.comm	_ANT_C,4,2                      ## @ANT_C
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ## @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ## @IEEE80211_HT_CAP_SGI_40
L_.str.3:                               ## @.str.3
	.asciz	"LQ: MIMO2 toggle SGI/NGI\n"

L_.str.4:                               ## @.str.4
	.asciz	"LQ: MIMO2 switch to MIMO3\n"

	.comm	_ANT_ABC,4,2                    ## @ANT_ABC
	.comm	_LQ_NONE,4,2                    ## @LQ_NONE
	.no_dead_strip	_rs_move_mimo2_to_other
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_move_mimo2_to_other
_rs_move_mimo2_to_other:                ; @rs_move_mimo2_to_other
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x4, [sp, #96]                   ; 8-byte Folded Spill
	stur	x3, [x29, #-88]                 ; 8-byte Folded Spill
	str	x2, [sp, #88]                   ; 8-byte Folded Spill
	mov	x20, x1
	mov	x24, x0
	ldr	w9, [x1, #32]
	ldr	x27, [x1, #24]
	ldr	x21, [x1]
	mov	w22, #40
	madd	x19, x21, x22, x27
	mov	w25, #1
	ldr	x8, [x19, #32]
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _IWL_RATE_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_RATE_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	x8, [x0, #24]
	ldr	w26, [x8]
	ldr	w8, [x0, #16]
	str	w8, [sp, #84]                   ; 4-byte Folded Spill
	ldr	w2, [x0]
	sub	w8, w2, #137
	cmp	w8, #2
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	b.lo	LBB0_4
; %bb.1:
	cmp	w2, #135
	b.eq	LBB0_7
; %bb.2:
	cmp	w2, #136
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x19]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_5
	b	LBB0_7
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #130
	b.eq	LBB0_7
LBB0_5:
	mov	w8, #130
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_IWL_ERR
LBB0_7:
	sub	x25, x25, x21
	mov	x0, x24
	bl	_iwl_tx_ant_restriction
Lloh5:
	adrp	x8, _IWL_ANT_OK_SINGLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWL_ANT_OK_SINGLE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
	mov	w8, #130
	str	w8, [x19]
LBB0_9:
	mov	x10, x27
	madd	x27, x25, x22, x27
	sub	w28, w22, w23, lsl #2
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	w22, #130
	str	w22, [x19]
	b	LBB0_12
LBB0_11:
	ldr	w22, [x19]
LBB0_12:
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	sxtw	x8, w8
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	mov	w8, #40
	stp	x25, x10, [sp, #8]              ; 16-byte Folded Spill
	madd	x9, x25, x8, x10
	add	x11, x9, #4
	str	x11, [sp, #72]                  ; 8-byte Folded Spill
	add	x25, x9, #20
	madd	x8, x21, x8, x10
	add	x10, x8, #28
	add	x8, x8, #4
	stp	x8, x10, [sp, #40]              ; 16-byte Folded Spill
	add	x10, x9, #8
	add	x8, x9, #24
	stp	x8, x10, [sp, #24]              ; 16-byte Folded Spill
	mov	w21, #134
Lloh8:
	adrp	x23, lJTI0_0@PAGE
Lloh9:
	add	x23, x23, lJTI0_0@PAGEOFF
	mov	x8, x22
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x19]
	cmp	w8, #130
	csinc	w8, w21, w8, gt
	str	w8, [x19]
	cmp	w8, w22
	b.eq	LBB0_31
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, #16]
	add	w9, w9, #1
	str	w9, [x20, #16]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	adr	x9, LBB0_16
	ldrb	w10, [x23, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_IWL_DEBUG_RATE
	mov	x0, x27
	mov	x1, x19
	mov	x2, x28
	bl	_memcpy
	ldr	w8, [x19]
	cmp	w8, #129
Lloh12:
	adrp	x9, _ANT_B@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ANT_B@GOTPAGEOFF]
Lloh14:
	adrp	x10, _ANT_C@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ANT_C@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	cmp	w8, #130
Lloh16:
	adrp	x8, _ANT_A@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ANT_A@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	str	w1, [x25]
	mov	x0, x26
	bl	_rs_is_valid_ant
	cbz	w0, LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	mov	x1, x20
	ldp	x2, x5, [sp, #88]               ; 16-byte Folded Reload
	ldur	x3, [x29, #-88]                 ; 8-byte Folded Reload
	mov	x4, x27
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_rs_switch_to_siso
	cbnz	w0, LBB0_13
	b	LBB0_32
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_IWL_DEBUG_RATE
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cmp	w8, #3
	b.lt	LBB0_13
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	ldp	x8, x9, [sp, #56]               ; 16-byte Folded Reload
	ldr	w8, [x8, x9, lsl #2]
Lloh20:
	adrp	x9, _IWL_RS_GOOD_RATIO@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IWL_RS_GOOD_RATIO@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_13
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x27
	mov	x1, x19
	mov	x2, x28
	bl	_memcpy
	mov	x0, x26
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x27
	bl	_rs_toggle_antenna
	cbz	w0, LBB0_13
	b	LBB0_30
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_IWL_DEBUG_RATE
	mov	x0, x27
	mov	x1, x19
	mov	x2, x28
	bl	_memcpy
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	str	wzr, [x8]
Lloh25:
	adrp	x8, _ANT_ABC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ANT_ABC@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	str	w1, [x25]
	mov	x0, x26
	bl	_rs_is_valid_ant
	cbz	w0, LBB0_13
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	mov	x1, x20
	ldp	x2, x5, [sp, #88]               ; 16-byte Folded Reload
	ldur	x3, [x29, #-88]                 ; 8-byte Folded Reload
	mov	x4, x27
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_rs_switch_to_mimo3
	cbnz	w0, LBB0_13
	b	LBB0_32
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w9, [x8]
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	ldr	w8, [x8]
	cbz	w9, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh28:
	adrp	x9, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_14 Depth=1
Lloh30:
	adrp	x9, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
LBB0_26:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.27:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_IWL_DEBUG_RATE
	mov	x0, x27
	mov	x1, x19
	mov	x2, x28
	bl	_memcpy
	mov	x21, x23
	mov	x23, x26
	ldr	x26, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w8, [x26]
	cmp	w8, #0
	cset	w8, eq
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	str	w8, [x9]
	mov	x0, x20
	mov	x1, x27
	bl	_rs_set_expected_tpt_table
	ldr	w8, [x26]
	mov	x26, x23
	mov	x23, x21
	mov	w21, #134
	cbz	w8, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_14 Depth=1
	ldrsw	x8, [x20, #8]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x10, [x10]
	ldr	x11, [sp, #64]                  ; 8-byte Folded Reload
	ldr	w10, [x10, x11, lsl #2]
	add	w8, w8, w9
	cmp	w8, w10
	b.ge	LBB0_13
LBB0_29:
	mov	x0, x24
	mov	x1, x27
	ldr	x2, [sp, #96]                   ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	ldr	w3, [sp, #4]                    ; 4-byte Folded Reload
	bl	_rate_n_flags_from_tbl
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	w0, [x8]
LBB0_30:
	mov	w8, #1
	str	w8, [x20, #12]
	ldr	w8, [x19]
	cmp	w8, #130
	mov	w9, #134
	csinc	w8, w9, w8, gt
	str	w8, [x19]
	str	w8, [x27]
	b	LBB0_33
LBB0_31:
Lloh34:
	adrp	x8, _LQ_NONE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LQ_NONE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	mov	w9, #40
	ldp	x11, x10, [sp, #8]              ; 16-byte Folded Reload
	madd	x9, x11, x9, x10
	str	w8, [x9, #16]
	b	LBB0_33
LBB0_32:
	mov	w8, #1
	str	w8, [x20, #12]
	ldr	w8, [x19]
	cmp	w8, #130
	mov	w9, #134
	csinc	w8, w9, w8, gt
	str	w8, [x19]
LBB0_33:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_21-LBB0_16)>>2
	.byte	(LBB0_23-LBB0_16)>>2
	.byte	(LBB0_18-LBB0_16)>>2
	.byte	(LBB0_18-LBB0_16)>>2
                                        ; -- End function
	.comm	_IWL_RATE_COUNT,4,2             ; @IWL_RATE_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid BT load %d\n"

	.comm	_IWL_ANT_OK_SINGLE,8,3          ; @IWL_ANT_OK_SINGLE
l_.str.1:                               ; @.str.1
	.asciz	"LQ: MIMO2 toggle Antennas\n"

	.comm	_IWL_RS_GOOD_RATIO,4,2          ; @IWL_RS_GOOD_RATIO
l_.str.2:                               ; @.str.2
	.asciz	"LQ: MIMO2 switch to SISO\n"

	.comm	_ANT_A,4,2                      ; @ANT_A
	.comm	_ANT_B,4,2                      ; @ANT_B
	.comm	_ANT_C,4,2                      ; @ANT_C
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ; @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ; @IEEE80211_HT_CAP_SGI_40
l_.str.3:                               ; @.str.3
	.asciz	"LQ: MIMO2 toggle SGI/NGI\n"

l_.str.4:                               ; @.str.4
	.asciz	"LQ: MIMO2 switch to MIMO3\n"

	.comm	_ANT_ABC,4,2                    ; @ANT_ABC
	.comm	_LQ_NONE,4,2                    ; @LQ_NONE
	.no_dead_strip	_rs_move_mimo2_to_other
.subsections_via_symbols
