	.file	"242331476.c"
	.intel_syntax noprefix
	.text
	.globl	step
	.type	step, @function
step:
.LFB0:
	.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	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L3
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 15
	ja	.L22
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L6[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L6[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L21-.L6
	.long	.L20-.L6
	.long	.L19-.L6
	.long	.L18-.L6
	.long	.L17-.L6
	.long	.L16-.L6
	.long	.L15-.L6
	.long	.L14-.L6
	.long	.L13-.L6
	.long	.L12-.L6
	.long	.L11-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
.L21:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	jmp	.L4
.L20:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	jmp	.L4
.L19:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, 12
	mov	edx, DWORD PTR [rdx]
	movsx	rdx, edx
	lea	rsi, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rsi
	imul	eax, ecx
	mov	DWORD PTR [rdx], eax
	jmp	.L4
.L18:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, 12
	mov	edx, DWORD PTR [rdx]
	movsx	rdx, edx
	lea	rsi, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rsi
	imul	eax, ecx
	mov	DWORD PTR [rdx], eax
	jmp	.L4
.L17:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	and	edx, ecx
	mov	DWORD PTR [rax], edx
	jmp	.L4
.L16:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	and	edx, ecx
	mov	DWORD PTR [rax], edx
	jmp	.L4
.L15:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	or	edx, ecx
	mov	DWORD PTR [rax], edx
	jmp	.L4
.L14:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	or	edx, ecx
	mov	DWORD PTR [rax], edx
	jmp	.L4
.L13:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, 12
	mov	edx, DWORD PTR [rdx]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	jmp	.L4
.L12:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR [rdx], eax
	jmp	.L4
.L11:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	setg	cl
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, cl
	mov	DWORD PTR [rdx], eax
	jmp	.L4
.L10:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	setg	cl
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, cl
	mov	DWORD PTR [rdx], eax
	jmp	.L4
.L9:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	setg	cl
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, cl
	mov	DWORD PTR [rdx], eax
	jmp	.L4
.L8:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	sete	cl
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, cl
	mov	DWORD PTR [rdx], eax
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	sete	cl
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, cl
	mov	DWORD PTR [rdx], eax
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	sete	cl
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, cl
	mov	DWORD PTR [rdx], eax
	nop
.L4:
.L22:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	step, .-step
	.globl	score
	.type	score, @function
score:
.LFB1:
	.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
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L24
.L28:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	test	eax, eax
	je	.L25
	mov	eax, 17
	jmp	.L26
.L25:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	test	eax, eax
	je	.L27
	add	DWORD PTR -8[rbp], 1
.L27:
	add	DWORD PTR -4[rbp], 1
.L24:
	cmp	DWORD PTR -4[rbp], 15
	jle	.L28
	mov	eax, DWORD PTR -8[rbp]
.L26:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	score, .-score
	.globl	resolve
	.type	resolve, @function
resolve:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	cmp	DWORD PTR -52[rbp], 16
	jne	.L30
	mov	eax, 1
	jmp	.L31
.L30:
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 17
	mov	DWORD PTR -20[rbp], 0
	jmp	.L32
.L34:
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	score
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jge	.L33
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -24[rbp], eax
.L33:
	add	DWORD PTR -20[rbp], 1
.L32:
	cmp	DWORD PTR -20[rbp], 15
	jle	.L34
	mov	DWORD PTR -16[rbp], 0
	jmp	.L35
.L44:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	test	eax, eax
	je	.L45
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L38
.L41:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	test	eax, eax
	je	.L39
	mov	DWORD PTR -12[rbp], 0
	jmp	.L40
.L39:
	add	DWORD PTR -8[rbp], 1
.L38:
	cmp	DWORD PTR -8[rbp], 15
	jle	.L41
.L40:
	cmp	DWORD PTR -12[rbp], 0
	je	.L46
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], 1
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	resolve
	test	eax, eax
	je	.L43
	mov	eax, 1
	jmp	.L31
.L43:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], 0
	jmp	.L37
.L45:
	nop
	jmp	.L37
.L46:
	nop
.L37:
	add	DWORD PTR -16[rbp], 1
