	.file	"extr_rtl8723b_hal_init.c_Hal_EfuseParseTxPowerInfo_8723B.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Hal_EfuseParseTxPowerInfo_8723B
	.type	Hal_EfuseParseTxPowerInfo_8723B, @function
Hal_EfuseParseTxPowerInfo_8723B:
.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
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	QWORD PTR 8[rsp], rsi
	lea	r12, 28[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	call	GET_HAL_DATA@PLT
	mov	ecx, r13d
	mov	rdi, rbp
	lea	rsi, 32[rsp]
	mov	rdx, rbx
	mov	r14, rax
	xor	ebp, ebp
	call	Hal_ReadPowerValueFromPROM_8723B@PLT
	mov	ecx, DWORD PTR MAX_RF_PATH[rip]
	test	ecx, ecx
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR CHANNEL_MAX_NUMBER[rip]
	lea	r15, 0[0+rbp*8]
	xor	ebx, ebx
	test	eax, eax
	jg	.L6
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 72[rsp]
	movsx	rdx, DWORD PTR 28[rsp]
	mov	rax, QWORD PTR [rax+r15]
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR 48[r14]
	mov	rax, QWORD PTR [rax+r15]
	mov	DWORD PTR [rax+rbx*4], edx
	mov	rax, QWORD PTR 64[rsp]
	movsx	rdx, DWORD PTR 28[rsp]
	mov	rax, QWORD PTR [rax+r15]
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR 40[r14]
	mov	rax, QWORD PTR [rax+r15]
	mov	DWORD PTR [rax+rbx*4], edx
	add	rbx, 1
	cmp	DWORD PTR CHANNEL_MAX_NUMBER[rip], ebx
	jle	.L11
.L6:
	lea	edi, 1[rbx]
	mov	rsi, r12
	mov	DWORD PTR 28[rsp], 0
	call	Hal_GetChnlGroup8723B@PLT
	cmp	rbx, 13
	jne	.L4
	mov	rax, QWORD PTR 72[rsp]
	add	rbx, 1
	cmp	DWORD PTR CHANNEL_MAX_NUMBER[rip], ebx
	mov	rax, QWORD PTR [rax+r15]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR 48[r14]
	mov	rax, QWORD PTR [rax+r15]
	mov	DWORD PTR 52[rax], edx
	mov	rax, QWORD PTR 64[rsp]
	movsx	rdx, DWORD PTR 28[rsp]
	mov	rax, QWORD PTR [rax+r15]
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR 40[r14]
	mov	rax, QWORD PTR [rax+r15]
	mov	DWORD PTR 52[rax], edx
	jg	.L6
.L11:
	mov	edx, DWORD PTR MAX_TX_COUNT[rip]
	test	edx, edx
	jle	.L9
	mov	rax, QWORD PTR 56[rsp]
	mov	r15, QWORD PTR [rax+rbp*8]
	mov	rax, QWORD PTR 32[r14]
	mov	rbx, QWORD PTR [rax+rbp*8]
	mov	rax, QWORD PTR 48[rsp]
	mov	r11, QWORD PTR [rax+rbp*8]
	mov	rax, QWORD PTR 24[r14]
	mov	r10, QWORD PTR [rax+rbp*8]
	mov	rax, QWORD PTR 40[rsp]
	mov	r9, QWORD PTR [rax+rbp*8]
	mov	rax, QWORD PTR 16[r14]
	mov	rdi, QWORD PTR [rax+rbp*8]
	mov	rax, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR [rax+rbp*8]
	mov	rax, QWORD PTR 8[r14]
	mov	rcx, QWORD PTR [rax+rbp*8]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR [r15+rax*4]
	mov	DWORD PTR [rbx+rax*4], edx
	mov	edx, DWORD PTR [r11+rax*4]
	mov	DWORD PTR [r10+rax*4], edx
	mov	edx, DWORD PTR [r9+rax*4]
	mov	DWORD PTR [rdi+rax*4], edx
	mov	edx, DWORD PTR [rsi+rax*4]
	mov	DWORD PTR [rcx+rax*4], edx
	add	rax, 1
	cmp	DWORD PTR MAX_TX_COUNT[rip], eax
	jg	.L8
.L9:
	add	rbp, 1
	cmp	DWORD PTR MAX_RF_PATH[rip], ebp
	jg	.L2
.L3:
	test	r13d, r13d
	jne	.L12
	mov	rax, QWORD PTR EEPROM_RF_BOARD_OPTION_8723B[rip]
	mov	rcx, QWORD PTR 8[rsp]
	lea	rax, [rcx+rax*4]
	mov	edx, DWORD PTR [rax]
	and	edx, 7
	mov	DWORD PTR [r14], edx
	cmp	DWORD PTR [rax], 255
	je	.L13
.L24:
	movsx	rdx, edx
.L14:
	mov	esi, DWORD PTR _drv_notice_[rip]
	mov	edi, DWORD PTR _module_hci_hal_init_c_[rip]
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 104
	.cfi_remember_state
	.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
.L12:
	.cfi_restore_state
	mov	DWORD PTR [r14], 0
	xor	edx, edx
	jmp	.L14
.L13:
	mov	edx, DWORD PTR EEPROM_DEFAULT_BOARD_OPTION[rip]
	and	edx, 7
	mov	DWORD PTR [r14], edx
	jmp	.L24
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Hal_EfuseParseTxPowerInfo_8723B, .-Hal_EfuseParseTxPowerInfo_8723B
	.comm	_module_hci_hal_init_c_,4,4
	.comm	_drv_notice_,4,4
	.comm	_drv_info_,4,4
	.comm	MAX_TX_COUNT,4,4
	.comm	MAX_RF_PATH,4,4
	.comm	EEPROM_RF_BOARD_OPTION_8723B,8,8
	.comm	EEPROM_DEFAULT_BOARD_OPTION,4,4
	.comm	CHANNEL_MAX_NUMBER,4,4
	.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_rtl8723b_hal_init.c_Hal_EfuseParseTxPowerInfo_8723B.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Hal_EfuseParseTxPowerInfo_8723B
	.syntax unified
	.arm
	.fpu softvfp
	.type	Hal_EfuseParseTxPowerInfo_8723B, %function
Hal_EfuseParseTxPowerInfo_8723B:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L24
	sub	sp, sp, #44
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r7, r1
	mov	r6, r2
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	GET_HAL_DATA
	mov	r3, r6
	mov	r4, r0
	mov	r2, r7
	mov	r0, r5
	add	r1, sp, #12
	bl	Hal_ReadPowerValueFromPROM_8723B
	ldr	r3, .L24+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L3
	mov	r5, #0
	ldr	r7, .L24+8
	ldr	r6, .L24+12
.L2:
	ldr	r3, [r7]
	cmp	r3, #0
	movgt	r8, #0
	lslgt	r9, r5, #2
	bgt	.L6
	b	.L11
.L4:
	ldr	r3, [sp, #32]
	ldr	r1, [sp, #8]
	ldr	r2, [r3, r9]
	ldr	r3, [r4, #24]
	ldr	r1, [r2, r1, lsl #2]
	ldr	r2, [r3, r9]
	ldr	r3, [sp, #28]
	str	r1, [r2, r10, lsl #2]
	ldr	r1, [sp, #8]
	ldr	r2, [r3, r9]
	ldr	r3, [r4, #20]
	ldr	r2, [r2, r1, lsl #2]
	ldr	r3, [r3, r9]
	str	r2, [r3, r10, lsl #2]
	ldr	r3, [r7]
	cmp	r3, r8
	ble	.L11
.L6:
	mov	r10, r8
	mov	r3, #0
	add	r8, r8, #1
	mov	r0, r8
	add	r1, sp, #8
	str	r3, [sp, #8]
	bl	Hal_GetChnlGroup8723B
	cmp	r10, #13
	bne	.L4
	ldr	r2, [sp, #32]
	ldr	r3, [r4, #24]
	ldr	r1, [r2, r9]
	ldr	r3, [r3, r9]
	ldr	r1, [r1, #20]
	ldr	r2, [sp, #28]
	ldr	r2, [r2, r9]
	str	r1, [r3, #52]
	ldr	r3, [r4, #20]
	ldr	r1, [sp, #8]
	ldr	r3, [r3, r9]
	ldr	r2, [r2, r1, lsl #2]
	str	r2, [r3, #52]
	ldr	r3, [r7]
	cmp	r3, r8
	bgt	.L6
.L11:
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L9
	mov	r3, #0
	ldr	r10, [sp, #24]
	ldr	r9, [r4, #16]
	ldr	r8, [sp, #20]
	ldr	lr, [r4, #12]
	ldr	ip, [sp, #16]
	ldr	r0, [r4, #8]
	ldr	r1, [sp, #12]
	ldr	r2, [r4, #4]
	ldr	r10, [r10, r5, lsl #2]
	ldr	r9, [r9, r5, lsl #2]
	ldr	r8, [r8, r5, lsl #2]
	ldr	lr, [lr, r5, lsl #2]
	ldr	ip, [ip, r5, lsl #2]
	ldr	r0, [r0, r5, lsl #2]
	ldr	r1, [r1, r5, lsl #2]
	ldr	r2, [r2, r5, lsl #2]
	sub	r10, r10, #4
	sub	r9, r9, #4
	sub	r8, r8, #4
	sub	lr, lr, #4
	sub	ip, ip, #4
	sub	r0, r0, #4
	sub	r1, r1, #4
	sub	r2, r2, #4
.L8:
	ldr	fp, [r10, #4]!
	add	r3, r3, #1
	str	fp, [r9, #4]!
	ldr	fp, [r8, #4]!
	str	fp, [lr, #4]!
	ldr	fp, [ip, #4]!
	str	fp, [r0, #4]!
	ldr	fp, [r1, #4]!
	str	fp, [r2, #4]!
	ldr	fp, [r6]
	cmp	fp, r3
	bgt	.L8
.L9:
	ldr	r3, .L24+4
	add	r5, r5, #1
	ldr	r3, [r3]
	cmp	r3, r5
	bgt	.L2
.L3:
	ldr	r3, [sp]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L24+16
	ldr	r1, [sp, #4]
	ldr	r3, [r3]
	ldr	r2, [r1, r3, lsl #2]
	and	r2, r2, #7
	str	r2, [r4]
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #255
	beq	.L22
.L14:
	ldr	r3, .L24+20
	ldr	r1, .L24+24
	ldr	r0, [r3]
	ldr	r1, [r1]
	bl	RT_TRACE
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r3, #0
	mov	r2, r3
	str	r3, [r4]
	b	.L14
.L22:
	ldr	r3, .L24+28
	ldr	r2, [r3]
	and	r2, r2, #7
	str	r2, [r4]
	b	.L14
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	MAX_RF_PATH
	.word	CHANNEL_MAX_NUMBER
	.word	MAX_TX_COUNT
	.word	EEPROM_RF_BOARD_OPTION_8723B
	.word	_module_hci_hal_init_c_
	.word	_drv_notice_
	.word	EEPROM_DEFAULT_BOARD_OPTION
	.size	Hal_EfuseParseTxPowerInfo_8723B, .-Hal_EfuseParseTxPowerInfo_8723B
	.comm	_module_hci_hal_init_c_,4,4
	.comm	_drv_notice_,4,4
	.comm	_drv_info_,4,4
	.comm	MAX_TX_COUNT,4,4
	.comm	MAX_RF_PATH,4,4
	.comm	EEPROM_RF_BOARD_OPTION_8723B,4,4
	.comm	EEPROM_DEFAULT_BOARD_OPTION,4,4
	.comm	CHANNEL_MAX_NUMBER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
