	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_tweak_rate_tbl
_rs_tweak_rate_tbl:                     ## @rs_tweak_rate_tbl
	.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
	movl	%r8d, %r13d
	movq	%rcx, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_rs_bw_from_sta_bw
	movq	_RATE_MCS_CHAN_WIDTH_80@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	cmpq	(%r15), %rax
	jne	LBB0_12
## %bb.1:
	movq	%r12, %rdi
	callq	_is_vht_siso
	testl	%eax, %eax
	je	LBB0_12
## %bb.2:
	movq	(%r12), %rcx
	movq	(%r15), %rax
	cmpq	%rax, %rcx
	jne	LBB0_6
## %bb.3:
	movq	8(%r12), %rdx
	movq	_IWL_RATE_MCS_0_INDEX@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_6
## %bb.4:
	movq	_RS_ACTION_DOWNSCALE@GOTPCREL(%rip), %rdx
	cmpl	%r13d, (%rdx)
	jne	LBB0_6
## %bb.5:
	movq	_RATE_MCS_CHAN_WIDTH_20@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str(%rip), %rsi
	movq	_IWL_RATE_MCS_4_INDEX@GOTPCREL(%rip), %r8
	jmp	LBB0_11
LBB0_6:
	movq	_RATE_MCS_CHAN_WIDTH_20@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.7:
	movq	8(%r12), %rdx
	movq	_IWL_RATE_MCS_5_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	_IWL_RATE_MCS_1_INDEX@GOTPCREL(%rip), %r8
	cmpq	%rdi, %rdx
	jne	LBB0_9
## %bb.8:
	movq	_RS_ACTION_STAY@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	je	LBB0_11
LBB0_9:
	cmpq	%rdi, %rdx
	jle	LBB0_12
## %bb.10:
	movq	_RS_ACTION_UPSCALE@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jne	LBB0_12
LBB0_11:
	movq	%rax, (%r12)
	movq	(%r8), %rax
	movq	%rax, 8(%r12)
	movq	%r14, %rdi
	callq	_IWL_DEBUG_RATE
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_rs_set_expected_tpt_table
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rs_rate_scale_clear_tbl_windows
	movl	$1, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_MCS_CHAN_WIDTH_80,8,3     ## @RATE_MCS_CHAN_WIDTH_80
	.comm	_IWL_RATE_MCS_0_INDEX,8,3       ## @IWL_RATE_MCS_0_INDEX
	.comm	_RS_ACTION_DOWNSCALE,4,2        ## @RS_ACTION_DOWNSCALE
	.comm	_RATE_MCS_CHAN_WIDTH_20,8,3     ## @RATE_MCS_CHAN_WIDTH_20
	.comm	_IWL_RATE_MCS_4_INDEX,8,3       ## @IWL_RATE_MCS_4_INDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Switch 80Mhz SISO MCS0 -> 20Mhz MCS4\n"

	.comm	_IWL_RATE_MCS_5_INDEX,8,3       ## @IWL_RATE_MCS_5_INDEX
	.comm	_RS_ACTION_STAY,4,2             ## @RS_ACTION_STAY
	.comm	_RS_ACTION_UPSCALE,4,2          ## @RS_ACTION_UPSCALE
	.comm	_IWL_RATE_MCS_1_INDEX,8,3       ## @IWL_RATE_MCS_1_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"Switch 20Mhz SISO MCS5 -> 80Mhz MCS1\n"

	.no_dead_strip	_rs_tweak_rate_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_tweak_rate_tbl
_rs_tweak_rate_tbl:                     ; @rs_tweak_rate_tbl
	.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	x22, x4
	mov	x19, x3
	mov	x21, x2
	mov	x20, x0
	mov	x0, x1
	bl	_rs_bw_from_sta_bw
Lloh0:
	adrp	x23, _RATE_MCS_CHAN_WIDTH_80@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RATE_MCS_CHAN_WIDTH_80@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_is_vht_siso
	cbz	w0, LBB0_11
