	.file	"extr_video.c_RenderSubpictures.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	RenderSubpictures, @function
RenderSubpictures:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	call	VLC_UNUSED@PLT
	mov	ecx, DWORD PTR 8[rbx]
	test	ecx, ecx
	jne	.L24
.L2:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	lea	rbp, 20[rbx]
	lea	r13, 48[rsp]
	mov	r14, rsp
	mov	rdi, rbp
	call	vlc_mutex_lock@PLT
	lea	rsi, 24[rbx]
	mov	rdi, r13
	call	video_format_Copy@PLT
	mov	rdi, rbp
	call	vlc_mutex_unlock@PLT
	lea	rsi, 4[r12]
	mov	rdi, r14
	call	video_format_Copy@PLT
	cmp	QWORD PTR [rsp], 0
	jle	.L3
	cmp	QWORD PTR 8[rsp], 0
	jle	.L3
.L4:
	xor	eax, eax
	mov	ebp, DWORD PTR [r12]
	call	vlc_tick_now@PLT
	push	0
	.cfi_def_cfa_offset 184
	mov	edi, DWORD PTR 8[rbx]
	mov	rdx, r14
	push	0
	.cfi_def_cfa_offset 192
	mov	r9d, ebp
	mov	r8d, eax
	mov	rcx, r13
	xor	esi, esi
	call	spu_Render@PLT
	mov	rbp, rax
	pop	rax
	.cfi_def_cfa_offset 184
	pop	rdx
	.cfi_def_cfa_offset 176
	test	rbp, rbp
	je	.L5
	mov	edi, DWORD PTR 16[rbx]
	call	filter_chain_IsEmpty@PLT
	test	rax, rax
	jne	.L26
.L7:
	xor	edi, edi
	cmp	QWORD PTR [rbx], 0
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L9
	mov	rdi, QWORD PTR [rbx]
.L10:
	call	likely@PLT
	test	rax, rax
	jne	.L27
.L11:
	mov	rdi, rbp
	call	subpicture_Delete@PLT
.L5:
	mov	rdi, r14
	call	video_format_Clean@PLT
	mov	rdi, r13
	call	video_format_Clean@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR 40[rsp], 0
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 32[rsp], 0
	mov	QWORD PTR [rsp], rax
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR 8[rbx]
	call	VLC_OBJECT@PLT
	mov	rsi, r14
	mov	edi, eax
	call	filter_NewBlend@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdi, rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR 12[rbx]
	call	video_new_buffer_encoder@PLT
	mov	rdi, rax
	mov	r15, rax
	call	likely@PLT
	test	rax, rax
	je	.L7
	mov	rsi, r12
	mov	rdi, r15
	call	picture_Copy@PLT
	mov	rdi, r12
	mov	r12, r15
	call	picture_Release@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rsi, QWORD PTR [rbx]
	mov	rdx, rbp
	mov	rdi, r12
	call	picture_BlendSubpicture@PLT
	jmp	.L11
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	RenderSubpictures, .-RenderSubpictures
	.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_video.c_RenderSubpictures.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	RenderSubpictures, %function
RenderSubpictures:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	ldr	r3, .L31
	sub	sp, sp, #76
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	mov	r5, r2
	bl	VLC_UNUSED
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L27
.L2:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r5
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L27:
	add	r6, r4, #16
	mov	r0, r6
	bl	vlc_mutex_lock
	add	r1, r4, #20
	add	r0, sp, #44
	bl	video_format_Copy
	mov	r0, r6
	bl	vlc_mutex_unlock
	add	r0, sp, #20
	add	r1, r5, #4
	bl	video_format_Copy
	ldr	r3, [sp, #20]
	cmp	r3, #0
	ble	.L3
	ldr	r3, [sp, #24]
	cmp	r3, #0
	ble	.L3
.L4:
	ldr	r6, [r4, #4]
	bl	vlc_tick_now
	mov	r1, #0
	mov	r2, r0
	str	r1, [sp, #12]
	str	r1, [sp, #8]
	ldr	r3, [r5]
	mov	r0, r6
	stm	sp, {r2, r3}
	add	r3, sp, #44
	add	r2, sp, #20
	bl	spu_Render
	subs	r6, r0, #0
	beq	.L5
	ldr	r0, [r4, #12]
	bl	filter_chain_IsEmpty
	cmp	r0, #0
	bne	.L29
.L7:
	ldr	r0, [r4]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L9
	ldr	r0, [r4]
.L10:
	bl	likely
	cmp	r0, #0
	bne	.L30
.L11:
	mov	r0, r6
	bl	subpicture_Delete
.L5:
	add	r0, sp, #20
	bl	video_format_Clean
	add	r0, sp, #44
	bl	video_format_Clean
	b	.L2
.L3:
	mov	r3, #0
	ldr	r1, [sp, #28]
	ldr	r2, [sp, #32]
	str	r3, [sp, #40]
	str	r3, [sp, #36]
	str	r1, [sp, #20]
	str	r2, [sp, #24]
	b	.L4
.L9:
	ldr	r0, [r4, #4]
	bl	VLC_OBJECT
	add	r1, sp, #20
	bl	filter_NewBlend
	str	r0, [r4]
	b	.L10
.L29:
	ldr	r0, [r4, #8]
	bl	video_new_buffer_encoder
	mov	r7, r0
	bl	likely
	cmp	r0, #0
	beq	.L7
	mov	r1, r5
	mov	r0, r7
	bl	picture_Copy
	mov	r0, r5
	bl	picture_Release
	mov	r5, r7
	b	.L7
.L30:
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [r4]
	bl	picture_BlendSubpicture
	b	.L11
.L28:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC0
	.size	RenderSubpictures, .-RenderSubpictures
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
