// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_definingzenamespacezeorzeerror
static struct mirth_name_Namespace mw_mirth_elab_definingzenamespacezeorzeerror (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_LexicalState* v5 = in_zaMirth_1->mlexicalzestate;
	incref(MK_mirth_mirth_LexicalState(v5));
	incref(MK_mirth_mirth_LexicalState(v5));
	struct std_maybe_Maybe_1 v6 = v5->mdefiningzenamespace;
	incref(MK_std_maybe_Maybe_1(v6));
	decref(MK_mirth_mirth_LexicalState(v5));
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	uint64_t branch_Token_8;
	VAL branch_zux1_9;
	switch ((v6).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v10 = mtp_std_maybe_Maybe_1_Some(v6);
			branch_zux1_9 = v10;
			branch_Token_8 = in_Token_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case std_maybe_Maybe_1_None: {
			STR* v11;
			STRLIT(v11, "error: no namespace for definition", 34);
			mw_mirth_mirth_zaMirth_emitzefatalzeerrorzx(in_zaMirth_1, in_Token_2, v11);
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	struct mirth_mirth_zaMirth* v15;
	struct mirth_mirth_Prop_1* v16;
	struct std_maybe_Maybe_1 v17 = mw_mirth_mirth_Prop_1_compute(branch_zaMirth_7, V_mirth_mirth_Prop_1(branch_zux1_9), &v15, &v16);
	struct std_maybe_Maybe_1 v18 = mtw_std_maybe_Maybe_1_Some(MK_mirth_mirth_Prop_1(v16));
	struct mirth_mirth_LexicalState* v19 = mirth_mirth_LexicalState_set_definingzenamespace(v5, v18);
	struct mirth_mirth_LexicalState* v20 = v15->mlexicalzestate;
	decref(MK_mirth_mirth_LexicalState(v20));
	v15->mlexicalzestate = v19;
	struct mirth_mirth_zaMirth* branch_zaMirth_21;
	uint64_t branch_Token_22;
	VAL branch_zux1_23;
	switch ((v17).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v24 = mtp_std_maybe_Maybe_1_Some(v17);
			branch_zux1_23 = v24;
			branch_Token_22 = branch_Token_8;
			branch_zaMirth_21 = v15;
		} break;
		case std_maybe_Maybe_1_None: {
			STR* v25;
			STRLIT(v25, "error: couldn't compute namespace for definition", 48);
			mw_mirth_mirth_zaMirth_emitzefatalzeerrorzx(v15, branch_Token_8, v25);
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_21;
	return V_mirth_name_Namespace(branch_zux1_23);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq 0x2eb7fe(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xa6184
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq 0x2eb7d9(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x48(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x50(%rbp), %rax
cmpq $0x0, %rax
je 0xa6184
movq -0x30(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq 0x2eb7ae(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x58(%rbp)
movq -0x60(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xa6184
movq -0x30(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq 0x2eb789(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x68(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x70(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xa6186
jmp 0xa6188
movq -0x30(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0x2eb759(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xa6248
movq -0x30(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x2eb72d(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x88(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x90(%rbp), %rax
cmpq $0x0, %rax
je 0xa6248
movq -0x30(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq 0x2eb6f9(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x98(%rbp)
movq -0xa0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xa6248
movq -0x30(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq 0x2eb6cb(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0xa8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xa624a
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rcx
movq %rcx, -0xc0(%rbp)
movq 0x20(%rax), %rax
movq %rax, -0xb8(%rbp)
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
movq %rax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xa6339
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
movq %rax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xe0(%rbp), %rax
cmpq $0x0, %rax
je 0xa6339
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
movq %rax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movq -0xf0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xa6339
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x100(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xa633b
jmp 0xa633d
movq -0x30(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0x2eb5a1(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xa6441
movq -0x30(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq 0x2eb56f(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rax
cmpq $0x0, %rax
je 0xa6441
movq -0x30(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq 0x2eb537(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x128(%rbp)
movq -0x130(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xa6441
movq -0x30(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq 0x2eb509(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x138(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x140(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xa643f
movq -0x30(%rbp), %rax
movq %rax, -0x150(%rbp)
leaq 0x2eb4cf(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x148(%rbp)
movq -0x150(%rbp), %rdi
movq -0x148(%rbp), %rsi
callq 0x127c0
jmp 0xa6441
jmp 0xa6443
movl -0xc0(%rbp), %eax
movl %eax, -0x2e4(%rbp)
testl %eax, %eax
je 0xa64bd
jmp 0xa6455
movl -0x2e4(%rbp), %eax
subl $0x1, %eax
jne 0xa65de
jmp 0xa6466
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x174a0
movq %rax, -0x180(%rbp)
movq %rdx, -0x178(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x158(%rbp)
jmp 0xa65f7
jmp 0xa64bf
cmpq $0x0, 0x12ef2a9(%rip)   # 0x1395770
jne 0xa64e1
leaq 0x2b1de9(%rip), %rdi    # 0x3582b9
movl $0x22, %esi
callq 0xb6c0
movq %rax, 0x12ef28f(%rip)   # 0x1395770
jmp 0xa64e3
movq 0x12ef286(%rip), %rax   # 0x1395770
movq %rax, -0x198(%rbp)
leaq 0x2eac60(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xa65b8
movq 0x12ef251(%rip), %rax   # 0x1395770
movq %rax, -0x1a8(%rbp)
leaq 0x2eac2b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1a0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1a8(%rbp), %rax
cmpq $0x0, %rax
je 0xa65b8
movq 0x12ef21a(%rip), %rax   # 0x1395770
movq %rax, -0x1b8(%rbp)
leaq 0x2eabf4(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1b0(%rbp)
movq -0x1b8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xa65b8
movq 0x12ef1e9(%rip), %rax   # 0x1395770
movq %rax, -0x1c8(%rbp)
leaq 0x2eabc3(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1c0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1c8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xa65ba
movq 0x12ef1af(%rip), %rax   # 0x1395770
movq %rax, -0x188(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x188(%rbp), %rdx
callq 0x76b70
jmp 0xa65f7
leaq 0x2ad89c(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x158(%rbp), %rdi
movq -0x170(%rbp), %rsi
leaq -0x1d0(%rbp), %rdx
leaq -0x1d8(%rbp), %rcx
callq 0xa7080
movl %eax, -0x1e8(%rbp)
movq %rdx, -0x1e0(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0x208(%rbp)
leaq 0x2eb226(%rip), %rax    # 0x391860
orq $0x1, %rax
movq %rax, -0x200(%rbp)
movq -0x208(%rbp), %rdi
movq -0x200(%rbp), %rsi
callq 0xca10
movl %eax, -0x1f8(%rbp)
movq %rdx, -0x1f0(%rbp)
movq -0x30(%rbp), %rdi
movl -0x1f8(%rbp), %esi
movq -0x1f0(%rbp), %rdx
callq 0x78960
movq %rax, -0x210(%rbp)
movq -0x1d0(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x218(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0x228(%rbp)
leaq 0x2eb247(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x220(%rbp)
movq -0x220(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xa67a7
movq -0x218(%rbp), %rax
movq %rax, -0x238(%rbp)
leaq 0x2eb212(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x230(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x238(%rbp), %rax
cmpq $0x0, %rax
je 0xa67a7
movq -0x218(%rbp), %rax
movq %rax, -0x248(%rbp)
leaq 0x2eb1d7(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x240(%rbp)
movq -0x248(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xa67a7
movq -0x218(%rbp), %rax
movq %rax, -0x258(%rbp)
leaq 0x2eb1a6(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x250(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x258(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xa67a5
movq -0x218(%rbp), %rax
movq %rax, -0x268(%rbp)
leaq 0x2eb169(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x260(%rbp)
movq -0x268(%rbp), %rdi
movq -0x260(%rbp), %rsi
callq 0x127c0
jmp 0xa67a7
jmp 0xa67a9
movq -0x210(%rbp), %rcx
movq -0x1d0(%rbp), %rax
movq %rcx, 0x48(%rax)
movl -0x1e8(%rbp), %eax
movl %eax, -0x2e8(%rbp)
testl %eax, %eax
je 0xa683b
jmp 0xa67cd
movl -0x2e8(%rbp), %eax
subl $0x1, %eax
jne 0xa6962
jmp 0xa67de
movl -0x1e8(%rbp), %edi
movq -0x1e0(%rbp), %rsi
callq 0x174a0
movq %rax, -0x298(%rbp)
movq %rdx, -0x290(%rbp)
movq -0x298(%rbp), %rax
movq %rax, -0x288(%rbp)
movq -0x290(%rbp), %rax
movq %rax, -0x280(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x278(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x270(%rbp)
jmp 0xa697b
jmp 0xa683d
cmpq $0x0, 0x12eef33(%rip)   # 0x1395778
jne 0xa685f
leaq 0x2b1a8e(%rip), %rdi    # 0x3582dc
movl $0x30, %esi
callq 0xb6c0
movq %rax, 0x12eef19(%rip)   # 0x1395778
jmp 0xa6861
movq 0x12eef10(%rip), %rax   # 0x1395778
movq %rax, -0x2b0(%rbp)
leaq 0x2ea8e2(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x2a8(%rbp)
movq -0x2a8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xa6936
movq 0x12eeedb(%rip), %rax   # 0x1395778
movq %rax, -0x2c0(%rbp)
leaq 0x2ea8ad(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x2b8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2c0(%rbp), %rax
cmpq $0x0, %rax
je 0xa6936
movq 0x12eeea4(%rip), %rax   # 0x1395778
movq %rax, -0x2d0(%rbp)
leaq 0x2ea876(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x2c8(%rbp)
movq -0x2d0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xa6936
movq 0x12eee73(%rip), %rax   # 0x1395778
movq %rax, -0x2e0(%rbp)
leaq 0x2ea845(%rip), %rax    # 0x391158
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 0xa6938
movq 0x12eee39(%rip), %rax   # 0x1395778
movq %rax, -0x2a0(%rbp)
movq -0x1d0(%rbp), %rdi
movq -0x160(%rbp), %rsi
movq -0x2a0(%rbp), %rdx
callq 0x76b70
jmp 0xa697b
leaq 0x2ad518(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x270(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x288(%rbp), %rdi
movq -0x280(%rbp), %rsi
callq 0x59ad0
movl %eax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
nopw %cs:(%rax,%rax)