	.file	"57950018.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%c "
.LC1:
	.string	"%c\n"
	.text
	.globl	print_array
	.type	print_array, @function
print_array:
.LFB0:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	QWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	jb	.L3
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	print_array, .-print_array
	.section	.rodata
.LC2:
	.string	"Merge function"
.LC3:
	.string	"Array"
.LC4:
	.string	"l = %d, m = %d, r = %d\n"
.LC5:
	.string	"size_l = %d\n"
.LC6:
	.string	"size_r = %d\n"
.LC7:
	.string	"Array L"
.LC8:
	.string	"Array R"
	.align 8
.LC9:
	.string	"Full array after merge function"
	.text
	.globl	merge
	.type	merge, @function
merge:
.LFB1:
	.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, 136
	.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	DWORD PTR -124[rbp], esi
	mov	DWORD PTR -128[rbp], edx
	mov	DWORD PTR -132[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -104[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	mov	eax, DWORD PTR -128[rbp]
	sub	eax, DWORD PTR -124[rbp]
	add	eax, 1
	mov	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -92[rbp], eax
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -132[rbp]
	mov	ecx, DWORD PTR -124[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	print_array
	mov	ecx, DWORD PTR -132[rbp]
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -176[rbp], rdx
	mov	QWORD PTR -168[rbp], 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
.L5:
	cmp	rsp, rdx
	je	.L6
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L5
.L6:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L7
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L7:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -92[rbp]
	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
.L8:
	cmp	rsp, rdx
	je	.L9
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L8
.L9:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L10
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L10:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -100[rbp], 0
	jmp	.L11
.L12:
	mov	edx, DWORD PTR -124[rbp]
	mov	eax, DWORD PTR -100[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	rdx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -100[rbp], 1
.L11:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jl	.L12
	mov	DWORD PTR -104[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -128[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -104[rbp]
	add	eax, edx
	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 -104[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -104[rbp], 1
.L13:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L14
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -96[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	print_array
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -92[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	print_array
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -104[rbp], 0
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -108[rbp], eax
	jmp	.L15
.L18:
	mov	rdx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	cl, al
	jg	.L16
	mov	eax, DWORD PTR -100[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -100[rbp], edx
	mov	edx, DWORD PTR -108[rbp]
	lea	ecx, 1[rdx]
	mov	DWORD PTR -108[rbp], ecx
	movsx	rcx, edx
	mov	rdx, QWORD PTR -120[rbp]
	add	rcx, rdx
	mov	rdx, QWORD PTR -80[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR [rcx], al
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -104[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -104[rbp], edx
	mov	edx, DWORD PTR -108[rbp]
	lea	ecx, 1[rdx]
	mov	DWORD PTR -108[rbp], ecx
	movsx	rcx, edx
	mov	rdx, QWORD PTR -120[rbp]
	add	rcx, rdx
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR [rcx], al
.L15:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jge	.L19
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L18
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -100[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -100[rbp], edx
	mov	edx, DWORD PTR -108[rbp]
	lea	ecx, 1[rdx]
	mov	DWORD PTR -108[rbp], ecx
	movsx	rcx, edx
	mov	rdx, QWORD PTR -120[rbp]
	add	rcx, rdx
	mov	rdx, QWORD PTR -80[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR [rcx], al
.L19:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jl	.L20
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -104[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -104[rbp], edx
	mov	edx, DWORD PTR -108[rbp]
	lea	ecx, 1[rdx]
	mov	DWORD PTR -108[rbp], ecx
	movsx	rcx, edx
	mov	rdx, QWORD PTR -120[rbp]
	add	rcx, rdx
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR [rcx], al
.L21:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L22
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	merge, .-merge
	.section	.rodata
.LC10:
	.string	"Merge sort"
.LC11:
	.string	"l = %d, r = %d\n"
.LC12:
	.string	"m = %d\n"
	.text
	.globl	merge_sort
	.type	merge_sort, @function
merge_sort:
.LFB2:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jge	.L26
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	print_array
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	merge_sort
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 1[rax]
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	merge_sort
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	merge
.L26:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	merge_sort, .-merge_sort
	.section	.rodata
.LC13:
	.string	"Before merge sort"
.LC14:
	.string	"array1 = %s\n"
.LC15:
	.string	"array2 = %s\n"
.LC16:
	.string	"After merge sort"
	.text
	.globl	is_permutation
	.type	is_permutation, @function
is_permutation:
.LFB3:
	.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	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	je	.L28
	mov	eax, 0
	jmp	.L29
.L28:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	sub	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	merge_sort
	mov	rax, QWORD PTR -8[rbp]
	sub	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	merge_sort
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	sete	al
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	is_permutation, .-is_permutation
	.section	.rodata
.LC17:
	.string	"true"
.LC18:
	.string	"false"
.LC19:
	.string	"is permutation = %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 6579042
	mov	DWORD PTR -12[rbp], 6382436
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -12[rbp]
	lea	rax, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	is_permutation
	test	al, al
	je	.L31
	lea	rax, .LC17[rip]
	jmp	.L32
.L31:
	lea	rax, .LC18[rip]
.L32:
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"57950018.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c \000"
	.align	2
.LC1:
	.ascii	"%c\012\000"
	.text
	.align	2
	.global	print_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_array, %function
print_array:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L3
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L4+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.size	print_array, .-print_array
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Merge function\000"
	.align	2
.LC3:
	.ascii	"Array\000"
	.align	2
.LC4:
	.ascii	"l = %d, m = %d, r = %d\012\000"
	.align	2
.LC5:
	.ascii	"size_l = %d\012\000"
	.align	2
.LC6:
	.ascii	"size_r = %d\012\000"
	.align	2
.LC7:
	.ascii	"Array L\000"
	.align	2
.LC8:
	.ascii	"Array R\000"
	.align	2
.LC9:
	.ascii	"Full array after merge function\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	merge
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge, %function
merge:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-60]
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-64]
	sub	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r0, .L20+4
	bl	puts
	ldr	r0, .L20+8
	bl	puts
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	print_array
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-60]
	ldr	r0, .L20+12
	bl	printf
	ldr	r1, [fp, #-40]
	ldr	r0, .L20+16
	bl	printf
	ldr	r1, [fp, #-36]
	ldr	r0, .L20+20
	bl	printf
	ldr	ip, [fp, #-40]
	sub	r3, ip, #1
	str	r3, [fp, #-32]
	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, #-28]
	ldr	ip, [fp, #-36]
	sub	r3, ip, #1
	str	r3, [fp, #-24]
	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, #-20]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L7
.L8:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L7:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L9
.L10:
	ldr	r3, [fp, #-64]
	add	r2, r3, #1
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L9:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L10
	ldr	r0, .L20+24
	bl	puts
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	print_array
	ldr	r0, .L20+28
	bl	puts
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	print_array
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-52]
	b	.L11
.L14:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-48]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bhi	.L12
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	str	r2, [fp, #-44]
	ldr	r2, [fp, #-52]
	add	r1, r2, #1
	str	r1, [fp, #-52]
	mov	r1, r2
	ldr	r2, [fp, #-56]
	add	r2, r2, r1
	ldr	r1, [fp, #-28]
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	strb	r3, [r2]
	b	.L11
.L12:
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	str	r2, [fp, #-48]
	ldr	r2, [fp, #-52]
	add	r1, r2, #1
	str	r1, [fp, #-52]
	mov	r1, r2
	ldr	r2, [fp, #-56]
	add	r2, r2, r1
	ldr	r1, [fp, #-20]
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	strb	r3, [r2]
.L11:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bge	.L15
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L14
	b	.L15
.L16:
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	str	r2, [fp, #-44]
	ldr	r2, [fp, #-52]
	add	r1, r2, #1
	str	r1, [fp, #-52]
	mov	r1, r2
	ldr	r2, [fp, #-56]
	add	r2, r2, r1
	ldr	r1, [fp, #-28]
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	strb	r3, [r2]
.L15:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L16
	b	.L17
.L18:
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	str	r2, [fp, #-48]
	ldr	r2, [fp, #-52]
	add	r1, r2, #1
	str	r1, [fp, #-52]
	mov	r1, r2
	ldr	r2, [fp, #-56]
	add	r2, r2, r1
	ldr	r1, [fp, #-20]
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	strb	r3, [r2]
.L17:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L18
	ldr	r0, .L20+32
	bl	puts
	ldr	r0, [fp, #-56]
	bl	puts
	mov	sp, r4
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC10
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	merge, .-merge
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Merge sort\000"
	.align	2
.LC12:
	.ascii	"l = %d, r = %d\012\000"
	.align	2
.LC13:
	.ascii	"m = %d\012\000"
	.text
	.align	2
	.global	merge_sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_sort, %function
merge_sort:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L24
	ldr	r0, .L25
	bl	puts
	ldr	r0, .L25+4
	bl	puts
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	print_array
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, .L25+8
	bl	printf
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L25+12
	bl	printf
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	merge_sort
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	merge_sort
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	merge
.L24:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC11
	.word	.LC3
	.word	.LC12
	.word	.LC13
	.size	merge_sort, .-merge_sort
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Before merge sort\000"
	.align	2
.LC15:
	.ascii	"array1 = %s\012\000"
	.align	2
.LC16:
	.ascii	"array2 = %s\012\000"
	.align	2
.LC17:
	.ascii	"After merge sort\000"
	.text
	.align	2
	.global	is_permutation
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_permutation, %function
is_permutation:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	strlen
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-20]
	bl	strlen
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L28
	mov	r3, #0
	b	.L29
.L28:
	ldr	r0, .L30
	bl	puts
	ldr	r1, [fp, #-16]
	ldr	r0, .L30+4
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, .L30+8
	bl	printf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	merge_sort
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	merge_sort
	ldr	r0, .L30+12
	bl	puts
	ldr	r1, [fp, #-16]
	ldr	r0, .L30+4
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, .L30+8
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	is_permutation, .-is_permutation
	.section	.rodata
	.align	2
.LC18:
	.ascii	"true\000"
	.align	2
.LC19:
	.ascii	"false\000"
	.align	2
.LC20:
	.ascii	"is permutation = %s\012\000"
	.align	2
.LC21:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L37+4
	str	r3, [fp, #-16]
	ldr	r3, .L37+8
	str	r3, [fp, #-12]
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L37+12
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L37+16
	bl	printf
	sub	r2, fp, #12
	sub	r3, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	is_permutation
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	ldr	r3, .L37+20
	b	.L34
.L33:
	ldr	r3, .L37+24
.L34:
	mov	r1, r3
	ldr	r0, .L37+28
	bl	printf
	mov	r3, #0
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC21
	.word	6579042
	.word	6382436
	.word	.LC15
	.word	.LC16
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
