// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_MetaVar_freshen
static struct std_list_List_1 mw_mirth_type_MetaVar_freshen (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_list_List_1 in_Subst_2, uint64_t in_MetaVar_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_type_Type *out_Type_6) {
	struct mirth_mirth_zaMirth* v7;
	struct std_maybe_Maybe_1 v8 = mw_mirth_type_MetaVar_typezy(in_zaMirth_1, in_MetaVar_3, &v7);
	struct std_list_List_1 branch_Subst_9;
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	struct mirth_type_Type branch_Type_11;
	switch ((v8).tag) {
		case std_maybe_Maybe_1_None: {
			struct mirth_mirth_zaMirth* v12;
			struct mirth_type_Type v13 = mw_mirth_type_MetaVar_kind(v7, in_MetaVar_3, &v12);
			struct mirth_mirth_zaMirth* v14;
			uint64_t v15 = mw_mirth_type_MetaVar_Newzx(v12, v13, &v14);
			struct mirth_type_Type v16 = mtw_mirth_type_Type_Meta(v15);
			branch_Type_11 = v16;
			branch_zaMirth_10 = v14;
			branch_Subst_9 = in_Subst_2;
		} break;
		case std_maybe_Maybe_1_Some: {
			VAL v17 = mtp_std_maybe_Maybe_1_Some(v8);
			struct mirth_mirth_zaMirth* v18;
			struct mirth_type_Type v19 = mw_mirth_type_Type_expand(v7, V_mirth_type_Type(v17), &v18);
			incref(MK_mirth_type_Type(v19));
			struct std_maybe_Maybe_1 v20 = mtw_std_maybe_Maybe_1_Some(MK_mirth_type_Type(v19));
			struct mirth_mirth_zaMirth* v21;
			mw_mirth_type_MetaVar_typezyzx(v18, v20, in_MetaVar_3, &v21);
			struct mirth_mirth_zaMirth* v22;
			struct mirth_type_Type v23;
			struct std_list_List_1 v24 = mw_mirth_type_Type_freshen(v21, in_Subst_2, v19, &v22, &v23);
			branch_Type_11 = v23;
			branch_zaMirth_10 = v22;
			branch_Subst_9 = v24;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_Type_6 = branch_Type_11;
	*out_zaMirth_4 = branch_zaMirth_10;
	return branch_Subst_9;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0x87130
movl %eax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x174(%rbp)
testl %eax, %eax
je 0xf336d
jmp 0xf3359
movl -0x174(%rbp), %eax
subl $0x1, %eax
je 0xf33f8
jmp 0xf361d
movq -0x48(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0xf40f0
movl %eax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x78(%rbp), %rdi
movl -0x88(%rbp), %esi
movq -0x80(%rbp), %rdx
leaq -0x90(%rbp), %rcx
callq 0xcd510
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rdi
callq 0x88280
movl %eax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xf3636
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x174a0
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x6f100
movq -0x180(%rbp), %rdi
movl %eax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movl -0xe0(%rbp), %esi
movq -0xd8(%rbp), %rdx
leaq -0xc0(%rbp), %rcx
callq 0x872e0
movl %eax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
callq 0x6e780
movq %rax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xf353f
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x100(%rbp), %rax
cmpq $0x0, %rax
je 0xf353f
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x110(%rbp)
movq %rdx, -0x108(%rbp)
movq -0x110(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xf353f
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xf3541
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movq -0x140(%rbp), %rdi
movq -0x138(%rbp), %rsi
callq 0xca10
movl %eax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movq -0xc0(%rbp), %rdi
movq -0x30(%rbp), %rcx
movl -0x130(%rbp), %esi
movq -0x128(%rbp), %rdx
leaq -0x148(%rbp), %r8
callq 0x87380
movq -0x148(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
movl -0xd0(%rbp), %ecx
movq -0xc8(%rbp), %r8
leaq -0x150(%rbp), %r9
leaq -0x160(%rbp), %rax
movq %rax, (%rsp)
callq 0xf22e0
movl %eax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x158(%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 0xf3636
leaq 0x26085d(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x40(%rbp), %rax
movups -0x70(%rbp), %xmm0
movups %xmm0, (%rax)
movq -0x60(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
nopl (%rax)