	.file	"extr_ungif.c_DGifGetScreenDesc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	DGifGetScreenDesc, @function
DGifGetScreenDesc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, 28[rdi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	DGifGetWord@PLT
	mov	r8, rax
	mov	rax, QWORD PTR GIF_ERROR[rip]
	cmp	r8, rax
	je	.L1
	lea	rsi, 24[rbx]
	mov	rdi, rbx
	call	DGifGetWord@PLT
	mov	r8, rax
	mov	rax, QWORD PTR GIF_ERROR[rip]
	cmp	r8, rax
	je	.L1
	lea	r12, 12[rsp]
	mov	edx, 3
	mov	rdi, rbx
	mov	rsi, r12
	call	READ@PLT
	cmp	eax, 3
	jne	.L17
	mov	ebp, DWORD PTR 12[rsp]
	mov	eax, ebp
	and	eax, 112
	shr	eax, 4
	add	eax, 1
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 4[rbx], rax
	test	bpl, -128
	jne	.L19
	mov	QWORD PTR 16[rbx], 0
.L9:
	mov	eax, DWORD PTR GIF_OK[rip]
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L20
	add	rsp, 32
	.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
.L19:
	.cfi_restore_state
	mov	ecx, ebp
	mov	edi, 1
	xor	esi, esi
	and	ecx, 7
	add	ecx, 1
	sal	edi, cl
	call	MakeMapObject@PLT
	mov	QWORD PTR 16[rbx], rax
	test	rax, rax
	je	.L17
	shr	ebp, 3
	and	ebp, 1
	mov	DWORD PTR [rax], ebp
	mov	eax, DWORD PTR 4[rax]
	xor	ebp, ebp
	test	eax, eax
	jg	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, QWORD PTR 16[rbx]
	lea	rcx, 0[rbp+rbp*2]
	add	rbp, 1
	mov	rax, QWORD PTR 8[rdx]
	lea	rax, [rax+rcx*4]
	mov	ecx, DWORD PTR 12[rsp]
	mov	DWORD PTR [rax], ecx
	mov	ecx, DWORD PTR 16[rsp]
	mov	DWORD PTR 4[rax], ecx
	mov	ecx, DWORD PTR 20[rsp]
	mov	DWORD PTR 8[rax], ecx
	cmp	DWORD PTR 4[rdx], ebp
	jle	.L9
.L8:
	mov	edx, 3
	mov	rsi, r12
	mov	rdi, rbx
	call	READ@PLT
	cmp	eax, 3
	je	.L10
	mov	rdi, QWORD PTR 16[rbx]
	call	FreeMapObject@PLT
	mov	QWORD PTR 16[rbx], 0
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR GIF_ERROR[rip]
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	DGifGetScreenDesc, .-DGifGetScreenDesc
	.comm	GIF_OK,4,4
	.comm	GIF_ERROR,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_ungif.c_DGifGetScreenDesc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DGifGetScreenDesc, %function
DGifGetScreenDesc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L20
	sub	sp, sp, #16
	add	r1, r0, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	bl	DGifGetWord
	ldr	r6, .L20+4
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L1
	mov	r0, r4
	add	r1, r4, #16
	bl	DGifGetWord
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L1
	mov	r1, sp
	mov	r2, #3
	mov	r0, r4
	bl	READ
	cmp	r0, #3
	bne	.L16
	ldr	r5, [sp]
	ldr	r1, [sp, #4]
	and	r3, r5, #112
	lsr	r3, r3, #4
	add	r3, r3, #1
	ldr	r2, [sp, #8]
	str	r3, [r4]
	ands	r3, r5, #128
	stmib	r4, {r1, r2}
	streq	r3, [r4, #12]
	bne	.L18
.L9:
	ldr	r3, .L20+8
	ldr	r3, [r3]
.L1:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [sp, #12]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L19
	mov	r0, r3
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r3, [r6]
	b	.L1
.L18:
	mov	r0, #1
	and	r3, r5, #7
	add	r3, r3, r0
	mov	r1, #0
	lsl	r0, r0, r3
	bl	MakeMapObject
	cmp	r0, #0
	str	r0, [r4, #12]
	beq	.L16
	ldr	r3, [r0, #4]
	lsr	r5, r5, #3
	and	r5, r5, #1
	cmp	r3, #0
	str	r5, [r0]
	ble	.L9
	mov	r5, #0
	b	.L8
.L10:
	ldr	r2, [r4, #12]
	ldr	r0, [sp]
	ldr	r3, [r2, #8]
	add	r1, r5, r5, lsl #1
	str	r0, [r3, r1, lsl #2]
	ldr	r0, [sp, #4]
	add	r3, r3, r1, lsl #2
	ldr	r1, [r2, #4]
	str	r0, [r3, #4]
	ldr	r2, [sp, #8]
	add	r5, r5, #1
	cmp	r1, r5
	str	r2, [r3, #8]
	ble	.L9
.L8:
	mov	r2, #3
	mov	r1, sp
	mov	r0, r4
	bl	READ
	cmp	r0, #3
	beq	.L10
	ldr	r0, [r4, #12]
	bl	FreeMapObject
	mov	r2, #0
	ldr	r3, [r6]
	str	r2, [r4, #12]
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	GIF_ERROR
	.word	GIF_OK
	.size	DGifGetScreenDesc, .-DGifGetScreenDesc
	.comm	GIF_OK,4,4
	.comm	GIF_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
