// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_var_Var_freshen
static struct std_list_List_1 mw_mirth_var_Var_freshen (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_list_List_1 in_Subst_2, uint64_t in_Var_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_type_Type *out_Type_6) {
	incref(MK_std_list_List_1(in_Subst_2));
	struct mirth_mirth_zaMirth* v7;
	bool v8 = mw_mirth_type_Subst_haszevarzy(in_zaMirth_1, in_Var_3, in_Subst_2, &v7);
	struct std_list_List_1 branch_Subst_9;
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	struct mirth_type_Type branch_Type_11;
	if (v8) {
		incref(MK_std_list_List_1(in_Subst_2));
		struct mirth_mirth_zaMirth* v12;
		struct mirth_type_Type v13 = mw_mirth_type_Subst_getzevar(v7, in_Var_3, in_Subst_2, &v12);
		branch_Type_11 = v13;
		branch_zaMirth_10 = v12;
		branch_Subst_9 = in_Subst_2;
	} else {
		struct mirth_mirth_zaMirth* v14;
		struct mirth_type_Type v15 = mw_mirth_var_Var_kind(v7, in_Var_3, &v14);
		struct mirth_mirth_zaMirth* v16;
		uint64_t v17 = mw_mirth_type_MetaVar_Newzx(v14, v15, &v16);
		struct mirth_type_Type v18 = mtw_mirth_type_Type_Meta(v17);
		incref(MK_mirth_type_Type(v18));
		struct std_list_List_1 v19 = mw_mirth_type_Subst_cons(v18, in_Var_3, in_Subst_2);
		branch_Type_11 = v18;
		branch_zaMirth_10 = v16;
		branch_Subst_9 = v19;
	}
	*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)
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x12780
movq %rax, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq -0x48(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xf2fd7
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x12780
movq %rax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x60(%rbp), %rax
cmpq $0x0, %rax
je 0xf2fd7
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x12780
movq %rax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movq -0x70(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xf2fd7
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x12780
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 0xf2fd9
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x20(%rbp), %edx
movq -0x18(%rbp), %rcx
leaq -0x88(%rbp), %r8
callq 0xf3df0
andb $0x1, %al
movb %al, -0x89(%rbp)
testb $0x1, -0x89(%rbp)
je 0xf3134
jmp 0xf300b
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x12780
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xf30c8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x12780
movq %rax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rax
cmpq $0x0, %rax
je 0xf30c8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x12780
movq %rax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movq -0xd8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xf30c8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x12780
movq %rax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xe8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xf30ca
movq -0x88(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x20(%rbp), %edx
movq -0x18(%rbp), %rcx
leaq -0xf0(%rbp), %r8
callq 0xf3f80
movl %eax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xf32d9
movq -0x88(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0x108(%rbp), %rdx
callq 0xf4070
movl %eax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movq -0x108(%rbp), %rdi
movl -0x118(%rbp), %esi
movq -0x110(%rbp), %rdx
leaq -0x120(%rbp), %rcx
callq 0xcd510
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rdi
callq 0x88280
movl %eax, -0x138(%rbp)
movq %rdx, -0x130(%rbp)
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
callq 0x6e780
movq %rax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movq -0x140(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xf326d
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
callq 0x6e780
movq %rax, -0x158(%rbp)
movq %rdx, -0x150(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rax
cmpq $0x0, %rax
je 0xf326d
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
callq 0x6e780
movq %rax, -0x168(%rbp)
movq %rdx, -0x160(%rbp)
movq -0x168(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xf326d
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
callq 0x6e780
movq %rax, -0x178(%rbp)
movq %rdx, -0x170(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x178(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xf326f
movq -0x30(%rbp), %rdx
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
movl -0x20(%rbp), %ecx
movq -0x18(%rbp), %r8
callq 0xda0e0
movl %eax, -0x188(%rbp)
movq %rdx, -0x180(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x40(%rbp), %rax
movups -0xa8(%rbp), %xmm0
movups %xmm0, (%rax)
movq -0x98(%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
nopw %cs:(%rax,%rax)