// File: /workspace/github_cpp_makefile_star2_O3/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 0x182ba(%rip), %rdx     # 0x1e035
leaq -0x68(%rbp), %rdi
movq %rdx, %rsi
callq 0x5cb8
movl 0x1c(%rbx), %eax
cmpl 0x20(%rbx), %eax
jne 0x5dfc
leaq 0x18653(%rip), %rsi     # 0x1e3e9
leaq -0x68(%rbp), %rdi
callq 0x43a0
movl 0x1c(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x5e69
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5e5d
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x5e67
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x5e69
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x5dbf
addl $-0x3, %eax
jmp 0x5e69
leaq 0x18604(%rip), %rsi     # 0x1e407
leaq -0x68(%rbp), %rdi
callq 0x43a0
movl 0x1c(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x5ea5
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5e62
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x5ea3
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x5ea5
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x5e2c
addl $-0x3, %eax
jmp 0x5ea5
addl $-0x2, %eax
jmp 0x5e69
addl $-0x2, %eax
jmp 0x5ea5
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 0x5c46
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x40a0
jmp 0x5f7c
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 0x5c46
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x40a0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x5ee8
callq 0x41e0
leaq 0x1d40b(%rip), %rsi     # 0x232fa
leaq -0x68(%rbp), %rdi
callq 0x43a0
movl 0x20(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x5f4c
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5f45
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x5f4a
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x5f4c
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x5f14
addl $-0x3, %eax
jmp 0x5f4c
addl $-0x2, %eax
jmp 0x5f4c
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 0x5c46
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x40a0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x5f8a
callq 0x41e0
leaq 0x180a1(%rip), %rsi     # 0x1e032
leaq -0x68(%rbp), %rdi
callq 0x43a0
movq 0x8(%rbx), %rsi
leaq -0x68(%rbp), %rdi
callq 0x43a0
leaq 0x18479(%rip), %rsi     # 0x1e427
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 0x601b
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x6012
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x6018
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x601b
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x5fdf
addl $-0x3, %r12d
jmp 0x601b
addl $-0x2, %r12d
jmp 0x601b
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 0x5c46
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x40a0
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x606a
callq 0x41e0
leaq 0x183c1(%rip), %rsi     # 0x1e432
leaq -0x68(%rbp), %rdi
callq 0x43a0
leaq 0x183c7(%rip), %rax     # 0x1e448
leaq 0x183c6(%rip), %rsi     # 0x1e44e
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %rsi
leaq -0x68(%rbp), %rdi
callq 0x43a0
leaq 0x183b5(%rip), %rsi     # 0x1e455
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 0x610c
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x6103
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x6109
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x610c
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x60d0
addl $-0x3, %r15d
jmp 0x610c
addl $-0x2, %r15d
jmp 0x610c
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 0x5c46
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x40a0
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x6155
callq 0x41e0
movq -0x68(%rbp), %rdi
callq 0x175e8
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x6173
callq 0x41e0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x618b
jmp 0x61bb
jmp 0x618b
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
jne 0x61ad
jmp 0x61be
jmp 0x61bb
jmp 0x61bb
jmp 0x61a1
jmp 0x61bb
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x61be
callq 0x41e0
jmp 0x61be
jmp 0x61bb
movq %rax, %rbx
jmp 0x61d0
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x61d0
callq 0x41e0
movq %rbx, %rdi
callq 0x4270