// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_freshenzeaux
static struct mirth_type_StackType mw_mirth_type_StackType_freshenzeaux (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_StackType in_StackType_2, struct std_list_List_1 in_Subst_3, struct mirth_type_StackType in_StackType_4, struct mirth_mirth_zaMirth* *out_zaMirth_5, struct std_list_List_1 *out_Subst_7, struct mirth_type_StackType *out_StackType_8) {
	struct mirth_mirth_zaMirth* v9;
	struct mirth_type_StackType v10 = mw_mirth_type_StackType_expand(in_zaMirth_1, in_StackType_4, &v9);
	struct mirth_mirth_zaMirth* branch_zaMirth_11;
	struct mirth_type_StackType branch_StackType_12;
	struct std_list_List_1 branch_Subst_13;
	struct mirth_type_StackType branch_StackType_14;
	switch ((v10).tag) {
		case mirth_type_StackType_Unit: {
			incref(MK_mirth_type_StackType(in_StackType_2));
			branch_StackType_14 = in_StackType_2;
			branch_Subst_13 = in_Subst_3;
			branch_StackType_12 = in_StackType_2;
			branch_zaMirth_11 = v9;
		} break;
		case mirth_type_StackType_Cons: {
			struct mirth_type_Type v15;
			struct mirth_type_StackType v16 = mtp_mirth_type_StackType_Cons(v10, &v15);
			struct mirth_mirth_zaMirth* v17;
			struct std_list_List_1 v18;
			struct mirth_type_StackType v19;
			struct mirth_type_StackType v20 = mw_mirth_type_StackType_freshenzeaux(v9, in_StackType_2, in_Subst_3, v16, &v17, &v18, &v19);
			struct mirth_mirth_zaMirth* v21;
			struct mirth_type_Type v22;
			struct std_list_List_1 v23 = mw_mirth_type_Type_freshen(v17, v18, v15, &v21, &v22);
			struct mirth_type_StackType v24 = mtw_mirth_type_StackType_Cons(v19, v22);
			branch_StackType_14 = v24;
			branch_Subst_13 = v23;
			branch_StackType_12 = v20;
			branch_zaMirth_11 = v21;
		} break;
		case mirth_type_StackType_With: {
			struct mirth_type_Type v25;
			struct mirth_type_StackType v26 = mtp_mirth_type_StackType_With(v10, &v25);
			struct mirth_mirth_zaMirth* v27;
			struct std_list_List_1 v28;
			struct mirth_type_StackType v29;
			struct mirth_type_StackType v30 = mw_mirth_type_StackType_freshenzeaux(v9, in_StackType_2, in_Subst_3, v26, &v27, &v28, &v29);
			struct mirth_mirth_zaMirth* v31;
			struct mirth_type_Type v32;
			struct std_list_List_1 v33 = mw_mirth_type_Resource_freshen(v27, v28, v25, &v31, &v32);
			struct mirth_type_StackType v34 = mtw_mirth_type_StackType_With(v29, v32);
			branch_StackType_14 = v34;
			branch_Subst_13 = v33;
			branch_StackType_12 = v30;
			branch_zaMirth_11 = v31;
		} break;
		case mirth_type_StackType_ConsLabel: {
			struct mirth_type_Type v35;
			uint64_t v36;
			struct mirth_type_StackType v37 = mtp_mirth_type_StackType_ConsLabel(v10, &v35, &v36);
			struct mirth_mirth_zaMirth* v38;
			struct std_list_List_1 v39;
			struct mirth_type_StackType v40;
			struct mirth_type_StackType v41 = mw_mirth_type_StackType_freshenzeaux(v9, in_StackType_2, in_Subst_3, v37, &v38, &v39, &v40);
			struct mirth_mirth_zaMirth* v42;
			struct mirth_type_Type v43;
			struct std_list_List_1 v44 = mw_mirth_type_Type_freshen(v38, v39, v35, &v42, &v43);
			struct mirth_type_StackType v45 = mtw_mirth_type_StackType_ConsLabel(v40, v43, v36);
			branch_StackType_14 = v45;
			branch_Subst_13 = v44;
			branch_StackType_12 = v41;
			branch_zaMirth_11 = v42;
		} break;
		case mirth_type_StackType_WithLabel: {
			struct mirth_type_Type v46;
			uint64_t v47;
			struct mirth_type_StackType v48 = mtp_mirth_type_StackType_WithLabel(v10, &v46, &v47);
			struct mirth_mirth_zaMirth* v49;
			struct std_list_List_1 v50;
			struct mirth_type_StackType v51;
			struct mirth_type_StackType v52 = mw_mirth_type_StackType_freshenzeaux(v9, in_StackType_2, in_Subst_3, v48, &v49, &v50, &v51);
			struct mirth_mirth_zaMirth* v53;
			struct mirth_type_Type v54;
			struct std_list_List_1 v55 = mw_mirth_type_Resource_freshen(v49, v50, v46, &v53, &v54);
			struct mirth_type_StackType v56 = mtw_mirth_type_StackType_WithLabel(v51, v54, v47);
			branch_StackType_14 = v56;
			branch_Subst_13 = v55;
			branch_StackType_12 = v52;
			branch_zaMirth_11 = v53;
		} break;
		default: {
			struct mirth_type_Type v57 = mw_mirth_type_StackType_zgType(v10);
			struct mirth_mirth_zaMirth* v58;
			struct mirth_type_Type v59;
			struct std_list_List_1 v60 = mw_mirth_type_Type_freshen(v9, in_Subst_3, v57, &v58, &v59);
			struct mirth_type_StackType v61 = mw_mirth_type_Type_zgStackType(v59);
			branch_StackType_14 = v61;
			branch_Subst_13 = v60;
			branch_StackType_12 = in_StackType_2;
			branch_zaMirth_11 = v58;
		} break;
	}
	*out_StackType_8 = branch_StackType_14;
	*out_Subst_7 = branch_Subst_13;
	*out_zaMirth_5 = branch_zaMirth_11;
	return branch_StackType_12;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x388, %rsp            # imm = 0x388
movq 0x28(%rbp), %rax
movq 0x20(%rbp), %rax
leaq 0x10(%rbp), %rax
movl %esi, -0x28(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x38(%rbp)
movq %r8, -0x30(%rbp)
movq %rdi, -0x40(%rbp)
movq %r9, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movl (%rax), %esi
movq 0x8(%rax), %rdx
leaq -0x50(%rbp), %rcx
callq 0xba1d0
movl %eax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movl -0x60(%rbp), %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0x368(%rbp)
subl $0x6, %eax
ja 0x1061d4
movq -0x368(%rbp), %rax
leaq 0x24c4da(%rip), %rcx    # 0x352088
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0x105bb9
movl -0x28(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x6f140
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x90(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x105c76
movl -0x28(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x6f140
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
cmpq $0x0, %rax
je 0x105c76
movl -0x28(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x6f140
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0xb8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x105c76
movl -0x28(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x6f140
movq %rax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x105c78
movq -0x28(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x106292
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
leaq -0xd8(%rbp), %rdx
callq 0xba570
movl %eax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movq -0x50(%rbp), %rdi
movl -0x28(%rbp), %esi
movq -0x20(%rbp), %rdx
movl -0x38(%rbp), %ecx
movq -0x30(%rbp), %r8
leaq -0xe8(%rbp), %r11
leaq -0xf0(%rbp), %r9
leaq -0x100(%rbp), %r10
leaq -0x110(%rbp), %rax
movq (%r11), %rbx
movq %rbx, (%rsp)
movq 0x8(%r11), %r11
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x105b40
movl %eax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0xf0(%rbp), %rdi
movl -0x100(%rbp), %esi
movq -0xf8(%rbp), %rdx
movl -0xd8(%rbp), %ecx
movq -0xd0(%rbp), %r8
leaq -0x128(%rbp), %r9
leaq -0x138(%rbp), %rax
movq %rax, (%rsp)
callq 0xf22e0
movl %eax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movl -0x110(%rbp), %edi
movq -0x108(%rbp), %rsi
movl -0x138(%rbp), %edx
movq -0x130(%rbp), %rcx
callq 0x73df0
movl %eax, -0x158(%rbp)
movq %rdx, -0x150(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x106292
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
leaq -0x168(%rbp), %rdx
callq 0xba740
movl %eax, -0x178(%rbp)
movq %rdx, -0x170(%rbp)
movq -0x50(%rbp), %rdi
movl -0x28(%rbp), %esi
movq -0x20(%rbp), %rdx
movl -0x38(%rbp), %ecx
movq -0x30(%rbp), %r8
leaq -0x178(%rbp), %r11
leaq -0x180(%rbp), %r9
leaq -0x190(%rbp), %r10
leaq -0x1a0(%rbp), %rax
movq (%r11), %rbx
movq %rbx, (%rsp)
movq 0x8(%r11), %r11
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x105b40
movl %eax, -0x1b0(%rbp)
movq %rdx, -0x1a8(%rbp)
movq -0x180(%rbp), %rdi
movl -0x190(%rbp), %esi
movq -0x188(%rbp), %rdx
movl -0x168(%rbp), %ecx
movq -0x160(%rbp), %r8
leaq -0x1b8(%rbp), %r9
leaq -0x1c8(%rbp), %rax
movq %rax, (%rsp)
callq 0xf2a70
movl %eax, -0x1d8(%rbp)
movq %rdx, -0x1d0(%rbp)
movl -0x1a0(%rbp), %edi
movq -0x198(%rbp), %rsi
movl -0x1c8(%rbp), %edx
movq -0x1c0(%rbp), %rcx
callq 0x749e0
movl %eax, -0x1e8(%rbp)
movq %rdx, -0x1e0(%rbp)
movq -0x1e8(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x1b8(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x106292
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
leaq -0x1f8(%rbp), %rdx
leaq -0x200(%rbp), %rcx
callq 0xba980
movl %eax, -0x210(%rbp)
movq %rdx, -0x208(%rbp)
movq -0x50(%rbp), %rdi
movl -0x28(%rbp), %esi
movq -0x20(%rbp), %rdx
movl -0x38(%rbp), %ecx
movq -0x30(%rbp), %r8
leaq -0x210(%rbp), %r11
leaq -0x218(%rbp), %r9
leaq -0x228(%rbp), %r10
leaq -0x238(%rbp), %rax
movq (%r11), %rbx
movq %rbx, (%rsp)
movq 0x8(%r11), %r11
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x105b40
movl %eax, -0x248(%rbp)
movq %rdx, -0x240(%rbp)
movq -0x218(%rbp), %rdi
movl -0x228(%rbp), %esi
movq -0x220(%rbp), %rdx
movl -0x1f8(%rbp), %ecx
movq -0x1f0(%rbp), %r8
leaq -0x250(%rbp), %r9
leaq -0x260(%rbp), %rax
movq %rax, (%rsp)
callq 0xf22e0
movl %eax, -0x270(%rbp)
movq %rdx, -0x268(%rbp)
movq -0x200(%rbp), %r8
movl -0x238(%rbp), %edi
movq -0x230(%rbp), %rsi
movl -0x260(%rbp), %edx
movq -0x258(%rbp), %rcx
callq 0xc9e90
movl %eax, -0x280(%rbp)
movq %rdx, -0x278(%rbp)
movq -0x280(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x278(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x270(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x268(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x248(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x240(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x250(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x106292
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
leaq -0x290(%rbp), %rdx
leaq -0x298(%rbp), %rcx
callq 0xbab70
movl %eax, -0x2a8(%rbp)
movq %rdx, -0x2a0(%rbp)
movq -0x50(%rbp), %rdi
movl -0x28(%rbp), %esi
movq -0x20(%rbp), %rdx
movl -0x38(%rbp), %ecx
movq -0x30(%rbp), %r8
leaq -0x2a8(%rbp), %r11
leaq -0x2b0(%rbp), %r9
leaq -0x2c0(%rbp), %r10
leaq -0x2d0(%rbp), %rax
movq (%r11), %rbx
movq %rbx, (%rsp)
movq 0x8(%r11), %r11
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x105b40
movl %eax, -0x2e0(%rbp)
movq %rdx, -0x2d8(%rbp)
movq -0x2b0(%rbp), %rdi
movl -0x2c0(%rbp), %esi
movq -0x2b8(%rbp), %rdx
movl -0x290(%rbp), %ecx
movq -0x288(%rbp), %r8
leaq -0x2e8(%rbp), %r9
leaq -0x2f8(%rbp), %rax
movq %rax, (%rsp)
callq 0xf2a70
movl %eax, -0x308(%rbp)
movq %rdx, -0x300(%rbp)
movq -0x298(%rbp), %r8
movl -0x2d0(%rbp), %edi
movq -0x2c8(%rbp), %rsi
movl -0x2f8(%rbp), %edx
movq -0x2f0(%rbp), %rcx
callq 0xcb770
movl %eax, -0x318(%rbp)
movq %rdx, -0x310(%rbp)
movq -0x318(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x310(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x308(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x300(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x2e0(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x2d8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x2e8(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x106292
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0xc74c0
movl %eax, -0x328(%rbp)
movq %rdx, -0x320(%rbp)
movq -0x50(%rbp), %rdi
movl -0x38(%rbp), %esi
movq -0x30(%rbp), %rdx
movl -0x328(%rbp), %ecx
movq -0x320(%rbp), %r8
leaq -0x330(%rbp), %r9
leaq -0x340(%rbp), %rax
movq %rax, (%rsp)
callq 0xf22e0
movl %eax, -0x350(%rbp)
movq %rdx, -0x348(%rbp)
movl -0x340(%rbp), %edi
movq -0x338(%rbp), %rsi
callq 0xba2d0
movl %eax, -0x360(%rbp)
movq %rdx, -0x358(%rbp)
movq -0x360(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x358(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x350(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x348(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x330(%rbp), %rax
movq %rax, -0x68(%rbp)
movq 0x28(%rbp), %rax
movups -0x88(%rbp), %xmm0
movups %xmm0, (%rax)
movq 0x20(%rbp), %rax
movups -0x78(%rbp), %xmm0
movups %xmm0, (%rax)
movq -0x68(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, (%rax)
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rdx
addq $0x388, %rsp            # imm = 0x388
popq %rbx
popq %rbp
retq
nopw (%rax,%rax)