// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_loadzemodule
static uint64_t mw_mirth_elab_loadzemodule (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_name_QName* in_QName_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, uint64_t *out_Module_6) {
	incref(MK_mirth_name_QName(in_QName_3));
	struct mirth_mirth_zaMirth* v9;
	struct std_maybe_Maybe_1 v10 = mw_mirth_name_QName_defzesoftzy(in_zaMirth_1, in_QName_3, &v9);
	uint64_t branch_Token_11;
	struct mirth_mirth_zaMirth* branch_zaMirth_12;
	uint64_t branch_Module_13;
	switch ((v10).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v14 = mtp_std_maybe_Maybe_1_Some(v10);
			struct std_maybe_Maybe_1 v15 = mw_mirth_def_Def_modulezy(V_mirth_def_Def(v14));
			struct mirth_mirth_zaMirth* branch_zaMirth_16;
			uint64_t branch_Token_17;
			VAL branch_zux1_18;
			VAL branch_zux2_19;
			switch ((v15).tag) {
				case std_maybe_Maybe_1_Some: {
					VAL v20 = mtp_std_maybe_Maybe_1_Some(v15);
					branch_zux2_19 = v20;
					branch_zux1_18 = MK_mirth_name_QName(in_QName_3);
					branch_Token_17 = in_Token_2;
					branch_zaMirth_16 = v9;
				} break;
				case std_maybe_Maybe_1_None: {
					decref(MK_mirth_name_QName(in_QName_3));
					STR* v21;
					STRLIT(v21, "module name already taken", 25);
					mw_mirth_mirth_zaMirth_emitzefatalzeerrorzx(v9, in_Token_2, v21);
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			decref(branch_zux1_18);
			branch_Module_13 = V_mirth_module_Module(branch_zux2_19);
			branch_zaMirth_12 = branch_zaMirth_16;
			branch_Token_11 = branch_Token_17;
		} break;
		case std_maybe_Maybe_1_None: {
			struct mirth_mirth_zaMirth* v26;
			STR* v27 = mw_mirth_name_QName_tozemodulezepath(in_QName_3, v9, &v26);
			struct mirth_mirth_zaMirth* v28;
			uint64_t v29 = mw_mirth_mirth_zaMirth_runzelexerzx(v26, v27, &v28);
			struct mirth_mirth_zaMirth* v30;
			uint64_t v31 = mw_mirth_elab_elabzemodulezx(v28, v29, &v30);
			branch_Module_13 = v31;
			branch_zaMirth_12 = v30;
			branch_Token_11 = in_Token_2;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_Module_6 = branch_Module_13;
	*out_zaMirth_4 = branch_zaMirth_12;
	return branch_Token_11;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1f0, %rsp            # imm = 0x1F0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq 0x1a0112(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1f1750
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq 0x1a00ed(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x40(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x48(%rbp), %rax
cmpq $0x0, %rax
je 0x1f1750
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x1a00c2(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1f1750
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x1a009d(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1f1752
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x70(%rbp), %rdx
callq 0x57b20
movl %eax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movl -0x80(%rbp), %eax
movl %eax, -0x1e4(%rbp)
testl %eax, %eax
je 0x1f1b7e
jmp 0x1f177d
movl -0x1e4(%rbp), %eax
subl $0x1, %eax
jne 0x1f1c04
jmp 0x1f178e
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x174a0
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x452c0
movl %eax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movl -0xc8(%rbp), %edi
movq -0xc0(%rbp), %rsi
callq 0x9c850
movl %eax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movl -0xb8(%rbp), %eax
movl %eax, -0x1e8(%rbp)
testl %eax, %eax
je 0x1f189e
jmp 0x1f17fd
movl -0x1e8(%rbp), %eax
subl $0x1, %eax
jne 0x1f1ac7
jmp 0x1f180e
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x174a0
movq %rax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq 0x19ff74(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x110(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0xd0(%rbp)
jmp 0x1f1ae0
jmp 0x1f18a0
movq -0x18(%rbp), %rax
movq %rax, -0x128(%rbp)
leaq 0x19ff1e(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1f19a4
movq -0x18(%rbp), %rax
movq %rax, -0x138(%rbp)
leaq 0x19feec(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x130(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x138(%rbp), %rax
cmpq $0x0, %rax
je 0x1f19a4
movq -0x18(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq 0x19feb4(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x140(%rbp)
movq -0x148(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1f19a4
movq -0x18(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq 0x19fe86(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x150(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1f19a2
movq -0x18(%rbp), %rax
movq %rax, -0x168(%rbp)
leaq 0x19fe4c(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x160(%rbp)
movq -0x168(%rbp), %rdi
movq -0x160(%rbp), %rsi
callq 0x127c0
jmp 0x1f19a4
jmp 0x1f19a6
jmp 0x1f19a8
cmpq $0x0, 0x11a4f58(%rip)   # 0x1396908
jne 0x1f19ca
leaq 0x16b07a(%rip), %rdi    # 0x35ca33
movl $0x19, %esi
callq 0xb6c0
movq %rax, 0x11a4f3e(%rip)   # 0x1396908
jmp 0x1f19cc
movq 0x11a4f35(%rip), %rax   # 0x1396908
movq %rax, -0x180(%rbp)
leaq 0x19f777(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1f1aa1
movq 0x11a4f00(%rip), %rax   # 0x1396908
movq %rax, -0x190(%rbp)
leaq 0x19f742(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x188(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x190(%rbp), %rax
cmpq $0x0, %rax
je 0x1f1aa1
movq 0x11a4ec9(%rip), %rax   # 0x1396908
movq %rax, -0x1a0(%rbp)
leaq 0x19f70b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x198(%rbp)
movq -0x1a0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1f1aa1
movq 0x11a4e98(%rip), %rax   # 0x1396908
movq %rax, -0x1b0(%rbp)
leaq 0x19f6da(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1a8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1b0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1f1aa3
movq 0x11a4e5e(%rip), %rax   # 0x1396908
movq %rax, -0x170(%rbp)
movq -0x70(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x170(%rbp), %rdx
callq 0x76b70
jmp 0x1f1ae0
leaq 0x1623b3(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
jmp 0x1f1ae2
movq -0xe0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1f1b4d
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xe8(%rbp), %rax
cmpq $0x0, %rax
je 0x1f1b4d
movq -0xe8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1f1b4d
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xe8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1f1b4b
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
callq 0x127c0
jmp 0x1f1b4d
jmp 0x1f1b4f
movq -0xf8(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x88(%rbp)
jmp 0x1f1c1d
movq -0x18(%rbp), %rdi
movq -0x70(%rbp), %rsi
leaq -0x1b8(%rbp), %rdx
callq 0x1ee470
movq %rax, -0x1c0(%rbp)
movq -0x1b8(%rbp), %rdi
movq -0x1c0(%rbp), %rsi
leaq -0x1c8(%rbp), %rdx
callq 0x1bf370
movq %rax, -0x1d0(%rbp)
movq -0x1c8(%rbp), %rdi
movq -0x1d0(%rbp), %rsi
leaq -0x1d8(%rbp), %rdx
callq 0x1bf5e0
movq %rax, -0x1e0(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
jmp 0x1f1c1d
leaq 0x162276(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x98(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x90(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x88(%rbp), %rax
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbp
retq
nopl (%rax)