	.file	"49454.c"
	.intel_syntax noprefix
	.text
	.globl	array
	.bss
	.align 8
	.type	array, @object
	.size	array, 8
array:
	.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
	.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
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -40[rbp], 0
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	sub	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -48[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -48[rbp], 1
.L2:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jge	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L4
.L9:
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L5
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jle	.L5
	jmp	.L6
.L7:
	add	DWORD PTR -36[rbp], 1
	add	DWORD PTR -40[rbp], 1
	add	DWORD PTR -48[rbp], 1
.L6:
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L5
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jg	.L7
.L5:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L8
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -32[rbp], eax
.L8:
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	sub	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -48[rbp], eax
	add	DWORD PTR -44[rbp], 1
.L4:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L9
	mov	DWORD PTR -48[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -48[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -48[rbp], 1
.L10:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L11
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -48[rbp], 0
	jmp	.L12
.L13:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -48[rbp]
	add	edx, ecx
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -48[rbp], 1
.L12:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L13
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ConcatStr, .-ConcatStr
	.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
	sub	rsp, 1168
	mov	QWORD PTR -1144[rbp], rdi
	mov	QWORD PTR -1152[rbp], rsi
	mov	DWORD PTR -1156[rbp], edx
	mov	DWORD PTR -1160[rbp], ecx
	mov	QWORD PTR -1168[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1124[rbp], eax
	mov	rdx, QWORD PTR -1152[rbp]
	lea	rax, -1120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -1160[rbp]
	cmp	eax, DWORD PTR -1156[rbp]
	jne	.L16
	mov	eax, DWORD PTR result[rip]
	cmp	DWORD PTR -1124[rbp], eax
	jl	.L17
	mov	eax, DWORD PTR result[rip]
	test	eax, eax
	jne	.L16
.L17:
	mov	eax, DWORD PTR -1124[rbp]
	mov	DWORD PTR result[rip], eax
.L16:
	mov	DWORD PTR -1128[rbp], 0
	jmp	.L18
.L20:
	mov	eax, DWORD PTR -1128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L19
	mov	eax, DWORD PTR -1128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1168[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -1128[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ConcatStr
	mov	rdx, rax
	lea	rax, -1008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -1128[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ConcatStr
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -1160[rbp]
	lea	ecx, 1[rax]
	mov	rdi, QWORD PTR -1168[rbp]
	mov	edx, DWORD PTR -1156[rbp]
	lea	rsi, -1008[rbp]
	mov	rax, QWORD PTR -1144[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	permut
	mov	eax, DWORD PTR -1128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -1168[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
.L19:
	add	DWORD PTR -1128[rbp], 1
.L18:
	mov	eax, DWORD PTR -1128[rbp]
	cmp	eax, DWORD PTR -1156[rbp]
	jl	.L20
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	permut, .-permut
	.section	.rodata
.LC0:
	.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	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR array[rip], rax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L23
.L24:
	mov	rdx, QWORD PTR array[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 11
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR array[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	add	DWORD PTR -32[rbp], 1
.L23:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L24
	mov	BYTE PTR -25[rbp], 0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR count[rip], rax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L25
.L26:
	mov	rdx, QWORD PTR count[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -32[rbp], 1
.L25:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L26
	mov	rcx, QWORD PTR count[rip]
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR array[rip]
	lea	rsi, -25[rbp]
	mov	r8, rcx
	mov	ecx, 0
	mov	rdi, rax
	call	permut
	mov	eax, DWORD PTR result[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.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	"49454.c"
	.text
	.comm	array,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
	.text
	.align	2
	.global	ConcatStr
	.syntax unified
	.arm
	.fpu softvfp
	.type	ConcatStr, %function
ConcatStr:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-60]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L2
.L3:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bge	.L3
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L4
.L9:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-60]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L5
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	ble	.L5
	b	.L6
.L7:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L6:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-60]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L5
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bgt	.L7
.L5:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L8
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-32]
.L8:
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L4:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L9
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L10
.L11:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-12]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L10:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L11
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L12
.L13:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-60]
	add	r2, r3, r2
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-48]
	add	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, r1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L12:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ConcatStr, .-ConcatStr
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	permut
	.syntax unified
	.arm
	.fpu softvfp
	.type	permut, %function
permut:
	@ args = 4, pretend = 0, frame = 1136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1136
	sub	sp, sp, #8
	str	r0, [fp, #-1120]
	str	r1, [fp, #-1124]
	str	r2, [fp, #-1128]
	str	r3, [fp, #-1132]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-1136]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-1124]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1112]
	sub	r3, fp, #1104
	sub	r3, r3, #4
	ldr	r1, [fp, #-1124]
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-1132]
	ldr	r3, [fp, #-1128]
	cmp	r2, r3
	bne	.L16
	ldr	r3, .L22+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-1112]
	cmp	r2, r3
	blt	.L17
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
.L17:
	ldr	r2, .L22+4
	ldr	r3, [fp, #-1112]
	str	r3, [r2]
.L16:
	mov	r3, #0
	str	r3, [fp, #-1116]
	b	.L18
.L20:
	ldr	r3, [fp, #-1116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1136]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-1116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1136]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-1116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1120]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #1104
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	ConcatStr
	mov	r2, r0
	sub	r3, fp, #1008
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-1116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1120]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #1104
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	ConcatStr
	mov	r3, r0
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-1132]
	add	r2, r3, #1
	sub	r1, fp, #1008
	ldr	r3, [fp, #-1136]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-1128]
	ldr	r0, [fp, #-1120]
	bl	permut
	ldr	r3, [fp, #-1116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1136]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L19:
	ldr	r3, [fp, #-1116]
	add	r3, r3, #1
	str	r3, [fp, #-1116]
.L18:
	ldr	r2, [fp, #-1116]
	ldr	r3, [fp, #-1128]
	cmp	r2, r3
	blt	.L20
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	result
	.size	permut, .-permut
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L31+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L31+8
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L25
.L26:
	ldr	r3, .L31+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #11
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L31+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	gets
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L25:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L26
	mov	r3, #0
	strb	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L31+12
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L27
.L28:
	ldr	r3, .L31+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L27:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L28
	ldr	r3, .L31+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-28]
	ldr	r3, .L31+12
	ldr	r3, [r3]
	sub	r1, fp, #20
	str	r3, [sp]
	mov	r3, #0
	bl	permut
	ldr	r3, .L31+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L31+4
	bl	printf
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC2
	.word	.LC1
	.word	array
	.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
