// File: /workspace/github_c_makefile_star2_O3/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 $0x68, %rsp
movq %r9, %r12
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %r13d
leaq -0x48(%rbp), %rdx
movq %rcx, %rsi
callq 0x2d45d
cmpl $0x1, %eax
movq %rbx, -0x68(%rbp)
movq %r12, -0x60(%rbp)
je 0x5fa89
movq %r15, -0x30(%rbp)
movq %r14, -0x40(%rbp)
testl %eax, %eax
jne 0x5fbe8
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
movq -0x48(%rbp), %r14
leaq 0x10b5ff2(%rip), %rdi   # 0x11158a0
movq -0x40(%rbp), %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %r15
movq 0x10b64d7(%rip), %rsi   # 0x1115da0
testq %rsi, %rsi
jne 0x5f8f4
movl $0x3, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x3, 0x10(%rax)
movw $0x785f, 0x18(%rax)     # imm = 0x785F
movb $0x31, 0x1a(%rax)
movq %rax, 0x10b64ac(%rip)   # 0x1115da0
movq %r15, %rax
shrq $0x30, %rax
movq %rax, -0x50(%rbp)
movq %rsi, %rax
andq %r12, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x5f915
incl (%rax)
andq %r12, %r15
movq %r15, -0x58(%rbp)
leaq -0x80(%rbp), %rbx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x12e7f
movq %rax, %r14
movq (%rbx), %rdi
movq -0x30(%rbp), %rcx
movq %rcx, %rax
andq %r12, %rax
movq %rax, -0x70(%rbp)
setne %al
testb $0x3, %cl
sete %bl
andb %al, %bl
movl $0x3, %r15d
testb %bl, %bl
movl %r13d, %edx
je 0x5f95d
movq -0x70(%rbp), %rax
incl (%rax)
movq %r14, %rsi
leaq -0x38(%rbp), %r8
callq 0x35a10
cmpl $0x1, %eax
jne 0x5fade
movq %rdx, %rdi
callq 0xd745
testb $0x1, %dl
je 0x5f9a3
movq %rax, %rcx
andq %r12, %rcx
sete %sil
testb $0x3, %al
setne %dil
orb %sil, %dil
jne 0x5f9a3
decl (%rcx)
jne 0x5f9a3
movq %rax, %rdi
movq %rdx, %rsi
callq 0xd13d
movl $0x3, %esi
movq %r15, %rdi
callq 0xe50f
movq %rax, %r15
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x5f9c6
incl (%rax)
movq 0x10b63db(%rip), %r14   # 0x1115da8
testq %r14, %r14
jne 0x5f9eb
xorl %edi, %edi
callq 0xf5e4
movq %rax, %r14
movq $0x0, 0x10(%rax)
movq %rax, 0x10b63bd(%rip)   # 0x1115da8
movq %r14, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x5fa01
incl (%rax)
movq 0x10b63a8(%rip), %rsi   # 0x1115db0
testq %rsi, %rsi
jne 0x5fa2f
movl $0x2, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x2, 0x10(%rax)
movw $0x785f, 0x18(%rax)     # imm = 0x785F
movq %rax, 0x10b6381(%rip)   # 0x1115db0
movq %rsi, %rax
andq %r12, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x5fa45
incl (%rax)
movq %r14, %rdi
callq 0xe069
movq %rax, %r14
movq %r15, %rdi
callq 0xfea8
movq %r14, %rdi
movq %rax, %rsi
callq 0xe069
movq -0x38(%rbp), %rdi
movq %rax, %rsi
leaq -0x88(%rbp), %rdx
callq 0x12e7f
movq %rax, %r14
movq -0x88(%rbp), %rdi
movq -0x30(%rbp), %rcx
jmp 0x5f950
movq %rdx, %rdi
callq 0xd745
movq -0x48(%rbp), %rdi
movabsq $0xfffffffffffc, %r8    # imm = 0xFFFFFFFFFFFC
andq %rax, %r8
movq %rax, %rcx
shrq $0x30, %rcx
leaq -0x80(%rbp), %r12
movq %r12, (%rsp)
leaq -0x38(%rbp), %rbx
movl %r13d, %esi
movq %r15, %rdx
movq %rbx, %r9
callq 0x5fc18
movl %eax, %esi
movq %rdx, %r14
movq (%rbx), %rbx
movl (%r12), %eax
movl 0x4(%r12), %ecx
movq 0x8(%r12), %r15
jmp 0x5fbc0
testl %eax, %eax
jne 0x5fbe8
movq -0x38(%rbp), %rbx
movq %r15, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x5fb11
decl (%rax)
jne 0x5fb11
leaq 0xb1920(%rip), %rsi     # 0x111429
movq %r15, %rdi
callq 0xd13d
leaq -0x80(%rbp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1ecc1
movq %rax, %r15
movq -0x80(%rbp), %rbx
leaq 0xb1f60(%rip), %rcx     # 0x111aa0
movl %r13d, %edi
movq -0x30(%rbp), %rsi
movq %rax, %rdx
callq 0x3df89
movl %eax, -0x30(%rbp)
movq %rdx, %r14
movq %r15, %rdi
callq 0x1f349
movq %rax, %r15
movabsq $0x5000000000000, %rdi  # imm = 0x5000000000000
orq %rax, %rdi
leaq 0xb1f75(%rip), %rsi     # 0x111ae9
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x5fb87
incl (%rax)
callq 0x9353
movq %rdx, %r13
leaq 0x10b5892(%rip), %rdi   # 0x1115428
movq -0x40(%rbp), %rsi
callq 0x13c85
addq $0x4, %r12
orq %r13, %r12
leaq 0xb1714(%rip), %rsi     # 0x1112c1
movq %r12, %rdi
movq %rax, %rdx
callq 0x14766
movl $0x5, %eax
movl -0x30(%rbp), %esi
movq -0x60(%rbp), %rdx
movl %eax, (%rdx)
movl %ecx, 0x4(%rdx)
movq %r15, 0x8(%rdx)
movq -0x68(%rbp), %rax
movq %rbx, (%rax)
movl %esi, %eax
movq %r14, %rdx
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x80acc(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x80ad1(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302