	.file	"extr_phy_lcn.c_wlc_lcnphy_agc_temp_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wlc_lcnphy_agc_temp_init, @function
wlc_lcnphy_agc_temp_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 1247
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	lea	r12, 32[rsp]
	call	read_phy_reg@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	ecx, eax
	movzx	edx, al
	or	ecx, -256
	test	al, -128
	cmovne	edx, ecx
	test	ah, -128
	mov	DWORD PTR [rbx], edx
	movzx	edx, ah
	movabs	rax, 73014444034
	lea	ecx, -256[rdx]
	cmovne	edx, ecx
	mov	DWORD PTR 4[rbx], edx
	mov	QWORD PTR 8[rsp], rax
	movabs	rax, 137438953531
	mov	QWORD PTR [rsp], r12
	mov	QWORD PTR 16[rsp], rax
	call	wlc_lcnphy_read_table@PLT
	mov	eax, DWORD PTR 32[rsp]
	cmp	eax, 63
	jle	.L6
	add	eax, -128
	mov	DWORD PTR 32[rsp], eax
.L6:
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR 36[rsp]
	cmp	eax, 63
	jle	.L7
	add	eax, -128
	mov	DWORD PTR 36[rsp], eax
.L7:
	mov	DWORD PTR 12[rbx], eax
	mov	esi, 1076
	mov	rdi, rbp
	call	read_phy_reg@PLT
	mov	esi, 1060
	mov	rdi, rbp
	mov	ecx, eax
	movzx	edx, al
	or	ecx, -256
	test	al, -128
	cmovne	edx, ecx
	movsx	rdx, edx
	mov	QWORD PTR 32[rbx], rdx
	call	read_phy_reg@PLT
	mov	esi, 1061
	mov	rdi, rbp
	movzx	eax, ah
	mov	DWORD PTR 16[rbx], eax
	call	read_phy_reg@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	QWORD PTR [rsp], r12
	movzx	eax, al
	mov	DWORD PTR 8[rsp], 2
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR LCNPHY_TBL_ID_GAIN_IDX[rip]
	mov	DWORD PTR 12[rsp], eax
	movabs	rax, 137438953500
	mov	QWORD PTR 16[rsp], rax
	call	wlc_lcnphy_read_table@PLT
	mov	rax, QWORD PTR 32[rsp]
	mov	QWORD PTR 24[rbx], rax
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wlc_lcnphy_agc_temp_init, .-wlc_lcnphy_agc_temp_init
	.comm	LCNPHY_TBL_ID_GAIN_IDX,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_agc_temp_init.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_agc_temp_init, %function
wlc_lcnphy_agc_temp_init:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L18
	sub	sp, sp, #32
	ldr	r1, .L18+4
	ldr	r4, [r0]
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	read_phy_reg
	and	r3, r0, #255
	tst	r0, #128
	asr	r0, r0, #8
	subne	r3, r3, #256
	tst	r0, #128
	and	r0, r0, #255
	subne	r0, r0, #256
	str	r0, [r4, #4]
	mov	r1, #2
	mov	r0, #17
	str	r3, [r4]
	mov	r2, #59
	mov	r3, #32
	str	r1, [sp, #4]
	str	r0, [sp, #8]
	mov	r1, sp
	add	r6, sp, #20
	mov	r0, r5
	str	r2, [sp, #12]
	str	r3, [sp, #16]
	str	r6, [sp]
	bl	wlc_lcnphy_read_table
	ldr	r2, [sp, #20]
	ldr	r3, [sp, #24]
	cmp	r2, #63
	subgt	r2, r2, #128
	strgt	r2, [sp, #20]
	cmp	r3, #63
	subgt	r3, r3, #128
	str	r2, [r4, #8]
	str	r3, [r4, #12]
	ldr	r1, .L18+8
	mov	r0, r5
	strgt	r3, [sp, #24]
	bl	read_phy_reg
	tst	r0, #128
	and	r0, r0, #255
	subne	r0, r0, #256
	ldr	r1, .L18+12
	str	r0, [r4, #32]
	mov	r0, r5
	bl	read_phy_reg
	asr	r0, r0, #8
	and	r0, r0, #255
	ldr	r1, .L18+16
	str	r0, [r4, #16]
	mov	r0, r5
	bl	read_phy_reg
	mov	r2, #28
	mov	r3, #32
	mov	ip, #2
	and	r0, r0, #255
	str	r0, [r4, #20]
	ldr	r0, .L18+20
	mov	r1, sp
	ldr	lr, [r0]
	mov	r0, r5
	str	r2, [sp, #12]
	str	r3, [sp, #16]
	stm	sp, {r6, ip, lr}
	bl	wlc_lcnphy_read_table
	ldr	r3, [sp, #24]
	ldr	r2, [sp, #20]
	str	r3, [r4, #28]
	ldr	r3, .L18
	str	r2, [r4, #24]
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	1247
	.word	1076
	.word	1060
	.word	1061
	.word	LCNPHY_TBL_ID_GAIN_IDX
	.size	wlc_lcnphy_agc_temp_init, .-wlc_lcnphy_agc_temp_init
	.comm	LCNPHY_TBL_ID_GAIN_IDX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
