	.file	"1029370.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n  Room:\n"
.LC1:
	.string	"%d "
	.text
	.globl	ft_print_room
	.type	ft_print_room, @function
ft_print_room:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	ebx, DWORD PTR -36[rbp]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -24[rbp], rax
	movsx	rax, ebx
	mov	r8, rax
	mov	r9d, 0
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	edx, DWORD PTR [rdx+rax*4]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -32[rbp], 1
.L3:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -28[rbp], 1
.L2:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ft_print_room, .-ft_print_room
	.section	.rodata
.LC2:
	.string	"Candle process (%d, %d)\n"
	.text
	.globl	ft_light
	.type	ft_light, @function
ft_light:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -40[rbp], edx
	mov	DWORD PTR -52[rbp], ecx
	mov	DWORD PTR -56[rbp], r8d
	mov	ebx, DWORD PTR -36[rbp]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -24[rbp], rax
	movsx	rax, ebx
	mov	r10, rax
	mov	r11d, 0
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -56[rbp]
	mov	edx, DWORD PTR -52[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -40[rbp], 1
	jle	.L14
	sub	DWORD PTR -40[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L9
.L13:
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -32[rbp], eax
	jmp	.L10
.L12:
	cmp	DWORD PTR -28[rbp], 0
	js	.L11
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L11
	cmp	DWORD PTR -32[rbp], 0
	js	.L11
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L11
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	eax, 2
	je	.L11
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], 1
.L11:
	add	DWORD PTR -32[rbp], 1
.L10:
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cmp	DWORD PTR -32[rbp], eax
	jle	.L12
	add	DWORD PTR -28[rbp], 1
.L9:
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cmp	DWORD PTR -28[rbp], eax
	jle	.L13
	jmp	.L6
.L14:
	nop
.L6:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ft_light, .-ft_light
	.section	.rodata
.LC3:
	.string	"%d"
.LC4:
	.string	"%s"
.LC5:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 152
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	QWORD PTR -184[rbp], rax
	lea	rax, -116[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ecx, DWORD PTR -116[rbp]
	mov	esi, DWORD PTR -116[rbp]
	movsx	rax, ecx
	sub	rax, 1
	mov	QWORD PTR -88[rbp], rax
	movsx	rax, ecx
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], 0
	movsx	rax, ecx
	lea	rbx, 0[0+rax*4]
	movsx	rax, esi
	sub	rax, 1
	mov	QWORD PTR -80[rbp], rax
	movsx	rax, ecx
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], 0
	movsx	rax, esi
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], 0
	mov	r9, QWORD PTR -160[rbp]
	mov	r10, QWORD PTR -152[rbp]
	mov	rdx, r10
	imul	rdx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -136[rbp]
	imul	rax, r9
	lea	rdi, [rdx+rax]
	mov	rax, r9
	mul	QWORD PTR -144[rbp]
	add	rdi, rdx
	mov	rdx, rdi
	movsx	rax, ecx
	mov	r14, rax
	mov	r15d, 0
	movsx	rax, esi
	mov	r12, rax
	mov	r13d, 0
	mov	rdx, r15
	imul	rdx, r12
	mov	rax, r13
	imul	rax, r14
	lea	rdi, [rdx+rax]
	mov	rax, r14
	mul	r12
	add	rdi, rdx
	mov	rdx, rdi
	movsx	rdx, ecx
	movsx	rax, esi
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L16:
	cmp	rsp, rdx
	je	.L17
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L16
.L17:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L18
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L18:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -92[rbp], 0
	jmp	.L19
.L24:
	mov	DWORD PTR -96[rbp], 0
	jmp	.L20
.L23:
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -60[rbp]
	movsx	eax, al
	mov	rdx, QWORD PTR stderr[rip]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	movzx	eax, BYTE PTR -60[rbp]
	cmp	al, 67
	jne	.L21
	mov	esi, 2
	jmp	.L22
.L21:
	mov	esi, 0
.L22:
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdi, edx
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rdi
	mov	DWORD PTR [rax+rdx*4], esi
	add	DWORD PTR -96[rbp], 1
.L20:
	mov	eax, DWORD PTR -116[rbp]
	cmp	DWORD PTR -96[rbp], eax
	jl	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -92[rbp], 1
.L19:
	mov	eax, DWORD PTR -116[rbp]
	cmp	DWORD PTR -92[rbp], eax
	jl	.L24
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	DWORD PTR -100[rbp], 0
	jmp	.L25
