// File: /workspace/github_cpp_makefile_star2_O3/AshOlogn[P]ash-language-interpreter/src/errors.cpp
// Function: StaticCastError::what() const
const char* StaticCastError::what() const throw() {

  std::string str = "";

  if(startLineNumber == endLineNumber) {
    str.append("StaticCastError on line ");
    str.append(std::to_string(startLineNumber));
  } else {
    str.append("StaticCastError from line ");
    str.append(std::to_string(startLineNumber));
    str.append(" to line ");
    str.append(std::to_string(endLineNumber));
  }

  str.append("\n");
  str.append(context);

	if(message != NULL) {
		str.append(message);
		return copyString(str.c_str());
	}

  if(isExplicit) {
    str.append("Cannot cast at all from type ");
  } else {
    str.append("Cannot implicitly cast from type ");
  }
  
  str.append(toStringParseDataType(originalType));
  str.append(" to type ");
  str.append(toStringParseDataType(finalType));

  return copyString(str.c_str());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
leaq -0x50(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x187ce(%rip), %rdx     # 0x1e035
leaq -0x60(%rbp), %rdi
movq %rdx, %rsi
callq 0x5cb8
movl 0x24(%rbx), %eax
cmpl 0x28(%rbx), %eax
jne 0x58e8
leaq 0x18995(%rip), %rsi     # 0x1e217
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x24(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x5955
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5949
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x5953
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x5955
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x58ab
addl $-0x3, %eax
jmp 0x5955
leaq 0x18941(%rip), %rsi     # 0x1e230
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x24(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x5992
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x594e
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x5990
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x5992
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x5918
addl $-0x3, %eax
jmp 0x5992
addl $-0x2, %eax
jmp 0x5955
addl $-0x2, %eax
jmp 0x5992
decl %eax
movl %eax, %esi
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq -0x40(%rbp), %rdi
xorl %edx, %edx
callq 0x4250
movq -0x40(%rbp), %rdi
movl -0x38(%rbp), %esi
movl %r14d, %edx
callq 0x5c46
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x40a0
jmp 0x5a6a
decl %eax
movl %eax, %esi
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq -0x40(%rbp), %rdi
xorl %edx, %edx
callq 0x4250
movq -0x40(%rbp), %rdi
movl -0x38(%rbp), %esi
movl %r14d, %edx
callq 0x5c46
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x40a0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x59d6
callq 0x41e0
leaq 0x186ef(%rip), %rsi     # 0x1e0cc
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x28(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x5a3a
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5a33
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x5a38
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x5a3a
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x5a02
addl $-0x3, %eax
jmp 0x5a3a
addl $-0x2, %eax
jmp 0x5a3a
decl %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
movq %r12, (%rdi)
xorl %edx, %edx
callq 0x4250
movq -0x40(%rbp), %rdi
movl -0x38(%rbp), %esi
movl %r14d, %edx
callq 0x5c46
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x40a0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x5a78
callq 0x41e0
leaq 0x1d4dd(%rip), %rsi     # 0x22f5c
leaq -0x60(%rbp), %rdi
callq 0x43a0
movq 0x10(%rbx), %rsi
leaq -0x60(%rbp), %rdi
callq 0x43a0
movq 0x18(%rbx), %rsi
testq %rsi, %rsi
je 0x5aa9
leaq -0x60(%rbp), %rdi
callq 0x43a0
jmp 0x5b00
leaq 0x1879b(%rip), %rax     # 0x1e24b
leaq 0x187b2(%rip), %rsi     # 0x1e269
cmpb $0x0, 0x20(%rbx)
cmovneq %rax, %rsi
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x8(%rbx), %edi
callq 0x817c
leaq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x43a0
leaq 0x187a8(%rip), %rsi     # 0x1e28b
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0xc(%rbx), %edi
callq 0x817c
leaq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x43a0
movq -0x60(%rbp), %rdi
callq 0x175e8
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x5b1a
callq 0x41e0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5b30
jmp 0x5b4c
jmp 0x5b30
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x5b4f
callq 0x41e0
jmp 0x5b4f
jmp 0x5b4c
jmp 0x5b4c
movq %rax, %rbx
jmp 0x5b5d
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x5b5d
callq 0x41e0
movq %rbx, %rdi
callq 0x4270
nop