// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_freshen
static struct std_list_List_1 mw_mirth_type_StackType_freshen (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_list_List_1 in_Subst_2, struct mirth_type_StackType in_StackType_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_type_StackType *out_StackType_6) {
	struct mirth_mirth_zaMirth* v7;
	struct mirth_type_StackType v8 = mw_mirth_type_StackType_expand(in_zaMirth_1, in_StackType_3, &v7);
	struct std_list_List_1 branch_Subst_9;
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	struct mirth_type_StackType branch_StackType_11;
	switch ((v8).tag) {
		case mirth_type_StackType_Unit: {
			struct mirth_type_StackType v12 = { .tag=mirth_type_StackType_Unit };
			branch_StackType_11 = v12;
			branch_zaMirth_10 = v7;
			branch_Subst_9 = in_Subst_2;
		} break;
		case mirth_type_StackType_Cons: {
			struct mirth_type_Type v13;
			struct mirth_type_StackType v14 = mtp_mirth_type_StackType_Cons(v8, &v13);
			struct mirth_mirth_zaMirth* v15;
			struct mirth_type_StackType v16;
			struct std_list_List_1 v17 = mw_mirth_type_StackType_freshen(v7, in_Subst_2, v14, &v15, &v16);
			struct mirth_mirth_zaMirth* v18;
			struct mirth_type_Type v19;
			struct std_list_List_1 v20 = mw_mirth_type_Type_freshen(v15, v17, v13, &v18, &v19);
			struct mirth_type_StackType v21 = mtw_mirth_type_StackType_Cons(v16, v19);
			branch_StackType_11 = v21;
			branch_zaMirth_10 = v18;
			branch_Subst_9 = v20;
		} break;
		case mirth_type_StackType_With: {
			struct mirth_type_Type v22;
			struct mirth_type_StackType v23 = mtp_mirth_type_StackType_With(v8, &v22);
			struct mirth_mirth_zaMirth* v24;
			struct mirth_type_StackType v25;
			struct std_list_List_1 v26 = mw_mirth_type_StackType_freshen(v7, in_Subst_2, v23, &v24, &v25);
			struct mirth_mirth_zaMirth* v27;
			struct mirth_type_Type v28;
			struct std_list_List_1 v29 = mw_mirth_type_Resource_freshen(v24, v26, v22, &v27, &v28);
			struct mirth_type_StackType v30 = mtw_mirth_type_StackType_With(v25, v28);
			branch_StackType_11 = v30;
			branch_zaMirth_10 = v27;
			branch_Subst_9 = v29;
		} break;
		case mirth_type_StackType_ConsLabel: {
			struct mirth_type_Type v31;
			uint64_t v32;
			struct mirth_type_StackType v33 = mtp_mirth_type_StackType_ConsLabel(v8, &v31, &v32);
			struct mirth_mirth_zaMirth* v34;
			struct mirth_type_StackType v35;
			struct std_list_List_1 v36 = mw_mirth_type_StackType_freshen(v7, in_Subst_2, v33, &v34, &v35);
			struct mirth_mirth_zaMirth* v37;
			struct mirth_type_Type v38;
			struct std_list_List_1 v39 = mw_mirth_type_Type_freshen(v34, v36, v31, &v37, &v38);
			struct mirth_type_StackType v40 = mtw_mirth_type_StackType_ConsLabel(v35, v38, v32);
			branch_StackType_11 = v40;
			branch_zaMirth_10 = v37;
			branch_Subst_9 = v39;
		} break;
		case mirth_type_StackType_WithLabel: {
			struct mirth_type_Type v41;
			uint64_t v42;
			struct mirth_type_StackType v43 = mtp_mirth_type_StackType_WithLabel(v8, &v41, &v42);
			struct mirth_mirth_zaMirth* v44;
			struct mirth_type_StackType v45;
			struct std_list_List_1 v46 = mw_mirth_type_StackType_freshen(v7, in_Subst_2, v43, &v44, &v45);
			struct mirth_mirth_zaMirth* v47;
			struct mirth_type_Type v48;
			struct std_list_List_1 v49 = mw_mirth_type_Resource_freshen(v44, v46, v41, &v47, &v48);
			struct mirth_type_StackType v50 = mtw_mirth_type_StackType_WithLabel(v45, v48, v42);
			branch_StackType_11 = v50;
			branch_zaMirth_10 = v47;
			branch_Subst_9 = v49;
		} break;
		default: {
			struct mirth_type_Type v51 = mw_mirth_type_StackType_zgType(v8);
			struct mirth_mirth_zaMirth* v52;
			struct mirth_type_Type v53;
			struct std_list_List_1 v54 = mw_mirth_type_Type_freshen(v7, in_Subst_2, v51, &v52, &v53);
			struct mirth_type_StackType v55 = mw_mirth_type_Type_zgStackType(v53);
			branch_StackType_11 = v55;
			branch_zaMirth_10 = v52;
			branch_Subst_9 = v54;
		} break;
	}
	*out_StackType_6 = branch_StackType_11;
	*out_zaMirth_4 = branch_zaMirth_10;
	return branch_Subst_9;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movq 0x10(%rbp), %rax
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x30(%rbp)
movq %r8, -0x28(%rbp)
movq %rdi, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movl -0x30(%rbp), %esi
movq -0x28(%rbp), %rdx
leaq -0x48(%rbp), %rcx
callq 0xba1d0
movl %eax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movl -0x58(%rbp), %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0x2e0(%rbp)
subl $0x6, %eax
ja 0xf3b52
movq -0x2e0(%rbp), %rax
leaq 0x25e8fe(%rip), %rcx    # 0x351fc4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x27b482(%rip), %rax    # 0x36eb58
movq %rax, -0x80(%rbp)
movq 0x27b47f(%rip), %rax    # 0x36eb60
movq %rax, -0x78(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xf3bfd
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0xba570
movl %eax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0x48(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
movl -0xa0(%rbp), %ecx
movq -0x98(%rbp), %r8
leaq -0xa8(%rbp), %r9
leaq -0xb8(%rbp), %rax
movq %rax, (%rsp)
callq 0xf3660
movl %eax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movq -0xa8(%rbp), %rdi
movl -0xc8(%rbp), %esi
movq -0xc0(%rbp), %rdx
movl -0x90(%rbp), %ecx
movq -0x88(%rbp), %r8
leaq -0xd0(%rbp), %r9
leaq -0xe0(%rbp), %rax
movq %rax, (%rsp)
callq 0xf22e0
movl %eax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
movl -0xe0(%rbp), %edx
movq -0xd8(%rbp), %rcx
callq 0x73df0
movl %eax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xf3bfd
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0xba740
movl %eax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x48(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
movl -0x120(%rbp), %ecx
movq -0x118(%rbp), %r8
leaq -0x128(%rbp), %r9
leaq -0x138(%rbp), %rax
movq %rax, (%rsp)
callq 0xf3660
movl %eax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movq -0x128(%rbp), %rdi
movl -0x148(%rbp), %esi
movq -0x140(%rbp), %rdx
movl -0x110(%rbp), %ecx
movq -0x108(%rbp), %r8
leaq -0x150(%rbp), %r9
leaq -0x160(%rbp), %rax
movq %rax, (%rsp)
callq 0xf2a70
movl %eax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
movl -0x160(%rbp), %edx
movq -0x158(%rbp), %rcx
callq 0x749e0
movl %eax, -0x180(%rbp)
movq %rdx, -0x178(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xf3bfd
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
leaq -0x190(%rbp), %rdx
leaq -0x198(%rbp), %rcx
callq 0xba980
movl %eax, -0x1a8(%rbp)
movq %rdx, -0x1a0(%rbp)
movq -0x48(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
movl -0x1a8(%rbp), %ecx
movq -0x1a0(%rbp), %r8
leaq -0x1b0(%rbp), %r9
leaq -0x1c0(%rbp), %rax
movq %rax, (%rsp)
callq 0xf3660
movl %eax, -0x1d0(%rbp)
movq %rdx, -0x1c8(%rbp)
movq -0x1b0(%rbp), %rdi
movl -0x1d0(%rbp), %esi
movq -0x1c8(%rbp), %rdx
movl -0x190(%rbp), %ecx
movq -0x188(%rbp), %r8
leaq -0x1d8(%rbp), %r9
leaq -0x1e8(%rbp), %rax
movq %rax, (%rsp)
callq 0xf22e0
movl %eax, -0x1f8(%rbp)
movq %rdx, -0x1f0(%rbp)
movq -0x198(%rbp), %r8
movl -0x1c0(%rbp), %edi
movq -0x1b8(%rbp), %rsi
movl -0x1e8(%rbp), %edx
movq -0x1e0(%rbp), %rcx
callq 0xc9e90
movl %eax, -0x208(%rbp)
movq %rdx, -0x200(%rbp)
movq -0x208(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x200(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x1f8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xf3bfd
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
leaq -0x218(%rbp), %rdx
leaq -0x220(%rbp), %rcx
callq 0xbab70
movl %eax, -0x230(%rbp)
movq %rdx, -0x228(%rbp)
movq -0x48(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
movl -0x230(%rbp), %ecx
movq -0x228(%rbp), %r8
leaq -0x238(%rbp), %r9
leaq -0x248(%rbp), %rax
movq %rax, (%rsp)
callq 0xf3660
movl %eax, -0x258(%rbp)
movq %rdx, -0x250(%rbp)
movq -0x238(%rbp), %rdi
movl -0x258(%rbp), %esi
movq -0x250(%rbp), %rdx
movl -0x218(%rbp), %ecx
movq -0x210(%rbp), %r8
leaq -0x260(%rbp), %r9
leaq -0x270(%rbp), %rax
movq %rax, (%rsp)
callq 0xf2a70
movl %eax, -0x280(%rbp)
movq %rdx, -0x278(%rbp)
movq -0x220(%rbp), %r8
movl -0x248(%rbp), %edi
movq -0x240(%rbp), %rsi
movl -0x270(%rbp), %edx
movq -0x268(%rbp), %rcx
callq 0xcb770
movl %eax, -0x290(%rbp)
movq %rdx, -0x288(%rbp)
movq -0x290(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x288(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x260(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x280(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x278(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xf3bfd
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0xc74c0
movl %eax, -0x2a0(%rbp)
movq %rdx, -0x298(%rbp)
movq -0x48(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
movl -0x2a0(%rbp), %ecx
movq -0x298(%rbp), %r8
leaq -0x2a8(%rbp), %r9
leaq -0x2b8(%rbp), %rax
movq %rax, (%rsp)
callq 0xf22e0
movl %eax, -0x2c8(%rbp)
movq %rdx, -0x2c0(%rbp)
movl -0x2b8(%rbp), %edi
movq -0x2b0(%rbp), %rsi
callq 0xba2d0
movl %eax, -0x2d8(%rbp)
movq %rdx, -0x2d0(%rbp)
movq -0x2d8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x2d0(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x2a8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x2c8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x2c0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq 0x10(%rbp), %rax
movups -0x70(%rbp), %xmm0
movups %xmm0, (%rax)
movq -0x60(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
nopw %cs:(%rax,%rax)