	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_set_mcsset
_ieee80211_set_mcsset:                  ## @ieee80211_set_mcsset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movslq	(%rdi), %rsi
	leal	-1(%rsi), %eax
	xorl	%edi, %edi
	cmpl	$4, %eax
	setb	%dil
	callq	_KASSERT
	movslq	4(%r14), %rsi
	leal	-1(%rsi), %eax
	xorl	%edi, %edi
	cmpl	$4, %eax
	setb	%dil
	callq	_KASSERT
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_setbit
	incl	%ebx
	movl	(%r14), %eax
	shll	$3, %eax
	cmpl	%eax, %ebx
	jl	LBB0_2
LBB0_3:
	movl	8(%r14), %eax
	movq	_IEEE80211_HTCAP_CHWIDTH40@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	_IEEE80211_HTC_RXMCS32@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_setbit
	movl	8(%r14), %eax
LBB0_6:
	movq	_IEEE80211_HTC_RXUNEQUAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.7:
	cmpl	$2, (%r14)
	jl	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	movl	$33, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$34, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$35, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$36, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$37, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$38, %esi
	callq	_setbit
	cmpl	$3, (%r14)
	jl	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movl	$39, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$41, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$42, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$43, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$44, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$45, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$46, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$49, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$50, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$51, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$52, %esi
	callq	_setbit
LBB0_10:
	cmpl	$4, 4(%r14)
	jl	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movl	$53, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$54, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$55, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$56, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$57, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$58, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$59, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$60, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$61, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$62, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$63, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$65, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$66, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$67, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$68, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$69, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$70, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$71, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$72, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$73, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$74, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$75, %esi
	callq	_setbit
	movq	%r15, %rdi
	movl	$76, %esi
	callq	_setbit
LBB0_12:
	movl	4(%r14), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, (%r14)
	je	LBB0_14
## %bb.13:
	leal	-4(,%rcx,4), %ecx
	movq	_IEEE80211_HTC_TXUNEQUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	movl	$3, %edx
	movl	$23, %eax
	cmovel	%edx, %eax
	orl	%ecx, %eax
