	.file	"extr_bspc.c_AASOuputFile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	".aas"
.LC1:
	.string	"pk3"
.LC2:
	.string	"pak"
.LC3:
	.string	"sin"
.LC4:
	.string	"maps"
.LC5:
	.string	"aas"
	.text
	.p2align 4
	.globl	AASOuputFile
	.type	AASOuputFile, @function
AASOuputFile:
.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	r14, rsi
	push	r13
	push	r12
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbx
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rcx, rsp
	mov	r13, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L34:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L34
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L35
	mov	rdi, r14
	call	strlen@PLT
	test	eax, eax
	jne	.L36
.L5:
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, rsp
	call	ExtractFileExtension@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, rsp
	call	stricmp@PLT
	test	eax, eax
	je	.L9
	lea	rsi, .LC2[rip]
	mov	rdi, rsp
	call	stricmp@PLT
	test	eax, eax
	jne	.L37
.L9:
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, r12
	call	strcpy@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r12
	call	strlen@PLT
	cdqe
	cmp	BYTE PTR -1[r12+rax], 92
	je	.L14
	mov	rdi, r12
	call	strlen@PLT
	cdqe
	cmp	BYTE PTR -1[r12+rax], 47
	je	.L14
	mov	rdi, r12
	call	strlen@PLT
	cdqe
	mov	BYTE PTR -1[r12+rax], 0
.L8:
	mov	rdi, r12
	call	strlen@PLT
	test	eax, eax
	jne	.L11
.L14:
	lea	rsi, .LC4[rip]
	mov	rdi, r12
	call	strcat@PLT
	mov	esi, 4
	mov	rdi, r12
	call	access@PLT
	test	rax, rax
	jne	.L38
.L13:
	mov	esi, DWORD PTR MAX_PATH[rip]
	mov	rdi, r12
	call	AppendPathSeperator@PLT
	mov	rdi, r12
	call	strlen@PLT
	mov	edi, DWORD PTR 8[rbx]
	movsx	rsi, eax
	add	rsi, r12
	call	ExtractFileBase@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	strcat@PLT
.L16:
	mov	rsp, r13
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L39
	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
.L36:
	.cfi_restore_state
	mov	rsi, r14
	mov	rdi, r12
	call	strcpy@PLT
	mov	esi, DWORD PTR MAX_PATH[rip]
	mov	rdi, r12
	call	AppendPathSeperator@PLT
	mov	rdi, r12
	call	strlen@PLT
	mov	edi, DWORD PTR 8[rbx]
	movsx	rsi, eax
	add	rsi, r12
	call	ExtractFileBase@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	strcat@PLT
	mov	rsp, r13
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rdi, r12
	call	CreatePath@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L35:
	or	QWORD PTR -8[rsp+rdx], 0
	mov	rdi, r14
	call	strlen@PLT
	test	eax, eax
	je	.L5
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L37:
	lea	rsi, .LC3[rip]
	mov	rdi, rsp
	call	stricmp@PLT
	test	eax, eax
	je	.L9
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, r12
	call	strcpy@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, r12
	call	strlen@PLT
	cdqe
	cmp	BYTE PTR -1[r12+rax], 46
	je	.L20
	mov	rdi, r12
	call	strlen@PLT
	cdqe
	mov	BYTE PTR -1[r12+rax], 0
.L17:
	mov	rdi, r12
	call	strlen@PLT
	test	eax, eax
	jne	.L18
.L20:
	lea	rsi, .LC5[rip]
	mov	rdi, r12
	call	strcat@PLT
	jmp	.L16
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	AASOuputFile, .-AASOuputFile
	.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_bspc.c_AASOuputFile.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	".aas\000"
	.align	2
.LC1:
	.ascii	"pk3\000"
	.align	2
.LC2:
	.ascii	"pak\000"
	.align	2
.LC3:
	.ascii	"sin\000"
	.align	2
.LC4:
	.ascii	"maps\000"
	.align	2
.LC5:
	.ascii	"aas\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	AASOuputFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	AASOuputFile, %function
AASOuputFile:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #12
	ldr	r7, .L37
	ldrb	r5, [r1]	@ zero_extendqisi2
	ldr	r3, [r7]
	mov	r4, r2
	add	r3, r3, #7
	ldr	r2, .L37+4
	bic	r3, r3, #7
	cmp	r5, #0
	mov	r8, sp
	mov	r6, r0
	ldr	r2, [r2]
	str	r2, [fp, #-32]
	mov	r2,#0
	sub	sp, sp, r3
	bne	.L34
	mov	r1, sp
	ldr	r0, [r0]
	bl	ExtractFileExtension
	mov	r0, sp
	ldr	r1, .L37+8
	bl	stricmp
	cmp	r0, #0
	bne	.L4
.L7:
	mov	r0, r4
	ldr	r1, [r6]
	bl	strcpy
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L6
	mov	r5, #0
	b	.L5
.L11:
	strb	r5, [r4, r0]
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L6
.L5:
	mov	r0, r4
	bl	strlen
	sub	r0, r0, #1
	ldrb	r3, [r4, r0]	@ zero_extendqisi2
	cmp	r3, #47
	cmpne	r3, #92
	bne	.L11
.L6:
	mov	r0, r4
	bl	strlen
	mov	r2, #5
	ldr	r1, .L37+12
	add	r0, r4, r0
	bl	memcpy
	mov	r1, #4
	mov	r0, r4
	bl	access
	cmp	r0, #0
	bne	.L35
.L10:
	ldr	r1, [r7]
	mov	r0, r4
	bl	AppendPathSeperator
	mov	r0, r4
	bl	strlen
	mov	r1, r0
	ldr	r0, [r6, #4]
	add	r1, r4, r1
	bl	ExtractFileBase
	mov	r0, r4
	bl	strlen
	mov	r2, #5
	ldr	r1, .L37+16
	add	r0, r4, r0
	bl	memcpy
.L12:
	mov	sp, r8
.L1:
	ldr	r3, .L37+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L4:
	mov	r0, sp
	ldr	r1, .L37+20
	bl	stricmp
	cmp	r0, #0
	beq	.L7
	mov	r0, sp
	ldr	r1, .L37+24
	bl	stricmp
	cmp	r0, #0
	beq	.L7
	mov	r0, r4
	ldr	r1, [r6]
	bl	strcpy
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
	b	.L14
.L15:
	strb	r5, [r4, r0]
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L14
.L13:
	mov	r0, r4
	bl	strlen
	sub	r0, r0, #1
	ldrb	r3, [r4, r0]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L15
.L14:
	mov	r0, r4
	bl	strlen
	mov	r2, #4
	ldr	r1, .L37+28
	add	r0, r4, r0
	bl	memcpy
	b	.L12
.L35:
	mov	r0, r4
	bl	CreatePath
	b	.L10
.L34:
	mov	r0, r4
	bl	strcpy
	ldr	r1, [r7]
	mov	r0, r4
	bl	AppendPathSeperator
	mov	r0, r4
	bl	strlen
	mov	r1, r0
	ldr	r0, [r6, #4]
	add	r1, r4, r1
	bl	ExtractFileBase
	mov	r0, r4
	bl	strlen
	mov	r2, #5
	ldr	r1, .L37+16
	add	r0, r4, r0
	bl	memcpy
	mov	sp, r8
	b	.L1
.L36:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	MAX_PATH
	.word	.LC6
	.word	.LC1
	.word	.LC4
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC5
	.size	AASOuputFile, .-AASOuputFile
	.comm	MAX_PATH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
