// File: /workspace/github_cpp_makefile_star2_O1/AshOlogn[P]ash-language-interpreter/src/exceptions.cpp
// Function: OutOfBoundsException::what() const
const char* OutOfBoundsException::what() const throw() {

	std::string str = "";

	if(startLine == endLine) {
		str.append("OutOfBoundsException on line ");
		str.append(std::to_string(startLine));
	} else {
		str.append("OutOfBoundsException from line ");
		str.append(std::to_string(startLine));
		str.append(" to ");
		str.append(std::to_string(endLine));
	}

	str.append(":\n\t");
	str.append(context);

	//error message
	str.append("The index ");
	str.append(std::to_string(index));
	str.append(" is out of bounds in ");
	str.append((isArray) ? "array" : "string");
	str.append(" of length ");
	str.append(std::to_string(length));

	return copyString(str.c_str());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x182ae(%rip), %rdx     # 0x1e051
leaq -0x68(%rbp), %rdi
movq %rdx, %rsi
callq 0x5ce4
movl 0x1c(%rbx), %eax
cmpl 0x20(%rbx), %eax
jne 0x5e24
leaq 0x1864b(%rip), %rsi     # 0x1e409
leaq -0x68(%rbp), %rdi
callq 0x43a0
movl 0x1c(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x5e91
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5e85
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x5e8f
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x5e91
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x5de7
addl $-0x3, %eax
jmp 0x5e91
leaq 0x185fc(%rip), %rsi     # 0x1e427
leaq -0x68(%rbp), %rdi
callq 0x43a0
movl 0x1c(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x5ecd
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5e8a
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x5ecb
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x5ecd
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x5e54
addl $-0x3, %eax
jmp 0x5ecd
addl $-0x2, %eax
jmp 0x5e91
addl $-0x2, %eax
jmp 0x5ecd
decl %eax
movl %eax, %esi
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
leaq -0x48(%rbp), %rdi
xorl %edx, %edx
callq 0x4250
movq -0x48(%rbp), %rdi
movl -0x40(%rbp), %esi
movl %r14d, %edx
callq 0x5c72
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x40a0
jmp 0x5fa4
decl %eax
movl %eax, %esi
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
leaq -0x48(%rbp), %rdi
xorl %edx, %edx
callq 0x4250
movq -0x48(%rbp), %rdi
movl -0x40(%rbp), %esi
movl %r14d, %edx
callq 0x5c72
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x40a0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x5f10
callq 0x41e0
leaq 0x1d3ef(%rip), %rsi     # 0x23306
leaq -0x68(%rbp), %rdi
callq 0x43a0
movl 0x20(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x5f74
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5f6d
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x5f72
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x5f74
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x5f3c
addl $-0x3, %eax
jmp 0x5f74
addl $-0x2, %eax
jmp 0x5f74
decl %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
movq %r15, (%rdi)
xorl %edx, %edx
callq 0x4250
movq -0x48(%rbp), %rdi
movl -0x40(%rbp), %esi
movl %r14d, %edx
callq 0x5c72
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x40a0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x5fb2
callq 0x41e0
leaq 0x18095(%rip), %rsi     # 0x1e04e
leaq -0x68(%rbp), %rdi
callq 0x43a0
movq 0x8(%rbx), %rsi
leaq -0x68(%rbp), %rdi
callq 0x43a0
leaq 0x18471(%rip), %rsi     # 0x1e447
leaq -0x68(%rbp), %rdi
callq 0x43a0
movl 0x18(%rbx), %r14d
movl %r14d, %r15d
negl %r15d
cmovsl %r14d, %r15d
movl $0x1, %r12d
cmpl $0xa, %r15d
jb 0x6043
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x603a
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x6040
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x6043
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x6007
addl $-0x3, %r12d
jmp 0x6043
addl $-0x2, %r12d
jmp 0x6043
decl %r12d
shrl $0x1f, %r14d
leal (%r12,%r14), %esi
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
leaq -0x48(%rbp), %rdi
movl $0x2d, %edx
callq 0x4250
addq -0x48(%rbp), %r14
movq %r14, %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x5c72
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x40a0
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x6092
callq 0x41e0
leaq 0x183b9(%rip), %rsi     # 0x1e452
leaq -0x68(%rbp), %rdi
callq 0x43a0
leaq 0x183bf(%rip), %rax     # 0x1e468
leaq 0x183be(%rip), %rsi     # 0x1e46e
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %rsi
leaq -0x68(%rbp), %rdi
callq 0x43a0
leaq 0x183ad(%rip), %rsi     # 0x1e475
leaq -0x68(%rbp), %rdi
callq 0x43a0
movl 0x14(%rbx), %ebx
movl %ebx, %r14d
negl %r14d
cmovsl %ebx, %r14d
movl $0x1, %r15d
cmpl $0xa, %r14d
jb 0x6134
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x612b
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x6131
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x6134
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x60f8
addl $-0x3, %r15d
jmp 0x6134
addl $-0x2, %r15d
jmp 0x6134
decl %r15d
shrl $0x1f, %ebx
leal (%r15,%rbx), %esi
leaq -0x48(%rbp), %rdi
movq %r13, (%rdi)
movl $0x2d, %edx
callq 0x4250
addq -0x48(%rbp), %rbx
movq %rbx, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x5c72
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x40a0
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x617d
callq 0x41e0
movq -0x68(%rbp), %rdi
callq 0x176b0
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x619b
callq 0x41e0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x61b3
jmp 0x61e3
jmp 0x61b3
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
jne 0x61d5
jmp 0x61e6
jmp 0x61e3
jmp 0x61e3
jmp 0x61c9
jmp 0x61e3
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x61e6
callq 0x41e0
jmp 0x61e6
jmp 0x61e3
movq %rax, %rbx
jmp 0x61f8
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x61f8
callq 0x41e0
movq %rbx, %rdi
callq 0x4270