	.file	"extr_phy.c__rtl88e_phy_lc_calibrate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
	.text
	.p2align 4
	.type	_rtl88e_phy_lc_calibrate, @function
_rtl88e_phy_lc_calibrate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	rtl_priv@PLT
	mov	esi, 3331
	mov	rdi, rax
	mov	r12, rax
	call	rtl_read_byte@PLT
	test	al, 112
	je	.L2
	mov	edx, eax
	mov	esi, 3331
	mov	rdi, r12
	mov	r13d, eax
	and	edx, 143
	call	rtl_write_byte@PLT
	mov	ecx, DWORD PTR MASK12BITS[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, DWORD PTR RF90_PATH_A[rip]
	call	rtl_get_rfreg@PLT
	mov	ebx, eax
	test	r14d, r14d
	jne	.L9
	mov	r8d, eax
	mov	ecx, DWORD PTR MASK12BITS[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, DWORD PTR RF90_PATH_A[rip]
	and	r8d, 589823
	or	r8d, 65536
	call	rtl_set_rfreg@PLT
	mov	ecx, DWORD PTR MASK12BITS[rip]
	mov	esi, DWORD PTR RF90_PATH_A[rip]
	mov	rdi, rbp
	mov	edx, 24
	call	rtl_get_rfreg@PLT
	mov	ecx, DWORD PTR MASK12BITS[rip]
	mov	edx, 24
	mov	rdi, rbp
	mov	esi, DWORD PTR RF90_PATH_A[rip]
	or	ah, -128
	mov	r8d, eax
	call	rtl_set_rfreg@PLT
	mov	edi, 100
	call	mdelay@PLT
	mov	edx, r13d
	mov	rdi, r12
	mov	esi, 3331
	call	rtl_write_byte@PLT
	mov	ecx, DWORD PTR MASK12BITS[rip]
	mov	r8d, ebx
	xor	edx, edx
	mov	esi, DWORD PTR RF90_PATH_A[rip]
	mov	rdi, rbp
	call	rtl_set_rfreg@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR REG_TXPAUSE[rip]
	mov	edx, 255
	mov	rdi, r12
	call	rtl_write_byte@PLT
	mov	ecx, DWORD PTR MASK12BITS[rip]
	mov	edx, 24
	mov	rdi, rbp
	mov	esi, DWORD PTR RF90_PATH_A[rip]
	call	rtl_get_rfreg@PLT
	mov	esi, DWORD PTR RF90_PATH_A[rip]
	mov	edx, 24
	mov	rdi, rbp
	mov	ecx, DWORD PTR MASK12BITS[rip]
	or	ah, -128
	mov	r8d, eax
	call	rtl_set_rfreg@PLT
	mov	edi, 100
	call	mdelay@PLT
	mov	esi, DWORD PTR REG_TXPAUSE[rip]
	xor	edx, edx
	mov	rdi, r12
	call	rtl_write_byte@PLT
.L5:
	mov	edx, DWORD PTR DBG_LOUD[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	lea	rcx, .LC0[rip]
	mov	esi, DWORD PTR COMP_INIT[rip]
	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
	jmp	RT_TRACE@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	ecx, DWORD PTR MASK12BITS[rip]
	mov	esi, DWORD PTR RF90_PATH_B[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	rtl_get_rfreg@PLT
	mov	r8d, ebx
	mov	ecx, DWORD PTR MASK12BITS[rip]
	xor	edx, edx
	mov	esi, DWORD PTR RF90_PATH_A[rip]
	and	r8d, 589823
	mov	r14d, eax
	mov	rdi, rbp
	or	r8d, 65536
	call	rtl_set_rfreg@PLT
	mov	r8d, r14d
	mov	ecx, DWORD PTR MASK12BITS[rip]
	xor	edx, edx
	mov	esi, DWORD PTR RF90_PATH_B[rip]
	and	r8d, 589823
	mov	rdi, rbp
	or	r8d, 65536
	call	rtl_set_rfreg@PLT
	mov	ecx, DWORD PTR MASK12BITS[rip]
	mov	esi, DWORD PTR RF90_PATH_A[rip]
	mov	rdi, rbp
	mov	edx, 24
	call	rtl_get_rfreg@PLT
	mov	ecx, DWORD PTR MASK12BITS[rip]
	mov	edx, 24
	mov	rdi, rbp
	mov	esi, DWORD PTR RF90_PATH_A[rip]
	or	ah, -128
	mov	r8d, eax
	call	rtl_set_rfreg@PLT
	mov	edi, 100
	call	mdelay@PLT
	mov	edx, r13d
	mov	rdi, r12
	mov	esi, 3331
	call	rtl_write_byte@PLT
	mov	ecx, DWORD PTR MASK12BITS[rip]
	mov	r8d, ebx
	xor	edx, edx
	mov	esi, DWORD PTR RF90_PATH_A[rip]
	mov	rdi, rbp
	call	rtl_set_rfreg@PLT
	mov	ecx, DWORD PTR MASK12BITS[rip]
	mov	r8d, r14d
	xor	edx, edx
	mov	esi, DWORD PTR RF90_PATH_B[rip]
	mov	rdi, rbp
	call	rtl_set_rfreg@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	_rtl88e_phy_lc_calibrate, .-_rtl88e_phy_lc_calibrate
	.comm	RF90_PATH_B,4,4
	.comm	RF90_PATH_A,4,4
	.comm	REG_TXPAUSE,4,4
	.comm	MASK12BITS,4,4
	.comm	DBG_LOUD,4,4
	.comm	COMP_INIT,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.c__rtl88e_phy_lc_calibrate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl88e_phy_lc_calibrate, %function
_rtl88e_phy_lc_calibrate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r10, r1
	mov	r4, r0
	bl	rtl_priv
	ldr	r1, .L10
	mov	r5, r0
	bl	rtl_read_byte
	ands	r7, r0, #112
	beq	.L2
	ldr	r7, .L10+4
	ldr	r8, .L10+8
	and	r2, r0, #143
	ldr	r1, .L10
	mov	r6, r0
	mov	r0, r5
	bl	rtl_write_byte
	mov	r2, #0
	mov	r0, r4
	ldr	r3, [r7]
	ldr	r1, [r8]
	bl	rtl_get_rfreg
	cmp	r10, #0
	mov	r9, r0
	bne	.L9
	bic	r3, r0, #-16777216
	bic	r3, r3, #16187392
	orr	r3, r3, #65536
	str	r3, [sp]
	mov	r2, r10
	ldr	r3, [r7]
	ldr	r1, [r8]
	mov	r0, r4
	bl	rtl_set_rfreg
	ldr	r3, [r7]
	ldr	r1, [r8]
	mov	r2, #24
	mov	r0, r4
	bl	rtl_get_rfreg
	orr	r0, r0, #32768
	str	r0, [sp]
	ldr	r3, [r7]
	ldr	r1, [r8]
	mov	r2, #24
	mov	r0, r4
	bl	rtl_set_rfreg
	mov	r0, #100
	bl	mdelay
	mov	r2, r6
	mov	r0, r5
	ldr	r1, .L10
	bl	rtl_write_byte
	str	r9, [sp]
	mov	r2, r10
	mov	r0, r4
	ldr	r3, [r7]
	ldr	r1, [r8]
	bl	rtl_set_rfreg
	b	.L5
.L2:
	ldr	r6, .L10+12
	ldr	r9, .L10+4
	ldr	r8, .L10+8
	mov	r2, #255
	ldr	r1, [r6]
	mov	r0, r5
	bl	rtl_write_byte
	mov	r2, #24
	ldr	r3, [r9]
	ldr	r1, [r8]
	mov	r0, r4
	bl	rtl_get_rfreg
	orr	r0, r0, #32768
	str	r0, [sp]
	mov	r2, #24
	ldr	r1, [r8]
	ldr	r3, [r9]
	mov	r0, r4
	bl	rtl_set_rfreg
	mov	r0, #100
	bl	mdelay
	mov	r2, r7
	mov	r0, r5
	ldr	r1, [r6]
	bl	rtl_write_byte
.L5:
	mov	r0, r5
	ldr	r3, .L10+16
	ldr	r2, .L10+20
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L10+24
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	RT_TRACE
.L9:
	ldr	fp, .L10+28
	ldr	r3, [r7]
	ldr	r1, [fp]
	mov	r2, #0
	mov	r0, r4
	bl	rtl_get_rfreg
	ldr	r10, .L10+32
	ldr	r3, [r7]
	and	r2, r9, r10
	orr	r2, r2, #65536
	ldr	r1, [r8]
	str	r0, [sp, #12]
	str	r2, [sp]
	mov	r0, r4
	mov	r2, #0
	bl	rtl_set_rfreg
	ldr	r3, [sp, #12]
	ldr	r1, [fp]
	and	r10, r10, r3
	orr	r10, r10, #65536
	str	r10, [sp]
	ldr	r3, [r7]
	mov	r2, #0
	mov	r0, r4
	bl	rtl_set_rfreg
	ldr	r3, [r7]
	ldr	r1, [r8]
	mov	r2, #24
	mov	r0, r4
	bl	rtl_get_rfreg
	orr	r0, r0, #32768
	str	r0, [sp]
	ldr	r3, [r7]
	ldr	r1, [r8]
	mov	r2, #24
	mov	r0, r4
	bl	rtl_set_rfreg
	mov	r0, #100
	bl	mdelay
	mov	r2, r6
	mov	r0, r5
	ldr	r1, .L10
	bl	rtl_write_byte
	str	r9, [sp]
	ldr	r1, [r8]
	ldr	r3, [r7]
	mov	r2, #0
	mov	r0, r4
	bl	rtl_set_rfreg
	ldr	r3, [sp, #12]
	mov	r0, r4
	str	r3, [sp]
	mov	r2, #0
	ldr	r1, [fp]
	ldr	r3, [r7]
	bl	rtl_set_rfreg
	b	.L5
.L11:
	.align	2
.L10:
	.word	3331
	.word	MASK12BITS
	.word	RF90_PATH_A
	.word	REG_TXPAUSE
	.word	COMP_INIT
	.word	DBG_LOUD
	.word	.LC0
	.word	RF90_PATH_B
	.word	589823
	.size	_rtl88e_phy_lc_calibrate, .-_rtl88e_phy_lc_calibrate
	.comm	RF90_PATH_B,4,4
	.comm	RF90_PATH_A,4,4
	.comm	REG_TXPAUSE,4,4
	.comm	MASK12BITS,4,4
	.comm	DBG_LOUD,4,4
	.comm	COMP_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
