	.file	"51700453.c"
	.intel_syntax noprefix
	.text
	.globl	connections
	.data
	.align 32
	.type	connections, @object
	.size	connections, 120
connections:
	.long	0
	.long	2
	.long	0
	.long	3
	.long	0
	.long	4
	.long	1
	.long	3
	.long	1
	.long	4
	.long	1
	.long	5
	.long	6
	.long	2
	.long	6
	.long	3
	.long	6
	.long	4
	.long	7
	.long	3
	.long	7
	.long	4
	.long	7
	.long	5
	.long	2
	.long	3
	.long	3
	.long	4
	.long	4
	.long	5
	.globl	pegs
	.bss
	.align 32
	.type	pegs, @object
	.size	pegs, 32
pegs:
	.zero	32
	.globl	num
	.align 4
	.type	num, @object
	.size	num, 4
num:
	.zero	4
	.text
	.globl	valid
	.type	valid, @function
valid:
.LFB0:
	.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], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, connections[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pegs[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, connections[rip+4]
	mov	edx, DWORD PTR [rcx+rdx]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, pegs[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	sub	eax, edx
	cdq
	xor	eax, edx
	sub	eax, edx
	cmp	eax, 1
	jne	.L3
	mov	eax, 0
	jmp	.L4
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 14
	jle	.L5
	mov	eax, 1
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	valid, .-valid
	.globl	swap
	.type	swap, @function
swap:
.LFB1:
	.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	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	swap, .-swap
	.section	.rodata
.LC0:
	.string	"----- %d -----\n"
.LC1:
	.string	"  %d %d\n"
.LC2:
	.string	"%d %d %d %d\n"
	.text
	.globl	printSolution
	.type	printSolution, @function
printSolution:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR num[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR num[rip], edx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR pegs[rip+4]
	mov	eax, DWORD PTR pegs[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, DWORD PTR pegs[rip+20]
	mov	ecx, DWORD PTR pegs[rip+16]
	mov	edx, DWORD PTR pegs[rip+12]
	mov	eax, DWORD PTR pegs[rip+8]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR pegs[rip+28]
	mov	eax, DWORD PTR pegs[rip+24]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	printSolution, .-printSolution
	.globl	solution
	.type	solution, @function
solution:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jne	.L9
	mov	eax, 0
	call	valid
	test	al, al
	je	.L13
	mov	eax, 0
	call	printSolution
	jmp	.L13
.L9:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pegs[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, pegs[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	mov	edi, edx
	call	solution
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pegs[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, pegs[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	add	DWORD PTR -4[rbp], 1
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L12
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	solution, .-solution
	.globl	main
	.type	main, @function
main:
.LFB4:
	.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
	mov	DWORD PTR -4[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pegs[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -4[rbp], 1
.L15:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L16
	mov	esi, 7
	mov	edi, 0
	call	solution
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"51700453.c"
	.text
	.global	connections
	.data
	.align	2
	.type	connections, %object
	.size	connections, 120
connections:
	.word	0
	.word	2
	.word	0
	.word	3
	.word	0
	.word	4
	.word	1
	.word	3
	.word	1
	.word	4
	.word	1
	.word	5
	.word	6
	.word	2
	.word	6
	.word	3
	.word	6
	.word	4
	.word	7
	.word	3
	.word	7
	.word	4
	.word	7
	.word	5
	.word	2
	.word	3
	.word	3
	.word	4
	.word	4
	.word	5
	.comm	pegs,32,4
	.global	num
	.bss
	.align	2
	.type	num, %object
	.size	num, 4
num:
	.space	4
	.text
	.align	2
	.global	valid
	.syntax unified
	.arm
	.fpu softvfp
	.type	valid, %function
valid:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r2, .L6
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #3]
	ldr	r2, .L6+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L6
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	ldr	r1, .L6+4
	ldr	r3, [r1, r3, lsl #2]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L3
	mov	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #14
	ble	.L5
	mov	r3, #1
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	connections
	.word	pegs
	.size	valid, .-valid
	.align	2
	.global	swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.section	.rodata
	.align	2
.LC0:
	.ascii	"----- %d -----\012\000"
	.align	2
.LC1:
	.ascii	"  %d %d\012\000"
	.align	2
.LC2:
	.ascii	"%d %d %d %d\012\000"
	.text
	.align	2
	.global	printSolution
	.syntax unified
	.arm
	.fpu softvfp
	.type	printSolution, %function
printSolution:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L10
	str	r2, [r1]
	mov	r1, r3
	ldr	r0, .L10+4
	bl	printf
	ldr	r3, .L10+8
	ldr	r3, [r3]
	ldr	r2, .L10+8
	ldr	r2, [r2, #4]
	mov	r1, r3
	ldr	r0, .L10+12
	bl	printf
	ldr	r3, .L10+8
	ldr	r1, [r3, #8]
	ldr	r3, .L10+8
	ldr	r2, [r3, #12]
	ldr	r3, .L10+8
	ldr	r0, [r3, #16]
	ldr	r3, .L10+8
	ldr	r3, [r3, #20]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L10+16
	bl	printf
	ldr	r3, .L10+8
	ldr	r3, [r3, #24]
	ldr	r2, .L10+8
	ldr	r2, [r2, #28]
	mov	r1, r3
	ldr	r0, .L10+12
	bl	printf
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	num
	.word	.LC0
	.word	pegs
	.word	.LC1
	.word	.LC2
	.size	printSolution, .-printSolution
	.align	2
	.global	solution
	.syntax unified
	.arm
	.fpu softvfp
	.type	solution, %function
solution:
	@ 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]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L13
	bl	valid
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	bl	printSolution
	b	.L17
.L13:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L15
.L16:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, .L18
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, .L18
	add	r3, r3, r1
	mov	r1, r3
	mov	r0, r2
	bl	swap
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	solution
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, .L18
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, .L18
	add	r3, r3, r1
	mov	r1, r3
	mov	r0, r2
	bl	swap
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L16
.L17:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	pegs
	.size	solution, .-solution
	.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
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L21
.L22:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	ldr	r1, .L24
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L22
	mov	r1, #7
	mov	r0, #0
	bl	solution
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	pegs
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
