	.file	"764294.c"
	.intel_syntax noprefix
	.text
#APP
	.symver fcntl64,fcntl@GLIBC_2.2.5
	.symver __xstat,__xstat@GLIBC_2.2.5
	.symver __fxstat,__fxstat@GLIBC_2.2.5
#NO_APP
	.globl	stat_glibcwrapper
	.type	stat_glibcwrapper, @function
stat_glibcwrapper:
.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	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	__xstat@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	stat_glibcwrapper, .-stat_glibcwrapper
	.globl	fstat_glibcwrapper
	.type	fstat_glibcwrapper, @function
fstat_glibcwrapper:
.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	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 1
	call	__fxstat@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fstat_glibcwrapper, .-fstat_glibcwrapper
	.section	.rodata
	.align 8
.LC0:
	.string	"fcntl64 workaround got unknown F_XXX constant"
	.align 8
.LC1:
	.string	"fcntl64 hack can't use glibc flock directly"
	.text
	.globl	__wrap_fcntl64
	.type	__wrap_fcntl64, @function
__wrap_fcntl64:
.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, 240
	mov	DWORD PTR -228[rbp], edi
	mov	DWORD PTR -232[rbp], esi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L6
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L6:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 16
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	cmp	DWORD PTR -232[rbp], 7
	ja	.L7
	mov	eax, DWORD PTR -232[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L9[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L9[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L9:
	.long	.L7-.L9
	.long	.L24-.L9
	.long	.L25-.L9
	.long	.L24-.L9
	.long	.L25-.L9
	.long	.L26-.L9
	.long	.L26-.L9
	.long	.L26-.L9
	.text
.L7:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 45
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	jmp	.L16
.L24:
	nop
.L16:
	mov	edx, DWORD PTR -232[rbp]
	mov	eax, DWORD PTR -228[rbp]
	mov	esi, edx
	mov	edi, eax
	mov	eax, 0
	call	fcntl64@PLT
	jmp	.L22
.L25:
	nop
.L17:
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 47
	ja	.L20
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, DWORD PTR -208[rbp]
	mov	edx, edx
	add	rax, rdx
	mov	edx, DWORD PTR -208[rbp]
	add	edx, 8
	mov	DWORD PTR -208[rbp], edx
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -200[rbp], rdx
.L21:
	mov	edx, DWORD PTR [rax]
	mov	ecx, DWORD PTR -232[rbp]
	mov	eax, DWORD PTR -228[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	fcntl64@PLT
	mov	DWORD PTR -212[rbp], eax
	mov	eax, DWORD PTR -212[rbp]
	jmp	.L22
.L26:
	nop
.L18:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	rcx, QWORD PTR -184[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	__wrap_fcntl64, .-__wrap_fcntl64
	.globl	FILE_GetSize
	.type	FILE_GetSize, @function
FILE_GetSize:
.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, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -184[rbp], 0
	je	.L28
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	DWORD PTR -164[rbp], eax
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat_glibcwrapper
	test	eax, eax
	jne	.L28
	mov	rax, QWORD PTR -112[rbp]
	jmp	.L30
.L28:
	mov	eax, 0
.L30:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	FILE_GetSize, .-FILE_GetSize
	.globl	FILE_Lock
	.type	FILE_Lock, @function
FILE_Lock:
.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, 112
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -84[rbp], edx
	mov	QWORD PTR -96[rbp], rcx
	mov	QWORD PTR -104[rbp], r8
	mov	DWORD PTR -88[rbp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L33
	cmp	QWORD PTR -72[rbp], 0
	jne	.L33
	mov	eax, 1
	jmp	.L34
.L33:
	cmp	DWORD PTR -84[rbp], 0
	je	.L35
	cmp	DWORD PTR -84[rbp], 2
	sete	al
	movzx	eax, al
	jmp	.L36
.L35:
	mov	eax, 2
.L36:
	mov	WORD PTR -48[rbp], ax
	mov	WORD PTR -46[rbp], 0
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -32[rbp], rax
	call	getpid@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	QWORD PTR -80[rbp], 0
	je	.L37
	mov	rax, QWORD PTR -80[rbp]
	jmp	.L38
.L37:
	mov	rax, QWORD PTR -72[rbp]
.L38:
	mov	rdi, rax
	call	fileno@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -88[rbp], 0
	je	.L39
	mov	ecx, 7
	jmp	.L40
.L39:
	mov	ecx, 6
.L40:
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	cmp	eax, -1
	setne	al
	movzx	eax, al
.L34:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	FILE_Lock, .-FILE_Lock
	.globl	FILE_set_buffered
	.type	FILE_set_buffered, @function
FILE_set_buffered:
.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	cmp	QWORD PTR -8[rbp], 0
	je	.L43
	cmp	DWORD PTR -20[rbp], 0
	je	.L44
	mov	edx, 0
	jmp	.L45
.L44:
	mov	edx, 2
.L45:
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, 0
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
.L43:
	cmp	QWORD PTR -16[rbp], 0
	je	.L49
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	je	.L49
	cmp	DWORD PTR -20[rbp], 0
	je	.L47
	mov	edx, 0
	jmp	.L48
.L47:
	mov	edx, 2
.L48:
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, 0
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
.L49:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	FILE_set_buffered, .-FILE_set_buffered
	.globl	FILE_FileExists
	.type	FILE_FileExists, @function
FILE_FileExists:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -168[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L51
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat_glibcwrapper
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L52
	mov	eax, 64
	jmp	.L54
.L52:
	mov	eax, 1
	jmp	.L54
.L51:
	mov	eax, 0
.L54:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	FILE_FileExists, .-FILE_FileExists
	.globl	FILE_FileGetSize
	.type	FILE_FileGetSize, @function
FILE_FileGetSize:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -164[rbp], 0
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat_glibcwrapper
	test	eax, eax
	jne	.L57
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -192[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -164[rbp], 1
.L57:
	mov	eax, DWORD PTR -164[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L59
	call	__stack_chk_fail@PLT
.L59:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	FILE_FileGetSize, .-FILE_FileGetSize
	.globl	FILE_FileGetStats
	.type	FILE_FileGetStats, @function
FILE_FileGetStats:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -164[rbp], 0
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat_glibcwrapper
	test	eax, eax
	jne	.L61
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR -136[rbp]
	shr	eax, 8
	and	eax, 64
	mov	edx, eax
	mov	rax, QWORD PTR -192[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	DWORD PTR -164[rbp], 1
.L61:
	mov	eax, DWORD PTR -164[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	FILE_FileGetStats, .-FILE_FileGetStats
	.globl	FILE_FileFixCase
	.type	FILE_FileFixCase, @function
FILE_FileFixCase:
.LFB15:
	.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, 47
	mov	esi, 92
	mov	rdi, rax
	call	__ecereNameSpace__ecere__sys__ChangeCh@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	FILE_FileFixCase, .-FILE_FileFixCase
	.section	.rodata
.LC2:
	.string	"rb"
.LC3:
	.string	"wb"
.LC4:
	.string	"ab"
.LC5:
	.string	"r+b"
.LC6:
	.string	"w+b"
.LC7:
	.string	"a+b"
	.text
	.globl	FILE_FileOpen
	.type	FILE_FileOpen, @function
FILE_FileOpen:
.LFB16:
	.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	cmp	DWORD PTR -12[rbp], 6
	ja	.L74
	mov	eax, DWORD PTR -12[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L68[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L68[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L68:
	.long	.L74-.L68
	.long	.L73-.L68
	.long	.L72-.L68
	.long	.L71-.L68
	.long	.L70-.L68
	.long	.L69-.L68
	.long	.L67-.L68
	.text
.L73:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	jmp	.L66
.L72:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
	jmp	.L66
.L71:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
	jmp	.L66
.L70:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L66
.L69:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L66
.L67:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	nop
.L66:
.L74:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	FILE_FileOpen, .-FILE_FileOpen
	.globl	FILE_Seek64
	.type	FILE_Seek64, @function
FILE_Seek64:
.LFB17:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	edx, DWORD PTR -20[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	FILE_Seek64, .-FILE_Seek64
	.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	"764294.c"
	.text
	.syntax divided
	.symver fcntl64,fcntl@GLIBC_2.2.5
	.symver __xstat,__xstat@GLIBC_2.2.5
	.symver __fxstat,__fxstat@GLIBC_2.2.5
	.arm
	.syntax unified
	.align	2
	.global	stat_glibcwrapper
	.syntax unified
	.arm
	.fpu softvfp
	.type	stat_glibcwrapper, %function
stat_glibcwrapper:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	__xstat
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	stat_glibcwrapper, .-stat_glibcwrapper
	.align	2
	.global	fstat_glibcwrapper
	.syntax unified
	.arm
	.fpu softvfp
	.type	fstat_glibcwrapper, %function
fstat_glibcwrapper:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	__fxstat
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fstat_glibcwrapper, .-fstat_glibcwrapper
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fcntl64 workaround got unknown F_XXX constant\000"
	.align	2
.LC1:
	.ascii	"fcntl64 hack can't use glibc flock directly\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	__wrap_fcntl64
	.syntax unified
	.arm
	.fpu softvfp
	.type	__wrap_fcntl64, %function
__wrap_fcntl64:
	@ args = 4, pretend = 12, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #28
	str	r0, [fp, #-28]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-20]
	ldr	r3, [fp, #4]
	sub	r3, r3, #1
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L21
	.word	.L22
	.word	.L21
	.word	.L22
	.word	.L23
	.word	.L23
	.word	.L23
.L6:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #45
	mov	r1, #1
	ldr	r0, .L24+8
	bl	fwrite
	b	.L15
.L21:
	nop
.L15:
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-28]
	bl	fcntl64
	mov	r3, r0
	b	.L19
.L22:
	nop
.L16:
	ldr	r3, [fp, #-20]
	add	r2, r3, #4
	str	r2, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-28]
	bl	fcntl64
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	b	.L19
.L23:
	nop
.L17:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L24+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L19:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-12]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #12
	bx	lr
.L25:
	.align	2
.L24:
	.word	.LC2
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	__wrap_fcntl64, .-__wrap_fcntl64
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FILE_GetSize
	.syntax unified
	.arm
	.fpu softvfp
	.type	FILE_GetSize, %function
FILE_GetSize:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L27
	ldr	r0, [fp, #-112]
	bl	fileno
	str	r0, [fp, #-104]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	fstat_glibcwrapper
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-56]
	b	.L29
.L27:
	mov	r3, #0
.L29:
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC3
	.size	FILE_GetSize, .-FILE_GetSize
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FILE_Lock
	.syntax unified
	.arm
	.fpu softvfp
	.type	FILE_Lock, %function
FILE_Lock:
	@ args = 20, pretend = 0, frame = 40
	@ 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]
	str	r2, [fp, #-40]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L34
	mov	r3, #1
	b	.L35
.L34:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	lsl	r3, r3, #16
	asr	r3, r3, #16
	b	.L37
.L36:
	mov	r3, #2
.L37:
	strh	r3, [fp, #-24]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r3, [fp, #4]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-16]
	bl	getpid
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-36]
	b	.L39
.L38:
	ldr	r3, [fp, #-32]
.L39:
	mov	r0, r3
	bl	fileno
	str	r0, [fp, #-28]
	ldr	r3, [fp, #20]
	cmp	r3, #0
	beq	.L40
	mov	r3, #7
	b	.L41
.L40:
	mov	r3, #6
.L41:
	sub	r2, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	fcntl
	mov	r3, r0
	cmn	r3, #1
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
.L35:
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC4
	.size	FILE_Lock, .-FILE_Lock
	.align	2
	.global	FILE_set_buffered
	.syntax unified
	.arm
	.fpu softvfp
	.type	FILE_set_buffered, %function
FILE_set_buffered:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L47
	mov	r2, #0
	b	.L48
.L47:
	mov	r2, #2
.L48:
	mov	r3, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	setvbuf
.L46:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L52
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L52
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L50
	mov	r2, #0
	b	.L51
.L50:
	mov	r2, #2
.L51:
	mov	r3, #0
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	setvbuf
.L52:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	FILE_set_buffered, .-FILE_set_buffered
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FILE_FileExists
	.syntax unified
	.arm
	.fpu softvfp
	.type	FILE_FileExists, %function
FILE_FileExists:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, [fp, #-104]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	stat_glibcwrapper
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L55
	mov	r3, #64
	b	.L57
.L55:
	mov	r3, #1
	b	.L57
.L54:
	mov	r3, #0
.L57:
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC5
	.size	FILE_FileExists, .-FILE_FileExists
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FILE_FileGetSize
	.syntax unified
	.arm
	.fpu softvfp
	.type	FILE_FileGetSize, %function
FILE_FileGetSize:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-104]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat_glibcwrapper
	mov	r3, r0
	cmp	r3, #0
	bne	.L62
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r3, [fp, #-116]
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-104]
.L62:
	ldr	r3, [fp, #-104]
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC6
	.size	FILE_FileGetSize, .-FILE_FileGetSize
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FILE_FileGetStats
	.syntax unified
	.arm
	.fpu softvfp
	.type	FILE_FileGetStats, %function
FILE_FileGetStats:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-104]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat_glibcwrapper
	mov	r3, r0
	cmp	r3, #0
	bne	.L68
	ldr	r3, [fp, #-56]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-116]
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r3, [fp, #-84]
	lsr	r3, r3, #8
	and	r2, r3, #64
	ldr	r3, [fp, #-116]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-116]
	str	r2, [r1, #16]
	str	r3, [r1, #20]
	ldr	r1, [fp, #-116]
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #32]
	str	r3, [r1, #36]
	ldr	r3, [fp, #-36]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-116]
	str	r2, [r1, #24]
	str	r3, [r1, #28]
	mov	r3, #1
	str	r3, [fp, #-104]
.L68:
	ldr	r3, [fp, #-104]
	ldr	r2, .L71
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L70
	bl	__stack_chk_fail
.L70:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC7
	.size	FILE_FileGetStats, .-FILE_FileGetStats
	.align	2
	.global	FILE_FileFixCase
	.syntax unified
	.arm
	.fpu softvfp
	.type	FILE_FileFixCase, %function
FILE_FileFixCase:
	@ 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, #47
	mov	r1, #92
	ldr	r0, [fp, #-8]
	bl	__ecereNameSpace__ecere__sys__ChangeCh
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	FILE_FileFixCase, .-FILE_FileFixCase
	.section	.rodata
	.align	2
.LC8:
	.ascii	"rb\000"
	.align	2
.LC9:
	.ascii	"wb\000"
	.align	2
.LC10:
	.ascii	"ab\000"
	.align	2
.LC11:
	.ascii	"r+b\000"
	.align	2
.LC12:
	.ascii	"w+b\000"
	.align	2
.LC13:
	.ascii	"a+b\000"
	.text
	.align	2
	.global	FILE_FileOpen
	.syntax unified
	.arm
	.fpu softvfp
	.type	FILE_FileOpen, %function
FILE_FileOpen:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L83
.L77:
	.word	.L82
	.word	.L81
	.word	.L80
	.word	.L79
	.word	.L78
	.word	.L76
.L82:
	ldr	r1, .L84
	ldr	r0, [fp, #-8]
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	b	.L75
.L81:
	ldr	r1, .L84+4
	ldr	r0, [fp, #-8]
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	b	.L75
.L80:
	ldr	r1, .L84+8
	ldr	r0, [fp, #-8]
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	b	.L75
.L79:
	ldr	r1, .L84+12
	ldr	r0, [fp, #-8]
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	b	.L75
.L78:
	ldr	r1, .L84+16
	ldr	r0, [fp, #-8]
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	b	.L75
.L76:
	ldr	r1, .L84+20
	ldr	r0, [fp, #-8]
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	nop
.L75:
.L83:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	FILE_FileOpen, .-FILE_FileOpen
	.align	2
	.global	FILE_Seek64
	.syntax unified
	.arm
	.fpu softvfp
	.type	FILE_Seek64, %function
FILE_Seek64:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #4]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	fseek
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	FILE_Seek64, .-FILE_Seek64
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
