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

	char *opt_file = NULL;
	char *opt_arch = 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_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_C) != 0
						&& strcmp(opt_target, _OPT_TARGET_LLVMIR) != 0
						&& strcmp(opt_target, _OPT_TARGET_ILIR) != 0) {
					_error(
						"the option '-target' is specified a invalid value '%s', maybe specify a 'c' or 'llvmir' or 'ilir'.",
						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_LLVMIR;
	}

	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 = FE_ARCH_32;
	if (strcmp(opt_arch, _OPT_ARCH_32) == 0) {
		arch = FE_ARCH_32;
	} else if (strcmp(opt_arch, _OPT_ARCH_64) == 0) {
		arch = FE_ARCH_64;
	} else {
		assert(0);
	}
	ctx = fe_parser_new_context(
		opt_file, RSTR_CSTR(&preprocessed_source), RSTR_LEN(&preprocessed_source), arch
	);
	fe_parser_parse(ctx);

	// 语义解析。
	fe_sem_process(ctx);
	
	// 执行操作（编译、打印AST）。
	if (strcmp(opt_action, _OPT_ACTION_COMPILE) == 0) {
		if (strcmp(opt_target, _OPT_TARGET_LLVMIR) == 0) {
			// 输出LLVM IR。
			IRGeneratorLlvmirContext *irgen_ctx = fe_irgen_llvmir_new_context(ctx, output);
			fe_irgen_llvmir_generate(irgen_ctx);
			fe_irgen_llvmir_free_context(irgen_ctx);
		} else if (strcmp(opt_target, _OPT_TARGET_C) == 0) {
			// 输出C。
			IRGeneratorCContext *irgen_ctx = fe_irgen_c_new_context(ctx, output);
			fe_irgen_c_generate(irgen_ctx);
			fe_irgen_c_free_context(irgen_ctx);
		} else if (strcmp(opt_target, _OPT_TARGET_ILIR) == 0) {
			// 输出到ILIR。
			IRGeneratorContext *irgen_ctx = fe_irgen_new_context(ctx, output);
			fe_irgen_generate(irgen_ctx);
			fe_irgen_free_context(irgen_ctx);
		} else {
			assert(0);
		}
	} else if (strcmp(opt_action, _OPT_ACTION_PRINTAST) == 0) {
		// 打印语法树。
		fe_parser_print_ast(ctx, output);
	} else {
		assert(0);
	}
	
	// 释放资源。
_end:
	rstr_free(&preprocessed_source);
	if (opt_output != NULL) {
		fclose(output);
	}
	if (ctx != NULL) {
		fe_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, %r15
movl %edi, %ebx
callq 0x89c7
callq 0x381b
callq 0x51a1
callq 0x5d52
cmpl $0x1, %ebx
je 0x23dc1
leaq -0x1d915(%rip), %rdx    # 0x5d48
leaq -0x1bdca(%rip), %rcx    # 0x789a
leaq -0xc0(%rbp), %rdi
movq %rdx, %rsi
movq %rcx, %r8
callq 0x54e0
cmpl $0x2, %ebx
jl 0x23d70
movl %ebx, %ecx
movl $0x1, %r13d
xorl %esi, %esi
leaq 0x2453e(%rip), %rax     # 0x47bce
movq %rax, -0x58(%rbp)
xorl %edx, %edx
movq $0x0, -0x50(%rbp)
xorl %r14d, %r14d
movq $0x0, -0x40(%rbp)
movq $0x0, -0x60(%rbp)
movslq %r13d, %rax
movq (%r15,%rax,8), %r12
cmpb $0x2d, (%r12)
jne 0x23788
movq %rdx, -0x30(%rbp)
movl %ecx, %ebx
movq %rsi, -0x38(%rbp)
movq %r12, %rdi
leaq 0x243a5(%rip), %rsi     # 0x47a7c
callq 0x30e0
testl %eax, %eax
je 0x23799
movq %r12, %rdi
leaq 0x2444e(%rip), %rsi     # 0x47b3c
callq 0x30e0
testl %eax, %eax
je 0x237d9
movq %r12, %rdi
leaq 0x24484(%rip), %rsi     # 0x47b89
callq 0x30e0
testl %eax, %eax
je 0x23823
movq %r12, %rdi
leaq 0x2453f(%rip), %rsi     # 0x47c5b
callq 0x30e0
testl %eax, %eax
je 0x23895
movq %r12, %rdi
leaq 0x245dc(%rip), %rsi     # 0x47d0f
callq 0x30e0
testl %eax, %eax
je 0x238f5
movq %r12, %rdi
leaq 0x245ca(%rip), %rsi     # 0x47d14
callq 0x30e0
testl %eax, %eax
jne 0x23dae
cmpq $0x0, -0x60(%rbp)
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
jne 0x23dcd
movl %ebx, %ecx
incl %r13d
cmpl %ebx, %r13d
jge 0x23dd6
movslq %r13d, %rax
movq (%r15,%rax,8), %rax
movq %rax, -0x60(%rbp)
jmp 0x2396f
testq %rsi, %rsi
jne 0x23cf3
movq %r12, %rsi
jmp 0x2396f
cmpq $0x0, -0x30(%rbp)
jne 0x23d13
incl %r13d
cmpl %ebx, %r13d
movq -0x38(%rbp), %rsi
jge 0x23d1f
movl %ebx, %ecx
movslq %r13d, %rax
movq (%r15,%rax,8), %rdx
movzbl (%rdx), %eax
cmpl $0x36, %eax
je 0x2380a
cmpl $0x33, %eax
jne 0x23d04
cmpb $0x32, 0x1(%rdx)
je 0x23814
jmp 0x23d04
cmpq $0x0, -0x50(%rbp)
jne 0x23d32
incl %r13d
cmpl %ebx, %r13d
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
jge 0x23d3e
movl %ebx, %ecx
movslq %r13d, %rax
movq (%r15,%rax,8), %rax
movq %rax, -0x50(%rbp)
jmp 0x2396f
cmpb $0x34, 0x1(%rdx)
jne 0x23d04
cmpb $0x0, 0x2(%rdx)
je 0x2396f
jmp 0x23d04
testq %r14, %r14
jne 0x23d51
incl %r13d
cmpl %ebx, %r13d
jge 0x23d5d
movslq %r13d, %rax
movq (%r15,%rax,8), %r14
movq %r14, %rdi
leaq 0x24385(%rip), %rsi     # 0x47bce
callq 0x30e0
testl %eax, %eax
je 0x23965
movq %r14, %rdi
leaq 0x24376(%rip), %rsi     # 0x47bd6
callq 0x30e0
testl %eax, %eax
je 0x23965
movq %r14, -0x48(%rbp)
movq %r14, %rdi
leaq 0x24364(%rip), %rsi     # 0x47bdf
callq 0x30e0
testl %eax, %eax
jne 0x23e0d
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %r14
jmp 0x23969
cmpq $0x0, -0x40(%rbp)
jne 0x23de6
incl %r13d
cmpl %ebx, %r13d
jge 0x23def
movslq %r13d, %rax
movq (%r15,%rax,8), %rdi
cmpb $0x63, (%rdi)
movq %rdi, -0x40(%rbp)
jne 0x238c6
cmpb $0x0, 0x1(%rdi)
je 0x2397d
movq %rdi, %r12
leaq 0x243d0(%rip), %rsi     # 0x47ca0
callq 0x30e0
testl %eax, %eax
je 0x23965
movq %r12, %rdi
leaq 0x243c0(%rip), %rsi     # 0x47ca7
callq 0x30e0
testl %eax, %eax
je 0x23965
jmp 0x23e26
leal 0x1(%r13), %eax
cmpl %ebx, %eax
jge 0x23d7c
addl $0x2, %r13d
cmpl %ebx, %r13d
jge 0x23d7c
cltq
movq (%r15,%rax,8), %rdi
movslq %r13d, %rax
movq (%r15,%rax,8), %rax
movq %rax, -0x48(%rbp)
callq 0x777e
movq %rax, %r12
movq -0x48(%rbp), %rdi
callq 0x777e
movq %rax, -0x48(%rbp)
leaq -0xc0(%rbp), %rdi
movq %r12, %rsi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x5845
leaq -0xc0(%rbp), %rdi
movq %r12, %rsi
movq -0x48(%rbp), %rdx
movl $0x1, %ecx
callq 0x564c
movq -0x38(%rbp), %rsi
movl %ebx, %ecx
movq -0x30(%rbp), %rdx
incl %r13d
cmpl %ecx, %r13d
jl 0x236b1
jmp 0x23985
movl %ebx, %ecx
movq -0x38(%rbp), %rsi
jmp 0x2396b
testq %rsi, %rsi
movq %rsi, -0x38(%rbp)
je 0x23d70
testq %rdx, %rdx
leaq 0x25b42(%rip), %rbx     # 0x494de
cmovneq %rdx, %rbx
movq -0x50(%rbp), %rax
testq %rax, %rax
leaq 0x1f558(%rip), %rcx     # 0x42f06
cmoveq %rcx, %rax
movq %rax, -0x50(%rbp)
testq %r14, %r14
movq -0x58(%rbp), %rax
cmovneq %r14, %rax
movq %rax, -0x58(%rbp)
movq -0x40(%rbp), %rax
testq %rax, %rax
leaq 0x242cd(%rip), %r13     # 0x47ca0
cmovneq %rax, %r13
leaq 0x243ff(%rip), %rdi     # 0x47ddd
callq 0x777e
movq %rax, %r14
callq 0x7745
movq %rax, %r12
leaq 0x2a469(%rip), %rsi     # 0x4de5e
movq %rax, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x7945
leaq -0xc0(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x5845
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl $0x1, %ecx
callq 0x564c
leaq 0x243ae(%rip), %rdi     # 0x47de6
callq 0x777e
movq %rax, %r14
callq 0x7745
movq %rax, %r12
movq %rax, %rdi
leaq 0x2a40c(%rip), %rsi     # 0x4de5e
movq %r13, -0x40(%rbp)
movq %r13, %rdx
xorl %eax, %eax
callq 0x7945
movq %r15, %rdi
movq %r14, %rsi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x5845
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl $0x1, %ecx
callq 0x564c
leaq -0x64(%rbp), %rsi
movl $0x0, (%rsi)
movq -0x38(%rbp), %rdi
movq %rdi, %r15
callq 0x95a5
testq %rax, %rax
movq -0x60(%rbp), %r13
je 0x23dff
movq %rax, %r12
testq %r13, %r13
je 0x23ada
leaq 0x24350(%rip), %rsi     # 0x47e0a
movq %r13, %rdi
callq 0x3140
movq %rax, -0x30(%rbp)
testq %rax, %rax
jne 0x23ae8
leaq 0x2433a(%rip), %rdi     # 0x47e0c
movq %r13, %rsi
jmp 0x23e31
movq 0x344f7(%rip), %rax     # 0x57fd8
movq (%rax), %rax
movq %rax, -0x30(%rbp)
leaq -0x78(%rbp), %r14
movq %r14, %rdi
callq 0x7354
movl -0x64(%rbp), %ecx
movq %r14, (%rsp)
leaq -0xc0(%rbp), %r14
movq %r15, %rdi
movq -0x50(%rbp), %rsi
movq %r12, %rdx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x3ce58
movq %r12, %rdi
callq 0x31a0
movq %r14, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x55be
leaq 0x240a7(%rip), %rsi     # 0x47bdf
movq -0x58(%rbp), %rdi
callq 0x30e0
testl %eax, %eax
je 0x23b6b
movzbl (%rbx), %eax
cmpl $0x36, %eax
je 0x23b90
cmpl $0x33, %eax
movq -0x40(%rbp), %r14
jne 0x23d8f
cmpb $0x32, 0x1(%rbx)
jne 0x23d8f
movl $0x1, %ecx
jmp 0x23ba3
movq -0x70(%rbp), %rax
testq %rax, %rax
leaq 0x1f38d(%rip), %rdi     # 0x42f06
cmovneq %rax, %rdi
movq -0x30(%rbp), %r15
movq %r15, %rsi
callq 0x30b0
xorl %ebx, %ebx
jmp 0x23cbc
cmpb $0x34, 0x1(%rbx)
movq -0x40(%rbp), %r14
jne 0x23d8f
movl $0x2, %ecx
cmpb $0x0, 0x2(%rbx)
jne 0x23d8f
movq -0x70(%rbp), %rax
testq %rax, %rax
leaq 0x1f34b(%rip), %rsi     # 0x42f06
cmovneq %rax, %rsi
movl -0x74(%rbp), %edx
movq %r15, %rdi
callq 0x241f7
movq %rax, %rbx
movq %rax, %rdi
callq 0x242e5
movq %rbx, %rdi
callq 0x29b18
leaq 0x23fea(%rip), %rsi     # 0x47bce
movq -0x58(%rbp), %r12
movq %r12, %rdi
callq 0x30e0
testl %eax, %eax
je 0x23c1f
leaq 0x23fdb(%rip), %rsi     # 0x47bd6
movq %r12, %rdi
callq 0x30e0
testl %eax, %eax
jne 0x23e38
movq %rbx, %rdi
movq -0x30(%rbp), %r15
movq %r15, %rsi
callq 0x2482a
jmp 0x23cbc
leaq 0x2407a(%rip), %rsi     # 0x47ca0
movq %r14, %rdi
callq 0x30e0
testl %eax, %eax
je 0x23c7a
cmpb $0x63, (%r14)
movq -0x30(%rbp), %r15
jne 0x23c43
cmpb $0x0, 0x1(%r14)
je 0x23c9e
leaq 0x2405d(%rip), %rsi     # 0x47ca7
movq %r14, %rdi
callq 0x30e0
testl %eax, %eax
jne 0x23e57
movq %rbx, %rdi
movq %r15, %rsi
callq 0xc00b
movq %rax, %r14
movq %rax, %rdi
callq 0xb7d4
movq %r14, %rdi
callq 0xc12c
jmp 0x23cbc
movq %rbx, %rdi
movq -0x30(%rbp), %r15
movq %r15, %rsi
callq 0x18c4f
movq %rax, %r14
movq %rax, %rdi
callq 0x1801c
movq %r14, %rdi
callq 0x18d70
jmp 0x23cbc
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1451b
movq %rax, %r14
movq %rax, %rdi
callq 0x13ea0
movq %r14, %rdi
callq 0x145d5
leaq -0x78(%rbp), %rdi
callq 0x7852
testq %r13, %r13
je 0x23cd2
movq %r15, %rdi
callq 0x3060
testq %rbx, %rbx
je 0x23cdf
movq %rbx, %rdi
callq 0x242a2
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x24081(%rip), %rdi     # 0x47d7b
movq %r12, %rdx
xorl %eax, %eax
callq 0x23e91
movq %rdx, %rsi
leaq 0x23dda(%rip), %rdi     # 0x47ae8
jmp 0x23e31
leaq 0x23d68(%rip), %rdi     # 0x47a82
jmp 0x23e06
leaq 0x23d9d(%rip), %rdi     # 0x47ac3
leaq 0x23d4f(%rip), %rsi     # 0x47a7c
jmp 0x23e31
leaq 0x23e0c(%rip), %rdi     # 0x47b45
jmp 0x23e06
leaq 0x23d7e(%rip), %rdi     # 0x47ac3
leaq 0x23df0(%rip), %rsi     # 0x47b3c
jmp 0x23e31
leaq 0x23e39(%rip), %rdi     # 0x47b91
jmp 0x23e06
leaq 0x23d5f(%rip), %rdi     # 0x47ac3
leaq 0x23e1e(%rip), %rsi     # 0x47b89
jmp 0x23e31
leaq 0x24044(%rip), %rdi     # 0x47dbb
jmp 0x23e06
leaq 0x23d40(%rip), %rdi     # 0x47ac3
leaq 0x23f85(%rip), %rsi     # 0x47d0f
jmp 0x23e31
leaq 0x1b5ca(%rip), %rdi     # 0x3f360
leaq 0x2409d(%rip), %rsi     # 0x47e3a
leaq 0x240af(%rip), %rcx     # 0x47e53
movl $0x125, %edx            # imm = 0x125
callq 0x30a0
leaq 0x23fa4(%rip), %rsi     # 0x47d59
movq %r12, %rdi
callq 0x30e0
testl %eax, %eax
jne 0x23e1a
callq 0x23e76
xorl %edi, %edi
callq 0x3170
leaq 0x23f48(%rip), %rdi     # 0x47d1c
jmp 0x23e06
leaq 0x23ce6(%rip), %rdi     # 0x47ac3
leaq 0x23f30(%rip), %rsi     # 0x47d14
jmp 0x23e31
leaq 0x23e76(%rip), %rdi     # 0x47c63
jmp 0x23e06
leaq 0x23ccd(%rip), %rdi     # 0x47ac3
leaq 0x23e5e(%rip), %rsi     # 0x47c5b
jmp 0x23e31
leaq 0x23feb(%rip), %rdi     # 0x47df1
xorl %eax, %eax
callq 0x23e91
leaq 0x23dd6(%rip), %rdi     # 0x47bea
movq -0x48(%rbp), %rsi
jmp 0x23e31
leaq 0x23f3e(%rip), %rdi     # 0x47d5f
movq %r12, %rsi
jmp 0x23e31
leaq 0x23e7f(%rip), %rdi     # 0x47cac
movq -0x40(%rbp), %rsi
xorl %eax, %eax
callq 0x23e91
leaq 0x1b521(%rip), %rdi     # 0x3f360
leaq 0x23ff4(%rip), %rsi     # 0x47e3a
leaq 0x24006(%rip), %rcx     # 0x47e53
movl $0x147, %edx            # imm = 0x147
callq 0x30a0
leaq 0x1b502(%rip), %rdi     # 0x3f360
leaq 0x23fd5(%rip), %rsi     # 0x47e3a
leaq 0x23fe7(%rip), %rcx     # 0x47e53
movl $0x141, %edx            # imm = 0x141
callq 0x30a0