	.file	"extr_phy_lcn.c_wlc_lcnphy_load_tx_gain_table.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wlc_lcnphy_load_tx_gain_table, @function
wlc_lcnphy_load_tx_gain_table:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	rbp, 16[rsp]
	call	CHSPEC_IS5G@PLT
	mov	rax, QWORD PTR [rbx]
	mov	eax, DWORD PTR [rax]
	and	eax, DWORD PTR BFL_FEM[rip]
	cmp	eax, 1
	mov	eax, DWORD PTR LCNPHY_TBL_ID_TXPWRCTL[rip]
	sbb	r12d, r12d
	xor	r14d, r14d
	mov	DWORD PTR 40[rsp], eax
	and	r12d, 1610612736
	movabs	rax, 4294967328
	mov	QWORD PTR 16[rsp], rax
	lea	rax, 12[rsp]
	add	r12d, 268435456
	mov	QWORD PTR 24[rsp], rax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 4[r13]
	mov	edx, DWORD PTR 0[r13]
	mov	rsi, rbp
	mov	rdi, rbx
	add	r13, 20
	or	edx, r12d
	sal	eax, 16
	or	eax, edx
	mov	edx, DWORD PTR -12[r13]
	sal	edx, 8
	or	eax, edx
	mov	DWORD PTR 12[rsp], eax
	mov	rax, QWORD PTR LCNPHY_TX_PWR_CTRL_GAIN_OFFSET[rip]
	add	rax, r14
	mov	QWORD PTR 32[rsp], rax
	call	wlc_lcnphy_write_table@PLT
	mov	eax, DWORD PTR -8[r13]
	mov	edx, DWORD PTR -4[r13]
	mov	rsi, rbp
	mov	rdi, rbx
	sal	edx, 20
	sal	eax, 28
	or	eax, edx
	mov	DWORD PTR 12[rsp], eax
	mov	rax, QWORD PTR LCNPHY_TX_PWR_CTRL_IQ_OFFSET[rip]
	add	rax, r14
	add	r14, 1
	mov	QWORD PTR 32[rsp], rax
	call	wlc_lcnphy_write_table@PLT
	cmp	r14, 128
	jne	.L3
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wlc_lcnphy_load_tx_gain_table, .-wlc_lcnphy_load_tx_gain_table
	.comm	LCNPHY_TX_PWR_CTRL_IQ_OFFSET,8,8
	.comm	LCNPHY_TX_PWR_CTRL_GAIN_OFFSET,8,8
	.comm	LCNPHY_TBL_ID_TXPWRCTL,4,4
	.comm	BFL_FEM,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_phy_lcn.c_wlc_lcnphy_load_tx_gain_table.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wlc_lcnphy_load_tx_gain_table, %function
wlc_lcnphy_load_tx_gain_table:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r0
	ldr	r3, .L10
	sub	sp, sp, #36
	ldr	r0, [r0, #4]
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	CHSPEC_IS5G
	ldr	r2, [r5]
	ldr	r3, .L10+4
	ldr	r2, [r2]
	mov	r1, #32
	ldr	r3, [r3]
	mov	r8, #0
	tst	r2, r3
	mov	r2, #1
	moveq	r7, #1879048192
	movne	r7, #268435456
	ldr	r3, .L10+8
	str	r1, [sp, #8]
	ldr	r1, [r3]
	ldr	r9, .L10+12
	add	r3, sp, #4
	ldr	r6, .L10+16
	str	r1, [sp, #24]
	str	r2, [sp, #12]
	str	r3, [sp, #16]
.L3:
	ldr	r3, [r4]
	ldr	r0, [r4, #4]
	ldr	r1, [r4, #8]
	ldr	r2, [r9]
	orr	r3, r7, r3
	orr	r3, r3, r0, lsl #16
	orr	r3, r3, r1, lsl #8
	add	r2, r2, r8
	add	r1, sp, #8
	mov	r0, r5
	str	r3, [sp, #4]
	str	r2, [sp, #20]
	bl	wlc_lcnphy_write_table
	ldr	r3, [r4, #16]
	ldr	r1, [r4, #12]
	ldr	r2, [r6]
	lsl	r3, r3, #20
	orr	r3, r3, r1, lsl #28
	add	r2, r2, r8
	mov	r0, r5
	add	r1, sp, #8
	add	r8, r8, #1
	str	r3, [sp, #4]
	str	r2, [sp, #20]
	bl	wlc_lcnphy_write_table
	cmp	r8, #128
	add	r4, r4, #20
	bne	.L3
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	BFL_FEM
	.word	LCNPHY_TBL_ID_TXPWRCTL
	.word	LCNPHY_TX_PWR_CTRL_GAIN_OFFSET
	.word	LCNPHY_TX_PWR_CTRL_IQ_OFFSET
	.size	wlc_lcnphy_load_tx_gain_table, .-wlc_lcnphy_load_tx_gain_table
	.comm	LCNPHY_TX_PWR_CTRL_IQ_OFFSET,4,4
	.comm	LCNPHY_TX_PWR_CTRL_GAIN_OFFSET,4,4
	.comm	LCNPHY_TBL_ID_TXPWRCTL,4,4
	.comm	BFL_FEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
