	.file	"extr_livehttp.c_Write.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Moving ongoing segment to full segments-queue"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Error in write loop"
	.text
	.p2align 4
	.type	Write, @function
Write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR [rdi]
	test	rsi, rsi
	je	.L8
	mov	r14, rdi
	mov	rbp, rsi
	lea	r15, 24[rbx]
	xor	r13d, r13d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r12, QWORD PTR 8[rbp]
	lea	rdi, 8[rbx]
	mov	rsi, rbp
	add	r13, rax
	mov	QWORD PTR 8[rbp], 0
	call	block_ChainLastAppend@PLT
	test	r12, r12
	je	.L15
	mov	rbp, r12
.L7:
	cmp	QWORD PTR 16[rbx], 0
	je	.L3
	cmp	QWORD PTR 32[rbx], 0
	jne	.L4
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR BLOCK_FLAG_HEADER[rip], eax
	je	.L3
.L4:
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	msg_Dbg@PLT
	mov	rsi, QWORD PTR 16[rbx]
	mov	rdi, r15
	call	block_ChainLastAppend@PLT
	lea	rax, 16[rbx]
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], rax
	mov	DWORD PTR [rbx], 1
.L3:
	mov	rsi, rbp
	mov	rdi, r14
	call	CheckSegmentChange@PLT
	mov	r12, rax
	test	rax, rax
	jns	.L5
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	msg_Err@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	r12, r13
	jmp	.L1
.L8:
	xor	r12d, r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	Write, .-Write
	.comm	BLOCK_FLAG_HEADER,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_livehttp.c_Write.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Moving ongoing segment to full segments-queue\000"
	.align	2
.LC1:
	.ascii	"Error in write loop\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Write, %function
Write:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r4, r1, #0
	ldr	fp, [r0]
	sub	sp, sp, #12
	beq	.L8
	add	r3, fp, #12
	mov	r7, r0
	mov	r6, #0
	ldr	r10, .L19
	ldr	r8, .L19+4
	str	r3, [sp, #4]
	b	.L7
.L5:
	mov	r2, #0
	ldr	r9, [r4, #4]
	mov	r1, r4
	str	r2, [r4, #4]
	bl	block_ChainLastAppend
	cmp	r9, #0
	add	r6, r6, r5
	beq	.L18
	mov	r4, r9
.L7:
	ldr	r3, [fp, #8]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #16]
	cmp	r3, #0
	bne	.L4
	ldr	r2, [r4]
	ldr	r3, [r8]
	tst	r2, r3
	beq	.L3
.L4:
	mov	r1, r10
	mov	r0, r7
	bl	msg_Dbg
	ldr	r1, [fp, #8]
	ldr	r0, [sp, #4]
	bl	block_ChainLastAppend
	mov	r3, fp
	mov	r1, #0
	mov	r2, #1
	str	r1, [r3, #8]!
	stm	fp, {r2, r3}
.L3:
	mov	r1, r4
	mov	r0, r7
	bl	CheckSegmentChange
	mov	r5, r0
	cmp	r5, #0
	add	r0, fp, #4
	bge	.L5
	mov	r0, r7
	ldr	r1, .L19+8
	bl	msg_Err
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r5, r6
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r5, r4
	b	.L1
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	BLOCK_FLAG_HEADER
	.word	.LC1
	.size	Write, .-Write
	.comm	BLOCK_FLAG_HEADER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
