	.file	"20450136.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"leaper_%d_%d_%d_%d.tsp"
.LC2:
	.string	"w"
.LC3:
	.string	" Cannot open %s.\n"
.LC4:
	.string	"NAME: leaper_%d_%d_%d_%d\n"
.LC5:
	.string	"TYPE: TSP\n"
	.align 8
.LC6:
	.string	"COMMENT: (%d,%d) leaper on a %dx%d board\n"
.LC7:
	.string	"DIMENSION: %d\n"
.LC8:
	.string	"EDGE_WEIGHT_TYPE: EXPLICIT\n"
	.align 8
.LC9:
	.string	"EDGE_WEIGHT_FORMAT: UPPER_ROW \n"
.LC10:
	.string	"EDGE_WEIGHT_SECTION\n"
.LC11:
	.string	" %1d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -144[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -140[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rdx, -152[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rdx, -148[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	edi, DWORD PTR -148[rbp]
	mov	esi, DWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -140[rbp]
	mov	edx, DWORD PTR -144[rbp]
	lea	rax, -112[rbp]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -112[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	jne	.L2
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	edi, DWORD PTR -148[rbp]
	mov	esi, DWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -140[rbp]
	mov	edx, DWORD PTR -144[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, DWORD PTR -148[rbp]
	mov	esi, DWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -140[rbp]
	mov	edx, DWORD PTR -144[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, DWORD PTR -152[rbp]
	mov	eax, DWORD PTR -148[rbp]
	imul	edx, eax
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	DWORD PTR -136[rbp], 1
	jmp	.L3
.L20:
	mov	DWORD PTR -132[rbp], 1
	jmp	.L4
.L19:
	mov	eax, DWORD PTR -148[rbp]
	cmp	DWORD PTR -132[rbp], eax
	jl	.L5
	mov	eax, DWORD PTR -136[rbp]
	add	eax, 1
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -136[rbp]
.L6:
	mov	DWORD PTR -128[rbp], eax
	jmp	.L7
.L16:
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, DWORD PTR -128[rbp]
	jl	.L8
	mov	eax, DWORD PTR -132[rbp]
	add	eax, 1
	jmp	.L9
.L8:
	mov	eax, 1
.L9:
	mov	DWORD PTR -124[rbp], eax
	jmp	.L10
.L15:
	mov	edx, DWORD PTR -144[rbp]
	mov	eax, DWORD PTR -136[rbp]
	add	eax, edx
	cmp	DWORD PTR -128[rbp], eax
	jne	.L11
	mov	edx, DWORD PTR -140[rbp]
	mov	eax, DWORD PTR -132[rbp]
	add	eax, edx
	cmp	DWORD PTR -124[rbp], eax
	je	.L12
	mov	edx, DWORD PTR -140[rbp]
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, edx
	cmp	DWORD PTR -124[rbp], eax
	je	.L12
.L11:
	mov	edx, DWORD PTR -140[rbp]
	mov	eax, DWORD PTR -136[rbp]
	add	eax, edx
	cmp	DWORD PTR -128[rbp], eax
	jne	.L13
	mov	edx, DWORD PTR -144[rbp]
	mov	eax, DWORD PTR -132[rbp]
	add	eax, edx
	cmp	DWORD PTR -124[rbp], eax
	je	.L12
	mov	edx, DWORD PTR -144[rbp]
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, edx
	cmp	DWORD PTR -124[rbp], eax
	je	.L12
.L13:
	mov	edx, 1
	jmp	.L14
.L12:
	mov	edx, 0
.L14:
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -124[rbp], 1
.L10:
	mov	eax, DWORD PTR -148[rbp]
	cmp	DWORD PTR -124[rbp], eax
	jle	.L15
	add	DWORD PTR -128[rbp], 1
.L7:
	mov	eax, DWORD PTR -152[rbp]
	cmp	DWORD PTR -128[rbp], eax
	jle	.L16
	add	DWORD PTR -132[rbp], 1
.L4:
	mov	eax, DWORD PTR -152[rbp]
	cmp	DWORD PTR -136[rbp], eax
	jl	.L17
	mov	eax, DWORD PTR -148[rbp]
	sub	eax, 1
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -148[rbp]
.L18:
	cmp	eax, DWORD PTR -132[rbp]
	jge	.L19
	add	DWORD PTR -136[rbp], 1
.L3:
	mov	eax, DWORD PTR -152[rbp]
	cmp	DWORD PTR -136[rbp], eax
	jle	.L20
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.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	"20450136.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"leaper_%d_%d_%d_%d.tsp\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	" Cannot open %s.\012\000"
	.align	2
.LC4:
	.ascii	"NAME: leaper_%d_%d_%d_%d\012\000"
	.align	2
.LC5:
	.ascii	"TYPE: TSP\012\000"
	.align	2
.LC6:
	.ascii	"COMMENT: (%d,%d) leaper on a %dx%d board\012\000"
	.align	2
.LC7:
	.ascii	"DIMENSION: %d\012\000"
	.align	2
.LC8:
	.ascii	"EDGE_WEIGHT_TYPE: EXPLICIT\012\000"
	.align	2
.LC9:
	.ascii	"EDGE_WEIGHT_FORMAT: UPPER_ROW \012\000"
	.align	2
.LC10:
	.ascii	"EDGE_WEIGHT_SECTION\012\000"
	.align	2
.LC11:
	.ascii	" %1d\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-156]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #136
	ldr	r1, .L22+4
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-156]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #132
	ldr	r1, .L22+4
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-156]
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #144
	ldr	r1, .L22+4
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-156]
	add	r3, r3, #16
	ldr	r3, [r3]
	sub	r2, fp, #140
	ldr	r1, .L22+4
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r1, [fp, #-136]
	ldr	ip, [fp, #-132]
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-140]
	sub	r0, fp, #108
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r1
	ldr	r1, .L22+8
	bl	sprintf
	sub	r3, fp, #108
	ldr	r1, .L22+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L2
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L22+16
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r1, [fp, #-136]
	ldr	r0, [fp, #-132]
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-140]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, .L22+20
	ldr	r0, [fp, #-112]
	bl	fprintf
	ldr	r3, [fp, #-112]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L22+24
	bl	fwrite
	ldr	r1, [fp, #-136]
	ldr	r0, [fp, #-132]
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-140]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, .L22+28
	ldr	r0, [fp, #-112]
	bl	fprintf
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-140]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L22+32
	ldr	r0, [fp, #-112]
	bl	fprintf
	ldr	r3, [fp, #-112]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L22+36
	bl	fwrite
	ldr	r3, [fp, #-112]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L22+40
	bl	fwrite
	ldr	r3, [fp, #-112]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L22+44
	bl	fwrite
	mov	r3, #1
	str	r3, [fp, #-128]
	b	.L3
.L20:
	mov	r3, #1
	str	r3, [fp, #-124]
	b	.L4
.L19:
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-124]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	b	.L6
.L5:
	ldr	r3, [fp, #-128]
.L6:
	str	r3, [fp, #-120]
	b	.L7
.L16:
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	b	.L9
.L8:
	mov	r3, #1
.L9:
	str	r3, [fp, #-116]
	b	.L10
.L15:
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	ldr	r2, [fp, #-120]
	cmp	r2, r3
	bne	.L11
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-124]
	add	r3, r2, r3
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	beq	.L12
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-124]
	sub	r3, r2, r3
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	beq	.L12
.L11:
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	ldr	r2, [fp, #-120]
	cmp	r2, r3
	bne	.L13
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-124]
	add	r3, r2, r3
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	beq	.L12
	ldr	r3, [fp, #-136]
	ldr	r2, [fp, #-124]
	sub	r3, r2, r3
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	beq	.L12
.L13:
	mov	r3, #1
	b	.L14
.L12:
	mov	r3, #0
.L14:
	mov	r2, r3
	ldr	r1, .L22+48
	ldr	r0, [fp, #-112]
	bl	fprintf
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L10:
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	ble	.L15
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L7:
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-120]
	cmp	r2, r3
	ble	.L16
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L4:
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	blt	.L17
	ldr	r3, [fp, #-140]
	sub	r3, r3, #1
	b	.L18
.L17:
	ldr	r3, [fp, #-140]
.L18:
	ldr	r2, [fp, #-124]
	cmp	r3, r2
	bge	.L19
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L3:
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	ble	.L20
	mov	r0, #0
	bl	exit
.L23:
	.align	2
.L22:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
