	.file	"extr_imagelib.c_Load256Image.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"lbm"
.LC1:
	.string	"pcx"
.LC2:
	.string	"bmp"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"%s doesn't have a known image extension"
	.text
	.p2align 4
	.globl	Load256Image
	.type	Load256Image, @function
Load256Image:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 152
	.cfi_def_cfa_offset 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 136[rsp], rax
	xor	eax, eax
	mov	r15, rsp
	mov	rsi, r15
	call	ExtractFileExtension@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	call	Q_stricmp@PLT
	test	eax, eax
	jne	.L2
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	call	LoadLBM@PLT
	test	r12, r12
	je	.L3
	mov	eax, DWORD PTR bmhd[rip]
	mov	DWORD PTR [r12], eax
.L3:
	test	rbx, rbx
	je	.L1
	mov	eax, DWORD PTR bmhd[rip+4]
	mov	DWORD PTR [rbx], eax
.L1:
	mov	rax, QWORD PTR 136[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 152
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	call	Q_stricmp@PLT
	test	eax, eax
	jne	.L5
	mov	r8, rbx
	mov	rcx, r12
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	call	LoadPCX@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rsi, .LC2[rip]
	mov	rdi, r15
	call	Q_stricmp@PLT
	test	eax, eax
	jne	.L6
	mov	r8, rbx
	mov	rcx, r12
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	call	LoadBMP@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, rbp
	lea	rdi, .LC3[rip]
	call	Error@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Load256Image, .-Load256Image
	.comm	bmhd,8,8
	.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_imagelib.c_Load256Image.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"lbm\000"
	.align	2
.LC1:
	.ascii	"pcx\000"
	.align	2
.LC2:
	.ascii	"bmp\000"
	.align	2
.LC3:
	.ascii	"%s doesn't have a known image extension\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Load256Image
	.syntax unified
	.arm
	.fpu softvfp
	.type	Load256Image, %function
Load256Image:
	@ args = 4, pretend = 0, frame = 136
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r3
	sub	sp, sp, #144
	ldr	r3, .L17
	mov	r6, r1
	add	r1, sp, #12
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #140]
	mov	r3,#0
	mov	r5, r0
	ldr	r7, [sp, #168]
	bl	ExtractFileExtension
	ldr	r1, .L17+4
	add	r0, sp, #12
	bl	Q_stricmp
	cmp	r0, #0
	bne	.L2
	mov	r2, r8
	mov	r1, r6
	mov	r0, r5
	bl	LoadLBM
	cmp	r4, #0
	ldrne	r3, .L17+8
	ldrne	r3, [r3]
	strne	r3, [r4]
	cmp	r7, #0
	ldrne	r3, .L17+8
	ldrne	r3, [r3, #4]
	strne	r3, [r7]
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #140]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #144
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r1, .L17+12
	add	r0, sp, #12
	bl	Q_stricmp
	cmp	r0, #0
	bne	.L5
	mov	r3, r4
	mov	r2, r8
	mov	r1, r6
	mov	r0, r5
	str	r7, [sp]
	bl	LoadPCX
	b	.L1
.L5:
	ldr	r1, .L17+16
	add	r0, sp, #12
	bl	Q_stricmp
	cmp	r0, #0
	bne	.L6
	mov	r3, r4
	mov	r2, r8
	mov	r1, r6
	mov	r0, r5
	str	r7, [sp]
	bl	LoadBMP
	b	.L1
.L6:
	mov	r1, r5
	ldr	r0, .L17+20
	bl	Error
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	.LC0
	.word	bmhd
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	Load256Image, .-Load256Image
	.comm	bmhd,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
