	.file	"extr_lists-log-split.c_flush_out.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"error writing to %s: %d bytes written out of %d: %m\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d bytes written to %s\n"
	.text
	.p2align 4
	.globl	flush_out
	.type	flush_out, @function
flush_out:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	ebx, DWORD PTR wptr[rip]
	sub	ebx, DWORD PTR wst[rip]
	mov	edi, ebx
	not	edi
	shr	edi, 31
	call	assert@PLT
	test	ebx, ebx
	jne	.L2
.L6:
	mov	eax, DWORD PTR WB[rip]
	mov	DWORD PTR wst[rip], eax
	mov	DWORD PTR wptr[rip], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR wst[rip]
	mov	edi, DWORD PTR targ_fd[rip]
	mov	edx, ebx
	call	write@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L4
	add	DWORD PTR true_wr_bytes[rip], eax
.L4:
	cmp	ebx, r12d
	jg	.L9
.L5:
	cmp	QWORD PTR verbosity[rip], 0
	jle	.L6
	mov	rcx, QWORD PTR targ_fname[rip]
	mov	edi, DWORD PTR stderr[rip]
	mov	edx, r12d
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, QWORD PTR targ_fname[rip]
	mov	r8d, ebx
	mov	ecx, r12d
	xor	eax, eax
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	edi, 3
	call	exit@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	flush_out, .-flush_out
	.comm	wst,4,4
	.comm	wptr,4,4
	.comm	verbosity,8,8
	.comm	true_wr_bytes,4,4
	.comm	targ_fname,8,8
	.comm	targ_fd,4,4
	.comm	stderr,4,4
	.comm	WB,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_lists-log-split.c_flush_out.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error writing to %s: %d bytes written out of %d: %m"
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"%d bytes written to %s\012\000"
	.text
	.align	2
	.global	flush_out
	.syntax unified
	.arm
	.fpu softvfp
	.type	flush_out, %function
flush_out:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r7, .L10
	ldr	r5, .L10+4
	ldr	r4, [r7]
	ldr	r2, [r5]
	sub	sp, sp, #12
	sub	r4, r4, r2
	mvn	r0, r4
	lsr	r0, r0, #31
	bl	assert
	cmp	r4, #0
	bne	.L2
.L6:
	ldr	r3, .L10+8
	ldr	r3, [r3]
	str	r3, [r5]
	str	r3, [r7]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L10+12
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, [r5]
	bl	write
	subs	r6, r0, #0
	ldrgt	r2, .L10+16
	ldrgt	r3, [r2]
	addgt	r3, r3, r6
	strgt	r3, [r2]
	cmp	r4, r6
	bgt	.L9
.L5:
	ldr	r3, .L10+20
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L6
	ldr	r1, .L10+24
	ldr	r3, .L10+28
	mov	r2, r6
	ldr	r3, [r3]
	ldr	r0, [r1]
	ldr	r1, .L10+32
	bl	fprintf
	b	.L6
.L9:
	ldr	r3, .L10+24
	ldr	r2, .L10+28
	str	r4, [sp]
	ldr	r2, [r2]
	ldr	r0, [r3]
	ldr	r1, .L10+36
	mov	r3, r6
	bl	fprintf
	mov	r0, #3
	bl	exit
	b	.L5
.L11:
	.align	2
.L10:
	.word	wptr
	.word	wst
	.word	WB
	.word	targ_fd
	.word	true_wr_bytes
	.word	verbosity
	.word	stderr
	.word	targ_fname
	.word	.LC1
	.word	.LC0
	.size	flush_out, .-flush_out
	.comm	wst,4,4
	.comm	wptr,4,4
	.comm	verbosity,4,4
	.comm	true_wr_bytes,4,4
	.comm	targ_fname,4,4
	.comm	targ_fd,4,4
	.comm	stderr,4,4
	.comm	WB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
