// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Type_freshen
static struct std_list_List_1 mw_mirth_type_Type_freshen (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_list_List_1 in_Subst_2, struct mirth_type_Type in_Type_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_type_Type *out_Type_6) {
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct std_list_List_1 branch_Subst_8;
	struct mirth_type_Type branch_Type_9;
	switch ((in_Type_3).tag) {
		case mirth_type_Type_Error: {
			struct mirth_type_Type v10 = { .tag=mirth_type_Type_Error };
			branch_Type_9 = v10;
			branch_Subst_8 = in_Subst_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Ignore: {
			struct mirth_type_Type v11 = { .tag=mirth_type_Type_Ignore };
			branch_Type_9 = v11;
			branch_Subst_8 = in_Subst_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Prim: {
			enum mirth_type_PrimType v12 = mtp_mirth_type_Type_Prim(in_Type_3);
			struct mirth_type_Type v13 = mtw_mirth_type_Type_Prim(v12);
			branch_Type_9 = v13;
			branch_Subst_8 = in_Subst_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Hole: {
			uint64_t v14 = mtp_mirth_type_Type_Hole(in_Type_3);
			struct mirth_type_Type v15 = mtw_mirth_type_Type_Hole(v14);
			branch_Type_9 = v15;
			branch_Subst_8 = in_Subst_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Data: {
			uint64_t v16 = mtp_mirth_type_Type_Data(in_Type_3);
			struct mirth_type_Type v17 = mtw_mirth_type_Type_Data(v16);
			branch_Type_9 = v17;
			branch_Subst_8 = in_Subst_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_DataPartial: {
			struct mirth_data_DataPartial* v18 = mtp_mirth_type_Type_DataPartial(in_Type_3);
			struct mirth_type_Type v19 = mtw_mirth_type_Type_DataPartial(v18);
			branch_Type_9 = v19;
			branch_Subst_8 = in_Subst_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Table: {
			uint64_t v20 = mtp_mirth_type_Type_Table(in_Type_3);
			struct mirth_type_Type v21 = mtw_mirth_type_Type_Table(v20);
			branch_Type_9 = v21;
			branch_Subst_8 = in_Subst_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Value: {
			struct mirth_type_Value v22 = mtp_mirth_type_Type_Value(in_Type_3);
			struct mirth_mirth_zaMirth* v23;
			struct mirth_type_Type v24 = mw_mirth_type_Value_type(in_zaMirth_1, v22, &v23);
			struct mirth_mirth_zaMirth* v25;
			struct mirth_type_Type v26;
			struct std_list_List_1 v27 = mw_mirth_type_Type_freshen(v23, in_Subst_2, v24, &v25, &v26);
			branch_Type_9 = v26;
			branch_Subst_8 = v27;
			branch_zaMirth_7 = v25;
		} break;
		case mirth_type_Type_Var: {
			uint64_t v28 = mtp_mirth_type_Type_Var(in_Type_3);
			struct mirth_mirth_zaMirth* v29;
			struct mirth_type_Type v30;
			struct std_list_List_1 v31 = mw_mirth_var_Var_freshen(in_zaMirth_1, in_Subst_2, v28, &v29, &v30);
			branch_Type_9 = v30;
			branch_Subst_8 = v31;
			branch_zaMirth_7 = v29;
		} break;
		case mirth_type_Type_Meta: {
			uint64_t v32 = mtp_mirth_type_Type_Meta(in_Type_3);
			struct mirth_mirth_zaMirth* v33;
			struct mirth_type_Type v34;
			struct std_list_List_1 v35 = mw_mirth_type_MetaVar_freshen(in_zaMirth_1, in_Subst_2, v32, &v33, &v34);
			branch_Type_9 = v34;
			branch_Subst_8 = v35;
			branch_zaMirth_7 = v33;
		} break;
		case mirth_type_Type_Stack: {
			struct mirth_type_StackType v36 = mtp_mirth_type_Type_Stack(in_Type_3);
			struct mirth_mirth_zaMirth* v37;
			struct mirth_type_StackType v38;
			struct std_list_List_1 v39 = mw_mirth_type_StackType_freshen(in_zaMirth_1, in_Subst_2, v36, &v37, &v38);
			struct mirth_type_Type v40 = mtw_mirth_type_Type_Stack(v38);
			branch_Type_9 = v40;
			branch_Subst_8 = v39;
			branch_zaMirth_7 = v37;
		} break;
		case mirth_type_Type_Arrow: {
			struct mirth_type_ArrowType* v41 = mtp_mirth_type_Type_Arrow(in_Type_3);
			struct mirth_mirth_zaMirth* v42;
			struct mirth_type_ArrowType* v43;
			struct std_list_List_1 v44 = mw_mirth_type_ArrowType_freshen(in_zaMirth_1, in_Subst_2, v41, &v42, &v43);
			struct mirth_type_Type v45 = mtw_mirth_type_Type_Arrow(v43);
			branch_Type_9 = v45;
			branch_Subst_8 = v44;
			branch_zaMirth_7 = v42;
		} break;
		case mirth_type_Type_App: {
			struct mirth_type_Type v46;
			struct mirth_type_Type v47 = mtp_mirth_type_Type_App(in_Type_3, &v46);
			struct mirth_mirth_zaMirth* v48;
			struct mirth_type_Type v49;
			struct mirth_type_Type v50;
			struct std_list_List_1 v51 = mw_mirth_type_Type_freshen2(in_zaMirth_1, in_Subst_2, v47, v46, &v48, &v49, &v50);
			struct mirth_type_Type v52 = mtw_mirth_type_Type_App(v49, v50);
			branch_Type_9 = v52;
			branch_Subst_8 = v51;
			branch_zaMirth_7 = v48;
		} break;
		case mirth_type_Type_Mut: {
			struct mirth_type_Type v53 = mtp_mirth_type_Type_Mut(in_Type_3);
			struct mirth_mirth_zaMirth* v54;
			struct mirth_type_Type v55;
			struct std_list_List_1 v56 = mw_mirth_type_Type_freshen(in_zaMirth_1, in_Subst_2, v53, &v54, &v55);
			struct mirth_type_Type v57 = mtw_mirth_type_Type_Mut(v55);
			branch_Type_9 = v57;
			branch_Subst_8 = v56;
			branch_zaMirth_7 = v54;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_Type_6 = branch_Type_9;
	*out_zaMirth_4 = branch_zaMirth_7;
	return branch_Subst_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x2f8, %rsp            # imm = 0x2F8
movq 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)
movl -0x38(%rbp), %eax
movq %rax, -0x2e0(%rbp)
subq $0xd, %rax
ja 0xf2a29
movq -0x2e0(%rbp), %rax
leaq 0x25fc64(%rip), %rcx    # 0x351f8c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0x70(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x70(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
movq 0x27c803(%rip), %rax    # 0x36eb78
movq %rax, -0x80(%rbp)
movq 0x27c800(%rip), %rax    # 0x36eb80
movq %rax, -0x78(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x87010
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %edi
callq 0x6dd40
movl %eax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x873f0
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rdi
callq 0xbb330
movl %eax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x874e0
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rdi
callq 0x74070
movl %eax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x87530
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rdi
callq 0xcea30
movl %eax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x87490
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rdi
callq 0xcebc0
movl %eax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x87b00
movl %eax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x40(%rbp), %rdi
movl -0x108(%rbp), %esi
movq -0x100(%rbp), %rdx
leaq -0x110(%rbp), %rcx
callq 0xbe7a0
movl %eax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x110(%rbp), %rdi
movl -0x28(%rbp), %esi
movq -0x20(%rbp), %rdx
movl -0x120(%rbp), %ecx
movq -0x118(%rbp), %r8
leaq -0x128(%rbp), %r9
leaq -0x138(%rbp), %rax
movq %rax, (%rsp)
callq 0xf22e0
movl %eax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x87440
movq %rax, -0x150(%rbp)
movq -0x40(%rbp), %rdi
movq -0x150(%rbp), %rcx
movl -0x28(%rbp), %esi
movq -0x20(%rbp), %rdx
leaq -0x158(%rbp), %r8
leaq -0x168(%rbp), %r9
callq 0xf2f20
movl %eax, -0x178(%rbp)
movq %rdx, -0x170(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x870e0
movq %rax, -0x180(%rbp)
movq -0x40(%rbp), %rdi
movq -0x180(%rbp), %rcx
movl -0x28(%rbp), %esi
movq -0x20(%rbp), %rdx
leaq -0x188(%rbp), %r8
leaq -0x198(%rbp), %r9
callq 0xf3310
movl %eax, -0x1a8(%rbp)
movq %rdx, -0x1a0(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x87730
movl %eax, -0x1b8(%rbp)
movq %rdx, -0x1b0(%rbp)
movq -0x40(%rbp), %rdi
movl -0x28(%rbp), %esi
movq -0x20(%rbp), %rdx
movl -0x1b8(%rbp), %ecx
movq -0x1b0(%rbp), %r8
leaq -0x1c0(%rbp), %r9
leaq -0x1d0(%rbp), %rax
movq %rax, (%rsp)
callq 0xf3660
movl %eax, -0x1e0(%rbp)
movq %rdx, -0x1d8(%rbp)
movl -0x1d0(%rbp), %edi
movq -0x1c8(%rbp), %rsi
callq 0xcd050
movl %eax, -0x1f0(%rbp)
movq %rdx, -0x1e8(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x1e8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x1c0(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x87630
movq %rax, -0x1f8(%rbp)
movq -0x40(%rbp), %rdi
movq -0x1f8(%rbp), %rcx
movl -0x28(%rbp), %esi
movq -0x20(%rbp), %rdx
leaq -0x200(%rbp), %r8
leaq -0x208(%rbp), %r9
callq 0xf3c30
movl %eax, -0x218(%rbp)
movq %rdx, -0x210(%rbp)
movq -0x208(%rbp), %rdi
callq 0xaf380
movl %eax, -0x228(%rbp)
movq %rdx, -0x220(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x220(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x200(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
leaq -0x238(%rbp), %rdx
callq 0x87830
movl %eax, -0x248(%rbp)
movq %rdx, -0x240(%rbp)
movq -0x40(%rbp), %rdi
movl -0x28(%rbp), %esi
movq -0x20(%rbp), %rdx
movl -0x248(%rbp), %ecx
movq -0x240(%rbp), %r8
leaq -0x238(%rbp), %r11
leaq -0x250(%rbp), %r9
leaq -0x260(%rbp), %r10
leaq -0x270(%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 0xf3d20
movl %eax, -0x280(%rbp)
movq %rdx, -0x278(%rbp)
movl -0x260(%rbp), %edi
movq -0x258(%rbp), %rsi
movl -0x270(%rbp), %edx
movq -0x268(%rbp), %rcx
callq 0x70600
movl %eax, -0x290(%rbp)
movq %rdx, -0x288(%rbp)
movq -0x290(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x288(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x280(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x278(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x250(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x87a00
movl %eax, -0x2a0(%rbp)
movq %rdx, -0x298(%rbp)
movq -0x40(%rbp), %rdi
movl -0x28(%rbp), %esi
movq -0x20(%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 0xcecf0
movl %eax, -0x2d8(%rbp)
movq %rdx, -0x2d0(%rbp)
movq -0x2d8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x2d0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x2c8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x2c0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x2a8(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0xf2a42
leaq 0x261451(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq 0x10(%rbp), %rax
movups -0x60(%rbp), %xmm0
movups %xmm0, (%rax)
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, (%rax)
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rdx
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %rbp
retq
nopl (%rax)