	.file	"extr_regc_color.c_subcoloronechr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	subcoloronechr, @function
subcoloronechr:
.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, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	cmp	QWORD PTR MAX_SIMPLE_CHR[rip], rsi
	mov	r15, QWORD PTR 8[rdi]
	mov	QWORD PTR 16[rsp], rdx
	mov	QWORD PTR 24[rsp], rcx
	mov	QWORD PTR 8[rsp], r8
	jge	.L27
	mov	eax, DWORD PTR [r15]
	lea	edi, 6[rax+rax*2]
	sal	edi, 3
	call	MALLOC@PLT
	mov	r13, rax
	test	rax, rax
	je	.L28
	mov	ecx, DWORD PTR [r15]
	mov	rbx, QWORD PTR 8[r15]
	test	ecx, ecx
	jle	.L17
	mov	rsi, rax
	xor	ebp, ebp
	sub	rsi, rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L30:
	movdqu	xmm0, XMMWORD PTR [rbx]
	add	rbx, 24
	movups	XMMWORD PTR [rdx], xmm0
	mov	rax, QWORD PTR -8[rbx]
	mov	QWORD PTR 16[rdx], rax
	cmp	ebp, ecx
	je	.L29
.L7:
	mov	rax, QWORD PTR [rbx]
	mov	r9d, ebp
	lea	rdx, [rbx+rsi]
	add	ebp, 1
	cmp	rax, r12
	jl	.L30
	mov	rsi, QWORD PTR 8[rbx]
	cmp	rsi, r12
	jg	.L5
	lea	rcx, 24[rbx]
	cmp	rax, rsi
	je	.L31
	mov	r10d, DWORD PTR 16[rbx]
	mov	r8d, ebp
	cmp	rsi, r12
	jge	.L10
	movsx	rax, ebp
	mov	QWORD PTR 8[rdx], rsi
	lea	rsi, -1[r12]
	lea	r8d, 2[r9]
	mov	DWORD PTR 16[rdx], r10d
	lea	rax, [rax+rax*2]
	mov	r10d, DWORD PTR 16[rbx]
	mov	r9d, ebp
	mov	QWORD PTR [rdx], rsi
	lea	rdx, 0[r13+rax*8]
.L10:
	mov	QWORD PTR 8[rdx], r12
	mov	esi, r10d
	mov	rdi, r15
	mov	QWORD PTR [rdx], r12
	mov	QWORD PTR 48[rsp], rcx
	mov	DWORD PTR 44[rsp], r8d
	mov	QWORD PTR 32[rsp], rdx
	mov	DWORD PTR 56[rsp], r9d
	call	newhicolorrow@PLT
	mov	rdx, QWORD PTR 32[rsp]
	movsx	r8, DWORD PTR 44[rsp]
	mov	r10d, eax
	mov	rcx, QWORD PTR 48[rsp]
	mov	DWORD PTR 16[rdx], eax
	mov	rax, QWORD PTR [rbx]
	cmp	rax, r12
	jle	.L11
	lea	rdx, [r8+r8*2]
	lea	rsi, 1[r12]
	mov	r9d, DWORD PTR 56[rsp]
	lea	rdx, 0[r13+rdx*8]
	mov	QWORD PTR 8[rdx], rsi
	cmp	QWORD PTR 8[rbx], r12
	mov	QWORD PTR [rdx], rax
	mov	esi, DWORD PTR 16[rbx]
	jl	.L32
.L12:
	mov	DWORD PTR 16[rdx], esi
	lea	r8d, 2[r9]
.L11:
	mov	r9d, ebp
	mov	rbx, rcx
	mov	ebp, r8d
	jmp	.L8
.L17:
	mov	rdx, rax
	mov	ebp, 1
	xor	r9d, r9d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	QWORD PTR 8[rdx], r12
	xor	esi, esi
	mov	rdi, r15
	mov	QWORD PTR [rdx], r12
	mov	DWORD PTR 44[rsp], r9d
	mov	QWORD PTR 32[rsp], rdx
	call	newhicolorrow@PLT
	mov	rdx, QWORD PTR 32[rsp]
	mov	r9d, DWORD PTR 44[rsp]
	mov	r10d, eax
	mov	DWORD PTR 16[rdx], eax
