	.file	"extr_phy_n.c_wlc_phy_workarounds_nphy_gainctrl_2057_rev6.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wlc_phy_workarounds_nphy_gainctrl_2057_rev6, @function
wlc_phy_workarounds_nphy_gainctrl_2057_rev6:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	ecx, 8192
	mov	edx, 8192
	mov	esi, 28
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 328
	.cfi_def_cfa_offset 384
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 312[rsp], rax
	xor	eax, eax
	movabs	rax, 60129542153
	mov	QWORD PTR 64[rsp], rax
	movabs	rax, 103079215123
	mov	QWORD PTR 72[rsp], rax
	movabs	rax, -21474836489
	mov	QWORD PTR 224[rsp], rax
	mov	eax, 4294967293
	mov	QWORD PTR 232[rsp], rax
	movabs	rax, 12884901891
	mov	QWORD PTR 240[rsp], rax
	mov	QWORD PTR 248[rsp], rax
	mov	QWORD PTR 256[rsp], rax
	movabs	rax, 4294967296
	mov	QWORD PTR 272[rsp], rax
	movabs	rax, 12884901890
	mov	QWORD PTR 280[rsp], rax
	movabs	rax, 17179869188
	mov	QWORD PTR 288[rsp], rax
	mov	QWORD PTR 296[rsp], rax
	mov	QWORD PTR 304[rsp], rax
	movabs	rax, 108091441963599
	mov	QWORD PTR 56[rsp], rax
	call	mod_phy_reg@PLT
	mov	esi, 50
	mov	rdi, rbp
	mov	ecx, 8192
	mov	edx, 8192
	call	mod_phy_reg@PLT
	mov	esi, 9
	mov	rdi, rbp
	call	read_phy_reg@PLT
	test	DWORD PTR NPHY_BandControl_currentBand[rip], eax
	jne	.L2
	mov	esi, DWORD PTR NPHY_TBL_ID_GAIN1[rip]
	lea	rbx, 64[rsp]
	mov	r8d, 8
	mov	rdi, rbp
	mov	r9, rbx
	mov	ecx, 8
	mov	edx, 4
	call	wlc_phy_table_write_nphy@PLT
	mov	r9, rbx
	mov	ecx, 8
	mov	rdi, rbp
	mov	esi, DWORD PTR NPHY_TBL_ID_GAIN2[rip]
	mov	r8d, 8
	mov	edx, 4
	call	wlc_phy_table_write_nphy@PLT
	mov	rdi, rbp
	mov	ecx, 64
	mov	edx, 255
	mov	esi, 643
	call	mod_phy_reg@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	CHSPEC_IS40@PLT
	test	rax, rax
	jne	.L30
.L3:
	mov	rdi, rbp
	mov	ecx, 70
	mov	edx, 255
	mov	esi, 649
	call	mod_phy_reg@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	CHSPEC_IS20@PLT
	test	rax, rax
	jne	.L31
