// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_external_External_cname
static STR* mw_mirth_external_External_cname (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_External_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	void* v5 = field_mut(&mfld_mirth_external_External_cname, in_External_2);
	bool v6 = mut_is_set(v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	STR* branch_Str_8;
	if (v6) {
		VAL v9 = mut_get(v5);
		branch_Str_8 = value_str(v9);
		branch_zaMirth_7 = in_zaMirth_1;
	} else {
		STR* v10;
		STRLIT(v10, "", 0);
		STR* v11;
		STRLIT(v11, "mext_", 5);
		STR* v12;
		mw_std_str_zaStr_pushzestrzx(v11, v10, &v12);
		struct mirth_mirth_zaMirth* v13;
		struct mirth_name_QName* v14 = mw_mirth_external_External_qnamezehard(in_zaMirth_1, in_External_2, &v13);
		struct mirth_mirth_zaMirth* v15;
		STR* v16;
		mw_mirth_name_QName_mangledzj(v13, v12, v14, &v15, &v16);
		incref(MKSTR(v16));
		mut_set(MKSTR(v16), v5);
		branch_Str_8 = v16;
		branch_zaMirth_7 = v15;
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Str_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rsi
leaq 0x10db22e(%rip), %rdi   # 0x1398240
callq 0x40d30
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x45e40
andb $0x1, %al
movb %al, -0x21(%rbp)
testb $0x1, -0x21(%rbp)
je 0x2bd05e
movq -0x20(%rbp), %rdi
callq 0x40f30
movq %rax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0xb980
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x2bd3d3
jmp 0x2bd060
cmpq $0x0, 0x10db1e8(%rip)   # 0x1398250
jne 0x2bd081
leaq 0x9ef47(%rip), %rdi     # 0x35bfb8
xorl %eax, %eax
movl %eax, %esi
callq 0xb6c0
movq %rax, 0x10db1cf(%rip)   # 0x1398250
jmp 0x2bd083
movq 0x10db1c6(%rip), %rax   # 0x1398250
movq %rax, -0x60(%rbp)
leaq 0xd40c3(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2bd13d
movq 0x10db19a(%rip), %rax   # 0x1398250
movq %rax, -0x70(%rbp)
leaq 0xd4097(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x68(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x70(%rbp), %rax
cmpq $0x0, %rax
je 0x2bd13d
movq 0x10db16c(%rip), %rax   # 0x1398250
movq %rax, -0x80(%rbp)
leaq 0xd4069(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x78(%rbp)
movq -0x80(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2bd13d
movq 0x10db144(%rip), %rax   # 0x1398250
movq %rax, -0x90(%rbp)
leaq 0xd403e(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x88(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x90(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x2bd13f
movq 0x10db10a(%rip), %rax   # 0x1398250
movq %rax, -0x50(%rbp)
jmp 0x2bd14c
cmpq $0x0, 0x10db104(%rip)   # 0x1398258
jne 0x2bd16e
leaq 0xb0ae7(%rip), %rdi     # 0x36dc44
movl $0x5, %esi
callq 0xb6c0
movq %rax, 0x10db0ea(%rip)   # 0x1398258
jmp 0x2bd170
movq 0x10db0e1(%rip), %rax   # 0x1398258
movq %rax, -0xa8(%rbp)
leaq 0xd3fd3(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2bd245
movq 0x10db0ac(%rip), %rax   # 0x1398258
movq %rax, -0xb8(%rbp)
leaq 0xd3f9e(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb8(%rbp), %rax
cmpq $0x0, %rax
je 0x2bd245
movq 0x10db075(%rip), %rax   # 0x1398258
movq %rax, -0xc8(%rbp)
leaq 0xd3f67(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movq -0xc8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2bd245
movq 0x10db044(%rip), %rax   # 0x1398258
movq %rax, -0xd8(%rbp)
leaq 0xd3f36(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xd0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x2bd247
movq 0x10db00a(%rip), %rax   # 0x1398258
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rdi
movq -0x50(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
callq 0xb940
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
callq 0x8a9c0
movq %rax, -0xf0(%rbp)
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
movq -0xf0(%rbp), %rdx
leaq -0xf8(%rbp), %rcx
leaq -0x100(%rbp), %r8
callq 0x22c170
movq -0x100(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0xd3e94(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2bd384
movq -0x100(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq 0xd3e5f(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rax
cmpq $0x0, %rax
je 0x2bd384
movq -0x100(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq 0xd3e28(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x128(%rbp)
movq -0x130(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2bd384
movq -0x100(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq 0xd3df7(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x138(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x140(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x2bd386
movq -0x100(%rbp), %rax
movq %rax, -0x150(%rbp)
leaq 0xd3dbd(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x148(%rbp)
movq -0x20(%rbp), %rdx
movq -0x150(%rbp), %rdi
movq -0x148(%rbp), %rsi
callq 0x431a0
movq -0x100(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
nopl (%rax,%rax)