	.file	"extr_av7110_av.c_av7110_av_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	av7110_av_init
	.type	av7110_av_init, @function
av7110_av_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR 24[rdi]
	movsx	rdx, DWORD PTR play_audio_cb[rip]
	mov	esi, DWORD PTR IPACKS[rip]
	movsx	r13, DWORD PTR play_video_cb[rip]
	mov	rdi, rbp
	call	av7110_ipack_init@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	QWORD PTR 0[rbp], rbx
	mov	rbp, QWORD PTR 24[rbx]
	mov	rdx, r13
	mov	esi, DWORD PTR IPACKS[rip]
	lea	rdi, 8[rbp]
	call	av7110_ipack_init@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	mov	QWORD PTR 8[rbp], rbx
	mov	rsi, QWORD PTR 8[rbx]
	lea	rdi, 20[rbx]
	mov	rdx, QWORD PTR AVOUTLEN[rip]
	call	dvb_ringbuffer_init@PLT
	mov	rdx, QWORD PTR AOUTLEN[rip]
	mov	rsi, QWORD PTR AVOUTLEN[rip]
	lea	rdi, 16[rbx]
	add	rsi, QWORD PTR 8[rbx]
	call	dvb_ringbuffer_init@PLT
	mov	esi, DWORD PTR IPACKS[rip]
	mov	rcx, QWORD PTR [rbx]
	mov	rax, QWORD PTR AVOUTLEN[rip]
	add	rax, QWORD PTR 8[rbx]
	lea	edx, [rsi+rsi]
	add	rax, QWORD PTR AOUTLEN[rip]
	add	rax, QWORD PTR BMPLEN[rip]
	movsx	rdx, edx
	mov	QWORD PTR [rcx], rax
	lea	rax, [rax+rdx*4]
	mov	QWORD PTR 8[rcx], rax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
.L2:
	endbr64
	mov	rdi, rbp
	call	av7110_ipack_free@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	av7110_av_init, .-av7110_av_init
	.comm	play_video_cb,4,4
	.comm	play_audio_cb,4,4
	.comm	IPACKS,4,4
	.comm	BMPLEN,8,8
	.comm	AVOUTLEN,8,8
	.comm	AOUTLEN,8,8
	.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_av7110_av.c_av7110_av_init.c"
	.text
	.align	2
	.global	av7110_av_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	av7110_av_init, %function
av7110_av_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, .L6
	ldr	r7, [r0, #16]
	ldr	r6, .L6+4
	ldr	r3, .L6+8
	mov	r4, r0
	ldr	r2, [r2]
	mov	r0, r7
	ldr	r1, [r6]
	ldr	r9, [r3]
	bl	av7110_ipack_init
	subs	r5, r0, #0
	blt	.L1
	ldr	r8, [r4, #16]
	mov	r2, r9
	ldr	r1, [r6]
	str	r4, [r7]
	add	r0, r8, #4
	bl	av7110_ipack_init
	subs	r5, r0, #0
	blt	.L3
	ldr	r7, .L6+12
	ldr	r1, [r4, #4]
	ldr	r2, [r7]
	str	r4, [r8, #4]
	add	r0, r4, #12
	bl	dvb_ringbuffer_init
	ldr	r8, .L6+16
	ldr	r3, [r7]
	ldr	r1, [r4, #4]
	ldr	r2, [r8]
	add	r1, r1, r3
	add	r0, r4, #8
	bl	dvb_ringbuffer_init
	ldr	r0, [r7]
	ldr	r3, [r4, #4]
	ldr	r2, .L6+20
	ldr	r1, [r8]
	add	r3, r3, r0
	ldr	r0, [r2]
	add	r3, r3, r1
	ldr	r2, [r6]
	ldr	r1, [r4]
	add	r3, r3, r0
	add	r2, r3, r2, lsl #3
	str	r2, [r1, #4]
	str	r3, [r1]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
.L2:
	mov	r0, r8
	bl	av7110_ipack_free
	b	.L1
.L7:
	.align	2
.L6:
	.word	play_audio_cb
	.word	IPACKS
	.word	play_video_cb
	.word	AVOUTLEN
	.word	AOUTLEN
	.word	BMPLEN
	.size	av7110_av_init, .-av7110_av_init
	.comm	play_video_cb,4,4
	.comm	play_audio_cb,4,4
	.comm	IPACKS,4,4
	.comm	BMPLEN,4,4
	.comm	AVOUTLEN,4,4
	.comm	AOUTLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
