	.file	"126114.c"
	.intel_syntax noprefix
	.text
	.globl	add_to_queue
	.type	add_to_queue, @function
add_to_queue:
.LFB6:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L5:
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 8
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cmp	edx, eax
	jb	.L7
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 120000[rax]
	mov	eax, DWORD PTR -4[rbp]
	cmp	edx, eax
	ja	.L5
	jmp	.L4
.L7:
	nop
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 120000[rax]
	mov	eax, DWORD PTR -4[rbp]
	cmp	edx, eax
	je	.L6
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 120000[rax]
	mov	edx, DWORD PTR -4[rbp]
	sub	eax, edx
	mov	edx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rsi, rax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -24[rbp]
	lea	rcx, [rax+rdx]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
.L6:
	mov	edx, DWORD PTR -28[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rsi
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rsi
	add	rax, 4
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -36[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rsi
	add	rax, 8
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 120000[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 120000[rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	add_to_queue, .-add_to_queue
	.globl	pop_from_queue
	.type	pop_from_queue, @function
pop_from_queue:
.LFB7:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 120000[rax]
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 120000[rax]
	sub	eax, 1
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 120000[rax]
	sub	eax, 1
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 4
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 120000[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 120000[rax], edx
	jmp	.L8
.L11:
	nop
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pop_from_queue, .-pop_from_queue
	.globl	explore
	.type	explore, @function
explore:
.LFB8:
	.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	eax, edx
	mov	QWORD PTR -40[rbp], rcx
	mov	QWORD PTR -48[rbp], r8
	mov	QWORD PTR -56[rbp], r9
	mov	edx, edi
	mov	BYTE PTR -20[rbp], dl
	mov	edx, esi
	mov	BYTE PTR -24[rbp], dl
	mov	BYTE PTR -28[rbp], al
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 1
	cmp	BYTE PTR -24[rbp], 1
	jbe	.L13
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	xor	eax, 1
	test	al, al
	je	.L13
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	mov	ecx, DWORD PTR [rdx+rax*4]
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	add	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	DWORD PTR -4[rbp], eax
	jnb	.L13
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	lea	rcx, [rdx+rax]
	movzx	eax, BYTE PTR -24[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rax*4], edx
	mov	edx, DWORD PTR -4[rbp]
	movzx	eax, BYTE PTR -24[rbp]
	lea	esi, -1[rax]
	movzx	eax, BYTE PTR -20[rbp]
	mov	ecx, edx
	mov	edx, esi
	mov	esi, eax
	mov	rdi, QWORD PTR 16[rbp]
	call	add_to_queue
.L13:
	movzx	eax, BYTE PTR -24[rbp]
	cmp	al, BYTE PTR -28[rbp]
	jnb	.L14
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	add	eax, 1
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	xor	eax, 1
	test	al, al
	je	.L14
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	mov	ecx, DWORD PTR [rdx+rax*4]
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	add	eax, 1
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	add	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	add	eax, 1
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	DWORD PTR -4[rbp], eax
	jnb	.L14
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	lea	rcx, [rdx+rax]
	movzx	eax, BYTE PTR -24[rbp]
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rax*4], edx
	mov	edx, DWORD PTR -4[rbp]
	movzx	eax, BYTE PTR -24[rbp]
	lea	esi, 1[rax]
	movzx	eax, BYTE PTR -20[rbp]
	mov	ecx, edx
	mov	edx, esi
	mov	esi, eax
	mov	rdi, QWORD PTR 16[rbp]
	call	add_to_queue
.L14:
	cmp	BYTE PTR -20[rbp], 1
	jbe	.L15
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	lea	rdx, -100[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	xor	eax, 1
	test	al, al
	je	.L15
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	mov	ecx, DWORD PTR [rdx+rax*4]
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	lea	rdx, -100[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	add	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	lea	rdx, -400[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	DWORD PTR -4[rbp], eax
	jnb	.L15
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	lea	rdx, -400[rax]
	mov	rax, QWORD PTR -56[rbp]
	lea	rcx, [rdx+rax]
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rax*4], edx
	mov	edx, DWORD PTR -4[rbp]
	movzx	eax, BYTE PTR -24[rbp]
	movzx	ecx, BYTE PTR -20[rbp]
	lea	esi, -1[rcx]
	mov	ecx, edx
	mov	edx, eax
	mov	rdi, QWORD PTR 16[rbp]
	call	add_to_queue
.L15:
	movzx	eax, BYTE PTR -20[rbp]
	cmp	al, BYTE PTR -28[rbp]
	jnb	.L17
	movzx	eax, BYTE PTR -20[rbp]
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	xor	eax, 1
	test	al, al
	je	.L17
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	mov	ecx, DWORD PTR [rdx+rax*4]
	movzx	eax, BYTE PTR -20[rbp]
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	add	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	movzx	eax, BYTE PTR -20[rbp]
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	DWORD PTR -4[rbp], eax
	jnb	.L17
	movzx	eax, BYTE PTR -20[rbp]
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	lea	rcx, [rdx+rax]
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rax*4], edx
	mov	edx, DWORD PTR -4[rbp]
	movzx	eax, BYTE PTR -24[rbp]
	movzx	ecx, BYTE PTR -20[rbp]
	lea	esi, 1[rcx]
	mov	ecx, edx
	mov	edx, eax
	mov	rdi, QWORD PTR 16[rbp]
	call	add_to_queue
.L17:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	explore, .-explore
	.section	.rodata
.LC0:
	.string	"Missing input file"
.LC1:
	.string	"r"
.LC2:
	.string	"Failed to open the input file"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -176128[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3952
	mov	DWORD PTR -180068[rbp], edi
	mov	QWORD PTR -180080[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -180068[rbp], 2
	je	.L19
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L33
.L19:
	mov	rax, QWORD PTR -180080[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -180032[rbp], rax
	cmp	QWORD PTR -180032[rbp], 0
	jne	.L21
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L33
.L21:
	lea	rax, -180016[rbp]
	mov	edx, 10000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	QWORD PTR -180048[rbp], 0
	mov	BYTE PTR -180062[rbp], 0
	mov	BYTE PTR -180061[rbp], 0
	jmp	.L22
.L26:
	cmp	BYTE PTR -180062[rbp], 0
	jne	.L23
	mov	rax, QWORD PTR -180048[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	BYTE PTR -180062[rbp], al
.L23:
	mov	DWORD PTR -180060[rbp], 0
	jmp	.L24
.L25:
	mov	rdx, QWORD PTR -180048[rbp]
	mov	eax, DWORD PTR -180060[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	movzx	eax, BYTE PTR -180061[rbp]
	lea	ecx, -48[rdx]
	mov	edx, DWORD PTR -180060[rbp]
	movsx	rsi, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	add	rax, rsi
	sub	rax, 180016
	mov	BYTE PTR [rax], cl
	add	DWORD PTR -180060[rbp], 1
.L24:
	movzx	eax, BYTE PTR -180062[rbp]
	cmp	DWORD PTR -180060[rbp], eax
	jl	.L25
	movzx	eax, BYTE PTR -180061[rbp]
	add	eax, 1
	mov	BYTE PTR -180061[rbp], al
.L22:
	mov	rdx, QWORD PTR -180032[rbp]
	lea	rcx, -180040[rbp]
	lea	rax, -180048[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	cmp	rax, -1
	jne	.L26
	mov	rax, QWORD PTR -180048[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -180032[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -180056[rbp], 0
	jmp	.L27
.L30:
	mov	DWORD PTR -180052[rbp], 0
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -180052[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -180056[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	add	rax, rcx
	sub	rax, 170016
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -180052[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -180056[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR -160016[rbp+rax*4], -1
	add	DWORD PTR -180052[rbp], 1
.L28:
	movzx	eax, BYTE PTR -180062[rbp]
	cmp	DWORD PTR -180052[rbp], eax
	jl	.L29
	add	DWORD PTR -180056[rbp], 1
.L27:
	movzx	eax, BYTE PTR -180062[rbp]
	cmp	DWORD PTR -180056[rbp], eax
	jl	.L30
	mov	DWORD PTR -16[rbp], 0
	lea	rax, -120016[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	add_to_queue
	mov	DWORD PTR -160016[rbp], 0
.L32:
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jne	.L31
	movzx	eax, BYTE PTR -180062[rbp]
	lea	edx, -1[rax]
	movzx	eax, BYTE PTR -180062[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR -160016[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L33
.L31:
	mov	QWORD PTR -180024[rbp], 0
	lea	rdx, -180024[rbp]
	lea	rax, -120016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pop_from_queue
	movzx	edx, BYTE PTR -180062[rbp]
	mov	eax, DWORD PTR -180020[rbp]
	movzx	esi, al
	mov	eax, DWORD PTR -180024[rbp]
	movzx	eax, al
	lea	r9, -160016[rbp]
	lea	r8, -170016[rbp]
	lea	rcx, -180016[rbp]
	sub	rsp, 8
	lea	rdi, -120016[rbp]
	push	rdi
	mov	edi, eax
	call	explore
	add	rsp, 16
	jmp	.L32
.L33:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"126114.c"
	.text
	.align	2
	.global	add_to_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_to_queue, %function
add_to_queue:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcc	.L7
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-16]
	add	r3, r3, #118784
	ldr	r2, [r3, #1216]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L5
	b	.L4
.L7:
	nop
.L4:
	ldr	r3, [fp, #-16]
	add	r3, r3, #118784
	ldr	r2, [r3, #1216]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L6
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r1, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #118784
	ldr	r2, [r3, #1216]
	ldr	r3, [fp, #-8]
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	bl	memmove
.L6:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r1, [r3]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #4
	str	r1, [r3]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #8
	str	r1, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #118784
	ldr	r3, [r3, #1216]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r2, r2, #118784
	str	r3, [r2, #1216]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add_to_queue, .-add_to_queue
	.align	2
	.global	pop_from_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop_from_queue, %function
pop_from_queue:
	@ 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
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #118784
	ldr	r3, [r3, #1216]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-8]
	add	r3, r3, #118784
	ldr	r3, [r3, #1216]
	sub	r2, r3, #1
	ldr	r1, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #118784
	ldr	r3, [r3, #1216]
	sub	r2, r3, #1
	ldr	r1, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #118784
	ldr	r3, [r3, #1216]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r2, r2, #118784
	str	r3, [r2, #1216]
	b	.L8
.L11:
	nop
.L8:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	pop_from_queue, .-pop_from_queue
	.align	2
	.global	explore
	.syntax unified
	.arm
	.fpu softvfp
	.type	explore, %function
explore:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r3, [fp, #-20]
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r3, r1
	strb	r3, [fp, #-14]
	mov	r3, r2
	strb	r3, [fp, #-15]
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #4]
	add	r2, r3, r2
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	mov	r1, #1
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #1
	bls	.L13
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #4]
	add	r2, r3, r2
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	sub	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L13
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, r2
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	ldr	r1, [r3, r2, lsl #2]
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r2, r3, r2
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	sub	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	add	r3, r1, r3
	str	r3, [fp, #-8]
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, r2
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	sub	r2, r2, #1
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcs	.L13
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, r2
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	sub	r2, r2, #1
	ldr	r1, [fp, #-8]
	str	r1, [r3, r2, lsl #2]
	ldrb	r1, [fp, #-13]	@ zero_extendqisi2
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	ldr	r0, [fp, #12]
	bl	add_to_queue
.L13:
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	cmp	r2, r3
	bcs	.L14
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #4]
	add	r2, r3, r2
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	add	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L14
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, r2
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	ldr	r1, [r3, r2, lsl #2]
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r2, r3, r2
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	add	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	add	r3, r1, r3
	str	r3, [fp, #-8]
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, r2
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	add	r2, r2, #1
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcs	.L14
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, r2
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	add	r2, r2, #1
	ldr	r1, [fp, #-8]
	str	r1, [r3, r2, lsl #2]
	ldrb	r1, [fp, #-13]	@ zero_extendqisi2
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	ldr	r0, [fp, #12]
	bl	add_to_queue
.L14:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #1
	bls	.L15
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, #100
	ldr	r2, [fp, #4]
	add	r2, r2, r3
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L15
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, r2
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	ldr	r1, [r3, r2, lsl #2]
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, #100
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	add	r3, r1, r3
	str	r3, [fp, #-8]
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, #400
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcs	.L15
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, #400
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	ldr	r1, [fp, #-8]
	str	r1, [r3, r2, lsl #2]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r1, r3, #1
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r0, [fp, #12]
	bl	add_to_queue
.L15:
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	cmp	r2, r3
	bcs	.L17
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #4]
	add	r2, r3, r2
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L17
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, r2
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	ldr	r1, [r3, r2, lsl #2]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r2, r3, r2
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	add	r3, r1, r3
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, r2
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcs	.L17
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, r2
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	ldr	r1, [fp, #-8]
	str	r1, [r3, r2, lsl #2]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	add	r1, r3, #1
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r0, [fp, #12]
	bl	add_to_queue
.L17:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	explore, .-explore
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Missing input file\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Failed to open the input file\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 = 180056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #179200
	sub	sp, sp, #876
	sub	r3, fp, #176128
	sub	r3, r3, #12
	str	r0, [r3, #-3924]
	sub	r3, fp, #176128
	sub	r3, r3, #12
	str	r1, [r3, #-3928]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r3, [r3, #-3924]
	cmp	r3, #2
	beq	.L19
	ldr	r0, .L35+4
	bl	printf
	mov	r3, #1
	b	.L33
.L19:
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r3, [r3, #-3928]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #176128
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L35+8
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-3892]
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r3, [r3, #-3892]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L35+12
	bl	printf
	mov	r3, #1
	b	.L33
.L21:
	sub	r3, fp, #176128
	sub	r3, r3, #12
	sub	r3, r3, #3872
	sub	r3, r3, #8
	ldr	r2, .L35+16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #176128
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3912]
	sub	r3, fp, #176128
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-3914]
	sub	r3, fp, #176128
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-3913]
	b	.L22
.L26:
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldrb	r3, [r3, #-3914]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L23
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r3, [r3, #-3912]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	and	r3, r3, #255
	sub	r2, fp, #176128
	sub	r2, r2, #12
	sub	r3, r3, #1
	strb	r3, [r2, #-3914]
.L23:
	sub	r3, fp, #176128
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3904]
	b	.L24
.L25:
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r2, [r3, #-3912]
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r3, [r3, #-3904]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #176128
	sub	r2, r2, #12
	ldrb	r2, [r2, #-3913]	@ zero_extendqisi2
	sub	r3, r3, #48
	and	r1, r3, #255
	sub	r3, fp, #176128
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r0, r3
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r3, [r3, #-3904]
	add	r3, r2, r3
	sub	r3, r3, #3872
	sub	r3, r3, #8
	mov	r2, r1
	strb	r2, [r3]
	sub	r3, fp, #176128
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r3, [r3, #-3904]
	add	r3, r3, #1
	str	r3, [r2, #-3904]
.L24:
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldrb	r3, [r3, #-3914]	@ zero_extendqisi2
	sub	r2, fp, #176128
	sub	r2, r2, #12
	ldr	r2, [r2, #-3904]
	cmp	r2, r3
	blt	.L25
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldrb	r3, [r3, #-3913]	@ zero_extendqisi2
	sub	r2, fp, #176128
	sub	r2, r2, #12
	add	r3, r3, #1
	strb	r3, [r2, #-3913]
.L22:
	sub	r3, fp, #176128
	sub	r3, r3, #12
	mov	r2, r3
	sub	r1, fp, #179200
	sub	r1, r1, #12
	sub	r1, r1, #836
	sub	r3, fp, #179200
	sub	r3, r3, #12
	sub	r3, r3, #840
	ldr	r2, [r2, #-3892]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	cmn	r3, #1
	bne	.L26
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r3, [r3, #-3912]
	mov	r0, r3
	bl	free
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r0, [r3, #-3892]
	bl	fclose
	sub	r3, fp, #176128
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3900]
	b	.L27
.L30:
	sub	r3, fp, #176128
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3896]
	b	.L28
.L29:
	sub	r3, fp, #167936
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r2, [r3, #-3900]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r3, [r3, #-3896]
	add	r3, r2, r3
	sub	r3, r3, #2064
	sub	r3, r3, #8
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #159744
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r2, [r3, #-3900]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #176128
	sub	r2, r2, #12
	ldr	r2, [r2, #-3896]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mvn	r2, #0
	str	r2, [r3, #-264]
	sub	r3, fp, #176128
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r3, [r3, #-3896]
	add	r3, r3, #1
	str	r3, [r2, #-3896]
.L28:
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldrb	r3, [r3, #-3914]	@ zero_extendqisi2
	sub	r2, fp, #176128
	sub	r2, r2, #12
	ldr	r2, [r2, #-3896]
	cmp	r2, r3
	blt	.L29
	sub	r3, fp, #176128
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r3, [r3, #-3900]
	add	r3, r3, #1
	str	r3, [r2, #-3900]
.L27:
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldrb	r3, [r3, #-3914]	@ zero_extendqisi2
	sub	r2, fp, #176128
	sub	r2, r2, #12
	ldr	r2, [r2, #-3900]
	cmp	r2, r3
	blt	.L30
	sub	r3, fp, #118784
	sub	r3, r3, #12
	add	r3, r3, #114688
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #4088]
	sub	r0, fp, #119808
	sub	r0, r0, #12
	sub	r0, r0, #200
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	bl	add_to_queue
	sub	r3, fp, #159744
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-264]
.L32:
	sub	r3, fp, #118784
	sub	r3, r3, #12
	add	r3, r3, #114688
	ldr	r3, [r3, #4088]
	cmp	r3, #0
	bne	.L31
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldrb	r3, [r3, #-3914]	@ zero_extendqisi2
	sub	r2, r3, #1
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldrb	r3, [r3, #-3914]	@ zero_extendqisi2
	sub	r1, r3, #1
	sub	r3, fp, #159744
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #-264]
	mov	r1, r3
	ldr	r0, .L35+20
	bl	printf
	mov	r3, #0
	b	.L33
.L31:
	sub	r3, fp, #176128
	sub	r3, r3, #12
	sub	r3, r3, #3888
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r2, fp, #179200
	sub	r2, r2, #12
	sub	r2, r2, #816
	sub	r3, fp, #119808
	sub	r3, r3, #12
	sub	r3, r3, #200
	mov	r1, r2
	mov	r0, r3
	bl	pop_from_queue
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r3, [r3, #-3888]
	and	r0, r3, #255
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldr	r3, [r3, #-3884]
	and	r1, r3, #255
	sub	r2, fp, #179200
	sub	r2, r2, #12
	sub	r2, r2, #808
	sub	r3, fp, #176128
	sub	r3, r3, #12
	ldrb	ip, [r3, #-3914]	@ zero_extendqisi2
	sub	r3, fp, #119808
	sub	r3, r3, #12
	sub	r3, r3, #200
	str	r3, [sp, #8]
	sub	r3, fp, #159744
	sub	r3, r3, #12
	sub	r3, r3, #264
	str	r3, [sp, #4]
	sub	r3, fp, #169984
	sub	r3, r3, #12
	sub	r3, r3, #24
	str	r3, [sp]
	mov	r3, r2
	mov	r2, ip
	bl	explore
	b	.L32
.L33:
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	10000
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
