	.file	"105354.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	" item moved : %s\n"
	.align 8
.LC1:
	.string	" item inserted : %s, at position : %d\n"
.LC2:
	.string	"Iteration: %d\n"
	.text
	.globl	insertionsort
	.type	insertionsort, @function
insertionsort:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -16[rbp], 1
	jmp	.L2
.L8:
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	sub	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	cmp	DWORD PTR -20[rbp], 0
	jle	.L4
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jg	.L5
.L4:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	add	DWORD PTR -12[rbp], 1
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L7
	add	DWORD PTR -16[rbp], 1
.L2:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	insertionsort, .-insertionsort
	.section	.rodata
	.align 8
.LC3:
	.string	"Please use only 1 argument.\ni.e. ./pointersorter \"the*string*of*some*sort\"\nExiting..."
.LC5:
	.string	"Max Size of Array: %d\n"
.LC6:
	.string	"index %d : %c\n"
.LC7:
	.string	"wordStart: %d\n"
.LC8:
	.string	"Ending"
.LC9:
	.string	"Multiple no alphas\n"
.LC10:
	.string	"Substring Length: %d\n"
	.align 8
.LC11:
	.string	"Substring: %s\nSubstring length: %zd\n"
	.align 8
.LC12:
	.string	"inserting string: %s at index: %d\n"
.LC13:
	.string	"ending\n"
.LC14:
	.string	"\n\n\n\n\n"
.LC15:
	.string	"Index: %d\n"
