	.file	"597161.c"
	.intel_syntax noprefix
	.text
	.globl	countSort
	.type	countSort, @function
countSort:
.LFB0:
	.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, 1096
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -1128[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	rax, QWORD PTR -1128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -1104[rbp], rdx
	mov	r14, rax
	mov	r15d, 0
	mov	r12, rax
	mov	r13d, 0
	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
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -1096[rbp], rax
	lea	rax, -1088[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -1108[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -1108[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1128[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	movsx	rdx, eax
	mov	edx, DWORD PTR -1088[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -1088[rbp+rax*4], edx
	add	DWORD PTR -1108[rbp], 1
.L5:
	mov	eax, DWORD PTR -1108[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1128[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
	mov	DWORD PTR -1108[rbp], 1
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -1108[rbp]
	cdqe
	mov	edx, DWORD PTR -1088[rbp+rax*4]
	mov	eax, DWORD PTR -1108[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -1088[rbp+rax*4]
	add	edx, eax
	mov	eax, DWORD PTR -1108[rbp]
	cdqe
	mov	DWORD PTR -1088[rbp+rax*4], edx
	add	DWORD PTR -1108[rbp], 1
.L7:
	cmp	DWORD PTR -1108[rbp], 255
	jle	.L8
	mov	DWORD PTR -1108[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -1108[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1128[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -1108[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -1128[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cdqe
	mov	eax, DWORD PTR -1088[rbp+rax*4]
	sub	eax, 1
	movzx	ecx, BYTE PTR [rdx]
	mov	rdx, QWORD PTR -1096[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	mov	eax, DWORD PTR -1108[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1128[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	movsx	rdx, eax
	mov	edx, DWORD PTR -1088[rbp+rdx*4]
	sub	edx, 1
	cdqe
	mov	DWORD PTR -1088[rbp+rax*4], edx
	add	DWORD PTR -1108[rbp], 1
.L9:
	mov	eax, DWORD PTR -1108[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1128[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L10
	mov	DWORD PTR -1108[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -1108[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1128[rbp]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -1096[rbp]
	mov	eax, DWORD PTR -1108[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR [rcx], al
	add	DWORD PTR -1108[rbp], 1
.L11:
	mov	eax, DWORD PTR -1108[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1128[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L12
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	countSort, .-countSort
	.section	.rodata
.LC0:
	.string	"Sorted character array is %s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 8245922088647746919
	mov	QWORD PTR -22[rbp], rax
	mov	DWORD PTR -14[rbp], 1801807207
	mov	WORD PTR -10[rbp], 115
	lea	rax, -22[rbp]
	mov	rdi, rax
	call	countSort
	lea	rax, -22[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"597161.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	countSort
	.syntax unified
	.arm
	.fpu softvfp
	.type	countSort, %function
countSort:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1040
	sub	sp, sp, #12
	str	r0, [fp, #-1056]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r0, [fp, #-1056]
	bl	strlen
	mov	ip, r0
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-1048]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	add	r3, ip, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-1044]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1052]
	b	.L2
.L3:
	ldr	r3, [fp, #-1052]
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-1028]
	ldr	r3, [fp, #-1052]
	add	r3, r3, #1
	str	r3, [fp, #-1052]
.L2:
	ldr	r3, [fp, #-1052]
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
	mov	r3, #1
	str	r3, [fp, #-1052]
	b	.L4
.L5:
	ldr	r3, [fp, #-1052]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1052]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	add	r2, r2, r3
	ldr	r3, [fp, #-1052]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-1028]
	ldr	r3, [fp, #-1052]
	add	r3, r3, #1
	str	r3, [fp, #-1052]
.L4:
	ldr	r3, [fp, #-1052]
	cmp	r3, #255
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-1052]
	b	.L6
.L7:
	ldr	r3, [fp, #-1052]
	ldr	r2, [fp, #-1056]
	add	r2, r2, r3
	ldr	r3, [fp, #-1052]
	ldr	r1, [fp, #-1056]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	sub	r3, r3, #1
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, [fp, #-1044]
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-1052]
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	sub	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-1028]
	ldr	r3, [fp, #-1052]
	add	r3, r3, #1
	str	r3, [fp, #-1052]
.L6:
	ldr	r3, [fp, #-1052]
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	mov	r3, #0
	str	r3, [fp, #-1052]
	b	.L8
.L9:
	ldr	r3, [fp, #-1052]
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldr	r1, [fp, #-1044]
	ldr	r2, [fp, #-1052]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-1052]
	add	r3, r3, #1
	str	r3, [fp, #-1052]
.L8:
	ldr	r3, [fp, #-1052]
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
	mov	sp, r4
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	countSort, .-countSort
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Sorted character array is %s\000"
	.align	2
.LC1:
	.ascii	"geeksforgeeks\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 = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L16+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	sub	r3, fp, #24
	mov	r0, r3
	bl	countSort
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L16+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.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