.L1:
	mov	rax, QWORD PTR 312[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	add	rsp, 328
	.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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	CHSPEC_CHANNEL@PLT
	mov	edi, eax
	call	CHAN5G_FREQ@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r12d, eax
	call	CHSPEC_IS20@PLT
	test	rax, rax
	je	.L5
	cmp	r12d, 5080
	jle	.L19
	cmp	r12d, 5825
	je	.L19
	lea	eax, -5500[r12]
	cmp	eax, 200
	ja	.L10
	lea	rax, 144[rsp]
	mov	DWORD PTR 4[rsp], 1
	mov	r12d, 128
	mov	r14d, 3
	mov	QWORD PTR 32[rsp], rax
	lea	rax, 128[rsp]
	mov	r13d, 25
	mov	r10d, 69
	mov	DWORD PTR 44[rsp], 255
	mov	r15d, 20
	lea	rbx, 160[rsp]
	mov	DWORD PTR 40[rsp], 0
	mov	DWORD PTR 20[rsp], 130
	mov	QWORD PTR 24[rsp], rax
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, 158
	mov	esi, 32
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], r10d
	call	write_phy_reg@PLT
	mov	edx, 158
	mov	esi, 679
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, DWORD PTR 4[rbp]
	lea	r9, 56[rsp]
	mov	rdi, rbp
	mov	esi, DWORD PTR NPHY_TBL_ID_RFSEQ[rip]
	mov	r8d, 16
	mov	ecx, 262
	call	wlc_phy_table_write_nphy@PLT
	mov	edx, 158
	mov	esi, 34
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, 158
	mov	esi, 681
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, r15d
	mov	esi, 54
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, r15d
	mov	esi, 684
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, 138
	mov	esi, 55
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, 138
	mov	esi, 685
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, 8
	mov	esi, 56
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	edx, 8
	mov	esi, 686
	mov	rdi, rbp
	call	write_phy_reg@PLT
	mov	esi, DWORD PTR NPHY_TBL_ID_GAIN1[rip]
	mov	r8d, 8
	mov	rdi, rbp
	lea	r9, 224[rsp]
	mov	ecx, 32
	mov	edx, 10
	mov	QWORD PTR 8[rsp], r9
	call	wlc_phy_table_write_nphy@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR NPHY_TBL_ID_GAIN2[rip]
	mov	r8d, 8
	mov	ecx, 32
	mov	edx, 10
	mov	rdi, rbp
	call	wlc_phy_table_write_nphy@PLT
	mov	esi, DWORD PTR NPHY_TBL_ID_GAINBITS1[rip]
	mov	r8d, 8
	mov	rdi, rbp
	lea	r9, 272[rsp]
	mov	ecx, 32
	mov	edx, 10
	mov	QWORD PTR 8[rsp], r9
	call	wlc_phy_table_write_nphy@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR NPHY_TBL_ID_GAINBITS2[rip]
	mov	r8d, 8
	mov	ecx, 32
	mov	edx, 10
	mov	rdi, rbp
	call	wlc_phy_table_write_nphy@PLT
	mov	r10d, DWORD PTR 16[rsp]
	mov	edx, 255
	mov	rdi, rbp
	mov	esi, 643
	mov	ecx, r10d
	call	mod_phy_reg@PLT
	cmp	DWORD PTR 4[rsp], 1
	je	.L33
.L11:
	mov	ecx, r13d
	mov	edx, 63
	mov	esi, 768
	mov	rdi, rbp
	call	mod_phy_reg@PLT
	mov	ecx, r13d
	mov	edx, 63
	mov	rdi, rbp
	mov	esi, 769
	call	mod_phy_reg@PLT
	mov	ecx, r14d
	mov	edx, 63
	mov	rdi, rbp
	mov	esi, 740
	call	mod_phy_reg@PLT
	mov	rdi, rbp
	mov	ecx, r12d
	mov	edx, 4032
	mov	esi, 740
	call	mod_phy_reg@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	CHSPEC_IS20@PLT
	test	rax, rax
	je	.L12
	mov	r9, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR NPHY_TBL_ID_GAIN1[rip]
	mov	rdi, rbp
	mov	r8d, 8
	mov	ecx, 8
	mov	edx, 4
	call	wlc_phy_table_write_nphy@PLT
	mov	r9, QWORD PTR 32[rsp]
	mov	rdi, rbp
	mov	esi, DWORD PTR NPHY_TBL_ID_GAIN2[rip]
	mov	r8d, 8
	mov	ecx, 8
	mov	edx, 4
	call	wlc_phy_table_write_nphy@PLT
	mov	r9, rbx
	mov	rdi, rbp
	mov	ecx, 16
	mov	esi, DWORD PTR NPHY_TBL_ID_GAIN1[rip]
	mov	r8d, 8
	mov	edx, 4
	call	wlc_phy_table_write_nphy@PLT
	mov	r9, rbx
	mov	ecx, 16
	mov	rdi, rbp
	mov	esi, DWORD PTR NPHY_TBL_ID_GAIN2[rip]
	mov	r8d, 8
	mov	edx, 4
	call	wlc_phy_table_write_nphy@PLT
	mov	ebx, DWORD PTR 20[rsp]
	mov	rdi, rbp
	mov	esi, 36
	mov	edx, ebx
	call	write_phy_reg@PLT
	mov	edx, ebx
	mov	esi, 683
	mov	rdi, rbp
	call	write_phy_reg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	eax, -4920[r12]
	cmp	eax, 400
	jbe	.L17
	lea	eax, -5321[r12]
	mov	DWORD PTR 4[rsp], 0
	cmp	eax, 230
	sbb	r12d, r12d
	and	r12d, -64
	add	r12d, 192
	cmp	eax, 230
	sbb	r14d, r14d
	add	r14d, 5
