// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/main.c
// Function: main
int main(int argc, char *argv[]) {
	ParserContext *ctx = NULL;

	char *opt_file = NULL;
	char *opt_arch = NULL;
	char *opt_platform = NULL;
	char *opt_incpath = NULL;
	char *opt_action = NULL;
	char *opt_target = NULL;
	char *opt_output = NULL;

	// 跑测试。
	_test();

	// 没有任何参数时直接打印帮助信息。
	if (argc == 1) {
		_help();
		exit(0);
	}

	Map defs;
	map_init(
		&defs,
		map_rstr_comparer, map_rstr_comparer,
		(MapReleaser) rstr_delete, (MapReleaser) rstr_delete
	);

	for (int i = 1; i < argc; i++) {
		#define	_NEXT_ARG(opt_name) { if (i + 1 < argc) { opt = argv[++i]; } else { _error("the option '%s' expects a parameter.", opt_name); } }

		char *opt = argv[i];

		if (*opt == '-') {
			if (strcmp(opt, _OPT_ARCH) == 0) {
				if (opt_arch != NULL) {
					_error("the architecture option '-arch' cannot be specified multi-times.");
				}
				_NEXT_ARG(_OPT_ARCH)
				opt_arch = opt;
				if (strcmp(opt_arch, _OPT_ARCH_32) != 0
						&& strcmp(opt_arch, _OPT_ARCH_64) != 0) {
					_error(
						"the option '-arch' is specified a invalid value '%s', maybe specify a '32' or '64'.",
						opt_arch
					);
				}
			} else if (strcmp(opt, _OPT_PLATFORM) == 0) {
				if (opt_platform != NULL) {
					_error("the platform option '-platform' cannot be specified multi-times.");
				}
				_NEXT_ARG(_OPT_ARCH)
				opt_platform = opt;
				if (strcmp(opt_platform, _OPT_PLATFORM_WINDOWS) != 0
						&& strcmp(opt_platform, _OPT_PLATFORM_SYSTEM_V) != 0
						&& strcmp(opt_platform, _OPT_PLATFORM_ISYSTEM) != 0) {
					_error(
						"the option '-platform' is specified a invalid value '%s', "
							"maybe specify a 'windows' or 'system-v' or 'isystem'.",
						opt_platform
					);
				}
			} else if (strcmp(opt, _OPT_INCPATH) == 0) {
				if (opt_incpath != NULL) {
					_error("the include path option '-incpath' cannot be specified multi-times.");
				}
				_NEXT_ARG(_OPT_INCPATH)
				opt_incpath = opt;
			} else if (strcmp(opt, _OPT_ACTION) == 0) {
				if (opt_action != NULL) {
					_error("the action option '-action' cannot be specified multi-times.");
				}
				_NEXT_ARG(_OPT_ACTION)
				opt_action = opt;
				if (strcmp(opt_action, _OPT_ACTION_COMPILE) != 0
						&& strcmp(opt_action, _OPT_ACTION_PRINTAST) != 0
						&& strcmp(opt_action, _OPT_ACTION_PREPROCESS) != 0) {
					_error(
						"the option '-action' is specified a invalid value '%s', maybe specify a 'compile' or 'printast' or 'preprocess'.",
						opt_action
					);
				}
			} else if (strcmp(opt, _OPT_TARGET) == 0) {
				if (opt_target != NULL) {
					_error("the target option '-target' cannot be specified multi-times.");
				}
				_NEXT_ARG(_OPT_TARGET)
				opt_target = opt;
				if (strcmp(opt_target, _OPT_TARGET_GAS) != 0
						&& strcmp(opt_target, _OPT_TARGET_IASM) != 0) {
					_error(
						"the option '-target' is specified a invalid value '%s', maybe specify a 'gas' or 'iasm'.",
						opt_target
					);
				}
			} else if (strcmp(opt, _OPT_DEF) == 0) {
				_NEXT_ARG(_OPT_DEF)
				const char *name = opt;
				_NEXT_ARG(_OPT_DEF)
				const char *value = opt;

				ResizableString *rstr_name = rstr_new_with_cstr(name);
				ResizableString *rstr_value = rstr_new_with_cstr(value);

				map_remove(&defs, rstr_name, true, true);
				map_set(&defs, rstr_name, rstr_value, true);
			} else if (strcmp(opt, _OPT_OUTPUT) == 0) {
				if (opt_output != NULL) {
					_error("the output option '-output' cannot be specified multi-times.");
				}
				_NEXT_ARG(_OPT_OUTPUT)
				opt_output = opt;
			} else if (strcmp(opt, _OPT_HELP) == 0) {
				_help();
				exit(0);
			} else {
				_error(
					"the option '%s' is invalid.",
					opt
				);
			}
		} else {
			if (opt_file != NULL) {
				_error(
					"the source file cannot be specified multi-times, '%s' and '%s'.",
					opt_file,
					opt
				);
			}
			opt_file = opt;
		}

		#undef	_NEXT_ARG
	}

	if (opt_file == NULL) {
		_error("the source file not be specified.");
	}
	if (opt_arch == NULL) {
		opt_arch = _OPT_ARCH_32;
	}
	if (opt_incpath == NULL) {
		opt_incpath = "";
	}
	if (opt_action == NULL) {
		opt_action = _OPT_ACTION_COMPILE;
	}
	if (opt_target == NULL) {
		opt_target = _OPT_TARGET_GAS;
	}

	ResizableString *rstr_arch_name = rstr_new_with_cstr("__ARCH__");
	ResizableString *rstr_arch = rstr_new();
	rstr_appendf(rstr_arch, "\"%s\"", opt_arch);
	map_remove(&defs, rstr_arch_name, true, true);
	map_set(
		&defs,
		rstr_arch_name,
		rstr_arch,
		true
	);

	ResizableString *rstr_target_name = rstr_new_with_cstr("__TARGET__");
	ResizableString *rstr_target = rstr_new();
	rstr_appendf(rstr_target, "\"%s\"", opt_target);
	map_remove(&defs, rstr_target_name, true, true);
	map_set(
		&defs,
		rstr_target_name,
		rstr_target,
		true
	);

	// 读取源文件。
	const char *source = NULL;
	int len = 0;
	source = (const char *)util_get_file_content(opt_file, &len);
	if (source == NULL) {
		_error("cannot open source file.");
	}

	// 打开输出文件。
	FILE *output = stdout;
	if (opt_output != NULL) {
		output = fopen(opt_output, "w");
		if (output == NULL) {
			_error("cannot write target code to target file '%s'.", opt_output);
		}
	}

	// 预处理。
	ResizableString preprocessed_source;
	rstr_init(&preprocessed_source);
	pp_process(
		opt_file, opt_incpath, source, len, &defs, NULL, &preprocessed_source
	);
	free((void *)source);

	map_free(&defs, true, true);

	if (strcmp(opt_action, _OPT_ACTION_PREPROCESS) == 0) {
		fputs(RSTR_CSTR(&preprocessed_source), output);
		goto _end;
	}

	// 语法解析。
	int arch = BE_ARCH_32;
	if (strcmp(opt_arch, _OPT_ARCH_32) == 0) {
		arch = BE_ARCH_32;
	} else if (strcmp(opt_arch, _OPT_ARCH_64) == 0) {
		arch = BE_ARCH_64;
	} else {
		assert(0);
	}
	ctx = be_parser_new_context(
		opt_file, RSTR_CSTR(&preprocessed_source), RSTR_LEN(&preprocessed_source), arch
	);
	be_parser_parse(ctx);

	// 语义解析。
	be_sem_process(ctx);

	int platform = BE_ASMGEN_PLATFORM_DEFAULT;
	if (opt_platform != NULL) {
		if (strcmp(opt_platform, _OPT_PLATFORM_WINDOWS) == 0) {
			platform = BE_ASMGEN_PLATFORM_WINDOWS;
		} else if (strcmp(opt_platform, _OPT_PLATFORM_SYSTEM_V) == 0) {
			platform = BE_ASMGEN_PLATFORM_SYSTEM_V;
		} else if (strcmp(opt_platform, _OPT_PLATFORM_ISYSTEM) == 0) {
			platform = BE_ASMGEN_PLATFORM_ISYSTEM;
		} else {
			assert(0);
		}
	}

	// 执行操作（编译、打印AST）。
	if (strcmp(opt_action, _OPT_ACTION_COMPILE) == 0) {
		if (strcmp(opt_target, _OPT_TARGET_GAS) == 0) {
			if (arch == BE_ARCH_32) {
				ASMGeneratorGas32Context *asmgen_ctx = be_asmgen_gas32_new_context(ctx, output, platform);
				be_asmgen_gas32_generate(asmgen_ctx);
				be_asmgen_gas32_free_context(asmgen_ctx);
			} else if (arch == BE_ARCH_64) {
				ASMGeneratorGas64Context *asmgen_ctx = be_asmgen_gas64_new_context(ctx, output, platform);
				be_asmgen_gas64_generate(asmgen_ctx);
				be_asmgen_gas64_free_context(asmgen_ctx);
			} else {
				assert(0);
			}
		} else if (strcmp(opt_target, _OPT_TARGET_IASM) == 0) {
			_error("target 'iasm' is not supported currently.");
		} else {
			assert(0);
		}
	} else if (strcmp(opt_action, _OPT_ACTION_PRINTAST) == 0) {
		// 打印语法树。
		be_parser_print_ast(ctx, output);
	} else {
		assert(0);
	}

	// 释放资源。
_end:
	rstr_free(&preprocessed_source);
	if (opt_output != NULL) {
		fclose(output);
	}
	if (ctx != NULL) {
		be_parser_free_context(ctx);
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movl %edi, %ebx
callq 0x83e2
callq 0x3633
callq 0x4e10
callq 0x5949
movl %ebx, -0x30(%rbp)
cmpl $0x1, %ebx
je 0x20022
leaq -0x19ea5(%rip), %rdx    # 0x593f
leaq -0x184f1(%rip), %rcx    # 0x72fa
leaq -0xc8(%rbp), %rdi
movq %rdx, %rsi
movq %rcx, %r8
callq 0x513c
pushq $0x1
popq %rcx
movq $0x0, -0x60(%rbp)
leaq 0x26214(%rip), %rax     # 0x45a23
movq %rax, -0x68(%rbp)
movl %ecx, %r12d
xorl %r15d, %r15d
xorl %edx, %edx
movq $0x0, -0x50(%rbp)
xorl %ebx, %ebx
xorl %r8d, %r8d
xorl %esi, %esi
movl -0x30(%rbp), %ecx
cmpl %ecx, %r12d
jge 0x1fb94
movslq %r12d, %rax
movq (%r14,%rax,8), %r13
cmpb $0x2d, (%r13)
jne 0x1f92b
movq %r8, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq %rsi, -0x48(%rbp)
movq %r13, %rdi
leaq 0x25f9f(%rip), %rsi     # 0x457fd
callq 0x30d0
testl %eax, %eax
je 0x1f93c
movq %r13, %rdi
leaq 0x26048(%rip), %rsi     # 0x458bd
callq 0x30d0
testl %eax, %eax
je 0x1f983
movq %r13, %rdi
leaq 0x26105(%rip), %rsi     # 0x45991
callq 0x30d0
testl %eax, %eax
je 0x1fa04
movq %r13, %rdi
leaq 0x2613b(%rip), %rsi     # 0x459de
callq 0x30d0
testl %eax, %eax
je 0x1fa42
movq %r13, %rdi
leaq 0x261f6(%rip), %rsi     # 0x45ab0
callq 0x30d0
testl %eax, %eax
je 0x1faab
movq %r13, %rdi
leaq 0x26286(%rip), %rsi     # 0x45b57
callq 0x30d0
testl %eax, %eax
je 0x1fb10
movq %r13, %rdi
leaq 0x26274(%rip), %rsi     # 0x45b5c
callq 0x30d0
testl %eax, %eax
jne 0x2000f
cmpq $0x0, -0x60(%rbp)
movq -0x48(%rbp), %rsi
movl -0x30(%rbp), %ecx
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %r8
jne 0x20006
incl %r12d
cmpl %ecx, %r12d
jge 0x2002e
movslq %r12d, %rax
movq (%r14,%rax,8), %rax
movq %rax, -0x60(%rbp)
jmp 0x1fb8c
testq %rsi, %rsi
jne 0x1ff37
movq %r13, %rsi
jmp 0x1fb8c
cmpq $0x0, -0x40(%rbp)
jne 0x1ff69
incl %r12d
movl -0x30(%rbp), %ecx
cmpl %ecx, %r12d
movq -0x48(%rbp), %rsi
movq -0x38(%rbp), %rdx
jge 0x1ff54
movslq %r12d, %rax
movq (%r14,%rax,8), %r8
movzbl (%r8), %eax
cmpl $0x36, %eax
je 0x1f9e9
cmpl $0x33, %eax
jne 0x1ff48
cmpb $0x32, 0x1(%r8)
je 0x1f9f4
jmp 0x1ff48
testq %rbx, %rbx
jne 0x1ff75
incl %r12d
cmpl -0x30(%rbp), %r12d
jge 0x1ff54
movslq %r12d, %rax
movq (%r14,%rax,8), %r13
movq %r13, %rdi
leaq 0x25f5e(%rip), %rsi     # 0x45908
callq 0x30d0
testl %eax, %eax
je 0x1fa3a
movq %r13, %rdi
leaq 0x25f4f(%rip), %rsi     # 0x45910
callq 0x30d0
testl %eax, %eax
je 0x1fa3a
movq %r13, %rbx
movq %r13, %rdi
leaq 0x25f42(%rip), %rsi     # 0x45919
callq 0x30d0
testl %eax, %eax
je 0x1fb7d
jmp 0x1ffcc
cmpb $0x34, 0x1(%r8)
jne 0x1ff48
cmpb $0x0, 0x2(%r8)
je 0x1fb8c
jmp 0x1ff48
cmpq $0x0, -0x50(%rbp)
jne 0x1ff81
incl %r12d
movl -0x30(%rbp), %ecx
cmpl %ecx, %r12d
movq -0x48(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %r8
jge 0x1ff8d
movslq %r12d, %rax
movq (%r14,%rax,8), %rax
movq %rax, -0x50(%rbp)
jmp 0x1fb8c
movq %r13, %rbx
jmp 0x1fb7d
cmpq $0x0, -0x38(%rbp)
jne 0x1ffd8
incl %r12d
cmpl -0x30(%rbp), %r12d
jge 0x1ffbc
movslq %r12d, %rax
movq (%r14,%rax,8), %r13
movq %r13, %rdi
leaq 0x25fb8(%rip), %rsi     # 0x45a23
callq 0x30d0
testl %eax, %eax
je 0x1fb04
movq %r13, %rdi
leaq 0x25fa9(%rip), %rsi     # 0x45a2b
callq 0x30d0
testl %eax, %eax
je 0x1fb04
movq %r13, -0x38(%rbp)
movq %r13, %rdi
leaq 0x25f9b(%rip), %rsi     # 0x45a34
callq 0x30d0
testl %eax, %eax
je 0x1fb7d
jmp 0x20072
testq %r15, %r15
jne 0x20041
incl %r12d
cmpl -0x30(%rbp), %r12d
jge 0x2004f
movslq %r12d, %rax
movq (%r14,%rax,8), %r15
movq %r15, %rdi
leaq 0x26023(%rip), %rsi     # 0x45af5
callq 0x30d0
testl %eax, %eax
je 0x1fb7d
movq %r15, -0x58(%rbp)
movq %r15, %rdi
leaq 0x2600c(%rip), %rsi     # 0x45af9
callq 0x30d0
testl %eax, %eax
jne 0x20062
movq -0x48(%rbp), %rsi
movq -0x58(%rbp), %r15
jmp 0x1fb81
movq -0x48(%rbp), %rsi
movl -0x30(%rbp), %ecx
movq %r13, %rdx
jmp 0x1fb88
leal 0x1(%r12), %eax
movl -0x30(%rbp), %ecx
cmpl %ecx, %eax
jge 0x1ffe1
addl $0x2, %r12d
cmpl %ecx, %r12d
jge 0x1ffe1
cltq
movq (%r14,%rax,8), %rdi
movslq %r12d, %rax
movq (%r14,%rax,8), %rax
movq %rax, -0x58(%rbp)
callq 0x71f8
movq %rax, %r13
movq -0x58(%rbp), %rdi
callq 0x71f8
movq %rax, -0x58(%rbp)
leaq -0xc8(%rbp), %rdi
movq %r13, %rsi
pushq $0x1
popq %rcx
movl %ecx, %edx
callq 0x5477
leaq -0xc8(%rbp), %rdi
movq %r13, %rsi
movq -0x58(%rbp), %rdx
pushq $0x1
popq %rcx
callq 0x529d
movq -0x48(%rbp), %rsi
movl -0x30(%rbp), %ecx
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %r8
incl %r12d
jmp 0x1f82d
movq %rbx, -0x30(%rbp)
testq %rsi, %rsi
movq %rsi, -0x48(%rbp)
je 0x1fff4
testq %r8, %r8
leaq 0x20cf6(%rip), %rbx     # 0x408a5
cmovneq %r8, %rbx
movq -0x50(%rbp), %rax
testq %rax, %rax
leaq 0x1de6a(%rip), %rcx     # 0x3da2b
cmoveq %rcx, %rax
movq %rax, -0x50(%rbp)
testq %rdx, %rdx
movq -0x68(%rbp), %rax
cmovneq %rdx, %rax
movq %rax, -0x68(%rbp)
testq %r15, %r15
leaq 0x25f13(%rip), %r12     # 0x45af5
cmovneq %r15, %r12
leaq 0x26038(%rip), %rdi     # 0x45c25
callq 0x71f8
movq %rax, %r14
callq 0x71d5
movq %rax, %r15
leaq 0x2cb08(%rip), %rsi     # 0x4c70c
movq %rax, %rdi
movq %rbx, -0x40(%rbp)
movq %rbx, %rdx
xorl %eax, %eax
callq 0x739a
leaq -0xc8(%rbp), %r13
pushq $0x1
popq %rbx
movq %r13, %rdi
movq %r14, %rsi
movl %ebx, %edx
movl %ebx, %ecx
callq 0x5477
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %ebx, %ecx
callq 0x529d
leaq 0x25fe9(%rip), %rdi     # 0x45c2e
callq 0x71f8
movq %rax, %r14
callq 0x71d5
movq %rax, %r15
movq %rax, %rdi
leaq 0x2caad(%rip), %rsi     # 0x4c70c
movq %r12, %rdx
xorl %eax, %eax
callq 0x739a
movq %r13, %rdi
movq %r14, %rsi
movl %ebx, %edx
movl %ebx, %ecx
callq 0x5477
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %ebx, %ecx
callq 0x529d
leaq -0x6c(%rbp), %rsi
andl $0x0, (%rsi)
movq -0x48(%rbp), %rdi
movq %rdi, %rbx
callq 0x8e3a
testq %rax, %rax
je 0x1fffd
movq %rax, %r13
movq -0x60(%rbp), %r15
testq %r15, %r15
je 0x1fcd7
leaq 0x25f9b(%rip), %rsi     # 0x45c52
movq %r15, %rdi
callq 0x3130
movq %rax, -0x38(%rbp)
testq %rax, %rax
jne 0x1fce5
leaq 0x25f85(%rip), %rdi     # 0x45c54
movq %r15, %rsi
jmp 0x1ff62
movq 0x372fa(%rip), %rax     # 0x56fd8
movq (%rax), %rax
movq %rax, -0x38(%rbp)
leaq -0x80(%rbp), %r14
movq %r14, %rdi
callq 0x6e1c
movl -0x6c(%rbp), %ecx
movq %r14, (%rsp)
leaq -0xc8(%rbp), %r14
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
movq %r13, %rdx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x39c1c
movq %r13, %rdi
callq 0x3190
pushq $0x1
popq %r13
movq %r14, %rdi
movl %r13d, %esi
movl %r13d, %edx
callq 0x5214
leaq 0x25cff(%rip), %rsi     # 0x45a34
movq -0x68(%rbp), %rdi
callq 0x30d0
testl %eax, %eax
je 0x1fd73
movq %r12, -0x50(%rbp)
movq -0x40(%rbp), %rcx
movzbl (%rcx), %eax
cmpl $0x36, %eax
je 0x1fd99
cmpl $0x33, %eax
jne 0x1ff9d
cmpb $0x32, 0x1(%rcx)
jne 0x1ff9d
movb $0x1, %r12b
cmpb $0x0, 0x2(%rcx)
je 0x1fdb4
jmp 0x1ff9d
movq -0x78(%rbp), %rax
testq %rax, %rax
leaq 0x1dcaa(%rip), %rdi     # 0x3da2b
cmovneq %rax, %rdi
movq -0x38(%rbp), %rbx
movq %rbx, %rsi
callq 0x30b0
xorl %r14d, %r14d
jmp 0x1ff00
cmpb $0x34, 0x1(%rcx)
jne 0x1ff9d
cmpb $0x0, 0x2(%rcx)
jne 0x1ff9d
pushq $0x2
popq %r13
xorl %r12d, %r12d
movq -0x78(%rbp), %rax
testq %rax, %rax
leaq 0x1dc69(%rip), %rsi     # 0x3da2b
cmovneq %rax, %rsi
movl -0x7c(%rbp), %edx
movq %rbx, %rdi
movl %r13d, %ecx
callq 0x202f6
movq %rax, %r14
movq %rax, %rdi
callq 0x203e2
movq %r14, %rdi
callq 0x277d0
pushq $0x3
popq %r15
movq -0x30(%rbp), %r13
testq %r13, %r13
je 0x1fe54
leaq 0x25b0d(%rip), %rsi     # 0x45908
movq %r13, %rdi
callq 0x30d0
testl %eax, %eax
je 0x1fe4c
leaq 0x25b02(%rip), %rsi     # 0x45910
movq %r13, %rdi
callq 0x30d0
testl %eax, %eax
je 0x1fe50
leaq 0x25af8(%rip), %rsi     # 0x45919
movq %r13, %rdi
callq 0x30d0
testl %eax, %eax
je 0x1fe54
leaq 0x1b535(%rip), %rdi     # 0x3b369
leaq 0x25e47(%rip), %rsi     # 0x45c82
leaq 0x25e58(%rip), %rcx     # 0x45c9a
movl $0x14a, %edx            # imm = 0x14A
callq 0x30a0
pushq $0x1
jmp 0x1fe52
pushq $0x2
popq %r15
leaq 0x25bc8(%rip), %rsi     # 0x45a23
movq -0x68(%rbp), %r13
movq %r13, %rdi
callq 0x30d0
testl %eax, %eax
je 0x1fe93
leaq 0x25bb9(%rip), %rsi     # 0x45a2b
movq %r13, %rdi
callq 0x30d0
testl %eax, %eax
jne 0x20091
movq %r14, %rdi
movq -0x38(%rbp), %rbx
movq %rbx, %rsi
callq 0x2098f
jmp 0x1fefc
leaq 0x25c5b(%rip), %rsi     # 0x45af5
movq -0x50(%rbp), %r13
movq %r13, %rdi
callq 0x30d0
testl %eax, %eax
jne 0x200b0
movq %r14, %rdi
testb %r12b, %r12b
je 0x1feda
movq -0x38(%rbp), %rbx
movq %rbx, %rsi
movl %r15d, %edx
callq 0xb401
movq %rax, %r15
movq %rax, %rdi
callq 0xad20
movq %r15, %rdi
callq 0xb592
jmp 0x1fefc
movq -0x38(%rbp), %rbx
movq %rbx, %rsi
movl %r15d, %edx
callq 0x16860
movq %rax, %r15
movq %rax, %rdi
callq 0x161f4
movq %r15, %rdi
callq 0x169de
movq -0x60(%rbp), %r15
leaq -0x80(%rbp), %rdi
callq 0x72b9
testq %r15, %r15
je 0x1ff16
movq %rbx, %rdi
callq 0x3070
testq %r14, %r14
je 0x1ff23
movq %r14, %rdi
callq 0x2039f
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x25c85(%rip), %rdi     # 0x45bc3
movq %r13, %rdx
xorl %eax, %eax
callq 0x20109
leaq 0x2591a(%rip), %rdi     # 0x45869
movq %r8, %rsi
jmp 0x1ff62
leaq 0x258e9(%rip), %rdi     # 0x45844
leaq 0x2589b(%rip), %rsi     # 0x457fd
xorl %eax, %eax
callq 0x20109
leaq 0x25893(%rip), %rdi     # 0x45803
jmp 0x20048
leaq 0x2594b(%rip), %rdi     # 0x458c7
jmp 0x20048
leaq 0x25a12(%rip), %rdi     # 0x4599a
jmp 0x20048
leaq 0x258b0(%rip), %rdi     # 0x45844
leaq 0x259f6(%rip), %rsi     # 0x45991
jmp 0x1ff62
leaq 0x1b3c5(%rip), %rdi     # 0x3b369
leaq 0x25cd7(%rip), %rsi     # 0x45c82
leaq 0x25ce8(%rip), %rcx     # 0x45c9a
movl $0x137, %edx            # imm = 0x137
callq 0x30a0
leaq 0x25881(%rip), %rdi     # 0x45844
leaq 0x25a14(%rip), %rsi     # 0x459de
jmp 0x1ff62
leaq 0x2594e(%rip), %rdi     # 0x45921
movq %rbx, %rsi
jmp 0x1ff62
leaq 0x25a07(%rip), %rdi     # 0x459e6
jmp 0x20048
leaq 0x2585c(%rip), %rdi     # 0x45844
leaq 0x25b68(%rip), %rsi     # 0x45b57
jmp 0x1ff62
leaq 0x25c08(%rip), %rdi     # 0x45c03
jmp 0x20048
leaq 0x25c35(%rip), %rdi     # 0x45c39
jmp 0x20048
leaq 0x25b57(%rip), %rdi     # 0x45b64
jmp 0x20048
leaq 0x25b8b(%rip), %rsi     # 0x45ba1
movq %r13, %rdi
callq 0x30d0
testl %eax, %eax
jne 0x20082
callq 0x200ee
xorl %edi, %edi
callq 0x3160
leaq 0x2580f(%rip), %rdi     # 0x45844
leaq 0x25b20(%rip), %rsi     # 0x45b5c
jmp 0x1ff62
leaq 0x25a70(%rip), %rdi     # 0x45ab8
xorl %eax, %eax
callq 0x20109
leaq 0x257ee(%rip), %rdi     # 0x45844
leaq 0x25a53(%rip), %rsi     # 0x45ab0
jmp 0x1ff62
leaq 0x25a95(%rip), %rdi     # 0x45afe
movq -0x58(%rbp), %rsi
jmp 0x1ff62
leaq 0x259c6(%rip), %rdi     # 0x45a3f
movq -0x38(%rbp), %rsi
jmp 0x1ff62
leaq 0x25b1e(%rip), %rdi     # 0x45ba7
movq %r13, %rsi
jmp 0x1ff62
leaq 0x1b2d1(%rip), %rdi     # 0x3b369
leaq 0x25be3(%rip), %rsi     # 0x45c82
leaq 0x25bf4(%rip), %rcx     # 0x45c9a
movl $0x165, %edx            # imm = 0x165
callq 0x30a0
leaq 0x25a42(%rip), %rsi     # 0x45af9
movq %r13, %rdi
callq 0x30d0
testl %eax, %eax
jne 0x200cf
leaq 0x25be7(%rip), %rdi     # 0x45cb1
jmp 0x20048
leaq 0x1b293(%rip), %rdi     # 0x3b369
leaq 0x25ba5(%rip), %rsi     # 0x45c82
leaq 0x25bb6(%rip), %rcx     # 0x45c9a
movl $0x15f, %edx            # imm = 0x15F
callq 0x30a0