// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, -0x68(%rbp)
movq %rsi, %r15
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
leaq -0x90(%rbp), %rbx
movq %rbx, %rdx
callq 0x307a8
movq (%rbx), %rdi
leaq -0x88(%rbp), %rbx
movq %r15, %rsi
movq %rbx, %rdx
callq 0x30835
movq %rdx, %rcx
movq (%rbx), %rdi
leaq -0x80(%rbp), %rbx
leaq -0xa0(%rbp), %r14
movq %r15, -0x60(%rbp)
movq %r15, %rsi
movl %eax, %edx
movq %rbx, %r8
movq %r14, %r9
callq 0x30877
movq (%rbx), %rdi
movq (%r14), %rsi
leaq -0x78(%rbp), %rbx
movq %rbx, %rdx
callq 0x14ce9
movl %eax, %edi
movq %rdx, %rsi
movq (%rbx), %rax
movq %rax, -0x58(%rbp)
movq $0x0, -0x38(%rbp)
leaq -0x50(%rbp), %rbx
leaq 0x10e4e74(%rip), %r15   # 0x11153b8
leaq 0x4(%r12), %r14
movq $0x0, -0x30(%rbp)
movq %r14, -0x40(%rbp)
movq %rbx, %rdx
callq 0x111eb
cmpl $0x1, %eax
jne 0x306b8
movq %rdx, %rdi
callq 0xd745
movq %rax, %rdi
shrq $0x30, %rdi
andq %r12, %rax
movq %rax, %rsi
callq 0x2fc6c
cmpl $0x1, %eax
jne 0x305f7
movq %rdx, %rdi
callq 0xd745
movq %r15, %rdi
movq %rax, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %rdi
andq %r12, %rdi
cmpq %r14, %rax
jae 0x305db
movq %rbx, %r14
movq %r15, %rbx
movq 0x8(%rdi), %r13
movq 0x10(%rdi), %r15
decl (%rdi)
je 0x30603
testb $0x1, %r15b
je 0x30608
movq %r13, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x30608
incl (%rax)
jmp 0x30608
testq %rdi, %rdi
je 0x305f7
decl (%rdi)
jne 0x305f7
andq $-0x4, %rax
movq %rax, %rdi
leaq 0xe180f(%rip), %rsi     # 0x111e01
callq 0xd13d
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
jmp 0x30555
callq 0x5030
movq %r13, %rdi
movq %r15, %rsi
callq 0x9353
movq %rdx, %r13
movq -0x48(%rbp), %rax
movq %rax, %rcx
andq %r12, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x30648
movl -0x50(%rbp), %edi
decl (%rcx)
jne 0x30648
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xe0c36(%rip), %rsi     # 0x111279
callq 0xd13d
movq -0x38(%rbp), %rsi
movq %rsi, %rax
andq %r12, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
movq %rbx, %r15
jne 0x3069b
decl (%rax)
movq %r14, %rbx
jne 0x30681
movq -0x30(%rbp), %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xe0c45(%rip), %rsi     # 0x1112c1
callq 0xd13d
xorl %edi, %edi
movl $0x1, %eax
movq %rax, -0x30(%rbp)
movq %r13, -0x38(%rbp)
xorl %esi, %esi
movq -0x40(%rbp), %r14
jmp 0x30555
xorl %edi, %edi
movl $0x1, %eax
movq %rax, -0x30(%rbp)
movq %r13, -0x38(%rbp)
xorl %esi, %esi
movq %r14, %rbx
movq -0x40(%rbp), %r14
jmp 0x30555
testl %eax, %eax
jne 0x30778
movq -0x48(%rbp), %rax
andq %rax, %r12
sete %cl
testb $0x3, %al
setne %dl
orb %cl, %dl
jne 0x306ef
movl -0x50(%rbp), %edi
decl (%r12)
jne 0x306ef
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xe0b8f(%rip), %rsi     # 0x111279
callq 0xd13d
leaq -0x70(%rbp), %r15
leaq -0x50(%rbp), %rbx
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %r12
movq %r12, %rsi
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq %r15, %r8
movq %rbx, %r9
callq 0x30877
leaq 0xe099c(%rip), %rsi     # 0x1110b8
xorl %edi, %edi
callq 0x8e6d
movq (%r15), %rdi
leaq 0xe11c3(%rip), %rsi     # 0x1118f0
callq 0x8e6d
leaq 0xe167f(%rip), %rsi     # 0x111db8
movq %r12, %rdi
callq 0xd34b
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
callq 0x104c4
callq 0xd699
movq %rax, %rbx
callq 0xd6f2
movq -0x68(%rbp), %rcx
movq %rax, (%rcx)
callq 0xd6f2
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xaff3c(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xaff41(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302