	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_valid_vht_mcs
_check_valid_vht_mcs:                   ## @check_valid_vht_mcs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$1, %r14d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	movl	(%rdi), %esi
	leaq	-24(%rbp), %rdi
	movl	$8, %edx
	callq	_os_memcpy
	movl	4(%rbx), %edi
	callq	_le_to_host16
	movl	%eax, %ebx
	movl	-24(%rbp), %edi
	callq	_le_to_host16
	movq	_VHT_RX_NSS_MAX_STREAMS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_6
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	$2, %ecx
	decl	%edx
	je	LBB0_6
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$3, %esi
	shll	%cl, %esi
	movl	%esi, %edi
	andl	%eax, %edi
	cmpl	$3, %edi
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	andl	%ebx, %esi
	cmpl	$3, %esi
	je	LBB0_3
	jmp	LBB0_7
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VHT_RX_NSS_MAX_STREAMS,4,2     ## @VHT_RX_NSS_MAX_STREAMS
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No matching VHT MCS found between AP TX and STA RX"

	.no_dead_strip	_check_valid_vht_mcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_valid_vht_mcs
_check_valid_vht_mcs:                   ; @check_valid_vht_mcs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x1
	ldr	w1, [x0]
	add	x0, sp, #8
	mov	w2, #8
	bl	_os_memcpy
	ldr	w0, [x19, #4]
	bl	_le_to_host16
	mov	x19, x0
	ldr	w0, [sp, #8]
	bl	_le_to_host16
Lloh0:
	adrp	x8, _VHT_RX_NSS_MAX_STREAMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VHT_RX_NSS_MAX_STREAMS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w9, #0
	mov	w10, #3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w11, w10, w9
	and	w12, w11, w0
	and	w11, w11, w19
	cmp	w12, #3
	ccmp	w11, #3, #4, ne
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, #2
	subs	w8, w8, #1
	b.ne	LBB0_3
LBB0_5:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VHT_RX_NSS_MAX_STREAMS,4,2     ; @VHT_RX_NSS_MAX_STREAMS
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No matching VHT MCS found between AP TX and STA RX"

	.no_dead_strip	_check_valid_vht_mcs
.subsections_via_symbols
