	.file	"extr_stb_image.h_stbi__pic_load.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"file too short (pic header)"
.LC1:
	.string	"bad file"
.LC2:
	.string	"Image too large to decode"
.LC3:
	.string	"too large"
	.text
	.p2align 4
	.type	stbi__pic_load, @function
stbi__pic_load:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, 92
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rsi
	mov	QWORD PTR 16[rsp], rdx
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, r15
	call	stbi__get8@PLT
	sub	ebx, 1
	jne	.L2
	mov	rdi, r15
	call	stbi__get16be@PLT
	mov	rdi, r15
	mov	r12d, eax
	call	stbi__get16be@PLT
	mov	rdi, r15
	mov	ebx, eax
	call	stbi__at_eof@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	test	rax, rax
	jne	.L9
	mov	eax, 268435456
	cdq
	idiv	r12d
	cmp	eax, ebx
	jl	.L11
	mov	rdi, r15
	call	stbi__get32be@PLT
	mov	rdi, r15
	call	stbi__get16be@PLT
	mov	rdi, r15
	call	stbi__get16be@PLT
	mov	edx, r12d
	imul	edx, ebx
	sal	edx, 2
	mov	edi, edx
	mov	DWORD PTR 28[rsp], edx
	call	stbi__malloc@PLT
	mov	edx, DWORD PTR 28[rsp]
	mov	esi, 255
	mov	r14, rax
	mov	rdi, rax
	call	memset@PLT
	mov	r8, r14
	mov	rcx, rbp
	mov	edx, ebx
	mov	esi, r12d
	mov	rdi, r15
	call	stbi__pic_load_core@PLT
	test	eax, eax
	je	.L12
.L5:
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax], r12d
	mov	rax, QWORD PTR 16[rsp]
	mov	DWORD PTR [rax], ebx
	test	r13d, r13d
	jne	.L6
	mov	r13d, DWORD PTR 0[rbp]
.L6:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	r8d, ebx
	mov	ecx, r12d
	mov	edx, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rdi, r14
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	esi, 4
	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
	jmp	stbi__convert_format@PLT
.L11:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
.L9:
	add	rsp, 40
	.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
	jmp	stbi__errpuc@PLT
.L12:
	.cfi_restore_state
	mov	rdi, r14
	xor	r14d, r14d
	call	STBI_FREE@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	stbi__pic_load, .-stbi__pic_load
	.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_stb_image.h_stbi__pic_load.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"file too short (pic header)\000"
	.align	2
.LC1:
	.ascii	"bad file\000"
	.global	__aeabi_idiv
	.align	2
.LC2:
	.ascii	"Image too large to decode\000"
	.align	2
.LC3:
	.ascii	"too large\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stbi__pic_load, %function
stbi__pic_load:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r9, r1
	mov	r8, r3
	mov	r4, #92
	sub	sp, sp, #20
	ldr	fp, [sp, #56]
	str	r2, [sp, #8]
.L2:
	mov	r0, r5
	bl	stbi__get8
	subs	r4, r4, #1
	bne	.L2
	mov	r0, r5
	bl	stbi__get16be
	mov	r6, r0
	mov	r0, r5
	bl	stbi__get16be
	mov	r7, r0
	mov	r0, r5
	bl	stbi__at_eof
	cmp	r0, #0
	bne	.L11
	mov	r1, r6
	mov	r0, #268435456
	bl	__aeabi_idiv
	cmp	r0, r7
	blt	.L12
	mov	r0, r5
	bl	stbi__get32be
	mov	r0, r5
	bl	stbi__get16be
	mov	r0, r5
	bl	stbi__get16be
	mul	r2, r7, r6
	lsl	r2, r2, #2
	mov	r0, r2
	str	r2, [sp, #12]
	bl	stbi__malloc
	mov	r10, r0
	mov	r1, #255
	ldr	r2, [sp, #12]
	bl	memset
	mov	r0, r5
	mov	r3, r8
	mov	r2, r7
	mov	r1, r6
	str	r10, [sp]
	bl	stbi__pic_load_core
	cmp	r0, #0
	beq	.L13
.L5:
	ldr	r3, [sp, #8]
	str	r6, [r9]
	cmp	fp, #0
	str	r7, [r3]
	ldreq	fp, [r8]
	mov	r3, r6
	mov	r2, fp
	mov	r0, r10
	mov	r1, #4
	str	r7, [sp, #56]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	stbi__convert_format
.L12:
	ldr	r1, .L14
	ldr	r0, .L14+4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	stbi__errpuc
.L11:
	ldr	r1, .L14+8
	ldr	r0, .L14+12
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	stbi__errpuc
.L13:
	mov	r0, r10
	bl	STBI_FREE
	mov	r10, r4
	b	.L5
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.size	stbi__pic_load, .-stbi__pic_load
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
