	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_rs_move_legacy_other
_il4965_rs_move_legacy_other:           ## @il4965_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	(%rsi), %rax
	movq	24(%rsi), %rdx
	movl	$1, %esi
	subq	%rax, %rsi
	shlq	$5, %rax
	leaq	(%rdx,%rax), %rbx
	shlq	$5, %rsi
	movq	24(%rdx,%rax), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	_RATE_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	movl	$32, %r12d
	subl	%ecx, %r12d
	movl	(%rdi), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	$128, (%rdx,%rax)
	leaq	(%rdx,%rsi), %r13
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movslq	%r8d, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	12(%rdx,%rsi), %r15
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	leaq	16(%rdx,%rsi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	$128, %eax
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	je	LBB0_6
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %ecx
	leal	1(%rcx), %eax
	cmpl	$129, %ecx
	movl	$133, %ecx
	cmovgel	%ecx, %eax
	movl	%eax, (%rbx)
	cmpl	$128, %eax
	je	LBB0_19
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incq	16(%r14)
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-132(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	cmpl	$3, %eax
	setl	-41(%rbp)                       ## 1-byte Folded Spill
	cmpl	$2, %eax
	movq	%r14, %r15
	movq	%r13, %r14
	movl	%r12d, %r13d
	setl	%r12b
	leaq	L_.str(%rip), %rdi
	callq	_D_RATE
	movl	(%rbx), %eax
	cmpl	$133, %eax
	sete	%cl
	cmpl	$132, %eax
	sete	%al
	testb	%r12b, %cl
	movl	%r13d, %r12d
	movq	%r14, %r13
	movq	%r15, %r14
	movq	-128(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	andb	-41(%rbp), %al                  ## 1-byte Folded Reload
	jne	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %eax
	movq	_IL_RS_GOOD_RATIO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	%r13, %rdx
	callq	_il4965_rs_toggle_antenna
	testl	%eax, %eax
	je	LBB0_18
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	_D_RATE
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	$0, (%r15)
	movl	(%rbx), %ecx
	movq	_ANT_BC@GOTPCREL(%rip), %rax
	cmpl	$130, %ecx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_ANT_AC@GOTPCREL(%rip), %rax
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$131, %ecx
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_ANT_AB@GOTPCREL(%rip), %rax
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rax), %esi
	movl	%esi, -4(%r15)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_il4965_rs_is_valid_ant
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_il4965_rs_switch_to_mimo2
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, %eax
	jne	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_D_RATE
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	$0, (%r15)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_il4965_rs_switch_to_siso
	jmp	LBB0_5
LBB0_19:
	movq	_LQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 4(%rcx,%rdx)
	jmp	LBB0_20
LBB0_6:
	movq	$0, 16(%r14)
	movl	$1, 8(%r14)
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	cmpl	$129, %eax
	movl	$133, %eax
	cmovll	%ecx, %eax
	movl	%eax, (%rbx)
LBB0_20:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_il4965_rs_set_expected_tpt_table
	movl	$1, 8(%r14)
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	cmpl	$129, %eax
	movl	$133, %eax
	cmovll	%ecx, %eax
	movl	%eax, (%rbx)
	movl	%eax, (%r13)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_COUNT,4,2                 ## @RATE_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LQ: Legacy toggle Antenna\n"

	.comm	_IL_RS_GOOD_RATIO,4,2           ## @IL_RS_GOOD_RATIO
L_.str.1:                               ## @.str.1
	.asciz	"LQ: Legacy switch to SISO\n"

L_.str.2:                               ## @.str.2
	.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
	.comm	_LQ_NONE,4,2                    ## @LQ_NONE
	.no_dead_strip	_il4965_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 il4965_rs_move_legacy_other
_il4965_rs_move_legacy_other:           ; @il4965_rs_move_legacy_other
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
                                        ; kill: def $w4 killed $w4 def $x4
	stp	x2, x3, [sp, #40]               ; 16-byte Folded Spill
	mov	x20, x1
	mov	x25, x0
	ldr	x10, [x1, #24]
	ldr	x8, [x1]
	add	x19, x10, x8, lsl #5
	mov	w9, #1
	sub	x8, x9, x8
	stp	x8, x10, [sp]                   ; 16-byte Folded Spill
	add	x21, x10, x8, lsl #5
	ldr	x9, [x19, #24]
	str	x4, [sp, #56]                   ; 8-byte Folded Spill
	sxtw	x8, w4
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
Lloh0:
	adrp	x8, _RATE_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #32
	sub	w26, w9, w8, lsl #2
	ldp	w27, w28, [x0]
	mov	w8, #128
	str	w8, [x19]
	add	x23, x21, #12
	add	x24, x21, #8
	add	x9, x21, #16
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	mov	w22, #133
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	cmp	w8, #128
	csinc	w8, w22, w8, gt
	str	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_13
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	add	x9, x9, #1
	str	x9, [x20, #16]
	sub	w9, w8, #129
	cmp	w9, #3
	b.lo	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w9, w8, #132
	cmp	w9, #2
	b.hs	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_RATE
	ldr	w9, [x19]
	cmp	w9, #132
	ccmp	w28, #3, #0, eq
	cset	w8, lt
	cmp	w28, #2
	ccmp	w9, w22, #0, lt
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w8, #0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x9, x8, [sp, #24]               ; 16-byte Folded Reload
	ldr	w8, [x8, x9, lsl #2]
Lloh5:
	adrp	x9, _IL_RS_GOOD_RATIO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IL_RS_GOOD_RATIO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x26
	bl	_memcpy
	mov	x0, x27
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	mov	x2, x21
	bl	_il4965_rs_toggle_antenna
	cbz	w0, LBB0_1
	b	LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_D_RATE
	mov	x0, x21
	mov	x1, x19
	mov	x2, x26
	bl	_memcpy
	str	wzr, [x23]
	ldr	w8, [x19]
	cmp	w8, #130
Lloh10:
	adrp	x9, _ANT_AC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ANT_AC@GOTPAGEOFF]
Lloh12:
	adrp	x10, _ANT_BC@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ANT_BC@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	cmp	w8, #131
Lloh14:
	adrp	x8, _ANT_AB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ANT_AB@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	str	w1, [x24]
	mov	x0, x27
	bl	_il4965_rs_is_valid_ant
	cbz	w0, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	mov	x1, x20
	ldp	x2, x3, [sp, #40]               ; 16-byte Folded Reload
	mov	x4, x21
	ldr	x5, [sp, #56]                   ; 8-byte Folded Reload
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_il4965_rs_switch_to_mimo2
	cbnz	w0, LBB0_1
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #128
	b.ne	LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D_RATE
	mov	x0, x21
	mov	x1, x19
	mov	x2, x26
	bl	_memcpy
	str	wzr, [x23]
	mov	x0, x25
	mov	x1, x20
	ldp	x2, x3, [sp, #40]               ; 16-byte Folded Reload
	mov	x4, x21
	ldr	x5, [sp, #56]                   ; 8-byte Folded Reload
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_il4965_rs_switch_to_siso
	cbnz	w0, LBB0_1
LBB0_12:
	str	xzr, [x20, #16]
	mov	w8, #1
	str	w8, [x20, #8]
	ldr	w8, [x19]
	cmp	w8, #128
	mov	w9, #133
	csinc	w8, w9, w8, gt
	str	w8, [x19]
	b	LBB0_14
LBB0_13:
Lloh18:
	adrp	x8, _LQ_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LQ_NONE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldp	x10, x9, [sp]                   ; 16-byte Folded Reload
	add	x9, x9, x10, lsl #5
	str	w8, [x9, #4]
LBB0_14:
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_15:
	mov	x0, x20
	mov	x1, x21
	bl	_il4965_rs_set_expected_tpt_table
	mov	w8, #1
	str	w8, [x20, #8]
	ldr	w8, [x19]
	cmp	w8, #128
	mov	w9, #133
	csinc	w8, w9, w8, gt
	str	w8, [x19]
	str	w8, [x21]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_COUNT,4,2                 ; @RATE_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LQ: Legacy toggle Antenna\n"

	.comm	_IL_RS_GOOD_RATIO,4,2           ; @IL_RS_GOOD_RATIO
l_.str.1:                               ; @.str.1
	.asciz	"LQ: Legacy switch to SISO\n"

l_.str.2:                               ; @.str.2
	.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
	.comm	_LQ_NONE,4,2                    ; @LQ_NONE
	.no_dead_strip	_il4965_rs_move_legacy_other
.subsections_via_symbols
