	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_txpwr_index_nphy       ## -- Begin function wlc_phy_txpwr_index_nphy
	.p2align	4, 0x90
_wlc_phy_txpwr_index_nphy:              ## @wlc_phy_txpwr_index_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, -104(%rbp)                ## 4-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rdx, %rbx
	callq	_wlc_phy_stay_in_carriersearch_nphy
	movq	%rbx, %rdx
LBB0_2:
	movl	32(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_35
## %bb.3:
	leal	192(%rdx), %ecx
	movl	%ecx, -88(%rbp)                 ## 4-byte Spill
	leal	320(%rdx), %ecx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	leal	448(%rdx), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	leal	576(%rdx), %ecx
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	movl	$80, %ebx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movl	$32, %r8d
	leaq	-108(%rbp), %r9
	callq	_wlc_phy_table_read_nphy
	movq	_PHY_CORE_0@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	cmpq	%rax, %r13
	setne	%cl
	leal	663(,%rcx,4), %esi
	movl	-108(%rbp), %ecx
	shll	$4, %ecx
	movq	%r14, %rdi
	movl	$8176, %edx                     ## imm = 0x1FF0
	callq	_mod_phy_reg
	movl	(%r15), %eax
	xorl	%ecx, %ecx
	cmpq	%rax, %r13
	setne	%cl
	leal	663(,%rcx,4), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_mod_phy_reg
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	callq	_wlc_phy_txpwrctrl_enable_nphy
	movq	16(%r14), %rax
LBB0_33:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movl	%edx, (%rax,%r12)
	movl	32(%r14), %eax
LBB0_34:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$36, %r12
	addl	$2, %ebx
	cmpq	%rcx, %r13
	jge	LBB0_35
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-104(%rbp), %ecx                ## 4-byte Reload
	btl	%r13d, %ecx
	jae	LBB0_34
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	cmpq	%rcx, %r13
	sete	%r15b
	movq	16(%r14), %rcx
	movl	(%rcx,%r12), %ecx
	testl	%edx, %edx
	js	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%ecx, %ecx
	jns	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	36(%r14), %edi
	movl	$3, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rax
	movl	4(%rax,%r12), %ecx
	movq	%r14, %rdi
	movl	$143, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_mod_phy_reg
	movq	16(%r14), %rax
	movl	4(%rax,%r12), %ecx
	movq	%r14, %rdi
	movl	$165, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_mod_phy_reg
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%ecx, %ecx
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	js	LBB0_34
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	36(%r14), %edi
	movl	$3, %esi
	callq	_NREV_GE
	movq	16(%r14), %rcx
	movl	4(%rcx,%r12), %ecx
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$143, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_mod_phy_reg
	movq	16(%r14), %rax
	movl	4(%rax,%r12), %ecx
	movq	%r14, %rdi
	movl	$165, %esi
	movl	$256, %edx                      ## imm = 0x100
	jmp	LBB0_10
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	$165, %esi
	callq	_read_phy_reg
	movq	16(%r14), %rcx
	movl	%eax, 4(%rcx,%r12)
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	xorl	%esi, %esi
	cmpq	%rax, %r13
	sete	%sil
	xorl	$171, %esi
	movq	%r14, %rdi
	callq	_read_phy_reg
	movq	16(%r14), %rcx
	movl	%eax, 8(%rcx,%r12)
	leaq	(%rcx,%r12), %r9
	addq	$12, %r9
	leal	272(%r13), %ecx
	movq	%r14, %rdi
	movl	$7, %esi
	movl	$1, %edx
	movl	$16, %r8d
	callq	_wlc_phy_table_read_nphy
	movq	%r14, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$87, %ecx
	movl	$16, %r8d
	leaq	-76(%rbp), %r9
	callq	_wlc_phy_table_read_nphy
	movl	(%rbx), %eax
	cmpq	%rax, %r13
	sete	%cl
	movl	-76(%rbp), %eax
	shlb	$3, %cl
	sarl	%cl, %eax
	movzbl	%al, %eax
	movl	%eax, -76(%rbp)
	movq	16(%r14), %rcx
	movl	%eax, 16(%rcx,%r12)
	leaq	20(%rcx,%r12), %r9
	movq	%r14, %rdi
	movl	$15, %esi
	movl	$2, %edx
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	$16, %r8d
	callq	_wlc_phy_table_read_nphy
	movq	16(%r14), %rax
	leaq	(%rax,%r12), %r9
	addq	$24, %r9
	leal	85(%r13), %ecx
	movq	%r14, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$16, %r8d
	callq	_wlc_phy_table_read_nphy
	movq	16(%r14), %rax
	movl	28(%rax,%r12), %ecx
	movl	%ecx, 32(%rax,%r12)
	xorl	%ebx, %ebx
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movb	%r15b, %bl
	xorl	$27, %ebx
	movl	(%r14), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	_PHY_TPC_HW_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wlc_phy_txpwrctrl_enable_nphy
	movl	36(%r14), %edi
	movl	$1, %esi
	callq	_NREV_IS
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14), %rax
	movl	(%rax), %edi
	movq	_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wlapi_bmac_phyclk_fgc
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%ebx, -100(%rbp)                ## 4-byte Spill
	movl	%ebx, %esi
	movl	$1, %edx
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	movl	$32, %r8d
	leaq	-124(%rbp), %r9
	callq	_wlc_phy_table_read_nphy
	movl	36(%r14), %edi
	movl	$3, %esi
	callq	_NREV_GE
	movl	-124(%rbp), %ecx
	movl	%ecx, %edx
	movl	%ecx, %r15d
	movzbl	%cl, %esi
	movl	%esi, -92(%rbp)                 ## 4-byte Spill
	shrl	$16, %ecx
	andl	$8191, %ecx                     ## imm = 0x1FFF
	sarl	$16, %edx
	andl	$131071, %edx                   ## imm = 0x1FFFF
	testq	%rax, %rax
	cmovel	%ecx, %edx
	movl	%edx, -120(%rbp)
	shrl	$8, %r15d
	andl	$63, %r15d
	movl	36(%r14), %edi
	movl	$3, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpq	%rax, %r13
	movl	$165, %esi
	movl	$143, %eax
	cmovel	%eax, %esi
	movq	%r14, %rdi
	movl	$256, %edx                      ## imm = 0x100
	movl	$256, %ecx                      ## imm = 0x100
	callq	_mod_phy_reg
	jmp	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	$165, %esi
	movl	$16384, %edx                    ## imm = 0x4000
	movl	$16384, %ecx                    ## imm = 0x4000
	callq	_mod_phy_reg
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rbx
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %eax
	xorl	%esi, %esi
	cmpq	%rax, %r13
	sete	%sil
	xorl	$171, %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_write_phy_reg
	leal	272(%r13), %ecx
	movq	%r14, %rdi
	movl	$7, %esi
	movl	$1, %edx
	movl	$16, %r8d
	leaq	-120(%rbp), %r9
	callq	_wlc_phy_table_write_nphy
	movq	%r14, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$87, %ecx
	movl	$16, %r8d
	leaq	-60(%rbp), %r15
	movq	%r15, %r9
	callq	_wlc_phy_table_read_nphy
	movl	(%rbx), %eax
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %ecx
	shll	$8, %ecx
	cmpq	%rax, %r13
	movl	$65280, %eax                    ## imm = 0xFF00
	movl	$255, %edx
	cmovel	%edx, %eax
	cmovnel	%esi, %ecx
	andl	-60(%rbp), %eax
	orl	%ecx, %eax
	movl	%eax, -60(%rbp)
	movq	%r14, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$87, %ecx
	movl	$16, %r8d
	movq	%r15, %r9
	callq	_wlc_phy_table_write_nphy
	movq	%r14, %rdi
	movl	-100(%rbp), %r15d               ## 4-byte Reload
	movl	%r15d, %esi
	movl	$1, %edx
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movl	$32, %r8d
	leaq	-116(%rbp), %r9
	callq	_wlc_phy_table_read_nphy
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-116(%rbp), %eax
	movl	%eax, %ecx
	andl	$1023, %ecx                     ## imm = 0x3FF
	shrl	$10, %eax
	andl	$1023, %eax                     ## imm = 0x3FF
	movl	%eax, -56(%rbp)
	movl	%ecx, -52(%rbp)
	movq	%r14, %rdi
	movl	$15, %esi
	movl	$2, %edx
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	$16, %r8d
	leaq	-56(%rbp), %r9
	callq	_wlc_phy_table_write_nphy
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	$32, %r8d
	leaq	-112(%rbp), %r15
	movq	%r15, %r9
	callq	_wlc_phy_table_read_nphy
	leal	85(%r13), %ecx
	movq	%r14, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$16, %r8d
	movq	%r15, %r9
	callq	_wlc_phy_table_write_nphy
	jmp	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	$32, %r8d
	leaq	-112(%rbp), %r9
	callq	_wlc_phy_table_read_nphy
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	36(%r14), %edi
	movl	$1, %esi
	callq	_NREV_IS
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14), %rax
	movl	(%rax), %edi
	movq	_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wlapi_bmac_phyclk_fgc
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_PHY_IPA
	testq	%rax, %rax
	je	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NPHY_TBL_ID_CORE2TXPWRCTL@GOTPCREL(%rip), %rax
	cmpq	%rcx, %r13
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_NPHY_TBL_ID_CORE1TXPWRCTL@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$165, %esi
	movl	$16384, %edx                    ## imm = 0x4000
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	callq	_mod_phy_reg
	movq	_PHY_CORE_0@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	xorl	%esi, %esi
	cmpq	%rax, %r13
	sete	%sil
	xorl	$171, %esi
	movq	16(%r14), %rax
	movl	8(%rax,%r12), %edx
	movq	%r14, %rdi
	callq	_write_phy_reg
	movq	16(%r14), %rax
	leaq	(%rax,%r12), %r9
	addq	$12, %r9
	leal	272(%r13), %ecx
	movq	%r14, %rdi
	movl	$7, %esi
	movl	$1, %edx
	movl	$16, %r8d
	callq	_wlc_phy_table_write_nphy
	movq	%r14, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$87, %ecx
	movl	$16, %r8d
	leaq	-60(%rbp), %r9
	callq	_wlc_phy_table_read_nphy
	movl	(%r15), %eax
	cmpq	%rax, %r13
	movl	$65280, %ecx                    ## imm = 0xFF00
	movl	$255, %edx
	cmovel	%edx, %ecx
	andl	-60(%rbp), %ecx
	movl	%ecx, -60(%rbp)
	movq	16(%r14), %rdx
	movl	16(%rdx,%r12), %edx
	movl	%edx, %esi
	shll	$8, %esi
	cmpq	%rax, %r13
	cmovnel	%edx, %esi
	orl	%ecx, %esi
	movl	%esi, -60(%rbp)
	movq	%r14, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$87, %ecx
	movl	$16, %r8d
	leaq	-60(%rbp), %r9
	callq	_wlc_phy_table_write_nphy
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rax
	leaq	(%rax,%r12), %r9
	addq	$20, %r9
	movq	%r14, %rdi
	movl	$15, %esi
	movl	$2, %edx
	movl	%ebx, %ecx
	movl	$16, %r8d
	callq	_wlc_phy_table_write_nphy
	movq	16(%r14), %rax
	leaq	(%rax,%r12), %r9
	addq	$24, %r9
	leal	85(%r13), %ecx
	movq	%r14, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$16, %r8d
	callq	_wlc_phy_table_write_nphy
	movq	16(%r14), %rax
	leaq	(%rax,%r12), %r9
	addq	$24, %r9
	leal	93(%r13), %ecx
	movq	%r14, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$16, %r8d
	callq	_wlc_phy_table_write_nphy
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_wlc_phy_txpwrctrl_enable_nphy
	movq	16(%r14), %rax
	movl	32(%rax,%r12), %ecx
	movl	%ecx, 28(%rax,%r12)
	jmp	LBB0_33