.L35:
	cmp	DWORD PTR -16[rbp], 15
	jle	.L44
	mov	eax, 0
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	resolve, .-resolve
	.section	.rodata
.LC0:
	.string	" Before: [%d,%d,%d,%d]"
.LC1:
	.string	"%d%d%d%d"
.LC2:
	.string	" After: [%d,%d,%d,%d]"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2188[rbp], 0
	jmp	.L48
.L51:
	mov	DWORD PTR -2184[rbp], 0
	jmp	.L49
.L50:
	mov	eax, DWORD PTR -2184[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -2188[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	DWORD PTR -2064[rbp+rax*4], 1
	add	DWORD PTR -2184[rbp], 1
.L49:
	cmp	DWORD PTR -2184[rbp], 15
	jle	.L50
	add	DWORD PTR -2188[rbp], 1
.L48:
	cmp	DWORD PTR -2188[rbp], 15
	jle	.L51
.L60:
	lea	rax, -2160[rbp]
	lea	rsi, 12[rax]
	lea	rax, -2160[rbp]
	lea	rcx, 8[rax]
	lea	rax, -2160[rbp]
	lea	rdx, 4[rax]
	lea	rax, -2160[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 4
	je	.L52
	lea	rdx, -1040[rbp]
	mov	eax, 0
	mov	ecx, 128
	mov	rdi, rdx
	rep stosq
	lea	rcx, -2064[rbp]
	lea	rax, -1040[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	resolve
	mov	DWORD PTR -2172[rbp], 0
	jmp	.L53
.L52:
	lea	rax, -1040[rbp]
	lea	rsi, 12[rax]
	lea	rax, -1040[rbp]
	lea	rcx, 8[rax]
	lea	rax, -1040[rbp]
	lea	rdx, 4[rax]
	lea	rax, -1040[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -2144[rbp]
	lea	rsi, 12[rax]
	lea	rax, -2144[rbp]
	lea	rcx, 8[rax]
	lea	rax, -2144[rbp]
	lea	rdx, 4[rax]
	lea	rax, -2144[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -1040[rbp]
	mov	DWORD PTR -2164[rbp], eax
	mov	DWORD PTR -2180[rbp], 0
	jmp	.L54
.L59:
	mov	eax, DWORD PTR -2180[rbp]
	mov	DWORD PTR -1040[rbp], eax
	lea	rdx, -1040[rbp]
	lea	rcx, -2160[rbp]
	lea	rax, -2128[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	step
	mov	DWORD PTR -2176[rbp], 0
	jmp	.L55
.L58:
	mov	eax, DWORD PTR -2176[rbp]
	cdqe
	mov	edx, DWORD PTR -2144[rbp+rax*4]
	mov	eax, DWORD PTR -2176[rbp]
	cdqe
	mov	eax, DWORD PTR -2128[rbp+rax*4]
	cmp	edx, eax
	je	.L56
	mov	eax, DWORD PTR -2180[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -2164[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	DWORD PTR -2064[rbp+rax*4], 0
	jmp	.L57
.L56:
	add	DWORD PTR -2176[rbp], 1
.L55:
	cmp	DWORD PTR -2176[rbp], 3
	jle	.L58
.L57:
	add	DWORD PTR -2180[rbp], 1
.L54:
	cmp	DWORD PTR -2180[rbp], 15
	jle	.L59
	jmp	.L60
.L65:
	mov	DWORD PTR -2168[rbp], 0
	jmp	.L61
.L64:
	mov	eax, DWORD PTR -2168[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -2172[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	test	eax, eax
	je	.L62
	mov	eax, DWORD PTR -2172[rbp]
	cdqe
	mov	edx, DWORD PTR -2168[rbp]
	mov	DWORD PTR -2128[rbp+rax*4], edx
	jmp	.L63
.L62:
	add	DWORD PTR -2168[rbp], 1
.L61:
	cmp	DWORD PTR -2168[rbp], 15
	jle	.L64
.L63:
	add	DWORD PTR -2172[rbp], 1
.L53:
	cmp	DWORD PTR -2172[rbp], 15
	jle	.L65
	mov	QWORD PTR -2144[rbp], 0
	mov	QWORD PTR -2136[rbp], 0
	jmp	.L66
.L67:
	mov	eax, DWORD PTR -2160[rbp]
	cdqe
	mov	eax, DWORD PTR -2128[rbp+rax*4]
	mov	DWORD PTR -2160[rbp], eax
	lea	rdx, -2160[rbp]
	lea	rcx, -2144[rbp]
	lea	rax, -2144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	step
.L66:
	lea	rax, -2160[rbp]
	lea	rsi, 12[rax]
	lea	rax, -2160[rbp]
	lea	rcx, 8[rax]
	lea	rax, -2160[rbp]
	lea	rdx, 4[rax]
	lea	rax, -2160[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L67
	mov	eax, DWORD PTR -2144[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L69
	call	__stack_chk_fail@PLT
.L69:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"242331476.c"
	.text
	.align	2
	.global	step
	.syntax unified
	.arm
	.fpu softvfp
	.type	step, %function
step:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #15
	ldrls	pc, [pc, r3, asl #2]
	b	.L22
.L6:
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L18
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L21:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-16]
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	b	.L4
.L20:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-16]
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	b	.L4
.L19:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-16]
	add	r3, r0, r3
	mul	r2, r1, r2
	str	r2, [r3]
	b	.L4
.L18:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-16]
	add	r3, r0, r3
	mul	r2, r1, r2
	str	r2, [r3]
	b	.L4
.L17:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-16]
	add	r3, r0, r3
	and	r2, r2, r1
	str	r2, [r3]
	b	.L4
.L16:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-16]
	add	r3, r0, r3
	and	r2, r2, r1
	str	r2, [r3]
	b	.L4
.L15:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-16]
	add	r3, r0, r3
	orr	r2, r1, r2
	str	r2, [r3]
	b	.L4
.L14:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-16]
	add	r3, r0, r3
	orr	r2, r1, r2
	str	r2, [r3]
	b	.L4
.L13:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	b	.L4
.L12:
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #4]
	str	r2, [r3]
	b	.L4
.L11:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	movgt	r3, #1
	movle	r3, #0
	and	r1, r3, #255
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	b	.L4
.L10:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r2, r3
	movgt	r3, #1
	movle	r3, #0
	and	r1, r3, #255
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	b	.L4
.L9:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	movgt	r3, #1
	movle	r3, #0
	and	r1, r3, #255
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	b	.L4
.L8:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r1, r3, #255
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	b	.L4
.L7:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r1, r3, #255
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	b	.L4
.L5:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r1, r3, #255
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	nop
.L4:
.L22:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	step, .-step
	.align	2
	.global	score
	.syntax unified
	.arm
	.fpu softvfp
	.type	score, %function
score:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L24
.L28:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L25
	mov	r3, #17
	b	.L26
.L25:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L24:
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	ble	.L28
	ldr	r3, [fp, #-12]
.L26:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	score, .-score
	.align	2
	.global	resolve
	.syntax unified
	.arm
	.fpu softvfp
	.type	resolve, %function
resolve:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #16
	bne	.L30
	mov	r3, #1
	b	.L31
.L30:
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #17
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L32
.L34:
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-24]
	bl	score
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bge	.L33
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-28]
.L33:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L32:
	ldr	r3, [fp, #-24]
	cmp	r3, #15
	ble	.L34
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L35
.L44:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L45
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L38
.L41:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L39
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L40
.L39:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L38:
	ldr	r3, [fp, #-12]
	cmp	r3, #15
	ble	.L41
.L40:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	mov	r1, #1
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	resolve
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	mov	r3, #1
	b	.L31
.L43:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	b	.L37
.L45:
	nop
	b	.L37
.L46:
	nop
.L37:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L35:
	ldr	r3, [fp, #-20]
	cmp	r3, #15
	ble	.L44
	mov	r3, #0
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	resolve, .-resolve
	.section	.rodata
	.align	2
.LC0:
	.ascii	" Before: [%d,%d,%d,%d]\000"
	.align	2
.LC1:
	.ascii	"%d%d%d%d\000"
	.align	2
.LC2:
	.ascii	" After: [%d,%d,%d,%d]\000"
	.align	2
.LC3:
	.ascii	"%d\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 = 2176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2176
	sub	sp, sp, #8
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2180]
	b	.L48
.L51:
	mov	r3, #0
	str	r3, [fp, #-2176]
	b	.L49
.L50:
	ldr	r3, [fp, #-2180]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-2176]
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-2052]
	ldr	r3, [fp, #-2176]
	add	r3, r3, #1
	str	r3, [fp, #-2176]
.L49:
	ldr	r3, [fp, #-2176]
	cmp	r3, #15
	ble	.L50
	ldr	r3, [fp, #-2180]
	add	r3, r3, #1
	str	r3, [fp, #-2180]
.L48:
	ldr	r3, [fp, #-2180]
	cmp	r3, #15
	ble	.L51
.L60:
	sub	r3, fp, #2144
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r0, r3, #8
	sub	r3, fp, #2144
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r2, r3, #4
	sub	r1, fp, #2144
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2144
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #12
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L70+4
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #4
	beq	.L52
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r1, fp, #2048
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #0
	mov	r0, r3
	bl	resolve
	mov	r3, #0
	str	r3, [fp, #-2164]
	b	.L53
.L52:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r0, r3, #8
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r2, r3, #4
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #12
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L70+8
	bl	__isoc99_scanf
	sub	r3, fp, #2128
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r0, r3, #8
	sub	r3, fp, #2128
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r2, r3, #4
	sub	r1, fp, #2128
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2128
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #12
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L70+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-1032]
	str	r3, [fp, #-2156]
	mov	r3, #0
	str	r3, [fp, #-2172]
	b	.L54
.L59:
	ldr	r3, [fp, #-2172]
	str	r3, [fp, #-1032]
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r1, fp, #2144
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2112
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	step
	mov	r3, #0
	str	r3, [fp, #-2168]
	b	.L55
.L58:
	ldr	r3, [fp, #-2168]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-2132]
	ldr	r3, [fp, #-2168]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-2116]
	cmp	r2, r3
	beq	.L56
	ldr	r3, [fp, #-2156]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-2172]
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-2052]
	b	.L57
.L56:
	ldr	r3, [fp, #-2168]
	add	r3, r3, #1
	str	r3, [fp, #-2168]
.L55:
	ldr	r3, [fp, #-2168]
	cmp	r3, #3
	ble	.L58
.L57:
	ldr	r3, [fp, #-2172]
	add	r3, r3, #1
	str	r3, [fp, #-2172]
.L54:
	ldr	r3, [fp, #-2172]
	cmp	r3, #15
	ble	.L59
	b	.L60
.L65:
	mov	r3, #0
	str	r3, [fp, #-2160]
	b	.L61
.L64:
	ldr	r3, [fp, #-2164]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-2160]
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1028]
	cmp	r3, #0
	beq	.L62
	ldr	r3, [fp, #-2164]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-2160]
	str	r2, [r3, #-2116]
	b	.L63
.L62:
	ldr	r3, [fp, #-2160]
	add	r3, r3, #1
	str	r3, [fp, #-2160]
.L61:
	ldr	r3, [fp, #-2160]
	cmp	r3, #15
	ble	.L64
.L63:
	ldr	r3, [fp, #-2164]
	add	r3, r3, #1
	str	r3, [fp, #-2164]
.L53:
	ldr	r3, [fp, #-2164]
	cmp	r3, #15
	ble	.L65
	sub	r3, fp, #2128
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	b	.L66
.L67:
	ldr	r3, [fp, #-2152]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-2116]
	str	r3, [fp, #-2152]
	sub	r2, fp, #2144
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r1, fp, #2128
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2128
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	step
.L66:
	sub	r3, fp, #2144
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r0, r3, #8
	sub	r3, fp, #2144
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r2, r3, #4
	sub	r1, fp, #2144
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2144
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #12
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L70+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L67
	ldr	r3, [fp, #-2136]
	mov	r1, r3
	ldr	r0, .L70+16
	bl	printf
	mov	r3, #0
	ldr	r2, .L70
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L69
	bl	__stack_chk_fail
.L69:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
