	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rate_fixup_ratelist
_rate_fixup_ratelist:                   ## @rate_fixup_ratelist
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rcx)
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_14
## %bb.1:
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %ebx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	leal	-1(%rbx), %edi
	callq	_ffs
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rsi)
	jle	LBB0_13
## %bb.5:
	movq	8(%r14), %r13
	shlq	$4, %r13
	addq	8(%rsi), %r13
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movslq	(%rdx), %rax
	addq	$16, %r15
	cmpq	%rax, %r12
	jge	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rax
	movq	(%rax,%r15), %rcx
	cmpq	(%r13), %rcx
	jg	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rsi
	shlq	$4, %rsi
	movq	%r12, %rdx
	cmpq	%rcx, (%rax,%rsi)
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdi, %rdx
	jmp	LBB0_10
LBB0_13:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %r12
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
LBB0_14:
	testl	%r8d, %r8d
	jle	LBB0_34
## %bb.15:
	movl	%r8d, %ebx
	movq	_IEEE80211_TX_RC_VHT_MCS@GOTPCREL(%rip), %r13
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	testl	%ecx, (%r13)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r14, %rdi
	callq	_ieee80211_rate_get_vht_mcs
	xorl	%edi, %edi
	cmpl	$10, %eax
	setge	%dil
	callq	_WARN_ON
LBB0_33:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	$16, %r14
	decq	%rbx
	je	LBB0_34
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%r14), %ecx
	testl	%ecx, (%r12)
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	xorl	%edi, %edi
	cmpq	$77, %rax
	setae	%dil
	callq	_WARN_ON
	movl	(%r14), %eax
	movq	_IEEE80211_TX_RC_USE_RTS_CTS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_33
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$0, 8(%r15)
	je	LBB0_33
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_33
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %r13
	cmpq	$0, 24(%r15)
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_IEEE80211_TX_RC_USE_RTS_CTS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r14)
	movl	$0, 8(%r15)
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movslq	(%r12), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setae	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	$-1, 8(%r14)
	movq	%r13, %r12
	movq	_IEEE80211_TX_RC_VHT_MCS@GOTPCREL(%rip), %r13
	jmp	LBB0_33
LBB0_26:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%r12), %rax
	movq	8(%r14), %rcx
	cmpq	$0, 16(%r15)
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movq	_IEEE80211_RATE_SHORT_PREAMBLE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, 8(%rax,%rdx)
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_IEEE80211_TX_RC_USE_SHORT_PREAMBLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%r14)
LBB0_29:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	(%r14), %edx
	movq	_IEEE80211_TX_RC_USE_RTS_CTS@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	movq	%r13, %r12
	movq	_IEEE80211_TX_RC_VHT_MCS@GOTPCREL(%rip), %r13
	jne	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$0, 8(%r15)
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_16 Depth=1
	shlq	$4, %rcx
	movq	_IEEE80211_RATE_ERP_G@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, 8(%rax,%rcx)
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%r14)
	jmp	LBB0_33
LBB0_34:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_RC_MCS,4,2        ## @IEEE80211_TX_RC_MCS
	.comm	_IEEE80211_TX_RC_USE_RTS_CTS,4,2 ## @IEEE80211_TX_RC_USE_RTS_CTS
	.comm	_IEEE80211_TX_RC_USE_CTS_PROTECT,4,2 ## @IEEE80211_TX_RC_USE_CTS_PROTECT
	.comm	_IEEE80211_TX_RC_VHT_MCS,4,2    ## @IEEE80211_TX_RC_VHT_MCS
	.comm	_IEEE80211_RATE_SHORT_PREAMBLE,4,2 ## @IEEE80211_RATE_SHORT_PREAMBLE
	.comm	_IEEE80211_TX_RC_USE_SHORT_PREAMBLE,4,2 ## @IEEE80211_TX_RC_USE_SHORT_PREAMBLE
	.comm	_IEEE80211_RATE_ERP_G,4,2       ## @IEEE80211_RATE_ERP_G
	.no_dead_strip	_rate_fixup_ratelist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rate_fixup_ratelist
_rate_fixup_ratelist:                   ; @rate_fixup_ratelist
	.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	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	w8, [x3]
Lloh0:
	adrp	x25, _IEEE80211_TX_RC_MCS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IEEE80211_TX_RC_MCS@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.1:
	ldr	w26, [x0]
	cbz	w26, LBB0_3
; %bb.2:
	sub	w0, w26, #1
	bl	_ffs
	mov	x23, x0
	b	LBB0_4
