	.file	"470742.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/470742.c"
.LC1:
	.string	"*size < WORLD_SIZE"
	.text
	.globl	read_input_world
	.type	read_input_world, @function
read_input_world:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], -1
	mov	edi, 10000
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L2
.L5:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 10
	jne	.L3
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rdx, rax
	jnb	.L2
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 9999
	jbe	.L4
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 20
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L4:
	lea	rax, -9[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	esi, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rcx, 1[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rcx
	add	rax, rdi
	mov	edx, esi
	mov	BYTE PTR [rax], dl
.L2:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -9[rbp], al
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, -1
	jne	.L5
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_input_world, .-read_input_world
	.globl	low_point
	.type	low_point, @function
low_point:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	rax, QWORD PTR -56[rbp]
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	cmp	QWORD PTR -56[rbp], 0
	je	.L8
	cmp	QWORD PTR -48[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, 1
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -1[rbp], al
	jb	.L9
	mov	eax, 0
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, 1
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -1[rbp], al
	jb	.L11
	mov	eax, 0
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, 1
	cmp	QWORD PTR -48[rbp], rax
	je	.L8
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, 1
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -1[rbp], al
	jb	.L8
	mov	eax, 0
	jmp	.L10
.L8:
	cmp	QWORD PTR -48[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -56[rbp]
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -1[rbp], al
	jb	.L12
	mov	eax, 0
	jmp	.L10
.L12:
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, 1
	cmp	QWORD PTR -48[rbp], rax
	je	.L13
	mov	rax, QWORD PTR -56[rbp]
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -1[rbp], al
	jb	.L13
	mov	eax, 0
	jmp	.L10
.L13:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, 1
	cmp	QWORD PTR -56[rbp], rax
	je	.L14
	cmp	QWORD PTR -48[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -1[rbp], al
	jb	.L15
	mov	eax, 0
	jmp	.L10
.L15:
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -1[rbp], al
	jb	.L16
	mov	eax, 0
	jmp	.L10
.L16:
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, 1
	cmp	QWORD PTR -48[rbp], rax
	je	.L14
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -1[rbp], al
	jb	.L14
	mov	eax, 0
	jmp	.L10
.L14:
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
.L10:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	low_point, .-low_point
	.globl	find_risk_level
	.type	find_risk_level, @function
find_risk_level:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 56
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L18
.L21:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L19
.L20:
	mov	rdi, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	low_point
	movzx	eax, al
	add	QWORD PTR -24[rbp], rax
	add	QWORD PTR -8[rbp], 1
.L19:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jb	.L20
	add	QWORD PTR -16[rbp], 1
.L18:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jb	.L21
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	find_risk_level, .-find_risk_level
	.section	.rodata
	.align 8
.LC2:
	.string	"(DAY 09A) Sum of the risk level is: %lu!\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -24[rbp]
	lea	rcx, -32[rbp]
	lea	rax, -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	read_input_world
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	edx, 0
	div	rcx
	mov	rdx, rax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	find_risk_level
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 17
__PRETTY_FUNCTION__.0:
	.string	"read_input_world"
	.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	"470742.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/470742.c\000"
	.align	2
.LC1:
	.ascii	"*size < WORLD_SIZE\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_input_world
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_input_world, %function
read_input_world:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, [fp, #-28]
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, [fp, #-32]
	mvn	r2, #0
	mvn	r3, #0
	stm	r1, {r2-r3}
	ldr	r0, .L8+4
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	b	.L2
.L7:
	ldr	r3, [fp, #-28]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-32]
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcs	.L2
	ldr	r3, [fp, #-28]
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-32]
	stm	r1, {r2-r3}
	b	.L2
.L3:
	ldr	r3, [fp, #-28]
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+8
	mov	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bls	.L4
	ldr	r3, .L8+12
	mov	r2, #20
	ldr	r1, .L8+16
	ldr	r0, .L8+20
	bl	__assert_fail
.L4:
	sub	r3, fp, #17
	mov	r0, r3
	bl	atoi
	mov	ip, r0
	ldr	r3, [fp, #-24]
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	ldr	r0, [fp, #-28]
	stm	r0, {r4-r5}
	mov	r3, r2
	add	r3, r1, r3
	and	r2, ip, #255
	strb	r2, [r3]
.L2:
	ldr	r3, .L8+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	b	.L7
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	10000
	.word	9999
	.word	__PRETTY_FUNCTION__.5159
	.word	.LC0
	.word	.LC1
	.word	stdin
	.size	read_input_world, .-read_input_world
	.align	2
	.global	low_point
	.syntax unified
	.arm
	.fpu softvfp
	.type	low_point, %function
low_point:
	@ args = 24, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #84
	str	r0, [fp, #-40]
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r1, [fp, #12]
	ldr	r2, [fp, #20]
	ldr	r3, [fp, #-52]
	mul	r3, r2, r3
	add	r2, r1, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L11
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L12
	ldr	r1, [fp, #12]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	mov	r2, r4
	ldr	r3, [fp, #-52]
	mul	r3, r2, r3
	add	r3, r1, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-40]
	add	r3, r3, r2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, r2
	bcc	.L12
	mov	r3, #0
	b	.L13
.L12:
	ldr	r1, [fp, #12]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	subs	r8, r2, #1
	sbc	r9, r3, #0
	mov	r2, r8
	ldr	r3, [fp, #-52]
	mul	r3, r2, r3
	add	r2, r1, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, r2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, r2
	bcc	.L14
	mov	r3, #0
	b	.L13
.L14:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	subs	r6, r2, #1
	sbc	r7, r3, #0
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	cmp	r3, r7
	cmpeq	r2, r6
	beq	.L11
	ldr	r1, [fp, #12]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	subs	r0, r2, #1
	str	r0, [fp, #-60]
	sbc	r3, r3, #0
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-52]
	mul	r3, r2, r3
	add	r3, r1, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L11
	mov	r3, #0
	b	.L13
.L11:
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L15
	ldr	r1, [fp, #12]
	ldr	r2, [fp, #20]
	ldr	r3, [fp, #-52]
	mul	r3, r2, r3
	add	r3, r1, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L15
	mov	r3, #0
	b	.L13
.L15:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	subs	r1, r2, #1
	str	r1, [fp, #-68]
	sbc	r3, r3, #0
	str	r3, [fp, #-64]
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	cmp	r3, r1
	cmpeq	r2, r0
	beq	.L16
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #20]
	ldr	r1, [fp, #-52]
	mul	r3, r1, r3
	add	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L16
	mov	r3, #0
	b	.L13
.L16:
	ldmib	fp, {r2-r3}
	subs	r1, r2, #1
	str	r1, [fp, #-76]
	sbc	r3, r3, #0
	str	r3, [fp, #-72]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	cmp	r3, r1
	cmpeq	r2, r0
	beq	.L17
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L18
	ldr	r1, [fp, #12]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	adds	r0, r2, #1
	str	r0, [fp, #-84]
	adc	r3, r3, #0
	str	r3, [fp, #-80]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-52]
	mul	r3, r2, r3
	add	r3, r1, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L18
	mov	r3, #0
	b	.L13
.L18:
	ldr	r1, [fp, #12]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	adds	r0, r2, #1
	str	r0, [fp, #-92]
	adc	r3, r3, #0
	str	r3, [fp, #-88]
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-52]
	mul	r3, r2, r3
	add	r3, r1, r3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L19
	mov	r3, #0
	b	.L13
.L19:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	subs	r1, r2, #1
	str	r1, [fp, #-100]
	sbc	r3, r3, #0
	str	r3, [fp, #-96]
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	cmp	r3, r1
	cmpeq	r2, r0
	beq	.L17
	ldr	r1, [fp, #12]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	adds	r0, r2, #1
	str	r0, [fp, #-108]
	adc	r3, r3, #0
	str	r3, [fp, #-104]
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-52]
	mul	r3, r2, r3
	add	r3, r1, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L17
	mov	r3, #0
	b	.L13
.L17:
	ldrb	r3, [fp, #-29]
	add	r3, r3, #1
	and	r3, r3, #255
.L13:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
	.size	low_point, .-low_point
	.align	2
	.global	find_risk_level
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_risk_level, %function
find_risk_level:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L21
.L24:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L22
.L23:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldmib	fp, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-56]
	bl	low_point
	mov	r3, r0
	and	r2, r3, #255
	mov	r3, #0
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-52]
	str	r5, [fp, #-48]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-36]
	str	r7, [fp, #-32]
.L22:
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L23
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-44]
	str	r9, [fp, #-40]
.L21:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	ldmib	fp, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L24
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	find_risk_level, .-find_risk_level
	.global	__aeabi_uldivmod
	.section	.rodata
	.align	2
.LC3:
	.ascii	"(DAY 09A) Sum of the risk level is: %lu!\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #52
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r2, fp, #44
	sub	r1, fp, #52
	sub	r3, fp, #56
	mov	r0, r3
	bl	read_input_world
	ldr	r6, [fp, #-56]
	sub	r5, fp, #44
	ldmia	r5, {r4-r5}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	mov	r0, r6
	bl	find_risk_level
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	free
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L29+4
	bl	printf
	mov	r3, #0
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC4
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5159, %object
	.size	__PRETTY_FUNCTION__.5159, 17
__PRETTY_FUNCTION__.5159:
	.ascii	"read_input_world\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
