	.file	"extr_Memory.c_BufToFile.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BufToFile
	.type	BufToFile, @function
BufToFile:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MD5_SIZE[rip]
	mov	rcx, rsp
	mov	r13, rax
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L21:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L21
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L22
.L4:
	mov	r14, rsp
	test	r12, r12
	je	.L8
	test	rbx, rbx
	je	.L8
	mov	rsi, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	rdi, r14
	call	Md5@PLT
	mov	edi, DWORD PTR [rbx]
	call	Endian32@PLT
	lea	rsi, -44[rbp]
	mov	edx, 4
	mov	rdi, r12
	mov	DWORD PTR -44[rbp], eax
	call	FileWrite@PLT
	test	eax, eax
	je	.L8
	lea	edx, 0[0+r13*4]
	mov	rsi, r14
	mov	rdi, r12
	call	FileWrite@PLT
	test	eax, eax
	jne	.L23
.L8:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR -40[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L24
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rsi, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	rdi, r12
	call	FileWrite@PLT
	test	eax, eax
	setne	al
	movzx	eax, al
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	BufToFile, .-BufToFile
	.comm	MD5_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_Memory.c_BufToFile.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	BufToFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	BufToFile, %function
BufToFile:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	cmp	r1, #0
	cmpne	r0, #0
	ldr	r3, .L15
	ldr	r4, [r3]
	lsl	r4, r4, #2
	add	r3, r4, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L15+4
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bne	.L2
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L2:
	mov	r7, sp
	mov	r5, r1
	ldr	r2, [r1]
	mov	r6, r0
	ldr	r1, [r1, #4]
	mov	r0, r7
	bl	Md5
	ldr	r0, [r5]
	bl	Endian32
	mov	r3, r0
	mov	r2, #4
	mov	r0, r6
	sub	r1, fp, #28
	str	r3, [fp, #-28]
	bl	FileWrite
	cmp	r0, #0
	beq	.L4
	mov	r2, r4
	mov	r1, r7
	mov	r0, r6
	bl	FileWrite
	cmp	r0, #0
	beq	.L4
	mov	r0, r6
	ldr	r2, [r5]
	ldr	r1, [r5, #4]
	bl	FileWrite
	subs	r0, r0, #0
	movne	r0, #1
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	MD5_SIZE
	.word	.LC0
	.size	BufToFile, .-BufToFile
	.comm	MD5_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
