// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaTypeElab_elabzetypezeconzx
static struct mirth_type_Type mw_mirth_elab_zaTypeElab_elabzetypezeconzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_elab_zaTypeElab* in_zaTypeElab_2, struct std_either_Either_2 in_Either_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_elab_zaTypeElab* *out_zaTypeElab_5) {
	incref(MK_std_either_Either_2(in_Either_3));
	struct std_maybe_Maybe_1 v7 = mw_std_either_Either_2_leftzy(in_Either_3);
	bool branch_Bool_8;
	struct mirth_mirth_zaMirth* branch_zaMirth_9;
	VAL branch_zux1_10;
	switch ((v7).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v11 = mtp_std_maybe_Maybe_1_Some(v7);
			struct mirth_mirth_zaMirth* v12;
			STR* v13 = mw_mirth_name_Name_zgStr(in_zaMirth_1, V_mirth_name_Name(v11), &v12);
			STR* v14;
			STRLIT(v14, "Mut", 3);
			bool v15 = (str_cmp(v13, v14) == 0);
			branch_zux1_10 = MK_mirth_elab_zaTypeElab(in_zaTypeElab_2);
			branch_zaMirth_9 = v12;
			branch_Bool_8 = v15;
		} break;
		case std_maybe_Maybe_1_None: {
			bool v16 = false;
			branch_zux1_10 = MK_mirth_elab_zaTypeElab(in_zaTypeElab_2);
			branch_zaMirth_9 = in_zaMirth_1;
			branch_Bool_8 = v16;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	struct mirth_mirth_zaMirth* branch_zaMirth_17;
	struct mirth_type_Type branch_Type_18;
	struct mirth_elab_zaTypeElab* branch_zaTypeElab_19;
	if (branch_Bool_8) {
		decref(MK_std_either_Either_2(in_Either_3));
		uint64_t v20 = V_mirth_elab_zaTypeElab(branch_zux1_10)->mtoken;
		struct mirth_mirth_zaMirth* v21;
		uint64_t v22 = mw_mirth_token_Token_next(branch_zaMirth_9, v20, &v21);
		uint64_t v23 = V_mirth_elab_zaTypeElab(branch_zux1_10)->mtoken;
		struct mirth_mirth_zaMirth* v24;
		uint64_t v25 = mw_mirth_token_Token_argsze1(v21, v23, &v24);
		V_mirth_elab_zaTypeElab(branch_zux1_10)->mtoken = v25;
		struct mirth_mirth_zaMirth* v26;
		struct mirth_elab_zaTypeElab* v27;
		struct mirth_type_Type v28 = mw_mirth_elab_zaTypeElab_elabzetypezeargzx(v24, V_mirth_elab_zaTypeElab(branch_zux1_10), &v26, &v27);
		struct mirth_type_Type v29 = mtw_mirth_type_Type_Mut(v28);
		v27->mtoken = v22;
		branch_zaTypeElab_19 = v27;
		branch_Type_18 = v29;
		branch_zaMirth_17 = v26;
	} else {
		struct mirth_mirth_zaMirth* v30;
		struct mirth_elab_zaTypeElab* v31;
		struct std_list_List_1 v32;
		struct mirth_type_Type v33 = mw_mirth_elab_zaTypeElab_resolvezetypezeconzenamezx(branch_zaMirth_9, V_mirth_elab_zaTypeElab(branch_zux1_10), in_Either_3, &v30, &v31, &v32);
		struct mirth_mirth_zaMirth* v34;
		struct mirth_elab_zaTypeElab* v35;
		struct std_list_List_1 v36;
		struct mirth_type_Type v37 = mw_mirth_elab_zaTypeElab_elabzetypezeargszx(v30, v31, v33, v32, &v34, &v35, &v36);
		struct mirth_mirth_zaMirth* v38;
		struct std_list_List_1 v39;
		struct mirth_type_Type v40 = mw_mirth_type_Type_applyzesubst(v34, v36, v37, &v38, &v39);
		decref(MK_std_list_List_1(v39));
		uint64_t v41 = v35->mtoken;
		struct mirth_mirth_zaMirth* v42;
		uint64_t v43 = mw_mirth_token_Token_next(v38, v41, &v42);
		v35->mtoken = v43;
		branch_zaTypeElab_19 = v35;
		branch_Type_18 = v40;
		branch_zaMirth_17 = v42;
	}
	*out_zaTypeElab_5 = branch_zaTypeElab_19;
	*out_zaMirth_4 = branch_zaMirth_17;
	return branch_Type_18;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x320, %rsp            # imm = 0x320
movl %edx, -0x20(%rbp)
movq %rcx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq -0x48(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xd0d37
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x60(%rbp), %rax
cmpq $0x0, %rax
je 0xd0d37
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movq -0x70(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xd0d37
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x80(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xd0d39
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0xc07e0
movl %eax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movl -0x90(%rbp), %eax
movl %eax, -0x2fc(%rbp)
testl %eax, %eax
je 0xd0f34
jmp 0xd0d68
movl -0x2fc(%rbp), %eax
subl $0x1, %eax
jne 0xd0f8b
jmp 0xd0d79
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x174a0
movq %rax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movq -0x28(%rbp), %rdi
movq -0xc0(%rbp), %rsi
leaq -0xc8(%rbp), %rdx
callq 0x6e5d0
movq %rax, -0xd0(%rbp)
cmpq $0x0, 0x12c4d09(%rip)   # 0x1395ac8
jne 0xd0dd9
leaq 0x288108(%rip), %rdi    # 0x358ed0
movl $0x3, %esi
callq 0xb6c0
movq %rax, 0x12c4cef(%rip)   # 0x1395ac8
jmp 0xd0ddb
movq 0x12c4ce6(%rip), %rax   # 0x1395ac8
movq %rax, -0xe8(%rbp)
leaq 0x2c0368(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xd0eb0
movq 0x12c4cb1(%rip), %rax   # 0x1395ac8
movq %rax, -0xf8(%rbp)
leaq 0x2c0333(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xf0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xf8(%rbp), %rax
cmpq $0x0, %rax
je 0xd0eb0
movq 0x12c4c7a(%rip), %rax   # 0x1395ac8
movq %rax, -0x108(%rbp)
leaq 0x2c02fc(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x100(%rbp)
movq -0x108(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xd0eb0
movq 0x12c4c49(%rip), %rax   # 0x1395ac8
movq %rax, -0x118(%rbp)
leaq 0x2c02cb(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x110(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x118(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xd0eb2
movq 0x12c4c0f(%rip), %rax   # 0x1395ac8
movq %rax, -0xd8(%rbp)
movq -0xd0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x19ad0
cmpl $0x0, %eax
sete %al
andb $0x1, %al
movb %al, -0x119(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq 0x2c15cd(%rip), %rax    # 0x3924c0
movq %rax, -0x128(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movb -0x119(%rbp), %al
andb $0x1, %al
movb %al, -0x91(%rbp)
jmp 0xd0fa4
movb $0x0, -0x131(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq 0x2c1573(%rip), %rax    # 0x3924c0
movq %rax, -0x140(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xa0(%rbp)
movb -0x131(%rbp), %al
andb $0x1, %al
movb %al, -0x91(%rbp)
jmp 0xd0fa4
leaq 0x282eef(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
testb $0x1, -0x91(%rbp)
je 0xd11b8
jmp 0xd0fb3
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x168(%rbp)
movq %rdx, -0x160(%rbp)
movq -0x160(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xd10a8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x178(%rbp)
movq %rdx, -0x170(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x178(%rbp), %rax
cmpq $0x0, %rax
je 0xd10a8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x188(%rbp)
movq %rdx, -0x180(%rbp)
movq -0x188(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xd10a8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x198(%rbp)
movq %rdx, -0x190(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x198(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xd10a6
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x1a8(%rbp)
movq %rdx, -0x1a0(%rbp)
movq -0x1a8(%rbp), %rdi
movq -0x1a0(%rbp), %rsi
callq 0x127c0
jmp 0xd10a8
jmp 0xd10aa
movq -0xb0(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x1b0(%rbp)
movq -0xa0(%rbp), %rdi
movq -0x1b0(%rbp), %rsi
leaq -0x1b8(%rbp), %rdx
callq 0x7b380
movq %rax, -0x1c0(%rbp)
movq -0xb0(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x1c8(%rbp)
movq -0x1b8(%rbp), %rdi
movq -0x1c8(%rbp), %rsi
leaq -0x1d0(%rbp), %rdx
callq 0xa8660
movq %rax, -0x1d8(%rbp)
movq -0x1d8(%rbp), %rcx
movq -0xb0(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x1d0(%rbp), %rdi
movq -0xb0(%rbp), %rsi
leaq -0x1e0(%rbp), %rdx
leaq -0x1e8(%rbp), %rcx
callq 0xd3270
movl %eax, -0x1f8(%rbp)
movq %rdx, -0x1f0(%rbp)
movl -0x1f8(%rbp), %edi
movq -0x1f0(%rbp), %rsi
callq 0xcecf0
movl %eax, -0x208(%rbp)
movq %rdx, -0x200(%rbp)
movq -0x1c0(%rbp), %rcx
movq -0x1e8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x1e8(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x208(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x200(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x150(%rbp)
jmp 0xd1427
movq -0xa0(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movl -0x20(%rbp), %edx
movq -0x18(%rbp), %rcx
leaq -0x210(%rbp), %r8
leaq -0x218(%rbp), %r9
leaq -0x228(%rbp), %rax
movq %rax, (%rsp)
callq 0xd4670
movl %eax, -0x238(%rbp)
movq %rdx, -0x230(%rbp)
movq -0x210(%rbp), %rdi
movq -0x218(%rbp), %rsi
movl -0x238(%rbp), %edx
movq -0x230(%rbp), %rcx
movl -0x228(%rbp), %r8d
movq -0x220(%rbp), %r9
leaq -0x240(%rbp), %r11
leaq -0x248(%rbp), %r10
leaq -0x258(%rbp), %rax
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0xd5e50
movl %eax, -0x268(%rbp)
movq %rdx, -0x260(%rbp)
movq -0x240(%rbp), %rdi
movl -0x258(%rbp), %esi
movq -0x250(%rbp), %rdx
movl -0x268(%rbp), %ecx
movq -0x260(%rbp), %r8
leaq -0x270(%rbp), %r9
leaq -0x280(%rbp), %rax
movq %rax, (%rsp)
callq 0xd65b0
movl %eax, -0x290(%rbp)
movq %rdx, -0x288(%rbp)
movl -0x280(%rbp), %edi
movq -0x278(%rbp), %rsi
callq 0x12780
movq %rax, -0x2a0(%rbp)
movq %rdx, -0x298(%rbp)
movq -0x298(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xd13ae
movl -0x280(%rbp), %edi
movq -0x278(%rbp), %rsi
callq 0x12780
movq %rax, -0x2b0(%rbp)
movq %rdx, -0x2a8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2b0(%rbp), %rax
cmpq $0x0, %rax
je 0xd13ae
movl -0x280(%rbp), %edi
movq -0x278(%rbp), %rsi
callq 0x12780
movq %rax, -0x2c0(%rbp)
movq %rdx, -0x2b8(%rbp)
movq -0x2c0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xd13ae
movl -0x280(%rbp), %edi
movq -0x278(%rbp), %rsi
callq 0x12780
movq %rax, -0x2d0(%rbp)
movq %rdx, -0x2c8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x2d0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xd13ac
movl -0x280(%rbp), %edi
movq -0x278(%rbp), %rsi
callq 0x12780
movq %rax, -0x2e0(%rbp)
movq %rdx, -0x2d8(%rbp)
movq -0x2e0(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
callq 0x127c0
jmp 0xd13ae
jmp 0xd13b0
movq -0x248(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x2e8(%rbp)
movq -0x270(%rbp), %rdi
movq -0x2e8(%rbp), %rsi
leaq -0x2f0(%rbp), %rdx
callq 0x7b380
movq %rax, -0x2f8(%rbp)
movq -0x2f8(%rbp), %rcx
movq -0x248(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x248(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x290(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x288(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x2f0(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x158(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, (%rax)
movq -0x150(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x320, %rsp            # imm = 0x320
popq %rbp
retq
nopw %cs:(%rax,%rax)