	.file	"423289.c"
	.intel_syntax noprefix
	.text
	.globl	clear_list
	.type	clear_list, @function
clear_list:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 0
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L2:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	clear_list, .-clear_list
	.globl	add_num
	.type	add_num, @function
add_num:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 48[rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 56[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L6:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add_num, .-add_num
	.globl	ispermutation
	.type	ispermutation, @function
ispermutation:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L9
.L10:
	mov	rcx, QWORD PTR -72[rbp]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	mov	rsi, rcx
	sar	rsi, 63
	sub	rax, rsi
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	mov	eax, DWORD PTR -48[rbp+rdx*4]
	add	eax, 1
	mov	DWORD PTR -48[rbp+rdx*4], eax
	mov	rcx, QWORD PTR -72[rbp]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	QWORD PTR -72[rbp], rax
.L9:
	cmp	QWORD PTR -72[rbp], 0
	jg	.L10
	jmp	.L11
.L14:
	mov	rcx, QWORD PTR -80[rbp]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	mov	rdx, rax
	sal	rdx, 2
	add	rdx, rax
	lea	rax, [rdx+rdx]
	mov	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	mov	edx, DWORD PTR -48[rbp+rax*4]
	sub	edx, 1
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	eax, DWORD PTR -48[rbp+rax*4]
	test	eax, eax
	jns	.L12
	mov	eax, 0
	jmp	.L18
.L12:
	mov	rcx, QWORD PTR -80[rbp]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	QWORD PTR -80[rbp], rax
.L11:
	cmp	QWORD PTR -80[rbp], 0
	jg	.L14
	mov	DWORD PTR -52[rbp], 0
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	test	eax, eax
	je	.L16
	mov	eax, 0
	jmp	.L18
.L16:
	add	DWORD PTR -52[rbp], 1
.L15:
	cmp	DWORD PTR -52[rbp], 9
	jle	.L17
	mov	eax, 1
.L18:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	ispermutation, .-ispermutation
	.section	.rodata
.LC0:
	.string	"%ld "
.LC1:
	.string	"\n%ld\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
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 300
	mov	QWORD PTR -48[rbp], 0
	jmp	.L21
.L27:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	ispermutation
	test	eax, eax
	je	.L23
	mov	DWORD PTR -56[rbp], 0
	jmp	.L24
.L25:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 48[rax]
	mov	eax, DWORD PTR -56[rbp]
	lea	esi, [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -56[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR -16[rbp]
	movsx	rdx, esi
	mov	QWORD PTR 8[rax+rdx*8], rcx
	add	DWORD PTR -56[rbp], 1
.L24:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 48[rax]
	cmp	DWORD PTR -56[rbp], eax
	jl	.L25
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 48[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 48[rax]
	add	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 48[rax], edx
	jmp	.L26
.L23:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -40[rbp], rax
.L22:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L27
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 48[rax]
	cmp	eax, 4
	jle	.L28
	mov	DWORD PTR -52[rbp], 0
	jmp	.L29
.L30:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -52[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -52[rbp], 1
.L29:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 48[rax]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L30
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 48[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	clear_list
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	jmp	.L34
.L28:
	add	QWORD PTR -32[rbp], 1
.L21:
	mov	rax, QWORD PTR -32[rbp]
	imul	rax, rax
	mov	rdx, QWORD PTR -32[rbp]
	imul	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add_num
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L22
.L34:
	call	__stack_chk_fail@PLT
.L33:
	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	"423289.c"
	.text
	.align	2
	.global	clear_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	clear_list, %function
clear_list:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	free
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	clear_list, .-clear_list
	.align	2
	.global	add_num
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_num, %function
add_num:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L6
.L5:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L6:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add_num, .-add_num
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ispermutation
	.syntax unified
	.arm
	.fpu softvfp
	.type	ispermutation, %function
ispermutation:
	@ 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	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #48
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L9
.L10:
	ldr	r1, [fp, #-56]
	ldr	r3, .L20+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-44]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-44]
	ldr	r3, [fp, #-56]
	ldr	r2, .L20+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-56]
.L9:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bgt	.L10
	b	.L11
.L14:
	ldr	r1, [fp, #-60]
	ldr	r3, .L20+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-44]
	sub	r1, r3, #1
	lsl	r3, r2, #2
	sub	r0, fp, #4
	add	r3, r0, r3
	str	r1, [r3, #-44]
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bge	.L12
	mov	r3, #0
	b	.L18
.L12:
	ldr	r3, [fp, #-60]
	ldr	r2, .L20+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-60]
.L11:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bgt	.L14
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L15
.L17:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	beq	.L16
	mov	r3, #0
	b	.L18
.L16:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L15:
	ldr	r3, [fp, #-52]
	cmp	r3, #9
	ble	.L17
	mov	r3, #1
.L18:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	1717986919
	.size	ispermutation, .-ispermutation
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%ld \000"
	.align	2
.LC2:
	.ascii	"\012%ld\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #300
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L23
.L29:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	ispermutation
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L26
.L27:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-24]
	add	r0, r2, r3
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r1, [fp, #-12]
	lsl	r3, r0, #2
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L26:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L27
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #24]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3, #24]
	b	.L28
.L25:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-32]
.L24:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L29
.L28:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	cmp	r3, #4
	ble	.L30
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L31
.L32:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L37+4
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L31:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L32
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L37+8
	bl	printf
	sub	r3, fp, #36
	mov	r0, r3
	bl	clear_list
	mov	r3, #0
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	b	.L36
.L30:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L23:
	ldr	r3, [fp, #-28]
	mul	r2, r3, r3
	ldr	r3, [fp, #-28]
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	sub	r3, fp, #36
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	add_num
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-32]
	b	.L24
.L36:
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC3
	.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