LBB0_35:
	cmpq	$0, 8(%r14)
	je	LBB0_37
## %bb.36:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_wlc_phy_stay_in_carriersearch_nphy
LBB0_37:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_39
## %bb.38:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_CORE_0,4,2                 ## @PHY_CORE_0
	.comm	_PHY_TPC_HW_OFF,4,2             ## @PHY_TPC_HW_OFF
	.comm	_ON,4,2                         ## @ON
	.comm	_OFF,4,2                        ## @OFF
	.comm	_NPHY_TBL_ID_CORE1TXPWRCTL,4,2  ## @NPHY_TBL_ID_CORE1TXPWRCTL
	.comm	_NPHY_TBL_ID_CORE2TXPWRCTL,4,2  ## @NPHY_TBL_ID_CORE2TXPWRCTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_txpwr_index_nphy       ; -- Begin function wlc_phy_txpwr_index_nphy
	.p2align	2
_wlc_phy_txpwr_index_nphy:              ; @wlc_phy_txpwr_index_nphy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	w3, [sp, #16]                   ; 4-byte Folded Spill
	mov	x21, x2
	mov	x22, x1
	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, #56]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_wlc_phy_stay_in_carriersearch_nphy
LBB0_2:
	ldr	w8, [x19, #32]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.3:
	mov	x23, #0
	mov	x24, #0
	add	w10, w21, #192
	add	w9, w21, #320
	stp	w9, w10, [sp, #8]               ; 8-byte Folded Spill
	add	w10, w21, #448
	add	w9, w21, #576
	stp	w9, w10, [sp]                   ; 8-byte Folded Spill
	mov	w27, #80
Lloh3:
	adrp	x25, _PHY_CORE_0@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PHY_CORE_0@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	_wlc_phy_txpwrctrl_enable_nphy
	ldr	x8, [x19, #16]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	w21, [x8, x23]
	ldr	w8, [x19, #32]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	add	x23, x23, #36
	add	w27, w27, #2
	cmp	x24, w8, sxtw
	b.ge	LBB0_33
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w9, w22, w24
	tbz	w9, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x25]
	cmp	x24, x9
	mov	w9, #26
	cinc	w28, w9, ne
	ldr	x9, [x19, #16]
	ldr	w9, [x9, x23]
	tbnz	w21, #31, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	tbz	w9, #31, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #36]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	w1, #143
	mov	w2, #256
	bl	_mod_phy_reg
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	w1, #165
	mov	w2, #256
	bl	_mod_phy_reg
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w9, #31, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #36]
	mov	w1, #3
	bl	_NREV_GE
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	ldr	w3, [x8, #4]
	cbz	x0, LBB0_29
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	w1, #143
	mov	w2, #256
	bl	_mod_phy_reg
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	w1, #165
	mov	w2, #256
	b	LBB0_30
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	w1, #165
	bl	_read_phy_reg
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	str	w0, [x8, #4]
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25]
	cmp	x24, x8
	mov	w8, #170
	cinc	w1, w8, ne
	mov	x0, x19
	bl	_read_phy_reg
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	str	w0, [x8, #8]
	add	x5, x8, #12
	add	w3, w24, #272
	mov	x0, x19
	mov	w1, #7
	mov	w2, #1
	mov	w4, #16
	bl	_wlc_phy_table_read_nphy
	add	x5, sp, #24
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #87
	mov	w4, #16
	bl	_wlc_phy_table_read_nphy
	ldr	w8, [x25]
	cmp	x24, x8
	cset	w8, eq
	ldr	w9, [sp, #24]
	lsl	x8, x8, #3
	asr	w8, w9, w8
	and	w8, w8, #0xff
	str	w8, [sp, #24]
	ldr	x9, [x19, #16]
	add	x9, x9, x23
	str	w8, [x9, #16]
	add	x5, x9, #20
	mov	x0, x19
	mov	w1, #15
	mov	w2, #2
	mov	x3, x27
	mov	w4, #16
	bl	_wlc_phy_table_read_nphy
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	add	x5, x8, #24
	add	w3, w24, #85
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w4, #16
	bl	_wlc_phy_table_read_nphy
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	ldr	w9, [x8, #28]
	str	w9, [x8, #32]
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w26, [x19]
Lloh5:
	adrp	x8, _PHY_TPC_HW_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHY_TPC_HW_OFF@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wlc_phy_txpwrctrl_enable_nphy
	ldr	w0, [x19, #36]
	mov	w1, #1
	bl	_NREV_IS
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ON@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_wlapi_bmac_phyclk_fgc
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x5, sp, #40
	mov	x0, x19
	mov	x1, x28
	mov	w2, #1
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	mov	w4, #32
	bl	_wlc_phy_table_read_nphy
	ldr	w0, [x19, #36]
	mov	w1, #3
	bl	_NREV_GE
	ldr	w20, [sp, #40]
	ubfx	w8, w20, #16, #13
	asr	w9, w20, #16
	and	w9, w9, #0x1ffff
	cmp	x0, #0
	csel	w8, w8, w9, eq
	str	w8, [sp, #36]
	ldr	w0, [x19, #36]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25]
	cmp	x24, x8
	mov	w8, #165
	mov	w9, #143
	csel	w1, w9, w8, eq
	mov	x0, x19
	mov	w2, #256
	mov	w3, #256
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	w1, #165
	mov	w2, #16384
	mov	w3, #16384
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_mod_phy_reg
	ubfx	w2, w20, #8, #6
	and	w20, w20, #0xff
	ldr	w8, [x25]
	cmp	x24, x8
	mov	w8, #170
	cinc	w1, w8, ne
	mov	x0, x19
	bl	_write_phy_reg
	add	w3, w24, #272
	add	x5, sp, #36
	mov	x0, x19
	mov	w1, #7
	mov	w2, #1
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	add	x5, sp, #44
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #87
	mov	w4, #16
	bl	_wlc_phy_table_read_nphy
	ldr	w8, [x25]
	cmp	x24, x8
	mov	w8, #65280
	mov	w9, #255
	csel	w8, w9, w8, eq
	ldr	w9, [sp, #44]
	and	w8, w8, w9
	lsl	w9, w20, #8
	csel	w9, w9, w20, eq
	orr	w8, w8, w9
	str	w8, [sp, #44]
	add	x5, sp, #44
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #87
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	add	x5, sp, #32
	mov	x0, x19
	mov	x1, x28
	mov	w2, #1
	ldr	w3, [sp, #8]                    ; 4-byte Folded Reload
	mov	w4, #32
	bl	_wlc_phy_table_read_nphy
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #32]
	and	w9, w8, #0x3ff
	ubfx	w8, w8, #10, #10
	stp	w8, w9, [sp, #48]
	add	x5, sp, #48
	mov	x0, x19
	mov	w1, #15
	mov	w2, #2
	mov	x3, x27
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	add	x5, sp, #28
	mov	x0, x19
	mov	x1, x28
	mov	w2, #1
	ldr	w3, [sp, #4]                    ; 4-byte Folded Reload
	mov	w4, #32
	bl	_wlc_phy_table_read_nphy
	add	w3, w24, #85
	add	x5, sp, #28
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x5, sp, #28
	mov	x0, x19
	mov	x1, x28
	mov	w2, #1
	ldr	w3, [sp, #4]                    ; 4-byte Folded Reload
	mov	w4, #32
	bl	_wlc_phy_table_read_nphy
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #36]
	mov	w1, #1
	bl	_NREV_IS
	cbz	x0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _OFF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OFF@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_wlapi_bmac_phyclk_fgc
LBB0_27:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_PHY_IPA
	cbz	x0, LBB0_4
; %bb.28:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25]
	cmp	x24, x8
Lloh14:
	adrp	x8, _NPHY_TBL_ID_CORE1TXPWRCTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NPHY_TBL_ID_CORE1TXPWRCTL@GOTPAGEOFF]
Lloh16:
	adrp	x9, _NPHY_TBL_ID_CORE2TXPWRCTL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NPHY_TBL_ID_CORE2TXPWRCTL@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	add	x5, sp, #20
	mov	x0, x19
	mov	w2, #1
	ldr	w3, [sp]                        ; 4-byte Folded Reload
	mov	w4, #32
	bl	_wlc_phy_table_read_nphy
	ldr	w8, [x25]
	cmp	x24, x8
	mov	w20, #667
	mov	w28, #663
	csel	w1, w28, w20, eq
	ldr	w8, [sp, #20]
	lsl	w3, w8, #4
	mov	x0, x19
	mov	w2, #8176
	bl	_mod_phy_reg
	ldr	w8, [x25]
	cmp	x24, x8
	csel	w1, w28, w20, eq
	mov	x0, x19
	mov	w2, #4
	mov	w3, #4
	bl	_mod_phy_reg
	b	LBB0_4
LBB0_29:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	w1, #165
	mov	w2, #16384
LBB0_30:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_mod_phy_reg
	ldr	w8, [x25]
	cmp	x24, x8
	mov	w8, #170
	cinc	w1, w8, ne
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_write_phy_reg
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	add	x5, x8, #12
	add	w3, w24, #272
	mov	x0, x19
	mov	w1, #7
	mov	w2, #1
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	add	x5, sp, #44
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #87
	mov	w4, #16
	bl	_wlc_phy_table_read_nphy
	ldr	w8, [x25]
	cmp	x24, x8
	mov	w8, #65280
	mov	w9, #255
	csel	w8, w9, w8, eq
	ldr	w9, [sp, #44]
	and	w8, w8, w9
	str	w8, [sp, #44]
	ldr	x9, [x19, #16]
	add	x9, x9, x23
	ldr	w9, [x9, #16]
	lsl	w10, w9, #8
	csel	w9, w10, w9, eq
	orr	w8, w9, w8
	str	w8, [sp, #44]
	add	x5, sp, #44
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #87
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	add	x5, x8, #20
	mov	x0, x19
	mov	w1, #15
	mov	w2, #2
	mov	x3, x27
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	add	x5, x8, #24
	add	w3, w24, #85
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	add	x5, x8, #24
	add	w3, w24, #93
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
LBB0_32:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x19]
	mov	x0, x19
	bl	_wlc_phy_txpwrctrl_enable_nphy
	ldr	x8, [x19, #16]
	add	x9, x8, x23
	ldr	w10, [x9, #32]
	str	w10, [x9, #28]
	b	LBB0_5
LBB0_33:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_35
; %bb.34:
	mov	x0, x19
	mov	w1, #0
	bl	_wlc_phy_stay_in_carriersearch_nphy
LBB0_35:
	ldr	x8, [sp, #56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.36:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_37:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_CORE_0,4,2                 ; @PHY_CORE_0
	.comm	_PHY_TPC_HW_OFF,4,2             ; @PHY_TPC_HW_OFF
	.comm	_ON,4,2                         ; @ON
	.comm	_OFF,4,2                        ; @OFF
	.comm	_NPHY_TBL_ID_CORE1TXPWRCTL,4,2  ; @NPHY_TBL_ID_CORE1TXPWRCTL
	.comm	_NPHY_TBL_ID_CORE2TXPWRCTL,4,2  ; @NPHY_TBL_ID_CORE2TXPWRCTL
.subsections_via_symbols