LBB0_14:
	movl	%eax, 48(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HTCAP_CHWIDTH40,4,2  ## @IEEE80211_HTCAP_CHWIDTH40
	.comm	_IEEE80211_HTC_RXMCS32,4,2      ## @IEEE80211_HTC_RXMCS32
	.comm	_IEEE80211_HTC_RXUNEQUAL,4,2    ## @IEEE80211_HTC_RXUNEQUAL
	.comm	_IEEE80211_HTC_TXUNEQUAL,4,2    ## @IEEE80211_HTC_TXUNEQUAL
	.no_dead_strip	_ieee80211_set_mcsset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_set_mcsset
_ieee80211_set_mcsset:                  ; @ieee80211_set_mcsset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldrsw	x1, [x0]
	sub	w8, w1, #1
	cmp	w8, #4
	cset	w0, lo
	bl	_KASSERT
	ldrsw	x1, [x20, #4]
	sub	w8, w1, #1
	cmp	w8, #4
	cset	w0, lo
	bl	_KASSERT
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_setbit
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8, lsl #3
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x9, _IEEE80211_HTCAP_CHWIDTH40@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HTCAP_CHWIDTH40@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
Lloh3:
	adrp	x9, _IEEE80211_HTC_RXMCS32@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_HTC_RXMCS32@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #32
	bl	_setbit
	ldr	w8, [x20, #8]
LBB0_6:
Lloh6:
	adrp	x9, _IEEE80211_HTC_RXUNEQUAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_HTC_RXUNEQUAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.7:
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.8:
	mov	x0, x19
	mov	w1, #33
	bl	_setbit
	mov	x0, x19
	mov	w1, #34
	bl	_setbit
	mov	x0, x19
	mov	w1, #35
	bl	_setbit
	mov	x0, x19
	mov	w1, #36
	bl	_setbit
	mov	x0, x19
	mov	w1, #37
	bl	_setbit
	mov	x0, x19
	mov	w1, #38
	bl	_setbit
	ldr	w8, [x20]
	cmp	w8, #3
	b.lt	LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #39
	bl	_setbit
	mov	x0, x19
	mov	w1, #40
	bl	_setbit
	mov	x0, x19
	mov	w1, #41
	bl	_setbit
	mov	x0, x19
	mov	w1, #42
	bl	_setbit
	mov	x0, x19
	mov	w1, #43
	bl	_setbit
	mov	x0, x19
	mov	w1, #44
	bl	_setbit
	mov	x0, x19
	mov	w1, #45
	bl	_setbit
	mov	x0, x19
	mov	w1, #46
	bl	_setbit
	mov	x0, x19
	mov	w1, #47
	bl	_setbit
	mov	x0, x19
	mov	w1, #48
	bl	_setbit
	mov	x0, x19
	mov	w1, #49
	bl	_setbit
	mov	x0, x19
	mov	w1, #50
	bl	_setbit
	mov	x0, x19
	mov	w1, #51
	bl	_setbit
	mov	x0, x19
	mov	w1, #52
	bl	_setbit
LBB0_10:
	ldr	w8, [x20, #4]
	cmp	w8, #3
	b.le	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #53
	bl	_setbit
	mov	x0, x19
	mov	w1, #54
	bl	_setbit
	mov	x0, x19
	mov	w1, #55
	bl	_setbit
	mov	x0, x19
	mov	w1, #56
	bl	_setbit
	mov	x0, x19
	mov	w1, #57
	bl	_setbit
	mov	x0, x19
	mov	w1, #58
	bl	_setbit
	mov	x0, x19
	mov	w1, #59
	bl	_setbit
	mov	x0, x19
	mov	w1, #60
	bl	_setbit
	mov	x0, x19
	mov	w1, #61
	bl	_setbit
	mov	x0, x19
	mov	w1, #62
	bl	_setbit
	mov	x0, x19
	mov	w1, #63
	bl	_setbit
	mov	x0, x19
	mov	w1, #64
	bl	_setbit
	mov	x0, x19
	mov	w1, #65
	bl	_setbit
	mov	x0, x19
	mov	w1, #66
	bl	_setbit
	mov	x0, x19
	mov	w1, #67
	bl	_setbit
	mov	x0, x19
	mov	w1, #68
	bl	_setbit
	mov	x0, x19
	mov	w1, #69
	bl	_setbit
	mov	x0, x19
	mov	w1, #70
	bl	_setbit
	mov	x0, x19
	mov	w1, #71
	bl	_setbit
	mov	x0, x19
	mov	w1, #72
	bl	_setbit
	mov	x0, x19
	mov	w1, #73
	bl	_setbit
	mov	x0, x19
	mov	w1, #74
	bl	_setbit
	mov	x0, x19
	mov	w1, #75
	bl	_setbit
	mov	x0, x19
	mov	w1, #76
	bl	_setbit
LBB0_12:
	ldp	w9, w8, [x20]
	cmp	w9, w8
	b.ne	LBB0_14
; %bb.13:
	mov	w8, #0
	b	LBB0_15
LBB0_14:
	lsl	w8, w8, #2
	sub	w8, w8, #4
	ldr	w9, [x20, #8]
Lloh9:
	adrp	x10, _IEEE80211_HTC_TXUNEQUAL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IEEE80211_HTC_TXUNEQUAL@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #23
	mov	w10, #3
	csel	w9, w10, w9, eq
	orr	w8, w9, w8
LBB0_15:
	str	w8, [x19, #48]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HTCAP_CHWIDTH40,4,2  ; @IEEE80211_HTCAP_CHWIDTH40
	.comm	_IEEE80211_HTC_RXMCS32,4,2      ; @IEEE80211_HTC_RXMCS32
	.comm	_IEEE80211_HTC_RXUNEQUAL,4,2    ; @IEEE80211_HTC_RXUNEQUAL
	.comm	_IEEE80211_HTC_TXUNEQUAL,4,2    ; @IEEE80211_HTC_TXUNEQUAL
	.no_dead_strip	_ieee80211_set_mcsset
.subsections_via_symbols
