	.file	"200144332.c"
	.intel_syntax noprefix
	.text
	.globl	connections
	.data
	.align 32
	.type	connections, @object
	.size	connections, 200
connections:
	.long	0
	.long	1
	.long	2
	.long	-1
	.long	-1
	.long	3
	.long	7
	.long	9
	.long	11
	.long	-1
	.long	4
	.long	10
	.long	14
	.long	15
	.long	-1
	.long	0
	.long	4
	.long	5
	.long	6
	.long	7
	.long	6
	.long	7
	.long	8
	.long	10
	.long	12
	.long	0
	.long	2
	.long	14
	.long	15
	.long	-1
	.long	3
	.long	14
	.long	15
	.long	-1
	.long	-1
	.long	4
	.long	5
	.long	7
	.long	14
	.long	15
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	3
	.long	4
	.long	5
	.long	9
	.long	13
	.text
	.globl	all_twelve
	.type	all_twelve, @function
all_twelve:
.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	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L5:
	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]
	cmp	eax, 12
	je	.L3
	mov	eax, -1
	jmp	.L4
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 15
	jle	.L5
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	all_twelve, .-all_twelve
	.globl	set
	.type	set, @function
set:
.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	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L10:
	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]
	cmp	eax, -1
	je	.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]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	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]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -36[rbp]
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	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]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 12
	jle	.L9
	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]
	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 -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	sub	edx, 12
	mov	DWORD PTR [rax], edx
.L9:
	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]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.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]
	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 -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	add	edx, 12
	mov	DWORD PTR [rax], edx
.L8:
	add	DWORD PTR -4[rbp], 1
.L7:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L10
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	set, .-set
	.globl	min_switch
	.type	min_switch, @function
min_switch:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	cmp	DWORD PTR -44[rbp], 9
	jle	.L12
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	all_twelve
	jmp	.L13
.L12:
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, connections[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	min_switch
	mov	DWORD PTR -28[rbp], eax
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 3
	mov	rsi, rcx
	mov	rdi, rax
	call	set
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	min_switch
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	je	.L14
	add	DWORD PTR -24[rbp], 1
.L14:
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, -3
	mov	rsi, rcx
	mov	rdi, rax
	call	set
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 6
	mov	rsi, rcx
	mov	rdi, rax
	call	set
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	min_switch
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	je	.L15
	add	DWORD PTR -20[rbp], 2
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, -6
	mov	rsi, rcx
	mov	rdi, rax
	call	set
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 9
	mov	rsi, rcx
	mov	rdi, rax
	call	set
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	min_switch
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], -1
	je	.L16
	add	DWORD PTR -16[rbp], 3
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, -9
	mov	rsi, rcx
	mov	rdi, rax
	call	set
	cmp	DWORD PTR -24[rbp], -1
	je	.L17
	cmp	DWORD PTR -28[rbp], -1
	jne	.L18
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L17
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -28[rbp], eax
.L17:
	cmp	DWORD PTR -20[rbp], -1
	je	.L19
	cmp	DWORD PTR -28[rbp], -1
	jne	.L20
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L19
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -28[rbp], eax
.L19:
	cmp	DWORD PTR -16[rbp], -1
	je	.L21
	cmp	DWORD PTR -28[rbp], -1
	jne	.L22
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jle	.L21
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -28[rbp], eax
.L21:
	mov	eax, DWORD PTR -28[rbp]
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	min_switch, .-min_switch
	.globl	min_switch_v2
	.type	min_switch_v2, @function
min_switch_v2:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	DWORD PTR -28[rbp], 9
	jle	.L24
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	all_twelve
	jmp	.L25
.L24:
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], -1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L26
.L29:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	add	eax, eax
	add	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	lea	rcx, connections[rip]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	set
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	min_switch_v2
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	sal	eax, 2
	sub	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	lea	rcx, connections[rip]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	set
	cmp	DWORD PTR -4[rbp], -1
	je	.L27
	mov	eax, DWORD PTR -12[rbp]
	add	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	je	.L28
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L27
.L28:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
.L27:
	add	DWORD PTR -12[rbp], 1
