	.file	"extr_obs-output.c_obs_output_end_data_capture_internal.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"obs_output_end_data_capture"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Failed to create end_data_capture_thread for output '%s'!"
	.text
	.p2align 4
	.type	obs_output_end_data_capture_internal, @function
obs_output_end_data_capture_internal:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	obs_output_valid@PLT
	test	eax, eax
	jne	.L32
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	rdi, rbx
	call	active@PLT
	test	eax, eax
	je	.L7
	mov	rdi, rbx
	call	data_active@PLT
	test	eax, eax
	jne	.L33
.L7:
	test	ebp, ebp
	je	.L1
	mov	rdi, rbx
	call	signal_stop@PLT
	mov	rax, QWORD PTR OBS_OUTPUT_SUCCESS[rip]
	mov	QWORD PTR [rbx], rax
.L10:
	mov	edi, DWORD PTR 36[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	os_event_signal@PLT
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	mov	rdi, rbx
	call	delay_active@PLT
	test	rax, rax
	je	.L9
	lea	rdi, 48[rbx]
	xor	esi, esi
	call	os_atomic_set_bool@PLT
	lea	rdi, 44[rbx]
	call	os_atomic_load_long@PLT
	test	eax, eax
	jne	.L10
	lea	rdi, 40[rbx]
	xor	esi, esi
	call	os_atomic_set_bool@PLT
.L9:
	xor	esi, esi
	lea	rdi, 32[rbx]
	call	os_atomic_set_bool@PLT
	cmp	QWORD PTR 24[rbx], 0
	jne	.L34
.L11:
	mov	rdi, rbx
	call	data_capture_ending@PLT
	test	rax, rax
	jne	.L35
.L12:
	lea	rdi, 16[rbx]
	mov	esi, 1
	call	os_atomic_set_bool@PLT
	xor	esi, esi
	lea	rdi, 12[rbx]
	mov	rcx, rbx
	mov	rdx, QWORD PTR end_data_capture_thread@GOTPCREL[rip]
	call	pthread_create@PLT
	test	eax, eax
	jne	.L36
.L13:
	test	ebp, ebp
	je	.L1
	mov	rdi, rbx
	call	signal_stop@PLT
	mov	rax, QWORD PTR OBS_OUTPUT_SUCCESS[rip]
	mov	QWORD PTR [rbx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edx, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR LOG_WARNING[rip]
	lea	rsi, .LC1[rip]
	call	blog@PLT
	mov	rdi, rbx
	call	end_data_capture_thread@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L35:
	mov	edi, DWORD PTR 12[rbx]
	xor	esi, esi
	call	pthread_join@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdi, rbx
	call	log_frame_info@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	obs_output_end_data_capture_internal, .-obs_output_end_data_capture_internal
	.comm	OBS_OUTPUT_SUCCESS,8,8
	.comm	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_obs-output.c_obs_output_end_data_capture_internal.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"obs_output_end_data_capture\000"
	.align	2
.LC1:
	.ascii	"Failed to create end_data_capture_thread for output"
	.ascii	" '%s'!\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	obs_output_end_data_capture_internal, %function
obs_output_end_data_capture_internal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r1, .L39
	mov	r4, r0
	bl	obs_output_valid
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	bl	active
	cmp	r0, #0
	beq	.L7
	mov	r0, r4
	bl	data_active
	cmp	r0, #0
	bne	.L35
.L7:
	cmp	r5, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	bl	signal_stop
	ldr	r3, .L39+4
	ldr	r0, [r4, #24]
	ldr	r3, [r3]
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	os_event_signal
.L35:
	mov	r0, r4
	bl	delay_active
	cmp	r0, #0
	beq	.L9
	mov	r1, #0
	add	r0, r4, #36
	bl	os_atomic_set_bool
	add	r0, r4, #32
	bl	os_atomic_load_long
	subs	r1, r0, #0
	bne	.L10
	add	r0, r4, #28
	bl	os_atomic_set_bool
.L9:
	mov	r1, #0
	add	r0, r4, #20
	bl	os_atomic_set_bool
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L36
.L11:
	mov	r0, r4
	bl	data_capture_ending
	cmp	r0, #0
	bne	.L37
.L12:
	mov	r1, #1
	add	r0, r4, #12
	bl	os_atomic_set_bool
	mov	r3, r4
	mov	r1, #0
	ldr	r2, .L39+8
	add	r0, r4, #8
	bl	pthread_create
	cmp	r0, #0
	bne	.L38
.L13:
	cmp	r5, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	bl	signal_stop
	ldr	r3, .L39+4
	ldr	r3, [r3]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r0, [r4, #24]
	pop	{r4, r5, r6, lr}
	b	os_event_signal
.L36:
	mov	r0, r4
	bl	log_frame_info
	b	.L11
.L38:
	ldr	r3, .L39+12
	ldr	r2, [r4, #4]
	ldr	r0, [r3]
	ldr	r1, .L39+16
	bl	blog
	mov	r0, r4
	bl	end_data_capture_thread
	b	.L13
.L37:
	mov	r1, #0
	ldr	r0, [r4, #8]
	bl	pthread_join
	b	.L12
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	OBS_OUTPUT_SUCCESS
	.word	end_data_capture_thread
	.word	LOG_WARNING
	.word	.LC1
	.size	obs_output_end_data_capture_internal, .-obs_output_end_data_capture_internal
	.comm	OBS_OUTPUT_SUCCESS,4,4
	.comm	LOG_WARNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
