	.file	"extr_copyexec-data.c_flush_logevent_to_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%d bytes to logevent file from tr%d was written (%.4s)\n"
	.text
	.p2align 4
	.type	flush_logevent_to_file, @function
flush_logevent_to_file:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edx, 4
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rsi, QWORD PTR [rbx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdi, rsp
	call	memcpy@PLT
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR [rsp]
	lea	rdi, 32[rax]
	call	compute_crc32@PLT
	mov	edx, 4
	lea	rsi, 4[rsp]
	mov	DWORD PTR 4[rsp], eax
	mov	rax, QWORD PTR [rbx]
	lea	rdi, 16[rax]
	call	memcpy@PLT
	mov	eax, DWORD PTR [rsp]
	lea	edx, 8[rax]
	mov	DWORD PTR [rsp], edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rcx, QWORD PTR EINTR[rip]
	cmp	QWORD PTR errno[rip], rcx
	jne	.L4
.L3:
	mov	rsi, QWORD PTR [rbx]
	mov	edi, DWORD PTR fd_transaction_logevents[rip]
	call	write@PLT
	mov	edx, DWORD PTR [rsp]
	test	eax, eax
	js	.L9
.L4:
	xor	edi, edi
	cmp	eax, edx
	sete	dil
	call	assert@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR [rsp]
	mov	edi, 3
	mov	ecx, DWORD PTR cur_transaction_id[rip]
	lea	rsi, .LC0[rip]
	lea	r8, 8[rax]
	call	vkprintf@PLT
	mov	rdi, QWORD PTR [rbx]
	call	free@PLT
	mov	QWORD PTR [rbx], 0
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	flush_logevent_to_file, .-flush_logevent_to_file
	.comm	fd_transaction_logevents,4,4
	.comm	errno,8,8
	.comm	cur_transaction_id,4,4
	.comm	EINTR,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_copyexec-data.c_flush_logevent_to_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d bytes to logevent file from tr%d was written (%."
	.ascii	"4s)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flush_logevent_to_file, %function
flush_logevent_to_file:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0]
	sub	sp, sp, #24
	ldr	r3, .L10
	mov	r2, #4
	mov	r1, r5
	mov	r4, r0
	add	r0, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	memcpy
	ldr	r8, [sp, #12]
	add	r0, r5, #32
	mov	r1, r8
	bl	compute_crc32
	mov	r3, r0
	ldr	r0, [r4]
	mov	r2, #4
	add	r0, r0, #16
	add	r1, sp, #16
	str	r3, [sp, #16]
	ldr	r5, .L10+4
	bl	memcpy
	ldr	r7, .L10+8
	ldr	r6, .L10+12
	add	r8, r8, #8
	b	.L3
.L8:
	ldr	ip, [r7]
	ldr	r3, [r6]
	cmp	ip, r3
	bne	.L2
.L3:
	mov	r2, r8
	ldr	r1, [r4]
	ldr	r0, [r5]
	bl	write
	cmp	r0, #0
	blt	.L8
.L2:
	sub	r0, r8, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, [r4]
	ldr	r1, .L10+16
	add	r3, r3, #8
	str	r3, [sp]
	ldr	r3, [r1]
	mov	r2, r8
	ldr	r1, .L10+20
	mov	r0, #3
	bl	vkprintf
	ldr	r0, [r4]
	bl	free
	mov	r3, #0
	str	r3, [r4]
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	fd_transaction_logevents
	.word	errno
	.word	EINTR
	.word	cur_transaction_id
	.word	.LC0
	.size	flush_logevent_to_file, .-flush_logevent_to_file
	.comm	fd_transaction_logevents,4,4
	.comm	errno,4,4
	.comm	cur_transaction_id,4,4
	.comm	EINTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
