	.file	"extr_mesh.c_parse_texture_filename.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"truncated data (%lu bytes)\n"
	.text
	.p2align 4
	.type	parse_texture_filename, @function
parse_texture_filename:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	QWORD PTR [rbx], 0
	lea	rdx, 16[rsp]
	lea	rsi, 12[rsp]
	call	[QWORD PTR 8[rax]]
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR 12[rsp]
	cmp	esi, 7
	jbe	.L8
	mov	rax, QWORD PTR 16[rsp]
	mov	r13, QWORD PTR [rax]
	mov	rdi, r13
	call	strlen@PLT
	mov	r12, rax
	xor	eax, eax
	call	GetProcessHeap@PLT
	lea	rdx, 1[r12]
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L9
	mov	rsi, r13
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR [rbx], r12
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	mov	r12d, DWORD PTR D3D_OK[rip]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	WARN@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	mov	r12d, DWORD PTR E_FAIL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	mov	r12d, DWORD PTR E_OUTOFMEMORY[rip]
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	parse_texture_filename, .-parse_texture_filename
	.comm	E_OUTOFMEMORY,4,4
	.comm	E_FAIL,4,4
	.comm	D3D_OK,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_mesh.c_parse_texture_filename.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"truncated data (%lu bytes)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_texture_filename, %function
parse_texture_filename:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r3, .L11
	sub	sp, sp, #16
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	GetProcessHeap
	mov	r1, #0
	ldr	r2, [r5]
	bl	HeapFree
	mov	r2, #0
	ldr	r3, [r4]
	add	r1, sp, #4
	ldr	r3, [r3, #4]
	str	r2, [r5]
	mov	r0, r4
	add	r2, sp, #8
	blx	r3
	mov	r6, r0
	bl	FAILED
	subs	r7, r0, #0
	bne	.L1
	ldr	r1, [sp, #4]
	cmp	r1, #3
	bls	.L8
	ldr	r3, [sp, #8]
	ldr	r8, [r3]
	bl	GetProcessHeap
	mov	r6, r0
	mov	r0, r8
	bl	strlen
	mov	r2, r0
	mov	r1, r7
	mov	r0, r6
	add	r2, r2, #1
	bl	HeapAlloc
	subs	r6, r0, #0
	beq	.L9
	mov	r1, r8
	bl	strcpy
	ldr	r3, [r4]
	mov	r0, r4
	ldr	r3, [r3]
	str	r6, [r5]
	blx	r3
	ldr	r3, .L11+4
	ldr	r6, [r3]
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r6
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r0, .L11+8
	bl	WARN
	ldr	r3, [r4]
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	ldr	r3, .L11+12
	ldr	r6, [r3]
	b	.L1
.L9:
	ldr	r3, [r4]
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	ldr	r3, .L11+16
	ldr	r6, [r3]
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	D3D_OK
	.word	.LC0
	.word	E_FAIL
	.word	E_OUTOFMEMORY
	.size	parse_texture_filename, .-parse_texture_filename
	.comm	E_OUTOFMEMORY,4,4
	.comm	E_FAIL,4,4
	.comm	D3D_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
