	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_move_siso_to_other
_rs_move_siso_to_other:                 ## @rs_move_siso_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	(%rsi), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	32(%rsi), %rcx
	movq	8(%rsi), %rbx
	leaq	(%rbx,%rbx,4), %rsi
	leaq	(%rcx,%rsi,8), %r13
	movl	$1, %r15d
	movq	_IWL_RATE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	32(%rcx,%rsi,8), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movl	24(%r12), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movl	(%r12), %edx
	leal	-137(%rdx), %eax
	cmpl	$2, %eax
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jb	LBB0_5
## %bb.1:
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	cmpl	$135, %edx
	je	LBB0_8
## %bb.2:
	cmpl	$136, %edx
	jne	LBB0_7
## %bb.3:
	cmpl	$133, (%r13)
	jne	LBB0_8
## %bb.4:
	movl	$131, (%r13)
	jmp	LBB0_8
LBB0_5:
	callq	_first_antenna
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$134, (%r13)
	je	LBB0_8
## %bb.6:
	movl	$134, (%r13)
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_IWL_ERR
LBB0_8:
	subq	%rbx, %r15
	movq	%r12, %rdi
	callq	_iwl_tx_ant_restriction
	movq	_IWL_ANT_OK_SINGLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	cmpl	$134, (%r13)
	jl	LBB0_11
## %bb.10:
	movl	$134, (%r13)
LBB0_11:
	leaq	(%r15,%r15,4), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	shll	$2, %ebx
	movl	$40, -56(%rbp)                  ## 4-byte Folded Spill
	cmpq	$0, 8(%r12)
	je	LBB0_12
## %bb.13:
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_first_antenna
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%r13), %r15d
	movq	_IWL_LEGACY_SWITCH_ANTENNA2@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jl	LBB0_15
## %bb.14:
	movl	$134, (%r13)
	movl	$134, %r15d
	jmp	LBB0_15
LBB0_12:
	movl	(%r13), %r15d
