	.file	"210030.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d "
	.text
	.globl	printArray
	.type	printArray, @function
printArray:
.LFB0:
	.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	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 -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L3
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	printArray, .-printArray
	.globl	best
	.bss
	.align 4
	.type	best, @object
	.size	best, 4
best:
	.zero	4
	.globl	nowGot
	.align 32
	.type	nowGot, @object
	.size	nowGot, 4004
nowGot:
	.zero	4004
	.text
	.globl	travel
	.type	travel, @function
travel:
.LFB1:
	.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	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	DWORD PTR -44[rbp], r8d
	mov	DWORD PTR -48[rbp], r9d
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jne	.L5
	mov	eax, DWORD PTR best[rip]
	cmp	DWORD PTR -44[rbp], eax
	jle	.L11
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, nowGot[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -4[rbp], 1
.L7:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L8
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR best[rip], eax
	jmp	.L11
.L5:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, edx
	test	eax, eax
	js	.L10
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, edx
	mov	r8d, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -36[rbp]
	lea	edi, 1[rax]
	mov	edx, DWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	travel
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
.L10:
	mov	eax, DWORD PTR -36[rbp]
	lea	edi, 1[rax]
	mov	r8d, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	travel
	jmp	.L4
.L11:
	nop
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	travel, .-travel
	.section	.rodata
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"VIAGEM %d: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3968
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -8048[rbp]
	lea	rax, -8052[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L13
.L15:
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	edx, DWORD PTR -8032[rbp+rax*4]
	mov	eax, DWORD PTR -8052[rbp]
	cmp	edx, eax
	jle	.L14
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	mov	DWORD PTR -4016[rbp+rax*4], 0
	add	DWORD PTR -8044[rbp], 1
.L13:
	lea	rdx, -8032[rbp]
	mov	eax, DWORD PTR -8044[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L15
	mov	eax, DWORD PTR -8044[rbp]
	mov	DWORD PTR -8036[rbp], eax
	mov	DWORD PTR -8044[rbp], 0
	jmp	.L16
.L22:
	mov	DWORD PTR best[rip], 0
	mov	ecx, DWORD PTR -8052[rbp]
	mov	edx, DWORD PTR -8036[rbp]
	lea	rsi, -4016[rbp]
	lea	rax, -8032[rbp]
	mov	r9d, ecx
	mov	r8d, 0
	mov	ecx, edx
	mov	edx, 0
	mov	rdi, rax
	call	travel
	mov	eax, DWORD PTR best[rip]
	test	eax, eax
	je	.L25
	mov	DWORD PTR -8040[rbp], 0
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -8040[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, nowGot[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L20
	mov	eax, DWORD PTR -8040[rbp]
	cdqe
	mov	DWORD PTR -4016[rbp+rax*4], 1
.L20:
	add	DWORD PTR -8040[rbp], 1
.L19:
	mov	eax, DWORD PTR -8040[rbp]
	cmp	eax, DWORD PTR -8036[rbp]
	jl	.L21
	mov	edx, DWORD PTR best[rip]
	add	DWORD PTR -8044[rbp], 1
	mov	eax, DWORD PTR -8044[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	mov	eax, DWORD PTR -8048[rbp]
	cmp	DWORD PTR -8044[rbp], eax
	jl	.L22
	jmp	.L18
.L25:
	nop
.L18:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"210030.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.text
	.align	2
	.global	printArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	printArray, %function
printArray:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L3
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	printArray, .-printArray
	.comm	best,4,4
	.comm	nowGot,4004,4
	.align	2
	.global	travel
	.syntax unified
	.arm
	.fpu softvfp
	.type	travel, %function
travel:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bne	.L7
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r2, [fp, #4]
	cmp	r2, r3
	ble	.L13
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L9
.L10:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, .L14+4
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L10
	ldr	r2, .L14
	ldr	r3, [fp, #4]
	str	r3, [r2]
	b	.L13
.L7:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #8]
	sub	r3, r2, r3
	cmp	r3, #0
	blt	.L12
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r0, r3, #1
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-16]
	add	r2, r1, r2
	ldr	r2, [r2]
	ldr	r1, [fp, #8]
	sub	r2, r1, r2
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	mov	r2, r0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	travel
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L12:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	travel
	b	.L6
.L13:
	nop
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	best
	.word	nowGot
	.size	travel, .-travel
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d %d\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"VIAGEM %d: %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 = 8032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8000
	sub	sp, sp, #40
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r2, fp, #8000
	sub	r2, r2, #4
	sub	r2, r2, #28
	sub	r3, fp, #8000
	sub	r3, r3, #4
	sub	r3, r3, #32
	mov	r1, r3
	ldr	r0, .L30+4
	bl	__isoc99_scanf
	b	.L17
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3928]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3916]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3936]
	cmp	r2, r3
	ble	.L18
	b	.L17
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3928]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-4008]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3928]
	add	r3, r3, #1
	str	r3, [r2, #-3928]
.L17:
	sub	r3, fp, #8000
	sub	r3, r3, #4
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-3928]
	lsl	r2, r2, #2
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L30+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3928]
	str	r3, [r2, #-3920]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3928]
	b	.L20
.L26:
	ldr	r3, .L30+12
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3936]
	sub	r2, fp, #4096
	sub	r2, r2, #4
	sub	r1, fp, #4000
	sub	r1, r1, #4
	sub	r1, r1, #8
	sub	r0, fp, #8000
	sub	r0, r0, #4
	sub	r0, r0, #12
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [r2, #-3920]
	mov	r2, #0
	bl	travel
	ldr	r3, .L30+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L29
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3924]
	b	.L23
.L25:
	ldr	r2, .L30+16
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3924]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L24
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3924]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-4008]
.L24:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3924]
	add	r3, r3, #1
	str	r3, [r2, #-3924]
.L23:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-3924]
	ldr	r3, [r3, #-3920]
	cmp	r2, r3
	blt	.L25
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3928]
	add	r3, r3, #1
	str	r3, [r2, #-3928]
	ldr	r3, .L30+12
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #4
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-3928]
	ldr	r0, .L30+20
	bl	printf
.L20:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3932]
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-3928]
	cmp	r2, r3
	blt	.L26
	b	.L22
.L29:
	nop
.L22:
	mov	r3, #0
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.word	best
	.word	nowGot
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
