	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_txpower_reg_limit_calc
_wlc_phy_txpower_reg_limit_calc:        ## @wlc_phy_txpower_reg_limit_calc
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BRCMS_NUM_RATES_OFDM@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	addl	%eax, %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_WL_TX_POWER_CCK_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_7
## %bb.1:
	movq	_WL_TX_POWER_CCK_FIRST@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpl	$1, %r8d
	jne	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_3:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%edx, %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	movq	(%rdi,%rdx,8), %rdi
	movq	(%r14), %rbx
	movq	%rdi, (%rbx,%rcx,8)
	movq	(%rax), %rdi
	movq	8(%rdi,%rdx,8), %rdi
	movq	(%r14), %rbx
	movq	%rdi, 8(%rbx,%rcx,8)
	addq	$2, %rcx
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_4
LBB0_5:
	testb	$1, %r8b
	je	LBB0_7
## %bb.6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %rax
	movq	(%r14), %rdx
	movq	%rax, (%rdx,%rcx,8)
LBB0_7:
	movq	_WL_TX_POWER_OFDM_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.8:
	movq	_WL_TX_POWER_OFDM_FIRST@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpl	$1, %r8d
	jne	LBB0_10
## %bb.9:
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_10:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%edx, %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rdi
	movq	(%rdi,%rdx,8), %rdi
	movq	(%r14), %rbx
	movq	%rdi, (%rbx,%rcx,8)
	movq	8(%rax), %rdi
	movq	8(%rdi,%rdx,8), %rdi
	movq	(%r14), %rbx
	movq	%rdi, 8(%rbx,%rcx,8)
	addq	$2, %rcx
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_11
LBB0_12:
	testb	$1, %r8b
	je	LBB0_14
## %bb.13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%rdx,8), %rax
	movq	(%r14), %rdx
	movq	%rax, (%rdx,%rcx,8)
LBB0_14:
	movq	%r14, %rdi
	callq	_ISNPHY
	testq	%rax, %rax
	je	LBB0_106
## %bb.15:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	56(%rax), %rcx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	leaq	64(%rax), %rcx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	leaq	40(%rax), %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	leaq	48(%rax), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	leaq	24(%rax), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	leaq	32(%rax), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	leaq	16(%rax), %rcx
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	addq	$8, %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	leaq	48(%r12), %r14
	leaq	8(%r12), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	xorl	%edi, %edi
	xorps	%xmm2, %xmm2
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	movq	%r14, -176(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	incl	%edi
	cmpl	$4, %edi
	movq	-176(%rbp), %r14                ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	xorps	%xmm2, %xmm2
	je	LBB0_44
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
                                        ##     Child Loop BB0_39 Depth 2
                                        ##     Child Loop BB0_42 Depth 2
	cmpl	$3, %edi
	ja	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%edi, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movq	_WL_TX_POWER_OFDM_FIRST@GOTPCREL(%rip), %rdx
	jmpq	*%rsi
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	_WL_TX_POWER_OFDM20_CDD_FIRST@GOTPCREL(%rip), %rdx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	_WL_TX_POWER_OFDM40_SISO_FIRST@GOTPCREL(%rip), %rdx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	_WL_TX_POWER_OFDM40_CDD_FIRST@GOTPCREL(%rip), %rdx
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rax), %rbx
	movq	(%rcx), %rax
	movl	(%rdx), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rdi, -184(%rbp)                ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_40
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$4, %ecx
	jb	LBB0_34
## %bb.26:                              ##   in Loop: Header=BB0_17 Depth=1
	leaq	(%r12,%rcx,8), %rax
	subq	%rbx, %rax
	cmpq	$32, %rax
	jb	LBB0_34
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rbx, %rdx
	subq	%r12, %rdx
	movl	$0, %eax
	cmpq	$32, %rdx
	jb	LBB0_35
## %bb.28:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%ecx, %eax
	andl	$-4, %eax
	leaq	-4(%rax), %rdx
	movq	%rdx, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_43
## %bb.29:                              ##   in Loop: Header=BB0_17 Depth=1
	leaq	(,%rcx,8), %rdi
	movq	%r8, %rdx
	movabsq	$9223372036854775806, %rsi      ## imm = 0x7FFFFFFFFFFFFFFE
	andq	%rsi, %rdx
	addq	%r14, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movaps	%xmm2, -48(%r14,%rsi,8)
	movaps	%xmm2, -32(%r14,%rsi,8)
	movups	(%rbx,%rsi,8), %xmm0
	movups	16(%rbx,%rsi,8), %xmm1
	movups	%xmm0, -48(%rdi,%rsi,8)
	movups	%xmm1, -32(%rdi,%rsi,8)
	movaps	%xmm2, -16(%r14,%rsi,8)
	movaps	%xmm2, (%r14,%rsi,8)
	movups	32(%rbx,%rsi,8), %xmm0
	movups	48(%rbx,%rsi,8), %xmm1
	movups	%xmm0, -16(%rdi,%rsi,8)
	movups	%xmm1, (%rdi,%rsi,8)
	addq	$8, %rsi
	addq	$-2, %rdx
	jne	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_17 Depth=1
	testb	$1, %r8b
	je	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_17 Depth=1
	movaps	%xmm2, (%r12,%rsi,8)
	movaps	%xmm2, 16(%r12,%rsi,8)
	movups	(%rbx,%rsi,8), %xmm0
	movups	16(%rbx,%rsi,8), %xmm1
	addq	%rcx, %rsi
	movups	%xmm0, (%r12,%rsi,8)
	movups	%xmm1, 16(%r12,%rsi,8)
