	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_mod_prb_rsp_rate_table
_brcms_c_mod_prb_rsp_rate_table:        ## @brcms_c_mod_prb_rsp_rate_table
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_D11_PHY_HDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	16(%r15), %edi
	callq	_get_sifs
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_brcms_c_rateset_get_hwrs
	leaq	-104(%rbp), %r14
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_brcms_c_rateset_copy
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_brcms_c_rateset_mcs_upd
	cmpq	$0, -104(%rbp)
	je	LBB0_3
## %bb.1:
	xorl	%ecx, %ecx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rax
	movq	_BRCMS_RATE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	(%rax,%rcx,4), %ebx
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_brcms_b_rate_shm_offset
	movq	%rax, %r14
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r15, %r12
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_brcms_c_compute_plcp
	movq	_BRCMS_LONG_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	movq	%r12, %r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	callq	_brcms_c_calc_frame_time
	addq	%rbx, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	movq	_M_RT_PRS_PLCP_POS@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	%r14, %rsi
	movslq	(%r13), %rax
	movl	4(%r13), %ecx
	shll	$8, %ecx
	movslq	%ecx, %rdx
	addq	%rax, %rdx
	callq	_brcms_b_write_shm
	movl	(%r15), %edi
	movq	(%r12), %rax
	leaq	(%r14,%rax), %rsi
	addq	$2, %rsi
	movslq	8(%r13), %rax
	movl	12(%r13), %ecx
	shll	$8, %ecx
	movslq	%ecx, %rdx
	addq	%rax, %rdx
	callq	_brcms_b_write_shm
	movl	(%r15), %edi
	movq	_M_RT_PRS_DUR_POS@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r14, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_brcms_b_write_shm
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	cmpq	-104(%rbp), %rcx
	jb	LBB0_2
LBB0_3:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_D11_PHY_HDR_LEN,4,2            ## @D11_PHY_HDR_LEN
	.comm	_BRCMS_RATE_MASK,4,2            ## @BRCMS_RATE_MASK
	.comm	_BRCMS_LONG_PREAMBLE,4,2        ## @BRCMS_LONG_PREAMBLE
	.comm	_M_RT_PRS_PLCP_POS,8,3          ## @M_RT_PRS_PLCP_POS
	.comm	_M_RT_PRS_DUR_POS,8,3           ## @M_RT_PRS_DUR_POS
	.no_dead_strip	_brcms_c_mod_prb_rsp_rate_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_mod_prb_rsp_rate_table
_brcms_c_mod_prb_rsp_rate_table:        ; @brcms_c_mod_prb_rsp_rate_table
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
	mov	x8, sp
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _D11_PHY_HDR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D11_PHY_HDR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w0, [x0, #16]
	bl	_get_sifs
	mov	x22, x0
	mov	x0, x20
	bl	_brcms_c_rateset_get_hwrs
	sub	x1, x29, #104
	bl	_brcms_c_rateset_copy
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	sub	x0, x29, #104
	bl	_brcms_c_rateset_mcs_upd
	ldur	x8, [x29, #-104]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x26, #0
Lloh8:
	adrp	x28, _BRCMS_LONG_PREAMBLE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _BRCMS_LONG_PREAMBLE@GOTPAGEOFF]
Lloh10:
	adrp	x25, _M_RT_PRS_PLCP_POS@GOTPAGE
Lloh11:
	ldr	x25, [x25, _M_RT_PRS_PLCP_POS@GOTPAGEOFF]
Lloh12:
	adrp	x27, _M_RT_PRS_DUR_POS@GOTPAGE
Lloh13:
	ldr	x27, [x27, _M_RT_PRS_DUR_POS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x29, #-96]
	ldr	w8, [x8, x26, lsl #2]
Lloh14:
	adrp	x9, _BRCMS_RATE_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BRCMS_RATE_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w23, w9, w8
	ldr	w0, [x20]
	mov	x1, x23
	bl	_brcms_b_rate_shm_offset
	mov	x24, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	x3, x21
	bl	_brcms_c_compute_plcp
	ldr	w2, [x28]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x19
	bl	_brcms_c_calc_frame_time
	add	x23, x0, x22
	ldr	w0, [x20]
	ldr	x8, [x25]
	add	x1, x8, x24
	ldp	w8, w9, [x21]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	lsl	w9, w9, #8
	add	x2, x8, w9, sxtw
	bl	_brcms_b_write_shm
	ldr	w0, [x20]
	ldr	x8, [x25]
	add	x8, x24, x8
	add	x1, x8, #2
	ldp	w8, w9, [x21, #8]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	lsl	w9, w9, #8
	add	x2, x8, w9, sxtw
	bl	_brcms_b_write_shm
	ldr	w0, [x20]
	ldr	x8, [x27]
	add	x1, x8, x24
	mov	x2, x23
	bl	_brcms_b_write_shm
	add	x26, x26, #1
	ldur	x8, [x29, #-104]
	cmp	x26, x8
	b.lo	LBB0_2
LBB0_3:
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_D11_PHY_HDR_LEN,4,2            ; @D11_PHY_HDR_LEN
	.comm	_BRCMS_RATE_MASK,4,2            ; @BRCMS_RATE_MASK
	.comm	_BRCMS_LONG_PREAMBLE,4,2        ; @BRCMS_LONG_PREAMBLE
	.comm	_M_RT_PRS_PLCP_POS,8,3          ; @M_RT_PRS_PLCP_POS
	.comm	_M_RT_PRS_DUR_POS,8,3           ; @M_RT_PRS_DUR_POS
	.no_dead_strip	_brcms_c_mod_prb_rsp_rate_table
.subsections_via_symbols
