	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_set_rateset            ## -- Begin function brcms_c_set_rateset
	.p2align	4, 0x90
_brcms_c_set_rateset:                   ## @brcms_c_set_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	movq	_BRCMS_NUMRATES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	movq	_ENOBUFS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	(%rbx), %rdx
	movq	%rdx, -40(%rbp)
	leaq	-24(%rbp), %rdi
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_memcpy
	movq	16(%r14), %rax
	movq	_SUPPORT_11N@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.3:
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:
	movq	8(%r14), %rax
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rax
LBB0_6:
	movq	(%rax), %rax
	movq	-32(%rbp), %rdi
	movq	(%rax), %rsi
	movq	_MCSSET_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_memcpy
LBB0_7:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_brcms_c_set_internal_rateset
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_brcms_c_ofdm_rateset_war
	xorl	%eax, %eax
LBB0_9:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMS_NUMRATES,8,3             ## @BRCMS_NUMRATES
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_SUPPORT_11N,4,2                ## @SUPPORT_11N
	.comm	_MCSSET_LEN,8,3                 ## @MCSSET_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_set_rateset            ; -- Begin function brcms_c_set_rateset
	.p2align	2
_brcms_c_set_rateset:                   ; @brcms_c_set_rateset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _BRCMS_NUMRATES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRCMS_NUMRATES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x2, [x20], #8
	str	x2, [sp, #8]
	add	x0, x21, #16
	mov	x1, x20
	bl	_memcpy
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
Lloh6:
	adrp	x10, _SUPPORT_11N@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SUPPORT_11N@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.3:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	b	LBB0_6
LBB0_5:
	mov	x8, x19
LBB0_6:
	ldr	x8, [x8]
	ldr	x0, [sp, #16]
	ldr	x1, [x8]
Lloh9:
	adrp	x8, _MCSSET_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MCSSET_LEN@GOTPAGEOFF]
Lloh11:
	ldr	x2, [x8]
	bl	_memcpy
LBB0_7:
	add	x1, sp, #8
	mov	x0, x19
	bl	_brcms_c_set_internal_rateset
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_brcms_c_ofdm_rateset_war
	mov	w0, #0
LBB0_9:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMS_NUMRATES,8,3             ; @BRCMS_NUMRATES
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_SUPPORT_11N,4,2                ; @SUPPORT_11N
	.comm	_MCSSET_LEN,8,3                 ; @MCSSET_LEN
.subsections_via_symbols