LBB0_33:                                ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_35
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%eax, %eax
LBB0_35:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %rdx
	testb	$1, %cl
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	$0, (%r12,%rax,8)
	movq	(%rbx,%rax,8), %rdx
	leaq	(%rax,%rcx), %rsi
	movq	%rdx, (%r12,%rsi,8)
	movq	%rax, %rdx
	orq	$1, %rdx
LBB0_37:                                ##   in Loop: Header=BB0_17 Depth=1
	notq	%rax
	addq	%rcx, %rax
	je	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-152(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rax
	.p2align	4, 0x90
LBB0_39:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	$0, (%r12,%rdx,8)
	movq	(%rbx,%rdx,8), %rsi
	movq	%rsi, -8(%rax,%rdx,8)
	movq	$0, 8(%r12,%rdx,8)
	movq	8(%rbx,%rdx,8), %rsi
	movq	%rsi, (%rax,%rdx,8)
	addq	$2, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_39
LBB0_40:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	leal	-1(%rcx), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wlc_phy_mcs_to_ofdm_powers_nphy
	cmpl	$0, (%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jle	LBB0_16
## %bb.41:                              ##   in Loop: Header=BB0_17 Depth=1
	movslq	-52(%rbp), %rdi                 ## 4-byte Folded Reload
	shlq	$3, %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_42:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rbx,8), %rdi
	movq	(%r12,%rbx,8), %rsi
	movq	%rax, %r14
	callq	_min
	movq	(%r15), %rcx
	addq	-96(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	movq	%r14, %rax
	jl	LBB0_42
	jmp	LBB0_16
LBB0_43:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_32
	jmp	LBB0_33
LBB0_44:
	xorl	%r15d, %r15d
	xorps	%xmm2, %xmm2
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_46 Depth=1
	incl	%r15d
	cmpl	$4, %r15d
	xorps	%xmm2, %xmm2
	je	LBB0_75
LBB0_46:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_60 Depth 2
                                        ##     Child Loop BB0_69 Depth 2
                                        ##     Child Loop BB0_72 Depth 2
	cmpl	$3, %r15d
	ja	LBB0_53
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=1
	movl	%r15d, %eax
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_48:                                ##   in Loop: Header=BB0_46 Depth=1
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rbx
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_WL_TX_POWER_MCS20_SISO_FIRST@GOTPCREL(%rip), %rax
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_46 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rbx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_WL_TX_POWER_MCS20_CDD_FIRST@GOTPCREL(%rip), %rax
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_46 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rbx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_WL_TX_POWER_MCS40_SISO_FIRST@GOTPCREL(%rip), %rax
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_51:                                ##   in Loop: Header=BB0_46 Depth=1
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rbx
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_WL_TX_POWER_MCS40_CDD_FIRST@GOTPCREL(%rip), %rax
LBB0_52:                                ##   in Loop: Header=BB0_46 Depth=1
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
LBB0_53:                                ##   in Loop: Header=BB0_46 Depth=1
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_70
## %bb.54:                              ##   in Loop: Header=BB0_46 Depth=1
	cmpl	$4, %ecx
	jb	LBB0_64
## %bb.56:                              ##   in Loop: Header=BB0_46 Depth=1
	leaq	(%r12,%rcx,8), %rax
	subq	%rbx, %rax
	cmpq	$32, %rax
	jb	LBB0_64
## %bb.57:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	%rbx, %rdx
	subq	%r12, %rdx
	movl	$0, %eax
	cmpq	$32, %rdx
	jb	LBB0_65
## %bb.58:                              ##   in Loop: Header=BB0_46 Depth=1
	movl	%ecx, %eax
	andl	$-4, %eax
	leaq	-4(%rax), %rdx
	movq	%rdx, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_74
## %bb.59:                              ##   in Loop: Header=BB0_46 Depth=1
	leaq	(,%rcx,8), %rdi
	movq	%r8, %rdx
	movabsq	$9223372036854775806, %rsi      ## imm = 0x7FFFFFFFFFFFFFFE
	andq	%rsi, %rdx
	addq	%r14, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_60:                                ##   Parent Loop BB0_46 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movaps	%xmm2, -48(%r14,%rsi,8)
	movaps	%xmm2, -32(%r14,%rsi,8)
	movups	(%rbx,%rsi,8), %xmm0
	movups	16(%rbx,%rsi,8), %xmm1
	movups	%xmm0, -48(%rdi,%rsi,8)
	movups	%xmm1, -32(%rdi,%rsi,8)
	movaps	%xmm2, -16(%r14,%rsi,8)
	movaps	%xmm2, (%r14,%rsi,8)
	movups	32(%rbx,%rsi,8), %xmm0
	movups	48(%rbx,%rsi,8), %xmm1
	movups	%xmm0, -16(%rdi,%rsi,8)
	movups	%xmm1, (%rdi,%rsi,8)
	addq	$8, %rsi
	addq	$-2, %rdx
	jne	LBB0_60
## %bb.61:                              ##   in Loop: Header=BB0_46 Depth=1
	testb	$1, %r8b
	je	LBB0_63
LBB0_62:                                ##   in Loop: Header=BB0_46 Depth=1
	movaps	%xmm2, (%r12,%rsi,8)
	movaps	%xmm2, 16(%r12,%rsi,8)
	movups	(%rbx,%rsi,8), %xmm0
	movups	16(%rbx,%rsi,8), %xmm1
	addq	%rcx, %rsi
	movups	%xmm0, (%r12,%rsi,8)
	movups	%xmm1, 16(%r12,%rsi,8)
LBB0_63:                                ##   in Loop: Header=BB0_46 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_65
	jmp	LBB0_70
	.p2align	4, 0x90
LBB0_64:                                ##   in Loop: Header=BB0_46 Depth=1
	xorl	%eax, %eax
LBB0_65:                                ##   in Loop: Header=BB0_46 Depth=1
	movq	%rax, %rdx
	testb	$1, %cl
	je	LBB0_67
## %bb.66:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	$0, (%r12,%rax,8)
	movq	(%rbx,%rax,8), %rdx
	leaq	(%rax,%rcx), %rsi
	movq	%rdx, (%r12,%rsi,8)
	movq	%rax, %rdx
	orq	$1, %rdx
LBB0_67:                                ##   in Loop: Header=BB0_46 Depth=1
	notq	%rax
	addq	%rcx, %rax
	je	LBB0_70
## %bb.68:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	-152(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rax
	.p2align	4, 0x90
LBB0_69:                                ##   Parent Loop BB0_46 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	$0, (%r12,%rdx,8)
	movq	(%rbx,%rdx,8), %rsi
	movq	%rsi, -8(%rax,%rdx,8)
	movq	$0, 8(%r12,%rdx,8)
	movq	8(%rbx,%rdx,8), %rsi
	movq	%rsi, (%rax,%rdx,8)
	addq	$2, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_69
LBB0_70:                                ##   in Loop: Header=BB0_46 Depth=1
	leal	-1(%rcx), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wlc_phy_ofdm_to_mcs_powers_nphy
	movq	_BRCMS_NUM_RATES_MCS_1_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_45
## %bb.71:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movslq	-52(%rbp), %r15                 ## 4-byte Folded Reload
	shlq	$3, %r15
	xorl	%ebx, %ebx
	movq	%r12, %r14
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_72:                                ##   Parent Loop BB0_46 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%rbx,8), %rdi
	movq	(%r14,%rbx,8), %rsi
	callq	_min
	movq	(%r12), %rcx
	addq	%r15, %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	_BRCMS_NUM_RATES_MCS_1_STREAM@GOTPCREL(%rip), %rax
	incq	%rbx
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_72
## %bb.73:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	_BRCMS_NUM_RATES_OFDM@GOTPCREL(%rip), %r13
	movq	%r14, %r12
	movq	-176(%rbp), %r14                ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_45
LBB0_74:                                ##   in Loop: Header=BB0_46 Depth=1
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_62
	jmp	LBB0_63
LBB0_75:
	testl	%eax, %eax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_90
## %bb.76:
	movq	_WL_TX_POWER_MCS40_STBC_FIRST@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r9
	movq	72(%r12), %rbx
	movq	_WL_TX_POWER_MCS20_STBC_FIRST@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r11
	movl	%eax, %r10d
	leaq	-1(%r10), %r8
	movl	%r10d, %r14d
	andl	$3, %r14d
	cmpq	$3, %r8
	jae	LBB0_78
## %bb.77:
	xorl	%edx, %edx
	testq	%r14, %r14
	jne	LBB0_81
	jmp	LBB0_83
LBB0_78:
	movl	%r10d, %ecx
	andl	$-4, %ecx
	leaq	(,%r11,8), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_79:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rsi
	movq	(%r15), %rdi
	addq	%rax, %rdi
	movq	%rsi, (%rdi,%rdx,8)
	movq	8(%rbx,%rdx,8), %rsi
	movq	(%r15), %rdi
	addq	%rax, %rdi
	movq	%rsi, 8(%rdi,%rdx,8)
	movq	16(%rbx,%rdx,8), %rsi
	movq	(%r15), %rdi
	addq	%rax, %rdi
	movq	%rsi, 16(%rdi,%rdx,8)
	movq	24(%rbx,%rdx,8), %rsi
	movq	(%r15), %rdi
	addq	%rax, %rdi
	movq	%rsi, 24(%rdi,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_79
## %bb.80:
	addq	%rdx, %r11
	testq	%r14, %r14
	je	LBB0_83
LBB0_81:
	shlq	$3, %r11
	leaq	(%rbx,%rdx,8), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_82:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	movq	(%r15), %rsi
	addq	%r11, %rsi
	movq	%rdx, (%rsi,%rcx,8)
	incq	%rcx
	cmpq	%rcx, %r14
	jne	LBB0_82
LBB0_83:
	movq	80(%r12), %rdi
	movl	%r10d, %esi
	andl	$3, %esi
	cmpq	$3, %r8
	jae	LBB0_85
## %bb.84:
	xorl	%edx, %edx
	testq	%rsi, %rsi
	jne	LBB0_88
	jmp	LBB0_90
LBB0_85:
	andl	$-4, %r10d
	leaq	(,%r9,8), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_86:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rdx,8), %rcx
	movq	(%r15), %rbx
	addq	%rax, %rbx
	movq	%rcx, (%rbx,%rdx,8)
	movq	8(%rdi,%rdx,8), %rcx
	movq	(%r15), %rbx
	addq	%rax, %rbx
	movq	%rcx, 8(%rbx,%rdx,8)
	movq	16(%rdi,%rdx,8), %rcx
	movq	(%r15), %rbx
	addq	%rax, %rbx
	movq	%rcx, 16(%rbx,%rdx,8)
	movq	24(%rdi,%rdx,8), %rcx
	movq	(%r15), %rbx
	addq	%rax, %rbx
	movq	%rcx, 24(%rbx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r10
	jne	LBB0_86
## %bb.87:
	addq	%rdx, %r9
	testq	%rsi, %rsi
	je	LBB0_90
LBB0_88:
	shlq	$3, %r9
	leaq	(%rdi,%rdx,8), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_89:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	movq	(%r15), %rdi
	addq	%r9, %rdi
	movq	%rdx, (%rdi,%rcx,8)
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_89
LBB0_90:
	movq	_BRCMS_NUM_RATES_MCS_2_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	testl	%r10d, %r10d
	jle	LBB0_105
## %bb.91:
	movq	_WL_TX_POWER_MCS40_SDM_FIRST@GOTPCREL(%rip), %rax
	movslq	(%rax), %r9
	movq	88(%r12), %rbx
	movq	_WL_TX_POWER_MCS20_SDM_FIRST@GOTPCREL(%rip), %rax
	movslq	(%rax), %r11
	leaq	-1(%r10), %r8
	movl	%r10d, %r14d
	andl	$3, %r14d
	cmpq	$3, %r8
	jae	LBB0_93
## %bb.92:
	xorl	%edx, %edx
	testq	%r14, %r14
	jne	LBB0_96
	jmp	LBB0_98
LBB0_93:
	movl	%r10d, %ecx
	andl	$-4, %ecx
	leaq	(,%r11,8), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_94:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rsi
	movq	(%r15), %rdi
	addq	%rax, %rdi
	movq	%rsi, (%rdi,%rdx,8)
	movq	8(%rbx,%rdx,8), %rsi
	movq	(%r15), %rdi
	addq	%rax, %rdi
	movq	%rsi, 8(%rdi,%rdx,8)
	movq	16(%rbx,%rdx,8), %rsi
	movq	(%r15), %rdi
	addq	%rax, %rdi
	movq	%rsi, 16(%rdi,%rdx,8)
	movq	24(%rbx,%rdx,8), %rsi
	movq	(%r15), %rdi
	addq	%rax, %rdi
	movq	%rsi, 24(%rdi,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_94
## %bb.95:
	addq	%rdx, %r11
	testq	%r14, %r14
	je	LBB0_98
LBB0_96:
	shlq	$3, %r11
	leaq	(%rbx,%rdx,8), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_97:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	movq	(%r15), %rsi
	addq	%r11, %rsi
	movq	%rdx, (%rsi,%rcx,8)
	incq	%rcx
	cmpq	%rcx, %r14
	jne	LBB0_97
LBB0_98:
	movq	96(%r12), %rdi
	movl	%r10d, %esi
	andl	$3, %esi
	cmpq	$3, %r8
	jae	LBB0_100
## %bb.99:
	xorl	%edx, %edx
	testq	%rsi, %rsi
	jne	LBB0_103
	jmp	LBB0_105
LBB0_100:
	andl	$-4, %r10d
	leaq	(,%r9,8), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_101:                               ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rdx,8), %rcx
	movq	(%r15), %rbx
	addq	%rax, %rbx
	movq	%rcx, (%rbx,%rdx,8)
	movq	8(%rdi,%rdx,8), %rcx
	movq	(%r15), %rbx
	addq	%rax, %rbx
	movq	%rcx, 8(%rbx,%rdx,8)
	movq	16(%rdi,%rdx,8), %rcx
	movq	(%r15), %rbx
	addq	%rax, %rbx
	movq	%rcx, 16(%rbx,%rdx,8)
	movq	24(%rdi,%rdx,8), %rcx
	movq	(%r15), %rbx
	addq	%rax, %rbx
	movq	%rcx, 24(%rbx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r10
	jne	LBB0_101
## %bb.102:
	addq	%rdx, %r9
	testq	%rsi, %rsi
	je	LBB0_105
LBB0_103:
	shlq	$3, %r9
	leaq	(%rdi,%rdx,8), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_104:                               ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	movq	(%r15), %rdi
	addq	%r9, %rdi
	movq	%rdx, (%rdi,%rcx,8)
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_104
LBB0_105:
	movq	104(%r12), %rax
	movq	(%r15), %rcx
	movq	_WL_TX_POWER_MCS_32@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r15), %rax
	movq	_WL_TX_POWER_MCS40_CDD_FIRST@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	(%rax,%rdx,8), %rsi
	callq	_min
	movq	(%r15), %rcx
	movq	(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r15), %rax
	movq	(%rax,%rdx,8), %rcx
	movq	(%r14), %rdx
	movq	%rcx, (%rax,%rdx,8)
LBB0_106:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_108
## %bb.107:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_108:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_22
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
.set L0_1_set_48, LBB0_48-LJTI0_1
.set L0_1_set_49, LBB0_49-LJTI0_1
.set L0_1_set_50, LBB0_50-LJTI0_1
.set L0_1_set_51, LBB0_51-LJTI0_1
LJTI0_1:
	.long	L0_1_set_48
	.long	L0_1_set_49
	.long	L0_1_set_50
	.long	L0_1_set_51
	.end_data_region
                                        ## -- End function
	.comm	_BRCMS_NUM_RATES_OFDM,4,2       ## @BRCMS_NUM_RATES_OFDM
	.comm	_WL_TX_POWER_CCK_FIRST,4,2      ## @WL_TX_POWER_CCK_FIRST
	.comm	_WL_TX_POWER_CCK_NUM,4,2        ## @WL_TX_POWER_CCK_NUM
	.comm	_WL_TX_POWER_OFDM_FIRST,4,2     ## @WL_TX_POWER_OFDM_FIRST
	.comm	_WL_TX_POWER_OFDM_NUM,4,2       ## @WL_TX_POWER_OFDM_NUM
	.comm	_WL_TX_POWER_OFDM20_CDD_FIRST,4,2 ## @WL_TX_POWER_OFDM20_CDD_FIRST
	.comm	_WL_TX_POWER_OFDM40_SISO_FIRST,4,2 ## @WL_TX_POWER_OFDM40_SISO_FIRST
	.comm	_WL_TX_POWER_OFDM40_CDD_FIRST,4,2 ## @WL_TX_POWER_OFDM40_CDD_FIRST
	.comm	_WL_TX_POWER_MCS20_SISO_FIRST,4,2 ## @WL_TX_POWER_MCS20_SISO_FIRST
	.comm	_WL_TX_POWER_MCS20_CDD_FIRST,4,2 ## @WL_TX_POWER_MCS20_CDD_FIRST
	.comm	_WL_TX_POWER_MCS40_SISO_FIRST,4,2 ## @WL_TX_POWER_MCS40_SISO_FIRST
	.comm	_WL_TX_POWER_MCS40_CDD_FIRST,8,3 ## @WL_TX_POWER_MCS40_CDD_FIRST
	.comm	_BRCMS_NUM_RATES_MCS_1_STREAM,4,2 ## @BRCMS_NUM_RATES_MCS_1_STREAM
	.comm	_WL_TX_POWER_MCS20_STBC_FIRST,4,2 ## @WL_TX_POWER_MCS20_STBC_FIRST
	.comm	_WL_TX_POWER_MCS40_STBC_FIRST,4,2 ## @WL_TX_POWER_MCS40_STBC_FIRST
	.comm	_WL_TX_POWER_MCS20_SDM_FIRST,4,2 ## @WL_TX_POWER_MCS20_SDM_FIRST
	.comm	_WL_TX_POWER_MCS40_SDM_FIRST,4,2 ## @WL_TX_POWER_MCS40_SDM_FIRST
	.comm	_BRCMS_NUM_RATES_MCS_2_STREAM,4,2 ## @BRCMS_NUM_RATES_MCS_2_STREAM
	.comm	_WL_TX_POWER_MCS_32,8,3         ## @WL_TX_POWER_MCS_32
	.no_dead_strip	_wlc_phy_txpower_reg_limit_calc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_phy_txpower_reg_limit_calc
_wlc_phy_txpower_reg_limit_calc:        ; @wlc_phy_txpower_reg_limit_calc
	.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, #96
	mov	x20, x1
	mov	x19, x0
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	x22, _BRCMS_NUM_RATES_OFDM@GOTPAGE
Lloh4:
	ldr	x22, [x22, _BRCMS_NUM_RATES_OFDM@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w8, w8, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _WL_TX_POWER_CCK_NUM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WL_TX_POWER_CCK_NUM@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
Lloh10:
	adrp	x9, _WL_TX_POWER_CCK_FIRST@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WL_TX_POWER_CCK_FIRST@GOTPAGEOFF]
Lloh12:
	ldrsw	x9, [x9]
	lsl	x9, x9, #3
	lsl	x10, x10, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x20]
	ldr	x11, [x11, x8]
	ldr	x12, [x19]
	add	x12, x12, x9
	str	x11, [x12, x8]
	add	x8, x8, #8
	cmp	x10, x8
	b.ne	LBB0_2
LBB0_3:
Lloh13:
	adrp	x8, _WL_TX_POWER_OFDM_NUM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WL_TX_POWER_OFDM_NUM@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x8, #0
Lloh16:
	adrp	x9, _WL_TX_POWER_OFDM_FIRST@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WL_TX_POWER_OFDM_FIRST@GOTPAGEOFF]
Lloh18:
	ldrsw	x9, [x9]
	lsl	x9, x9, #3
	lsl	x10, x10, #3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x20, #8]
	ldr	x11, [x11, x8]
	ldr	x12, [x19]
	add	x12, x12, x9
	str	x11, [x12, x8]
	add	x8, x8, #8
	cmp	x10, x8
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_ISNPHY
	cbz	x0, LBB0_62
; %bb.7:
	mov	w27, #0
	mov	w25, #0
	mov	x26, #0
	mov	x23, #0
	add	x9, x20, #56
	add	x8, x20, #64
	stp	x8, x9, [x29, #-120]            ; 16-byte Folded Spill
	add	x9, x20, #40
	add	x8, x20, #48
	stp	x8, x9, [x29, #-136]            ; 16-byte Folded Spill
	add	x9, x20, #24
	add	x8, x20, #32
	stp	x8, x9, [x29, #-152]            ; 16-byte Folded Spill
	movi.2d	v4, #0000000000000000
	add	x9, x20, #16
	add	x8, x20, #8
	stp	x8, x9, [x29, #-104]            ; 16-byte Folded Spill
	add	x8, x21, #32
	stp	x20, x8, [x29, #-168]           ; 16-byte Folded Spill
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w27, w27, #1
	cmp	w27, #4
	movi.2d	v4, #0000000000000000
	b.eq	LBB0_28
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_24 Depth 2
                                        ;     Child Loop BB0_27 Depth 2
	cmp	w27, #3
	b.hi	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, w27
Lloh19:
	adrp	x10, lJTI0_0@PAGE
Lloh20:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_11
	ldrb	w9, [x10, x8]
	add	x11, x11, x9, lsl #2
	ldp	x9, x8, [x29, #-104]            ; 16-byte Folded Reload
Lloh21:
	adrp	x10, _WL_TX_POWER_OFDM_FIRST@GOTPAGE
Lloh22:
	ldr	x10, [x10, _WL_TX_POWER_OFDM_FIRST@GOTPAGEOFF]
	br	x11
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldp	x9, x8, [x29, #-152]            ; 16-byte Folded Reload
Lloh23:
	adrp	x10, _WL_TX_POWER_OFDM20_CDD_FIRST@GOTPAGE
Lloh24:
	ldr	x10, [x10, _WL_TX_POWER_OFDM20_CDD_FIRST@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldp	x9, x8, [x29, #-136]            ; 16-byte Folded Reload
Lloh25:
	adrp	x10, _WL_TX_POWER_OFDM40_SISO_FIRST@GOTPAGE
Lloh26:
	ldr	x10, [x10, _WL_TX_POWER_OFDM40_SISO_FIRST@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldp	x9, x8, [x29, #-120]            ; 16-byte Folded Reload
Lloh27:
	adrp	x10, _WL_TX_POWER_OFDM40_CDD_FIRST@GOTPAGE
Lloh28:
	ldr	x10, [x10, _WL_TX_POWER_OFDM40_CDD_FIRST@GOTPAGEOFF]
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x23, [x8]
	ldr	x26, [x9]
	ldr	w25, [x10]
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w3, [x22]
	cmp	w3, #1
	b.lt	LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w3, #8
	b.hs	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, #0
	b	LBB0_23
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, #0
	lsl	x9, x3, #3
	add	x10, x9, x21
	sub	x10, x10, x23
	cmp	x10, #64
	b.lo	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	x10, x23, x21
	cmp	x10, #64
	b.lo	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	and	x8, x3, #0xfffffff8
	add	x10, x23, #32
	ldur	x11, [x29, #-160]               ; 8-byte Folded Reload
	mov	x12, x8
LBB0_21:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q4, q4, [x11, #-32]
	stp	q4, q4, [x11]
	ldp	q0, q1, [x10, #-32]
	ldp	q2, q3, [x10], #64
	add	x13, x11, x9
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13]
	add	x11, x11, #64
	subs	x12, x12, #8
	b.ne	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x8, x3
	b.eq	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x8, x3
	add	x9, x21, x9, lsl #3
	lsl	x11, x8, #3
	add	x10, x23, x11
	add	x11, x21, x11
	sub	x8, x3, x8
LBB0_24:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	xzr, [x11], #8
	ldr	x12, [x10], #8
	str	x12, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_24
LBB0_25:                                ;   in Loop: Header=BB0_9 Depth=1
	sub	w2, w3, #1
	mov	x0, x21
	mov	w1, #0
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wlc_phy_mcs_to_ofdm_powers_nphy
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.26:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x28, #0
	sbfiz	x24, x25, #3, #32
LBB0_27:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x20, x28, #3
	ldr	x0, [x26, x20]
	ldr	x1, [x21, x20]
	bl	_min
	ldr	x8, [x19]
	add	x8, x8, x24
	str	x0, [x8, x20]
	add	x28, x28, #1
	ldrsw	x8, [x22]
	cmp	x28, x8
	b.lt	LBB0_27
	b	LBB0_8
LBB0_28:
	mov	w27, #0
	add	x8, x21, #32
	stur	x8, [x29, #-160]                ; 8-byte Folded Spill
Lloh29:
	adrp	x28, _BRCMS_NUM_RATES_MCS_1_STREAM@GOTPAGE
Lloh30:
	ldr	x28, [x28, _BRCMS_NUM_RATES_MCS_1_STREAM@GOTPAGEOFF]
	movi.2d	v4, #0000000000000000
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	add	w27, w27, #1
	cmp	w27, #4
	movi.2d	v4, #0000000000000000
	b.eq	LBB0_51
LBB0_30:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_43 Depth 2
                                        ;     Child Loop BB0_46 Depth 2
                                        ;     Child Loop BB0_49 Depth 2
	cmp	w27, #3
	b.hi	LBB0_37
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	w8, w27
Lloh31:
	adrp	x11, lJTI0_1@PAGE
Lloh32:
	add	x11, x11, lJTI0_1@PAGEOFF
	adr	x9, LBB0_32
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_32:                                ;   in Loop: Header=BB0_30 Depth=1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	ldr	x23, [x8]
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	x26, [x8]
Lloh33:
	adrp	x8, _WL_TX_POWER_MCS20_SISO_FIRST@GOTPAGE
Lloh34:
	ldr	x8, [x8, _WL_TX_POWER_MCS20_SISO_FIRST@GOTPAGEOFF]
	b	LBB0_36
LBB0_33:                                ;   in Loop: Header=BB0_30 Depth=1
	ldur	x8, [x29, #-152]                ; 8-byte Folded Reload
	ldr	x23, [x8]
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	ldr	x26, [x8]
Lloh35:
	adrp	x8, _WL_TX_POWER_MCS20_CDD_FIRST@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WL_TX_POWER_MCS20_CDD_FIRST@GOTPAGEOFF]
	b	LBB0_36
LBB0_34:                                ;   in Loop: Header=BB0_30 Depth=1
	ldur	x8, [x29, #-136]                ; 8-byte Folded Reload
	ldr	x23, [x8]
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	ldr	x26, [x8]
Lloh37:
	adrp	x8, _WL_TX_POWER_MCS40_SISO_FIRST@GOTPAGE
Lloh38:
	ldr	x8, [x8, _WL_TX_POWER_MCS40_SISO_FIRST@GOTPAGEOFF]
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_30 Depth=1
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	ldr	x23, [x8]
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	ldr	x26, [x8]
Lloh39:
	adrp	x8, _WL_TX_POWER_MCS40_CDD_FIRST@GOTPAGE
Lloh40:
	ldr	x8, [x8, _WL_TX_POWER_MCS40_CDD_FIRST@GOTPAGEOFF]
LBB0_36:                                ;   in Loop: Header=BB0_30 Depth=1
	ldr	w25, [x8]
LBB0_37:                                ;   in Loop: Header=BB0_30 Depth=1
	ldr	w3, [x22]
	cmp	w3, #1
	b.lt	LBB0_47
; %bb.38:                               ;   in Loop: Header=BB0_30 Depth=1
	cmp	w3, #8
	b.hs	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	x8, #0
	b	LBB0_45
LBB0_40:                                ;   in Loop: Header=BB0_30 Depth=1
	mov	x8, #0
	lsl	x9, x3, #3
	add	x10, x9, x21
	sub	x10, x10, x23
	cmp	x10, #64
	b.lo	LBB0_45
; %bb.41:                               ;   in Loop: Header=BB0_30 Depth=1
	sub	x10, x23, x21
	cmp	x10, #64
	b.lo	LBB0_45
; %bb.42:                               ;   in Loop: Header=BB0_30 Depth=1
	and	x8, x3, #0xfffffff8
	add	x10, x23, #32
	ldur	x11, [x29, #-160]               ; 8-byte Folded Reload
	mov	x12, x8
LBB0_43:                                ;   Parent Loop BB0_30 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q4, q4, [x11, #-32]
	stp	q4, q4, [x11]
	ldp	q0, q1, [x10, #-32]
	ldp	q2, q3, [x10], #64
	add	x13, x11, x9
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13]
	add	x11, x11, #64
	subs	x12, x12, #8
	b.ne	LBB0_43
; %bb.44:                               ;   in Loop: Header=BB0_30 Depth=1
	cmp	x8, x3
	b.eq	LBB0_47
LBB0_45:                                ;   in Loop: Header=BB0_30 Depth=1
	add	x9, x8, x3
	add	x9, x21, x9, lsl #3
	lsl	x11, x8, #3
	add	x10, x23, x11
	add	x11, x21, x11
	sub	x8, x3, x8
LBB0_46:                                ;   Parent Loop BB0_30 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	xzr, [x11], #8
	ldr	x12, [x10], #8
	str	x12, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_46
LBB0_47:                                ;   in Loop: Header=BB0_30 Depth=1
	sub	w2, w3, #1
	mov	x0, x21
	mov	w1, #0
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wlc_phy_ofdm_to_mcs_powers_nphy
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.48:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	x22, x23
	mov	x24, #0
	mov	x23, x25
	sbfiz	x20, x25, #3, #32
LBB0_49:                                ;   Parent Loop BB0_30 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x25, x24, #3
	ldr	x0, [x26, x25]
	ldr	x1, [x21, x25]
	bl	_min
	ldr	x8, [x19]
	add	x8, x8, x20
	str	x0, [x8, x25]
	add	x24, x24, #1
	ldrsw	x8, [x28]
	cmp	x24, x8
	b.lt	LBB0_49
; %bb.50:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	x25, x23
	mov	x23, x22
Lloh41:
	adrp	x22, _BRCMS_NUM_RATES_OFDM@GOTPAGE
Lloh42:
	ldr	x22, [x22, _BRCMS_NUM_RATES_OFDM@GOTPAGEOFF]
	b	LBB0_29
LBB0_51:
	cmp	w8, #1
	ldur	x15, [x29, #-168]               ; 8-byte Folded Reload
	b.lt	LBB0_56
; %bb.52:
Lloh43:
	adrp	x9, _WL_TX_POWER_MCS40_STBC_FIRST@GOTPAGE
Lloh44:
	ldr	x9, [x9, _WL_TX_POWER_MCS40_STBC_FIRST@GOTPAGEOFF]
Lloh45:
	ldrsw	x9, [x9]
	ldr	x10, [x15, #72]
Lloh46:
	adrp	x11, _WL_TX_POWER_MCS20_STBC_FIRST@GOTPAGE
Lloh47:
	ldr	x11, [x11, _WL_TX_POWER_MCS20_STBC_FIRST@GOTPAGEOFF]
Lloh48:
	ldrsw	x11, [x11]
	mov	w8, w8
	lsl	x11, x11, #3
	mov	x12, x8
LBB0_53:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10], #8
	ldr	x14, [x19]
	str	x13, [x14, x11]
	add	x11, x11, #8
	subs	x12, x12, #1
	b.ne	LBB0_53
; %bb.54:
	ldr	x10, [x15, #80]
	lsl	x9, x9, #3
LBB0_55:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	ldr	x12, [x19]
	str	x11, [x12, x9]
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_55
LBB0_56:
Lloh49:
	adrp	x8, _BRCMS_NUM_RATES_MCS_2_STREAM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _BRCMS_NUM_RATES_MCS_2_STREAM@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_61
; %bb.57:
Lloh52:
	adrp	x9, _WL_TX_POWER_MCS40_SDM_FIRST@GOTPAGE
Lloh53:
	ldr	x9, [x9, _WL_TX_POWER_MCS40_SDM_FIRST@GOTPAGEOFF]
Lloh54:
	ldrsw	x9, [x9]
	ldr	x10, [x15, #88]
Lloh55:
	adrp	x11, _WL_TX_POWER_MCS20_SDM_FIRST@GOTPAGE
Lloh56:
	ldr	x11, [x11, _WL_TX_POWER_MCS20_SDM_FIRST@GOTPAGEOFF]
Lloh57:
	ldrsw	x11, [x11]
	lsl	x11, x11, #3
	mov	x12, x8
LBB0_58:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10], #8
	ldr	x14, [x19]
	str	x13, [x14, x11]
	add	x11, x11, #8
	subs	x12, x12, #1
	b.ne	LBB0_58
; %bb.59:
	ldr	x10, [x15, #96]
	lsl	x9, x9, #3
LBB0_60:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	ldr	x12, [x19]
	str	x11, [x12, x9]
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_60
LBB0_61:
	ldr	x8, [x15, #104]
	ldr	x9, [x19]
Lloh58:
	adrp	x20, _WL_TX_POWER_MCS_32@GOTPAGE
Lloh59:
	ldr	x20, [x20, _WL_TX_POWER_MCS_32@GOTPAGEOFF]
	ldr	x10, [x20]
	lsl	x10, x10, #3
	str	x8, [x9, x10]
	ldr	x8, [x19]
Lloh60:
	adrp	x21, _WL_TX_POWER_MCS40_CDD_FIRST@GOTPAGE
Lloh61:
	ldr	x21, [x21, _WL_TX_POWER_MCS40_CDD_FIRST@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	ldr	x1, [x8, x10]
	bl	_min
	ldr	x8, [x19]
	ldr	x9, [x21]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x19]
	ldr	x9, [x8, x9]
	ldr	x10, [x20]
	str	x9, [x8, x10, lsl #3]
LBB0_62:
	ldur	x8, [x29, #-88]
Lloh62:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh63:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh64:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_64
; %bb.63:
	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_64:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
lJTI0_1:
	.byte	(LBB0_32-LBB0_32)>>2
	.byte	(LBB0_33-LBB0_32)>>2
	.byte	(LBB0_34-LBB0_32)>>2
	.byte	(LBB0_35-LBB0_32)>>2
                                        ; -- End function
	.comm	_BRCMS_NUM_RATES_OFDM,4,2       ; @BRCMS_NUM_RATES_OFDM
	.comm	_WL_TX_POWER_CCK_FIRST,4,2      ; @WL_TX_POWER_CCK_FIRST
	.comm	_WL_TX_POWER_CCK_NUM,4,2        ; @WL_TX_POWER_CCK_NUM
	.comm	_WL_TX_POWER_OFDM_FIRST,4,2     ; @WL_TX_POWER_OFDM_FIRST
	.comm	_WL_TX_POWER_OFDM_NUM,4,2       ; @WL_TX_POWER_OFDM_NUM
	.comm	_WL_TX_POWER_OFDM20_CDD_FIRST,4,2 ; @WL_TX_POWER_OFDM20_CDD_FIRST
	.comm	_WL_TX_POWER_OFDM40_SISO_FIRST,4,2 ; @WL_TX_POWER_OFDM40_SISO_FIRST
	.comm	_WL_TX_POWER_OFDM40_CDD_FIRST,4,2 ; @WL_TX_POWER_OFDM40_CDD_FIRST
	.comm	_WL_TX_POWER_MCS20_SISO_FIRST,4,2 ; @WL_TX_POWER_MCS20_SISO_FIRST
	.comm	_WL_TX_POWER_MCS20_CDD_FIRST,4,2 ; @WL_TX_POWER_MCS20_CDD_FIRST
	.comm	_WL_TX_POWER_MCS40_SISO_FIRST,4,2 ; @WL_TX_POWER_MCS40_SISO_FIRST
	.comm	_WL_TX_POWER_MCS40_CDD_FIRST,8,3 ; @WL_TX_POWER_MCS40_CDD_FIRST
	.comm	_BRCMS_NUM_RATES_MCS_1_STREAM,4,2 ; @BRCMS_NUM_RATES_MCS_1_STREAM
	.comm	_WL_TX_POWER_MCS20_STBC_FIRST,4,2 ; @WL_TX_POWER_MCS20_STBC_FIRST
	.comm	_WL_TX_POWER_MCS40_STBC_FIRST,4,2 ; @WL_TX_POWER_MCS40_STBC_FIRST
	.comm	_WL_TX_POWER_MCS20_SDM_FIRST,4,2 ; @WL_TX_POWER_MCS20_SDM_FIRST
	.comm	_WL_TX_POWER_MCS40_SDM_FIRST,4,2 ; @WL_TX_POWER_MCS40_SDM_FIRST
	.comm	_BRCMS_NUM_RATES_MCS_2_STREAM,4,2 ; @BRCMS_NUM_RATES_MCS_2_STREAM
	.comm	_WL_TX_POWER_MCS_32,8,3         ; @WL_TX_POWER_MCS_32
	.no_dead_strip	_wlc_phy_txpower_reg_limit_calc
.subsections_via_symbols
