	.file	"extr_pthread_frame.c_ff_thread_finish_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Multiple ff_thread_finish_setup() calls\n"
	.text
	.p2align 4
	.globl	ff_thread_finish_setup
	.type	ff_thread_finish_setup, @function
ff_thread_finish_setup:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR FF_THREAD_FRAME[rip], eax
	je	.L1
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 16[rdi]
	mov	rbx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rdi]
	test	rax, rax
	je	.L4
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	je	.L15
.L5:
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR HWACCEL_CAP_ASYNC_SAFE[rip], eax
	je	.L16
.L4:
	lea	r12, 8[rbx]
	lea	r13, 16[rbx]
	mov	rdi, r12
	call	pthread_mutex_lock@PLT
	mov	rdi, r13
	call	atomic_load@PLT
	mov	rsi, QWORD PTR STATE_SETUP_FINISHED[rip]
	cmp	rax, rsi
	je	.L17
.L7:
	mov	rdi, r13
	call	atomic_store@PLT
	lea	rdi, 12[rbx]
	call	pthread_cond_broadcast@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	pthread_mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	DWORD PTR 4[rbx], 1
	mov	rdi, QWORD PTR 24[rbx]
	call	async_lock@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, QWORD PTR 24[rbx]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR [rbx], 1
	test	rax, rax
	jne	.L5
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR AV_LOG_WARNING[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	call	av_log@PLT
	mov	rsi, QWORD PTR STATE_SETUP_FINISHED[rip]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	ff_thread_finish_setup, .-ff_thread_finish_setup
	.comm	STATE_SETUP_FINISHED,8,8
	.comm	HWACCEL_CAP_ASYNC_SAFE,4,4
	.comm	FF_THREAD_FRAME,4,4
	.comm	AV_LOG_WARNING,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_pthread_frame.c_ff_thread_finish_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Multiple ff_thread_finish_setup() calls\012\000"
	.text
	.align	2
	.global	ff_thread_finish_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_thread_finish_setup, %function
ff_thread_finish_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L18
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	bxeq	lr
	ldr	r3, [r0, #4]
	ldr	r2, [r0, #8]
	cmp	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r5, [r2]
	beq	.L4
	ldr	r2, [r5]
	cmp	r2, #0
	beq	.L15
.L5:
	ldr	r1, .L18+4
	ldr	r2, [r3]
	ldr	r3, [r1]
	tst	r2, r3
	beq	.L16
.L4:
	add	r6, r5, #8
	mov	r0, r6
	add	r7, r5, #16
	bl	pthread_mutex_lock
	mov	r0, r7
	bl	atomic_load
	ldr	r8, .L18+8
	ldr	r1, [r8]
	cmp	r0, r1
	beq	.L17
.L7:
	mov	r0, r7
	bl	atomic_store
	add	r0, r5, #12
	bl	pthread_cond_broadcast
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	pthread_mutex_unlock
.L16:
	mov	r3, #1
	ldr	r0, [r5, #20]
	str	r3, [r5, #4]
	bl	async_lock
	b	.L4
.L15:
	ldr	r0, [r5, #20]
	bl	pthread_mutex_lock
	mov	r2, #1
	ldr	r3, [r4, #4]
	str	r2, [r5]
	cmp	r3, #0
	bne	.L5
	b	.L4
.L17:
	ldr	r3, .L18+12
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, .L18+16
	bl	av_log
	ldr	r1, [r8]
	b	.L7
.L19:
	.align	2
.L18:
	.word	FF_THREAD_FRAME
	.word	HWACCEL_CAP_ASYNC_SAFE
	.word	STATE_SETUP_FINISHED
	.word	AV_LOG_WARNING
	.word	.LC0
	.size	ff_thread_finish_setup, .-ff_thread_finish_setup
	.comm	STATE_SETUP_FINISHED,4,4
	.comm	HWACCEL_CAP_ASYNC_SAFE,4,4
	.comm	FF_THREAD_FRAME,4,4
	.comm	AV_LOG_WARNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
