	.file	"658725.c"
	.intel_syntax noprefix
	.text
	.globl	INPUT_FILE
	.bss
	.align 8
	.type	INPUT_FILE, @object
	.size	INPUT_FILE, 8
INPUT_FILE:
	.zero	8
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"./data/day12.txt"
.LC2:
	.string	"%d\n%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR INPUT_FILE[rip], rax
	mov	rax, QWORD PTR INPUT_FILE[rip]
	test	rax, rax
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
	call	part1
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR INPUT_FILE[rip]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, 0
	call	part2
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	part1
	.type	part1, @function
part1:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	mov	BYTE PTR -29[rbp], 1
	jmp	.L5
.L6:
	lea	rdx, -28[rbp]
	lea	rax, -30[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	next_instruction
	mov	BYTE PTR -29[rbp], al
	mov	esi, DWORD PTR -28[rbp]
	movzx	eax, BYTE PTR -30[rbp]
	movsx	eax, al
	lea	r8, -12[rbp]
	lea	rdi, -16[rbp]
	lea	rcx, -20[rbp]
	lea	rdx, -24[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	edi, eax
	call	process_instruction
.L5:
	cmp	BYTE PTR -29[rbp], 0
	jne	.L6
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	manhattan_distance
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	part1, .-part1
	.globl	part2
	.type	part2, @function
part2:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -24[rbp], 10
	mov	DWORD PTR -20[rbp], 1
	mov	BYTE PTR -29[rbp], 1
	jmp	.L10
.L12:
	lea	rdx, -28[rbp]
	lea	rax, -30[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	next_instruction
	mov	BYTE PTR -29[rbp], al
	movzx	eax, BYTE PTR -30[rbp]
	cmp	al, 70
	jne	.L11
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, edx
	add	DWORD PTR -16[rbp], eax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, edx
	add	DWORD PTR -12[rbp], eax
	jmp	.L10
.L11:
	mov	esi, DWORD PTR -28[rbp]
	movzx	eax, BYTE PTR -30[rbp]
	movsx	eax, al
	lea	r8, -20[rbp]
	lea	rdi, -24[rbp]
	lea	rcx, -20[rbp]
	lea	rdx, -24[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	edi, eax
	call	process_instruction
.L10:
	cmp	BYTE PTR -29[rbp], 0
	jne	.L12
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	manhattan_distance
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	part2, .-part2
	.globl	next_instruction
	.type	next_instruction, @function
next_instruction:
.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR INPUT_FILE[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -25[rbp], al
.L20:
	cmp	BYTE PTR -25[rbp], 64
	jle	.L16
	cmp	BYTE PTR -25[rbp], 90
	jg	.L16
	mov	rax, QWORD PTR -40[rbp]
	movzx	edx, BYTE PTR -25[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L17
.L16:
	cmp	BYTE PTR -25[rbp], 47
	jle	.L18
	cmp	BYTE PTR -25[rbp], 57
	jg	.L18
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	edx, BYTE PTR -25[rbp]
	mov	BYTE PTR -18[rbp+rax], dl
	add	DWORD PTR -24[rbp], 1
	jmp	.L17
.L18:
	mov	edi, 2
	call	exit@PLT
.L17:
	mov	rax, QWORD PTR INPUT_FILE[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -25[rbp], al
	cmp	BYTE PTR -25[rbp], -1
	je	.L19
	cmp	BYTE PTR -25[rbp], 10
	jne	.L20
.L19:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], 0
	lea	rax, -18[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR INPUT_FILE[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -25[rbp], al
	mov	rdx, QWORD PTR INPUT_FILE[rip]
	movsx	eax, BYTE PTR -25[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	cmp	BYTE PTR -25[rbp], -1
	setne	al
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	next_instruction, .-next_instruction
	.globl	process_instruction
	.type	process_instruction, @function
process_instruction:
.LFB10:
	.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	eax, edi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -16[rbp], rdx
	mov	QWORD PTR -24[rbp], rcx
	mov	QWORD PTR -32[rbp], r8
	mov	QWORD PTR -40[rbp], r9
	mov	BYTE PTR -4[rbp], al
	movsx	eax, BYTE PTR -4[rbp]
	sub	eax, 69
	cmp	eax, 18
	ja	.L24
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L26[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L26[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L26:
	.long	.L32-.L26
	.long	.L31-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L30-.L26
	.long	.L24-.L26
	.long	.L29-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L28-.L26
	.long	.L27-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L25-.L26
	.text
.L29:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L33
.L27:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L33
.L32:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L33
.L25:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L33
.L30:
	mov	eax, DWORD PTR -8[rbp]
	neg	eax
	mov	ecx, eax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	edi, ecx
	call	rotate_vector
	jmp	.L33
.L28:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	rotate_vector
	jmp	.L33
.L31:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, DWORD PTR -8[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, DWORD PTR -8[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L33
.L24:
	mov	edi, 3
	call	exit@PLT
.L33:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	process_instruction, .-process_instruction
	.globl	rotate_vector
	.type	rotate_vector, @function
rotate_vector:
.LFB11:
	.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	cmp	DWORD PTR -20[rbp], 0
	jns	.L35
	add	DWORD PTR -20[rbp], 360
.L35:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1240768329
	shr	rdx, 32
	add	edx, eax
	sar	edx, 6
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L36
.L37:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -4[rbp]
	neg	eax
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -12[rbp], 1
.L36:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L37
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	rotate_vector, .-rotate_vector
	.globl	manhattan_distance
	.type	manhattan_distance, @function
manhattan_distance:
.LFB12:
	.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	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	sar	eax, 31
	mov	edx, eax
	xor	edx, DWORD PTR -4[rbp]
	sub	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	sar	eax, 31
	mov	ecx, eax
	mov	eax, ecx
	xor	eax, DWORD PTR -8[rbp]
	sub	eax, ecx
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	manhattan_distance, .-manhattan_distance
	.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	"658725.c"
	.text
	.global	INPUT_FILE
	.bss
	.align	2
	.type	INPUT_FILE, %object
	.size	INPUT_FILE, 4
INPUT_FILE:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"./data/day12.txt\000"
	.align	2
.LC2:
	.ascii	"%d\012%d\012\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
	ldr	r1, .L4
	ldr	r0, .L4+4
	bl	fopen
	mov	r3, r0
	ldr	r2, .L4+8
	str	r3, [r2]
	ldr	r3, .L4+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	b	.L3
.L2:
	bl	part1
	str	r0, [fp, #-12]
	ldr	r3, .L4+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	rewind
	bl	part2
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L4+12
	bl	printf
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.word	INPUT_FILE
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	part1
	.syntax unified
	.arm
	.fpu softvfp
	.type	part1, %function
part1:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #1
	strb	r3, [fp, #-29]
	b	.L7
.L8:
	sub	r2, fp, #28
	sub	r3, fp, #30
	mov	r1, r2
	mov	r0, r3
	bl	next_instruction
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r0, [fp, #-30]	@ zero_extendqisi2
	ldr	r1, [fp, #-28]
	sub	ip, fp, #20
	sub	r2, fp, #24
	sub	r3, fp, #12
	str	r3, [sp, #4]
	sub	r3, fp, #16
	str	r3, [sp]
	mov	r3, ip
	bl	process_instruction
.L7:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	manhattan_distance
	mov	r3, r0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.size	part1, .-part1
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	part2
	.syntax unified
	.arm
	.fpu softvfp
	.type	part2, %function
part2:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #10
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #1
	strb	r3, [fp, #-29]
	b	.L14
.L16:
	sub	r2, fp, #28
	sub	r3, fp, #30
	mov	r1, r2
	mov	r0, r3
	bl	next_instruction
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	cmp	r3, #70
	bne	.L15
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-28]
	mul	r3, r2, r3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L14
.L15:
	ldrb	r0, [fp, #-30]	@ zero_extendqisi2
	ldr	r1, [fp, #-28]
	sub	ip, fp, #20
	sub	r2, fp, #24
	sub	r3, fp, #20
	str	r3, [sp, #4]
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, ip
	bl	process_instruction
.L14:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	manhattan_distance
	mov	r3, r0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC4
	.size	part2, .-part2
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	next_instruction
	.syntax unified
	.arm
	.fpu softvfp
	.type	next_instruction, %function
next_instruction:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L28+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-25]
.L25:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L22
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L22
	ldr	r3, [fp, #-32]
	ldrb	r2, [fp, #-25]
	strb	r2, [r3]
	b	.L23
.L22:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L24
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L24
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [fp, #-25]
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L23
.L24:
	mov	r0, #2
	bl	exit
.L23:
	ldr	r3, .L28+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L25
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #20
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, .L28+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	ldr	r2, .L28+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	ungetc
	mov	r3, #1
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC5
	.word	INPUT_FILE
	.size	next_instruction, .-next_instruction
	.align	2
	.global	process_instruction
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_instruction, %function
process_instruction:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #69
	cmp	r3, #18
	ldrls	pc, [pc, r3, asl #2]
	b	.L31
.L33:
	.word	.L39
	.word	.L38
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L37
	.word	.L31
	.word	.L36
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L35
	.word	.L34
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L32
.L36:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	b	.L40
.L34:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r2, r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	b	.L40
.L39:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	b	.L40
.L32:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	b	.L40
.L37:
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #0
	ldr	r2, [fp, #8]
	ldr	r1, [fp, #4]
	mov	r0, r3
	bl	rotate_vector
	b	.L40
.L35:
	ldr	r2, [fp, #8]
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-12]
	bl	rotate_vector
	b	.L40
.L38:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #8]
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	b	.L40
.L31:
	mov	r0, #3
	bl	exit
.L40:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	process_instruction, .-process_instruction
	.align	2
	.global	rotate_vector
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotate_vector, %function
rotate_vector:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L42
	ldr	r3, [fp, #-24]
	add	r3, r3, #360
	str	r3, [fp, #-24]
.L42:
	ldr	r3, [fp, #-24]
	ldr	r2, .L45
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L43
.L44:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	rsb	r2, r3, #0
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L43:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L44
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L46:
	.align	2
.L45:
	.word	-1240768329
	.size	rotate_vector, .-rotate_vector
	.align	2
	.global	manhattan_distance
	.syntax unified
	.arm
	.fpu softvfp
	.type	manhattan_distance, %function
manhattan_distance:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	rsblt	r3, r3, #0
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	manhattan_distance, .-manhattan_distance
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
