	.file	"extr_hdspm.c_snd_hdspm_proc_read_tco.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"--- TCO ---\n"
.LC1:
	.string	"TCO module detected.\n"
.LC2:
	.string	"  LTC valid, "
.LC3:
	.string	"24 fps, "
.LC4:
	.string	"25 fps, "
.LC5:
	.string	"29.97 fps, "
.LC6:
	.string	"30 fps, "
.LC7:
	.string	"drop frame\n"
.LC8:
	.string	"full frame\n"
.LC9:
	.string	"  no LTC\n"
.LC10:
	.string	"  Video: NTSC\n"
.LC11:
	.string	"  Video: PAL\n"
.LC12:
	.string	"  No video\n"
.LC13:
	.string	"  Sync: lock\n"
.LC14:
	.string	"  Sync: no lock\n"
.LC15:
	.string	"    period: %u\n"
.LC16:
	.string	"  Frequency: %u Hz\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC17:
	.string	"  LTC In: %02d:%02d:%02d:%02d\n"
	.section	.rodata.str1.1
.LC18:
	.string	"No TCO module detected.\n"
	.text
	.p2align 4
	.type	snd_hdspm_proc_read_tco, @function
snd_hdspm_proc_read_tco:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	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, rsi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r12, QWORD PTR [rdi]
	mov	rdi, rbp
	call	snd_iprintf@PLT
	mov	rsi, QWORD PTR HDSPM_statusRegister[rip]
	mov	rdi, r12
	call	hdspm_read@PLT
	test	DWORD PTR HDSPM_tco_detect[rip], eax
	je	.L2
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	mov	ebx, DWORD PTR [r12]
	call	snd_iprintf@PLT
	mov	rax, QWORD PTR HDSPM_RD_TCO[rip]
	mov	rdi, r12
	lea	rsi, 4[rax]
	call	hdspm_read@PLT
	mov	r13, rax
	test	DWORD PTR HDSPM_TCO1_LTC_Input_valid[rip], eax
	jne	.L29
	lea	rsi, .LC9[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	snd_iprintf@PLT
.L9:
	test	DWORD PTR HDSPM_TCO1_Video_Input_Format_NTSC[rip], r13d
	jne	.L30
.L10:
	test	DWORD PTR HDSPM_TCO1_Video_Input_Format_PAL[rip], r13d
	jne	.L31
	lea	rsi, .LC12[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	snd_iprintf@PLT
.L11:
	test	DWORD PTR HDSPM_TCO1_TCO_lock[rip], r13d
	je	.L13
.L33:
	lea	rsi, .LC13[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	snd_iprintf@PLT
.L14:
	movabs	r13, 104857600000000
	mov	eax, DWORD PTR 4[r12]
	cmp	eax, 133
	je	.L15
	jg	.L16
	cmp	eax, 128
	je	.L15
	cmp	eax, 130
	mov	r13d, 0
	movabs	rax, 110069313433624
	cmove	r13, rax
.L15:
	mov	rsi, QWORD PTR HDSPM_RD_PLL_FREQ[rip]
	mov	rdi, r12
	call	hdspm_read@PLT
	lea	rsi, .LC15[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r14, rax
	xor	eax, eax
	call	snd_iprintf@PLT
	mov	esi, r14d
	mov	rdi, r13
	call	div_u64@PLT
	mov	edx, eax
	test	DWORD PTR HDSPM_QuadSpeed[rip], ebx
	je	.L17
	sal	edx, 2
.L18:
	mov	rdi, rbp
	lea	rsi, .LC16[rip]
	xor	eax, eax
	call	snd_iprintf@PLT
	mov	rsi, QWORD PTR HDSPM_RD_TCO[rip]
	mov	rdi, r12
	call	hdspm_read@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, eax
	mov	edi, eax
	mov	r8d, eax
	mov	ecx, eax
	sar	edx, 4
	mov	esi, eax
	sar	edi, 16
	and	r8d, 15
	sar	ecx, 8
	and	edx, 3
	and	edi, 15
	sar	esi, 24
	lea	r9d, [rdx+rdx*4]
	mov	edx, eax
	and	ecx, 15
	and	esi, 15
	sar	edx, 12
	lea	r9d, [r8+r9*2]
	and	edx, 7
	lea	r11d, [rdx+rdx*4]
	mov	edx, eax
	sar	eax, 28
	sar	edx, 20
	and	eax, 3
	lea	r8d, [rcx+r11*2]
	and	edx, 7
	lea	eax, [rax+rax*4]
	lea	edx, [rdx+rdx*4]
	lea	r10d, [rdi+rdx*2]
	lea	edx, [rsi+rax*2]
	mov	rdi, rbp
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	ecx, r10d
	lea	rsi, .LC17[rip]
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	snd_iprintf@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	lea	rsi, .LC18[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	snd_iprintf@PLT
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	snd_iprintf@PLT
	mov	eax, r13d
	and	eax, 135
	cmp	eax, 131
	je	.L4
	cmp	eax, 132
	je	.L5
	test	eax, eax
	je	.L32
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	snd_iprintf@PLT
.L7:
	test	DWORD PTR HDSPM_TCO1_set_drop_frame_flag[rip], r13d
	je	.L8
	xor	eax, eax
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	call	snd_iprintf@PLT
	test	DWORD PTR HDSPM_TCO1_Video_Input_Format_NTSC[rip], r13d
	je	.L10
.L30:
	xor	eax, eax
	lea	rsi, .LC10[rip]
	mov	rdi, rbp
	call	snd_iprintf@PLT
	test	DWORD PTR HDSPM_TCO1_TCO_lock[rip], r13d
	jne	.L33
.L13:
	lea	rsi, .LC14[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	snd_iprintf@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rsi, .LC11[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	snd_iprintf@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L32:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	snd_iprintf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	snd_iprintf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	snd_iprintf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	cmp	eax, 134
	mov	r13d, 0
	movabs	rax, 110069313433624
	cmove	r13, rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L17:
	lea	eax, [rax+rax]
	test	DWORD PTR HDSPM_DoubleSpeed[rip], ebx
	cmovne	edx, eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rsi, .LC8[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	snd_iprintf@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	snd_hdspm_proc_read_tco, .-snd_hdspm_proc_read_tco
	.comm	HDSPM_tco_detect,4,4
	.comm	HDSPM_statusRegister,8,8
	.comm	HDSPM_TCO1_set_drop_frame_flag,4,4
	.comm	HDSPM_TCO1_Video_Input_Format_PAL,4,4
	.comm	HDSPM_TCO1_Video_Input_Format_NTSC,4,4
	.comm	HDSPM_TCO1_TCO_lock,4,4
	.comm	HDSPM_TCO1_LTC_Input_valid,4,4
	.comm	HDSPM_RD_TCO,8,8
	.comm	HDSPM_RD_PLL_FREQ,8,8
	.comm	HDSPM_QuadSpeed,4,4
	.comm	HDSPM_DoubleSpeed,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_hdspm.c_snd_hdspm_proc_read_tco.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"--- TCO ---\012\000"
	.align	2
.LC1:
	.ascii	"TCO module detected.\012\000"
	.align	2
.LC2:
	.ascii	"  LTC valid, \000"
	.align	2
.LC3:
	.ascii	"24 fps, \000"
	.align	2
.LC4:
	.ascii	"25 fps, \000"
	.align	2
.LC5:
	.ascii	"29.97 fps, \000"
	.align	2
.LC6:
	.ascii	"30 fps, \000"
	.align	2
.LC7:
	.ascii	"drop frame\012\000"
	.align	2
.LC8:
	.ascii	"full frame\012\000"
	.align	2
.LC9:
	.ascii	"  no LTC\012\000"
	.align	2
.LC10:
	.ascii	"  Video: NTSC\012\000"
	.align	2
.LC11:
	.ascii	"  Video: PAL\012\000"
	.align	2
.LC12:
	.ascii	"  No video\012\000"
	.align	2
.LC13:
	.ascii	"  Sync: lock\012\000"
	.align	2
.LC14:
	.ascii	"  Sync: no lock\012\000"
	.align	2
.LC15:
	.ascii	"    period: %u\012\000"
	.align	2
.LC16:
	.ascii	"  Frequency: %u Hz\012\000"
	.align	2
.LC17:
	.ascii	"  LTC In: %02d:%02d:%02d:%02d\012\000"
	.align	2
.LC18:
	.ascii	"No TCO module detected.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_hdspm_proc_read_tco, %function
snd_hdspm_proc_read_tco:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r3, r0
	ldr	r1, .L32+8
	sub	sp, sp, #8
	mov	r0, r4
	ldr	r5, [r3]
	bl	snd_iprintf
	ldr	r3, .L32+12
	mov	r0, r5
	ldr	r1, [r3]
	bl	hdspm_read
	ldr	r3, .L32+16
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L2
	ldr	r7, .L32+20
	ldr	r1, .L32+24
	mov	r0, r4
	ldr	r10, [r5]
	bl	snd_iprintf
	ldr	r1, [r7]
	mov	r0, r5
	add	r1, r1, #4
	bl	hdspm_read
	ldr	r3, .L32+28
	mov	r6, r0
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L29
	mov	r0, r4
	ldr	r1, .L32+32
	bl	snd_iprintf
	ldr	r3, .L32+36
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L30
.L10:
	ldr	r3, .L32+40
	mov	r0, r4
	ldr	r3, [r3]
	tst	r6, r3
	ldrne	r1, .L32+44
	ldreq	r1, .L32+48
	bl	snd_iprintf
.L11:
	ldr	r3, .L32+52
	mov	r0, r4
	ldr	r3, [r3]
	tst	r6, r3
	ldrne	r1, .L32+56
	ldreq	r1, .L32+60
	bl	snd_iprintf
	ldr	r3, [r5, #4]
	sub	r3, r3, #128
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L22
.L17:
	.word	.L18
	.word	.L22
	.word	.L16
	.word	.L22
	.word	.L22
	.word	.L18
	.word	.L16
.L2:
	mov	r0, r4
	ldr	r1, .L32+64
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	snd_iprintf
.L29:
	mov	r0, r4
	ldr	r1, .L32+68
	bl	snd_iprintf
	and	r3, r6, #135
	cmp	r3, #131
	beq	.L4
	cmp	r3, #132
	beq	.L5
	cmp	r3, #0
	beq	.L31
	mov	r0, r4
	ldr	r1, .L32+72
	bl	snd_iprintf
.L7:
	ldr	r3, .L32+76
	mov	r0, r4
	ldr	r3, [r3]
	tst	r6, r3
	ldrne	r1, .L32+80
	ldreq	r1, .L32+84
	bl	snd_iprintf
	ldr	r3, .L32+36
	ldr	r3, [r3]
	tst	r6, r3
	beq	.L10
.L30:
	mov	r0, r4
	ldr	r1, .L32+88
	bl	snd_iprintf
	b	.L11
.L18:
	mov	r8, #268435456
	ldr	r9, .L32+92
.L15:
	ldr	r3, .L32+96
	mov	r0, r5
	ldr	r1, [r3]
	bl	hdspm_read
	mov	r6, r0
	mov	r2, r0
	ldr	r1, .L32+100
	mov	r0, r4
	bl	snd_iprintf
	mov	r2, r6
	mov	r0, r8
	mov	r1, r9
	bl	div_u64
	ldr	r3, .L32+104
	mov	r2, r0
	ldr	r3, [r3]
	tst	r10, r3
	lslne	r2, r0, #2
	bne	.L20
	ldr	r3, .L32+108
	ldr	r3, [r3]
	tst	r10, r3
	lslne	r2, r2, #1
.L20:
	mov	r0, r4
	ldr	r1, .L32+112
	bl	snd_iprintf
	ldr	r1, [r7]
	mov	r0, r5
	bl	hdspm_read
	asr	ip, r0, #4
	asr	r2, r0, #12
	and	r2, r2, #7
	and	ip, ip, #3
	and	r5, r0, #15
	add	r1, r2, r2, lsl #2
	asr	lr, r0, #8
	asr	r3, r0, #20
	asr	r2, r0, #28
	add	ip, ip, ip, lsl #2
	add	ip, r5, ip, lsl #1
	and	r2, r2, #3
	asr	r5, r0, #16
	and	lr, lr, #15
	asr	r0, r0, #24
	and	r3, r3, #7
	add	lr, lr, r1, lsl #1
	and	r5, r5, #15
	add	r1, r2, r2, lsl #2
	add	r3, r3, r3, lsl #2
	and	r2, r0, #15
	add	r2, r2, r1, lsl #1
	mov	r0, r4
	ldr	r1, .L32+116
	str	ip, [sp, #4]
	str	lr, [sp]
	add	r3, r5, r3, lsl #1
	bl	snd_iprintf
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	adr	r9, .L32
	ldmia	r9, {r8-r9}
	b	.L15
.L22:
	mov	r8, #0
	mov	r9, #0
	b	.L15
.L5:
	mov	r0, r4
	ldr	r1, .L32+120
	bl	snd_iprintf
	b	.L7
.L31:
	mov	r0, r4
	ldr	r1, .L32+124
	bl	snd_iprintf
	b	.L7
.L4:
	mov	r0, r4
	ldr	r1, .L32+128
	bl	snd_iprintf
	b	.L7
.L33:
	.align	3
.L32:
	.word	-2108428264
	.word	25627
	.word	.LC0
	.word	HDSPM_statusRegister
	.word	HDSPM_tco_detect
	.word	HDSPM_RD_TCO
	.word	.LC1
	.word	HDSPM_TCO1_LTC_Input_valid
	.word	.LC9
	.word	HDSPM_TCO1_Video_Input_Format_NTSC
	.word	HDSPM_TCO1_Video_Input_Format_PAL
	.word	.LC11
	.word	.LC12
	.word	HDSPM_TCO1_TCO_lock
	.word	.LC13
	.word	.LC14
	.word	.LC18
	.word	.LC2
	.word	.LC6
	.word	HDSPM_TCO1_set_drop_frame_flag
	.word	.LC7
	.word	.LC8
	.word	.LC10
	.word	24414
	.word	HDSPM_RD_PLL_FREQ
	.word	.LC15
	.word	HDSPM_QuadSpeed
	.word	HDSPM_DoubleSpeed
	.word	.LC16
	.word	.LC17
	.word	.LC4
	.word	.LC3
	.word	.LC5
	.size	snd_hdspm_proc_read_tco, .-snd_hdspm_proc_read_tco
	.comm	HDSPM_tco_detect,4,4
	.comm	HDSPM_statusRegister,4,4
	.comm	HDSPM_TCO1_set_drop_frame_flag,4,4
	.comm	HDSPM_TCO1_Video_Input_Format_PAL,4,4
	.comm	HDSPM_TCO1_Video_Input_Format_NTSC,4,4
	.comm	HDSPM_TCO1_TCO_lock,4,4
	.comm	HDSPM_TCO1_LTC_Input_valid,4,4
	.comm	HDSPM_RD_TCO,4,4
	.comm	HDSPM_RD_PLL_FREQ,4,4
	.comm	HDSPM_QuadSpeed,4,4
	.comm	HDSPM_DoubleSpeed,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
