	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rate_idx_match_mcs_mask
_rate_idx_match_mcs_mask:               ## @rate_idx_match_mcs_mask
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ebx
	leal	7(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	xorl	%r15d, %r15d
	cmpl	$-7, %ebx
	jl	LBB0_15
## %bb.1:
	movl	%eax, %ecx
	sarl	$3, %ecx
	movq	_IEEE80211_HT_MCS_MASK_LEN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_15
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	andl	$-8, %eax
	subl	%eax, %ebx
	movslq	%ecx, %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%r13), %rax
	movl	$7, %ebx
	testq	%r13, %r13
	movq	%rax, %r13
	jle	LBB0_9
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%ebx, %ebx
	js	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%r13,4), %r14d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r14d, %eax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	leal	-1(%rbx), %eax
	testl	%ebx, %ebx
	movl	%eax, %ebx
	jg	LBB0_4
	jmp	LBB0_8
LBB0_5:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_6:
	leal	(%rbx,%r13,8), %eax
	movl	%eax, (%r14)
	movl	$1, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %eax
	leal	1(%rax), %edx
	leal	8(%rax), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	movl	%ecx, %edx
	sarl	$3, %edx
	movq	_IEEE80211_HT_MCS_MASK_LEN@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jge	LBB0_15
## %bb.10:
	andl	$-8, %ecx
	negl	%ecx
	leal	(%rax,%rcx), %r15d
	incl	%r15d
	movslq	%edx, %r13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r13,4), %ebx
	movl	%r15d, %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	%r15d
	cmpl	$8, %r15d
	jne	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	movq	_IEEE80211_HT_MCS_MASK_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	xorl	%r15d, %r15d
	cmpq	%rax, %r13
	jl	LBB0_11
	jmp	LBB0_15
LBB0_12:
	movl	%r15d, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HT_MCS_MASK_LEN,4,2  ## @IEEE80211_HT_MCS_MASK_LEN
	.no_dead_strip	_rate_idx_match_mcs_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rate_idx_match_mcs_mask
_rate_idx_match_mcs_mask:               ; @rate_idx_match_mcs_mask
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #3
Lloh0:
	adrp	x24, _IEEE80211_HT_MCS_MASK_LEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IEEE80211_HT_MCS_MASK_LEN@GOTPAGEOFF]
	ldr	w10, [x24]
	cmn	w8, #7
	ccmp	w9, w10, #0, ge
	b.lt	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_22
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	sxtw	x23, w9
	sub	w21, w8, w9, lsl #3
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x23, #1
	mov	w21, #7
	cmp	x23, #0
	mov	x23, x8
	b.le	LBB0_23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w21, #31, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w22, [x20, x23, lsl #2]
	mov	x0, x21
	bl	_BIT
	tst	w0, w22
	b.ne	LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	w22, w21, #1
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [x20, x23, lsl #2]
	mov	x0, x22
	bl	_BIT
	tst	w0, w25
	b.ne	LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	w22, w21, #2
	b.lt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [x20, x23, lsl #2]
	mov	x0, x22
	bl	_BIT
	tst	w0, w25
	b.ne	LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	subs	w22, w21, #3
	b.lt	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [x20, x23, lsl #2]
	mov	x0, x22
	bl	_BIT
	tst	w0, w25
	b.ne	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	subs	w22, w21, #4
	b.lt	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [x20, x23, lsl #2]
	mov	x0, x22
	bl	_BIT
	tst	w0, w25
	b.ne	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	subs	w22, w21, #5
	b.lt	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [x20, x23, lsl #2]
	mov	x0, x22
	bl	_BIT
	tst	w0, w25
	b.ne	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	subs	w22, w21, #6
	b.lt	LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [x20, x23, lsl #2]
	mov	x0, x22
	bl	_BIT
	tst	w0, w25
	b.ne	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	subs	w21, w21, #7
	b.lt	LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w22, [x20, x23, lsl #2]
	mov	x0, x21
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_3
	b	LBB0_21
LBB0_20:
	mov	x21, x22
LBB0_21:
	add	w8, w21, w23, lsl #3
	str	w8, [x19]
	mov	w0, #1
LBB0_22:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_23:
	ldr	w8, [x19]
	ldr	w10, [x24]
	add	w8, w8, #1
	add	w9, w8, #7
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #3
	cmp	w9, w10
	b.ge	LBB0_1
; %bb.24:
	sxtw	x23, w9
	sub	w21, w8, w9, lsl #3
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x20, x23, lsl #2]
	mov	x0, x21
	bl	_BIT
	tst	w0, w22
	b.ne	LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	add	w21, w21, #1
	cmp	w21, #8
	b.ne	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w21, #0
	mov	w0, #0
	add	x23, x23, #1
	ldrsw	x8, [x24]
	cmp	x23, x8
	b.lt	LBB0_25
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HT_MCS_MASK_LEN,4,2  ; @IEEE80211_HT_MCS_MASK_LEN
	.no_dead_strip	_rate_idx_match_mcs_mask
.subsections_via_symbols
