	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_txpwrctrl_pwr_setup_nphy
_wlc_phy_txpwrctrl_pwr_setup_nphy:      ## @wlc_phy_txpwrctrl_pwr_setup_nphy
	.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	$344, %rsp                      ## imm = 0x158
	.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	24(%rdi), %rax
	movl	8(%rax), %edi
	movl	$11, %esi
	callq	_D11REV_IS
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	24(%r15), %rax
	movl	8(%rax), %edi
	movl	$12, %esi
	callq	_D11REV_IS
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	24(%r15), %rax
	movl	4(%rax), %edi
	movq	_MCTL_PHYLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	callq	_wlapi_bmac_mctrl
	movl	32(%r15), %r14d
	movq	_maccontrol@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	$1, %edi
	callq	_udelay
LBB0_3:
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_wlc_phy_stay_in_carriersearch_nphy
LBB0_5:
	movq	%r15, %rdi
	movl	$290, %esi                      ## imm = 0x122
	movl	$1, %edx
	callq	_or_phy_reg
	movl	16(%r15), %edi
	movl	$3, %esi
	callq	_NREV_GE
	movq	%r15, %rdi
	movl	$487, %esi                      ## imm = 0x1E7
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$-32769, %edx                   ## imm = 0xFFFF7FFF
	callq	_and_phy_reg
	jmp	LBB0_8
LBB0_7:
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_or_phy_reg
LBB0_8:
	movq	24(%r15), %rax
	movl	8(%rax), %edi
	movl	$11, %esi
	callq	_D11REV_IS
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	24(%r15), %rax
	movl	8(%rax), %edi
	movl	$12, %esi
	callq	_D11REV_IS
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	movq	24(%r15), %rax
	movl	4(%rax), %edi
	movq	_MCTL_PHYLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_wlapi_bmac_mctrl
LBB0_11:
	movq	24(%r15), %rax
	cmpl	$3, (%rax)
	jg	LBB0_12
LBB0_18:
	movq	56(%r15), %rax
	movl	(%rax), %r14d
	movl	%r14d, -88(%rbp)
	movl	56(%rax), %r12d
	movl	%r12d, -84(%rbp)
	movabsq	$-1816771166632, %rax           ## imm = 0xFFFFFE58FFFFFE58
	movq	%rax, -56(%rbp)
	movabsq	$24103356470764, %rax           ## imm = 0x15EC000015EC
	movq	%rax, -64(%rbp)
	movabsq	$-5978594477425, %rax           ## imm = 0xFFFFFA8FFFFFFA8F
	movq	%rax, -72(%rbp)
LBB0_19:
	movl	48(%r15), %r13d
	movl	%r13d, -80(%rbp)
	movl	%r13d, -76(%rbp)
	movl	16(%r15), %edi
	movl	$3, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_33
## %bb.20:
	cmpq	$0, 40(%r15)
	je	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	movl	$489, %esi                      ## imm = 0x1E9
	movl	$16384, %edx                    ## imm = 0x4000
	callq	_or_phy_reg
LBB0_22:
	movl	16(%r15), %edi
	movl	$7, %esi
	callq	_NREV_GE
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_29
## %bb.23:
	callq	_PHY_IPA
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movl	36(%r15), %edi
	callq	_CHSPEC_IS2G
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	_RADIO_2057@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TX_SSI_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leal	(%rcx,%rcx), %r9d
	addl	$12, %r9d
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_WRITE_RADIO_REG3
LBB0_25:
	movq	%r15, %rdi
	callq	_PHY_IPA
	testq	%rax, %rax
	je	LBB0_33
## %bb.26:
	movl	36(%r15), %edi
	callq	_CHSPEC_IS2G
	movq	_RADIO_2057@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_TX_SSI_MUX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r15, %rdi
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movl	$14, %r9d
	callq	_WRITE_RADIO_REG3
	jmp	LBB0_33
