	.file	"extr_decoder.c_input_DecoderAddVoutOverlay.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	input_DecoderAddVoutOverlay
	.type	input_DecoderAddVoutOverlay, @function
input_DecoderAddVoutOverlay:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	dec_get_owner@PLT
	xor	edi, edi
	mov	r12, rax
	mov	rax, QWORD PTR VIDEO_ES[rip]
	cmp	QWORD PTR [rbx], rax
	sete	dil
	call	assert@PLT
	test	rbp, rbp
	setne	al
	xor	edi, edi
	test	r13, r13
	setne	dil
	and	edi, eax
	call	assert@PLT
	mov	rdi, r12
	call	vlc_mutex_lock@PLT
	mov	edi, DWORD PTR 4[r12]
	test	edi, edi
	je	.L6
	call	vout_RegisterSubpictureChannel@PLT
	movsx	rbx, eax
	cmp	ebx, -1
	je	.L6
	xor	eax, eax
	call	vlc_tick_now@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	rsi, rbp
	mov	DWORD PTR 24[rbp], eax
	mov	DWORD PTR 28[rbp], eax
	mov	QWORD PTR 0[r13], rbx
	mov	QWORD PTR 0[rbp], rbx
	mov	QWORD PTR 16[rbp], 0
	mov	DWORD PTR 8[rbp], 1
	call	vout_PutSubpicture@PLT
	mov	rdi, r12
	call	vlc_mutex_unlock@PLT
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L6:
	.cfi_restore_state
	mov	rdi, r12
	call	vlc_mutex_unlock@PLT
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	input_DecoderAddVoutOverlay, .-input_DecoderAddVoutOverlay
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	VIDEO_ES,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_decoder.c_input_DecoderAddVoutOverlay.c"
	.text
	.align	2
	.global	input_DecoderAddVoutOverlay
	.syntax unified
	.arm
	.fpu softvfp
	.type	input_DecoderAddVoutOverlay, %function
input_DecoderAddVoutOverlay:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r4, r1
	mov	r6, r2
	bl	dec_get_owner
	ldr	r3, .L8
	ldr	r2, [r7]
	ldr	r3, [r3]
	mov	r5, r0
	sub	r0, r2, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	subs	r0, r6, #0
	movne	r0, #1
	cmp	r4, #0
	moveq	r0, #0
	bl	assert
	mov	r0, r5
	bl	vlc_mutex_lock
	ldr	r0, [r5, #4]
	cmp	r0, #0
	beq	.L6
	bl	vout_RegisterSubpictureChannel
	cmn	r0, #1
	mov	r7, r0
	beq	.L6
	bl	vlc_tick_now
	mov	r2, #0
	mov	r3, #1
	str	r0, [r4, #12]
	str	r0, [r4, #16]
	mov	r1, r4
	str	r7, [r6]
	ldr	r0, [r5, #4]
	str	r3, [r4, #4]
	str	r2, [r4, #8]
	str	r7, [r4]
	bl	vout_PutSubpicture
	mov	r0, r5
	bl	vlc_mutex_unlock
	ldr	r3, .L8+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r5
	bl	vlc_mutex_unlock
	ldr	r3, .L8+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	VIDEO_ES
	.word	VLC_SUCCESS
	.word	VLC_EGENERIC
	.size	input_DecoderAddVoutOverlay, .-input_DecoderAddVoutOverlay
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	VIDEO_ES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
