// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_MetaVar_expand
static struct mirth_type_Type mw_mirth_type_MetaVar_expand (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_MetaVar_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	struct std_maybe_Maybe_1 v6 = mw_mirth_type_MetaVar_typezy(in_zaMirth_1, in_MetaVar_2, &v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct mirth_type_Type branch_Type_8;
	switch ((v6).tag) {
		case std_maybe_Maybe_1_None: {
			struct mirth_type_Type v9 = mtw_mirth_type_Type_Meta(in_MetaVar_2);
			branch_Type_8 = v9;
			branch_zaMirth_7 = v5;
		} break;
		case std_maybe_Maybe_1_Some: {
			VAL v10 = mtp_std_maybe_Maybe_1_Some(v6);
			struct mirth_mirth_zaMirth* v11;
			struct mirth_type_Type v12 = mw_mirth_type_Type_expand(v5, V_mirth_type_Type(v10), &v11);
			incref(MK_mirth_type_Type(v12));
			struct std_maybe_Maybe_1 v13 = mtw_std_maybe_Maybe_1_Some(MK_mirth_type_Type(v12));
			struct mirth_mirth_zaMirth* v14;
			mw_mirth_type_MetaVar_typezyzx(v11, v13, in_MetaVar_2, &v14);
			branch_Type_8 = v12;
			branch_zaMirth_7 = v14;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Type_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x87130
movl %eax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0xfc(%rbp)
testl %eax, %eax
je 0x8807e
jmp 0x8806e
movl -0xfc(%rbp), %eax
subl $0x1, %eax
je 0x880ab
jmp 0x8823f
movq -0x20(%rbp), %rdi
callq 0x88280
movl %eax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x88258
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
callq 0x174a0
movq %rax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x6f100
movq -0x108(%rbp), %rdi
movl %eax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movl -0x90(%rbp), %esi
movq -0x88(%rbp), %rdx
leaq -0x70(%rbp), %rcx
callq 0x872e0
movl %eax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x6e780
movq %rax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0x98(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x881c5
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x6e780
movq %rax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rax
cmpq $0x0, %rax
je 0x881c5
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x6e780
movq %rax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movq -0xc0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x881c5
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x6e780
movq %rax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x881c7
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x6e780
movq %rax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movq -0xf0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0xca10
movl %eax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movq -0x70(%rbp), %rdi
movq -0x20(%rbp), %rcx
movl -0xe0(%rbp), %esi
movq -0xd8(%rbp), %rdx
leaq -0xf8(%rbp), %r8
callq 0x87380
movq -0x80(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x88258
leaq 0x2cbc3b(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x48(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)