	.file	"extr_stb_image.h_stbi__gif_load.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stbi__gif_load, @function
stbi__gif_load:
.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, rsi
	xor	esi, esi
	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
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	mov	edx, 16
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r15, rsp
	mov	rdi, r15
	call	memset@PLT
	mov	ecx, r13d
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, rbx
	call	stbi__gif_load_next@PLT
	test	rax, rax
	je	.L2
	mov	r12, rax
	cmp	rbx, rax
	je	.L2
	mov	ecx, DWORD PTR [rsp]
	mov	r8d, DWORD PTR 4[rsp]
	mov	DWORD PTR [r14], ecx
	mov	DWORD PTR 0[rbp], r8d
	test	r13d, -5
	jne	.L18
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
	mov	rdi, QWORD PTR 8[rsp]
	xor	r12d, r12d
	test	rdi, rdi
	je	.L1
	call	STBI_FREE@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, r13d
	mov	esi, 4
	mov	rdi, rax
	call	stbi__convert_format@PLT
	mov	r12, rax
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	stbi__gif_load, .-stbi__gif_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__gif_load.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stbi__gif_load, %function
stbi__gif_load:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #28
	ldr	r7, [sp, #48]
	mov	r5, r2
	mov	r2, r3
	ldr	r3, .L14
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	add	r1, sp, #8
	mov	r3, r7
	mov	r4, r0
	str	ip, [sp, #8]
	str	ip, [sp, #12]
	str	ip, [sp, #16]
	bl	stbi__gif_load_next
	subs	r4, r4, r0
	movne	r4, #1
	cmp	r0, #0
	moveq	r4, #0
	cmp	r4, #0
	bne	.L11
	ldr	ip, [sp, #16]
	cmp	ip, #0
	bne	.L12
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, ip
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	ldr	r3, [sp, #8]
	ldr	r2, [sp, #12]
	bics	r1, r7, #4
	str	r3, [r6]
	mov	ip, r0
	str	r2, [r5]
	beq	.L1
	str	r2, [sp]
	mov	r1, #4
	mov	r2, r7
	bl	stbi__convert_format
	mov	ip, r0
	b	.L1
.L12:
	mov	r0, ip
	bl	STBI_FREE
	mov	ip, r4
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.size	stbi__gif_load, .-stbi__gif_load
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
