// File: ajuc[P]c--_lisp_sexp_parser/lispparser.cpp
// Function: AjucLispParser::parse(std::istream&, int&, bool)
std::shared_ptr< Expression> parse(std::istream& input, int& line_no, bool topLevel) {
	std::string buffer("");
	char c;
	
	while (input.good()) {
		input.get(c);
		if (whitespace(c)) {
			if (c == '\n') {
				line_no++;
			}
			if (buffer.empty()) {
				;//nothing to do
			} else {
				if (digit(buffer[0])) {
					return std::make_shared<Float>(buffer);
				} else if (doubleQuote(buffer[0])) {
					buffer += c;
				} else if (colon(buffer[0])) {
					return std::make_shared<Atom>(buffer.substr(1));
				} else if (alphanumeric(buffer[0])) {
					return std::make_shared<Identifier>(buffer);
				//} else {
				//	return new Identifier(buffer);
				}
			}
		} else if (digit(c)) {
			buffer += c;
		} else if (dot(c)) {
			if (buffer.empty()) {
				buffer += c;
			} else {
				if (digit(buffer[0])) {
					if (!dotIn(buffer)) {
						buffer += c;
					} else {
						SYNTAX_ERROR(line_no, "Second dot found in Float literal " << buffer + c );
					}
				} else {
					buffer += c;
				}
			}
		} else if (colon(c)) {
			if (buffer.empty()) {
				buffer += c;
			} else {
				SYNTAX_ERROR(line_no, "Colon found in the middle of token " << buffer + c );
			}
		} else if (doubleQuote(c)) {
			if (buffer.empty()) {
				buffer += c;
			} else {
				if (doubleQuote(buffer[0])) {
					buffer += c;
					return std::make_shared<String>(buffer);
				} else {
					SYNTAX_ERROR(line_no, "Double-quote found in the middle of token " << buffer + c );
				}
			}
		} else if (parenthenesis(c)) { //BEWARE - THE TRICKY PART //TODO refactor to smaller functions
			if (buffer.empty()) {
				if (openParenthenesis(c)) {
					std::vector< std::shared_ptr<Expression>> list;
					char c2;
					input.get(c2);
					while (!closeParenthenesis(c2)) {
						input.unget();
						std::shared_ptr<Expression> tmpExp = parse(input, line_no, false);
						if (tmpExp) {
						    list.push_back(tmpExp);
						} else {
						    input.unget();
						}
						input.get(c2);
					}
					if (!parenMatches(c, c2)) {
						SYNTAX_ERROR(line_no, "Parenthenesis " << c << " is closed by not matching paren : " << c2);
					}
					return std::make_shared<List>(list);
				} else {//closeParenthenesis(c)
					if (topLevel) {
					    SYNTAX_ERROR(line_no, "Found unmatched close parenthenesis " << c);
					} else {
					    return NULL;//oznacza, ze trzeba wyjsc
					}
				}
			} else {
				//end of some token
				//return c back to the ctream and return expression as a result
				//or possibly it was ending paren inside a string and we add it simply
                          
				if (digit(buffer[0])) {
					input.unget();
					return std::make_shared<Float>(buffer);
				} else if (doubleQuote(buffer[0])) {
					buffer += c; //no unget, cause it's inside a string literal
                                } else if (colon(buffer[0])) {
					input.unget();
					return std::make_shared<Atom>(buffer);
				} else if (alphanumeric(buffer[0])) {
					input.unget();
					return std::make_shared<Identifier>(buffer);
				}  else {
					SYNTAX_ERROR(line_no, "Situation impossible : buffer == " << buffer);
				}
			}
		} else if (alphanumeric(c)) {
			if (buffer.empty()) {
				buffer += c;
			} else {
				if (!digit(buffer[0])) {
					buffer += c;
				} else {
					SYNTAX_ERROR(line_no, "Non-digit found in the middle of Float literal " << buffer + c );
				}
			}
		} else {
			SYNTAX_ERROR(line_no, "Unrecognised char " << c);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x340, %rsp            # imm = 0x340
movq %rdi, -0x1c8(%rbp)
movb %cl, %al
movq %rdi, %rcx
movq %rcx, -0x1c0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
leaq -0x41(%rbp), %rdi
movq %rdi, -0x1b8(%rbp)
callq 0x3330
movq -0x1b8(%rbp), %rdx
leaq 0x78db(%rip), %rsi      # 0xc008
leaq -0x40(%rbp), %rdi
callq 0x3250
jmp 0x4738
leaq -0x41(%rbp), %rdi
callq 0x3200
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x32f0
movb %al, -0x1c9(%rbp)
jmp 0x475c
movb -0x1c9(%rbp), %al
testb $0x1, %al
jne 0x476b
jmp 0x54c0
movq -0x10(%rbp), %rdi
leaq -0x55(%rbp), %rsi
callq 0x3260
jmp 0x477a
movsbl -0x55(%rbp), %edi
callq 0x4420
testb $0x1, %al
jne 0x478c
jmp 0x499d
movsbl -0x55(%rbp), %eax
cmpl $0xa, %eax
jne 0x47cd
movq -0x18(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x47cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x41(%rbp), %rdi
callq 0x3200
jmp 0x54e4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x54db
leaq -0x40(%rbp), %rdi
callq 0x32d0
testb $0x1, %al
jne 0x47dc
jmp 0x47e1
jmp 0x4998
xorl %eax, %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
callq 0x3360
movq %rax, -0x1d8(%rbp)
jmp 0x47f7
movq -0x1d8(%rbp), %rax
movsbl (%rax), %edi
callq 0x4470
testb $0x1, %al
jne 0x480c
jmp 0x4840
leaq -0x68(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x59e0
jmp 0x481b
movq -0x1c8(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x5a50
leaq -0x68(%rbp), %rdi
callq 0x5a80
movl $0x1, -0x6c(%rbp)
jmp 0x54c2
xorl %eax, %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
callq 0x3360
movq %rax, -0x1e0(%rbp)
jmp 0x4856
movq -0x1e0(%rbp), %rax
movsbl (%rax), %edi
callq 0x4610
testb $0x1, %al
jne 0x486b
jmp 0x487f
movsbl -0x55(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0x3120
jmp 0x487a
jmp 0x4994
xorl %eax, %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
callq 0x3360
movq %rax, -0x1e8(%rbp)
jmp 0x4895
movq -0x1e8(%rbp), %rax
movsbl (%rax), %edi
callq 0x4630
testb $0x1, %al
jne 0x48aa
jmp 0x4928
leaq -0xa0(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movl $0x1, %edx
movq $-0x1, %rcx
callq 0x31d0
jmp 0x48c8
leaq -0x80(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x5aa0
jmp 0x48da
movq -0x1c8(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x5b10
leaq -0x80(%rbp), %rdi
callq 0x5b40
leaq -0xa0(%rbp), %rdi
callq 0x3110
movl $0x1, -0x6c(%rbp)
jmp 0x54c2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x3110
jmp 0x54db
xorl %eax, %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
callq 0x3360
movq %rax, -0x1f0(%rbp)
jmp 0x493e
movq -0x1f0(%rbp), %rax
movsbl (%rax), %edi
callq 0x45d0
testb $0x1, %al
jne 0x4953
jmp 0x4990
leaq -0xb0(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x5b60
jmp 0x4965
movq -0x1c8(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x5bd0
leaq -0xb0(%rbp), %rdi
callq 0x5c00
movl $0x1, -0x6c(%rbp)
jmp 0x54c2
jmp 0x4992
jmp 0x4994
jmp 0x4996
jmp 0x4998
jmp 0x54bb
movsbl -0x55(%rbp), %edi
callq 0x4470
testb $0x1, %al
jne 0x49ac
jmp 0x49c0
movsbl -0x55(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0x3120
jmp 0x49bb
jmp 0x54b9
movsbl -0x55(%rbp), %edi
callq 0x4680
testb $0x1, %al
jne 0x49d2
jmp 0x4b2b
leaq -0x40(%rbp), %rdi
callq 0x32d0
testb $0x1, %al
jne 0x49e1
jmp 0x49f5
movsbl -0x55(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0x3120
jmp 0x49f0
jmp 0x4b26
xorl %eax, %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
callq 0x3360
movq %rax, -0x1f8(%rbp)
jmp 0x4a0b
movq -0x1f8(%rbp), %rax
movsbl (%rax), %edi
callq 0x4470
testb $0x1, %al
jne 0x4a23
jmp 0x4b13
leaq -0x40(%rbp), %rdi
callq 0x4650
testb $0x1, %al
jne 0x4a44
movsbl -0x55(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0x3120
jmp 0x4a3f
jmp 0x4b11
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq 0xe59f(%rip), %rdi      # 0x12ff0
callq 0x3310
movq %rax, -0x200(%rbp)
jmp 0x4a5f
movq -0x200(%rbp), %rdi
leaq 0x7646(%rip), %rsi      # 0xc0b3
callq 0x31a0
movq %rax, -0x208(%rbp)
jmp 0x4a7b
movq -0x208(%rbp), %rdi
leaq 0x7588(%rip), %rsi      # 0xc011
callq 0x31a0
movq %rax, -0x210(%rbp)
jmp 0x4a97
movsbl -0x55(%rbp), %edx
leaq -0xd0(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x5c20
jmp 0x4aad
movq -0x210(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x3170
movq %rax, -0x218(%rbp)
jmp 0x4ac9
movq -0x218(%rbp), %rdi
movq 0xe4e1(%rip), %rsi      # 0x12fb8
callq 0x31e0
jmp 0x4ade
leaq -0xd0(%rbp), %rdi
callq 0x3110
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3220
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x3110
jmp 0x54db
jmp 0x4b24
movsbl -0x55(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0x3120
jmp 0x4b22
jmp 0x4b24
jmp 0x4b26
jmp 0x54b7
movsbl -0x55(%rbp), %edi
callq 0x4630
testb $0x1, %al
jne 0x4b3d
jmp 0x4c32
leaq -0x40(%rbp), %rdi
callq 0x32d0
testb $0x1, %al
jne 0x4b4c
jmp 0x4b60
movsbl -0x55(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0x3120
jmp 0x4b5b
jmp 0x4c2d
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq 0xe483(%rip), %rdi      # 0x12ff0
callq 0x3310
movq %rax, -0x220(%rbp)
jmp 0x4b7b
movq -0x220(%rbp), %rdi
leaq 0x752a(%rip), %rsi      # 0xc0b3
callq 0x31a0
movq %rax, -0x228(%rbp)
jmp 0x4b97
movq -0x228(%rbp), %rdi
leaq 0x748f(%rip), %rsi      # 0xc034
callq 0x31a0
movq %rax, -0x230(%rbp)
jmp 0x4bb3
movsbl -0x55(%rbp), %edx
leaq -0xf0(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x5c20
jmp 0x4bc9
movq -0x230(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x3170
movq %rax, -0x238(%rbp)
jmp 0x4be5
movq -0x238(%rbp), %rdi
movq 0xe3c5(%rip), %rsi      # 0x12fb8
callq 0x31e0
jmp 0x4bfa
leaq -0xf0(%rbp), %rdi
callq 0x3110
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3220
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x3110
jmp 0x54db
jmp 0x54b5
movsbl -0x55(%rbp), %edi
callq 0x4610
testb $0x1, %al
jne 0x4c44
jmp 0x4db0
leaq -0x40(%rbp), %rdi
callq 0x32d0
testb $0x1, %al
jne 0x4c53
jmp 0x4c67
movsbl -0x55(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0x3120
jmp 0x4c62
jmp 0x4dab
xorl %eax, %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
callq 0x3360
movq %rax, -0x240(%rbp)
jmp 0x4c7d
movq -0x240(%rbp), %rax
movsbl (%rax), %edi
callq 0x4610
testb $0x1, %al
jne 0x4c92
jmp 0x4cde
movsbl -0x55(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0x3120
jmp 0x4ca1
leaq -0x100(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x5ca0
jmp 0x4cb3
movq -0x1c8(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x5d10
leaq -0x100(%rbp), %rdi
callq 0x5d40
movl $0x1, -0x6c(%rbp)
jmp 0x54c2
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq 0xe305(%rip), %rdi      # 0x12ff0
callq 0x3310
movq %rax, -0x248(%rbp)
jmp 0x4cf9
movq -0x248(%rbp), %rdi
leaq 0x73ac(%rip), %rsi      # 0xc0b3
callq 0x31a0
movq %rax, -0x250(%rbp)
jmp 0x4d15
movq -0x250(%rbp), %rdi
leaq 0x7335(%rip), %rsi      # 0xc058
callq 0x31a0
movq %rax, -0x258(%rbp)
jmp 0x4d31
movsbl -0x55(%rbp), %edx
leaq -0x120(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x5c20
jmp 0x4d47
movq -0x258(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x3170
movq %rax, -0x260(%rbp)
jmp 0x4d63
movq -0x260(%rbp), %rdi
movq 0xe247(%rip), %rsi      # 0x12fb8
callq 0x31e0
jmp 0x4d78
leaq -0x120(%rbp), %rdi
callq 0x3110
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3220
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x3110
jmp 0x54db
jmp 0x54b3
movsbl -0x55(%rbp), %edi
callq 0x4520
testb $0x1, %al
jne 0x4dc2
jmp 0x52de
leaq -0x40(%rbp), %rdi
callq 0x32d0
testb $0x1, %al
jne 0x4dd4
jmp 0x50b2
movsbl -0x55(%rbp), %edi
callq 0x44a0
testb $0x1, %al
jne 0x4de6
jmp 0x5001
leaq -0x138(%rbp), %rdi
callq 0x5600
movq -0x10(%rbp), %rdi
leaq -0x139(%rbp), %rsi
callq 0x3260
jmp 0x4e04
jmp 0x4e06
movsbl -0x139(%rbp), %edi
callq 0x44e0
xorb $-0x1, %al
testb $0x1, %al
jne 0x4e1d
jmp 0x4ec7
movq -0x10(%rbp), %rdi
callq 0x3080
jmp 0x4e28
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x150(%rbp), %rdi
xorl %ecx, %ecx
callq 0x46e0
jmp 0x4e40
leaq -0x150(%rbp), %rdi
callq 0x5d60
testb $0x1, %al
jne 0x4e52
jmp 0x4e97
leaq -0x138(%rbp), %rdi
leaq -0x150(%rbp), %rsi
callq 0x5d80
jmp 0x4e67
jmp 0x4ea4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x4ff0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x150(%rbp), %rdi
callq 0x36f0
jmp 0x4ff0
movq -0x10(%rbp), %rdi
callq 0x3080
jmp 0x4ea2
jmp 0x4ea4
movq -0x10(%rbp), %rdi
leaq -0x139(%rbp), %rsi
callq 0x3260
jmp 0x4eb6
leaq -0x150(%rbp), %rdi
callq 0x36f0
jmp 0x4e06
movb -0x55(%rbp), %al
movsbl %al, %edi
movsbl -0x139(%rbp), %esi
callq 0x4560
testb $0x1, %al
jne 0x4fa4
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq 0xe102(%rip), %rdi      # 0x12ff0
callq 0x3310
movq %rax, -0x268(%rbp)
jmp 0x4efc
movq -0x268(%rbp), %rdi
leaq 0x71a9(%rip), %rsi      # 0xc0b3
callq 0x31a0
movq %rax, -0x270(%rbp)
jmp 0x4f18
movq -0x270(%rbp), %rdi
leaq 0x715d(%rip), %rsi      # 0xc083
callq 0x31a0
movq %rax, -0x278(%rbp)
jmp 0x4f34
movq -0x278(%rbp), %rdi
movsbl -0x55(%rbp), %esi
callq 0x3210
movq %rax, -0x280(%rbp)
jmp 0x4f4d
movq -0x280(%rbp), %rdi
leaq 0x7137(%rip), %rsi      # 0xc092
callq 0x31a0
movq %rax, -0x288(%rbp)
jmp 0x4f69
movq -0x288(%rbp), %rdi
movsbl -0x139(%rbp), %esi
callq 0x3210
movq %rax, -0x290(%rbp)
jmp 0x4f85
movq -0x290(%rbp), %rdi
movq 0xe025(%rip), %rsi      # 0x12fb8
callq 0x31e0
jmp 0x4f9a
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3220
leaq -0x160(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x5df0
jmp 0x4fb9
movq -0x1c8(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x5e60
leaq -0x160(%rbp), %rdi
callq 0x5e90
movl $0x1, -0x6c(%rbp)
leaq -0x138(%rbp), %rdi
callq 0x5870
jmp 0x54c2
leaq -0x138(%rbp), %rdi
callq 0x5870
jmp 0x54db
testb $0x1, -0x19(%rbp)
je 0x5096
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq 0xdfd8(%rip), %rdi      # 0x12ff0
callq 0x3310
movq %rax, -0x298(%rbp)
jmp 0x5026
movq -0x298(%rbp), %rdi
leaq 0x707f(%rip), %rsi      # 0xc0b3
callq 0x31a0
movq %rax, -0x2a0(%rbp)
jmp 0x5042
movq -0x2a0(%rbp), %rdi
leaq 0x7066(%rip), %rsi      # 0xc0b6
callq 0x31a0
movq %rax, -0x2a8(%rbp)
jmp 0x505e
movq -0x2a8(%rbp), %rdi
movsbl -0x55(%rbp), %esi
callq 0x3210
movq %rax, -0x2b0(%rbp)
jmp 0x5077
movq -0x2b0(%rbp), %rdi
movq 0xdf33(%rip), %rsi      # 0x12fb8
callq 0x31e0
jmp 0x508c
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3220
movq -0x1c8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x5eb0
movl $0x1, -0x6c(%rbp)
jmp 0x54c2
xorl %eax, %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
callq 0x3360
movq %rax, -0x2b8(%rbp)
jmp 0x50c8
movq -0x2b8(%rbp), %rax
movsbl (%rax), %edi
callq 0x4470
testb $0x1, %al
jne 0x50dd
jmp 0x5125
movq -0x10(%rbp), %rdi
callq 0x3080
jmp 0x50e8
leaq -0x170(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x59e0
jmp 0x50fa
movq -0x1c8(%rbp), %rdi
leaq -0x170(%rbp), %rsi
callq 0x5a50
leaq -0x170(%rbp), %rdi
callq 0x5a80
movl $0x1, -0x6c(%rbp)
jmp 0x54c2
xorl %eax, %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
callq 0x3360
movq %rax, -0x2c0(%rbp)
jmp 0x513b
movq -0x2c0(%rbp), %rax
movsbl (%rax), %edi
callq 0x4610
testb $0x1, %al
jne 0x5150
jmp 0x5164
movsbl -0x55(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0x3120
jmp 0x515f
jmp 0x52d5
xorl %eax, %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
callq 0x3360
movq %rax, -0x2c8(%rbp)
jmp 0x517a
movq -0x2c8(%rbp), %rax
movsbl (%rax), %edi
callq 0x4630
testb $0x1, %al
jne 0x518f
jmp 0x51d7
movq -0x10(%rbp), %rdi
callq 0x3080
jmp 0x519a
leaq -0x180(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x5ed0
jmp 0x51ac
movq -0x1c8(%rbp), %rdi
leaq -0x180(%rbp), %rsi
callq 0x5b10
leaq -0x180(%rbp), %rdi
callq 0x5b40
movl $0x1, -0x6c(%rbp)
jmp 0x54c2
xorl %eax, %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
callq 0x3360
movq %rax, -0x2d0(%rbp)
jmp 0x51ed
movq -0x2d0(%rbp), %rax
movsbl (%rax), %edi
callq 0x45d0
testb $0x1, %al
jne 0x5202
jmp 0x524a
movq -0x10(%rbp), %rdi
callq 0x3080
jmp 0x520d
leaq -0x190(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x5b60
jmp 0x521f
movq -0x1c8(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x5bd0
leaq -0x190(%rbp), %rdi
callq 0x5c00
movl $0x1, -0x6c(%rbp)
jmp 0x54c2
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq 0xdd99(%rip), %rdi      # 0x12ff0
callq 0x3310
movq %rax, -0x2d8(%rbp)
jmp 0x5265
movq -0x2d8(%rbp), %rdi
leaq 0x6e40(%rip), %rsi      # 0xc0b3
callq 0x31a0
movq %rax, -0x2e0(%rbp)
jmp 0x5281
movq -0x2e0(%rbp), %rdi
leaq 0x6e4c(%rip), %rsi      # 0xc0db
callq 0x31a0
movq %rax, -0x2e8(%rbp)
jmp 0x529d
movq -0x2e8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x3170
movq %rax, -0x2f0(%rbp)
jmp 0x52b6
movq -0x2f0(%rbp), %rdi
movq 0xdcf4(%rip), %rsi      # 0x12fb8
callq 0x31e0
jmp 0x52cb
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3220
jmp 0x52d7
jmp 0x52d9
jmp 0x54b1
movsbl -0x55(%rbp), %edi
callq 0x45d0
testb $0x1, %al
jne 0x52f0
jmp 0x5424
leaq -0x40(%rbp), %rdi
callq 0x32d0
testb $0x1, %al
jne 0x52ff
jmp 0x5313
movsbl -0x55(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0x3120
jmp 0x530e
jmp 0x541f
xorl %eax, %eax
movl %eax, %esi
leaq -0x40(%rbp), %rdi
callq 0x3360
movq %rax, -0x2f8(%rbp)
jmp 0x5329
movq -0x2f8(%rbp), %rax
movsbl (%rax), %edi
callq 0x4470
testb $0x1, %al
jne 0x5350
movsbl -0x55(%rbp), %esi
leaq -0x40(%rbp), %rdi
callq 0x3120
jmp 0x534b
jmp 0x541d
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq 0xdc93(%rip), %rdi      # 0x12ff0
callq 0x3310
movq %rax, -0x300(%rbp)
jmp 0x536b
movq -0x300(%rbp), %rdi
leaq 0x6d3a(%rip), %rsi      # 0xc0b3
callq 0x31a0
movq %rax, -0x308(%rbp)
jmp 0x5387
movq -0x308(%rbp), %rdi
leaq 0x6d68(%rip), %rsi      # 0xc0fd
callq 0x31a0
movq %rax, -0x310(%rbp)
jmp 0x53a3
movsbl -0x55(%rbp), %edx
leaq -0x1b0(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x5c20
jmp 0x53b9
movq -0x310(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
callq 0x3170
movq %rax, -0x318(%rbp)
jmp 0x53d5
movq -0x318(%rbp), %rdi
movq 0xdbd5(%rip), %rsi      # 0x12fb8
callq 0x31e0
jmp 0x53ea
leaq -0x1b0(%rbp), %rdi
callq 0x3110
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3220
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0x3110
jmp 0x54db
jmp 0x541f
jmp 0x54af
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq 0xdbbf(%rip), %rdi      # 0x12ff0
callq 0x3310
movq %rax, -0x320(%rbp)
jmp 0x543f
movq -0x320(%rbp), %rdi
leaq 0x6c66(%rip), %rsi      # 0xc0b3
callq 0x31a0
movq %rax, -0x328(%rbp)
jmp 0x545b
movq -0x328(%rbp), %rdi
leaq 0x6cc4(%rip), %rsi      # 0xc12d
callq 0x31a0
movq %rax, -0x330(%rbp)
jmp 0x5477
movq -0x330(%rbp), %rdi
movsbl -0x55(%rbp), %esi
callq 0x3210
movq %rax, -0x338(%rbp)
jmp 0x5490
movq -0x338(%rbp), %rdi
movq 0xdb1a(%rip), %rsi      # 0x12fb8
callq 0x31e0
jmp 0x54a5
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3220
jmp 0x54b1
jmp 0x54b3
jmp 0x54b5
jmp 0x54b7
jmp 0x54b9
jmp 0x54bb
jmp 0x4741
ud2
leaq -0x40(%rbp), %rdi
callq 0x3110
movq -0x1c0(%rbp), %rax
addq $0x340, %rsp            # imm = 0x340
popq %rbp
retq
leaq -0x40(%rbp), %rdi
callq 0x3110
movq -0x50(%rbp), %rdi
callq 0x3320
nopl (%rax)