	.file	"extr_obs-ffmpeg-mux.c_replay_buffer_mux_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to create process pipe"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Could not write headers for file '%s'"
	.section	.rodata.str1.1
.LC2:
	.string	"Wrote replay buffer to '%s'"
	.text
	.p2align 4
	.type	replay_buffer_mux_thread, @function
replay_buffer_mux_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	esi, DWORD PTR 32[rdi]
	call	start_pipe@PLT
	cmp	QWORD PTR 24[rbp], 0
	je	.L12
	mov	rdi, rbp
	call	send_headers@PLT
	test	eax, eax
	je	.L4
	xor	ebx, ebx
	cmp	QWORD PTR 8[rbp], 0
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, rbp
	lea	r12, [rax+rbx*4]
	add	rbx, 1
	mov	rsi, r12
	call	write_packet@PLT
	mov	rdi, r12
	call	obs_encoder_packet_release@PLT
	cmp	QWORD PTR 8[rbp], rbx
	ja	.L5
.L6:
	mov	esi, DWORD PTR 32[rbp]
	lea	rdi, .LC2[rip]
	call	info@PLT
.L3:
	mov	rdi, QWORD PTR 24[rbp]
	call	os_process_pipe_destroy@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 16[rbp]
	mov	QWORD PTR 24[rbp], 0
	call	da_free@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	os_atomic_set_bool@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	warn@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR 32[rbp]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	warn@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	replay_buffer_mux_thread, .-replay_buffer_mux_thread
	.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_replay_buffer_mux_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to create process pipe\000"
	.align	2
.LC1:
	.ascii	"Could not write headers for file '%s'\000"
	.align	2
.LC2:
	.ascii	"Wrote replay buffer to '%s'\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	replay_buffer_mux_thread, %function
replay_buffer_mux_thread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r1, [r0, #16]
	bl	start_pipe
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L11
	mov	r0, r4
	bl	send_headers
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r4, #4]
	cmp	r3, #0
	movne	r6, #0
	beq	.L6
.L5:
	ldr	r5, [r4, #8]
	mov	r0, r4
	add	r5, r5, r6, lsl #2
	mov	r1, r5
	bl	write_packet
	mov	r0, r5
	bl	obs_encoder_packet_release
	ldr	r3, [r4, #4]
	add	r6, r6, #1
	cmp	r3, r6
	bhi	.L5
.L6:
	ldr	r1, [r4, #16]
	ldr	r0, .L12
	bl	info
.L3:
	mov	r5, #0
	ldr	r0, [r4, #12]
	bl	os_process_pipe_destroy
	ldmib	r4, {r0, r1}
	str	r5, [r4, #12]
	bl	da_free
	mov	r1, r5
	mov	r0, r4
	bl	os_atomic_set_bool
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r0, .L12+4
	bl	warn
	b	.L3
.L4:
	ldr	r1, [r4, #16]
	ldr	r0, .L12+8
	bl	warn
	b	.L3
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	replay_buffer_mux_thread, .-replay_buffer_mux_thread
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
