	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_mac_bitrate_mask_get_single_nss
_ath10k_mac_bitrate_mask_get_single_nss: ## @ath10k_mac_bitrate_mask_get_single_nss
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	(%rdi), %r12
	movl	%esi, %ebx
	movq	%rbx, %r15
	shlq	$4, %r15
	movl	8(%r12,%r15), %edi
	callq	_le16_to_cpu
	movq	(%r13), %rcx
	leaq	(%rbx,%rbx,2), %r14
	xorl	%edx, %edx
	cmpq	$0, 16(%rcx,%r14,8)
	jne	LBB0_1
## %bb.2:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%rcx,%r14,8), %rdi
	callq	_ARRAY_SIZE
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	addq	%r15, %r12
	xorl	%ebx, %ebx
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%r14,8), %rdi
	movq	(%rdi,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rcx
	cmpq	(%rcx,%rbx,8), %rax
	jne	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, -48(%rbp)                 ## 4-byte Folded Spill
	movq	(%r13), %rax
	movq	(%rax,%r14,8), %rdi
	jmp	LBB0_4
LBB0_8:
	movq	(%r13), %rax
	movq	8(%rax,%r14,8), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jle	LBB0_14
## %bb.9:
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	8(%rax,%r14,8), %rdi
	movq	(%rdi,%rbx,8), %r12
	testq	%r12, %r12
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_ath10k_mac_get_max_vht_mcs_map
	cmpq	%rax, %r12
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	movq	(%r13), %rax
	movq	8(%rax,%r14,8), %rdi
	jmp	LBB0_10
LBB0_14:
	xorl	%edx, %edx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.15:
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jne	LBB0_1
## %bb.16:
	movl	%ebx, %edi
	callq	_fls
	movl	%eax, %edi
	callq	_BIT
	xorl	%edx, %edx
	decl	%eax
	cmpl	%ebx, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_1
## %bb.17:
	movl	%ebx, %edi
	callq	_fls
	movl	%eax, (%r14)
	movl	$1, %edx
	jmp	LBB0_1
LBB0_19:
	xorl	%edx, %edx
LBB0_1:
	movl	%edx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ath10k_mac_bitrate_mask_get_single_nss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_mac_bitrate_mask_get_single_nss
_ath10k_mac_bitrate_mask_get_single_nss: ; @ath10k_mac_bitrate_mask_get_single_nss
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x25, [x0]
	add	x8, x25, w1, uxtw #4
	ldr	w0, [x8, #8]
	bl	_le16_to_cpu
	ldr	x8, [x20]
	mov	w9, #24
	umaddl	x9, w21, w9, x8
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x22, x0
	mov	w24, w21
	mov	w9, #24
	mul	x9, x24, x9
	ldr	x0, [x8, x9]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x23, #0
	mov	w21, #0
	add	x25, x25, x24, lsl #4
	mov	w26, #24
	mul	x27, x24, x26
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, x27]
	ldr	x8, [x0, x23, lsl #3]
	cbz	x8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x25]
	ldr	x9, [x9, x23, lsl #3]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_BIT
	orr	w21, w0, w21
	ldr	x8, [x20]
	mul	x9, x24, x26
	ldr	x0, [x8, x9]
	b	LBB0_5
LBB0_9:
	mov	w21, #0
LBB0_10:
	ldr	x8, [x20]
	mov	w9, #24
	madd	x8, x24, x9, x8
	ldr	x0, [x8, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.11:
	mov	x23, #0
	mov	w25, #0
	mov	w26, #24
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	madd	x8, x24, x26, x8
	ldr	x0, [x8, #8]
	ldr	x27, [x0, x23, lsl #3]
	cbz	x27, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_ath10k_mac_get_max_vht_mcs_map
	cmp	x27, x0
	b.ne	LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x23
	bl	_BIT
	orr	w25, w0, w25
	ldr	x8, [x20]
	madd	x8, x24, x26, x8
	ldr	x0, [x8, #8]
	b	LBB0_12
LBB0_16:
	mov	w25, #0
LBB0_17:
	mov	w0, #0
	cbz	w21, LBB0_2
; %bb.18:
	cmp	w21, w25
	b.ne	LBB0_2
; %bb.19:
	mov	x0, x21
	bl	_fls
	bl	_BIT
	sub	w8, w0, #1
	cmp	w8, w21
	b.ne	LBB0_1
; %bb.20:
	mov	x0, x21
	bl	_fls
	str	w0, [x19]
	mov	w0, #1
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ath10k_mac_bitrate_mask_get_single_nss
.subsections_via_symbols