.L29:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L26
.L28:
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -104[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -100[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	eax, 2
	jne	.L27
	mov	edx, DWORD PTR -112[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, DWORD PTR -104[rbp]
	mov	ecx, DWORD PTR -100[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	r8d, edi
	mov	edi, eax
	call	ft_light
.L27:
	add	DWORD PTR -104[rbp], 1
.L26:
	mov	eax, DWORD PTR -116[rbp]
	cmp	DWORD PTR -104[rbp], eax
	jl	.L28
	add	DWORD PTR -100[rbp], 1
.L25:
	mov	eax, DWORD PTR -116[rbp]
	cmp	DWORD PTR -100[rbp], eax
	jl	.L29
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	jmp	.L30
.L34:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L31
.L33:
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -104[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -100[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	jne	.L32
	add	DWORD PTR -108[rbp], 1
.L32:
	add	DWORD PTR -104[rbp], 1
.L31:
	mov	eax, DWORD PTR -116[rbp]
	cmp	DWORD PTR -104[rbp], eax
	jl	.L33
	add	DWORD PTR -100[rbp], 1
.L30:
	mov	eax, DWORD PTR -116[rbp]
	cmp	DWORD PTR -100[rbp], eax
	jl	.L34
	mov	eax, DWORD PTR -116[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ft_print_room
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsp, QWORD PTR -184[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"1029370.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012  Room:\012\000"
	.align	2
.LC1:
	.ascii	"%d \000"
	.text
	.align	2
	.global	ft_print_room
	.syntax unified
	.arm
	.fpu softvfp
	.type	ft_print_room, %function
ft_print_room:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r4, [fp, #-32]
	sub	r3, r4, #1
	str	r3, [fp, #-16]
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L6+4
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L3
.L4:
	ldr	r3, .L6
	ldr	r0, [r3]
	mov	r2, r4
	ldr	r3, [fp, #-20]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [r3, r2, lsl #2]
	mov	r2, r3
	ldr	r1, .L6+8
	bl	fprintf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L3:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L4
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L5
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	ft_print_room, .-ft_print_room
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Candle process (%d, %d)\012\000"
	.text
	.align	2
	.global	ft_light
	.syntax unified
	.arm
	.fpu softvfp
	.type	ft_light, %function
ft_light:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r4, [fp, #-32]
	sub	r3, r4, #1
	str	r3, [fp, #-16]
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, .L17
	ldr	r0, [r3]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-44]
	ldr	r1, .L17+4
	bl	fprintf
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	ble	.L16
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L11
.L15:
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	b	.L12
.L14:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L13
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bge	.L13
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L13
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bge	.L13
	mov	r2, r4
	ldr	r3, [fp, #-20]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #2
	beq	.L13
	mov	r2, r4
	ldr	r3, [fp, #-20]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	mov	r1, #1
	str	r1, [r3, r2, lsl #2]
.L13:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L12:
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L14
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L11:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L15
	b	.L8
.L16:
	nop
.L8:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	stderr
	.word	.LC2
	.size	ft_light, .-ft_light
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"%s\000"
	.align	2
.LC5:
	.ascii	"%d\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #60
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L38+4
	bl	__isoc99_scanf
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L38+4
	bl	__isoc99_scanf
	ldr	ip, [fp, #-76]
	ldr	lr, [fp, #-76]
	sub	r3, ip, #1
	str	r3, [fp, #-48]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r6, r3, #2
	sub	r3, lr, #1
	str	r3, [fp, #-44]
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r7, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r7, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r7, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r7, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r2, lr
	mul	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L20
.L25:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L21
.L24:
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L38+8
	bl	__isoc99_scanf
	ldr	r3, .L38+12
	ldr	r3, [r3]
	ldrb	r2, [fp, #-36]	@ zero_extendqisi2
	mov	r1, r3
	mov	r0, r2
	bl	fputc
	ldrb	r3, [fp, #-36]	@ zero_extendqisi2
	cmp	r3, #67
	bne	.L22
	mov	r1, #2
	b	.L23
.L22:
	mov	r1, #0
.L23:
	lsr	r2, r6, #2
	ldr	r3, [fp, #-40]
	ldr	r0, [fp, #-52]
	mul	r0, r2, r0
	ldr	r2, [fp, #-56]
	add	r2, r0, r2
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L21:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L24
	ldr	r3, .L38+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L20:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L25
	ldr	r3, .L38+12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L26
.L30:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L27
.L29:
	lsr	r2, r6, #2
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-60]
	mul	r1, r2, r1
	ldr	r2, [fp, #-64]
	add	r2, r1, r2
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #2
	bne	.L28
	ldr	r0, [fp, #-76]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-64]
	str	r3, [sp]
	ldr	r3, [fp, #-60]
	ldr	r1, [fp, #-40]
	bl	ft_light
.L28:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L27:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L29
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L26:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L30
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L31
.L35:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L32
.L34:
	lsr	r2, r6, #2
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-60]
	mul	r1, r2, r1
	ldr	r2, [fp, #-64]
	add	r2, r1, r2
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L33:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L32:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L34
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L31:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L35
	ldr	r3, [fp, #-76]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	ft_print_room
	ldr	r1, [fp, #-68]
	ldr	r0, .L38+16
	bl	printf
	mov	r3, #0
	mov	sp, r8
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC6
	.word	.LC3
	.word	.LC4
	.word	stderr
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