.L8:
	mov	r8, QWORD PTR 8[rsp]
	mov	rcx, QWORD PTR 24[rsp]
	mov	esi, r10d
	mov	rdi, r14
	mov	rdx, QWORD PTR 16[rsp]
	mov	DWORD PTR 32[rsp], r9d
	call	subcoloronerow@PLT
	mov	esi, DWORD PTR [r15]
	mov	r9d, DWORD PTR 32[rsp]
	cmp	r9d, esi
	jge	.L13
	lea	eax, -1[rsi]
	sub	eax, r9d
	lea	rax, 3[rax+rax*2]
	lea	rcx, [rbx+rax*8]
	movsx	rax, ebp
	lea	rax, [rax+rax*2]
	sal	rax, 3
	sub	rax, rbx
	add	rax, r13
	.p2align 4,,10
	.p2align 3
.L14:
	movdqu	xmm1, XMMWORD PTR [rbx]
	add	rbx, 24
	movups	XMMWORD PTR -24[rbx+rax], xmm1
	mov	rdx, QWORD PTR -8[rbx]
	mov	QWORD PTR -8[rbx+rax], rdx
	cmp	rcx, rbx
	jne	.L14
	add	ebp, esi
	sub	ebp, r9d
.L13:
	add	esi, 2
	xor	edi, edi
	cmp	esi, ebp
	setge	dil
	call	assert@PLT
	mov	rdi, QWORD PTR 8[r15]
	test	rdi, rdi
	je	.L15
	call	FREE@PLT
.L15:
	mov	QWORD PTR 8[r15], r13
	mov	DWORD PTR [r15], ebp
