// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_elabzedefzehead
static void mw_mirth_elab_elabzedefzehead (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, uint64_t *out_Token_4, uint64_t *out_Name_5, INT *out_Nat_6, struct mirth_mirth_PropState_1 *out_PropState_7) {
	struct mirth_mirth_zaMirth* v8;
	struct std_maybe_Maybe_1 v9 = mw_mirth_token_Token_namezfdnamezy(in_zaMirth_1, in_Token_2, &v8);
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	uint64_t branch_Token_11;
	VAL branch_zux1_12;
	switch ((v9).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v13 = mtp_std_maybe_Maybe_1_Some(v9);
			branch_zux1_12 = v13;
			branch_Token_11 = in_Token_2;
			branch_zaMirth_10 = v8;
		} break;
		case std_maybe_Maybe_1_None: {
			STR* v14;
			STRLIT(v14, "expected name", 13);
			mw_mirth_mirth_zaMirth_emitzefatalzeerrorzx(v8, in_Token_2, v14);
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	uint64_t branch_Name_17;
	switch ((V_std_either_Either_2(branch_zux1_12)).tag) {
		case std_either_Either_2_Left: {
			VAL v18 = mtp_std_either_Either_2_Left(V_std_either_Either_2(branch_zux1_12));
			branch_Name_17 = V_mirth_name_Name(v18);
		} break;
		case std_either_Either_2_Right: {
			VAL v19 = mtp_std_either_Either_2_Right(V_std_either_Either_2(branch_zux1_12));
			struct std_list_Nest_1* v20 = mw_mirth_name_DName_parts(V_mirth_name_DName(v19));
			VAL v21 = mw_std_list_Nest_1_last(v20);
			branch_Name_17 = V_mirth_name_Name(v21);
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	struct mirth_mirth_zaMirth* v22;
	INT v23 = mw_mirth_token_Token_numzeargs(branch_zaMirth_10, branch_Token_11, &v22);
	struct mirth_mirth_LexicalState* v24 = v22->mlexicalzestate;
	incref(MK_mirth_mirth_LexicalState(v24));
	FNPTR v25 = &mb_mirth_elab_elabzedefzehead_0;
	struct mirth_mirth_PropState_1 v26 = mtw_mirth_mirth_PropState_1_Delay(v24, MK_mirth_token_Token(branch_Token_11), MKFNPTR(v25));
	*out_PropState_7 = v26;
	*out_Nat_6 = v23;
	*out_Name_5 = branch_Name_17;
	*out_Token_4 = branch_Token_11;
	*out_zaMirth_3 = v22;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1d0, %rsp            # imm = 0x1D0
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0x78530
movl %eax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x1c4(%rbp)
testl %eax, %eax
je 0xa1808
jmp 0xa17be
movl -0x1c4(%rbp), %eax
subl $0x1, %eax
jne 0xa1923
jmp 0xa17cf
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x174a0
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xa193c
jmp 0xa180a
cmpq $0x0, 0x12f3f46(%rip)   # 0x1395758
jne 0xa182c
leaq 0x2b6a7b(%rip), %rdi    # 0x358296
movl $0xd, %esi
callq 0xb6c0
movq %rax, 0x12f3f2c(%rip)   # 0x1395758
jmp 0xa182e
movq 0x12f3f23(%rip), %rax   # 0x1395758
movq %rax, -0x90(%rbp)
leaq 0x2ef915(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xa1903
movq 0x12f3eee(%rip), %rax   # 0x1395758
movq %rax, -0xa0(%rbp)
leaq 0x2ef8e0(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x98(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa0(%rbp), %rax
cmpq $0x0, %rax
je 0xa1903
movq 0x12f3eb7(%rip), %rax   # 0x1395758
movq %rax, -0xb0(%rbp)
leaq 0x2ef8a9(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xa8(%rbp)
movq -0xb0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xa1903
movq 0x12f3e86(%rip), %rax   # 0x1395758
movq %rax, -0xc0(%rbp)
leaq 0x2ef878(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xb8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xa1905
movq 0x12f3e4c(%rip), %rax   # 0x1395758
movq %rax, -0x80(%rbp)
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x80(%rbp), %rdx
callq 0x76b70
jmp 0xa193c
leaq 0x2b2557(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x7bd50
movl %eax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movl -0xd8(%rbp), %eax
movl %eax, -0x1c8(%rbp)
testl %eax, %eax
je 0xa1978
jmp 0xa1968
movl -0x1c8(%rbp), %eax
subl $0x1, %eax
je 0xa19c5
jmp 0xa1a3c
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x7bd50
movl %eax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movl -0xf8(%rbp), %edi
movq -0xf0(%rbp), %rsi
callq 0x74840
movq %rax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0xc8(%rbp)
jmp 0xa1a55
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x7bd50
movl %eax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movl -0x118(%rbp), %edi
movq -0x110(%rbp), %rsi
callq 0x748f0
movq %rax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x108(%rbp), %rdi
callq 0x85940
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rdi
callq 0x855c0
movq %rax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0xc8(%rbp)
jmp 0xa1a55
leaq 0x2b243e(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
leaq -0x138(%rbp), %rdx
callq 0x78f50
movq %rax, -0x140(%rbp)
movq -0x138(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x148(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq 0x2efe59(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xa1b57
movq -0x148(%rbp), %rax
movq %rax, -0x168(%rbp)
leaq 0x2efe24(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x160(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x168(%rbp), %rax
cmpq $0x0, %rax
je 0xa1b57
movq -0x148(%rbp), %rax
movq %rax, -0x178(%rbp)
leaq 0x2efded(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x170(%rbp)
movq -0x178(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xa1b57
movq -0x148(%rbp), %rax
movq %rax, -0x188(%rbp)
leaq 0x2efdbc(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x180(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x188(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xa1b59
leaq 0x2980(%rip), %rax      # 0xa44e0
movq %rax, -0x190(%rbp)
movq -0x148(%rbp), %rdi
movq -0x58(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq 0x2f02c8(%rip), %rax    # 0x391e48
movq %rax, -0x1a8(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x1c0(%rbp)
leaq 0x2ef64c(%rip), %rax    # 0x3911e8
movq %rax, -0x1b8(%rbp)
movq -0x1b0(%rbp), %rsi
movq -0x1a8(%rbp), %rdx
movq -0x1c0(%rbp), %rcx
movq -0x1b8(%rbp), %r8
callq 0x788b0
movl %eax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movq 0x10(%rbp), %rax
movq -0x1a0(%rbp), %rcx
movq %rcx, (%rax)
movq -0x198(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rax
movq -0x140(%rbp), %rcx
movq %rcx, (%rax)
movq -0xc8(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x58(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x138(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbp
retq
nopl (%rax,%rax)