	.file	"extr_targ-index.c_flushout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	flushout
	.type	flushout, @function
flushout:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR wptr[rip]
	mov	rdx, QWORD PTR wptr0[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	cmp	rax, rdx
	jle	.L2
	mov	ecx, eax
	sub	ecx, edx
	add	DWORD PTR write_pos[rip], ecx
	add	DWORD PTR metafile_pos[rip], ecx
.L2:
	mov	rsi, QWORD PTR rptr[rip]
	cmp	rax, rsi
	jg	.L8
.L3:
	mov	rax, QWORD PTR Buff[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	QWORD PTR wptr_crc[rip], rax
	mov	QWORD PTR wptr0[rip], rax
	mov	QWORD PTR wptr[rip], rax
	mov	QWORD PTR rptr[rip], rax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	ebx, eax
	mov	edi, DWORD PTR newidx_fd[rip]
	sub	ebx, esi
	mov	edx, ebx
	call	write@PLT
	xor	edi, edi
	cmp	ebx, eax
	sete	dil
	call	assert@PLT
	mov	rax, QWORD PTR wptr_crc[rip]
	xor	edi, edi
	cmp	QWORD PTR rptr[rip], rax
	jg	.L4
	xor	edi, edi
	cmp	rax, QWORD PTR wptr[rip]
	setle	dil
.L4:
	call	assert@PLT
	mov	rdi, QWORD PTR wptr_crc[rip]
	mov	rsi, QWORD PTR wptr[rip]
	mov	edx, DWORD PTR crc32_acc[rip]
	sub	rsi, rdi
	call	crc32_partial@PLT
	mov	DWORD PTR crc32_acc[rip], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	flushout, .-flushout
	.comm	write_pos,4,4
	.comm	wptr_crc,8,8
	.comm	wptr0,8,8
	.comm	wptr,8,8
	.comm	rptr,8,8
	.comm	newidx_fd,4,4
	.comm	metafile_pos,4,4
	.comm	crc32_acc,4,4
	.comm	Buff,8,8
	.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_targ-index.c_flushout.c"
	.text
	.align	2
	.global	flushout
	.syntax unified
	.arm
	.fpu softvfp
	.type	flushout, %function
flushout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L10
	ldr	r7, .L10+4
	ldr	r2, [r5]
	ldr	r3, [r7]
	cmp	r2, r3
	ble	.L2
	ldr	lr, .L10+8
	ldr	ip, .L10+12
	ldr	r0, [lr]
	ldr	r1, [ip]
	sub	r3, r2, r3
	add	r0, r0, r3
	add	r3, r1, r3
	str	r0, [lr]
	str	r3, [ip]
.L2:
	ldr	r6, .L10+16
	ldr	r1, [r6]
	cmp	r2, r1
	bgt	.L7
	ldr	r8, .L10+20
.L3:
	ldr	r3, .L10+24
	ldr	r3, [r3]
	str	r3, [r8]
	str	r3, [r7]
	str	r3, [r5]
	str	r3, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L10+28
	sub	r4, r2, r1
	ldr	r0, [r3]
	mov	r2, r4
	bl	write
	sub	r0, r4, r0
	clz	r0, r0
	ldr	r8, .L10+20
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r8]
	ldr	r3, [r6]
	cmp	r3, r0
	movgt	r0, #0
	bgt	.L4
	ldr	r3, [r5]
	cmp	r0, r3
	movgt	r0, #0
	movle	r0, #1
.L4:
	bl	assert
	ldr	r4, .L10+32
	ldr	r0, [r8]
	ldr	r1, [r5]
	ldr	r2, [r4]
	sub	r1, r1, r0
	bl	crc32_partial
	str	r0, [r4]
	b	.L3
.L11:
	.align	2
.L10:
	.word	wptr
	.word	wptr0
	.word	write_pos
	.word	metafile_pos
	.word	rptr
	.word	wptr_crc
	.word	Buff
	.word	newidx_fd
	.word	crc32_acc
	.size	flushout, .-flushout
	.comm	write_pos,4,4
	.comm	wptr_crc,4,4
	.comm	wptr0,4,4
	.comm	wptr,4,4
	.comm	rptr,4,4
	.comm	newidx_fd,4,4
	.comm	metafile_pos,4,4
	.comm	crc32_acc,4,4
	.comm	Buff,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
