	.file	"extr_ff_ffplay.c_stream_close.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"wait for read_tid\n"
.LC1:
	.string	"wait for video_refresh_tid\n"
	.text
	.p2align 4
	.type	stream_close, @function
stream_close:
.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 [rdi]
	mov	DWORD PTR 0[rbp], 1
	lea	r13, 104[rbp]
	lea	r12, 100[rbp]
	mov	rdi, r13
	call	packet_queue_abort@PLT
	mov	rdi, r12
	call	packet_queue_abort@PLT
	mov	esi, DWORD PTR AV_LOG_DEBUG[rip]
	lea	rdx, .LC0[rip]
	xor	edi, edi
	call	av_log@PLT
	mov	edi, DWORD PTR 116[rbp]
	xor	esi, esi
	call	SDL_WaitThread@PLT
	mov	rsi, QWORD PTR 8[rbp]
	test	rsi, rsi
	js	.L2
	mov	rdi, rbx
	call	stream_component_close@PLT
.L2:
	mov	rsi, QWORD PTR 16[rbp]
	test	rsi, rsi
	js	.L3
	mov	rdi, rbx
	call	stream_component_close@PLT
.L3:
	mov	rsi, QWORD PTR 24[rbp]
	test	rsi, rsi
	js	.L4
	mov	rdi, rbx
	call	stream_component_close@PLT
.L4:
	lea	rdi, 112[rbp]
	call	avformat_close_input@PLT
	mov	esi, DWORD PTR AV_LOG_DEBUG[rip]
	lea	rdx, .LC1[rip]
	xor	edi, edi
	call	av_log@PLT
	mov	edi, DWORD PTR 108[rbp]
	xor	esi, esi
	call	SDL_WaitThread@PLT
	mov	rdi, r13
	call	packet_queue_destroy@PLT
	mov	rdi, r12
	call	packet_queue_destroy@PLT
	lea	rdi, 96[rbp]
	call	packet_queue_destroy@PLT
	lea	rdi, 92[rbp]
	call	frame_queue_destory@PLT
	lea	rdi, 88[rbp]
	call	frame_queue_destory@PLT
	lea	rdi, 84[rbp]
	call	frame_queue_destory@PLT
	mov	edi, DWORD PTR 80[rbp]
	call	SDL_DestroyCond@PLT
	mov	edi, DWORD PTR 76[rbp]
	call	SDL_DestroyCond@PLT
	mov	edi, DWORD PTR 72[rbp]
	call	SDL_DestroyCond@PLT
	mov	edi, DWORD PTR 68[rbp]
	call	SDL_DestroyMutex@PLT
	mov	edi, DWORD PTR 64[rbp]
	call	SDL_DestroyMutex@PLT
	mov	rdi, QWORD PTR 56[rbp]
	call	sws_freeContext@PLT
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	je	.L5
	mov	r8, QWORD PTR 16[rdi]
	test	r8, r8
	jne	.L16
	cmp	QWORD PTR 8[rdi], 0
	jne	.L17
.L7:
	call	av_freep@PLT
	lea	rdi, 8[rbx]
	call	av_freep@PLT
.L5:
	mov	rdi, QWORD PTR 32[rbp]
	call	av_free@PLT
	mov	rdi, rbp
	call	av_free@PLT
	mov	QWORD PTR [rbx], 0
	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
.L17:
	.cfi_restore_state
	add	rdi, 8
	call	avcodec_free_context@PLT
	mov	rdi, QWORD PTR 8[rbx]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r8
	call	sws_freeContext@PLT
	mov	rdi, QWORD PTR 8[rbx]
	cmp	QWORD PTR 8[rdi], 0
	je	.L7
	jmp	.L17
	.cfi_endproc
.LFE0:
	.size	stream_close, .-stream_close
	.comm	AV_LOG_DEBUG,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_ff_ffplay.c_stream_close.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wait for read_tid\012\000"
	.align	2
.LC1:
	.ascii	"wait for video_refresh_tid\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stream_close, %function
stream_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	mov	r3, #1
	mov	r6, r4
	str	r3, [r6], #72
	mov	r5, r0
	ldr	r8, .L21
	mov	r0, r6
	add	r7, r4, #68
	bl	packet_queue_abort
	mov	r0, r7
	bl	packet_queue_abort
	ldr	r1, [r8]
	ldr	r2, .L21+4
	mov	r0, #0
	bl	av_log
	mov	r1, #0
	ldr	r0, [r4, #84]
	bl	SDL_WaitThread
	ldr	r1, [r4, #4]
	cmp	r1, #0
	blt	.L2
	mov	r0, r5
	bl	stream_component_close
.L2:
	ldr	r1, [r4, #8]
	cmp	r1, #0
	blt	.L3
	mov	r0, r5
	bl	stream_component_close
.L3:
	ldr	r1, [r4, #12]
	cmp	r1, #0
	blt	.L4
	mov	r0, r5
	bl	stream_component_close
.L4:
	add	r0, r4, #80
	bl	avformat_close_input
	ldr	r2, .L21+8
	ldr	r1, [r8]
	mov	r0, #0
	bl	av_log
	mov	r1, #0
	ldr	r0, [r4, #76]
	bl	SDL_WaitThread
	mov	r0, r6
	bl	packet_queue_destroy
	mov	r0, r7
	bl	packet_queue_destroy
	add	r0, r4, #64
	bl	packet_queue_destroy
	add	r0, r4, #60
	bl	frame_queue_destory
	add	r0, r4, #56
	bl	frame_queue_destory
	add	r0, r4, #52
	bl	frame_queue_destory
	ldr	r0, [r4, #48]
	bl	SDL_DestroyCond
	ldr	r0, [r4, #44]
	bl	SDL_DestroyCond
	ldr	r0, [r4, #40]
	bl	SDL_DestroyCond
	ldr	r0, [r4, #36]
	bl	SDL_DestroyMutex
	ldr	r0, [r4, #32]
	bl	SDL_DestroyMutex
	ldr	r0, [r4, #28]
	bl	sws_freeContext
	ldr	r0, [r5, #4]
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r0, #8]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bne	.L20
.L7:
	bl	av_freep
	add	r0, r5, #4
	bl	av_freep
.L5:
	ldr	r0, [r4, #16]
	bl	av_free
	mov	r0, r4
	bl	av_free
	mov	r3, #0
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	add	r0, r0, #4
	bl	avcodec_free_context
	ldr	r0, [r5, #4]
	b	.L7
.L19:
	mov	r0, r3
	bl	sws_freeContext
	ldr	r0, [r5, #4]
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L7
	b	.L20
.L22:
	.align	2
.L21:
	.word	AV_LOG_DEBUG
	.word	.LC0
	.word	.LC1
	.size	stream_close, .-stream_close
	.comm	AV_LOG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
