	.file	"extr_obs-ffmpeg-mux.c_ffmpeg_mux_start.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"path"
.LC1:
	.string	"wb"
.LC2:
	.string	"UnableToWritePath"
.LC3:
	.string	"%1"
.LC4:
	.string	"HelperProcessFailed"
.LC5:
	.string	"Failed to create process pipe"
.LC6:
	.string	"Writing file '%s'..."
	.text
	.p2align 4
	.type	ffmpeg_mux_start, @function
ffmpeg_mux_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	esi, esi
	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, 24
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 4[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	obs_output_can_begin_data_capture@PLT
	test	eax, eax
	jne	.L2
.L12:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	xor	esi, esi
	call	obs_output_initialize_encoders@PLT
	test	eax, eax
	je	.L12
	mov	edi, DWORD PTR 4[rbx]
	call	obs_output_get_settings@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	obs_data_get_string@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	r12, rax
	call	os_fopen@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L15
	call	fclose@PLT
	mov	rdi, r12
	call	os_unlink@PLT
	mov	rsi, r12
	mov	rdi, rbx
	call	start_pipe@PLT
	mov	rdi, rbp
	call	obs_data_release@PLT
	mov	r12d, DWORD PTR 24[rbx]
	test	r12d, r12d
	je	.L16
	lea	rdi, 20[rbx]
	mov	esi, 1
	mov	r12d, 1
	call	os_atomic_set_bool@PLT
	lea	rdi, 16[rbx]
	mov	esi, 1
	call	os_atomic_set_bool@PLT
	mov	QWORD PTR 8[rbx], 0
	mov	edi, DWORD PTR 4[rbx]
	xor	esi, esi
	call	obs_output_begin_data_capture@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC6[rip]
	call	info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdi, .LC4[rip]
	call	obs_module_text@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	rsi, rax
	call	obs_output_set_last_error@PLT
	lea	rdi, .LC5[rip]
	call	warn@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC2[rip]
	mov	r13, rsp
	call	obs_module_text@PLT
	mov	rdi, r13
	mov	rsi, rax
	call	dstr_init_copy@PLT
	mov	rdx, r12
	mov	rdi, r13
	lea	rsi, .LC3[rip]
	call	dstr_replace@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	rsi, QWORD PTR [rsp]
	call	obs_output_set_last_error@PLT
	mov	rdi, r13
	call	dstr_free@PLT
	mov	rdi, rbp
	call	obs_data_release@PLT
	jmp	.L12
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ffmpeg_mux_start, .-ffmpeg_mux_start
	.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-ffmpeg-mux.c_ffmpeg_mux_start.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"path\000"
	.align	2
.LC1:
	.ascii	"wb\000"
	.align	2
.LC2:
	.ascii	"UnableToWritePath\000"
	.align	2
.LC3:
	.ascii	"%1\000"
	.align	2
.LC4:
	.ascii	"HelperProcessFailed\000"
	.align	2
.LC5:
	.ascii	"Failed to create process pipe\000"
	.align	2
.LC6:
	.ascii	"Writing file '%s'...\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ffmpeg_mux_start, %function
ffmpeg_mux_start:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L16
	sub	sp, sp, #12
	mov	r4, r0
	mov	r1, #0
	ldr	r0, [r0, #4]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	obs_output_can_begin_data_capture
	cmp	r0, #0
	bne	.L2
.L4:
	mov	r5, #0
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r1, #0
	ldr	r0, [r4, #4]
	bl	obs_output_initialize_encoders
	cmp	r0, #0
	beq	.L4
	ldr	r0, [r4, #4]
	bl	obs_output_get_settings
	ldr	r1, .L16+4
	mov	r7, r0
	bl	obs_data_get_string
	ldr	r1, .L16+8
	mov	r6, r0
	bl	os_fopen
	subs	r5, r0, #0
	beq	.L14
	bl	fclose
	mov	r0, r6
	bl	os_unlink
	mov	r1, r6
	mov	r0, r4
	bl	start_pipe
	mov	r0, r7
	bl	obs_data_release
	ldr	r5, [r4, #20]
	cmp	r5, #0
	beq	.L15
	mov	r1, #1
	add	r0, r4, #16
	bl	os_atomic_set_bool
	mov	r1, #1
	add	r0, r4, #12
	bl	os_atomic_set_bool
	mov	r1, #0
	ldr	r0, [r4, #4]
	str	r1, [r4, #8]
	bl	obs_output_begin_data_capture
	ldr	r1, [r4]
	ldr	r0, .L16+12
	bl	info
	mov	r5, #1
	b	.L1
.L15:
	ldr	r0, .L16+16
	ldr	r4, [r4, #4]
	bl	obs_module_text
	mov	r1, r0
	mov	r0, r4
	bl	obs_output_set_last_error
	ldr	r0, .L16+20
	bl	warn
	b	.L1
.L14:
	ldr	r0, .L16+24
	bl	obs_module_text
	mov	r1, r0
	mov	r0, sp
	bl	dstr_init_copy
	mov	r2, r6
	mov	r0, sp
	ldr	r1, .L16+28
	bl	dstr_replace
	ldr	r1, [sp]
	ldr	r0, [r4, #4]
	bl	obs_output_set_last_error
	mov	r0, sp
	bl	dstr_free
	mov	r0, r7
	bl	obs_data_release
	b	.L1
.L13:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.size	ffmpeg_mux_start, .-ffmpeg_mux_start
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
