	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_upd_ofdm_pctl1_table
_brcms_upd_ofdm_pctl1_table:            ## @brcms_upd_ofdm_pctl1_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BRCM_RATE_6M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_BRCM_RATE_9M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_BRCM_RATE_12M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_BRCM_RATE_18M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_BRCM_RATE_24M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_BRCM_RATE_36M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_BRCM_RATE_48M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_BRCM_RATE_54M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	4(%rdi), %edi
	callq	_BRCMS_PHY_11N_CAP
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_M_RT_OFDM_PCTL1_POS@GOTPCREL(%rip), %r13
	leaq	-80(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-80(%rbp,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_brcms_b_ofdm_ratetable_offset
	movl	%eax, %r12d
	movl	(%r13), %esi
	addl	%eax, %esi
	movq	%r15, %rdi
	callq	_brcms_b_read_shm
	movq	_PHY_TXC1_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	movl	(%r15), %edx
	movq	_PHY_TXC1_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %edx
	andl	%eax, %esi
	orl	%esi, %edx
	addl	(%r13), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_brcms_b_write_shm
	incq	%rbx
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCM_RATE_6M,4,2               ## @BRCM_RATE_6M
	.comm	_BRCM_RATE_9M,4,2               ## @BRCM_RATE_9M
	.comm	_BRCM_RATE_12M,4,2              ## @BRCM_RATE_12M
	.comm	_BRCM_RATE_18M,4,2              ## @BRCM_RATE_18M
	.comm	_BRCM_RATE_24M,4,2              ## @BRCM_RATE_24M
	.comm	_BRCM_RATE_36M,4,2              ## @BRCM_RATE_36M
	.comm	_BRCM_RATE_48M,4,2              ## @BRCM_RATE_48M
	.comm	_BRCM_RATE_54M,4,2              ## @BRCM_RATE_54M
	.comm	_M_RT_OFDM_PCTL1_POS,4,2        ## @M_RT_OFDM_PCTL1_POS
	.comm	_PHY_TXC1_MODE_MASK,4,2         ## @PHY_TXC1_MODE_MASK
	.comm	_PHY_TXC1_MODE_SHIFT,4,2        ## @PHY_TXC1_MODE_SHIFT
	.no_dead_strip	_brcms_upd_ofdm_pctl1_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_upd_ofdm_pctl1_table
_brcms_upd_ofdm_pctl1_table:            ; @brcms_upd_ofdm_pctl1_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _BRCM_RATE_6M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRCM_RATE_6M@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _BRCM_RATE_9M@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BRCM_RATE_9M@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _BRCM_RATE_12M@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BRCM_RATE_12M@GOTPAGEOFF]
	stp	w8, w9, [sp, #8]
Lloh11:
	ldr	w8, [x10]
Lloh12:
	adrp	x9, _BRCM_RATE_18M@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BRCM_RATE_18M@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh15:
	adrp	x8, _BRCM_RATE_24M@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BRCM_RATE_24M@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _BRCM_RATE_36M@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BRCM_RATE_36M@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh21:
	adrp	x8, _BRCM_RATE_48M@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BRCM_RATE_48M@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _BRCM_RATE_54M@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BRCM_RATE_54M@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #32]
	ldr	w0, [x0, #4]
	bl	_BRCMS_PHY_11N_CAP
	cbz	w0, LBB0_4
; %bb.1:
	add	x21, sp, #8
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, #0
Lloh27:
	adrp	x23, _M_RT_OFDM_PCTL1_POS@GOTPAGE
Lloh28:
	ldr	x23, [x23, _M_RT_OFDM_PCTL1_POS@GOTPAGEOFF]
Lloh29:
	adrp	x24, _PHY_TXC1_MODE_MASK@GOTPAGE
Lloh30:
	ldr	x24, [x24, _PHY_TXC1_MODE_MASK@GOTPAGEOFF]
Lloh31:
	adrp	x25, _PHY_TXC1_MODE_SHIFT@GOTPAGE
Lloh32:
	ldr	x25, [x25, _PHY_TXC1_MODE_SHIFT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, x22, lsl #2]
	mov	x0, x19
	bl	_brcms_b_ofdm_ratetable_offset
	mov	x20, x0
	ldr	w8, [x23]
	add	w1, w8, w0
	mov	x0, x19
	bl	_brcms_b_read_shm
	ldr	w8, [x24]
	bic	w8, w0, w8
	ldr	w9, [x19]
	ldr	w10, [x25]
	lsl	w9, w9, w10
	orr	w2, w9, w8
	ldr	w8, [x23]
	add	w1, w8, w20
	mov	x0, x19
	bl	_brcms_b_write_shm
	add	x22, x22, #1
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	x22, x0
	b.lo	LBB0_3
LBB0_4:
	ldr	x8, [sp, #40]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCM_RATE_6M,4,2               ; @BRCM_RATE_6M
	.comm	_BRCM_RATE_9M,4,2               ; @BRCM_RATE_9M
	.comm	_BRCM_RATE_12M,4,2              ; @BRCM_RATE_12M
	.comm	_BRCM_RATE_18M,4,2              ; @BRCM_RATE_18M
	.comm	_BRCM_RATE_24M,4,2              ; @BRCM_RATE_24M
	.comm	_BRCM_RATE_36M,4,2              ; @BRCM_RATE_36M
	.comm	_BRCM_RATE_48M,4,2              ; @BRCM_RATE_48M
	.comm	_BRCM_RATE_54M,4,2              ; @BRCM_RATE_54M
	.comm	_M_RT_OFDM_PCTL1_POS,4,2        ; @M_RT_OFDM_PCTL1_POS
	.comm	_PHY_TXC1_MODE_MASK,4,2         ; @PHY_TXC1_MODE_MASK
	.comm	_PHY_TXC1_MODE_SHIFT,4,2        ; @PHY_TXC1_MODE_SHIFT
	.no_dead_strip	_brcms_upd_ofdm_pctl1_table
.subsections_via_symbols
