	.file	"extr_webp.c_parse_transform_color_indexing.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	parse_transform_color_indexing, @function
parse_transform_color_indexing:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, 8
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	add	rdi, 16
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	get_bits@PLT
	mov	rsi, QWORD PTR IMAGE_ROLE_COLOR_INDEXING[rip]
	lea	edx, 1[rax]
	cmp	edx, 2
	jle	.L2
	cmp	edx, 4
	jg	.L20
	mov	ebp, 2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	ebp, 3
.L3:
	mov	ecx, 1
	mov	rdi, rbx
	call	decode_entropy_coded_image@PLT
	test	eax, eax
	jns	.L21
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	cmp	edx, 16
	jle	.L13
	mov	ecx, 1
	mov	rdi, rbx
	call	decode_entropy_coded_image@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR IMAGE_ROLE_COLOR_INDEXING[rip]
	sal	rax, 4
	add	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR [rax], 0
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	mov	ecx, ebp
	mov	edx, 1
	mov	rax, QWORD PTR IMAGE_ROLE_COLOR_INDEXING[rip]
	sal	edx, cl
	mov	ecx, DWORD PTR 4[rbx]
	sal	rax, 4
	add	rax, QWORD PTR 8[rbx]
	lea	edx, -1[rdx+rcx]
	mov	ecx, ebp
	mov	DWORD PTR [rax], ebp
	sar	edx, cl
	mov	DWORD PTR [rbx], edx
.L9:
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 8[rdx]
	mov	edx, DWORD PTR [rdx]
	mov	rcx, QWORD PTR [rax]
	sal	edx, 2
	lea	rax, 32[rcx]
	cmp	edx, 4
	jle	.L8
	sub	edx, 5
	lea	rcx, 40[rcx+rdx*8]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR -32[rax]
	add	QWORD PTR [rax], rdx
	add	rax, 8
	cmp	rcx, rax
	jne	.L7
.L8:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	ebp, 1
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	parse_transform_color_indexing, .-parse_transform_color_indexing
	.comm	IMAGE_ROLE_COLOR_INDEXING,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_webp.c_parse_transform_color_indexing.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_transform_color_indexing, %function
parse_transform_color_indexing:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r1, #8
	mov	r4, r0
	add	r0, r0, #12
	bl	get_bits
	add	r2, r0, #1
	cmp	r2, #2
	ldr	r6, .L21
	ble	.L2
	cmp	r2, #4
	ldr	r1, [r6]
	bgt	.L20
	mov	r5, #2
	b	.L3
.L2:
	mov	r5, #3
	ldr	r1, [r6]
.L3:
	mov	r3, #1
	mov	r0, r4
	bl	decode_entropy_coded_image
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	mvn	r3, #0
	mvn	r3, r3, lsl r5
	ldr	r2, [r4, #4]
	ldr	r1, [r6]
	add	r3, r3, r2
	ldr	r2, [r4, #8]
	asr	r3, r3, r5
	str	r5, [r2, r1, lsl #3]
	add	r2, r2, r1, lsl #3
	str	r3, [r4]
.L9:
	ldr	r3, [r2, #4]
	ldr	ip, [r3]
	ldr	r3, [r3, #4]
	lsl	ip, ip, #2
	ldr	r3, [r3]
	cmp	ip, #4
	movgt	r1, #4
	addgt	r3, r3, #12
	ble	.L8
.L7:
	ldr	r2, [r3, #4]!
	add	r1, r1, #1
	ldr	r0, [r3, #-16]
	cmp	ip, r1
	add	r2, r2, r0
	str	r2, [r3]
	bne	.L7
.L8:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L20:
	cmp	r2, #16
	ble	.L13
	mov	r3, #1
	mov	r0, r4
	bl	decode_entropy_coded_image
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	mov	r1, #0
	ldr	r3, [r6]
	ldr	r2, [r4, #8]
	str	r1, [r2, r3, lsl #3]
	add	r2, r2, r3, lsl #3
	b	.L9
.L13:
	mov	r5, #1
	b	.L3
.L22:
	.align	2
.L21:
	.word	IMAGE_ROLE_COLOR_INDEXING
	.size	parse_transform_color_indexing, .-parse_transform_color_indexing
	.comm	IMAGE_ROLE_COLOR_INDEXING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
