// File: /workspace/github_c_makefile_star2_O1/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, %r13
movl %edi, %ebx
callq 0x8b7b
callq 0x37c9
callq 0x51fd
callq 0x5e02
cmpl $0x1, %ebx
je 0x223e8
leaq -0x1bdb5(%rip), %rdx    # 0x5df8
leaq -0x1a174(%rip), %rcx    # 0x7a40
leaq -0xc8(%rbp), %rdi
movq %rdx, %rsi
movq %rcx, %r8
callq 0x558c
cmpl $0x2, %ebx
jl 0x21f2c
movl $0x1, %r12d
xorl %esi, %esi
movq $0x0, -0x40(%rbp)
movq $0x0, -0x58(%rbp)
movq $0x0, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
xorl %r15d, %r15d
movq $0x0, -0x60(%rbp)
movslq %r12d, %rax
movq (%r13,%rax,8), %r14
cmpb $0x2d, (%r14)
jne 0x21ce5
movq %rsi, -0x30(%rbp)
movq %r14, %rdi
leaq 0x28beb(%rip), %rsi     # 0x4a80d
callq 0x30d0
testl %eax, %eax
je 0x21cf6
movq %r14, %rdi
leaq 0x28c94(%rip), %rsi     # 0x4a8cd
callq 0x30d0
testl %eax, %eax
je 0x21d4c
movq %r14, %rdi
leaq 0x28d51(%rip), %rsi     # 0x4a9a1
callq 0x30d0
testl %eax, %eax
je 0x21db9
movq %r14, %rdi
leaq 0x28d87(%rip), %rsi     # 0x4a9ee
callq 0x30d0
testl %eax, %eax
je 0x21de5
movq %r14, %rdi
leaq 0x28e42(%rip), %rsi     # 0x4aac0
callq 0x30d0
testl %eax, %eax
je 0x21e52
movq %r14, %rdi
leaq 0x28ed2(%rip), %rsi     # 0x4ab67
callq 0x30d0
testl %eax, %eax
je 0x21ea7
movq %r14, %rdi
leaq 0x28ec0(%rip), %rsi     # 0x4ab6c
callq 0x30d0
testl %eax, %eax
jne 0x223d1
cmpq $0x0, -0x60(%rbp)
movq -0x30(%rbp), %rsi
jne 0x223f4
incl %r12d
cmpl %ebx, %r12d
jge 0x22400
movslq %r12d, %rax
movq (%r13,%rax,8), %rax
movq %rax, -0x60(%rbp)
jmp 0x21f1e
testq %rsi, %rsi
jne 0x2230c
movq %r14, %rsi
jmp 0x21f1e
cmpq $0x0, -0x40(%rbp)
jne 0x22330
incl %r12d
cmpl %ebx, %r12d
jge 0x2231d
movslq %r12d, %rax
movq (%r13,%rax,8), %r14
movq %r14, %rdi
leaq 0x23b94(%rip), %rsi     # 0x458b3
callq 0x30d0
testl %eax, %eax
movq %r14, -0x40(%rbp)
je 0x21f1a
movq %r14, %rdi
leaq 0x2a5e2(%rip), %rsi     # 0x4c31c
callq 0x30d0
testl %eax, %eax
je 0x21f1a
jmp 0x22348
cmpq $0x0, -0x58(%rbp)
jne 0x2233c
incl %r12d
cmpl %ebx, %r12d
jge 0x2231d
movslq %r12d, %rax
movq (%r13,%rax,8), %r14
movq %r14, %rdi
leaq 0x28ba3(%rip), %rsi     # 0x4a918
callq 0x30d0
testl %eax, %eax
movq %r14, -0x58(%rbp)
je 0x21f1a
movq %r14, %rdi
leaq 0x28b90(%rip), %rsi     # 0x4a920
callq 0x30d0
testl %eax, %eax
je 0x21f1a
movq %r14, %rdi
leaq 0x28b82(%rip), %rsi     # 0x4a929
callq 0x30d0
testl %eax, %eax
je 0x21f1a
jmp 0x223ae
cmpq $0x0, -0x50(%rbp)
jne 0x22358
incl %r12d
cmpl %ebx, %r12d
movq -0x30(%rbp), %rsi
jge 0x22364
movslq %r12d, %rax
movq (%r13,%rax,8), %rax
movq %rax, -0x50(%rbp)
jmp 0x21f1e
cmpq $0x0, -0x48(%rbp)
jne 0x2238f
incl %r12d
cmpl %ebx, %r12d
jge 0x2239b
movslq %r12d, %rax
movq (%r13,%rax,8), %r14
movq %r14, %rdi
leaq 0x28c25(%rip), %rsi     # 0x4aa33
callq 0x30d0
testl %eax, %eax
movq %r14, -0x48(%rbp)
je 0x21f1a
movq %r14, %rdi
leaq 0x28c12(%rip), %rsi     # 0x4aa3b
callq 0x30d0
testl %eax, %eax
je 0x21f1a
movq %r14, %rdi
leaq 0x28c04(%rip), %rsi     # 0x4aa44
callq 0x30d0
testl %eax, %eax
je 0x21f1a
jmp 0x22477
testq %r15, %r15
jne 0x22410
incl %r12d
cmpl %ebx, %r12d
jge 0x2241c
movslq %r12d, %rax
movq (%r13,%rax,8), %r15
movq %r15, %rdi
leaq 0x28c8c(%rip), %rsi     # 0x4ab05
callq 0x30d0
testl %eax, %eax
je 0x21f1a
movq %r15, -0x38(%rbp)
movq %r15, %rdi
leaq 0x28c75(%rip), %rsi     # 0x4ab09
callq 0x30d0
testl %eax, %eax
jne 0x2246a
movq -0x38(%rbp), %r15
jmp 0x21f1a
leal 0x1(%r12), %eax
cmpl %ebx, %eax
jge 0x223be
addl $0x2, %r12d
cmpl %ebx, %r12d
jge 0x223be
cltq
movq (%r13,%rax,8), %rdi
movslq %r12d, %rax
movq (%r13,%rax,8), %rax
movq %rax, -0x38(%rbp)
callq 0x7924
movq %rax, %r14
movq -0x38(%rbp), %rdi
callq 0x7924
movq %rax, -0x38(%rbp)
leaq -0xc8(%rbp), %rdi
movq %r14, %rsi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x58f5
leaq -0xc8(%rbp), %rdi
movq %r14, %rsi
movq -0x38(%rbp), %rdx
movl $0x1, %ecx
callq 0x56f8
movq -0x30(%rbp), %rsi
incl %r12d
cmpl %ebx, %r12d
jl 0x21c02
jmp 0x21f59
movq $0x0, -0x60(%rbp)
xorl %r15d, %r15d
movq $0x0, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
movq $0x0, -0x40(%rbp)
xorl %esi, %esi
movq %rsi, -0x30(%rbp)
testq %rsi, %rsi
je 0x22377
movq -0x40(%rbp), %rax
testq %rax, %rax
leaq 0x2393f(%rip), %rbx     # 0x458b3
cmovneq %rax, %rbx
movq -0x50(%rbp), %rax
testq %rax, %rax
leaq 0x20ad5(%rip), %rcx     # 0x42a5b
cmoveq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rax
testq %rax, %rax
leaq 0x28a97(%rip), %rcx     # 0x4aa33
cmovneq %rax, %rcx
movq %rcx, -0x48(%rbp)
testq %r15, %r15
leaq 0x28b57(%rip), %r14     # 0x4ab05
cmovneq %r15, %r14
leaq 0x28c7c(%rip), %rdi     # 0x4ac35
callq 0x7924
movq %rax, %r13
callq 0x78ea
movq %rax, %r12
leaq 0x2f7ba(%rip), %r15     # 0x5178a
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, -0x40(%rbp)
movq %rbx, %rdx
xorl %eax, %eax
callq 0x7af1
leaq -0xc8(%rbp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x58f5
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl $0x1, %ecx
callq 0x56f8
leaq 0x28c24(%rip), %rdi     # 0x4ac3e
callq 0x7924
movq %rax, %r12
callq 0x78ea
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq %r14, -0x80(%rbp)
movq %r14, %rdx
xorl %eax, %eax
callq 0x7af1
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x58f5
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
movl $0x1, %ecx
callq 0x56f8
leaq -0x64(%rbp), %rsi
movl $0x0, (%rsi)
movq -0x30(%rbp), %rdi
movq %rdi, %r15
callq 0x9775
testq %rax, %rax
je 0x22383
movq %rax, %rbx
movq -0x60(%rbp), %r13
testq %r13, %r13
je 0x220bc
leaq 0x28bca(%rip), %rsi     # 0x4ac62
movq %r13, %rdi
callq 0x3130
movq %rax, -0x38(%rbp)
testq %rax, %rax
movq -0x40(%rbp), %r14
jne 0x220ce
leaq 0x28bb0(%rip), %rdi     # 0x4ac64
movq %r13, %rsi
jmp 0x2248e
movq 0x39f15(%rip), %rax     # 0x5bfd8
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %r14
leaq -0x78(%rbp), %r12
movq %r12, %rdi
callq 0x7508
movl -0x64(%rbp), %ecx
movq %r12, (%rsp)
leaq -0xc8(%rbp), %r12
movq %r15, %rdi
movq -0x50(%rbp), %rsi
movq %rbx, %rdx
movq %r12, %r8
xorl %r9d, %r9d
callq 0x3ded8
movq %rbx, %rdi
callq 0x3190
movl $0x1, %ebx
movq %r12, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x566a
leaq 0x28921(%rip), %rsi     # 0x4aa44
movq -0x48(%rbp), %r12
movq %r12, %rdi
callq 0x30d0
testl %eax, %eax
je 0x22206
leaq 0x23775(%rip), %rsi     # 0x458b3
movq %r14, %rdi
callq 0x30d0
movl %eax, -0x40(%rbp)
testl %eax, %eax
je 0x22169
leaq 0x2a1c8(%rip), %rsi     # 0x4c31c
movq %r14, %rdi
callq 0x30d0
movl $0x2, %ebx
testl %eax, %eax
jne 0x2242c
movq -0x70(%rbp), %rax
testq %rax, %rax
leaq 0x208e4(%rip), %rsi     # 0x42a5b
cmovneq %rax, %rsi
movl -0x74(%rbp), %edx
movq %r15, %rdi
movl %ebx, %ecx
callq 0x22719
movq %rax, %r14
movq %rax, %rdi
callq 0x22807
movq %r14, %rdi
callq 0x2aaa4
movl $0x3, %r15d
movq -0x58(%rbp), %rbx
testq %rbx, %rbx
je 0x2223a
leaq 0x28763(%rip), %rsi     # 0x4a918
movq %rbx, %rdi
callq 0x30d0
testl %eax, %eax
je 0x2222c
leaq 0x28758(%rip), %rsi     # 0x4a920
movq %rbx, %rdi
callq 0x30d0
testl %eax, %eax
je 0x22234
leaq 0x2874e(%rip), %rsi     # 0x4a929
movq %rbx, %rdi
callq 0x30d0
testl %eax, %eax
je 0x2223a
leaq 0x1e19f(%rip), %rdi     # 0x4038d
leaq 0x28a9d(%rip), %rsi     # 0x4ac92
leaq 0x28aae(%rip), %rcx     # 0x4acaa
movl $0x14a, %edx            # imm = 0x14A
callq 0x30a0
movq -0x70(%rbp), %rax
testq %rax, %rax
leaq 0x20847(%rip), %rdi     # 0x42a5b
cmovneq %rax, %rdi
movq -0x38(%rbp), %r12
movq %r12, %rsi
callq 0x30b0
xorl %r14d, %r14d
jmp 0x222d5
movl $0x1, %r15d
jmp 0x2223a
movl $0x2, %r15d
leaq 0x287f2(%rip), %rsi     # 0x4aa33
movq %r12, %rdi
callq 0x30d0
testl %eax, %eax
movq -0x80(%rbp), %rbx
je 0x22279
leaq 0x287e3(%rip), %rsi     # 0x4aa3b
movq %r12, %rdi
callq 0x30d0
testl %eax, %eax
jne 0x2244b
movq %r14, %rdi
movq -0x38(%rbp), %r12
movq %r12, %rsi
callq 0x22e77
jmp 0x222d5
leaq 0x28885(%rip), %rsi     # 0x4ab05
movq %rbx, %rdi
callq 0x30d0
testl %eax, %eax
jne 0x22495
cmpl $0x0, -0x40(%rbp)
movq -0x38(%rbp), %r12
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
je 0x222bd
callq 0x186c0
movq %rax, %rbx
movq %rax, %rdi
callq 0x18028
movq %rbx, %rdi
callq 0x18821
jmp 0x222d5
callq 0xc123
movq %rax, %rbx
movq %rax, %rdi
callq 0xba1c
movq %rbx, %rdi
callq 0xc28c
leaq -0x78(%rbp), %rdi
callq 0x79f8
testq %r13, %r13
je 0x222eb
movq %r12, %rdi
callq 0x3070
testq %r14, %r14
je 0x222f8
movq %r14, %rdi
callq 0x227c4
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x288c0(%rip), %rdi     # 0x4abd3
movq %r14, %rdx
xorl %eax, %eax
callq 0x224f0
leaq 0x28530(%rip), %rdi     # 0x4a854
leaq 0x284e2(%rip), %rsi     # 0x4a80d
jmp 0x2248e
leaq 0x284dc(%rip), %rdi     # 0x4a813
jmp 0x224af
leaq 0x28594(%rip), %rdi     # 0x4a8d7
jmp 0x224af
leaq 0x2852a(%rip), %rdi     # 0x4a879
movq -0x40(%rbp), %rsi
jmp 0x2248e
leaq 0x2864b(%rip), %rdi     # 0x4a9aa
jmp 0x224af
leaq 0x284e9(%rip), %rdi     # 0x4a854
leaq 0x2862f(%rip), %rsi     # 0x4a9a1
jmp 0x2248e
leaq 0x28895(%rip), %rdi     # 0x4ac13
jmp 0x224af
leaq 0x288bf(%rip), %rdi     # 0x4ac49
jmp 0x224af
leaq 0x28660(%rip), %rdi     # 0x4a9f6
jmp 0x224af
leaq 0x284b2(%rip), %rdi     # 0x4a854
leaq 0x28645(%rip), %rsi     # 0x4a9ee
jmp 0x2248e
leaq 0x2857c(%rip), %rdi     # 0x4a931
movq -0x58(%rbp), %rsi
jmp 0x2248e
leaq 0x2848f(%rip), %rdi     # 0x4a854
leaq 0x2879b(%rip), %rsi     # 0x4ab67
jmp 0x2248e
leaq 0x287d9(%rip), %rsi     # 0x4abb1
movq %r14, %rdi
callq 0x30d0
testl %eax, %eax
jne 0x22484
callq 0x224d5
xorl %edi, %edi
callq 0x3160
leaq 0x28779(%rip), %rdi     # 0x4ab74
jmp 0x224af
leaq 0x2844d(%rip), %rdi     # 0x4a854
leaq 0x2875e(%rip), %rsi     # 0x4ab6c
jmp 0x2248e
leaq 0x286b1(%rip), %rdi     # 0x4aac8
jmp 0x224af
leaq 0x28431(%rip), %rdi     # 0x4a854
leaq 0x28696(%rip), %rsi     # 0x4aac0
jmp 0x2248e
leaq 0x1df5a(%rip), %rdi     # 0x4038d
leaq 0x28858(%rip), %rsi     # 0x4ac92
leaq 0x28869(%rip), %rcx     # 0x4acaa
movl $0x137, %edx            # imm = 0x137
callq 0x30a0
leaq 0x1df3b(%rip), %rdi     # 0x4038d
leaq 0x28839(%rip), %rsi     # 0x4ac92
leaq 0x2884a(%rip), %rcx     # 0x4acaa
movl $0x165, %edx            # imm = 0x165
callq 0x30a0
leaq 0x2869d(%rip), %rdi     # 0x4ab0e
movq -0x38(%rbp), %rsi
jmp 0x2248e
leaq 0x285d1(%rip), %rdi     # 0x4aa4f
movq -0x48(%rbp), %rsi
jmp 0x2248e
leaq 0x2872c(%rip), %rdi     # 0x4abb7
movq %r14, %rsi
xorl %eax, %eax
callq 0x224f0
leaq 0x2866d(%rip), %rsi     # 0x4ab09
movq %rbx, %rdi
callq 0x30d0
testl %eax, %eax
jne 0x224b6
leaq 0x28812(%rip), %rdi     # 0x4acc1
xorl %eax, %eax
callq 0x224f0
leaq 0x1ded0(%rip), %rdi     # 0x4038d
leaq 0x287ce(%rip), %rsi     # 0x4ac92
leaq 0x287df(%rip), %rcx     # 0x4acaa
movl $0x15f, %edx            # imm = 0x15F
callq 0x30a0