	.file	"extr_obs-ffmpeg-output.c_new_stream.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Couldn't find encoder '%s'"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Couldn't create stream for encoder '%s'"
	.text
	.p2align 4
	.type	new_stream, @function
new_stream:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, ecx
	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
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	r8, r8
	je	.L2
	cmp	BYTE PTR [r8], 0
	jne	.L12
.L2:
	mov	edi, r12d
	call	avcodec_find_encoder@PLT
	mov	rsi, rax
	mov	QWORD PTR 0[r13], rsi
	test	rsi, rsi
	je	.L13
.L4:
	mov	rdi, QWORD PTR 0[rbp]
	call	avformat_new_stream@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L14
	mov	rdx, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR [rdx]
	sub	rdx, 1
	mov	QWORD PTR [rax], rdx
	mov	eax, 1
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L12:
	.cfi_restore_state
	mov	rdi, r8
	call	avcodec_find_encoder_by_name@PLT
	mov	rsi, rax
	mov	QWORD PTR 0[r13], rsi
	test	rsi, rsi
	jne	.L4
.L13:
	mov	edi, r12d
	call	avcodec_get_name@PLT
	mov	edi, DWORD PTR LOG_WARNING[rip]
	mov	rsi, rbp
	lea	rdx, .LC0[rip]
	mov	ecx, eax
	call	ffmpeg_log_error@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L14:
	.cfi_restore_state
	mov	edi, r12d
	call	avcodec_get_name@PLT
	mov	edi, DWORD PTR LOG_WARNING[rip]
	lea	rdx, .LC1[rip]
	mov	rsi, rbp
	mov	ecx, eax
	call	ffmpeg_log_error@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	new_stream, .-new_stream
	.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-ffmpeg-output.c_new_stream.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Couldn't find encoder '%s'\000"
	.align	2
.LC1:
	.ascii	"Couldn't create stream for encoder '%s'\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	new_stream, %function
new_stream:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, [sp, #24]
	mov	r5, r0
	cmp	ip, #0
	mov	r7, r1
	mov	r6, r2
	mov	r8, r3
	beq	.L2
	ldrb	r3, [ip]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L15
.L2:
	mov	r0, r8
	bl	avcodec_find_encoder
	mov	r4, r0
	cmp	r4, #0
	str	r4, [r6]
	beq	.L16
.L4:
	mov	r1, r4
	ldr	r0, [r5]
	bl	avformat_new_stream
	cmp	r0, #0
	mov	r4, r0
	str	r0, [r7]
	beq	.L17
	ldr	r3, [r5]
	mov	r0, #1
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r0, ip
	bl	avcodec_find_encoder_by_name
	mov	r4, r0
	cmp	r4, #0
	str	r4, [r6]
	bne	.L4
.L16:
	ldr	r3, .L18
	mov	r0, r8
	ldr	r6, [r3]
	bl	avcodec_get_name
	mov	r1, r5
	mov	r3, r0
	ldr	r2, .L18+4
	mov	r0, r6
	bl	ffmpeg_log_error
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, .L18
	mov	r0, r8
	ldr	r6, [r3]
	bl	avcodec_get_name
	mov	r1, r5
	mov	r3, r0
	ldr	r2, .L18+8
	mov	r0, r6
	bl	ffmpeg_log_error
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	LOG_WARNING
	.word	.LC0
	.word	.LC1
	.size	new_stream, .-new_stream
	.comm	LOG_WARNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