LBB0_3:
	mov	x23, #0
LBB0_4:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x27, #0
	mov	x24, #0
	ldr	x8, [x19, #8]
	ldr	x9, [x21, #8]
	add	x28, x9, x8, lsl #4
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x21]
	add	x27, x27, #16
	cmp	x24, x8
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_BIT
	tst	w0, w26
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x8, x27]
	ldr	x10, [x28]
	cmp	x9, x10
	b.gt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	x10, x23, #4
	ldr	x8, [x8, x10]
	cmp	x8, x9
	csel	x23, x24, x23, lt
	b	LBB0_6
LBB0_10:
	str	x23, [x20]
LBB0_11:
	cmp	w22, #1
	b.lt	LBB0_32
; %bb.12:
Lloh2:
	adrp	x23, _IEEE80211_TX_RC_VHT_MCS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IEEE80211_TX_RC_VHT_MCS@GOTPAGEOFF]
Lloh4:
	adrp	x24, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGEOFF]
Lloh6:
	adrp	x27, _IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPAGE
Lloh7:
	ldr	x27, [x27, _IEEE80211_TX_RC_USE_CTS_PROTECT@GOTPAGEOFF]
	mov	w22, w22
Lloh8:
	adrp	x28, _IEEE80211_RATE_SHORT_PREAMBLE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _IEEE80211_RATE_SHORT_PREAMBLE@GOTPAGEOFF]
	mov	x26, #-1
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	bl	_ieee80211_rate_get_vht_mcs
	cmp	w0, #9
	cset	w0, gt
	bl	_WARN_ON
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x19, x19, #16
	subs	x22, x22, #1
	b.eq	LBB0_32
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	x8, #76
	cset	w0, hi
	bl	_WARN_ON
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w9, [x20, #8]
	cbz	w9, LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w9, [x27]
	orr	w8, w9, w8
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
	str	w8, [x19]
	b	LBB0_15
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x10, [x20, #24]
	cbz	x10, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w10, [x24]
	orr	w9, w10, w9
	str	w9, [x19]
	str	wzr, [x20, #8]
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=1
	ldrsw	x9, [x21]
	cmp	x8, x9
	cset	w0, hs
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_16 Depth=1
	str	x26, [x19, #8]
	b	LBB0_15
LBB0_25:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x19, #8]
	ldr	x10, [x20, #16]
	cbz	x10, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x10, x8, x9, lsl #4
	ldr	w10, [x10, #8]
	ldr	w11, [x28]
	tst	w11, w10
	b.eq	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh10:
	adrp	x10, _IEEE80211_TX_RC_USE_SHORT_PREAMBLE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IEEE80211_TX_RC_USE_SHORT_PREAMBLE@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	ldr	w11, [x19]
	orr	w10, w11, w10
	str	w10, [x19]
LBB0_28:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w10, [x19]
	ldr	w11, [x24]
	tst	w11, w10
	b.ne	LBB0_15
; %bb.29:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w11, [x20, #8]
	cbz	w11, LBB0_15
; %bb.30:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x8, x8, x9, lsl #4
	ldr	w8, [x8, #8]
Lloh13:
	adrp	x9, _IEEE80211_RATE_ERP_G@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IEEE80211_RATE_ERP_G@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.31:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x27]
	orr	w8, w8, w10
	b	LBB0_20
LBB0_32:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_RC_MCS,4,2        ; @IEEE80211_TX_RC_MCS
	.comm	_IEEE80211_TX_RC_USE_RTS_CTS,4,2 ; @IEEE80211_TX_RC_USE_RTS_CTS
	.comm	_IEEE80211_TX_RC_USE_CTS_PROTECT,4,2 ; @IEEE80211_TX_RC_USE_CTS_PROTECT
	.comm	_IEEE80211_TX_RC_VHT_MCS,4,2    ; @IEEE80211_TX_RC_VHT_MCS
	.comm	_IEEE80211_RATE_SHORT_PREAMBLE,4,2 ; @IEEE80211_RATE_SHORT_PREAMBLE
	.comm	_IEEE80211_TX_RC_USE_SHORT_PREAMBLE,4,2 ; @IEEE80211_TX_RC_USE_SHORT_PREAMBLE
	.comm	_IEEE80211_RATE_ERP_G,4,2       ; @IEEE80211_RATE_ERP_G
	.no_dead_strip	_rate_fixup_ratelist
.subsections_via_symbols