LBB0_12:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_wlc_phy_get_chan_freq_range_nphy
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_18
## %bb.13:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_16:
	movq	56(%r15), %rax
	movl	16(%rax), %r14d
	movl	%r14d, -88(%rbp)
	movl	72(%rax), %r12d
	movl	%r12d, -84(%rbp)
	movl	32(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	88(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movl	36(%rax), %ecx
	movl	%ecx, -64(%rbp)
	movl	92(%rax), %ecx
	movl	%ecx, -60(%rbp)
	movl	40(%rax), %ecx
	movl	%ecx, -72(%rbp)
	movl	96(%rax), %eax
	movl	%eax, -68(%rbp)
	jmp	LBB0_19
LBB0_29:
	callq	_PHY_IPA
	movq	_RADIO_2056_TX_TX_SSI_MUX@GOTPCREL(%rip), %rdx
	movq	_RADIO_2056_TX0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rdx), %ebx
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movl	36(%r15), %edi
	callq	_CHSPEC_IS5G
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leal	(%rcx,%rcx), %edx
	addl	$12, %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_write_radio_reg
	movq	_RADIO_2056_TX1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_RADIO_2056_TX_TX_SSI_MUX@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	36(%r15), %edi
	callq	_CHSPEC_IS5G
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leal	(%rcx,%rcx), %edx
	addl	$12, %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	jmp	LBB0_32
LBB0_15:
	movq	56(%r15), %rax
	movl	16(%rax), %r14d
	movl	%r14d, -88(%rbp)
	movl	72(%rax), %r12d
	movl	%r12d, -84(%rbp)
	movl	20(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	76(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movl	24(%rax), %ecx
	movl	%ecx, -64(%rbp)
	movl	80(%rax), %ecx
	movl	%ecx, -60(%rbp)
	movl	28(%rax), %ecx
	movl	%ecx, -72(%rbp)
	movl	84(%rax), %eax
	movl	%eax, -68(%rbp)
	jmp	LBB0_19
LBB0_17:
	movq	56(%r15), %rax
	movl	16(%rax), %r14d
	movl	%r14d, -88(%rbp)
	movl	72(%rax), %r12d
	movl	%r12d, -84(%rbp)
	movl	44(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	100(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movl	48(%rax), %ecx
	movl	%ecx, -64(%rbp)
	movl	104(%rax), %ecx
	movl	%ecx, -60(%rbp)
	movl	52(%rax), %ecx
	movl	%ecx, -72(%rbp)
	movl	108(%rax), %eax
	movl	%eax, -68(%rbp)
	jmp	LBB0_19
LBB0_14:
	movq	56(%r15), %rax
	movl	(%rax), %r14d
	movl	%r14d, -88(%rbp)
	movl	56(%rax), %r12d
	movl	%r12d, -84(%rbp)
	movl	4(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	60(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movl	8(%rax), %ecx
	movl	%ecx, -64(%rbp)
	movl	64(%rax), %ecx
	movl	%ecx, -60(%rbp)
	movl	12(%rax), %ecx
	movl	%ecx, -72(%rbp)
	movl	68(%rax), %eax
	movl	%eax, -68(%rbp)
	jmp	LBB0_19
LBB0_28:
	movl	$12, %r9d
	callq	_WRITE_RADIO_REG3
	jmp	LBB0_33
LBB0_31:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$17, %edx
	callq	_write_radio_reg
	movq	_RADIO_2056_TX1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RADIO_2056_TX_TX_SSI_MUX@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	movl	$17, %edx
LBB0_32:
	callq	_write_radio_reg
LBB0_33:
	movq	24(%r15), %rax
	movl	8(%rax), %edi
	movl	$11, %esi
	callq	_D11REV_IS
	testq	%rax, %rax
	jne	LBB0_35
## %bb.34:
	movq	24(%r15), %rax
	movl	8(%rax), %edi
	movl	$12, %esi
	callq	_D11REV_IS
	testq	%rax, %rax
	je	LBB0_36
LBB0_35:
	movq	24(%r15), %rax
	movl	4(%rax), %edi
	movq	_MCTL_PHYLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	callq	_wlapi_bmac_mctrl
	movl	32(%r15), %ebx
	movq	_maccontrol@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	$1, %edi
	callq	_udelay
LBB0_36:
	movl	16(%r15), %edi
	movl	$7, %esi
	callq	_NREV_GE
	movq	_NPHY_TxPwrCtrlCmd_pwrIndex_init_rev7@GOTPCREL(%rip), %rbx
	movq	%rbx, %rcx
	testq	%rax, %rax
	jne	LBB0_38
## %bb.37:
	movq	_NPHY_TxPwrCtrlCmd_pwrIndex_init@GOTPCREL(%rip), %rcx
LBB0_38:
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	$487, %esi                      ## imm = 0x1E7
	movl	$127, %edx
	callq	_mod_phy_reg
	movl	16(%r15), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	jne	LBB0_41
## %bb.39:
	movl	16(%r15), %edi
	movl	$1, %esi
	callq	_NREV_GT
	testq	%rax, %rax
	je	LBB0_42
## %bb.40:
	movq	_NPHY_TxPwrCtrlCmd_pwrIndex_init@GOTPCREL(%rip), %rbx
LBB0_41:
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movl	$546, %esi                      ## imm = 0x222
	movl	$255, %edx
	callq	_mod_phy_reg
LBB0_42:
	movq	24(%r15), %rax
	movl	8(%rax), %edi
	movl	$11, %esi
	callq	_D11REV_IS
	testq	%rax, %rax
	jne	LBB0_44
## %bb.43:
	movq	24(%r15), %rax
	movl	8(%rax), %edi
	movl	$12, %esi
	callq	_D11REV_IS
	testq	%rax, %rax
	je	LBB0_45
LBB0_44:
	movq	24(%r15), %rax
	movl	4(%rax), %edi
	movq	_MCTL_PHYLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_wlapi_bmac_mctrl
LBB0_45:
	movq	%r15, %rdi
	movl	$488, %esi                      ## imm = 0x1E8
	movl	$1008, %edx                     ## imm = 0x3F0
	callq	_write_phy_reg
	shll	$8, %r12d
	orl	%r12d, %r14d
	orl	$32768, %r14d                   ## imm = 0x8000
	movq	%r15, %rdi
	movl	$489, %esi                      ## imm = 0x1E9
	movl	%r14d, %edx
	callq	_write_phy_reg
	movl	%r13d, %edx
	shll	$8, %edx
	orl	%r13d, %edx
	movq	%r15, %rdi
	movl	$490, %esi                      ## imm = 0x1EA
	callq	_write_phy_reg
	movq	_NPHY_TBL_ID_CORE1TXPWRCTL@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	_NPHY_TBL_ID_CORE2TXPWRCTL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jle	LBB0_46
LBB0_53:
	movq	%r15, %rdi
	callq	_wlc_phy_txpwr_limit_to_tbl_nphy
	movq	_NPHY_TBL_ID_CORE1TXPWRCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %r9
	movq	%r15, %rdi
	movl	$84, %edx
	movl	$64, %ecx
	movl	$8, %r8d
	callq	_wlc_phy_table_write_nphy
	movq	_NPHY_TBL_ID_CORE2TXPWRCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %r9
	movq	%r15, %rdi
	movl	$84, %edx
	movl	$64, %ecx
	movl	$8, %r8d
	callq	_wlc_phy_table_write_nphy
	cmpq	$0, 8(%r15)
	je	LBB0_55
## %bb.54:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_wlc_phy_stay_in_carriersearch_nphy
LBB0_55:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_57
## %bb.56:
	addq	$344, %rsp                      ## imm = 0x158
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_46:
	movq	%r15, -376(%rbp)                ## 8-byte Spill
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_52:                                ##   in Loop: Header=BB0_47 Depth=1
	movq	-376(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movq	-368(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %esi
	movl	$64, %edx
	xorl	%ecx, %ecx
	movl	$32, %r8d
	leaq	-352(%rbp), %r9
	callq	_wlc_phy_table_write_nphy
	leaq	1(%rbx), %rax
	movq	_NPHY_TBL_ID_CORE2TXPWRCTL@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	movq	%rax, %rcx
	jge	LBB0_53
LBB0_47:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_48 Depth 2
	movl	-168(%rbp,%rcx,4), %r13d
	movl	-176(%rbp,%rcx,4), %r15d
	movq	%rcx, -368(%rbp)                ## 8-byte Spill
	movl	-160(%rbp,%rcx,4), %eax
	movl	%eax, -356(%rbp)                ## 4-byte Spill
	shll	$9, %r13d
	shll	$5, %r15d
	movl	$32768, %ebx                    ## imm = 0x8000
	xorl	%r12d, %r12d
	jmp	LBB0_48
	.p2align	4, 0x90
LBB0_51:                                ##   in Loop: Header=BB0_48 Depth=2
	movl	%r14d, -352(%rbp,%r12,4)
	incq	%r12
	addl	-356(%rbp), %ebx                ## 4-byte Folded Reload
	addl	%r15d, %r13d
	cmpq	$64, %r12
	je	LBB0_52
LBB0_48:                                ##   Parent Loop BB0_47 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %edi
	movl	$-8, %esi
	callq	_max
	movl	%eax, %r14d
	movq	-376(%rbp), %rax                ## 8-byte Reload
	movl	16(%rax), %edi
	movl	$3, %esi
	callq	_NREV_LT
	testq	%rax, %rax
	je	LBB0_51
## %bb.49:                              ##   in Loop: Header=BB0_48 Depth=2
	movl	$32, %eax
	movq	-368(%rbp), %rcx                ## 8-byte Reload
	subl	-192(%rbp,%rcx,4), %eax
	cltq
	cmpq	%rax, %r12
	jg	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_48 Depth=2
	movl	-184(%rbp,%rcx,4), %esi
	incl	%esi
	movl	%r14d, %edi
	callq	_max
	movl	%eax, %r14d
	jmp	LBB0_51
LBB0_57:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_MCTL_PHYLOCK,4,2               ## @MCTL_PHYLOCK
	.comm	_maccontrol,4,2                 ## @maccontrol
	.comm	_RADIO_2057,4,2                 ## @RADIO_2057
	.comm	_TX,4,2                         ## @TX
	.comm	_TX_SSI_MUX,4,2                 ## @TX_SSI_MUX
	.comm	_RADIO_2056_TX_TX_SSI_MUX,4,2   ## @RADIO_2056_TX_TX_SSI_MUX
	.comm	_RADIO_2056_TX0,4,2             ## @RADIO_2056_TX0
	.comm	_RADIO_2056_TX1,4,2             ## @RADIO_2056_TX1
	.comm	_NPHY_TxPwrCtrlCmd_pwrIndex_init_rev7,4,2 ## @NPHY_TxPwrCtrlCmd_pwrIndex_init_rev7
	.comm	_NPHY_TxPwrCtrlCmd_pwrIndex_init,4,2 ## @NPHY_TxPwrCtrlCmd_pwrIndex_init
	.comm	_NPHY_TBL_ID_CORE1TXPWRCTL,4,2  ## @NPHY_TBL_ID_CORE1TXPWRCTL
	.comm	_NPHY_TBL_ID_CORE2TXPWRCTL,4,2  ## @NPHY_TBL_ID_CORE2TXPWRCTL
	.no_dead_strip	_wlc_phy_txpwrctrl_pwr_setup_nphy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_phy_txpwrctrl_pwr_setup_nphy
_wlc_phy_txpwrctrl_pwr_setup_nphy:      ; @wlc_phy_txpwrctrl_pwr_setup_nphy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #416
	.cfi_def_cfa_offset 416
	stp	x28, x27, [sp, #320]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #336]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #352]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #368]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #384]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #400]            ; 16-byte Folded Spill
	add	x29, sp, #400
	.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
	mov	x28, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x8, [x0, #24]
	ldr	w0, [x8, #8]
	mov	w1, #11
	bl	_D11REV_IS
Lloh3:
	adrp	x21, _MCTL_PHYLOCK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MCTL_PHYLOCK@GOTPAGEOFF]
Lloh5:
	adrp	x22, _maccontrol@GOTPAGE
Lloh6:
	ldr	x22, [x22, _maccontrol@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x28, #24]
	ldr	w0, [x8, #8]
	mov	w1, #12
	bl	_D11REV_IS
	cbz	x0, LBB0_3
LBB0_2:
	ldr	x8, [x28, #24]
	ldr	w0, [x8, #4]
	ldr	w1, [x21]
	mov	x2, x1
	bl	_wlapi_bmac_mctrl
	ldr	w20, [x28, #32]
	ldr	w0, [x22]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read32
	mov	w0, #1
	bl	_udelay
LBB0_3:
	ldr	x8, [x28, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x28
	mov	w1, #1
	bl	_wlc_phy_stay_in_carriersearch_nphy
LBB0_5:
	mov	x0, x28
	mov	w1, #290
	mov	w2, #1
	bl	_or_phy_reg
	ldr	w0, [x28, #16]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x28
	mov	w1, #487
	mov	w2, #-32769
	bl	_and_phy_reg
	b	LBB0_8
LBB0_7:
	mov	x0, x28
	mov	w1, #487
	mov	w2, #32768
	bl	_or_phy_reg
LBB0_8:
	ldr	x8, [x28, #24]
	ldr	w0, [x8, #8]
	mov	w1, #11
	bl	_D11REV_IS
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x28, #24]
	ldr	w0, [x8, #8]
	mov	w1, #12
	bl	_D11REV_IS
	cbz	x0, LBB0_11
LBB0_10:
	ldr	x8, [x28, #24]
	ldr	w0, [x8, #4]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_wlapi_bmac_mctrl
LBB0_11:
	ldr	x8, [x28, #24]
	ldr	w8, [x8]
	cmp	w8, #3
	b.gt	LBB0_13
LBB0_12:
	ldr	x8, [x28, #56]
	ldr	w23, [x8]
	ldr	w24, [x8, #56]
	stp	w23, w24, [x29, #-112]
	mov	w8, #-424
	dup.2s	v0, w8
	mov	w8, #5612
	dup.2s	v1, w8
	stp	d1, d0, [sp, #16]
	mov	w8, #-1393
	dup.2s	v0, w8
	str	d0, [sp, #8]
	b	LBB0_21
LBB0_13:
	mov	x0, x28
	mov	w1, #0
	bl	_wlc_phy_get_chan_freq_range_nphy
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_12
; %bb.14:
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_15
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_15:
	ldr	x8, [x28, #56]
	ldr	w23, [x8, #16]
	ldp	w9, w10, [x8, #32]
	ldp	w11, w12, [x8, #88]
	stp	w9, w11, [sp, #24]
	ldr	w24, [x8, #72]
	stp	w23, w24, [x29, #-112]
	stp	w10, w12, [sp, #16]
	ldr	w9, [x8, #40]
	ldr	w8, [x8, #96]
	b	LBB0_18
LBB0_16:
	ldr	x8, [x28, #56]
	ldp	w23, w9, [x8, #16]
	ldp	w24, w10, [x8, #72]
	stp	w9, w10, [sp, #24]
	ldp	w9, w10, [x8, #24]
	ldp	w11, w8, [x8, #80]
	b	LBB0_20
LBB0_17:
	ldr	x8, [x28, #56]
	ldr	w23, [x8, #16]
	ldp	w9, w10, [x8, #44]
	ldp	w11, w12, [x8, #100]
	stp	w9, w11, [sp, #24]
	ldr	w24, [x8, #72]
	stp	w23, w24, [x29, #-112]
	stp	w10, w12, [sp, #16]
	ldr	w9, [x8, #52]
	ldr	w8, [x8, #108]
LBB0_18:
	stp	w9, w8, [sp, #8]
	b	LBB0_21
LBB0_19:
	ldr	x8, [x28, #56]
	ldp	w23, w9, [x8]
	ldp	w24, w10, [x8, #56]
	stp	w9, w10, [sp, #24]
	ldp	w9, w10, [x8, #8]
	ldp	w11, w8, [x8, #64]
LBB0_20:
	stp	w9, w11, [sp, #16]
	stp	w23, w24, [x29, #-112]
	stp	w10, w8, [sp, #8]
LBB0_21:
	ldr	w25, [x28, #48]
	stp	w25, w25, [x29, #-104]
	ldr	w0, [x28, #16]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_35
; %bb.22:
	ldr	x8, [x28, #40]
	cbz	x8, LBB0_24
; %bb.23:
	mov	x0, x28
	mov	w1, #489
	mov	w2, #16384
	bl	_or_phy_reg
LBB0_24:
	ldr	w0, [x28, #16]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_30
; %bb.25:
	mov	x0, x28
	bl	_PHY_IPA
Lloh9:
	adrp	x26, _RADIO_2057@GOTPAGE
Lloh10:
	ldr	x26, [x26, _RADIO_2057@GOTPAGEOFF]
Lloh11:
	adrp	x20, _TX@GOTPAGE
Lloh12:
	ldr	x20, [x20, _TX@GOTPAGEOFF]
Lloh13:
	adrp	x19, _TX_SSI_MUX@GOTPAGE
Lloh14:
	ldr	x19, [x19, _TX_SSI_MUX@GOTPAGEOFF]
	cbz	x0, LBB0_27
; %bb.26:
	ldr	w0, [x28, #36]
	bl	_CHSPEC_IS2G
	ldr	w1, [x26]
	ldr	w2, [x20]
	ldr	w4, [x19]
	cmp	x0, #0
	mov	w8, #14
	mov	w9, #12
	csel	w5, w9, w8, eq
	mov	x0, x28
	mov	w3, #0
	bl	_WRITE_RADIO_REG3
LBB0_27:
	mov	x0, x28
	bl	_PHY_IPA
	cbz	x0, LBB0_35
; %bb.28:
	ldr	w0, [x28, #36]
	bl	_CHSPEC_IS2G
	ldr	w1, [x26]
	ldr	w2, [x20]
	ldr	w4, [x19]
	cbz	x0, LBB0_32
; %bb.29:
	mov	x0, x28
	mov	w3, #1
	mov	w5, #14
	bl	_WRITE_RADIO_REG3
	b	LBB0_35
LBB0_30:
	mov	x0, x28
	bl	_PHY_IPA
Lloh15:
	adrp	x19, _RADIO_2056_TX_TX_SSI_MUX@GOTPAGE
Lloh16:
	ldr	x19, [x19, _RADIO_2056_TX_TX_SSI_MUX@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh17:
	adrp	x9, _RADIO_2056_TX0@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RADIO_2056_TX0@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w20, w9, w8
	cbz	x0, LBB0_33
; %bb.31:
	ldr	w0, [x28, #36]
	bl	_CHSPEC_IS5G
	cmp	x0, #0
	mov	w26, #12
	mov	w27, #14
	csel	w2, w27, w26, eq
	mov	x0, x28
	mov	x1, x20
	bl	_write_radio_reg
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _RADIO_2056_TX1@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RADIO_2056_TX1@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w20, w9, w8
	ldr	w0, [x28, #36]
	bl	_CHSPEC_IS5G
	cmp	x0, #0
	csel	w2, w27, w26, eq
	mov	x0, x28
	mov	x1, x20
	b	LBB0_34
LBB0_32:
	mov	x0, x28
	mov	w3, #1
	mov	w5, #12
	bl	_WRITE_RADIO_REG3
	b	LBB0_35
LBB0_33:
	mov	x0, x28
	mov	x1, x20
	mov	w2, #17
	bl	_write_radio_reg
	ldr	w8, [x19]
Lloh23:
	adrp	x9, _RADIO_2056_TX1@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RADIO_2056_TX1@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x28
	mov	w2, #17
LBB0_34:
	bl	_write_radio_reg
LBB0_35:
	ldr	x8, [x28, #24]
	ldr	w0, [x8, #8]
	mov	w1, #11
	bl	_D11REV_IS
	cbnz	x0, LBB0_37
; %bb.36:
	ldr	x8, [x28, #24]
	ldr	w0, [x8, #8]
	mov	w1, #12
	bl	_D11REV_IS
	cbz	x0, LBB0_38
LBB0_37:
	ldr	x8, [x28, #24]
	ldr	w0, [x8, #4]
	ldr	w1, [x21]
	mov	x2, x1
	bl	_wlapi_bmac_mctrl
	ldr	w20, [x28, #32]
	ldr	w0, [x22]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read32
	mov	w0, #1
	bl	_udelay
LBB0_38:
	ldr	w0, [x28, #16]
	mov	w1, #7
	bl	_NREV_GE
Lloh26:
	adrp	x8, _NPHY_TxPwrCtrlCmd_pwrIndex_init@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NPHY_TxPwrCtrlCmd_pwrIndex_init@GOTPAGEOFF]
Lloh28:
	adrp	x19, _NPHY_TxPwrCtrlCmd_pwrIndex_init_rev7@GOTPAGE
Lloh29:
	ldr	x19, [x19, _NPHY_TxPwrCtrlCmd_pwrIndex_init_rev7@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x19, eq
	ldr	w3, [x8]
	mov	x0, x28
	mov	w1, #487
	mov	w2, #127
	bl	_mod_phy_reg
	ldr	w0, [x28, #16]
	mov	w1, #7
	bl	_NREV_GE
	cbnz	x0, LBB0_41
; %bb.39:
	ldr	w0, [x28, #16]
	mov	w1, #1
	bl	_NREV_GT
	cbz	x0, LBB0_42
; %bb.40:
Lloh30:
	adrp	x19, _NPHY_TxPwrCtrlCmd_pwrIndex_init@GOTPAGE
Lloh31:
	ldr	x19, [x19, _NPHY_TxPwrCtrlCmd_pwrIndex_init@GOTPAGEOFF]
LBB0_41:
	ldr	w3, [x19]
	mov	x0, x28
	mov	w1, #546
	mov	w2, #255
	bl	_mod_phy_reg
LBB0_42:
	ldr	x8, [x28, #24]
	ldr	w0, [x8, #8]
	mov	w1, #11
	bl	_D11REV_IS
	cbnz	x0, LBB0_44
; %bb.43:
	ldr	x8, [x28, #24]
	ldr	w0, [x8, #8]
	mov	w1, #12
	bl	_D11REV_IS
	cbz	x0, LBB0_45
LBB0_44:
	ldr	x8, [x28, #24]
	ldr	w0, [x8, #4]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_wlapi_bmac_mctrl
LBB0_45:
	mov	x0, x28
	mov	w1, #488
	mov	w2, #1008
	bl	_write_phy_reg
	orr	w8, w23, w24, lsl #8
	orr	w2, w8, #0x8000
	mov	x0, x28
	mov	w1, #489
	bl	_write_phy_reg
	orr	w2, w25, w25, lsl #8
	mov	x0, x28
	mov	w1, #490
	bl	_write_phy_reg
Lloh32:
	adrp	x8, _NPHY_TBL_ID_CORE1TXPWRCTL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NPHY_TBL_ID_CORE1TXPWRCTL@GOTPAGEOFF]
Lloh34:
	ldrsw	x9, [x8]
Lloh35:
	adrp	x8, _NPHY_TBL_ID_CORE2TXPWRCTL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NPHY_TBL_ID_CORE2TXPWRCTL@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w9, w8
	b.le	LBB0_50
LBB0_46:
	mov	x0, x28
	bl	_wlc_phy_txpwr_limit_to_tbl_nphy
Lloh38:
	adrp	x8, _NPHY_TBL_ID_CORE1TXPWRCTL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _NPHY_TBL_ID_CORE1TXPWRCTL@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldr	x5, [x28]
	mov	x0, x28
	mov	w2, #84
	mov	w3, #64
	mov	w4, #8
	bl	_wlc_phy_table_write_nphy
Lloh41:
	adrp	x8, _NPHY_TBL_ID_CORE2TXPWRCTL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NPHY_TBL_ID_CORE2TXPWRCTL@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	ldr	x5, [x28]
	mov	x0, x28
	mov	w2, #84
	mov	w3, #64
	mov	w4, #8
	bl	_wlc_phy_table_write_nphy
	ldr	x8, [x28, #8]
	cbz	x8, LBB0_48
; %bb.47:
	mov	x0, x28
	mov	w1, #0
	bl	_wlc_phy_stay_in_carriersearch_nphy
LBB0_48:
	ldur	x8, [x29, #-96]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_57
; %bb.49:
	ldp	x29, x30, [sp, #400]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #384]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #368]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #352]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #336]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #416
	ret
LBB0_50:
	add	x25, sp, #32
	sub	x26, x29, #112
	b	LBB0_52
LBB0_51:                                ;   in Loop: Header=BB0_52 Depth=1
	add	x5, sp, #32
	mov	x28, x24
	mov	x0, x24
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	mov	x1, x19
	mov	w2, #64
	mov	w3, #0
	mov	w4, #32
	bl	_wlc_phy_table_write_nphy
	add	x8, x19, #1
Lloh47:
	adrp	x9, _NPHY_TBL_ID_CORE2TXPWRCTL@GOTPAGE
Lloh48:
	ldr	x9, [x9, _NPHY_TBL_ID_CORE2TXPWRCTL@GOTPAGEOFF]
Lloh49:
	ldrsw	x9, [x9]
	cmp	x19, x9
	mov	x9, x8
	b.ge	LBB0_46
LBB0_52:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_54 Depth 2
	mov	x24, x28
	mov	x28, #0
	str	x9, [sp]                        ; 8-byte Folded Spill
	sub	x27, x9, #26
	lsl	x8, x27, #2
	add	x9, sp, #16
	ldr	w9, [x9, x8]
	add	x10, sp, #8
	ldr	w10, [x10, x8]
	add	x11, sp, #24
	ldr	w19, [x11, x8]
	lsl	w21, w9, #9
	lsl	w20, w10, #5
	mov	w22, #32768
	b	LBB0_54
LBB0_53:                                ;   in Loop: Header=BB0_54 Depth=2
	str	w23, [x25, x28, lsl #2]
	add	x28, x28, #1
	add	w22, w22, w19
	add	w21, w21, w20
	cmp	x28, #64
	b.eq	LBB0_51
LBB0_54:                                ;   Parent Loop BB0_52 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x22
	bl	_DIV_ROUND_CLOSEST
	mov	w1, #-8
	bl	_max
	mov	x23, x0
	ldr	w0, [x24, #16]
	mov	w1, #3
	bl	_NREV_LT
	cbz	x0, LBB0_53
; %bb.55:                               ;   in Loop: Header=BB0_54 Depth=2
	ldr	w8, [x26, x27, lsl #2]
	mov	w9, #32
	sub	w8, w9, w8
	cmp	x28, w8, sxtw
	b.gt	LBB0_53
; %bb.56:                               ;   in Loop: Header=BB0_54 Depth=2
	sub	x8, x29, #104
	ldr	w8, [x8, x27, lsl #2]
	add	w1, w8, #1
	mov	x0, x23
	bl	_max
	mov	x23, x0
	b	LBB0_53
LBB0_57:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_19-LBB0_15)>>2
                                        ; -- End function
	.comm	_MCTL_PHYLOCK,4,2               ; @MCTL_PHYLOCK
	.comm	_maccontrol,4,2                 ; @maccontrol
	.comm	_RADIO_2057,4,2                 ; @RADIO_2057
	.comm	_TX,4,2                         ; @TX
	.comm	_TX_SSI_MUX,4,2                 ; @TX_SSI_MUX
	.comm	_RADIO_2056_TX_TX_SSI_MUX,4,2   ; @RADIO_2056_TX_TX_SSI_MUX
	.comm	_RADIO_2056_TX0,4,2             ; @RADIO_2056_TX0
	.comm	_RADIO_2056_TX1,4,2             ; @RADIO_2056_TX1
	.comm	_NPHY_TxPwrCtrlCmd_pwrIndex_init_rev7,4,2 ; @NPHY_TxPwrCtrlCmd_pwrIndex_init_rev7
	.comm	_NPHY_TxPwrCtrlCmd_pwrIndex_init,4,2 ; @NPHY_TxPwrCtrlCmd_pwrIndex_init
	.comm	_NPHY_TBL_ID_CORE1TXPWRCTL,4,2  ; @NPHY_TBL_ID_CORE1TXPWRCTL
	.comm	_NPHY_TBL_ID_CORE2TXPWRCTL,4,2  ; @NPHY_TBL_ID_CORE2TXPWRCTL
	.no_dead_strip	_wlc_phy_txpwrctrl_pwr_setup_nphy
.subsections_via_symbols
