	.file	"109306.c"
	.intel_syntax noprefix
	.text
	.globl	OpenFile
	.type	OpenFile, @function
OpenFile:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 384
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	OpenFile, .-OpenFile
	.globl	CloseFile
	.type	CloseFile, @function
CloseFile:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	CloseFile, .-CloseFile
	.globl	WriteFileByFd
	.type	WriteFileByFd, @function
WriteFileByFd:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ftruncate@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	edx, DWORD PTR -36[rbp]
	mov	r9d, 0
	mov	r8d, edx
	mov	ecx, 1
	mov	edx, 3
	mov	rsi, rax
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L8
	mov	eax, 1
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	msync@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	je	.L9
	mov	eax, DWORD PTR -16[rbp]
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -12[rbp]
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	WriteFileByFd, .-WriteFileByFd
	.globl	WriteFile
	.type	WriteFile, @function
WriteFile:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	OpenFile
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L11
	mov	eax, 1
	jmp	.L12
.L11:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	WriteFileByFd
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	CloseFile
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L13
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -4[rbp]
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	WriteFile, .-WriteFile
	.section	.rodata
.LC0:
	.string	"1"
	.text
	.globl	AppendFileByFd
	.type	AppendFileByFd, @function
AppendFileByFd:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -212[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	je	.L15
	mov	eax, DWORD PTR -196[rbp]
	jmp	.L21
.L15:
	mov	rax, QWORD PTR -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -192[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -192[rbp]
	add	eax, edx
	mov	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -192[rbp]
	sub	eax, 1
	movsx	rcx, eax
	mov	eax, DWORD PTR -212[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	DWORD PTR -184[rbp], eax
	cmp	DWORD PTR -184[rbp], 0
	jns	.L17
	mov	eax, DWORD PTR -184[rbp]
	jmp	.L21
.L17:
	mov	eax, DWORD PTR -212[rbp]
	mov	edx, 1
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	jg	.L18
	mov	eax, 1
	jmp	.L21
.L18:
	mov	eax, DWORD PTR -188[rbp]
	cdqe
	mov	edx, DWORD PTR -212[rbp]
	mov	r9d, 0
	mov	r8d, edx
	mov	ecx, 1
	mov	edx, 3
	mov	rsi, rax
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], -1
	jne	.L19
	mov	eax, 1
	jmp	.L21
.L19:
	mov	eax, DWORD PTR -192[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -112[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -168[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -224[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -188[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	msync@PLT
	mov	DWORD PTR -176[rbp], eax
	mov	eax, DWORD PTR -188[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L20
	mov	eax, DWORD PTR -176[rbp]
	jmp	.L21
.L20:
	mov	eax, DWORD PTR -172[rbp]
.L21:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	AppendFileByFd, .-AppendFileByFd
	.globl	AppendFile
	.type	AppendFile, @function
AppendFile:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	OpenFile
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L24
	mov	eax, 1
	jmp	.L25
.L24:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	AppendFileByFd
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	CloseFile
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L26
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -4[rbp]
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	AppendFile, .-AppendFile
	.globl	ReadFile
	.type	ReadFile, @function
ReadFile:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -200[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	jns	.L28
	mov	eax, 0
	jmp	.L33
.L28:
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L30
	mov	eax, DWORD PTR -180[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L33
.L30:
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rax
	mov	eax, DWORD PTR -180[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], -1
	jne	.L31
	mov	eax, DWORD PTR -180[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L33
.L31:
	mov	eax, DWORD PTR -180[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	je	.L32
	mov	eax, 0
	jmp	.L33
.L32:
	mov	rax, QWORD PTR -168[rbp]
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	ReadFile, .-ReadFile
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"109306.c"
	.text
	.align	2
	.global	OpenFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	OpenFile, %function
OpenFile:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r2, #384
	mov	r1, #66
	ldr	r0, [fp, #-8]
	bl	open
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	OpenFile, .-OpenFile
	.align	2
	.global	CloseFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	CloseFile, %function
CloseFile:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	close
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	CloseFile, .-CloseFile
	.align	2
	.global	WriteFileByFd
	.syntax unified
	.arm
	.fpu softvfp
	.type	WriteFileByFd, %function
WriteFileByFd:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-32]
	bl	ftruncate
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-20]
	b	.L7
.L6:
	ldr	r1, [fp, #-24]
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L8
	mov	r3, #1
	b	.L7
.L8:
	ldr	r3, [fp, #-24]
	mov	r2, r3
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-16]
	bl	memcpy
	ldr	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	msync
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	munmap
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-12]
	b	.L7
.L9:
	ldr	r3, [fp, #-8]
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	WriteFileByFd, .-WriteFileByFd
	.align	2
	.global	WriteFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	WriteFile, %function
WriteFile:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	OpenFile
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L11
	mov	r3, #1
	b	.L12
.L11:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	WriteFileByFd
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	CloseFile
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-12]
	b	.L12
.L13:
	ldr	r3, [fp, #-8]
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	WriteFile, .-WriteFile
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	AppendFileByFd
	.syntax unified
	.arm
	.fpu softvfp
	.type	AppendFileByFd, %function
AppendFileByFd:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	fstat
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-132]
	b	.L21
.L15:
	ldr	r0, [fp, #-140]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-128]
	add	r3, r2, r3
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-128]
	sub	r3, r3, #1
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	lseek
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bge	.L17
	ldr	r3, [fp, #-120]
	b	.L21
.L17:
	mov	r2, #1
	ldr	r1, .L23+4
	ldr	r0, [fp, #-136]
	bl	write
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bgt	.L18
	mov	r3, #1
	b	.L21
.L18:
	ldr	r1, [fp, #-124]
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-136]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	bne	.L19
	mov	r3, #1
	b	.L21
.L19:
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r3, [fp, #-112]
	add	r3, r3, r2
	ldr	r2, [fp, #-128]
	ldr	r1, [fp, #-140]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-124]
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	msync
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-124]
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	munmap
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-108]
	b	.L21
.L20:
	ldr	r3, [fp, #-104]
.L21:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	.LC0
	.size	AppendFileByFd, .-AppendFileByFd
	.align	2
	.global	AppendFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	AppendFile, %function
AppendFile:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	OpenFile
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L26
	mov	r3, #1
	b	.L27
.L26:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	AppendFileByFd
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	CloseFile
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-12]
	b	.L27
.L28:
	ldr	r3, [fp, #-8]
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	AppendFile, .-AppendFile
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ReadFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReadFile, %function
ReadFile:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-120]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #2
	ldr	r0, [fp, #-120]
	bl	open
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bge	.L30
	mov	r3, #0
	b	.L35
.L30:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	fstat
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L32
	ldr	r0, [fp, #-116]
	bl	close
	mov	r3, #0
	b	.L35
.L32:
	ldr	r3, [fp, #-56]
	mov	r1, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-116]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmn	r3, #1
	bne	.L33
	ldr	r0, [fp, #-116]
	bl	close
	mov	r3, #0
	b	.L35
.L33:
	ldr	r0, [fp, #-116]
	bl	close
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L34
	mov	r3, #0
	b	.L35
.L34:
	ldr	r3, [fp, #-108]
.L35:
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC2
	.size	ReadFile, .-ReadFile
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
