	.file	"extr_linsys_sdi.c_DecodeTelx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	DecodeTelx, @function
DecodeTelx:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -56
	mov	r13, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rsi, rsp
	mov	eax, DWORD PTR 0[r13]
	add	eax, eax
	cdqe
	sal	rax, 4
	mov	rdx, rax
	and	rdx, -4096
	sub	rsi, rdx
	mov	rdx, rsi
	cmp	rsp, rdx
	je	.L3
.L28:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rdx
	jne	.L28
.L3:
	and	eax, 4095
	sub	rsp, rax
	test	rax, rax
	jne	.L29
.L4:
	mov	esi, DWORD PTR 12[r13]
	mov	r15, rsp
	lea	rdi, 16[r13]
	mov	rdx, r15
	call	vbi_raw_decode@PLT
	mov	DWORD PTR -68[rbp], eax
	test	eax, eax
	jne	.L30
.L5:
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
.L1:
	mov	rsi, QWORD PTR -56[rbp]
	xor	rsi, QWORD PTR fs:40
	jne	.L31
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L30:
	.cfi_restore_state
	mov	edx, eax
	lea	eax, 3[rax]
	test	edx, edx
	cmovns	eax, edx
	mov	esi, eax
	or	eax, 3
	imul	edi, eax, 46
	and	esi, -4
	mov	DWORD PTR -84[rbp], eax
	mov	DWORD PTR -72[rbp], esi
	add	edi, 1
	call	block_Alloc@PLT
	xor	edi, edi
	test	rax, rax
	mov	QWORD PTR -80[rbp], rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L32
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rbx, 4[rax]
	mov	DWORD PTR [rax], 16
	mov	eax, DWORD PTR -68[rbp]
	mov	QWORD PTR -96[rbp], rbx
	test	eax, eax
	jle	.L15
	sub	eax, 1
	mov	QWORD PTR -112[rbp], r12
	mov	r12, r15
	mov	QWORD PTR -104[rbp], rax
	sal	rax, 4
	lea	rax, 16[r15+rax]
	mov	r15, rax
	.p2align 4,,10
	.p2align 3
.L11:
	mov	ecx, DWORD PTR [r12]
	mov	eax, 192
	mov	esi, 224
	mov	DWORD PTR [rbx], 3
	mov	DWORD PTR 4[rbx], 44
	cmp	ecx, 313
	mov	edi, ecx
	mov	DWORD PTR 12[rbx], 228
	cmovg	esi, eax
	movsx	rax, ecx
	sar	edi, 31
	xor	r14d, r14d
	imul	rax, rax, -782150593
	shr	rax, 32
	add	eax, ecx
	sar	eax, 8
	sub	eax, edi
	imul	eax, eax, 313
	sub	ecx, eax
	or	ecx, esi
	mov	DWORD PTR 8[rbx], ecx
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR [rax+r14]
	call	vbi_rev8@PLT
	mov	DWORD PTR 16[rbx+r14], eax
	add	r14, 4
	cmp	r14, 168
	jne	.L10
	add	r12, 16
	add	rbx, 184
	cmp	r12, r15
	jne	.L11
	mov	rax, QWORD PTR -104[rbp]
	mov	r12, QWORD PTR -112[rbp]
	add	rax, 1
	imul	rax, rax, 184
	add	QWORD PTR -96[rbp], rax
.L8:
	mov	esi, DWORD PTR -68[rbp]
	cmp	DWORD PTR -84[rbp], esi
	jle	.L12
	mov	eax, DWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	add	eax, 2
	lea	rbx, 8[rdx]
	sub	eax, esi
	imul	rax, rax, 184
	lea	r14, 192[rdx+rax]
	.p2align 4,,10
	.p2align 3
.L13:
	mov	DWORD PTR -8[rbx], 255
	mov	rdi, rbx
	mov	edx, 44
	mov	esi, 255
	mov	DWORD PTR -4[rbx], 44
	add	rbx, 184
	call	memset@PLT
	cmp	rbx, r14
	jne	.L13
.L12:
	mov	eax, DWORD PTR 8[r13]
	mov	rdx, QWORD PTR -80[rbp]
	mov	esi, DWORD PTR 4[r13]
	mov	edi, DWORD PTR [r12]
	mov	DWORD PTR 8[rdx], eax
	mov	DWORD PTR 12[rdx], eax
	call	es_out_Send@PLT
	jmp	.L5
