	.file	"253887.c"
	.intel_syntax noprefix
	.text
	.globl	next
	.type	next, @function
next:
.LFB6:
	.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 -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	jmp	.L2
.L4:
	sub	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 0
	jle	.L3
	mov	eax, DWORD PTR -8[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 -8[rbp]
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jg	.L4
.L3:
	cmp	DWORD PTR -8[rbp], 0
	jle	.L5
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L8:
	add	DWORD PTR -12[rbp], 1
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jge	.L7
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jg	.L8
.L7:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -12[rbp], 1
.L9:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -12[rbp], eax
	jle	.L10
	mov	DWORD PTR -28[rbp], 1
	jmp	.L11
.L5:
	mov	DWORD PTR -28[rbp], 0
.L11:
	mov	eax, DWORD PTR -28[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	next, .-next
	.globl	concat
	.type	concat, @function
concat:
.LFB7:
	.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L14
.L31:
	mov	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L15
	cmp	DWORD PTR -8[rbp], 1
	je	.L15
	cmp	DWORD PTR -52[rbp], 1
	je	.L15
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
	jmp	.L16
.L27:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L17
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jg	.L17
	mov	rax, QWORD PTR -40[rbp]
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L19
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L20
	sub	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -20[rbp], 1
	add	DWORD PTR -12[rbp], 1
.L21:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	sub	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L22
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	sub	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	jmp	.L18
.L20:
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -20[rbp], 1
	add	DWORD PTR -12[rbp], 1
.L23:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	sub	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L24
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	sub	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L33
	add	DWORD PTR -20[rbp], 1
	add	DWORD PTR -16[rbp], 1
.L16:
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cmp	DWORD PTR -16[rbp], eax
	jle	.L27
	jmp	.L28
.L33:
	nop
	jmp	.L28
.L15:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L28
	cmp	DWORD PTR -8[rbp], 1
	je	.L29
	cmp	DWORD PTR -52[rbp], 1
	jne	.L28
.L29:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L30
	mov	rax, QWORD PTR -48[rbp]
	jmp	.L18
.L30:
	mov	rax, QWORD PTR -40[rbp]
	jmp	.L18
.L28:
	add	DWORD PTR -24[rbp], 1
.L14:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L31
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	concat, .-concat
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d "
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 264
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -212[rbp], 1
	mov	DWORD PTR -216[rbp], 2
	lea	rax, -232[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -232[rbp]
	lea	edx, 1[rax]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -192[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L35:
	cmp	rsp, rdx
	je	.L36
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L35
.L36:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L37
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L37:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -184[rbp], rax
	mov	eax, DWORD PTR -232[rbp]
	add	eax, 1
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -176[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -288[rbp], rdx
	mov	QWORD PTR -280[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -304[rbp], rdx
	mov	QWORD PTR -296[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L38:
	cmp	rsp, rdx
	je	.L39
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L38
.L39:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L40
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L40:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -168[rbp], rax
	mov	DWORD PTR -204[rbp], 0
	mov	DWORD PTR -200[rbp], 0
	mov	DWORD PTR -196[rbp], 0
	mov	DWORD PTR -220[rbp], 0
	mov	DWORD PTR -224[rbp], 2561
	lea	rax, -232[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -232[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -160[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L41:
	cmp	rsp, rdx
	je	.L42
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L41
.L42:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L43
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L43:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -152[rbp], rax
	mov	DWORD PTR -208[rbp], 0
	jmp	.L44
.L46:
	mov	edi, 256
	call	malloc@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	eax, DWORD PTR -232[rbp]
	sub	eax, 2
	cmp	DWORD PTR -208[rbp], eax
	jge	.L45
	mov	edi, 2561
	call	malloc@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -208[rbp]
	cdqe
	mov	QWORD PTR -128[rbp+rax*8], rdx
.L45:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -220[rbp]
	add	eax, edx
	mov	DWORD PTR -220[rbp], eax
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -208[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -208[rbp], 1
.L44:
	mov	eax, DWORD PTR -232[rbp]
	cmp	DWORD PTR -208[rbp], eax
	jl	.L46
	mov	eax, DWORD PTR -220[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -144[rbp], rax
	mov	eax, DWORD PTR -220[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	edx, DWORD PTR -232[rbp]
	mov	ecx, DWORD PTR -232[rbp]
	mov	rax, QWORD PTR -184[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
.L59:
	cmp	DWORD PTR -216[rbp], 2
	jle	.L47
	mov	eax, DWORD PTR -216[rbp]
	sub	eax, 3
	cdqe
	mov	rdx, QWORD PTR -128[rbp+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L48
.L47:
	mov	rax, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	DWORD PTR -216[rbp], 2
.L48:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -228[rbp], eax
	mov	eax, DWORD PTR -216[rbp]
	sub	eax, 1
	mov	DWORD PTR -208[rbp], eax
	jmp	.L49
.L53:
	mov	eax, DWORD PTR -208[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -184[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	edx, DWORD PTR -228[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	concat
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -232[rbp]
	sub	eax, 2
	cmp	DWORD PTR -208[rbp], eax
	jge	.L50
	mov	eax, DWORD PTR -208[rbp]
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -128[rbp+rax*8]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L50:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -228[rbp], eax
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	eax, DWORD PTR -228[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jge	.L65
	add	DWORD PTR -208[rbp], 1
.L49:
	mov	eax, DWORD PTR -232[rbp]
	cmp	DWORD PTR -208[rbp], eax
	jl	.L53
	jmp	.L52
.L65:
	nop
.L52:
	mov	edx, DWORD PTR -232[rbp]
	mov	esi, DWORD PTR -232[rbp]
	mov	rax, QWORD PTR -184[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -168[rbp]
	movsx	rdx, esi
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	eax, DWORD PTR -228[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jge	.L54
	mov	eax, DWORD PTR -228[rbp]
	mov	DWORD PTR -224[rbp], eax
.L54:
	mov	edx, DWORD PTR -232[rbp]
	mov	ecx, DWORD PTR -212[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	next
	mov	DWORD PTR -212[rbp], eax
	mov	DWORD PTR -216[rbp], 1
	jmp	.L55
.L58:
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, DWORD PTR -216[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, DWORD PTR -216[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	ecx, eax
	jne	.L66
	add	DWORD PTR -216[rbp], 1
.L55:
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, DWORD PTR -208[rbp]
	jle	.L58
	jmp	.L57
.L66:
	nop
.L57:
	cmp	DWORD PTR -212[rbp], 0
	jne	.L59
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -208[rbp], 0
	jmp	.L60
.L62:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -232[rbp]
	sub	eax, 2
	cmp	DWORD PTR -208[rbp], eax
	jge	.L61
	mov	eax, DWORD PTR -208[rbp]
	cdqe
	mov	rax, QWORD PTR -128[rbp+rax*8]
	mov	rdi, rax
	call	free@PLT
.L61:
	add	DWORD PTR -208[rbp], 1
.L60:
	mov	eax, DWORD PTR -232[rbp]
	cmp	DWORD PTR -208[rbp], eax
	jl	.L62
	mov	eax, DWORD PTR -224[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"253887.c"
	.text
	.align	2
	.global	next
	.syntax unified
	.arm
	.fpu softvfp
	.type	next, %function
next:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L4
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L5
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L6
.L8:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L6:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bge	.L7
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L8
.L7:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L9
.L10:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L9:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	ble	.L10
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L11
.L5:
	mov	r3, #0
	str	r3, [fp, #-28]
.L11:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	next, .-next
	.align	2
	.global	concat
	.syntax unified
	.arm
	.fpu softvfp
	.type	concat, %function
concat:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L14
.L31:
	mov	r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L15
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L15
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	beq	.L15
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L16
.L27:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L17
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bgt	.L17
	ldr	r3, [fp, #-32]
	b	.L18
.L17:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L19
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L20
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L21
.L22:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L21:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L22
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	b	.L18
.L20:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L23
.L24:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L23:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L24
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	b	.L18
.L19:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-36]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L33
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L16:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L27
	b	.L28
.L33:
	nop
	b	.L28
.L15:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L28
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L29
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bne	.L28
.L29:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L30
	ldr	r3, [fp, #-36]
	b	.L18
.L30:
	ldr	r3, [fp, #-32]
	b	.L18
.L28:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L14:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L31
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	strcat
	mov	r3, r0
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	concat, .-concat
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d \000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.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 = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #116
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #1
	str	r3, [fp, #-100]
	mov	r3, #2
	str	r3, [fp, #-104]
	sub	r3, fp, #120
	mov	r1, r3
	ldr	r0, .L58+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-120]
	add	ip, r3, #1
	sub	r3, ip, #1
	str	r3, [fp, #-92]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-120]
	add	ip, r3, #1
	sub	r3, ip, #1
	str	r3, [fp, #-84]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-108]
	ldr	r3, .L58+8
	str	r3, [fp, #-112]
	sub	r3, fp, #120
	mov	r1, r3
	ldr	r0, .L58+12
	bl	__isoc99_scanf
	ldr	ip, [fp, #-120]
	sub	r3, ip, #1
	str	r3, [fp, #-64]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L35
.L37:
	mov	r0, #256
	bl	malloc
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-96]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-120]
	sub	r3, r3, #2
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bge	.L36
	ldr	r0, .L58+8
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-36]
.L36:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	gets
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-96]
	ldr	r1, [fp, #-96]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L35:
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	blt	.L37
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-120]
	ldr	r1, [fp, #-120]
	ldr	r3, [fp, #-88]
	str	r1, [r3, r2, lsl #2]
.L50:
	ldr	r3, [fp, #-104]
	cmp	r3, #2
	ble	.L38
	ldr	r3, [fp, #-104]
	sub	r3, r3, #3
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	strcpy
	b	.L39
.L38:
	ldr	r3, [fp, #-88]
	ldr	r3, [r3, #4]
	sub	r2, r3, #1
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	strcpy
	mov	r3, #2
	str	r3, [fp, #-104]
.L39:
	ldr	r0, [fp, #-56]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	str	r3, [fp, #-96]
	b	.L40
.L44:
	ldr	r3, [fp, #-96]
	add	r2, r3, #1
	ldr	r3, [fp, #-88]
	ldr	r3, [r3, r2, lsl #2]
	sub	r2, r3, #1
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-116]
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	concat
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	strcpy
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-56]
	bl	strcpy
	ldr	r3, [fp, #-120]
	sub	r3, r3, #2
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bge	.L41
	ldr	r3, [fp, #-96]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	strcpy
.L41:
	ldr	r0, [fp, #-56]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-96]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-96]
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	bge	.L56
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L40:
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	blt	.L44
	b	.L43
.L56:
	nop
.L43:
	ldr	r1, [fp, #-120]
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-88]
	ldr	r1, [r3, r1, lsl #2]
	ldr	r3, [fp, #-80]
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	bge	.L45
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-112]
.L45:
	ldr	r3, [fp, #-120]
	mov	r2, r3
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-88]
	bl	next
	str	r0, [fp, #-100]
	mov	r3, #1
	str	r3, [fp, #-104]
	b	.L46
.L49:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-104]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-80]
	ldr	r1, [fp, #-104]
	ldr	r3, [r3, r1, lsl #2]
	cmp	r2, r3
	bne	.L57
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L46:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	ble	.L49
	b	.L48
.L57:
	nop
.L48:
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L50
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r0, [fp, #-52]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L51
.L53:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-120]
	sub	r3, r3, #2
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bge	.L52
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	mov	r0, r3
	bl	free
.L52:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L51:
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	blt	.L53
	ldr	r1, [fp, #-112]
	ldr	r0, .L58+16
	bl	printf
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L58
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC3
	.word	.LC0
	.word	2561
	.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
