// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_elabzemodulezx
static uint64_t mw_mirth_elab_elabzemodulezx (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Module_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v7;
	uint64_t v8 = mw_mirth_module_Module_start(in_zaMirth_1, in_Module_2, &v7);
	struct mirth_mirth_zaMirth* v9;
	uint64_t v10 = mw_mirth_elab_elabzemodulezeheaderzx(v7, v8, &v9);
	struct mirth_name_Namespace v11 = mtw_mirth_name_Namespace_Module(in_Module_2);
	struct mirth_mirth_PropLabel v12 = { .tag=mirth_mirth_PropLabel_DefiningNamespace };
	struct mirth_mirth_zaMirth* v13;
	struct mirth_mirth_Prop_1* v14 = mw_mirth_mirth_PropLabel_prop(v9, MK_mirth_name_Namespace(v11), v12, &v13);
	struct std_maybe_Maybe_1 v15 = mtw_std_maybe_Maybe_1_Some(MK_mirth_mirth_Prop_1(v14));
	struct mirth_mirth_LexicalState* v16 = v13->mlexicalzestate;
	incref(MK_mirth_mirth_LexicalState(v16));
	incref(MK_mirth_mirth_LexicalState(v16));
	struct std_maybe_Maybe_1 v17 = v16->mdefiningzenamespace;
	incref(MK_std_maybe_Maybe_1(v17));
	decref(MK_mirth_mirth_LexicalState(v16));
	struct mirth_mirth_LexicalState* v18 = mirth_mirth_LexicalState_set_definingzenamespace(v16, v15);
	struct mirth_mirth_LexicalState* v19 = v13->mlexicalzestate;
	decref(MK_mirth_mirth_LexicalState(v19));
	v13->mlexicalzestate = v18;
	struct mirth_mirth_zaMirth* v20;
	uint64_t v21 = mw_mirth_elab_elabzedeclszx(v13, v10, &v20);
	struct mirth_mirth_zaMirth* v22;
	bool v23 = mw_mirth_token_Token_modulezeendzy(v20, v21, &v22);
	struct mirth_mirth_zaMirth* branch_zaMirth_24;
	uint64_t branch_Token_25;
	if (v23) {
		branch_Token_25 = v21;
		branch_zaMirth_24 = v22;
	} else {
		STR* v26;
		STRLIT(v26, "Unexpected token in module.", 27);
		mw_mirth_mirth_zaMirth_emitzefatalzeerrorzx(v22, v21, v26);
	}
	struct mirth_mirth_LexicalState* v29 = branch_zaMirth_24->mlexicalzestate;
	incref(MK_mirth_mirth_LexicalState(v29));
	struct mirth_mirth_LexicalState* v30 = mirth_mirth_LexicalState_set_definingzenamespace(v29, v17);
	struct mirth_mirth_LexicalState* v31 = branch_zaMirth_24->mlexicalzestate;
	decref(MK_mirth_mirth_LexicalState(v31));
	branch_zaMirth_24->mlexicalzestate = v30;
	*out_zaMirth_3 = branch_zaMirth_24;
	return in_Module_2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x350, %rsp            # imm = 0x350
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x20(%rbp), %rdx
callq 0x1e83c0
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x1e8410
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x57800
movl %eax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x30(%rbp), %rax
movq %rax, -0x348(%rbp)
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x59830
movq -0x348(%rbp), %rdi
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
movl -0x58(%rbp), %ecx
movq -0x50(%rbp), %r8
leaq -0x60(%rbp), %r9
callq 0x70840
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x1d21cb(%rip), %rax    # 0x391860
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq 0xca10
movl %eax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x60(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq 0x1d220f(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1bf7a1
movq -0xa0(%rbp), %rax
movq %rax, -0xc0(%rbp)
leaq 0x1d21da(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0xb8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc0(%rbp), %rax
cmpq $0x0, %rax
je 0x1bf7a1
movq -0xa0(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq 0x1d21a3(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0xc8(%rbp)
movq -0xd0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1bf7a1
movq -0xa0(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq 0x1d2172(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0xd8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xe0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1bf7a3
jmp 0x1bf7a5
movq -0xa0(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq 0x1d2136(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1bf87a
movq -0xa0(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq 0x1d2101(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0xf8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x100(%rbp), %rax
cmpq $0x0, %rax
je 0x1bf87a
movq -0xa0(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0x1d20ca(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movq -0x110(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1bf87a
movq -0xa0(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq 0x1d2099(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1bf87c
movq -0xa0(%rbp), %rax
movq 0x18(%rax), %rcx
movq %rcx, -0x130(%rbp)
movq 0x20(%rax), %rax
movq %rax, -0x128(%rbp)
movl -0x130(%rbp), %edi
movq -0x128(%rbp), %rsi
callq 0x133a0
movq %rax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movq -0x138(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1bf96e
movl -0x130(%rbp), %edi
movq -0x128(%rbp), %rsi
callq 0x133a0
movq %rax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x150(%rbp), %rax
cmpq $0x0, %rax
je 0x1bf96e
movl -0x130(%rbp), %edi
movq -0x128(%rbp), %rsi
callq 0x133a0
movq %rax, -0x160(%rbp)
movq %rdx, -0x158(%rbp)
movq -0x160(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1bf96e
movl -0x130(%rbp), %edi
movq -0x128(%rbp), %rsi
callq 0x133a0
movq %rax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x170(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1bf970
jmp 0x1bf972
movq -0xa0(%rbp), %rax
movq %rax, -0x180(%rbp)
leaq 0x1d1f69(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1bfa85
movq -0xa0(%rbp), %rax
movq %rax, -0x190(%rbp)
leaq 0x1d1f34(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x188(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x190(%rbp), %rax
cmpq $0x0, %rax
je 0x1bfa85
movq -0xa0(%rbp), %rax
movq %rax, -0x1a0(%rbp)
leaq 0x1d1ef9(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x198(%rbp)
movq -0x1a0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1bfa85
movq -0xa0(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq 0x1d1ec8(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x1a8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1b0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1bfa83
movq -0xa0(%rbp), %rax
movq %rax, -0x1c0(%rbp)
leaq 0x1d1e8b(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
callq 0x127c0
jmp 0x1bfa85
jmp 0x1bfa87
movq -0xa0(%rbp), %rdi
movl -0x88(%rbp), %esi
movq -0x80(%rbp), %rdx
callq 0x78960
movq %rax, -0x1c8(%rbp)
movq -0x60(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x1d0(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x1e0(%rbp)
leaq 0x1d1e28(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x1d8(%rbp)
movq -0x1d8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1bfbc6
movq -0x1d0(%rbp), %rax
movq %rax, -0x1f0(%rbp)
leaq 0x1d1df3(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x1e8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1f0(%rbp), %rax
cmpq $0x0, %rax
je 0x1bfbc6
movq -0x1d0(%rbp), %rax
movq %rax, -0x200(%rbp)
leaq 0x1d1db8(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x1f8(%rbp)
movq -0x200(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1bfbc6
movq -0x1d0(%rbp), %rax
movq %rax, -0x210(%rbp)
leaq 0x1d1d87(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x208(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x210(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1bfbc4
movq -0x1d0(%rbp), %rax
movq %rax, -0x220(%rbp)
leaq 0x1d1d4a(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x218(%rbp)
movq -0x220(%rbp), %rdi
movq -0x218(%rbp), %rsi
callq 0x127c0
jmp 0x1bfbc6
jmp 0x1bfbc8
movq -0x1c8(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x60(%rbp), %rdi
movq -0x38(%rbp), %rsi
leaq -0x228(%rbp), %rdx
callq 0x9ebd0
movq %rax, -0x230(%rbp)
movq -0x228(%rbp), %rdi
movq -0x230(%rbp), %rsi
leaq -0x238(%rbp), %rdx
callq 0x9ef20
andb $0x1, %al
movb %al, -0x239(%rbp)
testb $0x1, -0x239(%rbp)
je 0x1bfc3e
movq -0x230(%rbp), %rax
movq %rax, -0x250(%rbp)
movq -0x238(%rbp), %rax
movq %rax, -0x248(%rbp)
jmp 0x1bfd63
jmp 0x1bfc40
cmpq $0x0, 0x11d6c08(%rip)   # 0x1396850
jne 0x1bfc62
leaq 0x19cba6(%rip), %rdi    # 0x35c7f7
movl $0x1b, %esi
callq 0xb6c0
movq %rax, 0x11d6bee(%rip)   # 0x1396850
jmp 0x1bfc64
movq 0x11d6be5(%rip), %rax   # 0x1396850
movq %rax, -0x268(%rbp)
leaq 0x1d14df(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x260(%rbp)
movq -0x260(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1bfd39
movq 0x11d6bb0(%rip), %rax   # 0x1396850
movq %rax, -0x278(%rbp)
leaq 0x1d14aa(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x270(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x278(%rbp), %rax
cmpq $0x0, %rax
je 0x1bfd39
movq 0x11d6b79(%rip), %rax   # 0x1396850
movq %rax, -0x288(%rbp)
leaq 0x1d1473(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x280(%rbp)
movq -0x288(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1bfd39
movq 0x11d6b48(%rip), %rax   # 0x1396850
movq %rax, -0x298(%rbp)
leaq 0x1d1442(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x290(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x298(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1bfd3b
movq 0x11d6b0e(%rip), %rax   # 0x1396850
movq %rax, -0x258(%rbp)
movq -0x238(%rbp), %rdi
movq -0x230(%rbp), %rsi
movq -0x258(%rbp), %rdx
callq 0x76b70
movq -0x248(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x2a0(%rbp)
movq -0x2a0(%rbp), %rax
movq %rax, -0x2b0(%rbp)
leaq 0x1d1b66(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x2a8(%rbp)
movq -0x2a8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1bfe4a
movq -0x2a0(%rbp), %rax
movq %rax, -0x2c0(%rbp)
leaq 0x1d1b31(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x2b8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2c0(%rbp), %rax
cmpq $0x0, %rax
je 0x1bfe4a
movq -0x2a0(%rbp), %rax
movq %rax, -0x2d0(%rbp)
leaq 0x1d1afa(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x2c8(%rbp)
movq -0x2d0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1bfe4a
movq -0x2a0(%rbp), %rax
movq %rax, -0x2e0(%rbp)
leaq 0x1d1ac9(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x2d8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2e0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1bfe4c
movq -0x2a0(%rbp), %rdi
movl -0x130(%rbp), %esi
movq -0x128(%rbp), %rdx
callq 0x78960
movq %rax, -0x2e8(%rbp)
movq -0x248(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x2f0(%rbp)
movq -0x2f0(%rbp), %rax
movq %rax, -0x300(%rbp)
leaq 0x1d1a5d(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x2f8(%rbp)
movq -0x2f8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1bff91
movq -0x2f0(%rbp), %rax
movq %rax, -0x310(%rbp)
leaq 0x1d1a28(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x308(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x310(%rbp), %rax
cmpq $0x0, %rax
je 0x1bff91
movq -0x2f0(%rbp), %rax
movq %rax, -0x320(%rbp)
leaq 0x1d19ed(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x318(%rbp)
movq -0x320(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1bff91
movq -0x2f0(%rbp), %rax
movq %rax, -0x330(%rbp)
leaq 0x1d19bc(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x328(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x330(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1bff8f
movq -0x2f0(%rbp), %rax
movq %rax, -0x340(%rbp)
leaq 0x1d197f(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x338(%rbp)
movq -0x340(%rbp), %rdi
movq -0x338(%rbp), %rsi
callq 0x127c0
jmp 0x1bff91
jmp 0x1bff93
movq -0x2e8(%rbp), %rcx
movq -0x248(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x248(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
addq $0x350, %rsp            # imm = 0x350
popq %rbp
retq