	.file	"extr_FileIO.c_MakeSafeFileName.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"__"
.LC1:
	.string	".."
.LC2:
	.string	"_"
.LC3:
	.string	"/"
.LC4:
	.string	"\\"
.LC5:
	.string	"@"
.LC6:
	.string	"|"
	.text
	.p2align 4
	.globl	MakeSafeFileName
	.type	MakeSafeFileName, @function
MakeSafeFileName:
.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
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rsi, rsp
	mov	rbx, rsp
	mov	r12, rax
	add	rax, 15
	mov	rcx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rcx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L17
.L4:
	test	r13, r13
	je	.L14
	test	rdx, rdx
	je	.L14
	mov	esi, r12d
	mov	rdi, rsp
	call	StrCpy@PLT
	xor	r9d, r9d
	mov	rdx, rsp
	mov	esi, r12d
	lea	r8, .LC0[rip]
	lea	rcx, .LC1[rip]
	mov	rdi, rsp
	call	ReplaceStrEx@PLT
	xor	r9d, r9d
	mov	rdx, rsp
	mov	esi, r12d
	lea	r8, .LC2[rip]
	lea	rcx, .LC3[rip]
	mov	rdi, rsp
	call	ReplaceStrEx@PLT
	xor	r9d, r9d
	mov	rdx, rsp
	mov	esi, r12d
	lea	r8, .LC2[rip]
	lea	rcx, .LC4[rip]
	mov	rdi, rsp
	call	ReplaceStrEx@PLT
	xor	r9d, r9d
	mov	rdx, rsp
	mov	esi, r12d
	lea	r8, .LC2[rip]
	lea	rcx, .LC5[rip]
	mov	rdi, rsp
	call	ReplaceStrEx@PLT
	mov	rdx, rsp
	mov	esi, r12d
	mov	rdi, rsp
	xor	r9d, r9d
	lea	r8, .LC2[rip]
	lea	rcx, .LC6[rip]
	call	ReplaceStrEx@PLT
	mov	rdx, rsp
	mov	esi, r14d
	mov	rdi, r13
	call	StrCpy@PLT
.L14:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, rbx
	jne	.L18
	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
.L17:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	MakeSafeFileName, .-MakeSafeFileName
	.comm	MAX_PATH,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_FileIO.c_MakeSafeFileName.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"..\000"
	.align	2
.LC1:
	.ascii	"__\000"
	.align	2
.LC2:
	.ascii	"/\000"
	.align	2
.LC3:
	.ascii	"_\000"
	.align	2
.LC4:
	.ascii	"\\\000"
	.align	2
.LC5:
	.ascii	"@\000"
	.align	2
.LC6:
	.ascii	"|\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	MakeSafeFileName
	.syntax unified
	.arm
	.fpu softvfp
	.type	MakeSafeFileName, %function
MakeSafeFileName:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	clz	r4, r2
	add	fp, sp, #32
	sub	sp, sp, #20
	cmp	r0, #0
	lsr	r4, r4, #5
	moveq	r4, #1
	ldr	r3, .L9
	mov	r7, sp
	ldr	r6, [r3]
	cmp	r4, #0
	add	r3, r6, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L9+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bne	.L6
	mov	r9, r1
	mov	r8, r0
	add	r5, sp, #8
	mov	r1, r6
	mov	r0, r5
	bl	StrCpy
	ldr	r3, .L9+8
	ldr	r10, .L9+12
	mov	r2, r5
	mov	r1, r6
	stm	sp, {r3, r4}
	mov	r0, r5
	ldr	r3, .L9+16
	bl	ReplaceStrEx
	mov	r2, r5
	mov	r1, r6
	ldr	r3, .L9+20
	mov	r0, r5
	str	r4, [sp, #4]
	str	r10, [sp]
	bl	ReplaceStrEx
	mov	r2, r5
	mov	r1, r6
	ldr	r3, .L9+24
	mov	r0, r5
	str	r10, [sp]
	str	r4, [sp, #4]
	bl	ReplaceStrEx
	mov	r2, r5
	mov	r1, r6
	ldr	r3, .L9+28
	mov	r0, r5
	str	r10, [sp]
	str	r4, [sp, #4]
	bl	ReplaceStrEx
	mov	r1, r6
	mov	r2, r5
	mov	r0, r5
	ldr	r3, .L9+32
	str	r10, [sp]
	str	r4, [sp, #4]
	bl	ReplaceStrEx
	mov	r2, r5
	mov	r1, r9
	mov	r0, r8
	bl	StrCpy
.L6:
	ldr	r3, .L9+4
	mov	sp, r7
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	MAX_PATH
	.word	.LC7
	.word	.LC1
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	MakeSafeFileName, .-MakeSafeFileName
	.comm	MAX_PATH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