LBB0_15:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movslq	-60(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	subl	%ebx, -56(%rbp)                 ## 4-byte Folded Spill
	leaq	(%rax,%rsi,8), %rdx
	addq	$28, %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leaq	24(%rax,%rcx,8), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	%r15d, %eax
	movl	%r15d, -80(%rbp)                ## 4-byte Spill
	jmp	LBB0_16
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movq	%r15, %rdx
	movl	-80(%rbp), %r15d                ## 4-byte Reload
	callq	_rs_toggle_antenna
	testl	%eax, %eax
	jne	LBB0_45
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	(%r13), %ecx
	leal	1(%rcx), %eax
	movl	%eax, (%r13)
	movq	_IWL_LEGACY_SWITCH_MIMO3_ABC@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movl	$134, %ecx
	cmovgel	%ecx, %eax
	movl	%eax, (%r13)
	cmpl	%r15d, %eax
	je	LBB0_25
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	incl	24(%r14)
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_24
## %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_26:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_IWL_DEBUG_RATE
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movl	$0, 4(%rbx)
	movl	(%r13), %ecx
	movq	_ANT_BC@GOTPCREL(%rip), %rax
	cmpl	$130, %ecx
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_ANT_AC@GOTPCREL(%rip), %rax
LBB0_28:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$131, %ecx
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_ANT_AB@GOTPCREL(%rip), %rax
LBB0_30:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%esi, 20(%rax)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_rs_is_valid_ant
	testl	%eax, %eax
	je	LBB0_24
## %bb.31:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	callq	_rs_switch_to_mimo2
	testl	%eax, %eax
	jne	LBB0_24
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	-100(%rbp), %eax                ## 4-byte Reload
	cmpl	$3, %eax
	setl	-72(%rbp)                       ## 1-byte Folded Spill
	cmpl	$2, %eax
	movq	%r14, %r15
	setl	%r14b
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_IWL_DEBUG_RATE
	movl	(%r13), %eax
	cmpl	$134, %eax
	sete	%cl
	cmpl	$133, %eax
	sete	%al
	testb	%r14b, %cl
	movq	%r15, %r14
	movl	-80(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	andb	-72(%rbp), %al                  ## 1-byte Folded Reload
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %eax
	movq	_IWL_RS_GOOD_RATIO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	$0, 8(%r12)
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$135, (%r12)
	jne	LBB0_23
	jmp	LBB0_24
LBB0_46:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_IWL_DEBUG_RATE
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movl	$0, 4(%rbx)
	movq	_ANT_ABC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 20(%rbx)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_rs_is_valid_ant
	testl	%eax, %eax
	je	LBB0_24
## %bb.47:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	callq	_rs_switch_to_mimo3
	testl	%eax, %eax
	jne	LBB0_24
	jmp	LBB0_33
LBB0_35:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	je	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_39
	jmp	LBB0_24
LBB0_36:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
LBB0_39:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_IWL_DEBUG_RATE
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, -24(%rax)
	je	LBB0_24
## %bb.41:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_IWL_ERR
LBB0_42:                                ##   in Loop: Header=BB0_16 Depth=1
	xorl	%eax, %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, -24(%rbx)
	sete	%al
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, 4(%rsi)
	movq	%r14, %rdi
	callq	_rs_set_expected_tpt_table
	cmpl	$0, -24(%rbx)
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_16 Depth=1
	movslq	16(%r14), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	cmpl	(%rcx,%rdx,4), %eax
	jge	LBB0_24
LBB0_44:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	callq	_rate_n_flags_from_tbl
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_45:
	movl	$1, 20(%r14)
	movl	(%r13), %eax
	leal	1(%rax), %ecx
	cmpl	$127, %eax
	movl	$134, %eax
	cmovlel	%ecx, %eax
	movl	%eax, (%r13)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_34
LBB0_25:
	movq	_LQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, 16(%rcx,%rdx,8)
	jmp	LBB0_34
LBB0_33:
	movl	$1, 20(%r14)
	movl	(%r13), %eax
	leal	1(%rax), %ecx
	cmpl	$127, %eax
	movl	$134, %eax
	cmovlel	%ecx, %eax
	movl	%eax, (%r13)
LBB0_34:
	addq	$120, %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_46, LBB0_46-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_46
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_35
	.long	L0_0_set_18
	.long	L0_0_set_18
	.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
	.comm	_IWL_LEGACY_SWITCH_ANTENNA2,4,2 ## @IWL_LEGACY_SWITCH_ANTENNA2
L_.str.1:                               ## @.str.1
	.asciz	"LQ: SISO toggle Antenna\n"

	.comm	_IWL_RS_GOOD_RATIO,4,2          ## @IWL_RS_GOOD_RATIO
L_.str.2:                               ## @.str.2
	.asciz	"LQ: SISO 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
	.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: SISO toggle SGI/NGI\n"

L_.str.4:                               ## @.str.4
	.asciz	"SGI was set in GF+SISO\n"

L_.str.5:                               ## @.str.5
	.asciz	"LQ: SISO switch to MIMO3\n"

	.comm	_ANT_ABC,4,2                    ## @ANT_ABC
	.comm	_IWL_LEGACY_SWITCH_MIMO3_ABC,4,2 ## @IWL_LEGACY_SWITCH_MIMO3_ABC
	.comm	_LQ_NONE,4,2                    ## @LQ_NONE
	.no_dead_strip	_rs_move_siso_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_siso_to_other
_rs_move_siso_to_other:                 ; @rs_move_siso_to_other
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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, #104]                  ; 8-byte Folded Spill
	stur	x3, [x29, #-96]                 ; 8-byte Folded Spill
	str	x2, [sp, #96]                   ; 8-byte Folded Spill
	mov	x20, x1
	mov	x24, x0
	ldr	w8, [x1]
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	ldr	x26, [x1, #32]
	ldr	x22, [x1, #8]
	mov	w21, #40
	madd	x19, x22, x21, x26
	mov	w25, #1
	ldr	x8, [x19, #32]
	str	x8, [sp, #72]                   ; 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, #16]
	ldr	w0, [x8]
	ldr	w8, [x24, #24]
	str	w8, [sp, #92]                   ; 4-byte Folded Spill
	ldr	w8, [x24]
	sub	w9, w8, #137
	cmp	w9, #2
	b.lo	LBB0_5
; %bb.1:
	cmp	w8, #135
	stur	w0, [x29, #-84]                 ; 4-byte Folded Spill
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #136
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #133
	b.ne	LBB0_8
; %bb.4:
	mov	w8, #131
	str	w8, [x19]
	b	LBB0_8
LBB0_5:
	bl	_first_antenna
	stur	w0, [x29, #-84]                 ; 4-byte Folded Spill
	ldr	w8, [x19]
	cmp	w8, #134
	b.eq	LBB0_8
; %bb.6:
	mov	w8, #134
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_IWL_ERR
LBB0_8:
	sub	x25, x25, x22
	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_11
; %bb.9:
	ldr	w8, [x19]
	cmp	w8, #134
	b.lt	LBB0_11
; %bb.10:
	mov	w8, #134
	str	w8, [x19]
LBB0_11:
	madd	x27, x25, x21, x26
	sub	w28, w21, w23, lsl #2
	ldr	x8, [x24, #8]
	str	x25, [sp, #32]                  ; 8-byte Folded Spill
	cbz	x8, LBB0_14
; %bb.12:
	ldr	x8, [x24, #16]
	ldr	w0, [x8]
	bl	_first_antenna
	ldr	w25, [x19]
Lloh8:
	adrp	x8, _IWL_LEGACY_SWITCH_ANTENNA2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IWL_LEGACY_SWITCH_ANTENNA2@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w25, w8
	stur	w0, [x29, #-84]                 ; 4-byte Folded Spill
	b.lt	LBB0_15
; %bb.13:
	mov	w25, #134
	str	w25, [x19]
	b	LBB0_15
LBB0_14:
	ldr	w25, [x19]
LBB0_15:
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	sxtw	x8, w8
	str	x8, [sp, #80]                   ; 8-byte Folded Spill
	mov	w8, #40
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	madd	x9, x9, x8, x26
	add	x21, x9, #4
	add	x23, x9, #20
	madd	x8, x22, x8, x26
	add	x10, x8, #28
	str	x10, [sp, #64]                  ; 8-byte Folded Spill
	add	x8, x8, #4
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	add	x8, x9, #8
	stp	x26, x8, [sp, #16]              ; 16-byte Folded Spill
Lloh11:
	adrp	x22, _IWL_LEGACY_SWITCH_MIMO3_ABC@GOTPAGE
Lloh12:
	ldr	x22, [x22, _IWL_LEGACY_SWITCH_MIMO3_ABC@GOTPAGEOFF]
	add	x8, x9, #24
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	mov	w26, #134
	mov	x8, x25
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x27
	mov	x1, x19
	mov	x2, x28
	bl	_memcpy
	ldur	w0, [x29, #-84]                 ; 4-byte Folded Reload
	ldr	x1, [sp, #56]                   ; 8-byte Folded Reload
	mov	x2, x27
	bl	_rs_toggle_antenna
	cbnz	w0, LBB0_39
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	ldr	w9, [x22]
	cmp	w8, w9
	csinc	w8, w26, w8, ge
	str	w8, [x19]
	cmp	w8, w25
	b.eq	LBB0_40
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, #24]
	add	w9, w9, #1
	str	w9, [x20, #24]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh13:
	adrp	x11, lJTI0_0@PAGE
Lloh14:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_20
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x24
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_IWL_DEBUG_RATE
	mov	x0, x27
	mov	x1, x19
	mov	x2, x28
	bl	_memcpy
	str	wzr, [x21]
	ldr	w8, [x19]
	cmp	w8, #130
Lloh17:
	adrp	x9, _ANT_AC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ANT_AC@GOTPAGEOFF]
Lloh19:
	adrp	x10, _ANT_BC@GOTPAGE
Lloh20:
	ldr	x10, [x10, _ANT_BC@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	cmp	w8, #131
Lloh21:
	adrp	x8, _ANT_AB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ANT_AB@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	str	w1, [x23]
	ldur	w0, [x29, #-84]                 ; 4-byte Folded Reload
	bl	_rs_is_valid_ant
	cbz	w0, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x24
	mov	x1, x20
	ldp	x2, x5, [sp, #96]               ; 16-byte Folded Reload
	ldur	x3, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x4, x27
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_rs_switch_to_mimo2
	cbnz	w0, LBB0_17
	b	LBB0_41
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x24
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_IWL_DEBUG_RATE
	ldr	w9, [x19]
	cmp	w9, #133
	ldr	w10, [sp, #92]                  ; 4-byte Folded Reload
	ccmp	w10, #3, #0, eq
	cset	w8, lt
	cmp	w10, #2
	ccmp	w9, w26, #0, lt
	b.eq	LBB0_17
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	tbnz	w8, #0, LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=1
	ldp	x8, x9, [sp, #72]               ; 16-byte Folded Reload
	ldr	w8, [x8, x9, lsl #2]
Lloh25:
	adrp	x9, _IWL_RS_GOOD_RATIO@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IWL_RS_GOOD_RATIO@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_16
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x24, #8]
	cbnz	x8, LBB0_16
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x24]
	cmp	w8, #135
	b.ne	LBB0_16
	b	LBB0_17
LBB0_27:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x24
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_IWL_DEBUG_RATE
	mov	x0, x27
	mov	x1, x19
	mov	x2, x28
	bl	_memcpy
	str	wzr, [x21]
Lloh30:
	adrp	x8, _ANT_ABC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ANT_ABC@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	str	w1, [x23]
	ldur	w0, [x29, #-84]                 ; 4-byte Folded Reload
	bl	_rs_is_valid_ant
	cbz	w0, LBB0_17
; %bb.28:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x24
	mov	x1, x20
	ldp	x2, x5, [sp, #96]               ; 16-byte Folded Reload
	ldur	x3, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x4, x27
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_rs_switch_to_mimo3
	cbnz	w0, LBB0_17
	b	LBB0_41
LBB0_29:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	w9, [x8]
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	w8, [x8]
	cbz	w9, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh33:
	adrp	x9, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh35:
	adrp	x9, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh36:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
LBB0_32:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.33:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x24
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_IWL_DEBUG_RATE
	mov	x0, x27
	mov	x1, x19
	mov	x2, x28
	bl	_memcpy
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	cbz	w8, LBB0_17
; %bb.35:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x24
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_IWL_ERR
LBB0_36:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x26, x28
	mov	x28, x23
	mov	x23, x22
	ldr	x22, [sp, #48]                  ; 8-byte Folded Reload
	ldr	w8, [x22]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x21]
	mov	x0, x20
	mov	x1, x27
	bl	_rs_set_expected_tpt_table
	ldr	w8, [x22]
	mov	x22, x23
	mov	x23, x28
	mov	x28, x26
	mov	w26, #134
	cbz	w8, LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_18 Depth=1
	ldrsw	x8, [x20, #16]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x10, [x10]
	ldr	x11, [sp, #80]                  ; 8-byte Folded Reload
	ldr	w10, [x10, x11, lsl #2]
	add	w8, w8, w9
	cmp	w8, w10
	b.ge	LBB0_17
LBB0_38:
	mov	x0, x24
	mov	x1, x27
	ldr	x2, [sp, #104]                  ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	ldr	w3, [sp, #44]                   ; 4-byte Folded Reload
	bl	_rate_n_flags_from_tbl
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	str	w0, [x8]
LBB0_39:
	mov	w8, #1
	str	w8, [x20, #20]
	ldr	w8, [x19]
	cmp	w8, #127
	mov	w9, #134
	csinc	w8, w9, w8, gt
	str	w8, [x19]
	str	w8, [x27]
	b	LBB0_42
LBB0_40:
Lloh41:
	adrp	x8, _LQ_NONE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _LQ_NONE@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	mov	w9, #40
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x11, [sp, #32]                  ; 8-byte Folded Reload
	madd	x9, x11, x9, x10
	str	w8, [x9, #16]
	b	LBB0_42
LBB0_41:
	mov	w8, #1
	str	w8, [x20, #20]
	ldr	w8, [x19]
	cmp	w8, #127
	mov	w9, #134
	csinc	w8, w9, w8, gt
	str	w8, [x19]
LBB0_42:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_27-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_29-LBB0_20)>>2
	.byte	(LBB0_22-LBB0_20)>>2
	.byte	(LBB0_22-LBB0_20)>>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
	.comm	_IWL_LEGACY_SWITCH_ANTENNA2,4,2 ; @IWL_LEGACY_SWITCH_ANTENNA2
l_.str.1:                               ; @.str.1
	.asciz	"LQ: SISO toggle Antenna\n"

	.comm	_IWL_RS_GOOD_RATIO,4,2          ; @IWL_RS_GOOD_RATIO
l_.str.2:                               ; @.str.2
	.asciz	"LQ: SISO 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
	.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: SISO toggle SGI/NGI\n"

l_.str.4:                               ; @.str.4
	.asciz	"SGI was set in GF+SISO\n"

l_.str.5:                               ; @.str.5
	.asciz	"LQ: SISO switch to MIMO3\n"

	.comm	_ANT_ABC,4,2                    ; @ANT_ABC
	.comm	_IWL_LEGACY_SWITCH_MIMO3_ABC,4,2 ; @IWL_LEGACY_SWITCH_MIMO3_ABC
	.comm	_LQ_NONE,4,2                    ; @LQ_NONE
	.no_dead_strip	_rs_move_siso_to_other
.subsections_via_symbols
