// File: /workspace/github_cpp_makefile_star2_O1/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 0x187be(%rip), %rdx     # 0x1e051
leaq -0x60(%rbp), %rdi
movq %rdx, %rsi
callq 0x5ce4
movl 0x24(%rbx), %eax
cmpl 0x28(%rbx), %eax
jne 0x5914
leaq 0x18985(%rip), %rsi     # 0x1e233
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x24(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x5981
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5975
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x597f
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x5981
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x58d7
addl $-0x3, %eax
jmp 0x5981
leaq 0x18931(%rip), %rsi     # 0x1e24c
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x24(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x59be
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x597a
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x59bc
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x59be
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x5944
addl $-0x3, %eax
jmp 0x59be
addl $-0x2, %eax
jmp 0x5981
addl $-0x2, %eax
jmp 0x59be
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 0x5c72
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x40a0
jmp 0x5a96
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 0x5c72
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x40a0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x5a02
callq 0x41e0
leaq 0x186df(%rip), %rsi     # 0x1e0e8
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x28(%rbx), %r14d
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x5a66
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r14d, %edx
cmpl $0x63, %edx
jbe 0x5a5f
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x5a64
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x5a66
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x5a2e
addl $-0x3, %eax
jmp 0x5a66
addl $-0x2, %eax
jmp 0x5a66
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 0x5c72
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x40a0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x5aa4
callq 0x41e0
leaq 0x1d4d1(%rip), %rsi     # 0x22f7c
leaq -0x60(%rbp), %rdi
callq 0x43a0
movq 0x10(%rbx), %rsi
leaq -0x60(%rbp), %rdi
callq 0x43a0
movq 0x18(%rbx), %rsi
testq %rsi, %rsi
je 0x5ad5
leaq -0x60(%rbp), %rdi
callq 0x43a0
jmp 0x5b2c
leaq 0x1878b(%rip), %rax     # 0x1e267
leaq 0x187a2(%rip), %rsi     # 0x1e285
cmpb $0x0, 0x20(%rbx)
cmovneq %rax, %rsi
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0x8(%rbx), %edi
callq 0x82a8
leaq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x43a0
leaq 0x18798(%rip), %rsi     # 0x1e2a7
leaq -0x60(%rbp), %rdi
callq 0x43a0
movl 0xc(%rbx), %edi
callq 0x82a8
leaq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x43a0
movq -0x60(%rbp), %rdi
callq 0x176b0
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x5b46
callq 0x41e0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5b5c
jmp 0x5b78
jmp 0x5b5c
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x5b7b
callq 0x41e0
jmp 0x5b7b
jmp 0x5b78
jmp 0x5b78
movq %rax, %rbx
jmp 0x5b89
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x5b89
callq 0x41e0
movq %rbx, %rdi
callq 0x4270
nop