	.file	"extr_decoder.c_ModuleThread_QueueSpu.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ModuleThread_QueueSpu, @function
ModuleThread_QueueSpu:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, rsi
	call	assert@PLT
	mov	rdi, rbp
	call	dec_get_owner@PLT
	mov	rdi, QWORD PTR 16[rax]
	mov	rbp, rax
	lea	r13, 8[rbp]
	call	assert@PLT
	mov	rdi, r13
	call	vlc_mutex_lock@PLT
	mov	rax, QWORD PTR [r12]
	mov	rdx, QWORD PTR VLC_TICK_INVALID[rip]
	cmp	rax, rdx
	je	.L2
	mov	rcx, QWORD PTR 0[rbp]
	cmp	rax, rcx
	jge	.L2
	mov	rax, QWORD PTR 8[r12]
	cmp	rdx, rax
	je	.L4
	cmp	rcx, rax
	jg	.L4
.L2:
	mov	rdi, r13
	call	vlc_mutex_unlock@PLT
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ModuleThread_PlaySpu@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, r13
	call	vlc_mutex_unlock@PLT
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	subpicture_Delete@PLT
	.cfi_endproc
.LFE0:
	.size	ModuleThread_QueueSpu, .-ModuleThread_QueueSpu
	.comm	VLC_TICK_INVALID,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_ModuleThread_QueueSpu.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ModuleThread_QueueSpu, %function
ModuleThread_QueueSpu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r5, r1
	bl	assert
	mov	r0, r4
	bl	dec_get_owner
	mov	r4, r0
	ldr	r0, [r0, #8]
	add	r6, r4, #4
	bl	assert
	mov	r0, r6
	bl	vlc_mutex_lock
	ldr	r3, .L8
	ldr	r2, [r5]
	ldr	r1, [r3]
	cmp	r2, r1
	beq	.L2
	ldr	r3, [r4]
	cmp	r2, r3
	bge	.L2
	ldr	r2, [r5, #4]
	cmp	r3, r2
	movle	r3, #0
	movgt	r3, #1
	cmp	r1, r2
	orreq	r3, r3, #1
	cmp	r3, #0
	beq	.L2
	mov	r0, r6
	bl	vlc_mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	subpicture_Delete
.L2:
	mov	r0, r6
	bl	vlc_mutex_unlock
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	ModuleThread_PlaySpu
.L9:
	.align	2
.L8:
	.word	VLC_TICK_INVALID
	.size	ModuleThread_QueueSpu, .-ModuleThread_QueueSpu
	.comm	VLC_TICK_INVALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
