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