	.file	"718590.c"
	.intel_syntax noprefix
	.text
	.globl	Compare
	.type	Compare, @function
Compare:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, edx
	sub	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Compare, .-Compare
	.globl	frequencySort
	.type	frequencySort, @function
frequencySort:
.LFB1:
	.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, 1064
	.cfi_offset 3, -24
	mov	QWORD PTR -1064[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1048[rbp], 0
	lea	rax, -1040[rbp]
	mov	edx, 1008
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -1052[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -1052[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1064[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -1052[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	movzx	edx, BYTE PTR [rdx]
	cdqe
	mov	BYTE PTR -1040[rbp+rax*8], dl
	mov	eax, DWORD PTR -1052[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	movsx	rdx, eax
	mov	edx, DWORD PTR -1036[rbp+rdx*8]
	add	edx, 1
	cdqe
	mov	DWORD PTR -1036[rbp+rax*8], edx
	add	DWORD PTR -1052[rbp], 1
.L4:
	mov	eax, DWORD PTR -1052[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L5
	lea	rax, -1040[rbp]
	lea	rcx, Compare[rip]
	mov	edx, 8
	mov	esi, 126
	mov	rdi, rax
	mov	eax, 0
	call	qsort@PLT
	mov	DWORD PTR -1052[rbp], 0
	jmp	.L6
.L11:
	mov	eax, DWORD PTR -1052[rbp]
	cdqe
	mov	eax, DWORD PTR -1036[rbp+rax*8]
	test	eax, eax
	je	.L14
	mov	DWORD PTR -1044[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -1048[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1048[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -1064[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -1052[rbp]
	cdqe
	movzx	eax, BYTE PTR -1040[rbp+rax*8]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -1044[rbp], 1
.L9:
	mov	eax, DWORD PTR -1052[rbp]
	cdqe
	mov	eax, DWORD PTR -1036[rbp+rax*8]
	cmp	DWORD PTR -1044[rbp], eax
	jl	.L10
	jmp	.L8
.L14:
	nop
.L8:
	add	DWORD PTR -1052[rbp], 1
.L6:
	cmp	DWORD PTR -1052[rbp], 125
	jle	.L11
	mov	rax, QWORD PTR -1064[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	frequencySort, .-frequencySort
	.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	"718590.c"
	.text
	.align	2
	.global	Compare
	.syntax unified
	.arm
	.fpu softvfp
	.type	Compare, %function
Compare:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	Compare, .-Compare
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	frequencySort
	.syntax unified
	.arm
	.fpu softvfp
	.type	frequencySort, %function
frequencySort:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	sub	sp, sp, #8
	str	r0, [fp, #-1032]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1024]
	sub	r3, fp, #1016
	mov	r2, #1008
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1028]
	b	.L4
.L5:
	ldr	r3, [fp, #-1028]
	ldr	r2, [fp, #-1032]
	add	r3, r2, r3
	ldr	r2, [fp, #-1028]
	ldr	r1, [fp, #-1032]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	mov	r1, r2
	ldrb	r2, [r3]	@ zero_extendqisi2
	lsl	r3, r1, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-1012]
	ldr	r3, [fp, #-1028]
	ldr	r2, [fp, #-1032]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	lsl	r3, r2, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-1008]
	add	r1, r3, #1
	lsl	r3, r2, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-1008]
	ldr	r3, [fp, #-1028]
	add	r3, r3, #1
	str	r3, [fp, #-1028]
.L4:
	ldr	r0, [fp, #-1032]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-1028]
	cmp	r2, r3
	bhi	.L5
	sub	r0, fp, #1016
	ldr	r3, .L15+4
	mov	r2, #8
	mov	r1, #126
	bl	qsort
	mov	r3, #0
	str	r3, [fp, #-1028]
	b	.L6
.L11:
	ldr	r3, [fp, #-1028]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1008]
	cmp	r3, #0
	beq	.L14
	mov	r3, #0
	str	r3, [fp, #-1020]
	b	.L9
.L10:
	ldr	r3, [fp, #-1024]
	add	r2, r3, #1
	str	r2, [fp, #-1024]
	mov	r2, r3
	ldr	r3, [fp, #-1032]
	add	r2, r3, r2
	ldr	r3, [fp, #-1028]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	ldrb	r3, [r3, #-1012]	@ zero_extendqisi2
	strb	r3, [r2]
	ldr	r3, [fp, #-1020]
	add	r3, r3, #1
	str	r3, [fp, #-1020]
.L9:
	ldr	r3, [fp, #-1028]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1008]
	ldr	r2, [fp, #-1020]
	cmp	r2, r3
	blt	.L10
	b	.L8
.L14:
	nop
.L8:
	ldr	r3, [fp, #-1028]
	add	r3, r3, #1
	str	r3, [fp, #-1028]
.L6:
	ldr	r3, [fp, #-1028]
	cmp	r3, #125
	ble	.L11
	ldr	r3, [fp, #-1032]
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	Compare
	.size	frequencySort, .-frequencySort
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
