	.file	"extr_index.c_ce_flush.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ce_flush, @function
ce_flush:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	ebp, DWORD PTR [rdi]
	mov	r8, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 20
	test	ebp, ebp
	jne	.L13
.L2:
	mov	esi, ebp
	lea	r13d, 20[rbp]
	add	rsi, r8
	cmp	r13d, DWORD PTR WRITE_BUFFER_SIZE[rip]
	jbe	.L4
	mov	edx, ebp
	mov	rsi, r8
	mov	edi, r12d
	call	writen@PLT
	cmp	eax, ebp
	jne	.L7
	mov	rsi, QWORD PTR 8[rbx]
	mov	r13d, 20
.L4:
	mov	edi, DWORD PTR 16[rbx]
	lea	rdx, 4[rsp]
	call	g_checksum_get_digest@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	edx, r13d
	mov	edi, r12d
	call	writen@PLT
	cmp	eax, r13d
	setne	al
	movzx	eax, al
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.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
.L13:
	.cfi_restore_state
	mov	DWORD PTR [rdi], 0
	mov	edi, DWORD PTR 16[rdi]
	mov	rsi, r8
	mov	edx, ebp
	call	g_checksum_update@PLT
	mov	r8, QWORD PTR 8[rbx]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, -1
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ce_flush, .-ce_flush
	.comm	WRITE_BUFFER_SIZE,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_index.c_ce_flush.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ce_flush, %function
ce_flush:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #20
	push	{r4, r5, r6, r7, lr}
	ldr	r5, [r0]
	ldr	r2, .L14
	sub	sp, sp, #12
	cmp	r5, #0
	mov	r6, r1
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r4, r0
	ldr	r1, [r0, #4]
	str	r3, [sp]
	bne	.L12
.L2:
	ldr	r3, .L14+4
	add	r7, r5, #20
	ldr	r3, [r3]
	cmp	r7, r3
	bls	.L3
	mov	r2, r5
	mov	r0, r6
	bl	writen
	cmp	r0, r5
	bne	.L6
	mov	r7, #20
	mov	r5, #0
	ldr	r1, [r4, #4]
.L3:
	mov	r2, sp
	add	r1, r1, r5
	ldr	r0, [r4, #8]
	bl	g_checksum_get_digest
	mov	r2, r7
	mov	r0, r6
	ldr	r1, [r4, #4]
	bl	writen
	subs	r0, r0, r7
	mvnne	r0, #0
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	mov	r3, #0
	mov	r2, r5
	str	r3, [r0]
	ldr	r0, [r0, #8]
	bl	g_checksum_update
	ldr	r1, [r4, #4]
	b	.L2
.L6:
	mvn	r0, #0
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	WRITE_BUFFER_SIZE
	.size	ce_flush, .-ce_flush
	.comm	WRITE_BUFFER_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
