	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_valid_he_mcs
_check_valid_he_mcs:                    ## @check_valid_he_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	%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	(%rdi), %rdi
	movq	8(%rdi), %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.1:
	movq	(%rcx), %rcx
	movl	%edx, %edx
	movq	(%rcx,%rdx,8), %r15
	movq	(%rsi), %r12
	movq	(%rdi), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	cmpl	$129, %eax
	sete	%cl
	incq	%rcx
	cmpl	$128, %eax
	movl	$3, %r13d
	cmovneq	%rcx, %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	%r13, %r14
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	leaq	(%r12,%r14,8), %rdi
	callq	_WPA_GET_LE16
	movl	%eax, %ebx
	leaq	(%r15,%r14,8), %rdi
	addq	$4, %rdi
	callq	_WPA_GET_LE16
	movq	_HE_NSS_MAX_STREAMS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	addl	$2, %ecx
	decl	%edx
	je	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %esi
	sarl	%cl, %esi
	notl	%esi
	testb	$3, %sil
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%ebx, %esi
	sarl	%cl, %esi
	notl	%esi
	testb	$3, %sil
	je	LBB0_7
## %bb.6:
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_HE_NSS_MAX_STREAMS,4,2         ## @HE_NSS_MAX_STREAMS
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No matching HE MCS found between AP TX and STA RX"

	.no_dead_strip	_check_valid_he_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_he_mcs
_check_valid_he_mcs:                    ; @check_valid_he_mcs
	.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	x8, [x0]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.1:
	mov	x20, #0
	ldr	x9, [x9]
	ldr	x21, [x9, w2, uxtw #3]
	ldr	x22, [x1]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #129
	mov	w9, #1
	cinc	x9, x9, eq
	cmp	w8, #128
	mov	w8, #3
	csel	x23, x8, x9, eq
Lloh0:
	adrp	x24, _HE_NSS_MAX_STREAMS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HE_NSS_MAX_STREAMS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x20, x23
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	lsl	x25, x20, #3
	add	x0, x22, x25
	bl	_WPA_GET_LE16
	mov	x19, x0
	add	x8, x21, x25
	add	x0, x8, #4
	bl	_WPA_GET_LE16
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w9, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	asr	w10, w0, w9
	mvn	w10, w10
	and	w10, w10, #0x3
	cmp	w10, #0
	asr	w10, w19, w9
	mvn	w10, w10
	and	w10, w10, #0x3
	ccmp	w10, #0, #4, ne
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w9, w9, #2
	subs	w8, w8, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_7:
	mov	w0, #1
LBB0_8:
	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_9:
Lloh2:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HE_NSS_MAX_STREAMS,4,2         ; @HE_NSS_MAX_STREAMS
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No matching HE MCS found between AP TX and STA RX"

	.no_dead_strip	_check_valid_he_mcs
.subsections_via_symbols
