	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_vht_set_enabled_rates
_rs_vht_set_enabled_rates:              ## @rs_vht_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, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	movl	$1, %esi
	callq	_rs_vht_highest_rx_mcs_index
	movl	%eax, %r13d
	movq	_IWL_RATE_MCS_0_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%ebx, %r13d
	jge	LBB0_1
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, 8(%rax)
	jl	LBB0_15
## %bb.8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$2, %esi
	callq	_rs_vht_highest_rx_mcs_index
	movl	%eax, %r15d
	movq	_IWL_RATE_MCS_0_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%ebx, %r15d
	jge	LBB0_9
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	incl	%r13d
	movq	_IWL_RATE_9M_INDEX@GOTPCREL(%rip), %r15
	movq	_IWL_RATE_MCS_9_INDEX@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, 4(%r12)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%ebx, %r13d
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%r15), %ebx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%r14), %ebx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_IEEE80211_STA_RX_BW_20@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_9:
	incl	%r15d
	movq	_IWL_RATE_9M_INDEX@GOTPCREL(%rip), %r13
	movq	_IWL_RATE_MCS_9_INDEX@GOTPCREL(%rip), %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, (%r12)
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	cmpl	%ebx, %r15d
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%r13), %ebx
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	(%r14), %ebx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_IEEE80211_STA_RX_BW_20@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_RATE_MCS_0_INDEX,4,2       ## @IWL_RATE_MCS_0_INDEX
	.comm	_IWL_RATE_9M_INDEX,4,2          ## @IWL_RATE_9M_INDEX
	.comm	_IWL_RATE_MCS_9_INDEX,4,2       ## @IWL_RATE_MCS_9_INDEX
	.comm	_IEEE80211_STA_RX_BW_20,8,3     ## @IEEE80211_STA_RX_BW_20
	.no_dead_strip	_rs_vht_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_vht_set_enabled_rates
_rs_vht_set_enabled_rates:              ; @rs_vht_set_enabled_rates
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #1
	bl	_rs_vht_highest_rx_mcs_index
Lloh0:
	adrp	x23, _IWL_RATE_MCS_0_INDEX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IWL_RATE_MCS_0_INDEX@GOTPAGEOFF]
	ldr	w22, [x23]
	cmp	w0, w22
	b.ge	LBB0_4
LBB0_1:
	ldr	w8, [x20, #8]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	w1, #2
	bl	_rs_vht_highest_rx_mcs_index
	ldr	w21, [x23]
	cmp	w0, w21
	b.ge	LBB0_10
LBB0_3:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
	add	w24, w0, #1
Lloh2:
	adrp	x25, _IWL_RATE_9M_INDEX@GOTPAGE
Lloh3:
	ldr	x25, [x25, _IWL_RATE_9M_INDEX@GOTPAGEOFF]
Lloh4:
	adrp	x26, _IWL_RATE_MCS_9_INDEX@GOTPAGE
Lloh5:
	ldr	x26, [x26, _IWL_RATE_MCS_9_INDEX@GOTPAGEOFF]
Lloh6:
	adrp	x27, _IEEE80211_STA_RX_BW_20@GOTPAGE
Lloh7:
	ldr	x27, [x27, _IEEE80211_STA_RX_BW_20@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_BIT
	ldr	w8, [x19, #4]
	orr	w8, w8, w0
	str	w8, [x19, #4]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w22, w22, #1
	cmp	w24, w22
	b.eq	LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	cmp	w22, w8
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x26]
	cmp	w22, w8
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_5
	b	LBB0_6
LBB0_10:
	add	w22, w0, #1
Lloh8:
	adrp	x23, _IWL_RATE_9M_INDEX@GOTPAGE
Lloh9:
	ldr	x23, [x23, _IWL_RATE_9M_INDEX@GOTPAGEOFF]
Lloh10:
	adrp	x24, _IWL_RATE_MCS_9_INDEX@GOTPAGE
Lloh11:
	ldr	x24, [x24, _IWL_RATE_MCS_9_INDEX@GOTPAGEOFF]
Lloh12:
	adrp	x25, _IEEE80211_STA_RX_BW_20@GOTPAGE
Lloh13:
	ldr	x25, [x25, _IEEE80211_STA_RX_BW_20@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	bl	_BIT
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w21, w21, #1
	cmp	w22, w21
	b.eq	LBB0_3
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cmp	w21, w8
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x24]
	cmp	w21, w8
	b.ne	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_11
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_RATE_MCS_0_INDEX,4,2       ; @IWL_RATE_MCS_0_INDEX
	.comm	_IWL_RATE_9M_INDEX,4,2          ; @IWL_RATE_9M_INDEX
	.comm	_IWL_RATE_MCS_9_INDEX,4,2       ; @IWL_RATE_MCS_9_INDEX
	.comm	_IEEE80211_STA_RX_BW_20,8,3     ; @IEEE80211_STA_RX_BW_20
	.no_dead_strip	_rs_vht_set_enabled_rates
.subsections_via_symbols
