	.file	"extr_io.c_imageTypeFromExtension.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"png"
.LC1:
	.string	"bmp"
	.text
	.p2align 4
	.globl	imageTypeFromExtension
	.type	imageTypeFromExtension, @function
imageTypeFromExtension:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	movsx	edi, BYTE PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	test	dil, dil
	je	.L3
.L2:
	call	tolower@PLT
	mov	BYTE PTR [r12+rbx], al
	add	rbx, 1
	movsx	edi, BYTE PTR 0[rbp+rbx]
	test	dil, dil
	je	.L3
	cmp	rbx, 4
	jne	.L2
	mov	eax, DWORD PTR kInvalidImageType[rip]
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	mov	BYTE PTR 4[rsp+rbx], 0
	call	strcmp@PLT
	test	rax, rax
	jne	.L6
	mov	eax, DWORD PTR kPNGImageType[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	strcmp@PLT
	test	rax, rax
	mov	eax, DWORD PTR kBMPImageType[rip]
	cmovne	eax, DWORD PTR kInvalidImageType[rip]
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	imageTypeFromExtension, .-imageTypeFromExtension
	.comm	kPNGImageType,4,4
	.comm	kInvalidImageType,4,4
	.comm	kBMPImageType,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_io.c_imageTypeFromExtension.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"png\000"
	.align	2
.LC1:
	.ascii	"bmp\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	imageTypeFromExtension
	.syntax unified
	.arm
	.fpu softvfp
	.type	imageTypeFromExtension, %function
imageTypeFromExtension:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldrb	r3, [r0]	@ zero_extendqisi2
	ldr	r2, .L15
	sub	sp, sp, #8
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	moveq	r4, r3
	moveq	r6, sp
	beq	.L3
	mov	r5, r0
	mov	r4, #0
	mov	r6, sp
.L4:
	mov	r0, r3
	bl	tolower
	ldrb	r3, [r5, #1]!	@ zero_extendqisi2
	strb	r0, [r6, r4]
	cmp	r3, #0
	add	r4, r4, #1
	beq	.L3
	cmp	r4, #4
	bne	.L4
.L8:
	ldr	r3, .L15+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	mov	r3, #0
	add	r2, sp, #8
	add	r4, r2, r4
	mov	r0, r6
	ldr	r1, .L15+8
	strb	r3, [r4, #-8]
	bl	strcmp
	cmp	r0, #0
	beq	.L14
	mov	r0, r6
	ldr	r1, .L15+12
	bl	strcmp
	cmp	r0, #0
	bne	.L8
	ldr	r3, .L15+16
	ldr	r0, [r3]
	b	.L1
.L14:
	ldr	r3, .L15+20
	ldr	r0, [r3]
	b	.L1
.L13:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	kInvalidImageType
	.word	.LC0
	.word	.LC1
	.word	kBMPImageType
	.word	kPNGImageType
	.size	imageTypeFromExtension, .-imageTypeFromExtension
	.comm	kPNGImageType,4,4
	.comm	kInvalidImageType,4,4
	.comm	kBMPImageType,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
