	.file	"extr_shaders.c_BeginMapShaderFile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s/../%s/q3map2_%s.shader"
.LC1:
	.string	"Map has shader script %s\n"
	.text
	.p2align 4
	.globl	BeginMapShaderFile
	.type	BeginMapShaderFile, @function
BeginMapShaderFile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 1048
	.cfi_def_cfa_offset 1072
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1032[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR mapName[rip]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR mapShaderFile[rip]
	mov	BYTE PTR [rax], 0
	test	rdi, rdi
	je	.L1
	cmp	BYTE PTR [rdi], 0
	jne	.L18
.L1:
	mov	rax, QWORD PTR 1032[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 1048
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	r12, rsp
	mov	rsi, rdi
	mov	rdi, r12
	call	strcpy@PLT
	mov	rdi, r12
	call	StripExtension@PLT
	mov	rdi, r12
	call	strlen@PLT
	movsx	rbx, eax
	lea	eax, -1[rbx]
	test	eax, eax
	jle	.L3
	cdqe
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	dl, 92
	je	.L7
	sub	rax, 1
	test	eax, eax
	jle	.L3
.L4:
	movzx	edx, BYTE PTR [r12+rax]
	movsx	rbx, eax
	cmp	dl, 47
	jne	.L20
.L7:
	lea	esi, 1[rbx]
	mov	rdi, QWORD PTR mapName[rip]
	movsx	rsi, esi
	add	rsi, r12
	call	strcpy@PLT
	mov	rax, QWORD PTR game[rip]
	mov	BYTE PTR [rsp+rbx], 0
	mov	rdx, r12
	mov	r8, QWORD PTR mapName[rip]
	mov	rdi, QWORD PTR mapShaderFile[rip]
	lea	rsi, .LC0[rip]
	mov	rcx, QWORD PTR [rax]
	call	sprintf@PLT
	mov	rdx, QWORD PTR mapShaderFile[rip]
	mov	edi, DWORD PTR SYS_VRB[rip]
	lea	rsi, .LC1[rip]
	call	Sys_FPrintf@PLT
	mov	rdi, QWORD PTR mapShaderFile[rip]
	call	remove@PLT
	mov	eax, DWORD PTR qfalse[rip]
	mov	DWORD PTR warnImage[rip], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR mapName[rip]
	lea	rsi, [r12+rbx]
	call	strcpy@PLT
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	BeginMapShaderFile, .-BeginMapShaderFile
	.comm	warnImage,4,4
	.comm	qfalse,4,4
	.comm	mapShaderFile,8,8
	.comm	mapName,8,8
	.comm	game,8,8
	.comm	SYS_VRB,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_shaders.c_BeginMapShaderFile.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s/../%s/q3map2_%s.shader\000"
	.align	2
.LC1:
	.ascii	"Map has shader script %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	BeginMapShaderFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	BeginMapShaderFile, %function
BeginMapShaderFile:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r7, .L21
	ldr	r1, .L21+4
	ldr	r2, [r7]
	sub	sp, sp, #1040
	ldr	r6, .L21+8
	sub	sp, sp, #4
	ldr	r1, [r1]
	str	r1, [sp, #1036]
	mov	r1,#0
	strb	r3, [r2]
	ldr	r2, [r6]
	subs	r1, r0, #0
	strb	r3, [r2]
	beq	.L1
	ldrb	r3, [r1]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L19
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #1036]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #1040
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L19:
	add	r0, sp, #12
	bl	strcpy
	add	r0, sp, #12
	bl	StripExtension
	add	r0, sp, #12
	bl	strlen
	sub	r5, r0, #1
	cmp	r5, #0
	mov	r1, r0
	ble	.L3
	add	r3, sp, #12
	add	r0, r3, r0
	b	.L4
.L5:
	subs	r5, r5, #1
	beq	.L9
.L4:
	ldrb	r3, [r0, #-1]!	@ zero_extendqisi2
	cmp	r3, #47
	cmpne	r3, #92
	movne	r4, #1
	moveq	r4, #0
	bne	.L5
	add	r3, sp, #12
	add	r1, r5, #1
	add	r1, r3, r1
	ldr	r0, [r7]
	bl	strcpy
	ldr	r3, .L21+12
	add	r2, sp, #1040
	ldr	r3, [r3]
	ldr	r1, [r7]
	add	r5, r2, r5
	strb	r4, [r5, #-1028]
	ldr	r3, [r3]
	add	r2, sp, #12
	str	r1, [sp]
	ldr	r0, [r6]
	ldr	r1, .L21+16
	bl	sprintf
	ldr	r3, .L21+20
	ldr	r2, [r6]
	ldr	r0, [r3]
	ldr	r1, .L21+24
	bl	Sys_FPrintf
	ldr	r0, [r6]
	bl	remove
	ldr	r2, .L21+28
	ldr	r3, .L21+32
	ldr	r2, [r2]
	str	r2, [r3]
	b	.L1
.L9:
	mov	r1, #1
.L3:
	add	r3, sp, #12
	ldr	r0, [r7]
	add	r1, r3, r1
	bl	strcpy
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	mapName
	.word	.LC2
	.word	mapShaderFile
	.word	game
	.word	.LC0
	.word	SYS_VRB
	.word	.LC1
	.word	qfalse
	.word	warnImage
	.size	BeginMapShaderFile, .-BeginMapShaderFile
	.comm	warnImage,4,4
	.comm	qfalse,4,4
	.comm	mapShaderFile,4,4
	.comm	mapName,4,4
	.comm	game,4,4
	.comm	SYS_VRB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