.L29:
	or	QWORD PTR -8[rsp+rax], 0
	jmp	.L4
.L32:
	mov	eax, DWORD PTR VLC_ENOMEM[rip]
	jmp	.L1
.L15:
	mov	DWORD PTR -68[rbp], 0
	jmp	.L8
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	DecodeTelx, .-DecodeTelx
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_ENOMEM,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_linsys_sdi.c_DecodeTelx.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DecodeTelx, %function
DecodeTelx:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	mov	r2, sp
	ldr	r10, [r0, #4]
	ldr	r3, .L24
	str	r0, [fp, #-48]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r3, [r10]
	ldr	r1, [r10, #12]
	sub	r3, r2, r3, lsl #4
	mov	sp, r3
	mov	r6, sp
	add	r0, r10, #16
	mov	r2, r6
	bl	vbi_raw_decode
	subs	r9, r0, #0
	bne	.L21
.L2:
	ldr	r3, .L24+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	add	r3, r9, #3
	movge	r3, r9
	orr	r3, r3, #3
	add	r0, r3, r3, lsl #1
	rsb	r0, r3, r0, lsl #3
	lsl	r0, r0, #1
	add	r0, r0, #1
	str	r3, [fp, #-60]
	bl	block_Alloc
	mov	r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	str	r3, [fp, #-52]
	bl	unlikely
	subs	r7, r0, #0
	bne	.L23
	mov	r3, #16
	ldr	r2, [fp, #-52]
	cmp	r9, #0
	ldr	r8, [r2]
	str	r3, [r8], #4
	str	r8, [fp, #-56]
	ble	.L5
.L8:
	ldr	r3, [r6]
	ldr	r2, .L24+8
	mov	r0, #44
	cmp	r3, r2
	ldr	r2, .L24+12
	movgt	ip, #192
	smull	lr, r2, r3, r2
	asr	lr, r3, #31
	add	r2, r2, r3
	rsb	r2, lr, r2, asr #8
	add	lr, r2, r2, lsl #2
	rsb	lr, r2, lr, lsl #3
	add	r2, r2, lr, lsl #3
	movle	ip, #224
	sub	r3, r3, r2
	mov	r1, #228
	mov	r5, r8
	mov	r2, #3
	mov	r4, #0
	orr	r3, r3, ip
	stmib	r8, {r0, r3}
	str	r2, [r8]
	str	r1, [r5, #12]!
.L7:
	ldr	r3, [r6, #4]
	ldr	r0, [r3, r4]
	bl	vbi_rev8
	add	r4, r4, #4
	cmp	r4, #168
	str	r0, [r5, #4]!
	bne	.L7
	add	r7, r7, #1
	cmp	r9, r7
	add	r8, r8, #184
	add	r6, r6, #8
	bne	.L8
	ldr	r2, [fp, #-56]
	add	r3, r7, r7, lsl #1
	rsb	r3, r7, r3, lsl #3
	add	r3, r2, r3, lsl #3
	str	r3, [fp, #-56]
.L5:
	ldr	r6, [fp, #-60]
	cmp	r6, r7
	ble	.L9
	mov	r5, #255
	mov	r4, #44
	ldr	r3, [fp, #-56]
	add	r3, r3, #8
.L10:
	mov	r0, r3
	str	r5, [r3, #-8]
	str	r4, [r3, #-4]
	mov	r2, #44
	mov	r1, #255
	bl	memset
	add	r7, r7, #1
	cmp	r7, r6
	add	r3, r0, #184
	bne	.L10
.L9:
	ldr	r2, [fp, #-48]
	ldr	r3, [r10, #8]
	ldr	r0, [r2]
	ldr	r2, [fp, #-52]
	ldr	r1, [r10, #4]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	bl	es_out_Send
	b	.L2
.L23:
	ldr	r3, .L24+16
	ldr	r0, [r3]
	b	.L1
.L22:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	VLC_SUCCESS
	.word	313
	.word	-782150593
	.word	VLC_ENOMEM
	.size	DecodeTelx, .-DecodeTelx
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
