	.file	"extr_hal_com_phycfg.c_PHY_InitTxPowerLimit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	PHY_InitTxPowerLimit
	.type	PHY_InitTxPowerLimit, @function
PHY_InitTxPowerLimit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	GET_HAL_DATA@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR MAX_REGULATION_NUM[rip]
	mov	QWORD PTR 8[rsp], rax
	test	rax, rax
	je	.L1
	mov	r15, QWORD PTR MAX_2_4G_BANDWITH_NUM[rip]
	mov	r12, QWORD PTR MAX_RATE_SECTION_NUM[rip]
	xor	r13d, r13d
	mov	rbx, QWORD PTR CHANNEL_MAX_NUMBER_2G[rip]
	mov	rdx, QWORD PTR MAX_RF_PATH_NUM[rip]
.L12:
	test	r15, r15
	je	.L10
	lea	r9, 0[0+r13*8]
	xor	r14d, r14d
.L14:
	test	r12, r12
	je	.L8
	lea	r10, 0[0+r14*8]
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L11:
	test	rbx, rbx
	je	.L5
	lea	r8, 0[0+rbp*8]
	xor	r11d, r11d
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, 0[0+r11*8]
	xor	eax, eax
	test	rdx, rdx
	je	.L7
	mov	QWORD PTR [rsp], r11
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, QWORD PTR 8[rcx]
	mov	r11, QWORD PTR MAX_POWER_INDEX[rip]
	mov	rsi, QWORD PTR [rsi+r9]
	mov	rsi, QWORD PTR [rsi+r10]
	mov	rsi, QWORD PTR [rsi+r8]
	mov	rsi, QWORD PTR [rsi+rdi]
	mov	QWORD PTR [rsi+rax*8], r11
	add	rax, 1
	cmp	rax, rdx
	jne	.L4
	mov	r11, QWORD PTR [rsp]
.L7:
	add	r11, 1
	cmp	r11, rbx
	jne	.L9
.L5:
	add	rbp, 1
	cmp	rbp, r12
	jne	.L11
.L8:
	add	r14, 1
	cmp	r14, r15
	jne	.L14
.L10:
	add	r13, 1
	cmp	r13, QWORD PTR 8[rsp]
	jne	.L12
	mov	r15, QWORD PTR MAX_5G_BANDWITH_NUM[rip]
	mov	rbx, QWORD PTR CHANNEL_MAX_NUMBER_5G[rip]
	xor	r13d, r13d
.L13:
	test	r15, r15
	je	.L21
	lea	r9, 0[0+r13*8]
	xor	r14d, r14d
.L23:
	test	r12, r12
	je	.L19
	lea	r10, 0[0+r14*8]
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L22:
	test	rbx, rbx
	je	.L16
	lea	r8, 0[0+rbp*8]
	xor	r11d, r11d
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rdi, 0[0+r11*8]
	xor	eax, eax
	test	rdx, rdx
	je	.L18
	mov	QWORD PTR [rsp], r11
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rsi, QWORD PTR [rcx]
	mov	r11, QWORD PTR MAX_POWER_INDEX[rip]
	mov	rsi, QWORD PTR [rsi+r9]
	mov	rsi, QWORD PTR [rsi+r10]
	mov	rsi, QWORD PTR [rsi+r8]
	mov	rsi, QWORD PTR [rsi+rdi]
	mov	QWORD PTR [rsi+rax*8], r11
	add	rax, 1
	cmp	rax, rdx
	jne	.L15
	mov	r11, QWORD PTR [rsp]
.L18:
	add	r11, 1
	cmp	r11, rbx
	jne	.L20
.L16:
	add	rbp, 1
	cmp	rbp, r12
	jne	.L22
.L19:
	add	r14, 1
	cmp	r14, r15
	jne	.L23
.L21:
	add	r13, 1
	cmp	r13, QWORD PTR 8[rsp]
	jne	.L13
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	PHY_InitTxPowerLimit, .-PHY_InitTxPowerLimit
	.comm	MAX_RF_PATH_NUM,8,8
	.comm	MAX_REGULATION_NUM,8,8
	.comm	MAX_RATE_SECTION_NUM,8,8
	.comm	MAX_POWER_INDEX,8,8
	.comm	MAX_5G_BANDWITH_NUM,8,8
	.comm	MAX_2_4G_BANDWITH_NUM,8,8
	.comm	CHANNEL_MAX_NUMBER_5G,8,8
	.comm	CHANNEL_MAX_NUMBER_2G,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hal_com_phycfg.c_PHY_InitTxPowerLimit.c"
	.text
	.align	2
	.global	PHY_InitTxPowerLimit
	.syntax unified
	.arm
	.fpu softvfp
	.type	PHY_InitTxPowerLimit, %function
