	.file	"24629.c"
	.intel_syntax noprefix
	.text
	.globl	color
	.bss
	.align 32
	.type	color, @object
	.size	color, 40000
color:
	.zero	40000
	.globl	r
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	item
	.align 32
	.type	item, @object
	.size	item, 40000
item:
	.zero	40000
	.globl	head
	.align 4
	.type	head, @object
	.size	head, 4
head:
	.zero	4
	.globl	tail
	.align 4
	.type	tail, @object
	.size	tail, 4
tail:
	.zero	4
	.globl	g
	.align 32
	.type	g, @object
	.size	g, 1000000
g:
	.zero	1000000
	.text
	.globl	push
	.type	push, @function
push:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR tail[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, item[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR tail[rip]
	add	eax, 1
	mov	DWORD PTR tail[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	push, .-push
	.globl	empty
	.type	empty, @function
empty:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, DWORD PTR tail[rip]
	mov	eax, DWORD PTR head[rip]
	cmp	edx, eax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	empty, .-empty
	.globl	q_front
	.type	q_front, @function
q_front:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR head[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, item[rip]
	mov	eax, DWORD PTR [rdx+rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	q_front, .-q_front
	.globl	pop
	.type	pop, @function
pop:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR head[rip]
	add	eax, 1
	mov	DWORD PTR head[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	pop, .-pop
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, color[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	eax, DWORD PTR i[rip]
	mov	edi, eax
	call	push
	mov	eax, DWORD PTR j[rip]
	mov	edi, eax
	call	push
	jmp	.L8
.L12:
	mov	eax, 0
	call	q_front
	mov	DWORD PTR -96[rbp], eax
	mov	eax, 0
	call	pop
	mov	eax, 0
	call	q_front
	mov	DWORD PTR -92[rbp], eax
	mov	eax, 0
	call	pop
	mov	DWORD PTR -80[rbp], -1
	mov	DWORD PTR -76[rbp], -1
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 1
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], 1
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], -1
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 1
	mov	DWORD PTR -40[rbp], 1
	mov	DWORD PTR -36[rbp], 1
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], -1
	mov	DWORD PTR -24[rbp], -1
	mov	DWORD PTR -20[rbp], -1
	mov	DWORD PTR -100[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	edx, DWORD PTR -80[rbp+rax*4]
	mov	eax, DWORD PTR -96[rbp]
	add	eax, edx
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	imul	rax, rax, 1000
	add	rdx, rax
	lea	rax, g[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jne	.L10
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, color[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, color[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	push
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	push
.L10:
	add	DWORD PTR -100[rbp], 1
.L9:
	cmp	DWORD PTR -100[rbp], 7
	jle	.L11
.L8:
	mov	eax, 0
	call	empty
	test	eax, eax
	je	.L12
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	bfs, .-bfs
	.section	.rodata
.LC0:
	.string	"%c"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	jmp	.L15
.L26:
	call	getchar@PLT
	mov	eax, DWORD PTR r[rip]
	test	eax, eax
	je	.L16
	mov	eax, DWORD PTR c[rip]
	test	eax, eax
	je	.L16
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR i[rip], 0
	jmp	.L17
.L20:
	mov	DWORD PTR j[rip], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1000
	add	rdx, rax
	lea	rax, g[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
.L18:
	mov	edx, DWORD PTR j[rip]
	mov	eax, DWORD PTR c[rip]
	cmp	edx, eax
	jl	.L19
	call	getchar@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L17:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR r[rip]
	cmp	edx, eax
	jl	.L20
	mov	DWORD PTR i[rip], 0
	jmp	.L21
.L25:
	mov	DWORD PTR j[rip], 0
	jmp	.L22
.L24:
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1000
	add	rdx, rax
	lea	rax, g[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jne	.L23
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, color[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L23
	mov	eax, 0
	call	bfs
	add	DWORD PTR -4[rbp], 1
.L23:
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
.L22:
	mov	edx, DWORD PTR j[rip]
	mov	eax, DWORD PTR c[rip]
	cmp	edx, eax
	jl	.L24
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L21:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR r[rip]
	cmp	edx, eax
	jl	.L25
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 1000000
	mov	esi, 0
	lea	rdi, g[rip]
	call	memset@PLT
	mov	edx, 40000
	mov	esi, 0
	lea	rdi, item[rip]
	call	memset@PLT
	mov	edx, 40000
	mov	esi, 0
	lea	rdi, color[rip]
	call	memset@PLT
	mov	DWORD PTR head[rip], 0
	mov	DWORD PTR tail[rip], 0
.L15:
	lea	rdx, c[rip]
	lea	rsi, r[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 2
	je	.L26
.L16:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"24629.c"
	.text
	.comm	color,40000,4
	.comm	r,4,4
	.comm	c,4,4
	.comm	i,4,4
	.comm	j,4,4
	.comm	item,40000,4
	.comm	head,4,4
	.comm	tail,4,4
	.comm	g,1000000,4
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r1, .L2+4
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L2
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L2
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	tail
	.word	item
	.size	push, .-push
	.align	2
	.global	empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	empty, %function
empty:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	tail
	.word	head
	.size	empty, .-empty
	.align	2
	.global	q_front
	.syntax unified
	.arm
	.fpu softvfp
	.type	q_front, %function
q_front:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, .L10+4
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	head
	.word	item
	.size	q_front, .-q_front
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L13
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L13
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L14:
	.align	2
.L13:
	.word	head
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC0:
	.word	-1
	.word	-1
	.word	0
	.word	1
	.word	1
	.word	1
	.word	0
	.word	-1
	.align	2
.LC1:
	.word	0
	.word	1
	.word	1
	.word	1
	.word	0
	.word	-1
	.word	-1
	.word	-1
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfs, %function
bfs:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L22+4
	ldr	r2, [r3]
	ldr	r3, .L22+8
	ldr	r1, [r3]
	ldr	r0, .L22+12
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	mov	r2, #1
	str	r2, [r0, r3, lsl #2]
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	push
	ldr	r3, .L22+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	push
	b	.L16
.L20:
	bl	q_front
	str	r0, [fp, #-88]
	bl	pop
	bl	q_front
	str	r0, [fp, #-84]
	bl	pop
	ldr	r3, .L22+16
	sub	ip, fp, #72
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L22+20
	sub	ip, fp, #40
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L17
.L19:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-68]
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r1, .L22+24
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r2, r1, r3
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bne	.L18
	ldr	r1, .L22+12
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #0
	bne	.L18
	ldr	r1, .L22+12
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r3, r2
	mov	r2, #1
	str	r2, [r1, r3, lsl #2]
	ldr	r0, [fp, #-80]
	bl	push
	ldr	r0, [fp, #-76]
	bl	push
.L18:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L17:
	ldr	r3, [fp, #-92]
	cmp	r3, #7
	ble	.L19
.L16:
	bl	empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	i
	.word	j
	.word	color
	.word	.LC0
	.word	.LC1
	.word	g
	.size	bfs, .-bfs
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%c\000"
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.align	2
.LC5:
	.ascii	"%d %d\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	b	.L25
.L36:
	bl	getchar
	ldr	r3, .L38
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L38+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L26
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L38+8
	mov	r2, #0
	str	r2, [r3]
	b	.L27
.L30:
	ldr	r3, .L38+12
	mov	r2, #0
	str	r2, [r3]
	b	.L28
.L29:
	ldr	r3, .L38+8
	ldr	r2, [r3]
	ldr	r3, .L38+12
	ldr	r1, [r3]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	ldr	r2, .L38+16
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L38+20
	bl	__isoc99_scanf
	ldr	r3, .L38+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L38+12
	str	r3, [r2]
.L28:
	ldr	r3, .L38+12
	ldr	r2, [r3]
	ldr	r3, .L38+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L29
	bl	getchar
	ldr	r3, .L38+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L38+8
	str	r3, [r2]
.L27:
	ldr	r3, .L38+8
	ldr	r2, [r3]
	ldr	r3, .L38
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L30
	ldr	r3, .L38+8
	mov	r2, #0
	str	r2, [r3]
	b	.L31
.L35:
	ldr	r3, .L38+12
	mov	r2, #0
	str	r2, [r3]
	b	.L32
.L34:
	ldr	r3, .L38+8
	ldr	r2, [r3]
	ldr	r3, .L38+12
	ldr	r1, [r3]
	ldr	r0, .L38+16
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bne	.L33
	ldr	r3, .L38+8
	ldr	r2, [r3]
	ldr	r3, .L38+12
	ldr	r1, [r3]
	ldr	r0, .L38+24
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #0
	bne	.L33
	bl	bfs
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L33:
	ldr	r3, .L38+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L38+12
	str	r3, [r2]
.L32:
	ldr	r3, .L38+12
	ldr	r2, [r3]
	ldr	r3, .L38+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L34
	ldr	r3, .L38+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L38+8
	str	r3, [r2]
.L31:
	ldr	r3, .L38+8
	ldr	r2, [r3]
	ldr	r3, .L38
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L35
	ldr	r1, [fp, #-8]
	ldr	r0, .L38+28
	bl	printf
	ldr	r2, .L38+32
	mov	r1, #0
	ldr	r0, .L38+16
	bl	memset
	ldr	r2, .L38+36
	mov	r1, #0
	ldr	r0, .L38+40
	bl	memset
	ldr	r2, .L38+36
	mov	r1, #0
	ldr	r0, .L38+24
	bl	memset
	ldr	r3, .L38+44
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L38+48
	mov	r2, #0
	str	r2, [r3]
.L25:
	ldr	r2, .L38+4
	ldr	r1, .L38
	ldr	r0, .L38+52
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L36
.L26:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	r
	.word	c
	.word	i
	.word	j
	.word	g
	.word	.LC3
	.word	color
	.word	.LC4
	.word	1000000
	.word	40000
	.word	item
	.word	head
	.word	tail
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
