	.file	"877698.c"
	.intel_syntax noprefix
	.text
	.globl	stroka
	.bss
	.align 8
	.type	stroka, @object
	.size	stroka, 8
stroka:
	.zero	8
	.globl	count
	.align 8
	.type	count, @object
	.size	count, 8
count:
	.zero	8
	.globl	result
	.align 4
	.type	result, @object
	.size	result, 4
result:
	.zero	4
	.globl	cnt
	.align 8
	.type	cnt, @object
	.size	cnt, 8
cnt:
	.zero	8
	.globl	ar
	.align 8
	.type	ar, @object
	.size	ar, 8
ar:
	.zero	8
	.section	.rodata
.LC0:
	.string	"ConcatStr!"
	.text
	.globl	ConcatStr
	.type	ConcatStr, @function
ConcatStr:
.LFB6:
	.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, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -88[rbp], eax
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -84[rbp], eax
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -96[rbp], 0
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, 1
	mov	DWORD PTR -112[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, 1
	mov	DWORD PTR -92[rbp], eax
	mov	DWORD PTR -104[rbp], 0
	mov	edx, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -84[rbp]
	add	eax, edx
	sub	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	add	eax, 1
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 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
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -112[rbp], 0
	jmp	.L5
.L6:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 0
	add	DWORD PTR -112[rbp], 1
.L5:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	jge	.L6
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -108[rbp], 0
	jmp	.L7
.L12:
	mov	eax, DWORD PTR -112[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -104[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L8
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	jle	.L8
	jmp	.L9
.L10:
	add	DWORD PTR -100[rbp], 1
	add	DWORD PTR -104[rbp], 1
	add	DWORD PTR -112[rbp], 1
.L9:
	mov	eax, DWORD PTR -112[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -104[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L8
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	jg	.L10
.L8:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jle	.L11
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR -96[rbp], eax
.L11:
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -104[rbp], 0
	sub	DWORD PTR -92[rbp], 1
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -112[rbp], eax
	add	DWORD PTR -108[rbp], 1
.L7:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -88[rbp]
	jl	.L12
	mov	DWORD PTR -112[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -112[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -112[rbp], 1
.L13:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -88[rbp]
	jl	.L14
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR -76[rbp], eax
	mov	DWORD PTR -112[rbp], 0
	jmp	.L15
.L16:
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -112[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR -88[rbp]
	mov	edx, DWORD PTR -112[rbp]
	lea	esi, [rcx+rdx]
	movzx	ecx, BYTE PTR [rax]
	mov	rdx, QWORD PTR -64[rbp]
	movsx	rax, esi
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -112[rbp], 1
.L15:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L16
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR stroka[rip], rax
	mov	rax, QWORD PTR stroka[rip]
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ConcatStr, .-ConcatStr
	.section	.rodata
.LC1:
	.string	"Permut!"
	.text
	.globl	permut
	.type	permut, @function
permut:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 168
	.cfi_offset 3, -24
	mov	QWORD PTR -152[rbp], rdi
	mov	QWORD PTR -160[rbp], rsi
	mov	DWORD PTR -164[rbp], edx
	mov	DWORD PTR -168[rbp], ecx
	mov	QWORD PTR -176[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -140[rbp], eax
	mov	QWORD PTR -136[rbp], 0
	mov	rdx, QWORD PTR -160[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, DWORD PTR -164[rbp]
	jne	.L20
	mov	eax, DWORD PTR result[rip]
	cmp	DWORD PTR -140[rbp], eax
	jl	.L21
	mov	eax, DWORD PTR result[rip]
	test	eax, eax
	jne	.L20
.L21:
	mov	eax, DWORD PTR -140[rbp]
	mov	DWORD PTR result[rip], eax
.L20:
	mov	DWORD PTR -144[rbp], 0
	jmp	.L22
.L24:
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L23
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -168[rbp]
	lea	ebx, 1[rax]
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ConcatStr
	mov	rsi, rax
	mov	rcx, QWORD PTR -176[rbp]
	mov	edx, DWORD PTR -164[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	r8, rcx
	mov	ecx, ebx
	mov	rdi, rax
	call	permut
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
.L23:
	add	DWORD PTR -144[rbp], 1
.L22:
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, DWORD PTR -164[rbp]
	jl	.L24
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	permut, .-permut
	.section	.rodata
.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, 56
	.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
	lea	rax, -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ecx, DWORD PTR -88[rbp]
	movsx	rax, ecx
	sub	rax, 1
	mov	QWORD PTR -80[rbp], rax
	movsx	rax, ecx
	mov	r14, rax
	mov	r15d, 0
	imul	rdx, r15, 400
	imul	rax, r14, 0
	lea	rsi, [rdx+rax]
	mov	eax, 400
	mul	r14
	add	rsi, rdx
	mov	rdx, rsi
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	movsx	rax, ecx
	mov	r12, rax
	mov	r13d, 0
	imul	rdx, r13, 400
	imul	rax, r12, 0
	lea	rsi, [rdx+rax]
	mov	eax, 400
	mul	r12
	add	rsi, rdx
	mov	rdx, rsi
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L27:
	cmp	rsp, rdx
	je	.L28
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L27
.L28:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L29
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L29:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	mov	rdx, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	add	DWORD PTR -84[rbp], 1
.L30:
	mov	eax, DWORD PTR -88[rbp]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L31
	mov	QWORD PTR stroka[rip], 0
	mov	BYTE PTR -57[rbp], 0
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR count[rip], rax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L32
.L33:
	mov	rdx, QWORD PTR count[rip]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -84[rbp], 1
.L32:
	mov	eax, DWORD PTR -88[rbp]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L33
	mov	rcx, QWORD PTR count[rip]
	mov	edx, DWORD PTR -88[rbp]
	lea	rsi, -57[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	r8, rcx
	mov	ecx, 0
	mov	rdi, rax
	call	permut
	mov	rax, QWORD PTR count[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR result[rip]
	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	.L35
	call	__stack_chk_fail@PLT
.L35:
	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	"877698.c"
	.text
	.comm	stroka,4,4
	.comm	count,4,4
	.global	result
	.bss
	.align	2
	.type	result, %object
	.size	result, 4
result:
	.space	4
	.comm	cnt,4,4
	.comm	ar,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ConcatStr!\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ConcatStr
	.syntax unified
	.arm
	.fpu softvfp
	.type	ConcatStr, %function
ConcatStr:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r0, .L16+4
	bl	puts
	ldr	r0, [fp, #-72]
	bl	puts
	ldr	r0, [fp, #-76]
	bl	puts
	ldr	r0, [fp, #-72]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-76]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	add	ip, r3, #1
	sub	r3, ip, #1
	str	r3, [fp, #-28]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L2
.L3:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L2:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	bge	.L3
	ldr	r3, [fp, #-24]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L4
.L9:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-56]
	ldr	r1, [fp, #-76]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L5
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	ble	.L5
	b	.L6
.L7:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L6:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-56]
	ldr	r1, [fp, #-76]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L5
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	bgt	.L7
.L5:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	ble	.L8
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-48]
.L8:
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L4:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L9
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L10
.L11:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L10:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L11
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L12
.L13:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r2, r3, r2
	ldr	r1, [fp, #-40]
	ldr	r3, [fp, #-64]
	add	r3, r1, r3
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, [fp, #-24]
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L12:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L13
	ldr	r2, .L16+8
	ldr	r3, [fp, #-24]
	str	r3, [r2]
	ldr	r3, .L16+8
	ldr	r3, [r3]
	mov	sp, r4
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	.LC0
	.word	stroka
	.size	ConcatStr, .-ConcatStr
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Permut!\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	permut
	.syntax unified
	.arm
	.fpu softvfp
	.type	permut, %function
permut:
	@ args = 4, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	str	r2, [fp, #-136]
	str	r3, [fp, #-140]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-144]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L25+4
	bl	puts
	ldr	r0, [fp, #-132]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-112]
	sub	r3, fp, #108
	ldr	r1, [fp, #-132]
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-140]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	bne	.L19
	ldr	r3, .L25+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	blt	.L20
	ldr	r3, .L25+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
.L20:
	ldr	r2, .L25+8
	ldr	r3, [fp, #-116]
	str	r3, [r2]
.L19:
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L21
.L23:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-128]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	ConcatStr
	mov	r1, r0
	ldr	r3, [fp, #-140]
	add	r2, r3, #1
	ldr	r3, [fp, #-144]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-136]
	ldr	r0, [fp, #-128]
	bl	permut
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L22:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L21:
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	blt	.L23
	nop
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC3
	.word	.LC2
	.word	result
	.size	permut, .-permut
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #36
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L34+4
	bl	__isoc99_scanf
	ldr	ip, [fp, #-52]
	sub	r3, ip, #1
	str	r3, [fp, #-44]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r4, r2, r2
	adc	r5, r3, r3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #3
	orr	r5, r5, r2, lsr #29
	lsl	r4, r2, #3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #4
	orr	r1, r1, r2, lsr #28
	lsl	r0, r2, #4
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r6, r2, r2
	adc	r7, r3, r3
	mov	r2, r6
	mov	r3, r7
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #3
	orr	r5, r5, r2, lsr #29
	lsl	r4, r2, #3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #4
	orr	r1, r1, r2, lsr #28
	lsl	r0, r2, #4
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L28
.L29:
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r0, r3
	bl	gets
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L28:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L29
	ldr	r3, .L34+8
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-36]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L34+12
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L30
.L31:
	ldr	r3, .L34+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L30:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L31
	ldr	r2, [fp, #-52]
	ldr	r3, .L34+12
	ldr	r3, [r3]
	sub	r1, fp, #36
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [fp, #-40]
	bl	permut
	ldr	r3, .L34+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L34+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	mov	r3, #0
	mov	sp, r8
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC5
	.word	.LC4
	.word	stroka
	.word	count
	.word	result
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
