	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_get_lower_rate_down_column
_rs_get_lower_rate_down_column:         ## @rs_get_lower_rate_down_column
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	%rsi, %rdi
	callq	_is_legacy
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	%rbx, %rdi
	callq	_is_siso
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	(%r14), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_LQ_LEGACY_A@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	callq	_is_vht_mimo2
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movq	_LQ_HT_SISO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_LQ_LEGACY_G@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_RATE_MCS_CHAN_WIDTH_20@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	(%rbx), %rax
	movq	_IWL_RATE_MCS_0_INDEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setb	%cl
	movq	_IWL_RATE_MCS_9_INDEX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	seta	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_WARN_ON_ONCE
	movq	_rs_ht_to_legacy@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, (%rbx)
	movl	$0, 8(%rbx)
	jmp	LBB0_10
LBB0_7:
	movq	_LQ_VHT_SISO@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
LBB0_10:
	movl	16(%rbx), %edi
	callq	_num_of_ant
	cmpl	$2, %eax
	jl	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_iwl_mvm_get_valid_tx_ant
	movl	%eax, %edi
	callq	_first_antenna
	movl	%eax, 16(%rbx)
LBB0_12:
	movl	$0, 12(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rs_rate_supported
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rs_get_lower_rate_in_column    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_LQ_LEGACY_A,4,2                ## @LQ_LEGACY_A
	.comm	_LQ_LEGACY_G,4,2                ## @LQ_LEGACY_G
	.comm	_RATE_MCS_CHAN_WIDTH_20,4,2     ## @RATE_MCS_CHAN_WIDTH_20
	.comm	_IWL_RATE_MCS_0_INDEX,8,3       ## @IWL_RATE_MCS_0_INDEX
	.comm	_IWL_RATE_MCS_9_INDEX,8,3       ## @IWL_RATE_MCS_9_INDEX
	.comm	_rs_ht_to_legacy,8,3            ## @rs_ht_to_legacy
	.comm	_LQ_VHT_SISO,4,2                ## @LQ_VHT_SISO
	.comm	_LQ_HT_SISO,4,2                 ## @LQ_HT_SISO
	.no_dead_strip	_rs_get_lower_rate_down_column
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_get_lower_rate_down_column
_rs_get_lower_rate_down_column:         ; @rs_get_lower_rate_down_column
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	x0, x1
	bl	_is_legacy
	cbnz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_is_siso
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _LQ_LEGACY_A@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LQ_LEGACY_A@GOTPAGEOFF]
Lloh5:
	adrp	x11, _LQ_LEGACY_G@GOTPAGE
Lloh6:
	ldr	x11, [x11, _LQ_LEGACY_G@GOTPAGEOFF]
	cmp	x9, x8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _RATE_MCS_CHAN_WIDTH_20@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RATE_MCS_CHAN_WIDTH_20@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #20]
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _IWL_RATE_MCS_0_INDEX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IWL_RATE_MCS_0_INDEX@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh13:
	adrp	x9, _IWL_RATE_MCS_9_INDEX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IWL_RATE_MCS_9_INDEX@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ccmp	x8, x9, #2, hs
	cset	w0, hi
	bl	_WARN_ON_ONCE
Lloh16:
	adrp	x8, _rs_ht_to_legacy@GOTPAGE
Lloh17:
	ldr	x8, [x8, _rs_ht_to_legacy@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [x19]
	str	wzr, [x19, #8]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_is_vht_mimo2
Lloh19:
	adrp	x8, _LQ_VHT_SISO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LQ_VHT_SISO@GOTPAGEOFF]
Lloh21:
	adrp	x9, _LQ_HT_SISO@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LQ_HT_SISO@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #20]
LBB0_4:
	ldr	w0, [x19, #16]
	bl	_num_of_ant
	cmp	w0, #2
	b.lt	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_iwl_mvm_get_valid_tx_ant
	bl	_first_antenna
	str	w0, [x19, #16]
LBB0_6:
	str	wzr, [x19, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_rs_rate_supported
	cbz	w0, LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rs_get_lower_rate_in_column
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_LQ_LEGACY_A,4,2                ; @LQ_LEGACY_A
	.comm	_LQ_LEGACY_G,4,2                ; @LQ_LEGACY_G
	.comm	_RATE_MCS_CHAN_WIDTH_20,4,2     ; @RATE_MCS_CHAN_WIDTH_20
	.comm	_IWL_RATE_MCS_0_INDEX,8,3       ; @IWL_RATE_MCS_0_INDEX
	.comm	_IWL_RATE_MCS_9_INDEX,8,3       ; @IWL_RATE_MCS_9_INDEX
	.comm	_rs_ht_to_legacy,8,3            ; @rs_ht_to_legacy
	.comm	_LQ_VHT_SISO,4,2                ; @LQ_VHT_SISO
	.comm	_LQ_HT_SISO,4,2                 ; @LQ_HT_SISO
	.no_dead_strip	_rs_get_lower_rate_down_column
.subsections_via_symbols
