	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ht_rateset_to_mask
_ht_rateset_to_mask:                    ## @ht_rateset_to_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
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_IEEE80211_HT_MCS_MASK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rcx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	$1, %eax
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r14,8), %rdi
	movq	%rdi, %r13
	shrq	$3, %r13
	andl	$7, %edi
	callq	_BIT
	testl	%r13d, %r13d
	js	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IEEE80211_HT_MCS_MASK_LEN@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdx
	movslq	%r13d, %rcx
	testl	%eax, (%rdx,%rcx,4)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cltq
	orq	%rax, (%r15,%rcx,8)
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_2
## %bb.6:
	movl	$1, %eax
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HT_MCS_MASK_LEN,4,2  ## @IEEE80211_HT_MCS_MASK_LEN
	.no_dead_strip	_ht_rateset_to_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ht_rateset_to_mask
_ht_rateset_to_mask:                    ; @ht_rateset_to_mask
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _IEEE80211_HT_MCS_MASK_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IEEE80211_HT_MCS_MASK_LEN@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x3
	mov	w1, #0
	bl	_memset
	cbz	x20, LBB0_5
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	lsr	x24, x8, #3
	and	x0, x8, #0x7
	bl	_BIT
	mov	x8, x0
	mov	w0, #0
	tbnz	w24, #31, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x23]
	cmp	w9, w24
	b.le	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x22]
	sbfiz	x10, x24, #2, #32
	ldr	w9, [x9, x10]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	sxtw	x9, w24
	lsl	x9, x9, #3
	ldr	x10, [x19, x9]
	sxtw	x8, w8
	orr	x8, x10, x8
	str	x8, [x19, x9]
	add	x21, x21, #8
	subs	x20, x20, #1
	b.ne	LBB0_1
LBB0_5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HT_MCS_MASK_LEN,4,2  ; @IEEE80211_HT_MCS_MASK_LEN
	.no_dead_strip	_ht_rateset_to_mask
.subsections_via_symbols
