	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_set_internal_rateset
_brcms_c_set_internal_rateset:          ## @brcms_c_set_internal_rateset
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_BRCMS_NUMRATES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_2
## %bb.4:
	movq	24(%rbx), %rax
	movq	(%rax), %r14
	leaq	-40(%rbp), %r15
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rax,%r14,8), %rsi
	addq	$8, %rsi
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_brcms_c_rate_hwrs_filter_sort_validate
	testq	%rax, %rax
	je	LBB0_5
LBB0_8:
	movq	8(%rbx), %rdi
	leaq	-40(%rbp), %r15
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	(%rax,%r14,8), %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_brcms_is_mband_unlocked
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_OTHERBANDUNIT
	movq	%rax, %r14
	leaq	-40(%rbp), %r15
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rax,%r14,8), %rsi
	addq	$8, %rsi
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_brcms_c_rate_hwrs_filter_sort_validate
	testq	%rax, %rax
	jne	LBB0_8
LBB0_7:
	movq	_EBADE@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMS_NUMRATES,8,3             ## @BRCMS_NUMRATES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBADE,4,2                      ## @EBADE
	.no_dead_strip	_brcms_c_set_internal_rateset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_set_internal_rateset
_brcms_c_set_internal_rateset:          ; @brcms_c_set_internal_rateset
	.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
	mov	x19, x0
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, _BRCMS_NUMRATES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRCMS_NUMRATES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x8, x9, #0, ne
	b.le	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	x20, [x8]
	mov	x0, sp
	add	x1, sp, #8
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x8, [x8, x20, lsl #3]
	add	x1, x8, #8
	ldr	x8, [x19, #16]
	ldr	w3, [x8]
	mov	x0, sp
	mov	w2, #1
	bl	_brcms_c_rate_hwrs_filter_sort_validate
	cbz	x0, LBB0_6
LBB0_4:
	ldr	x0, [x19, #8]
	mov	x1, sp
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x0, [x8, x20, lsl #3]
	mov	x1, sp
	mov	w2, #8
	bl	_memcpy
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	mov	x0, x19
	bl	_brcms_is_mband_unlocked
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_OTHERBANDUNIT
	mov	x20, x0
	mov	x0, sp
	add	x1, sp, #8
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x8, [x8, x20, lsl #3]
	add	x1, x8, #8
	ldr	x8, [x19, #16]
	ldr	w3, [x8]
	mov	x0, sp
	mov	w2, #1
	bl	_brcms_c_rate_hwrs_filter_sort_validate
	cbnz	x0, LBB0_4
LBB0_8:
Lloh5:
	adrp	x8, _EBADE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBADE@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMS_NUMRATES,8,3             ; @BRCMS_NUMRATES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBADE,4,2                      ; @EBADE
	.no_dead_strip	_brcms_c_set_internal_rateset
.subsections_via_symbols
