	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_build_rates_table
_rs_build_rates_table:                  ## @rs_build_rates_table
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	$0, -52(%rbp)
	leaq	-48(%rbp), %rdi
	movq	%rcx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_iwl_mvm_get_valid_tx_ant
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rdi
	movq	_IWL_UCODE_TLV_API_LQ_SS_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_api
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_rs_stbc_allow
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$1, -48(%rbp)
LBB0_3:
	leaq	-48(%rbp), %rdi
	callq	_is_siso
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_IWL_MVM_RS_INITIAL_SISO_NUM_RATES@GOTPCREL(%rip), %rcx
	xorl	%r10d, %r10d
	movq	_IWL_MVM_RS_HT_VHT_RETRIES_PER_RATE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	leaq	-48(%rbp), %rdi
	callq	_is_mimo
	xorl	%r10d, %r10d
	testq	%rax, %rax
	sete	%r10b
	movq	_IWL_MVM_RS_HT_VHT_RETRIES_PER_RATE@GOTPCREL(%rip), %rax
	cmoveq	_IWL_MVM_RS_INITIAL_LEGACY_RETRIES@GOTPCREL(%rip), %rax
	movq	_IWL_MVM_RS_INITIAL_MIMO_NUM_RATES@GOTPCREL(%rip), %rcx
	cmoveq	_IWL_MVM_RS_INITIAL_LEGACY_NUM_RATES@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %r12d
	movl	(%rax), %ebx
	movl	8(%r14), %ecx
	subq	$8, %rsp
	leaq	-48(%rbp), %r13
	leaq	-52(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	%r12d, %r9d
	pushq	%r10
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%rbx
	callq	_rs_fill_rates_for_column
	addq	$32, %rsp
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_rs_get_lower_rate_down_column
	movq	%r13, %rdi
	callq	_is_siso
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %r13
	movq	_IWL_MVM_RS_SECONDARY_SISO_NUM_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IWL_MVM_RS_SECONDARY_SISO_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	-52(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_11
LBB0_8:
	leaq	-48(%rbp), %rdi
	callq	_is_legacy
	movq	%r15, %r13
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_IWL_MVM_RS_SECONDARY_LEGACY_NUM_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IWL_MVM_RS_SECONDARY_LEGACY_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	jmp	LBB0_11
LBB0_10:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	movq	%rbx, %r10
LBB0_11:
	movl	8(%r14), %ecx
	subq	$8, %rsp
	leaq	-48(%rbp), %r15
	leaq	-52(%rbp), %r8
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%r12d, %r9d
	pushq	$1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	pushq	%r10
	callq	_rs_fill_rates_for_column
	addq	$32, %rsp
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_rs_get_lower_rate_down_column
	movq	_IWL_MVM_RS_SECONDARY_LEGACY_NUM_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_IWL_MVM_RS_SECONDARY_LEGACY_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	8(%r14), %ecx
	subq	$8, %rsp
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	leaq	-52(%rbp), %r8
	pushq	$1
	pushq	%rbx
	pushq	%rax
	callq	_rs_fill_rates_for_column
	addq	$32, %rsp
	movl	4(%r14), %edi
	callq	_LQ_FLAG_COLOR_GET
	movl	%eax, %edi
	callq	_LQ_FLAGS_COLOR_INC
	movl	4(%r14), %edi
	movl	%eax, %esi
	callq	_LQ_FLAG_COLOR_SET
	movl	%eax, 4(%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_TLV_API_LQ_SS_PARAMS,4,2 ## @IWL_UCODE_TLV_API_LQ_SS_PARAMS
	.comm	_IWL_MVM_RS_INITIAL_SISO_NUM_RATES,4,2 ## @IWL_MVM_RS_INITIAL_SISO_NUM_RATES
	.comm	_IWL_MVM_RS_HT_VHT_RETRIES_PER_RATE,4,2 ## @IWL_MVM_RS_HT_VHT_RETRIES_PER_RATE
	.comm	_IWL_MVM_RS_INITIAL_MIMO_NUM_RATES,4,2 ## @IWL_MVM_RS_INITIAL_MIMO_NUM_RATES
	.comm	_IWL_MVM_RS_INITIAL_LEGACY_NUM_RATES,4,2 ## @IWL_MVM_RS_INITIAL_LEGACY_NUM_RATES
	.comm	_IWL_MVM_RS_INITIAL_LEGACY_RETRIES,4,2 ## @IWL_MVM_RS_INITIAL_LEGACY_RETRIES
	.comm	_IWL_MVM_RS_SECONDARY_SISO_NUM_RATES,4,2 ## @IWL_MVM_RS_SECONDARY_SISO_NUM_RATES
	.comm	_IWL_MVM_RS_SECONDARY_SISO_RETRIES,4,2 ## @IWL_MVM_RS_SECONDARY_SISO_RETRIES
	.comm	_IWL_MVM_RS_SECONDARY_LEGACY_NUM_RATES,4,2 ## @IWL_MVM_RS_SECONDARY_LEGACY_NUM_RATES
	.comm	_IWL_MVM_RS_SECONDARY_LEGACY_RETRIES,4,2 ## @IWL_MVM_RS_SECONDARY_LEGACY_RETRIES
	.no_dead_strip	_rs_build_rates_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_build_rates_table
_rs_build_rates_table:                  ; @rs_build_rates_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	str	wzr, [sp, #4]
	add	x0, sp, #8
	mov	x1, x3
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	bl	_iwl_mvm_get_valid_tx_ant
	mov	x21, x0
	ldr	x0, [x20]
Lloh0:
	adrp	x8, _IWL_UCODE_TLV_API_LQ_SS_PARAMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_UCODE_TLV_API_LQ_SS_PARAMS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fw_has_api
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_rs_stbc_allow
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [sp, #8]
LBB0_3:
	add	x0, sp, #8
	bl	_is_siso
Lloh3:
	adrp	x23, _IWL_MVM_RS_HT_VHT_RETRIES_PER_RATE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IWL_MVM_RS_HT_VHT_RETRIES_PER_RATE@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #0
Lloh5:
	adrp	x9, _IWL_MVM_RS_INITIAL_SISO_NUM_RATES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IWL_MVM_RS_INITIAL_SISO_NUM_RATES@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	add	x0, sp, #8
	bl	_is_mimo
Lloh7:
	adrp	x8, _IWL_MVM_RS_INITIAL_LEGACY_RETRIES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IWL_MVM_RS_INITIAL_LEGACY_RETRIES@GOTPAGEOFF]
	cmp	x0, #0
	csel	x23, x8, x23, eq
	cset	w8, eq
Lloh9:
	adrp	x9, _IWL_MVM_RS_INITIAL_MIMO_NUM_RATES@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IWL_MVM_RS_INITIAL_MIMO_NUM_RATES@GOTPAGEOFF]
Lloh11:
	adrp	x10, _IWL_MVM_RS_INITIAL_LEGACY_NUM_RATES@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IWL_MVM_RS_INITIAL_LEGACY_NUM_RATES@GOTPAGEOFF]
	csel	x9, x10, x9, eq
LBB0_6:
	ldr	w22, [x9]
	ldr	w23, [x23]
	ldr	w3, [x19, #8]
	str	w8, [sp]
	add	x2, sp, #8
	add	x4, sp, #4
	mov	x0, x20
	mov	x1, x19
	mov	x5, x22
	mov	x6, x23
	mov	x7, x21
	bl	_rs_fill_rates_for_column
	add	x1, sp, #8
	mov	x0, x19
	bl	_rs_get_lower_rate_down_column
	add	x0, sp, #8
	bl	_is_siso
Lloh13:
	adrp	x24, _IWL_MVM_RS_SECONDARY_LEGACY_NUM_RATES@GOTPAGE
Lloh14:
	ldr	x24, [x24, _IWL_MVM_RS_SECONDARY_LEGACY_NUM_RATES@GOTPAGEOFF]
Lloh15:
	adrp	x25, _IWL_MVM_RS_SECONDARY_LEGACY_RETRIES@GOTPAGE
Lloh16:
	ldr	x25, [x25, _IWL_MVM_RS_SECONDARY_LEGACY_RETRIES@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _IWL_MVM_RS_SECONDARY_SISO_NUM_RATES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IWL_MVM_RS_SECONDARY_SISO_NUM_RATES@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
Lloh20:
	adrp	x8, _IWL_MVM_RS_SECONDARY_SISO_RETRIES@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IWL_MVM_RS_SECONDARY_SISO_RETRIES@GOTPAGEOFF]
Lloh22:
	ldr	w23, [x8]
	ldr	w8, [sp, #4]
	str	w8, [x19]
	b	LBB0_11
LBB0_8:
	add	x0, sp, #8
	bl	_is_legacy
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w22, [x24]
	ldr	w23, [x25]
	b	LBB0_11
LBB0_10:
	mov	w0, #1
	bl	_WARN_ON_ONCE
LBB0_11:
	ldr	w3, [x19, #8]
	mov	w26, #1
	str	w26, [sp]
	add	x2, sp, #8
	add	x4, sp, #4
	mov	x0, x20
	mov	x1, x19
	mov	x5, x22
	mov	x6, x23
	mov	x7, x21
	bl	_rs_fill_rates_for_column
	add	x1, sp, #8
	mov	x0, x19
	bl	_rs_get_lower_rate_down_column
	ldr	w5, [x24]
	ldr	w6, [x25]
	ldr	w3, [x19, #8]
	str	w26, [sp]
	add	x2, sp, #8
	add	x4, sp, #4
	mov	x0, x20
	mov	x1, x19
	mov	x7, x21
	bl	_rs_fill_rates_for_column
	ldr	w0, [x19, #4]
	bl	_LQ_FLAG_COLOR_GET
	bl	_LQ_FLAGS_COLOR_INC
	mov	x1, x0
	ldr	w0, [x19, #4]
	bl	_LQ_FLAG_COLOR_SET
	str	w0, [x19, #4]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_TLV_API_LQ_SS_PARAMS,4,2 ; @IWL_UCODE_TLV_API_LQ_SS_PARAMS
	.comm	_IWL_MVM_RS_INITIAL_SISO_NUM_RATES,4,2 ; @IWL_MVM_RS_INITIAL_SISO_NUM_RATES
	.comm	_IWL_MVM_RS_HT_VHT_RETRIES_PER_RATE,4,2 ; @IWL_MVM_RS_HT_VHT_RETRIES_PER_RATE
	.comm	_IWL_MVM_RS_INITIAL_MIMO_NUM_RATES,4,2 ; @IWL_MVM_RS_INITIAL_MIMO_NUM_RATES
	.comm	_IWL_MVM_RS_INITIAL_LEGACY_NUM_RATES,4,2 ; @IWL_MVM_RS_INITIAL_LEGACY_NUM_RATES
	.comm	_IWL_MVM_RS_INITIAL_LEGACY_RETRIES,4,2 ; @IWL_MVM_RS_INITIAL_LEGACY_RETRIES
	.comm	_IWL_MVM_RS_SECONDARY_SISO_NUM_RATES,4,2 ; @IWL_MVM_RS_SECONDARY_SISO_NUM_RATES
	.comm	_IWL_MVM_RS_SECONDARY_SISO_RETRIES,4,2 ; @IWL_MVM_RS_SECONDARY_SISO_RETRIES
	.comm	_IWL_MVM_RS_SECONDARY_LEGACY_NUM_RATES,4,2 ; @IWL_MVM_RS_SECONDARY_LEGACY_NUM_RATES
	.comm	_IWL_MVM_RS_SECONDARY_LEGACY_RETRIES,4,2 ; @IWL_MVM_RS_SECONDARY_LEGACY_RETRIES
	.no_dead_strip	_rs_build_rates_table
.subsections_via_symbols
