	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_write_rate_shm
_brcms_c_write_rate_shm:                ## @brcms_c_write_rate_shm
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_is_ofdm_rate
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_M_RT_DIRMAP_B@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_M_RT_DIRMAP_A@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r12
	movq	%rbx, %rdi
	callq	_is_ofdm_rate
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_M_RT_BBRSMAP_B@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_M_RT_BBRSMAP_A@GOTPCREL(%rip), %rax
LBB0_6:
	movq	_rate_info@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_BRCMS_RATE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rcx,%rbx,8), %ebx
	andl	%edx, %ebx
	andl	(%rcx,%r15,8), %edx
	movl	(%r14), %edi
	andl	$15, %edx
	leaq	(%r12,%rdx,2), %rsi
	addl	%ebx, %ebx
	andl	$30, %ebx
	addq	(%rax), %rbx
	callq	_brcms_b_read_shm
	movl	(%r14), %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcms_b_write_shm              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_M_RT_DIRMAP_A,8,3              ## @M_RT_DIRMAP_A
	.comm	_M_RT_DIRMAP_B,8,3              ## @M_RT_DIRMAP_B
	.comm	_M_RT_BBRSMAP_A,8,3             ## @M_RT_BBRSMAP_A
	.comm	_M_RT_BBRSMAP_B,8,3             ## @M_RT_BBRSMAP_B
	.comm	_rate_info,8,3                  ## @rate_info
	.comm	_BRCMS_RATE_MASK,8,3            ## @BRCMS_RATE_MASK
	.no_dead_strip	_brcms_c_write_rate_shm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_write_rate_shm
_brcms_c_write_rate_shm:                ; @brcms_c_write_rate_shm
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_is_ofdm_rate
Lloh0:
	adrp	x8, _M_RT_DIRMAP_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_RT_DIRMAP_A@GOTPAGEOFF]
Lloh2:
	adrp	x9, _M_RT_DIRMAP_B@GOTPAGE
Lloh3:
	ldr	x9, [x9, _M_RT_DIRMAP_B@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x22, [x8]
	mov	x0, x20
	bl	_is_ofdm_rate
Lloh4:
	adrp	x8, _M_RT_BBRSMAP_A@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_RT_BBRSMAP_A@GOTPAGEOFF]
Lloh6:
	adrp	x9, _M_RT_BBRSMAP_B@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_RT_BBRSMAP_B@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
Lloh8:
	adrp	x9, _rate_info@GOTPAGE
Lloh9:
	ldr	x9, [x9, _rate_info@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x10, [x9, x20, lsl #3]
	ldr	x20, [x8]
Lloh11:
	adrp	x8, _BRCMS_RATE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BRCMS_RATE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x9, x19, lsl #3]
	and	w19, w8, w10
	and	w8, w9, w8
	ldr	w0, [x21]
	lsl	w8, w8, #1
	and	x8, x8, #0x1e
	add	x1, x8, x22
	bl	_brcms_b_read_shm
	mov	x2, x0
	ldr	w0, [x21]
	lsl	w8, w19, #1
	and	x8, x8, #0x1e
	add	x1, x8, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_brcms_b_write_shm
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_M_RT_DIRMAP_A,8,3              ; @M_RT_DIRMAP_A
	.comm	_M_RT_DIRMAP_B,8,3              ; @M_RT_DIRMAP_B
	.comm	_M_RT_BBRSMAP_A,8,3             ; @M_RT_BBRSMAP_A
	.comm	_M_RT_BBRSMAP_B,8,3             ; @M_RT_BBRSMAP_B
	.comm	_rate_info,8,3                  ; @rate_info
	.comm	_BRCMS_RATE_MASK,8,3            ; @BRCMS_RATE_MASK
	.no_dead_strip	_brcms_c_write_rate_shm
.subsections_via_symbols
