	.file	"extr_orders.c_process_colcache.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	process_colcache, @function
process_colcache:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	edi, ebp
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	in_uint8@PLT
	mov	esi, DWORD PTR [rsp]
	mov	edi, ebp
	call	in_uint16_le@PLT
	mov	eax, DWORD PTR [rsp]
	lea	edi, [rax+rax*2]
	sal	edi, 3
	call	malloc@PLT
	mov	QWORD PTR 8[rsp], rax
	test	rax, rax
	je	.L2
	movsx	rdi, DWORD PTR [rsp]
	xor	ebx, ebx
	test	edi, edi
	jg	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR 8[rsp]
.L3:
	lea	rdx, [rbx+rbx*2]
	mov	edi, ebp
	add	rbx, 1
	lea	r12, [rax+rdx*8]
	mov	rsi, QWORD PTR 16[r12]
	call	in_uint8@PLT
	mov	rsi, QWORD PTR 8[r12]
	mov	edi, ebp
	call	in_uint8@PLT
	mov	rsi, QWORD PTR [r12]
	mov	edi, ebp
	call	in_uint8@PLT
	mov	edi, ebp
	mov	esi, 1
	call	in_uint8s@PLT
	movsx	rdi, DWORD PTR [rsp]
	cmp	edi, ebx
	jg	.L15
.L4:
	call	DEBUG@PLT
	mov	rdi, r13
	mov	rsi, rsp
	call	ui_create_colourmap@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	free@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR [rsp]
	mov	edi, ebp
	lea	esi, 0[0+rax*4]
	call	in_uint8s@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	process_colcache, .-process_colcache
	.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_orders.c_process_colcache.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_colcache, %function
process_colcache:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r1
	ldr	r3, .L16
	sub	sp, sp, #20
	mov	r1, #0
	mov	r9, r0
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	in_uint8
	ldr	r1, [sp, #4]
	mov	r0, r5
	bl	in_uint16_le
	ldr	r7, [sp, #4]
	add	r0, r7, r7, lsl #1
	lsl	r0, r0, #2
	bl	malloc
	cmp	r0, #0
	str	r0, [sp, #8]
	beq	.L2
	cmp	r7, #0
	movgt	r6, r0
	movgt	r4, #0
	bgt	.L3
	b	.L4
.L14:
	ldr	r6, [sp, #8]
.L3:
	add	r7, r4, r4, lsl #1
	add	r8, r6, r7, lsl #2
	ldr	r1, [r8, #8]
	mov	r0, r5
	bl	in_uint8
	ldr	r1, [r8, #4]
	mov	r0, r5
	bl	in_uint8
	ldr	r1, [r6, r7, lsl #2]
	mov	r0, r5
	bl	in_uint8
	mov	r1, #1
	mov	r0, r5
	bl	in_uint8s
	ldr	r7, [sp, #4]
	add	r4, r4, #1
	cmp	r7, r4
	bgt	.L14
.L4:
	mov	r0, r7
	bl	DEBUG
	mov	r0, r9
	add	r1, sp, #4
	bl	ui_create_colourmap
	ldr	r0, [sp, #8]
	bl	free
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r0, r5
	lsl	r1, r7, #2
	bl	in_uint8s
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.size	process_colcache, .-process_colcache
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
