	.file	"extr_dec_sub.c_sub_preload.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sub_preload
	.type	sub_preload, @function
sub_preload:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 4[rdi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rdi, r12
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR [rbx], 1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR 20[rbx]
	mov	rsi, rbp
	mov	QWORD PTR [rsp], 0
	call	demux_read_packet_async@PLT
	test	eax, eax
	je	.L9
	mov	rsi, QWORD PTR [rsp]
	test	rsi, rsi
	je	.L5
	mov	rdi, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rdi]
	call	[QWORD PTR [rax]]
	mov	rdi, QWORD PTR [rsp]
	call	talloc_free@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR INFINITY[rip]
	call	mp_dispatch_queue_process@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r12
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sub_preload, .-sub_preload
	.comm	INFINITY,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_dec_sub.c_sub_preload.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sub_preload
	.syntax unified
	.arm
	.fpu softvfp
	.type	sub_preload, %function
sub_preload:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L11
	add	r7, r0, #4
	mov	r4, r0
	sub	sp, sp, #12
	mov	r0, r7
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	pthread_mutex_lock
	mov	r3, #1
	mov	r5, #0
	ldr	r6, .L11+4
	str	r3, [r4]
.L2:
	mov	r1, sp
	ldr	r0, [r4, #16]
	str	r5, [sp]
	bl	demux_read_packet_async
	cmp	r0, #0
	beq	.L9
	ldr	r1, [sp]
	cmp	r1, #0
	beq	.L5
	ldr	r0, [r4, #8]
	ldr	r3, [r0]
	ldr	r3, [r3]
	blx	r3
	ldr	r0, [sp]
	bl	talloc_free
	b	.L2
.L9:
	ldr	r1, [r6]
	ldr	r0, [r4, #12]
	bl	mp_dispatch_queue_process
	b	.L2
.L5:
	mov	r0, r7
	bl	pthread_mutex_unlock
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	INFINITY
	.size	sub_preload, .-sub_preload
	.comm	INFINITY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
