	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_fw_he_set_enabled_rates
_rs_fw_he_set_enabled_rates:            ## @rs_fw_he_set_enabled_rates
	.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, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_le16_to_cpu
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	4(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rax
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.1:
	movq	_IWL_TLC_NSS_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.2:
	movl	$1, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	%r15d, %ecx
	sarl	%cl, %r12d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	sarl	%cl, %eax
	andl	$3, %r12d
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	sarl	%cl, %r13d
	andl	$3, %eax
	andl	$3, %r13d
	movq	_IEEE80211_HE_MCS_NOT_SUPPORTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %ecx
	sarl	%cl, %edi
	andl	$3, %edi
	cmpl	%edx, %edi
	jne	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %eax
	movl	%edx, %edi
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%edi, %eax
	cmovll	%eax, %edi
	callq	_rs_fw_he_ieee80211_mcs_to_rs_mcs
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	(%rbx), %rcx
	movq	(%rcx,%r15,4), %rcx
	movq	_IWL_TLC_HT_BW_NONE_160@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	_IEEE80211_HE_MCS_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	sete	%cl
	cmpl	%eax, %r13d
	sete	%dl
	orb	%cl, %dl
	cmovnel	%eax, %r12d
	cmovnel	%eax, %r13d
	cmpl	%r13d, %r12d
	cmovll	%r12d, %r13d
	movl	%r13d, %edi
	callq	_rs_fw_he_ieee80211_mcs_to_rs_mcs
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	(%rbx), %rcx
	movq	(%rcx,%r15,4), %rcx
	movq	_IWL_TLC_HT_BW_160@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$2, %r15
	leaq	1(%r14), %rax
	movq	_IWL_TLC_NSS_MAX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %r14
	movq	%rax, %r14
	jl	LBB0_3
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_TLC_NSS_MAX,4,2            ## @IWL_TLC_NSS_MAX
	.comm	_IEEE80211_HE_MCS_NOT_SUPPORTED,4,2 ## @IEEE80211_HE_MCS_NOT_SUPPORTED
	.comm	_IWL_TLC_HT_BW_NONE_160,8,3     ## @IWL_TLC_HT_BW_NONE_160
	.comm	_IWL_TLC_HT_BW_160,8,3          ## @IWL_TLC_HT_BW_160
	.no_dead_strip	_rs_fw_he_set_enabled_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_fw_he_set_enabled_rates
_rs_fw_he_set_enabled_rates:            ; @rs_fw_he_set_enabled_rates
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x24, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_le16_to_cpu
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	ldr	x8, [x24]
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	x8, [x24]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IWL_TLC_NSS_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_TLC_NSS_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #1
	ccmp	w9, #1, #8, ge
	b.lt	LBB0_4
; %bb.1:
	mov	x24, x0
	mov	w26, #0
	mov	x27, #0
Lloh3:
	adrp	x28, _IEEE80211_HE_MCS_NOT_SUPPORTED@GOTPAGE
Lloh4:
	ldr	x28, [x28, _IEEE80211_HE_MCS_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	asr	w8, w8, w26
	and	w25, w8, #0x3
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	asr	w8, w8, w26
	and	w8, w8, #0x3
	asr	w9, w24, w26
	and	w21, w9, #0x3
	ldr	w9, [x28]
	cmp	w8, w9
	asr	w10, w23, w26
	and	w10, w10, #0x3
	ccmp	w10, w9, #4, ne
	csel	w8, w8, w9, ne
	csel	w9, w10, w9, ne
	cmp	w8, w9
	csel	w0, w8, w9, lt
	bl	_rs_fw_he_ieee80211_mcs_to_rs_mcs
	bl	_cpu_to_le16
	ldr	x8, [x19]
	lsl	x22, x27, #3
	ldr	x8, [x8, x22]
Lloh5:
	adrp	x9, _IWL_TLC_HT_BW_NONE_160@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IWL_TLC_HT_BW_NONE_160@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
	ldr	w8, [x28]
	cmp	w25, w8
	ccmp	w21, w8, #4, ne
	csel	w9, w8, w25, eq
	csel	w8, w8, w21, eq
	cmp	w9, w8
	csel	w0, w9, w8, lt
	bl	_rs_fw_he_ieee80211_mcs_to_rs_mcs
	bl	_cpu_to_le16
	ldr	x8, [x19]
	ldr	x8, [x8, x22]
Lloh8:
	adrp	x9, _IWL_TLC_HT_BW_160@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IWL_TLC_HT_BW_160@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
	add	x27, x27, #1
	ldrsw	x8, [x20]
	cmp	x27, x8
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh11:
	adrp	x8, _IWL_TLC_NSS_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IWL_TLC_NSS_MAX@GOTPAGEOFF]
Lloh13:
	ldrsw	x8, [x8]
	add	w26, w26, #2
	cmp	x27, x8
	b.lt	LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_TLC_NSS_MAX,4,2            ; @IWL_TLC_NSS_MAX
	.comm	_IEEE80211_HE_MCS_NOT_SUPPORTED,4,2 ; @IEEE80211_HE_MCS_NOT_SUPPORTED
	.comm	_IWL_TLC_HT_BW_NONE_160,8,3     ; @IWL_TLC_HT_BW_NONE_160
	.comm	_IWL_TLC_HT_BW_160,8,3          ; @IWL_TLC_HT_BW_160
	.no_dead_strip	_rs_fw_he_set_enabled_rates
.subsections_via_symbols
