	.file	"1567.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"["
.LC1:
	.string	" ["
.LC2:
	.string	"%d, "
.LC3:
	.string	"]"
	.text
	.globl	print_array
	.type	print_array, @function
print_array:
.LFB6:
	.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	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	ebx, DWORD PTR -40[rbp]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -24[rbp], rax
	movsx	rax, ebx
	mov	r8, rax
	mov	r9d, 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L2
.L5:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L3:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
	add	DWORD PTR -28[rbp], 1
.L2:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_array, .-print_array
	.globl	copy_vla
	.type	copy_vla, @function
copy_vla:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	QWORD PTR -56[rbp], rcx
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -16[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	mov	edx, DWORD PTR -40[rbp]
	movsx	rcx, edx
	sub	rcx, 1
	mov	QWORD PTR -8[rbp], rcx
	movsx	rcx, edx
	mov	r8, rcx
	mov	r9d, 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L8
.L11:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L9
.L10:
	mov	ecx, DWORD PTR -20[rbp]
	movsx	rsi, ecx
	movsx	rcx, eax
	imul	rcx, rsi
	lea	rsi, 0[0+rcx*4]
	mov	rcx, QWORD PTR -48[rbp]
	add	rsi, rcx
	mov	ecx, DWORD PTR -20[rbp]
	movsx	rdi, ecx
	movsx	rcx, edx
	imul	rcx, rdi
	lea	rdi, 0[0+rcx*4]
	mov	rcx, QWORD PTR -56[rbp]
	add	rdi, rcx
	mov	ecx, DWORD PTR -24[rbp]
	movsx	rcx, ecx
	mov	esi, DWORD PTR [rsi+rcx*4]
	mov	ecx, DWORD PTR -24[rbp]
	movsx	rcx, ecx
	mov	DWORD PTR [rdi+rcx*4], esi
	add	DWORD PTR -24[rbp], 1
.L9:
	mov	ecx, DWORD PTR -24[rbp]
	cmp	ecx, DWORD PTR -40[rbp]
	jl	.L10
	add	DWORD PTR -20[rbp], 1
.L8:
	mov	ecx, DWORD PTR -20[rbp]
	cmp	ecx, DWORD PTR -36[rbp]
	jl	.L11
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	copy_vla, .-copy_vla
	.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
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -152[rbp], 0
	jmp	.L14
.L17:
	mov	DWORD PTR -148[rbp], 0
	jmp	.L15
.L16:
	call	rand@PLT
	mov	ecx, eax
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	mov	eax, DWORD PTR -148[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -152[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rsi
	mov	DWORD PTR -144[rbp+rax*4], edx
	add	DWORD PTR -148[rbp], 1
.L15:
	cmp	DWORD PTR -148[rbp], 4
	jle	.L16
	add	DWORD PTR -152[rbp], 1
.L14:
	cmp	DWORD PTR -152[rbp], 2
	jle	.L17
	lea	rax, -144[rbp]
	mov	rdx, rax
	mov	esi, 5
	mov	edi, 3
	call	print_array
	lea	rdx, -80[rbp]
	lea	rax, -144[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 5
	mov	edi, 3
	call	copy_vla
	lea	rax, -80[rbp]
	mov	rdx, rax
	mov	esi, 5
	mov	edi, 3
	call	print_array
	mov	eax, 0
	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	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	"1567.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[\000"
	.align	2
.LC1:
	.ascii	" [\000"
	.align	2
.LC2:
	.ascii	"%d, \000"
	.align	2
.LC3:
	.ascii	"]\000"
	.text
	.align	2
	.global	print_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_array, %function
print_array:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r4, [fp, #-36]
	sub	r3, r4, #1
	str	r3, [fp, #-16]
	mov	r3, r4
	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
	ldr	r0, .L7
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L5:
	ldr	r0, .L7+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L3
.L4:
	mov	r2, r4
	ldr	r3, [fp, #-20]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+8
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L3:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L4
	ldr	r0, .L7+12
	bl	puts
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L5
	ldr	r0, .L7+12
	bl	puts
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	print_array, .-print_array
	.align	2
	.global	copy_vla
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_vla, %function
copy_vla:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	ip, [fp, #-28]
	sub	r3, ip, #1
	str	r3, [fp, #-12]
	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
	ldr	lr, [fp, #-28]
	sub	r3, lr, #1
	str	r3, [fp, #-8]
	mov	r3, lr
	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, #0
	str	r3, [fp, #-16]
	b	.L10
.L13:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L11
.L12:
	mov	r2, ip
	ldr	r3, [fp, #-16]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	mov	r1, lr
	ldr	r3, [fp, #-16]
	mul	r3, r1, r3
	lsl	r3, r3, #2
	ldr	r1, [fp, #-36]
	add	r3, r1, r3
	ldr	r1, [fp, #-20]
	ldr	r1, [r2, r1, lsl #2]
	ldr	r2, [fp, #-20]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L11:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L10:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L13
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	copy_vla, .-copy_vla
	.section	.rodata
	.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 = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L16
.L19:
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L17
.L18:
	bl	rand
	mov	r1, r0
	ldr	r3, .L22+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
	ldr	r1, [fp, #-136]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	ldr	r1, [fp, #-132]
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-124]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L17:
	ldr	r3, [fp, #-132]
	cmp	r3, #4
	ble	.L18
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
.L16:
	ldr	r3, [fp, #-136]
	cmp	r3, #2
	ble	.L19
	sub	r3, fp, #128
	mov	r2, r3
	mov	r1, #5
	mov	r0, #3
	bl	print_array
	sub	r3, fp, #68
	sub	r2, fp, #128
	mov	r1, #5
	mov	r0, #3
	bl	copy_vla
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #5
	mov	r0, #3
	bl	print_array
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC4
	.word	1717986919
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
