	.file	"extr_gifenc.c_get_bbox.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_bbox, @function
get_bbox:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	r15d, DWORD PTR 4[rdi]
	mov	r13d, DWORD PTR [rdi]
	mov	QWORD PTR -24[rsp], rsi
	mov	QWORD PTR -16[rsp], rdx
	mov	QWORD PTR -8[rsp], r8
	test	r15d, r15d
	jle	.L11
	mov	rbp, rdi
	mov	r14, rcx
	mov	r10d, r15d
	mov	r9d, r13d
	xor	esi, esi
	xor	r8d, r8d
	xor	r12d, r12d
	xor	edx, edx
	lea	ebx, -1[r13]
	.p2align 4,,10
	.p2align 3
.L2:
	test	r13d, r13d
	jle	.L8
	mov	r11, QWORD PTR 8[rbp]
	movsx	rdi, r12d
	xor	eax, eax
	sal	rdi, 3
	add	r11, rdi
	add	rdi, QWORD PTR 16[rbp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, rcx
.L5:
	mov	rcx, QWORD PTR [rdi+rax*8]
	cmp	QWORD PTR [r11+rax*8], rcx
	je	.L4
	cmp	r9d, eax
	cmovg	r9d, eax
	cmp	r8d, eax
	cmovl	r8d, eax
	cmp	r10d, edx
	cmovg	r10d, edx
	cmp	esi, edx
	cmovl	esi, edx
.L4:
	lea	rcx, 1[rax]
	cmp	rbx, rax
	jne	.L10
	add	r12d, r13d
.L8:
	add	edx, 1
	cmp	r15d, edx
	jne	.L2
	cmp	r13d, r9d
	je	.L11
	cmp	r15d, r10d
	je	.L11
	mov	rax, QWORD PTR -8[rsp]
	mov	rbx, QWORD PTR -24[rsp]
	sub	r8d, r9d
	mov	DWORD PTR [r14], r9d
	sub	esi, r10d
	mov	DWORD PTR [rax], r10d
	lea	eax, 1[r8]
	mov	DWORD PTR [rbx], eax
	mov	rbx, QWORD PTR -16[rsp]
	lea	eax, 1[rsi]
	mov	DWORD PTR [rbx], eax
	mov	eax, 1
	pop	rbx
	.cfi_remember_state
	.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
.L11:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 48
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	get_bbox, .-get_bbox
	.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_gifenc.c_get_bbox.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_bbox, %function
get_bbox:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, [r0, #4]
	sub	sp, sp, #20
	cmp	ip, #0
	ldr	r10, [r0]
	str	ip, [sp]
	movle	r0, #0
	str	r1, [sp, #4]
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ble	.L1
	mov	lr, #0
	mov	r5, r10
	mov	r6, lr
	mov	r2, lr
	mov	r1, lr
	ldr	r4, [sp]
.L2:
	cmp	r10, #0
	ble	.L8
	mov	r3, #0
	ldr	r9, [r0, #8]
	lsl	ip, r2, #2
	ldr	r7, [r0, #12]
	add	fp, r10, r2
	sub	ip, ip, #4
	add	r2, r9, r2, lsl #2
	add	ip, r7, ip
	add	r9, r9, fp, lsl #2
.L5:
	ldr	r8, [r2], #4
	ldr	r7, [ip, #4]!
	cmp	r8, r7
	beq	.L4
	cmp	r5, r3
	movge	r5, r3
	cmp	r6, r3
	movlt	r6, r3
	cmp	r4, r1
	movge	r4, r1
	cmp	lr, r1
	movlt	lr, r1
.L4:
	cmp	r2, r9
	add	r3, r3, #1
	bne	.L5
	mov	r2, fp
.L8:
	ldr	r3, [sp]
	add	r1, r1, #1
	cmp	r3, r1
	bne	.L2
	ldr	r3, [sp]
	cmp	r10, r5
	cmpne	r3, r4
	movne	r0, #1
	moveq	r0, #0
	beq	.L1
	mov	r0, #1
	ldr	r1, [sp, #12]
	sub	r2, r6, r5
	str	r5, [r1]
	ldr	r1, [sp, #56]
	add	r2, r2, #1
	str	r4, [r1]
	ldr	r1, [sp, #4]
	sub	r3, lr, r4
	str	r2, [r1]
	ldr	r2, [sp, #8]
	add	r3, r3, #1
	str	r3, [r2]
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	get_bbox, .-get_bbox
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