; %bb.2:
	ldr	x9, [x19]
	ldr	x8, [x23]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x10, [x19, #8]
Lloh2:
	adrp	x11, _IWL_RATE_MCS_0_INDEX@GOTPAGE
Lloh3:
	ldr	x11, [x11, _IWL_RATE_MCS_0_INDEX@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
Lloh5:
	adrp	x12, _RS_ACTION_DOWNSCALE@GOTPAGE
Lloh6:
	ldr	x12, [x12, _RS_ACTION_DOWNSCALE@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
	cmp	x10, x11
	ccmp	w12, w22, #0, eq
	b.eq	LBB0_9
LBB0_4:
Lloh8:
	adrp	x10, _RATE_MCS_CHAN_WIDTH_20@GOTPAGE
Lloh9:
	ldr	x10, [x10, _RATE_MCS_CHAN_WIDTH_20@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.5:
	ldr	x9, [x19, #8]
Lloh11:
	adrp	x10, _IWL_RATE_MCS_5_INDEX@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IWL_RATE_MCS_5_INDEX@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	adrp	x11, _RS_ACTION_STAY@GOTPAGE
Lloh15:
	ldr	x11, [x11, _RS_ACTION_STAY@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	cmp	x9, x10
	ccmp	w11, w22, #0, eq
	b.eq	LBB0_8
; %bb.6:
Lloh17:
	adrp	x11, _RS_ACTION_UPSCALE@GOTPAGE
Lloh18:
	ldr	x11, [x11, _RS_ACTION_UPSCALE@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	cmp	x9, x10
	ccmp	w11, w22, #0, gt
	b.eq	LBB0_8
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh22:
	adrp	x9, _IWL_RATE_MCS_1_INDEX@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IWL_RATE_MCS_1_INDEX@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh24:
	adrp	x8, _RATE_MCS_CHAN_WIDTH_20@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RATE_MCS_CHAN_WIDTH_20@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
Lloh29:
	adrp	x9, _IWL_RATE_MCS_4_INDEX@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IWL_RATE_MCS_4_INDEX@GOTPAGEOFF]
LBB0_10:
	str	x8, [x19]
	ldr	x8, [x9]
	str	x8, [x19, #8]
	mov	x0, x20
	bl	_IWL_DEBUG_RATE
	mov	x0, x21
	mov	x1, x19
	bl	_rs_set_expected_tpt_table
	mov	x0, x20
	mov	x1, x19
	bl	_rs_rate_scale_clear_tbl_windows
	mov	w0, #1
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_MCS_CHAN_WIDTH_80,8,3     ; @RATE_MCS_CHAN_WIDTH_80
	.comm	_IWL_RATE_MCS_0_INDEX,8,3       ; @IWL_RATE_MCS_0_INDEX
	.comm	_RS_ACTION_DOWNSCALE,4,2        ; @RS_ACTION_DOWNSCALE
	.comm	_RATE_MCS_CHAN_WIDTH_20,8,3     ; @RATE_MCS_CHAN_WIDTH_20
	.comm	_IWL_RATE_MCS_4_INDEX,8,3       ; @IWL_RATE_MCS_4_INDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Switch 80Mhz SISO MCS0 -> 20Mhz MCS4\n"

	.comm	_IWL_RATE_MCS_5_INDEX,8,3       ; @IWL_RATE_MCS_5_INDEX
	.comm	_RS_ACTION_STAY,4,2             ; @RS_ACTION_STAY
	.comm	_RS_ACTION_UPSCALE,4,2          ; @RS_ACTION_UPSCALE
	.comm	_IWL_RATE_MCS_1_INDEX,8,3       ; @IWL_RATE_MCS_1_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"Switch 20Mhz SISO MCS5 -> 80Mhz MCS1\n"

	.no_dead_strip	_rs_tweak_rate_tbl
.subsections_via_symbols
