	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_valid_rate
_brcms_c_valid_rate:                    ## @brcms_c_valid_rate
	.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
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_BRCM_BAND_AUTO@GOTPCREL(%rip), %rax
	movq	24(%rdi), %r12
	cmpl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	cmpl	%edx, (%r12)
	jne	LBB0_3
LBB0_2:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	addq	$8, %r12
LBB0_5:
	movl	%r13d, %edi
	callq	_is_mcs_rate
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	_RSPEC_RATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r13d, %esi
	movq	_MCS_TABLE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jge	LBB0_13
## %bb.9:
	movl	16(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_isset                          ## TAILCALL
LBB0_6:
	cmpq	$0, (%r12)
	je	LBB0_13
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %r15
	movl	%r13d, %edi
	callq	_rspec2rate
	cmpq	%rax, %r15
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_11
LBB0_13:
	xorl	%r12d, %r12d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.14:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movl	(%rcx), %edi
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	callq	_brcms_err
	jmp	LBB0_15
LBB0_3:
	movq	(%r14), %rax
	xorl	%r12d, %r12d
	cmpl	$2, (%rax)
	jl	LBB0_15
## %bb.4:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r14), %rbx
	movq	%r14, %rdi
	callq	_OTHERBANDUNIT
	movq	(%rbx,%rax,8), %r12
	jmp	LBB0_5
LBB0_12:
	movl	$1, %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCM_BAND_AUTO,4,2             ## @BRCM_BAND_AUTO
	.comm	_RSPEC_RATE_MASK,4,2            ## @RSPEC_RATE_MASK
	.comm	_MCS_TABLE_SIZE,4,2             ## @MCS_TABLE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl%d: valid_rate: rate spec 0x%x not in hw_rateset\n"

	.no_dead_strip	_brcms_c_valid_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_valid_rate
_brcms_c_valid_rate:                    ; @brcms_c_valid_rate
	.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	x21, x3
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _BRCM_BAND_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCM_BAND_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	x8, [x0, #24]
	cmp	w9, w2
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x8]
	cmp	w9, w2
	b.ne	LBB0_12
LBB0_2:
	add	x22, x8, #8
LBB0_3:
	mov	x0, x19
	bl	_is_mcs_rate
	cbz	x0, LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _RSPEC_RATE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSPEC_RATE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w1, w8, w19
Lloh6:
	adrp	x8, _MCS_TABLE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCS_TABLE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ge	LBB0_10
; %bb.5:
	ldr	w0, [x22, #16]
	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
	b	_isset
LBB0_6:
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.7:
	mov	x23, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x24, [x8, x23, lsl #3]
	mov	x0, x19
	bl	_rspec2rate
	cmp	x24, x0
	b.eq	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lo	LBB0_8
LBB0_10:
	cbz	w21, LBB0_14
; %bb.11:
	ldp	x9, x8, [x20]
	ldr	w0, [x8]
	ldr	w2, [x9, #4]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_brcms_err
	b	LBB0_14
LBB0_12:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_14
; %bb.13:
	ldr	x22, [x20, #16]
	mov	x0, x20
	bl	_OTHERBANDUNIT
	ldr	x22, [x22, x0, lsl #3]
	b	LBB0_3
LBB0_14:
	mov	w0, #0
LBB0_15:
	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
LBB0_16:
	mov	w0, #1
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCM_BAND_AUTO,4,2             ; @BRCM_BAND_AUTO
	.comm	_RSPEC_RATE_MASK,4,2            ; @RSPEC_RATE_MASK
	.comm	_MCS_TABLE_SIZE,4,2             ; @MCS_TABLE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl%d: valid_rate: rate spec 0x%x not in hw_rateset\n"

	.no_dead_strip	_brcms_c_valid_rate
.subsections_via_symbols
