// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_MetaVar_rigidifyzx
static struct std_list_List_1 mw_mirth_type_MetaVar_rigidifyzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_list_List_1 in_Ctx_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_Ctx_9;
	struct mirth_type_Type branch_Type_10;
	struct mirth_mirth_zaMirth* branch_zaMirth_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_type_Type v14 = mw_mirth_type_Kind_zgType(v13);
			struct mirth_mirth_zaMirth* v15;
			uint64_t v16;
			struct std_list_List_1 v17 = mw_mirth_var_Ctx_freshzevarzx(v12, v14, in_Ctx_2, &v15, &v16);
			struct mirth_type_Type v18 = mtw_mirth_type_Type_Var(v16);
			incref(MK_mirth_type_Type(v18));
			struct std_maybe_Maybe_1 v19 = mtw_std_maybe_Maybe_1_Some(MK_mirth_type_Type(v18));
			struct mirth_mirth_zaMirth* v20;
			mw_mirth_type_MetaVar_typezyzx(v15, v19, in_MetaVar_3, &v20);
			branch_zaMirth_11 = v20;
			branch_Type_10 = v18;
			branch_Ctx_9 = v17;
		} break;
		case std_maybe_Maybe_1_Some: {
			VAL v21 = mtp_std_maybe_Maybe_1_Some(v8);
			struct mirth_mirth_zaMirth* v22;
			struct mirth_type_Type v23;
			struct std_list_List_1 v24 = mw_mirth_type_Type_rigidifyzx(v7, in_Ctx_2, V_mirth_type_Type(v21), &v22, &v23);
			branch_zaMirth_11 = v22;
			branch_Type_10 = v23;
			branch_Ctx_9 = v24;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_Type_6 = branch_Type_10;
	*out_zaMirth_4 = branch_zaMirth_11;
	return branch_Ctx_9;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, %r14
movq %r8, %rbx
movq %rcx, %r13
movq %rdx, -0x38(%rbp)
movl %esi, %r15d
leaq -0x50(%rbp), %rdx
movq %rcx, %rsi
callq 0x2aadc
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
cmpl $0x1, %eax
movq %rbx, -0x70(%rbp)
movq %r14, -0x68(%rbp)
je 0x5abfb
movl %r15d, -0x2c(%rbp)
testl %eax, %eax
jne 0x5ad2a
movq -0x50(%rbp), %rdi
leaq -0x98(%rbp), %r15
movq %r13, %rsi
movq %r15, %rdx
callq 0x461bf
movl %eax, -0x44(%rbp)
movq %rdx, -0x58(%rbp)
movq (%r15), %rdi
movq 0x10b235d(%rip), %rsi   # 0x110cda0
testq %rsi, %rsi
jne 0x5aa67
movq %rdi, %r15
leaq 0x80109(%rip), %rdi     # 0xdab5b
pushq $0x3
popq %rsi
callq 0x8a21
movq %r15, %rdi
movq %rax, %rsi
movq %rax, 0x10b2339(%rip)   # 0x110cda0
movq %r13, -0x60(%rbp)
movq %rsi, %rax
andq %r12, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x5aa81
incl (%rax)
leaq -0x88(%rbp), %r15
movq %r15, %rdx
callq 0x12215
movq %rax, %r14
movq (%r15), %rbx
movq -0x38(%rbp), %rcx
movq %rcx, %rax
andq %r12, %rax
movq %rax, -0x78(%rbp)
setne %al
testb $0x3, %cl
sete %r13b
andb %al, %r13b
pushq $0x3
popq %r15
movb $0x1, %al
testb $0x1, %al
je 0x5ac4b
testb %r13b, %r13b
je 0x5aaca
movq -0x78(%rbp), %rax
incl (%rax)
movq %rbx, %rdi
movq %r14, %rsi
movl -0x2c(%rbp), %edx
movq -0x38(%rbp), %rcx
leaq -0x40(%rbp), %r8
callq 0x32cc5
testl %eax, %eax
jne 0x5aaec
movq -0x40(%rbp), %rbx
xorl %eax, %eax
jmp 0x5aab7
cmpl $0x1, %eax
jne 0x5ad2a
movq %rdx, %rdi
callq 0xd491
testb $0x1, %dl
je 0x5ab26
movq %rax, %rcx
andq %r12, %rcx
sete %sil
testb $0x3, %al
setne %dil
orb %sil, %dil
jne 0x5ab26
decl (%rcx)
jne 0x5ab26
movq %rax, %rdi
movq %rdx, %rsi
callq 0xce94
movq %r15, %rdi
pushq $0x3
popq %rsi
callq 0xdd03
movq %rax, %r15
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x5ab47
incl (%rax)
movq 0x10b225a(%rip), %rbx   # 0x110cda8
testq %rbx, %rbx
jne 0x5ab6b
leaq 0x81b9b(%rip), %rdi     # 0xdc6f5
xorl %esi, %esi
callq 0x8a21
movq %rax, %rbx
movq %rax, 0x10b223d(%rip)   # 0x110cda8
movq %rbx, %rax
andq %r12, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x5ab80
incl (%rax)
movq 0x10b2229(%rip), %rsi   # 0x110cdb0
testq %rsi, %rsi
jne 0x5aba5
leaq 0x7ffcc(%rip), %rdi     # 0xdab5f
pushq $0x2
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x10b220b(%rip)   # 0x110cdb0
movq %rsi, %rax
andq %r12, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x5abbb
incl (%rax)
movq %rbx, %rdi
callq 0xd8b0
movq %rax, %rbx
movq %r15, %rdi
callq 0xf51c
movq %rbx, %rdi
movq %rax, %rsi
callq 0xd8b0
movq -0x40(%rbp), %rdi
movq %rax, %rsi
leaq -0x90(%rbp), %rdx
callq 0x12215
movq %rax, %r14
movq -0x90(%rbp), %rbx
jmp 0x5aab5
movq %rdx, %rdi
callq 0xd491
movq -0x50(%rbp), %rdi
andq %rax, %r12
movq %rax, %rcx
shrq $0x30, %rcx
leaq -0x88(%rbp), %r13
movq %r13, (%rsp)
leaq -0x40(%rbp), %r9
movl %r15d, %esi
movq -0x38(%rbp), %rdx
movq %r12, %r8
movq %r9, %r15
callq 0x5ad41
movl %eax, %ebx
movq %rdx, %r14
movq (%r15), %rax
movl (%r13), %ecx
movl 0x4(%r13), %edx
movq 0x8(%r13), %r15
jmp 0x5ad02
movq %r15, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x5ac72
decl (%rax)
jne 0x5ac72
leaq 0xad7bf(%rip), %rsi     # 0x108429
movq %r15, %rdi
callq 0xce94
leaq -0x88(%rbp), %r13
movq %rbx, %rdi
movl -0x44(%rbp), %esi
movq -0x58(%rbp), %rdx
movq %r14, %rcx
movq %r13, %r8
callq 0x1c742
movq %rax, %r15
movl -0x2c(%rbp), %edi
movq -0x38(%rbp), %rsi
movq %rax, %rdx
callq 0x33f57
movl %eax, %ebx
movq %rdx, %r14
movq (%r13), %r13
movq %r15, %rdi
callq 0x1cfa9
movq %rax, %r15
movabsq $0x5000000000000, %rdi  # imm = 0x5000000000000
orq %rax, %rdi
leaq 0xade21(%rip), %rsi     # 0x108ae9
andq %rax, %r12
sete %al
testb $0x3, %r15b
setne %cl
orb %al, %cl
jne 0x5acdd
incl (%r12)
callq 0x8d0c
leaq -0x88(%rbp), %r12
movq %r13, %rdi
movq %rdx, %rsi
movq -0x60(%rbp), %rdx
movq %r12, %rcx
callq 0x2ab8f
movq (%r12), %rax
pushq $0x5
popq %rcx
movq -0x68(%rbp), %rsi
movl %ecx, (%rsi)
movl %edx, 0x4(%rsi)
movq %r15, 0x8(%rsi)
movq -0x70(%rbp), %rcx
movq %rax, (%rcx)
movl %ebx, %eax
movq %r14, %rdx
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x79adc(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6