	.file	"extr_stb0899_algo.c_stb0899_check_data.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"-----------------> DATA OK !"
	.text
	.p2align 4
	.type	stb0899_check_data, @function
stb0899_check_data:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR NODATA[rip]
	mov	esi, DWORD PTR STB0899_TSTRES[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	DWORD PTR 8[rdi], eax
	call	stb0899_read_reg@PLT
	mov	edi, DWORD PTR FRESACS[rip]
	mov	edx, 1
	mov	esi, eax
	mov	r13d, eax
	call	STB0899_SETFIELD_VAL@PLT
	mov	esi, DWORD PTR STB0899_TSTRES[rip]
	mov	edx, r13d
	mov	rdi, r12
	call	stb0899_write_reg@PLT
	mov	edi, 1
	call	msleep@PLT
	mov	esi, DWORD PTR STB0899_TSTRES[rip]
	mov	rdi, r12
	call	stb0899_read_reg@PLT
	mov	edi, DWORD PTR FRESACS[rip]
	xor	edx, edx
	mov	esi, eax
	mov	r13d, eax
	call	STB0899_SETFIELD_VAL@PLT
	mov	esi, DWORD PTR STB0899_TSTRES[rip]
	mov	edx, r13d
	mov	rdi, r12
	mov	r13d, 2000
	call	stb0899_write_reg@PLT
	mov	eax, DWORD PTR 4[r12]
	cmp	eax, 2000000
	jle	.L2
	mov	r13d, 1500
	cmp	eax, 5000000
	jg	.L14
.L2:
	mov	esi, DWORD PTR STB0899_VSTATUS[rip]
	mov	rdi, r12
	add	r13d, 1
	xor	r14d, r14d
	call	stb0899_read_reg@PLT
	mov	esi, DWORD PTR STB0899_DSTATUS2[rip]
	xor	edx, edx
	mov	rdi, r12
	call	stb0899_write_reg@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	cmp	r14d, r13d
	je	.L4
	add	r14d, 1
.L5:
	mov	esi, DWORD PTR STB0899_VSTATUS[rip]
	mov	rdi, r12
	call	stb0899_read_reg@PLT
	mov	edi, DWORD PTR VSTATUS_LOCKEDVIT[rip]
	mov	esi, eax
	mov	ebp, eax
	call	STB0899_GETFIELD@PLT
	mov	edi, DWORD PTR VSTATUS_END_LOOPVIT[rip]
	mov	esi, ebp
	mov	ebx, eax
	call	STB0899_GETFIELD@PLT
	or	eax, ebx
	je	.L15
	test	ebx, ebx
	je	.L4
	mov	eax, DWORD PTR DATAOK[rip]
	mov	edi, DWORD PTR [r12]
	lea	rcx, .LC0[rip]
	mov	edx, 1
	mov	esi, DWORD PTR FE_DEBUG[rip]
	mov	DWORD PTR 8[r12], eax
	call	dprintk@PLT
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR 8[r12]
	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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmp	eax, 15000001
	mov	r13d, 1000
	mov	eax, 500
	cmovge	r13d, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	stb0899_check_data, .-stb0899_check_data
	.comm	VSTATUS_LOCKEDVIT,4,4
	.comm	VSTATUS_END_LOOPVIT,4,4
	.comm	STB0899_VSTATUS,4,4
	.comm	STB0899_TSTRES,4,4
	.comm	STB0899_DSTATUS2,4,4
	.comm	NODATA,4,4
	.comm	FRESACS,4,4
	.comm	FE_DEBUG,4,4
	.comm	DATAOK,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_stb0899_algo.c_stb0899_check_data.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"-----------------> DATA OK !\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stb0899_check_data, %function
stb0899_check_data:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r3]
	ldr	r4, .L16+4
	str	r3, [r0, #8]
	ldr	r1, [r4]
	mov	r5, r0
	bl	stb0899_read_reg
	mov	r6, r0
	ldr	r7, .L16+8
	mov	r1, r0
	mov	r2, #1
	ldr	r0, [r7]
	bl	STB0899_SETFIELD_VAL
	mov	r2, r6
	ldr	r1, [r4]
	mov	r0, r5
	bl	stb0899_write_reg
	mov	r0, #1
	bl	msleep
	ldr	r1, [r4]
	mov	r0, r5
	bl	stb0899_read_reg
	mov	r6, r0
	mov	r2, #0
	mov	r1, r6
	ldr	r0, [r7]
	bl	STB0899_SETFIELD_VAL
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [r4]
	bl	stb0899_write_reg
	ldr	r6, [r5, #4]
	ldr	r3, .L16+12
	cmp	r6, r3
	movle	r6, #2000
	ble	.L2
	add	r3, r3, #2998272
	add	r3, r3, #1728
	cmp	r6, r3
	ldrle	r6, .L16+16
	bgt	.L14
.L2:
	ldr	r7, .L16+20
	mov	r0, r5
	ldr	r1, [r7]
	bl	stb0899_read_reg
	ldr	r3, .L16+24
	mov	r2, #0
	mov	r0, r5
	ldr	r1, [r3]
	bl	stb0899_write_reg
	mov	r10, #0
	ldr	r9, .L16+28
	ldr	r8, .L16+32
	add	r6, r6, #1
	b	.L5
.L15:
	cmp	r10, r6
	beq	.L4
	add	r10, r10, #1
.L5:
	ldr	r1, [r7]
	mov	r0, r5
	bl	stb0899_read_reg
	mov	r4, r0
	ldr	r0, [r9]
	mov	r1, r4
	bl	STB0899_GETFIELD
	mov	r3, r0
	mov	r1, r4
	ldr	r0, [r8]
	mov	r4, r3
	bl	STB0899_GETFIELD
	orrs	r3, r4, r0
	beq	.L15
	cmp	r4, #0
	beq	.L4
	ldr	r3, .L16+36
	ldr	r2, .L16+40
	ldr	r3, [r3]
	ldr	r1, [r2]
	str	r3, [r5, #8]
	mov	r2, #1
	ldr	r3, .L16+44
	ldr	r0, [r5]
	bl	dprintk
.L4:
	ldr	r0, [r5, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r3, .L16+48
	cmp	r6, r3
	movle	r6, #1000
	movgt	r6, #500
	b	.L2
.L17:
	.align	2
.L16:
	.word	NODATA
	.word	STB0899_TSTRES
	.word	FRESACS
	.word	2000000
	.word	1500
	.word	STB0899_VSTATUS
	.word	STB0899_DSTATUS2
	.word	VSTATUS_LOCKEDVIT
	.word	VSTATUS_END_LOOPVIT
	.word	DATAOK
	.word	FE_DEBUG
	.word	.LC0
	.word	15000000
	.size	stb0899_check_data, .-stb0899_check_data
	.comm	VSTATUS_LOCKEDVIT,4,4
	.comm	VSTATUS_END_LOOPVIT,4,4
	.comm	STB0899_VSTATUS,4,4
	.comm	STB0899_TSTRES,4,4
	.comm	STB0899_DSTATUS2,4,4
	.comm	NODATA,4,4
	.comm	FRESACS,4,4
	.comm	FE_DEBUG,4,4
	.comm	DATAOK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