.LC16:
	.string	"Length: %ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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, 216
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -164[rbp], 2
	je	.L10
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	test	rax, rax
	js	.L12
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L13
.L12:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L13:
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	call	ceil@PLT
	cvttsd2si	eax, xmm0
	add	eax, 1
	mov	DWORD PTR -136[rbp], eax
	mov	eax, DWORD PTR -136[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	DWORD PTR -140[rbp], 0
	mov	DWORD PTR -144[rbp], 0
	mov	DWORD PTR -148[rbp], 0
	jmp	.L14
.L33:
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	eax, DWORD PTR -148[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -148[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	jne	.L15
	mov	rax, rsp
	mov	r13, rax
	cmp	DWORD PTR -148[rbp], 0
	jne	.L16
	mov	DWORD PTR -144[rbp], 1
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L16:
	call	__ctype_b_loc@PLT
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rcx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR -148[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jne	.L18
	sub	DWORD PTR -140[rbp], 1
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L19
.L18:
	call	__ctype_b_loc@PLT
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rcx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR -148[rbp]
	add	eax, 1
	mov	DWORD PTR -144[rbp], eax
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -148[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jne	.L21
	mov	rax, rsp
	mov	r12, rax
	mov	eax, DWORD PTR -148[rbp]
	sub	eax, DWORD PTR -144[rbp]
	add	eax, 1
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ebx, DWORD PTR -124[rbp]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	movsx	rax, ebx
	mov	r14, rax
	mov	r15d, 0
	movsx	rax, ebx
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], 0
	movsx	rax, ebx
	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
.L22:
	cmp	rsp, rdx
	je	.L23
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L22
.L23:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L24
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L24:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	eax, DWORD PTR -144[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	movsx	rax, ebx
	mov	edx, DWORD PTR -140[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -112[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -140[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rsp, r12
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -148[rbp]
	sub	eax, DWORD PTR -144[rbp]
	add	eax, 1
	mov	DWORD PTR -128[rbp], eax
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ebx, DWORD PTR -128[rbp]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -88[rbp], rax
	movsx	rax, ebx
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], 0
	movsx	rax, ebx
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	movsx	rdx, ebx
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L25:
	cmp	rsp, rcx
	je	.L26
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L25
.L26:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L27
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L27:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -128[rbp]
	sub	eax, 1
	movsx	rsi, eax
	mov	eax, DWORD PTR -144[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	eax, DWORD PTR -128[rbp]
	sub	eax, 1
	mov	rdx, QWORD PTR -80[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	movsx	rcx, ebx
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	lea	rbx, [rdx+rax]
	mov	rdi, rcx
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -140[rbp]
	mov	edx, eax
	mov	rsi, rcx
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -140[rbp], 1
	mov	eax, DWORD PTR -148[rbp]
	add	eax, 1
	mov	DWORD PTR -144[rbp], eax
	nop
.L17:
	mov	rsp, r13
	jmp	.L28
.L19:
	mov	rsp, r13
	jmp	.L29
.L15:
	mov	eax, DWORD PTR -148[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jne	.L28
	mov	rax, rsp
	mov	r12, rax
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -148[rbp]
	sub	eax, DWORD PTR -144[rbp]
	add	eax, 2
	mov	DWORD PTR -132[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ebx, DWORD PTR -132[rbp]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -104[rbp], rax
	movsx	rax, ebx
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], 0
	movsx	rax, ebx
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	movsx	rax, ebx
	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
.L30:
	cmp	rsp, rdx
	je	.L31
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L30
.L31:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L32
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L32:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	eax, DWORD PTR -144[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, 1
	mov	rdx, QWORD PTR -96[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 0
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	movsx	rax, ebx
	mov	edx, DWORD PTR -140[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -112[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -140[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rsp, r12
	jmp	.L29
.L28:
	add	DWORD PTR -148[rbp], 1
.L14:
	mov	eax, DWORD PTR -148[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	cmp	rbx, rax
	jbe	.L33
.L29:
	mov	eax, DWORD PTR -140[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	insertionsort
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	DWORD PTR -152[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	add	DWORD PTR -152[rbp], 1
.L34:
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jle	.L35
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L11:
	mov	rsi, QWORD PTR -56[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	1073741824
	.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	"105354.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	" item moved : %s\012\000"
	.align	2
.LC1:
	.ascii	" item inserted : %s, at position : %d\012\000"
	.align	2
.LC2:
	.ascii	"Iteration: %d\012\000"
	.text
	.align	2
	.global	insertionsort
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertionsort, %function
insertionsort:
	@ 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]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L2
.L8:
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	strcpy
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	b	.L3
.L5:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	strcpy
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9
	bl	printf
.L3:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L4
	ldr	r3, [fp, #-20]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bgt	.L5
.L4:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-8]
	ldr	r0, .L9+4
	bl	printf
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	strcpy
	ldr	r1, [fp, #-16]
	ldr	r0, .L9+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L7:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L8
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	insertionsort, .-insertionsort
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Please use only 1 argument.\012i.e. ./pointersorter"
	.ascii	" \"the*string*of*some*sort\"\012Exiting...\000"
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.align	2
.LC4:
	.ascii	"Max Size of Array: %d\012\000"
	.align	2
.LC5:
	.ascii	"index %d : %c\012\000"
	.align	2
.LC6:
	.ascii	"wordStart: %d\012\000"
	.align	2
.LC7:
	.ascii	"Ending\000"
	.align	2
.LC8:
	.ascii	"Multiple no alphas\012\000"
	.align	2
.LC9:
	.ascii	"Substring Length: %d\012\000"
	.align	2
.LC10:
	.ascii	"Substring: %s\012Substring length: %zd\012\000"
	.align	2
.LC11:
	.ascii	"inserting string: %s at index: %d\012\000"
	.align	2
.LC12:
	.ascii	"ending\012\000"
	.align	2
.LC13:
	.ascii	"\012\012\012\012\012\000"
	.align	2
.LC14:
	.ascii	"Index: %d\012\000"
	.align	2
.LC15:
	.ascii	"Length: %ld\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #84
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, [fp, #-96]
	cmp	r3, #2
	beq	.L12
	ldr	r0, .L28+4
	bl	puts
	mov	r3, #1
	b	.L13
.L12:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-72]
	ldr	r0, [fp, #-72]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	ceil
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r1, [fp, #-68]
	ldr	r0, .L28+8
	bl	printf
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L14
.L24:
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, [fp, #-84]
	ldr	r0, .L28+12
	bl	printf
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-84]
	ldr	r1, [fp, #-72]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	bne	.L15
	mov	r3, sp
	mov	r5, r3
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L16
	mov	r3, #1
	str	r3, [fp, #-80]
	ldr	r1, [fp, #-80]
	ldr	r0, .L28+16
	bl	printf
	b	.L17
.L16:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-84]
	sub	r3, r3, #1
	ldr	r1, [fp, #-72]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	bne	.L18
	ldr	r0, [fp, #-72]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	bne	.L18
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r0, .L28+20
	bl	puts
	b	.L19
.L18:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-84]
	sub	r3, r3, #1
	ldr	r1, [fp, #-72]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	ldr	r0, .L28+24
	bl	puts
	b	.L17
.L20:
	ldr	r0, [fp, #-72]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	bne	.L21
	mov	r3, sp
	mov	r6, r3
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-80]
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-36]
	ldr	r0, .L28+28
	bl	printf
	ldr	r4, [fp, #-36]
	sub	r3, r4, #1
	str	r3, [fp, #-32]
	mov	r3, r4
	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, r4
	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, r4
	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	r3, [fp, #-80]
	ldr	r2, [fp, #-72]
	add	r1, r2, r3
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-28]
	bl	strncpy
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, .L28+32
	bl	printf
	mov	r1, r4
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	mov	r1, r3
	ldr	r0, .L28+36
	bl	printf
	nop
	mov	sp, r6
	b	.L19
.L21:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-80]
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r1, [fp, #-48]
	ldr	r0, .L28+28
	bl	printf
	ldr	r4, [fp, #-48]
	sub	r3, r4, #1
	str	r3, [fp, #-44]
	mov	r3, r4
	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, r4
	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, r4
	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, #-40]
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-72]
	add	r1, r2, r3
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-40]
	bl	strncpy
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	ldr	r2, [fp, #-40]
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-40]
	ldr	r0, .L28+32
	bl	printf
	mov	r1, r4
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	mov	r1, r3
	ldr	r0, .L28+36
	bl	printf
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	nop
.L17:
	mov	sp, r5
	b	.L22
.L19:
	mov	sp, r5
	b	.L23
.L15:
	ldr	r0, [fp, #-72]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	bne	.L22
	mov	r3, sp
	mov	r5, r3
	ldr	r0, .L28+40
	bl	puts
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-80]
	sub	r3, r2, r3
	add	r3, r3, #2
	str	r3, [fp, #-60]
	ldr	r1, [fp, #-60]
	ldr	r0, .L28+28
	bl	printf
	ldr	r4, [fp, #-60]
	sub	r3, r4, #1
	str	r3, [fp, #-56]
	mov	r3, r4
	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, r4
	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, r4
	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, #-52]
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-72]
	add	r1, r2, r3
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-52]
	bl	strncpy
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	ldr	r2, [fp, #-52]
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r0, [fp, #-52]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-52]
	ldr	r0, .L28+32
	bl	printf
	mov	r1, r4
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-52]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	mov	r1, r3
	ldr	r0, .L28+36
	bl	printf
	nop
	mov	sp, r5
	b	.L23
.L22:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L14:
	ldr	r0, [fp, #-72]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	bcs	.L24
.L23:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	insertionsort
	ldr	r0, .L28+44
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L25
.L26:
	ldr	r1, [fp, #-88]
	ldr	r0, .L28+48
	bl	printf
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L25:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	ble	.L26
	ldr	r0, [fp, #-72]
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L28+52
	bl	printf
	mov	r3, #0
.L13:
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC16
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
