// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_elabzedeclzx
static uint64_t mw_mirth_elab_elabzedeclzx (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v7;
	mw_mirth_mirth_zaMirth_errorzetokenzx(in_zaMirth_1, in_Token_2, &v7);
	struct mirth_mirth_zaMirth* v8;
	struct std_maybe_Maybe_1 v9 = mw_mirth_token_Token_namezy(v7, in_Token_2, &v8);
	struct mirth_mirth_zaMirth* v10;
	VAL v11;
	uint64_t v12 = mw_std_maybe_Maybe_1_unwrap_1_sp27(v8, in_Token_2, v9, &v10, &v11);
	struct mirth_mirth_zaMirth* v13;
	struct std_list_List_1 v14 = mw_mirth_name_Name_defs(v10, V_mirth_name_Name(v11), &v13);
	struct std_maybe_Maybe_1 v15 = { .tag=std_maybe_Maybe_1_None };
	bool v16 = true;
	struct mirth_mirth_zaMirth* r17 = v13;
	struct std_maybe_Maybe_1 v18 = v15;
	struct std_list_List_1 v19 = v14;
	bool v20 = v16;
	bool v21 = v16;
	while (v21) {
		struct mirth_mirth_zaMirth* r22 = r17;
		struct std_maybe_Maybe_1 v23 = v18;
		struct std_list_List_1 v24 = v19;
		bool v25 = v20;
		struct std_list_List_1 v26;
		struct std_maybe_Maybe_1 v27 = mw_std_list_List_1_uncons(v24, &v26);
		struct mirth_mirth_zaMirth* branch_zaMirth_28;
		struct std_maybe_Maybe_1 branch_Maybe_29;
		struct std_list_List_1 branch_List_30;
		bool branch_Bool_31;
		switch ((v27).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v32 = mtp_std_maybe_Maybe_1_Some(v27);
				struct std_maybe_Maybe_1 v33 = mw_mirth_def_Def_macrozy(V_mirth_def_Def(v32));
				struct mirth_mirth_zaMirth* branch_zaMirth_34;
				struct std_maybe_Maybe_1 branch_Maybe_35;
				switch ((v33).tag) {
					case std_maybe_Maybe_1_Some: {
						VAL v36 = mtp_std_maybe_Maybe_1_Some(v33);
						struct mirth_mirth_zaMirth* v37;
						struct mirth_macro_MacroAction v38 = mw_mirth_macro_Macro_action(r22, V_mirth_macro_Macro(v36), &v37);
						struct std_maybe_Maybe_1 v39 = mw_mirth_macro_MacroAction_declzy(v38);
						branch_Maybe_35 = v39;
						branch_zaMirth_34 = v37;
					} break;
					case std_maybe_Maybe_1_None: {
						struct std_maybe_Maybe_1 v40 = { .tag=std_maybe_Maybe_1_None };
						branch_Maybe_35 = v40;
						branch_zaMirth_34 = r22;
					} break;
					default: {
						do_panic(str_make("unexpected fallthrough in match\n", 32));
					}
				}
				struct mirth_mirth_zaMirth* branch_zaMirth_41;
				struct std_maybe_Maybe_1 branch_Maybe_42;
				struct std_list_List_1 branch_List_43;
				switch ((branch_Maybe_35).tag) {
					case std_maybe_Maybe_1_None: {
						branch_List_43 = v26;
						branch_Maybe_42 = v23;
						branch_zaMirth_41 = branch_zaMirth_34;
					} break;
					default: {
						decref(MK_std_list_List_1(v26));
						decref(MK_std_maybe_Maybe_1(v23));
						struct std_list_List_1 v44 = { .tag=std_list_List_1_Nil };
						branch_List_43 = v44;
						branch_Maybe_42 = branch_Maybe_35;
						branch_zaMirth_41 = branch_zaMirth_34;
					} break;
				}
				bool v45 = true;
				branch_Bool_31 = v45;
				branch_List_30 = branch_List_43;
				branch_Maybe_29 = branch_Maybe_42;
				branch_zaMirth_28 = branch_zaMirth_41;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v46 = false;
				branch_Bool_31 = v46;
				branch_List_30 = v26;
				branch_Maybe_29 = v23;
				branch_zaMirth_28 = r22;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v21 = branch_Bool_31;
		v20 = branch_Bool_31;
		v19 = branch_List_30;
		v18 = branch_Maybe_29;
		r17 = branch_zaMirth_28;
	}
	decref(MK_std_list_List_1(v19));
	struct mirth_mirth_zaMirth* v47;
	VAL v48;
	uint64_t v49 = mw_std_maybe_Maybe_1_unwrap_1_sp27(r17, v12, v18, &v47, &v48);
	push_resource(MKI64(0));
	push_resource(MK_mirth_mirth_zaMirth(v47));
	push_value(MK_mirth_token_Token(v49));
	run_value(v48);
	uint64_t v50 = V_mirth_token_Token(pop_value());
	struct mirth_mirth_zaMirth* r51 = V_mirth_mirth_zaMirth(pop_resource());
	*out_zaMirth_3 = r51;
	pop_resource();
	return v50;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x390, %rsp            # imm = 0x390
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 0x9fa30
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x28(%rbp), %rdx
callq 0x9fc80
movl %eax, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x38(%rbp), %edx
movq -0x30(%rbp), %rcx
leaq -0x40(%rbp), %r8
leaq -0x50(%rbp), %r9
callq 0x9fce0
movq %rax, -0x58(%rbp)
movq -0x40(%rbp), %rdi
movq -0x50(%rbp), %rsi
leaq -0x60(%rbp), %rdx
callq 0x44ed0
movl %eax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
leaq -0x80(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x1, -0x81(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0xa8(%rbp)
movb -0x81(%rbp), %al
andb $0x1, %al
movb %al, -0xb1(%rbp)
movb -0x81(%rbp), %al
andb $0x1, %al
movb %al, -0xb2(%rbp)
testb $0x1, -0xb2(%rbp)
je 0x9f65c
movq -0x90(%rbp), %rax
movq %rax, -0xc0(%rbp)
movups -0xa0(%rbp), %xmm0
movaps %xmm0, -0xd0(%rbp)
movups -0xb0(%rbp), %xmm0
movaps %xmm0, -0xe0(%rbp)
movb -0xb1(%rbp), %al
andb $0x1, %al
movb %al, -0xe1(%rbp)
movl -0xe0(%rbp), %edi
movq -0xd8(%rbp), %rsi
leaq -0xf8(%rbp), %rdx
callq 0x2c490
movl %eax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movl -0x108(%rbp), %eax
movl %eax, -0x38c(%rbp)
testl %eax, %eax
je 0x9f57f
jmp 0x9f0c3
movl -0x38c(%rbp), %eax
subl $0x1, %eax
jne 0x9f5dc
jmp 0x9f0d4
movl -0x108(%rbp), %edi
movq -0x100(%rbp), %rsi
callq 0x174a0
movq %rax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movq -0x148(%rbp), %rdi
movq -0x140(%rbp), %rsi
callq 0x452c0
movl %eax, -0x168(%rbp)
movq %rdx, -0x160(%rbp)
movl -0x168(%rbp), %edi
movq -0x160(%rbp), %rsi
callq 0x9d7a0
movl %eax, -0x158(%rbp)
movq %rdx, -0x150(%rbp)
movl -0x158(%rbp), %eax
movl %eax, -0x390(%rbp)
testl %eax, %eax
je 0x9f1ec
jmp 0x9f149
movl -0x390(%rbp), %eax
subl $0x1, %eax
jne 0x9f22b
jmp 0x9f15a
movl -0x158(%rbp), %edi
movq -0x150(%rbp), %rsi
callq 0x174a0
movq %rax, -0x190(%rbp)
movq %rdx, -0x188(%rbp)
movq -0xc0(%rbp), %rdi
movq -0x190(%rbp), %rsi
leaq -0x198(%rbp), %rdx
callq 0x9feb0
movl %eax, -0x1a8(%rbp)
movq %rdx, -0x1a0(%rbp)
movl -0x1a8(%rbp), %edi
movq -0x1a0(%rbp), %rsi
callq 0x9ff20
movl %eax, -0x1b8(%rbp)
movq %rdx, -0x1b0(%rbp)
movq -0x1b8(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0x170(%rbp)
jmp 0x9f244
leaq -0x1c8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x1c8(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x1c0(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x170(%rbp)
jmp 0x9f244
leaq 0x2b4c4f(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movl -0x180(%rbp), %eax
testl %eax, %eax
jne 0x9f29b
jmp 0x9f250
movq -0xf8(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x1d0(%rbp)
jmp 0x9f522
jmp 0x9f29d
movl -0xf8(%rbp), %edi
movq -0xf0(%rbp), %rsi
callq 0x12780
movq %rax, -0x200(%rbp)
movq %rdx, -0x1f8(%rbp)
movq -0x1f8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x9f3b0
movl -0xf8(%rbp), %edi
movq -0xf0(%rbp), %rsi
callq 0x12780
movq %rax, -0x210(%rbp)
movq %rdx, -0x208(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x210(%rbp), %rax
cmpq $0x0, %rax
je 0x9f3b0
movl -0xf8(%rbp), %edi
movq -0xf0(%rbp), %rsi
callq 0x12780
movq %rax, -0x220(%rbp)
movq %rdx, -0x218(%rbp)
movq -0x220(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x9f3b0
movl -0xf8(%rbp), %edi
movq -0xf0(%rbp), %rsi
callq 0x12780
movq %rax, -0x230(%rbp)
movq %rdx, -0x228(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x230(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x9f3ae
movl -0xf8(%rbp), %edi
movq -0xf0(%rbp), %rsi
callq 0x12780
movq %rax, -0x240(%rbp)
movq %rdx, -0x238(%rbp)
movq -0x240(%rbp), %rdi
movq -0x238(%rbp), %rsi
callq 0x127c0
jmp 0x9f3b0
jmp 0x9f3b2
jmp 0x9f3b4
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x250(%rbp)
movq %rdx, -0x248(%rbp)
movq -0x248(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x9f4c7
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x260(%rbp)
movq %rdx, -0x258(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x260(%rbp), %rax
cmpq $0x0, %rax
je 0x9f4c7
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x270(%rbp)
movq %rdx, -0x268(%rbp)
movq -0x270(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x9f4c7
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x280(%rbp)
movq %rdx, -0x278(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x280(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x9f4c5
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x290(%rbp)
movq %rdx, -0x288(%rbp)
movq -0x290(%rbp), %rdi
movq -0x288(%rbp), %rsi
callq 0x127c0
jmp 0x9f4c7
jmp 0x9f4c9
leaq -0x2a0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x2a0(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movq -0x298(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movb $0x1, -0x2a1(%rbp)
movb -0x2a1(%rbp), %al
andb $0x1, %al
movb %al, -0x131(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x1e8(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x110(%rbp)
jmp 0x9f5f5
movb $0x0, -0x2a2(%rbp)
movb -0x2a2(%rbp), %al
andb $0x1, %al
movb %al, -0x131(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x110(%rbp)
jmp 0x9f5f5
leaq 0x2b489e(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x131(%rbp), %al
andb $0x1, %al
movb %al, -0xb2(%rbp)
movb -0x131(%rbp), %al
andb $0x1, %al
movb %al, -0xb1(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x9f042
jmp 0x9f65e
movl -0xb0(%rbp), %edi
movq -0xa8(%rbp), %rsi
callq 0x12780
movq %rax, -0x2b8(%rbp)
movq %rdx, -0x2b0(%rbp)
movq -0x2b0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x9f771
movl -0xb0(%rbp), %edi
movq -0xa8(%rbp), %rsi
callq 0x12780
movq %rax, -0x2c8(%rbp)
movq %rdx, -0x2c0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2c8(%rbp), %rax
cmpq $0x0, %rax
je 0x9f771
movl -0xb0(%rbp), %edi
movq -0xa8(%rbp), %rsi
callq 0x12780
movq %rax, -0x2d8(%rbp)
movq %rdx, -0x2d0(%rbp)
movq -0x2d8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x9f771
movl -0xb0(%rbp), %edi
movq -0xa8(%rbp), %rsi
callq 0x12780
movq %rax, -0x2e8(%rbp)
movq %rdx, -0x2e0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x2e8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x9f76f
movl -0xb0(%rbp), %edi
movq -0xa8(%rbp), %rsi
callq 0x12780
movq %rax, -0x2f8(%rbp)
movq %rdx, -0x2f0(%rbp)
movq -0x2f8(%rbp), %rdi
movq -0x2f0(%rbp), %rsi
callq 0x127c0
jmp 0x9f771
jmp 0x9f773
movq -0x90(%rbp), %rdi
movq -0x58(%rbp), %rsi
movl -0xa0(%rbp), %edx
movq -0x98(%rbp), %rcx
leaq -0x300(%rbp), %r8
leaq -0x310(%rbp), %r9
callq 0x9fce0
movq %rax, -0x318(%rbp)
movq $0x0, -0x328(%rbp)
leaq 0x2f1901(%rip), %rax    # 0x3910b8
movq %rax, -0x320(%rbp)
movq -0x328(%rbp), %rdi
movq -0x320(%rbp), %rsi
callq 0x5b40
movq -0x300(%rbp), %rax
movq %rax, -0x338(%rbp)
leaq 0x2f219a(%rip), %rax    # 0x391980
movq %rax, -0x330(%rbp)
movq -0x338(%rbp), %rdi
movq -0x330(%rbp), %rsi
callq 0x5b40
movq -0x318(%rbp), %rax
movq %rax, -0x348(%rbp)
leaq 0x2f2633(%rip), %rax    # 0x391e48
movq %rax, -0x340(%rbp)
movq -0x348(%rbp), %rdi
movq -0x340(%rbp), %rsi
callq 0x12cc0
movq -0x310(%rbp), %rdi
movq -0x308(%rbp), %rsi
callq 0x276b0
callq 0x138a0
movq %rax, -0x360(%rbp)
movq %rdx, -0x358(%rbp)
movq -0x360(%rbp), %rax
movq %rax, -0x350(%rbp)
callq 0x13920
movq %rax, -0x378(%rbp)
movq %rdx, -0x370(%rbp)
movq -0x378(%rbp), %rax
movq %rax, -0x368(%rbp)
movq -0x368(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
callq 0x13920
movq %rax, -0x388(%rbp)
movq %rdx, -0x380(%rbp)
movq -0x350(%rbp), %rax
addq $0x390, %rsp            # imm = 0x390
popq %rbp
retq
nopw %cs:(%rax,%rax)