	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_move_legacy_other
_rs_move_legacy_other:                  ## @rs_move_legacy_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, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	(%rsi), %r15
	movq	24(%rsi), %rcx
	movq	%r15, %rax
	shlq	$5, %rax
	leaq	(%rcx,%rax), %rbx
	movl	$1, %r13d
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	24(%rcx,%rax), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	_IWL_RATE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	16(%rdi), %rax
	movl	(%rax), %ecx
	movl	24(%rdi), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edx
	leal	-137(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_5
## %bb.1:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$135, %edx
	je	LBB0_8
## %bb.2:
	cmpl	$136, %edx
	jne	LBB0_7
## %bb.3:
	cmpl	$133, (%rbx)
	jne	LBB0_8
	jmp	LBB0_4
LBB0_5:
	movl	%ecx, %edi
	callq	_first_antenna
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$133, (%rbx)
	jl	LBB0_8
LBB0_4:
	movl	$128, (%rbx)
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_IWL_ERR
LBB0_8:
	subq	%r15, %r13
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_iwl_ht_enabled
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movq	%r15, %rdi
	callq	_iwl_tx_ant_restriction
	movq	_IWL_ANT_OK_SINGLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.10:
	cmpl	$129, (%rbx)
	jl	LBB0_13
## %bb.11:
	movl	$128, (%rbx)
	jmp	LBB0_13
LBB0_12:
	movl	$134, (%rbx)
LBB0_13:
	shlq	$5, %r13
	shll	$2, %r14d
	movl	$32, -48(%rbp)                  ## 4-byte Folded Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpq	$0, 8(%r15)
	je	LBB0_19
## %bb.14:
	movq	%r15, %rdi
	callq	_iwl_ht_enabled
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	$128, %eax
	cmpl	$133, (%rbx)
	jge	LBB0_17
	jmp	LBB0_18
LBB0_16:
	movl	$134, %eax
LBB0_17:
	movl	%eax, (%rbx)
LBB0_18:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_first_antenna
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_19:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%r13, %rcx
	addq	%rax, %r13
	movslq	-52(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	subl	%r14d, -48(%rbp)                ## 4-byte Folded Spill
	movl	(%rbx), %edx
	leaq	(%rax,%rcx), %rsi
	addq	$12, %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	leaq	16(%rax,%rcx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	%edx, -96(%rbp)                 ## 4-byte Spill
	movl	%edx, %eax
	movq	%r15, %r14
	jmp	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_IWL_DEBUG_RATE
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_rs_switch_to_siso
LBB0_21:                                ##   in Loop: Header=BB0_23 Depth=1
	testl	%eax, %eax
	je	LBB0_40
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	(%rbx), %ecx
	leal	1(%rcx), %eax
	cmpl	$129, %ecx
	movl	$134, %ecx
	cmovgel	%ecx, %eax
	movl	%eax, (%rbx)
	cmpl	-96(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_39
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	incq	16(%r12)
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_IWL_DEBUG_RATE
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	(%rbx), %ecx
	movq	_ANT_BC@GOTPCREL(%rip), %rax
	cmpl	$131, %ecx
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	_ANT_AC@GOTPCREL(%rip), %rax
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	cmpl	$132, %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	_ANT_AB@GOTPCREL(%rip), %rax
LBB0_29:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	(%rax), %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%esi, -4(%rax)
	callq	_rs_is_valid_ant
	testl	%eax, %eax
	je	LBB0_22
## %bb.30:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_rs_switch_to_mimo2
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	cmpl	$3, %eax
	setl	%r15b
	cmpl	$2, %eax
	movq	%r12, %r14
	setl	%r12b
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	callq	_IWL_DEBUG_RATE
	movl	(%rbx), %eax
	cmpl	$134, %eax
	sete	%cl
	cmpl	$133, %eax
	sete	%al
	testb	%r12b, %cl
	movq	%r14, %r12
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_22
## %bb.32:                              ##   in Loop: Header=BB0_23 Depth=1
	andb	%r15b, %al
	jne	LBB0_22
## %bb.33:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %eax
	movq	_IWL_RS_GOOD_RATIO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpq	$0, 8(%r14)
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpl	$135, (%r14)
	je	LBB0_22
LBB0_36:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	%r13, %rdx
	callq	_rs_toggle_antenna
	testl	%eax, %eax
	je	LBB0_22
	jmp	LBB0_41
LBB0_37:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_IWL_DEBUG_RATE
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	_ANT_ABC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, -4(%rax)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_rs_is_valid_ant
	testl	%eax, %eax
	je	LBB0_22
## %bb.38:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_rs_switch_to_mimo3
	jmp	LBB0_21
LBB0_39:
	movq	_LQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, 4(%rcx,%rdx)
	jmp	LBB0_42
LBB0_40:
	movq	$0, 16(%r12)
	movl	$1, 8(%r12)
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	cmpl	$129, %eax
	movl	$134, %eax
	cmovll	%ecx, %eax
	movl	%eax, (%rbx)
	jmp	LBB0_42
LBB0_41:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_rs_set_expected_tpt_table
	movl	$1, 8(%r12)
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	cmpl	$129, %eax
	movl	$134, %eax
	cmovll	%ecx, %eax
	movl	%eax, (%rbx)
	movl	%eax, (%r13)
LBB0_42:
	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_20, LBB0_20-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_37
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_31
	.long	L0_0_set_31
	.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: Legacy toggle Antenna\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"LQ: Legacy switch to MIMO2\n"

	.comm	_ANT_AB,4,2                     ## @ANT_AB
	.comm	_ANT_AC,4,2                     ## @ANT_AC
	.comm	_ANT_BC,4,2                     ## @ANT_BC
L_.str.4:                               ## @.str.4
	.asciz	"LQ: Legacy switch to MIMO3\n"

	.comm	_ANT_ABC,4,2                    ## @ANT_ABC
	.comm	_LQ_NONE,4,2                    ## @LQ_NONE
	.no_dead_strip	_rs_move_legacy_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_legacy_other
_rs_move_legacy_other:                  ; @rs_move_legacy_other
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	stp	x3, x4, [sp, #64]               ; 16-byte Folded Spill
	str	x2, [sp, #56]                   ; 8-byte Folded Spill
	mov	x20, x1
	mov	x24, x0
	ldr	x28, [x1, #24]
	ldr	x22, [x1]
	add	x19, x28, x22, lsl #5
	mov	w23, #1
	ldr	x8, [x19, #24]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _IWL_RATE_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_RATE_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x8, [x0, #16]
	ldr	w25, [x8]
	ldr	w8, [x0, #24]
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	ldr	w2, [x0]
	sub	w8, w2, #137
	cmp	w8, #2
	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]
	cmp	w8, #133
	b.eq	LBB0_5
	b	LBB0_7
LBB0_4:
	mov	x0, x25
	bl	_first_antenna
	mov	x25, x0
	ldr	w8, [x19]
	cmp	w8, #133
	b.lt	LBB0_7
LBB0_5:
	mov	w8, #128
	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	x23, x23, x22
	mov	w22, #32
	mov	x0, x24
	bl	_iwl_ht_enabled
	cbz	w0, LBB0_11
; %bb.8:
	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_13
; %bb.9:
	ldr	w8, [x19]
	cmp	w8, #129
	b.lt	LBB0_13
; %bb.10:
	mov	w8, #128
	b	LBB0_12
LBB0_11:
	mov	w8, #134
LBB0_12:
	str	w8, [x19]
LBB0_13:
	add	x26, x28, x23, lsl #5
	ldr	x8, [x24, #8]
	sub	w27, w22, w21, lsl #2
	cbz	x8, LBB0_20
; %bb.14:
	mov	x0, x24
	bl	_iwl_ht_enabled
	cbz	w0, LBB0_17
; %bb.15:
	ldr	w8, [x19]
	cmp	w8, #133
	b.lt	LBB0_19
; %bb.16:
	mov	w8, #128
	b	LBB0_18
LBB0_17:
	mov	w8, #134
LBB0_18:
	str	w8, [x19]
LBB0_19:
	ldr	x8, [x24, #16]
	ldr	w0, [x8]
	bl	_first_antenna
	mov	x25, x0
LBB0_20:
	stp	x23, x28, [sp, #8]              ; 16-byte Folded Spill
	add	x8, x28, x23, lsl #5
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	sxtw	x9, w9
	ldr	w22, [x19]
	add	x23, x8, #12
	add	x21, x8, #8
	add	x8, x8, #16
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
	mov	w28, #134
	mov	x8, x22
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x24
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_IWL_DEBUG_RATE
	mov	x0, x26
	mov	x1, x19
	mov	x2, x27
	bl	_memcpy
	str	wzr, [x23]
	mov	x0, x24
	mov	x1, x20
	ldp	x2, x3, [sp, #56]               ; 16-byte Folded Reload
	mov	x4, x26
	ldr	x5, [sp, #72]                   ; 8-byte Folded Reload
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_rs_switch_to_siso
	cbz	w0, LBB0_35
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [x19]
	cmp	w8, #128
	csinc	w8, w28, w8, gt
	str	w8, [x19]
	cmp	w8, w22
	b.eq	LBB0_36
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	add	x9, x9, #1
	str	x9, [x20, #16]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh10:
	adrp	x11, lJTI0_0@PAGE
Lloh11:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_21
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_25:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x24
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_IWL_DEBUG_RATE
	mov	x0, x26
	mov	x1, x19
	mov	x2, x27
	bl	_memcpy
	str	wzr, [x23]
	ldr	w8, [x19]
	cmp	w8, #131
Lloh14:
	adrp	x9, _ANT_AC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ANT_AC@GOTPAGEOFF]
Lloh16:
	adrp	x10, _ANT_BC@GOTPAGE
Lloh17:
	ldr	x10, [x10, _ANT_BC@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	cmp	w8, #132
Lloh18:
	adrp	x8, _ANT_AB@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ANT_AB@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	str	w1, [x21]
	mov	x0, x25
	bl	_rs_is_valid_ant
	cbz	w0, LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x24
	mov	x1, x20
	ldp	x2, x3, [sp, #56]               ; 16-byte Folded Reload
	mov	x4, x26
	ldr	x5, [sp, #72]                   ; 8-byte Folded Reload
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_rs_switch_to_mimo2
	cbnz	w0, LBB0_22
	b	LBB0_35
LBB0_27:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x24
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_IWL_DEBUG_RATE
	ldr	w9, [x19]
	cmp	w9, #133
	ldr	w10, [sp, #52]                  ; 4-byte Folded Reload
	ccmp	w10, #3, #0, eq
	cset	w8, lt
	cmp	w10, #2
	ccmp	w9, w28, #0, lt
	b.eq	LBB0_22
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=1
	tbnz	w8, #0, LBB0_22
; %bb.29:                               ;   in Loop: Header=BB0_23 Depth=1
	ldp	x9, x8, [sp, #32]               ; 16-byte Folded Reload
	ldr	w8, [x8, x9, lsl #2]
Lloh22:
	adrp	x9, _IWL_RS_GOOD_RATIO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IWL_RS_GOOD_RATIO@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x24, #8]
	cbnz	x8, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [x24]
	cmp	w8, #135
	b.eq	LBB0_22
LBB0_32:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x26
	mov	x1, x19
	mov	x2, x27
	bl	_memcpy
	mov	x0, x25
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x26
	bl	_rs_toggle_antenna
	cbz	w0, LBB0_22
	b	LBB0_38
LBB0_33:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x24
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_IWL_DEBUG_RATE
	mov	x0, x26
	mov	x1, x19
	mov	x2, x27
	bl	_memcpy
	str	wzr, [x23]
Lloh27:
	adrp	x8, _ANT_ABC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ANT_ABC@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	str	w1, [x21]
	mov	x0, x25
	bl	_rs_is_valid_ant
	cbz	w0, LBB0_22
; %bb.34:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x24
	mov	x1, x20
	ldp	x2, x3, [sp, #56]               ; 16-byte Folded Reload
	mov	x4, x26
	ldr	x5, [sp, #72]                   ; 8-byte Folded Reload
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_rs_switch_to_mimo3
	cbnz	w0, LBB0_22
LBB0_35:
	str	xzr, [x20, #16]
	mov	w8, #1
	str	w8, [x20, #8]
	ldr	w8, [x19]
	cmp	w8, #128
	mov	w9, #134
	csinc	w8, w9, w8, gt
	str	w8, [x19]
	b	LBB0_37
LBB0_36:
Lloh30:
	adrp	x8, _LQ_NONE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LQ_NONE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldp	x10, x9, [sp, #8]               ; 16-byte Folded Reload
	add	x9, x9, x10, lsl #5
	str	w8, [x9, #4]
LBB0_37:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_38:
	mov	x0, x20
	mov	x1, x26
	bl	_rs_set_expected_tpt_table
	mov	w8, #1
	str	w8, [x20, #8]
	ldr	w8, [x19]
	cmp	w8, #128
	mov	w9, #134
	csinc	w8, w9, w8, gt
	str	w8, [x19]
	str	w8, [x26]
	b	LBB0_37
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_33-LBB0_21)>>2
	.byte	(LBB0_25-LBB0_21)>>2
	.byte	(LBB0_25-LBB0_21)>>2
	.byte	(LBB0_25-LBB0_21)>>2
	.byte	(LBB0_27-LBB0_21)>>2
	.byte	(LBB0_27-LBB0_21)>>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: Legacy toggle Antenna\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"LQ: Legacy switch to MIMO2\n"

	.comm	_ANT_AB,4,2                     ; @ANT_AB
	.comm	_ANT_AC,4,2                     ; @ANT_AC
	.comm	_ANT_BC,4,2                     ; @ANT_BC
l_.str.4:                               ; @.str.4
	.asciz	"LQ: Legacy switch to MIMO3\n"

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