.L26:
	cmp	DWORD PTR -12[rbp], 3
	jle	.L29
	mov	eax, DWORD PTR -8[rbp]
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	min_switch_v2, .-min_switch_v2
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -144[rbp], 12
	mov	DWORD PTR -140[rbp], 6
	mov	DWORD PTR -136[rbp], 6
	mov	DWORD PTR -132[rbp], 6
	mov	DWORD PTR -128[rbp], 6
	mov	DWORD PTR -124[rbp], 6
	mov	DWORD PTR -120[rbp], 12
	mov	DWORD PTR -116[rbp], 12
	mov	DWORD PTR -112[rbp], 12
	mov	DWORD PTR -108[rbp], 12
	mov	DWORD PTR -104[rbp], 12
	mov	DWORD PTR -100[rbp], 12
	mov	DWORD PTR -96[rbp], 12
	mov	DWORD PTR -92[rbp], 12
	mov	DWORD PTR -88[rbp], 12
	mov	DWORD PTR -84[rbp], 12
	mov	DWORD PTR -80[rbp], 12
	mov	DWORD PTR -76[rbp], 9
	mov	DWORD PTR -72[rbp], 3
	mov	DWORD PTR -68[rbp], 12
	mov	DWORD PTR -64[rbp], 6
	mov	DWORD PTR -60[rbp], 6
	mov	DWORD PTR -56[rbp], 9
	mov	DWORD PTR -52[rbp], 3
	mov	DWORD PTR -48[rbp], 12
	mov	DWORD PTR -44[rbp], 9
	mov	DWORD PTR -40[rbp], 12
	mov	DWORD PTR -36[rbp], 9
	mov	DWORD PTR -32[rbp], 12
	mov	DWORD PTR -28[rbp], 12
	mov	DWORD PTR -24[rbp], 6
	mov	DWORD PTR -20[rbp], 6
	lea	rax, -144[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	min_switch_v2
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	min_switch_v2
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	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	"200144332.c"
	.text
	.global	connections
	.data
	.align	2
	.type	connections, %object
	.size	connections, 200
connections:
	.word	0
	.word	1
	.word	2
	.word	-1
	.word	-1
	.word	3
	.word	7
	.word	9
	.word	11
	.word	-1
	.word	4
	.word	10
	.word	14
	.word	15
	.word	-1
	.word	0
	.word	4
	.word	5
	.word	6
	.word	7
	.word	6
	.word	7
	.word	8
	.word	10
	.word	12
	.word	0
	.word	2
	.word	14
	.word	15
	.word	-1
	.word	3
	.word	14
	.word	15
	.word	-1
	.word	-1
	.word	4
	.word	5
	.word	7
	.word	14
	.word	15
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	3
	.word	4
	.word	5
	.word	9
	.word	13
	.text
	.align	2
	.global	all_twelve
	.syntax unified
	.arm
	.fpu softvfp
	.type	all_twelve, %function
all_twelve:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #12
	beq	.L3
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	ble	.L5
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	all_twelve, .-all_twelve
	.align	2
	.global	set
	.syntax unified
	.arm
	.fpu softvfp
	.type	set, %function
set:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L10:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L8
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #12
	ble	.L9
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	sub	r2, r2, #12
	str	r2, [r3]
.L9:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L8
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	add	r2, r2, #12
	str	r2, [r3]
.L8:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L10
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set, .-set
	.align	2
	.global	min_switch
	.syntax unified
	.arm
	.fpu softvfp
	.type	min_switch, %function
min_switch:
	@ 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, [fp, #-36]
	cmp	r3, #9
	ble	.L12
	ldr	r0, [fp, #-32]
	bl	all_twelve
	mov	r3, r0
	b	.L13
.L12:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L23
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	min_switch
	str	r0, [fp, #-28]
	mov	r2, #3
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	set
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	min_switch
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	beq	.L14
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L14:
	mvn	r2, #2
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	set
	mov	r2, #6
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	set
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	min_switch
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L15
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
.L15:
	mvn	r2, #5
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	set
	mov	r2, #9
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	set
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	min_switch
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L16
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	str	r3, [fp, #-16]
.L16:
	mvn	r2, #8
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	set
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	beq	.L17
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L18
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-28]
	b	.L17
.L18:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L17
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-28]
.L17:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L19
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L20
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-28]
	b	.L19
.L20:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L19
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-28]
.L19:
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L21
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L22
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-28]
	b	.L21
.L22:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L21
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-28]
.L21:
	ldr	r3, [fp, #-28]
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	connections
	.size	min_switch, .-min_switch
	.align	2
	.global	min_switch_v2
	.syntax unified
	.arm
	.fpu softvfp
	.type	min_switch_v2, %function
min_switch_v2:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #9
	ble	.L26
	ldr	r0, [fp, #-24]
	bl	all_twelve
	mov	r3, r0
	b	.L27
.L26:
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	mvn	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L28
.L31:
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L32
	add	r1, r3, r2
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r2, r3
	ldr	r0, [fp, #-24]
	bl	set
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	min_switch_v2
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L32
	add	r1, r3, r2
	ldr	r3, [fp, #-16]
	mov	r2, r3
	lsl	r3, r3, #2
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-24]
	bl	set
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L29
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L30
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L29
.L30:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
.L29:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L28:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L31
	ldr	r3, [fp, #-12]
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	connections
	.size	min_switch_v2, .-min_switch_v2
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC0:
	.word	12
	.word	6
	.word	6
	.word	6
	.word	6
	.word	6
	.word	12
	.word	12
	.word	12
	.word	12
	.word	12
	.word	12
	.word	12
	.word	12
	.word	12
	.word	12
	.align	2
.LC1:
	.word	12
	.word	9
	.word	3
	.word	12
	.word	6
	.word	6
	.word	9
	.word	3
	.word	12
	.word	9
	.word	12
	.word	9
	.word	12
	.word	12
	.word	6
	.word	6
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L37+4
	sub	ip, fp, #136
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L37+8
	sub	ip, fp, #72
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #136
	mov	r1, #0
	mov	r0, r3
	bl	min_switch_v2
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L37+12
	bl	printf
	sub	r3, fp, #72
	mov	r1, #0
	mov	r0, r3
	bl	min_switch_v2
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L37+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