.L28:
	mov	DWORD PTR 44[rsp], 0
	mov	r13d, 20
	xor	ebx, ebx
	mov	r10d, 58
	mov	DWORD PTR 40[rsp], 58
	mov	r15d, 36
	mov	DWORD PTR 20[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	mov	QWORD PTR 24[rsp], 0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, rbp
	mov	ecx, 62
	mov	edx, 255
	mov	esi, 640
	call	mod_phy_reg@PLT
	mov	ecx, 62
	mov	edx, 255
	mov	rdi, rbp
	mov	esi, 643
	call	mod_phy_reg@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, rbp
	mov	ecx, 13
	mov	edx, 63
	mov	esi, 768
	call	mod_phy_reg@PLT
	mov	ecx, 13
	mov	edx, 63
	mov	rdi, rbp
	mov	esi, 769
	call	mod_phy_reg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	DWORD PTR 4[rsp], 0
	mov	r12d, 320
	mov	r14d, 4
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L19:
	cmp	r12d, 4920
	jg	.L34
	lea	rax, 96[rsp]
	mov	DWORD PTR 4[rsp], 0
	mov	r12d, 320
	mov	r14d, 5
	mov	QWORD PTR 32[rsp], rax
	lea	rax, 80[rsp]
	mov	r13d, 25
	mov	r10d, 62
	mov	QWORD PTR 24[rsp], rax
	mov	r15d, 36
	lea	rbx, 112[rsp]
	mov	DWORD PTR 44[rsp], 0
	mov	DWORD PTR 40[rsp], 0
	mov	DWORD PTR 20[rsp], 130
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L12:
	mov	ecx, DWORD PTR 40[rsp]
	mov	edx, 255
	mov	esi, 640
	mov	rdi, rbp
	call	mod_phy_reg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	r15d, DWORD PTR 44[rsp]
	mov	rdi, rbp
	mov	esi, 43
	mov	edx, r15d
	call	write_phy_reg@PLT
	mov	edx, r15d
	mov	esi, 65
	mov	rdi, rbp
	call	write_phy_reg@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rax, 192[rsp]
	mov	r10d, 65
	lea	rbx, 208[rsp]
	mov	QWORD PTR 32[rsp], rax
	lea	rax, 176[rsp]
	mov	QWORD PTR 24[rsp], rax
.L9:
	lea	eax, -4921[r12]
	cmp	eax, 399
	ja	.L35
	mov	DWORD PTR 4[rsp], 0
	mov	r12d, 320
	mov	r14d, 3
.L27:
	mov	DWORD PTR 44[rsp], 0
	mov	r13d, 25
	mov	r15d, 36
	mov	DWORD PTR 40[rsp], 0
	mov	DWORD PTR 20[rsp], 130
	jmp	.L8
.L35:
	lea	eax, -5321[r12]
	mov	DWORD PTR 4[rsp], 0
	cmp	eax, 380
	sbb	r12d, r12d
	and	r12d, 128
	cmp	eax, 380
	sbb	r14d, r14d
	add	r14d, 4
	jmp	.L27
.L32:
	call	__stack_chk_fail@PLT
.L34:
	lea	rax, 96[rsp]
	mov	r10d, 62
	lea	rbx, 112[rsp]
	mov	QWORD PTR 32[rsp], rax
	lea	rax, 80[rsp]
	mov	QWORD PTR 24[rsp], rax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	wlc_phy_workarounds_nphy_gainctrl_2057_rev6, .-wlc_phy_workarounds_nphy_gainctrl_2057_rev6
	.comm	NPHY_TBL_ID_RFSEQ,4,4
	.comm	NPHY_TBL_ID_GAINBITS2,4,4
	.comm	NPHY_TBL_ID_GAINBITS1,4,4
	.comm	NPHY_TBL_ID_GAIN2,4,4
	.comm	NPHY_TBL_ID_GAIN1,4,4
	.comm	NPHY_BandControl_currentBand,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_n.c_wlc_phy_workarounds_nphy_gainctrl_2057_rev6.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wlc_phy_workarounds_nphy_gainctrl_2057_rev6, %function
wlc_phy_workarounds_nphy_gainctrl_2057_rev6:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #308
	add	r8, sp, #220
	mov	r5, r8
	add	r7, sp, #260
	mov	ip, r7
	ldr	r6, .L36
	add	r9, sp, #60
	add	lr, r6, #16
	mov	r4, r0
	ldm	r6, {r0, r1, r2, r3}
	stm	r9, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	r5!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	r5!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	ldr	r3, .L36+4
	add	lr, r6, #56
	ldr	r3, [r3]
	str	r3, [sp, #300]
	mov	r3,#0
	stm	r5, {r0, r1}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	mov	r3, #8192
	stm	ip, {r0, r1}
	ldr	r1, [r6, #100]
	ldr	r0, [r6, #96]
	add	r6, sp, #52
	mov	r2, r3
	stm	r6, {r0, r1}
	mov	r1, #28
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #8192
	mov	r1, #50
	mov	r2, r3
	mov	r0, r4
	bl	mod_phy_reg
	mov	r0, r4
	mov	r1, #9
	bl	read_phy_reg
	ldr	r3, .L36+8
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L2
	mov	r5, #8
	stm	sp, {r5, r9}
	ldr	r2, .L36+12
	mov	r3, r5
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, #4
	bl	wlc_phy_table_write_nphy
	ldr	r2, .L36+16
	str	r5, [sp]
	str	r9, [sp, #4]
	ldr	r1, [r2]
	mov	r3, r5
	mov	r2, #4
	mov	r0, r4
	bl	wlc_phy_table_write_nphy
	mov	r3, #64
	mov	r2, #255
	ldr	r1, .L36+20
	mov	r0, r4
	bl	mod_phy_reg
	ldr	r0, [r4]
	bl	CHSPEC_IS40
	cmp	r0, #0
	bne	.L29
.L3:
	mov	r3, #70
	mov	r2, #255
	ldr	r1, .L36+24
	mov	r0, r4
	bl	mod_phy_reg
	ldr	r0, [r4]
	bl	CHSPEC_IS20
	cmp	r0, #0
	bne	.L30
.L1:
	ldr	r3, .L36+4
	ldr	r2, [r3]
	ldr	r3, [sp, #300]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	add	sp, sp, #308
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r0, [r4]
	bl	CHSPEC_CHANNEL
	bl	CHAN5G_FREQ
	mov	r9, r0
	ldr	r0, [r4]
	bl	CHSPEC_IS20
	subs	r5, r0, #0
	beq	.L5
	ldr	r3, .L36+28
	ldr	r2, .L36+32
	cmp	r9, r2
	cmpne	r9, r3
	movle	r3, #1
	movgt	r3, #0
	ble	.L32
	sub	r2, r9, #5440
	sub	r2, r2, #60
	cmp	r2, #200
	bhi	.L9
	str	r3, [sp, #28]
	mov	r3, #128
	str	r3, [sp, #16]
	mov	r3, #1
	str	r3, [sp, #20]
	mov	r3, #3
	str	r3, [sp, #12]
	mov	r3, #255
	str	r3, [sp, #44]
	mov	r3, #69
	mov	r10, #25
	mov	fp, #20
	mov	r5, #130
	str	r3, [sp, #24]
	add	r3, sp, #156
	str	r3, [sp, #40]
	add	r3, sp, #140
	str	r3, [sp, #36]
	add	r3, sp, #124
	str	r3, [sp, #32]
.L7:
	mov	r2, #158
	mov	r1, #32
	mov	r0, r4
	bl	write_phy_reg
	mov	r2, #158
	ldr	r1, .L36+36
	mov	r0, r4
	bl	write_phy_reg
	mov	r2, #16
	mov	r9, #8
	stm	sp, {r2, r6}
	ldr	r3, .L36+40
	ldr	r2, [r4, #4]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L36+44
	bl	wlc_phy_table_write_nphy
	mov	r2, #158
	mov	r1, #34
	mov	r0, r4
	bl	write_phy_reg
	mov	r2, #158
	ldr	r1, .L36+48
	mov	r0, r4
	bl	write_phy_reg
	mov	r2, fp
	mov	r1, #54
	mov	r0, r4
	bl	write_phy_reg
	mov	r2, fp
	mov	r1, #684
	mov	r0, r4
	bl	write_phy_reg
	mov	r2, #138
	mov	r1, #55
	mov	r0, r4
	bl	write_phy_reg
	mov	r2, #138
	ldr	r1, .L36+52
	mov	r0, r4
	bl	write_phy_reg
	mov	r2, r9
	mov	r1, #56
	mov	r0, r4
	bl	write_phy_reg
	ldr	fp, .L36+12
	mov	r2, r9
	ldr	r1, .L36+56
	mov	r0, r4
	bl	write_phy_reg
	str	r8, [sp, #4]
	str	r9, [sp]
	mov	r3, #32
	mov	r2, #10
	ldr	r1, [fp]
	mov	r0, r4
	ldr	r6, .L36+16
	bl	wlc_phy_table_write_nphy
	str	r9, [sp]
	str	r8, [sp, #4]
	mov	r3, #32
	mov	r2, #10
	ldr	r1, [r6]
	mov	r0, r4
	bl	wlc_phy_table_write_nphy
	ldr	r3, .L36+60
	str	r9, [sp]
	str	r7, [sp, #4]
	ldr	r1, [r3]
	mov	r2, #10
	mov	r3, #32
	mov	r0, r4
	bl	wlc_phy_table_write_nphy
	ldr	r3, .L36+64
	str	r9, [sp]
	str	r7, [sp, #4]
	ldr	r1, [r3]
	mov	r2, #10
	mov	r3, #32
	mov	r0, r4
	bl	wlc_phy_table_write_nphy
	ldr	r3, [sp, #24]
	mov	r2, #255
	mov	r0, r4
	ldr	r1, .L36+20
	bl	mod_phy_reg
	ldr	r3, [sp, #20]
	cmp	r3, #1
	beq	.L33
.L10:
	mov	r3, r10
	mov	r2, #63
	mov	r1, #768
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, r10
	mov	r2, #63
	ldr	r1, .L36+68
	mov	r0, r4
	bl	mod_phy_reg
	mov	r2, #63
	mov	r1, #740
	ldr	r3, [sp, #12]
	mov	r0, r4
	bl	mod_phy_reg
	mov	r2, #4032
	mov	r1, #740
	ldr	r3, [sp, #16]
	mov	r0, r4
	bl	mod_phy_reg
	ldr	r0, [r4]
	bl	CHSPEC_IS20
	cmp	r0, #0
	beq	.L11
	mov	r7, #8
	ldr	r3, [sp, #32]
	str	r7, [sp]
	str	r3, [sp, #4]
	ldr	r1, [fp]
	mov	r3, r7
	mov	r2, #4
	mov	r0, r4
	bl	wlc_phy_table_write_nphy
	ldr	r3, [sp, #36]
	str	r7, [sp]
	str	r3, [sp, #4]
	ldr	r1, [r6]
	mov	r3, r7
	mov	r2, #4
	mov	r0, r4
	bl	wlc_phy_table_write_nphy
	ldr	r8, [sp, #40]
	str	r7, [sp]
	str	r8, [sp, #4]
	ldr	r1, [fp]
	mov	r3, #16
	mov	r2, #4
	mov	r0, r4
	bl	wlc_phy_table_write_nphy
	str	r7, [sp]
	str	r8, [sp, #4]
	mov	r3, #16
	ldr	r1, [r6]
	mov	r2, #4
	mov	r0, r4
	bl	wlc_phy_table_write_nphy
	mov	r2, r5
	mov	r1, #36
	mov	r0, r4
	bl	write_phy_reg
	mov	r2, r5
	mov	r0, r4
	ldr	r1, .L36+72
	bl	write_phy_reg
	b	.L1
.L5:
	sub	r3, r9, #4864
	sub	r3, r3, #56
	cmp	r3, #400
	bls	.L16
	mov	r3, #58
	sub	r9, r9, #5312
	sub	r9, r9, #9
	cmp	r9, #229
	str	r3, [sp, #24]
	str	r5, [sp, #20]
	str	r3, [sp, #28]
	str	r5, [sp, #44]
	bls	.L17
	mov	r3, #192
	str	r3, [sp, #16]
	mov	r3, #5
.L25:
	mov	r10, #20
	mov	fp, #36
	str	r3, [sp, #12]
	str	r5, [sp, #40]
	str	r5, [sp, #36]
	str	r5, [sp, #32]
	b	.L7
.L30:
	mov	r3, #13
	mov	r2, #63
	mov	r1, #768
	mov	r0, r4
	bl	mod_phy_reg
	mov	r0, r4
	mov	r3, #13
	mov	r2, #63
	ldr	r1, .L36+68
	bl	mod_phy_reg
	b	.L1
.L29:
	mov	r3, #62
	mov	r2, #255
	mov	r1, #640
	mov	r0, r4
	bl	mod_phy_reg
	mov	r3, #62
	mov	r2, #255
	mov	r0, r4
	ldr	r1, .L36+20
	bl	mod_phy_reg
	b	.L3
.L32:
	ldr	r3, .L36+76
	cmp	r9, r3
	bgt	.L34
	mov	r3, #0
	str	r3, [sp, #20]
	str	r3, [sp, #44]
	str	r3, [sp, #28]
	mov	r3, #5
	str	r3, [sp, #12]
	mov	r3, #62
	mov	r2, #320
	str	r3, [sp, #24]
	add	r3, sp, #108
	str	r3, [sp, #40]
	add	r3, sp, #92
	str	r3, [sp, #36]
	add	r3, sp, #76
	mov	r10, #25
	mov	fp, #36
	mov	r5, #130
	str	r2, [sp, #16]
	str	r3, [sp, #32]
	b	.L7
.L16:
	mov	r3, #58
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	mov	r3, #320
	str	r5, [sp, #20]
	str	r5, [sp, #44]
.L26:
	str	r3, [sp, #16]
	mov	r3, #4
	b	.L25
.L11:
	mov	r0, r4
	mov	r2, #255
	mov	r1, #640
	ldr	r3, [sp, #28]
	bl	mod_phy_reg
	b	.L1
.L33:
	ldr	r7, [sp, #44]
	mov	r1, #43
	mov	r2, r7
	mov	r0, r4
	bl	write_phy_reg
	mov	r2, r7
	mov	r1, #65
	mov	r0, r4
	bl	write_phy_reg
	b	.L10
.L9:
	mov	r3, #65
	str	r3, [sp, #24]
	add	r3, sp, #204
	str	r3, [sp, #40]
	add	r3, sp, #188
	str	r3, [sp, #36]
	add	r3, sp, #172
	str	r3, [sp, #32]
.L8:
	sub	r3, r9, #4864
	sub	r3, r3, #57
	cmp	r3, #400
	movcc	r3, #0
	movcc	r2, #320
	strcc	r3, [sp, #20]
	bcs	.L35
.L27:
	str	r3, [sp, #44]
	str	r3, [sp, #28]
	mov	r3, #3
	mov	r10, #25
	mov	fp, #36
	mov	r5, #130
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	b	.L7
.L17:
	mov	r3, #128
	b	.L26
.L35:
	sub	r9, r9, #5312
	sub	r9, r9, #9
	cmp	r9, #380
	mov	r3, #0
	bcc	.L15
	mov	r2, #4
	mov	r10, #25
	mov	fp, #36
	mov	r5, #130
	str	r3, [sp, #16]
	str	r2, [sp, #12]
	str	r3, [sp, #20]
	str	r3, [sp, #44]
	str	r3, [sp, #28]
	b	.L7
.L31:
	bl	__stack_chk_fail
.L34:
	mov	r3, #62
	str	r3, [sp, #24]
	add	r3, sp, #108
	str	r3, [sp, #40]
	add	r3, sp, #92
	str	r3, [sp, #36]
	add	r3, sp, #76
	str	r3, [sp, #32]
	b	.L8
.L15:
	mov	r2, #128
	str	r3, [sp, #20]
	b	.L27
.L37:
	.align	2
.L36:
	.word	.LANCHOR0
	.word	.LC10
	.word	NPHY_BandControl_currentBand
	.word	NPHY_TBL_ID_GAIN1
	.word	NPHY_TBL_ID_GAIN2
	.word	643
	.word	649
	.word	5080
	.word	5825
	.word	679
	.word	NPHY_TBL_ID_RFSEQ
	.word	262
	.word	681
	.word	685
	.word	686
	.word	NPHY_TBL_ID_GAINBITS1
	.word	NPHY_TBL_ID_GAINBITS2
	.word	769
	.word	683
	.word	4920
	.size	wlc_phy_workarounds_nphy_gainctrl_2057_rev6, .-wlc_phy_workarounds_nphy_gainctrl_2057_rev6
	.comm	NPHY_TBL_ID_RFSEQ,4,4
	.comm	NPHY_TBL_ID_GAINBITS2,4,4
	.comm	NPHY_TBL_ID_GAINBITS1,4,4
	.comm	NPHY_TBL_ID_GAIN2,4,4
	.comm	NPHY_TBL_ID_GAIN1,4,4
	.comm	NPHY_BandControl_currentBand,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	9
	.word	14
	.word	19
	.word	24
.LC1:
	.word	-9
	.word	-6
	.word	-3
	.word	0
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
.LC2:
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	4
	.word	4
	.word	4
	.word	4
	.word	4
.LC3:
	.word	25167
	.word	25167
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
