// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_name_Namespace_mangledzj
static void mw_mirth_name_Namespace_mangledzj (struct mirth_mirth_zaMirth* in_zaMirth_1, STR* in_zaStr_2, struct mirth_name_Namespace in_Namespace_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, STR* *out_zaStr_5) {
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	STR* branch_zaStr_7;
	switch ((in_Namespace_3).tag) {
		case mirth_name_Namespace_Root: {
			STR* v8;
			STRLIT(v8, "__root__", 8);
			STR* v9;
			mw_std_str_zaStr_pushzestrzx(v8, in_zaStr_2, &v9);
			branch_zaStr_7 = v9;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_name_Namespace_Package: {
			uint64_t v10 = mtp_mirth_name_Namespace_Package(in_Namespace_3);
			struct mirth_mirth_zaMirth* v11;
			uint64_t v12 = mw_mirth_package_Package_name(in_zaMirth_1, v10, &v11);
			struct mirth_mirth_zaMirth* v13;
			STR* v14;
			mw_mirth_name_Name_mangledzj(v11, in_zaStr_2, v12, &v13, &v14);
			branch_zaStr_7 = v14;
			branch_zaMirth_6 = v13;
		} break;
		case mirth_name_Namespace_Module: {
			uint64_t v15 = mtp_mirth_name_Namespace_Module(in_Namespace_3);
			struct mirth_mirth_zaMirth* v16;
			struct mirth_name_QName* v17 = mw_mirth_module_Module_qname(in_zaMirth_1, v15, &v16);
			struct mirth_mirth_zaMirth* v18;
			STR* v19;
			mw_mirth_name_QName_mangledzj(v16, in_zaStr_2, v17, &v18, &v19);
			branch_zaStr_7 = v19;
			branch_zaMirth_6 = v18;
		} break;
		case mirth_name_Namespace_Tycon: {
			struct mirth_tycon_Tycon v20 = mtp_mirth_name_Namespace_Tycon(in_Namespace_3);
			struct mirth_mirth_zaMirth* v21;
			struct mirth_name_QName* v22 = mw_mirth_tycon_Tycon_qnamezehard(in_zaMirth_1, v20, &v21);
			struct mirth_mirth_zaMirth* v23;
			STR* v24;
			mw_mirth_name_QName_mangledzj(v21, in_zaStr_2, v22, &v23, &v24);
			branch_zaStr_7 = v24;
			branch_zaMirth_6 = v23;
		} break;
		case mirth_name_Namespace_Word: {
			uint64_t v25 = mtp_mirth_name_Namespace_Word(in_Namespace_3);
			struct mirth_mirth_zaMirth* v26;
			struct mirth_name_QName* v27 = mw_mirth_word_Word_qnamezehard(in_zaMirth_1, v25, &v26);
			struct mirth_mirth_zaMirth* v28;
			STR* v29;
			mw_mirth_name_QName_mangledzj(v26, in_zaStr_2, v27, &v28, &v29);
			branch_zaStr_7 = v29;
			branch_zaMirth_6 = v28;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaStr_5 = branch_zaStr_7;
	*out_zaMirth_4 = branch_zaMirth_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movl %edx, -0x10(%rbp)
movq %rcx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl -0x10(%rbp), %eax
movq %rax, -0x140(%rbp)
subq $0x4, %rax
ja 0x22c9e0
movq -0x140(%rbp), %rax
leaq 0x1269e8(%rip), %rcx    # 0x3530dc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0x22c6ff
cmpq $0x0, 0x116a549(%rip)   # 0x1396c50
jne 0x22c721
leaq 0x1401bb(%rip), %rdi    # 0x36c8cb
movl $0x8, %esi
callq 0xb6c0
movq %rax, 0x116a52f(%rip)   # 0x1396c50
jmp 0x22c723
movq 0x116a526(%rip), %rax   # 0x1396c50
movq %rax, -0x58(%rbp)
leaq 0x164a23(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x22c7da
movq 0x116a4fa(%rip), %rax   # 0x1396c50
movq %rax, -0x68(%rbp)
leaq 0x1649f7(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
cmpq $0x0, %rax
je 0x22c7da
movq 0x116a4cc(%rip), %rax   # 0x1396c50
movq %rax, -0x78(%rbp)
leaq 0x1649c9(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x22c7da
movq 0x116a4a4(%rip), %rax   # 0x1396c50
movq %rax, -0x88(%rbp)
leaq 0x16499e(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x22c7dc
movq 0x116a46d(%rip), %rax   # 0x1396c50
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
movq -0x20(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0xb940
movq -0x90(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x22c9f9
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59cf0
movq %rax, -0x98(%rbp)
movq -0x18(%rbp), %rdi
movq -0x98(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x47060
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0xa8(%rbp), %rdx
leaq -0xb0(%rbp), %rcx
leaq -0xb8(%rbp), %r8
callq 0x22ca20
movq -0xb8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x22c9f9
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59d40
movq %rax, -0xc0(%rbp)
movq -0x18(%rbp), %rdi
movq -0xc0(%rbp), %rsi
leaq -0xc8(%rbp), %rdx
callq 0x454e0
movq %rax, -0xd0(%rbp)
movq -0xc8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0xd0(%rbp), %rdx
leaq -0xd8(%rbp), %rcx
leaq -0xe0(%rbp), %r8
callq 0x22c170
movq -0xe0(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x22c9f9
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59d90
movl %eax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movq -0x18(%rbp), %rdi
movl -0xf0(%rbp), %esi
movq -0xe8(%rbp), %rdx
leaq -0xf8(%rbp), %rcx
callq 0x5b0b0
movq %rax, -0x100(%rbp)
movq -0xf8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x100(%rbp), %rdx
leaq -0x108(%rbp), %rcx
leaq -0x110(%rbp), %r8
callq 0x22c170
movq -0x110(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x22c9f9
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x5a3f0
movq %rax, -0x118(%rbp)
movq -0x18(%rbp), %rdi
movq -0x118(%rbp), %rsi
leaq -0x120(%rbp), %rdx
callq 0x5b1d0
movq %rax, -0x128(%rbp)
movq -0x120(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x128(%rbp), %rdx
leaq -0x130(%rbp), %rcx
leaq -0x138(%rbp), %r8
callq 0x22c170
movq -0x138(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x22c9f9
leaq 0x12749a(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopl (%rax,%rax)