.L1:
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L27:
	.cfi_restore_state
	mov	rdi, r15
	call	subcolor@PLT
	mov	rbx, rax
	xor	eax, eax
	call	NOERR@PLT
	mov	r15, QWORD PTR 8[rsp]
	cmp	QWORD PTR [r15], rbx
	je	.L1
	mov	r8, QWORD PTR 24[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	mov	rdx, rbx
	mov	edi, DWORD PTR [r14]
	mov	esi, DWORD PTR PLAIN[rip]
	call	newarc@PLT
	mov	QWORD PTR [r15], rbx
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L29:
	.cfi_restore_state
	movsx	rax, ebp
	mov	r9d, ecx
	add	ebp, 1
	lea	rax, [rax+rax*2]
	lea	rdx, 0[r13+rax*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, DWORD PTR REG_ESPACE[rip]
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	jmp	CERR@PLT
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	movdqu	xmm2, XMMWORD PTR [rbx]
	mov	r9d, ebp
	movups	XMMWORD PTR [rdx], xmm2
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 16[rdx], rax
	mov	r10d, DWORD PTR 16[rbx]
	mov	rbx, rcx
	jmp	.L8
.L32:
	mov	rdi, r15
	mov	QWORD PTR 56[rsp], rcx
	mov	DWORD PTR 48[rsp], r10d
	mov	DWORD PTR 44[rsp], r9d
	mov	QWORD PTR 32[rsp], rdx
	call	newhicolorrow@PLT
	mov	rcx, QWORD PTR 56[rsp]
	mov	r10d, DWORD PTR 48[rsp]
	mov	r9d, DWORD PTR 44[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	mov	esi, eax
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	subcoloronechr, .-subcoloronechr
	.comm	REG_ESPACE,4,4
	.comm	PLAIN,4,4
	.comm	MAX_SIMPLE_CHR,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_regc_color.c_subcoloronechr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	subcoloronechr, %function
subcoloronechr:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	str	r0, [sp, #12]
	ldr	r0, .L33
	str	r2, [sp, #16]
	ldr	r2, [r0]
	str	r3, [sp, #20]
	ldr	r3, [sp, #72]
	cmp	r2, r1
	ldr	r9, [ip, #4]
	str	r3, [sp, #8]
	bge	.L27
	ldr	r0, [r9]
	mov	r7, r1
	add	r0, r0, #2
	add	r0, r0, r0, lsl #1
	lsl	r0, r0, #2
	bl	MALLOC
	subs	r10, r0, #0
	beq	.L28
	ldr	lr, [r9]
	ldr	r5, [r9, #4]
	cmp	lr, #0
	ble	.L17
	mvn	ip, #11
	sub	ip, ip, r5
	mov	r4, #0
	add	ip, ip, r10
	add	r5, r5, #12
	b	.L7
.L30:
	cmp	r4, lr
	ldm	r6, {r0, r1, r2}
	add	r5, r5, #12
	stm	r3, {r0, r1, r2}
	beq	.L29
.L7:
	ldr	r2, [r5, #-12]
	mov	r8, r4
	cmp	r2, r7
	mov	fp, r5
	add	r4, r4, #1
	sub	r6, r5, #12
	add	r3, ip, r5
	blt	.L30
	ldr	r0, [r6, #4]
	cmp	r0, r7
	bgt	.L5
	cmp	r2, r0
	beq	.L31
	cmp	r0, r7
	movge	r2, r4
	ldr	r1, [r6, #8]
	bge	.L10
	add	r2, r8, #2
	mov	r8, r4
	str	r1, [r3, #8]
	sub	r1, r7, #1
	str	r1, [r3]
	add	ip, r4, r4, lsl #1
	ldr	r1, [r6, #8]
	str	r0, [r3, #4]
	add	r3, r10, ip, lsl #2
.L10:
	str	r7, [r3, #4]
	str	r7, [r3]
	mov	r0, r9
	str	r2, [sp, #28]
	str	r3, [sp, #24]
	bl	newhicolorrow
	ldr	r1, [r6]
	ldr	r3, [sp, #24]
	cmp	r1, r7
	mov	fp, r0
	ldr	r2, [sp, #28]
	str	r0, [r3, #8]
	ble	.L11
	add	r2, r2, r2, lsl #1
	add	r0, r7, #1
	add	r3, r10, r2, lsl #2
	str	r0, [r3, #4]
	ldr	r0, [r6, #4]
	str	r1, [r10, r2, lsl #2]
	cmp	r0, r7
	ldr	r1, [r6, #8]
	blt	.L32
.L12:
	str	r1, [r3, #8]
	add	r2, r8, #2
.L11:
	mov	r8, r4
	mov	r6, r5
	mov	r4, r2
	b	.L8
.L17:
	mov	r6, r5
	mov	r3, r10
	mov	r4, #1
	mov	r8, #0
.L5:
	str	r7, [r3, #4]
	str	r7, [r3]
	mov	r1, #0
	mov	r0, r9
	str	r3, [sp, #24]
	bl	newhicolorrow
	mov	fp, r0
	ldr	r3, [sp, #24]
	str	r0, [r3, #8]
.L8:
	ldr	r3, [sp, #8]
	mov	r1, fp
	str	r3, [sp]
	ldr	r2, [sp, #16]
	ldr	r3, [sp, #20]
	ldr	r0, [sp, #12]
	bl	subcoloronerow
	ldr	ip, [r9]
	cmp	r8, ip
	bge	.L13
	add	r3, ip, r4
	sub	r5, r4, r4, lsl #2
	sub	r8, r3, r8
	add	lr, r8, r8, lsl #1
	rsb	r5, r10, r5, lsl #2
	add	r4, r4, r4, lsl #1
	add	lr, r10, lr, lsl #2
	add	r6, r6, r5
	add	r4, r10, r4, lsl #2
.L14:
	add	r3, r6, r4
	ldm	r3, {r0, r1, r2}
	stm	r4, {r0, r1, r2}
	add	r4, r4, #12
	cmp	lr, r4
	bne	.L14
	mov	r4, r8
.L13:
	add	r0, ip, #2
	cmp	r0, r4
	movlt	r0, #0
	movge	r0, #1
	bl	assert
	ldr	r0, [r9, #4]
	cmp	r0, #0
	beq	.L15
	bl	FREE
.L15:
	stm	r9, {r4, r10}
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	mov	r0, r9
	bl	subcolor
	mov	r4, r0
	bl	NOERR
	ldr	r5, [sp, #8]
	ldr	r3, [r5]
	cmp	r3, r4
	beq	.L1
	ldr	r3, [sp, #20]
	ldr	r1, [sp, #12]
	ldr	r2, .L33+4
	str	r3, [sp]
	ldr	r0, [r1]
	ldr	r3, [sp, #16]
	ldr	r1, [r2]
	mov	r2, r4
	bl	newarc
	str	r4, [r5]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	add	r3, r4, r4, lsl #1
	mov	r6, fp
	mov	r8, lr
	add	r3, r10, r3, lsl #2
	add	r4, r4, #1
	b	.L5
.L28:
	ldr	r3, .L33+8
	ldr	r0, [r3]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	CERR
.L31:
	ldm	r6, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	mov	r8, r4
	ldr	fp, [r6, #8]
	mov	r6, r5
	b	.L8
.L32:
	mov	r0, r9
	str	r3, [sp, #24]
	bl	newhicolorrow
	ldr	r3, [sp, #24]
	mov	r1, r0
	b	.L12
.L34:
	.align	2
.L33:
	.word	MAX_SIMPLE_CHR
	.word	PLAIN
	.word	REG_ESPACE
	.size	subcoloronechr, .-subcoloronechr
	.comm	REG_ESPACE,4,4
	.comm	PLAIN,4,4
	.comm	MAX_SIMPLE_CHR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
