	.file	"extr_cycle.c_AddStream.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"starting new phase \"%s\""
	.text
	.p2align 4
	.type	AddStream, @function
AddStream:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdx, rsi
	mov	r12, rsi
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rbp, QWORD PTR 8[rdi]
	call	msg_Dbg@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	xor	ecx, ecx
	mov	rsi, r12
	call	sout_StreamChainNew@PLT
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	je	.L5
	mov	rbx, QWORD PTR 8[rbp]
	mov	rdi, rax
	test	rbx, rbx
	jne	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR 0[rbp]
.L3:
	mov	rsi, rbx
	call	sout_StreamIdAdd@PLT
	mov	DWORD PTR 4[rbx], eax
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	jne	.L12
.L4:
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	AddStream, .-AddStream
	.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_cycle.c_AddStream.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"starting new phase \"%s\"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	AddStream, %function
AddStream:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r6, r1
	mov	r2, r1
	ldr	r1, .L13
	ldr	r5, [r0, #8]
	bl	msg_Dbg
	mov	r1, r6
	mov	r3, #0
	ldr	r2, [r4]
	ldr	r0, [r4, #4]
	bl	sout_StreamChainNew
	cmp	r0, #0
	str	r0, [r5]
	beq	.L5
	ldr	r4, [r5, #4]
	cmp	r4, #0
	bne	.L3
	b	.L4
.L12:
	ldr	r0, [r5]
.L3:
	mov	r1, r4
	bl	sout_StreamIdAdd
	str	r0, [r4, #4]
	ldr	r4, [r4, #8]
	cmp	r4, #0
	bne	.L12
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	AddStream, .-AddStream
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
