	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_set_basic_rate
_brcms_set_basic_rate:                  ## @brcms_set_basic_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r9
	testq	%r9, %r9
	je	LBB0_5
## %bb.1:
	movq	8(%rdi), %r8
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rcx,4), %eax
	movl	%eax, %edi
	andl	$127, %edi
	cmpl	%esi, %edi
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %r9
	jne	LBB0_2
LBB0_5:
	popq	%rbp
	retq
LBB0_3:
	movq	_BRCMS_RATE_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%eax, %esi
	movq	_BRCMS_RATE_FLAG@GOTPCREL(%rip), %rdi
	orl	(%rdi), %eax
	testl	%edx, %edx
	cmovel	%esi, %eax
	movl	%eax, (%r8,%rcx,4)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMS_RATE_FLAG,4,2            ## @BRCMS_RATE_FLAG
	.comm	_BRCMS_RATE_MASK,4,2            ## @BRCMS_RATE_MASK
	.no_dead_strip	_brcms_set_basic_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_set_basic_rate
_brcms_set_basic_rate:                  ; @brcms_set_basic_rate
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	cbz	x9, LBB0_4
; %bb.1:
	ldr	x8, [x0, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8]
	and	w11, w10, #0x7f
	cmp	w11, w1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #4
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_4:
	ret
LBB0_5:
Lloh0:
	adrp	x9, _BRCMS_RATE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRCMS_RATE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x11, _BRCMS_RATE_FLAG@GOTPAGE
Lloh4:
	ldr	x11, [x11, _BRCMS_RATE_FLAG@GOTPAGEOFF]
	and	w9, w9, w10
Lloh5:
	ldr	w11, [x11]
	orr	w10, w11, w10
	cmp	w2, #0
	csel	w9, w9, w10, eq
	str	w9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMS_RATE_FLAG,4,2            ; @BRCMS_RATE_FLAG
	.comm	_BRCMS_RATE_MASK,4,2            ; @BRCMS_RATE_MASK
	.no_dead_strip	_brcms_set_basic_rate
.subsections_via_symbols