PHY_InitTxPowerLimit:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	bl	GET_HAL_DATA
	ldr	r3, .L53
	ldr	r3, [r3]
	cmp	r3, #0
	str	r3, [sp, #12]
	beq	.L1
	mov	r3, #0
	ldr	ip, .L53+4
	ldr	r2, .L53+8
	mov	r1, r0
	str	r3, [sp, #4]
	ldr	r0, .L53+12
	ldr	r3, .L53+16
	ldr	ip, [ip]
	ldr	r8, [r2]
	ldr	r10, [r0]
	ldr	r2, [r3]
	ldr	r4, .L53+20
	str	ip, [sp, #8]
.L12:
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L10
	mov	fp, #0
	ldr	r3, [sp, #4]
	lsl	r5, r3, #2
.L14:
	cmp	r10, #0
	beq	.L8
	mov	r9, #0
	lsl	r6, fp, #2
.L11:
	cmp	r8, #0
	beq	.L5
	mov	r7, #0
	lsl	lr, r9, #2
.L9:
	cmp	r2, #0
	movne	r3, #0
	lslne	ip, r7, #2
	strne	r7, [sp]
	beq	.L7
.L4:
	ldr	r0, [r1, #4]
	ldr	r7, [r4]
	ldr	r0, [r0, r5]
	ldr	r0, [r0, r6]
	ldr	r0, [r0, lr]
	ldr	r0, [r0, ip]
	str	r7, [r0, r3, lsl #2]
	add	r3, r3, #1
	cmp	r3, r2
	bne	.L4
	ldr	r7, [sp]
.L7:
	add	r7, r7, #1
	cmp	r7, r8
	bne	.L9
.L5:
	add	r9, r9, #1
	cmp	r9, r10
	bne	.L11
.L8:
	ldr	r3, [sp, #8]
	add	fp, fp, #1
	cmp	fp, r3
	bne	.L14
.L10:
	ldr	r3, [sp, #4]
	ldr	r0, [sp, #12]
	add	r3, r3, #1
	cmp	r3, r0
	str	r3, [sp, #4]
	bne	.L12
	ldr	r3, .L53+24
	ldr	r0, .L53+28
	ldr	r8, [r3]
	mov	r3, #0
	ldr	r0, [r0]
	ldr	r4, .L53+20
	str	r0, [sp, #8]
	str	r3, [sp, #4]
.L13:
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L21
	mov	fp, #0
	ldr	r3, [sp, #4]
	lsl	r5, r3, #2
.L23:
	cmp	r10, #0
	beq	.L19
	mov	r9, #0
	lsl	r6, fp, #2
.L22:
	cmp	r8, #0
	beq	.L16
	mov	r7, #0
	lsl	lr, r9, #2
.L20:
	cmp	r2, #0
	movne	r3, #0
	lslne	ip, r7, #2
	strne	r7, [sp]
	beq	.L18
.L15:
	ldr	r0, [r1]
	ldr	r7, [r4]
	ldr	r0, [r0, r5]
	ldr	r0, [r0, r6]
	ldr	r0, [r0, lr]
	ldr	r0, [r0, ip]
	str	r7, [r0, r3, lsl #2]
	add	r3, r3, #1
	cmp	r3, r2
	bne	.L15
	ldr	r7, [sp]
.L18:
	add	r7, r7, #1
	cmp	r7, r8
	bne	.L20
.L16:
	add	r9, r9, #1
	cmp	r9, r10
	bne	.L22
.L19:
	ldr	r3, [sp, #8]
	add	fp, fp, #1
	cmp	fp, r3
	bne	.L23
.L21:
	ldr	r3, [sp, #4]
	ldr	r0, [sp, #12]
	add	r3, r3, #1
	cmp	r3, r0
	str	r3, [sp, #4]
	bne	.L13
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L54:
	.align	2
.L53:
	.word	MAX_REGULATION_NUM
	.word	MAX_2_4G_BANDWITH_NUM
	.word	CHANNEL_MAX_NUMBER_2G
	.word	MAX_RATE_SECTION_NUM
	.word	MAX_RF_PATH_NUM
	.word	MAX_POWER_INDEX
	.word	CHANNEL_MAX_NUMBER_5G
	.word	MAX_5G_BANDWITH_NUM
	.size	PHY_InitTxPowerLimit, .-PHY_InitTxPowerLimit
	.comm	MAX_RF_PATH_NUM,4,4
	.comm	MAX_REGULATION_NUM,4,4
	.comm	MAX_RATE_SECTION_NUM,4,4
	.comm	MAX_POWER_INDEX,4,4
	.comm	MAX_5G_BANDWITH_NUM,4,4
	.comm	MAX_2_4G_BANDWITH_NUM,4,4
	.comm	CHANNEL_MAX_NUMBER_5G,4,4
	.comm	CHANNEL_MAX_NUMBER_2G,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
