// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Type_rigidifyzx
static struct std_list_List_1 mw_mirth_type_Type_rigidifyzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_list_List_1 in_Ctx_2, struct mirth_type_Type in_Type_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_type_Type *out_Type_6) {
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct std_list_List_1 branch_Ctx_8;
	struct mirth_type_Type branch_Type_9;
	switch ((in_Type_3).tag) {
		case mirth_type_Type_Meta: {
			uint64_t v10 = mtp_mirth_type_Type_Meta(in_Type_3);
			struct mirth_mirth_zaMirth* v11;
			struct mirth_type_Type v12;
			struct std_list_List_1 v13 = mw_mirth_type_MetaVar_rigidifyzx(in_zaMirth_1, in_Ctx_2, v10, &v11, &v12);
			branch_Type_9 = v12;
			branch_Ctx_8 = v13;
			branch_zaMirth_7 = v11;
		} break;
		case mirth_type_Type_Error: {
			struct mirth_type_Type v14 = { .tag=mirth_type_Type_Error };
			branch_Type_9 = v14;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Ignore: {
			struct mirth_type_Type v15 = { .tag=mirth_type_Type_Ignore };
			branch_Type_9 = v15;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Prim: {
			enum mirth_type_PrimType v16 = mtp_mirth_type_Type_Prim(in_Type_3);
			struct mirth_type_Type v17 = mtw_mirth_type_Type_Prim(v16);
			branch_Type_9 = v17;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Hole: {
			uint64_t v18 = mtp_mirth_type_Type_Hole(in_Type_3);
			struct mirth_type_Type v19 = mtw_mirth_type_Type_Hole(v18);
			branch_Type_9 = v19;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Var: {
			uint64_t v20 = mtp_mirth_type_Type_Var(in_Type_3);
			struct mirth_type_Type v21 = mtw_mirth_type_Type_Var(v20);
			branch_Type_9 = v21;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Table: {
			uint64_t v22 = mtp_mirth_type_Type_Table(in_Type_3);
			struct mirth_type_Type v23 = mtw_mirth_type_Type_Table(v22);
			branch_Type_9 = v23;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Data: {
			uint64_t v24 = mtp_mirth_type_Type_Data(in_Type_3);
			struct mirth_type_Type v25 = mtw_mirth_type_Type_Data(v24);
			branch_Type_9 = v25;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_DataPartial: {
			struct mirth_data_DataPartial* v26 = mtp_mirth_type_Type_DataPartial(in_Type_3);
			struct mirth_type_Type v27 = mtw_mirth_type_Type_DataPartial(v26);
			branch_Type_9 = v27;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_App: {
			struct mirth_type_Type v28;
			struct mirth_type_Type v29 = mtp_mirth_type_Type_App(in_Type_3, &v28);
			struct mirth_mirth_zaMirth* v30;
			struct mirth_type_Type v31;
			struct std_list_List_1 v32 = mw_mirth_type_Type_rigidifyzx(in_zaMirth_1, in_Ctx_2, v29, &v30, &v31);
			struct mirth_mirth_zaMirth* v33;
			struct mirth_type_Type v34;
			struct std_list_List_1 v35 = mw_mirth_type_Type_rigidifyzx(v30, v32, v28, &v33, &v34);
			struct mirth_type_Type v36 = mtw_mirth_type_Type_App(v31, v34);
			branch_Type_9 = v36;
			branch_Ctx_8 = v35;
			branch_zaMirth_7 = v33;
		} break;
		case mirth_type_Type_Stack: {
			struct mirth_type_StackType v37 = mtp_mirth_type_Type_Stack(in_Type_3);
			struct mirth_mirth_zaMirth* v38;
			struct mirth_type_StackType v39;
			struct std_list_List_1 v40 = mw_mirth_type_StackType_rigidifyzx(in_zaMirth_1, in_Ctx_2, v37, &v38, &v39);
			struct mirth_type_Type v41 = mtw_mirth_type_Type_Stack(v39);
			branch_Type_9 = v41;
			branch_Ctx_8 = v40;
			branch_zaMirth_7 = v38;
		} break;
		case mirth_type_Type_Arrow: {
			struct mirth_type_ArrowType* v42 = mtp_mirth_type_Type_Arrow(in_Type_3);
			struct mirth_mirth_zaMirth* v43;
			struct mirth_type_ArrowType* v44;
			struct std_list_List_1 v45 = mw_mirth_type_ArrowType_rigidifyzx(in_zaMirth_1, in_Ctx_2, v42, &v43, &v44);
			struct mirth_type_Type v46 = mtw_mirth_type_Type_Arrow(v44);
			branch_Type_9 = v46;
			branch_Ctx_8 = v45;
			branch_zaMirth_7 = v43;
		} break;
		case mirth_type_Type_Value: {
			struct mirth_type_Value v47 = mtp_mirth_type_Type_Value(in_Type_3);
			struct mirth_mirth_zaMirth* v48;
			struct mirth_type_Type v49;
			struct std_list_List_1 v50 = mw_mirth_type_Value_rigidifyzx(in_zaMirth_1, in_Ctx_2, v47, &v48, &v49);
			branch_Type_9 = v49;
			branch_Ctx_8 = v50;
			branch_zaMirth_7 = v48;
		} break;
		case mirth_type_Type_Mut: {
			struct mirth_type_Type v51 = mtp_mirth_type_Type_Mut(in_Type_3);
			struct mirth_mirth_zaMirth* v52;
			struct mirth_type_Type v53;
			struct std_list_List_1 v54 = mw_mirth_type_Type_rigidifyzx(in_zaMirth_1, in_Ctx_2, v51, &v52, &v53);
			struct mirth_type_Type v55 = mtw_mirth_type_Type_Mut(v53);
			branch_Type_9 = v55;
			branch_Ctx_8 = v54;
			branch_zaMirth_7 = v52;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_Type_6 = branch_Type_9;
	*out_zaMirth_4 = branch_zaMirth_7;
	return branch_Ctx_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
cmpl $0xd, %ecx
ja 0x5fffd
movq %r9, %rbx
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
movl %ecx, %eax
leaq 0x7f701(%rip), %rdx     # 0xdf348
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
xorl %edx, %edx
movl %ecx, %eax
jmp 0x5ffd8
movq %rbx, -0x30(%rbp)
leaq -0x50(%rbp), %rbx
movq %r8, %rdi
movq %rbx, %rsi
callq 0x2d5d6
movq %rdx, %r8
leaq -0x40(%rbp), %rcx
movq %rcx, (%rsp)
leaq -0x70(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r13, %r9
callq 0x5fc18
movq (%r13), %rdi
movl (%rbx), %ecx
movq 0x8(%rbx), %r8
leaq -0x60(%rbp), %r12
movq %r12, (%rsp)
leaq -0x68(%rbp), %rbx
movl %eax, %esi
movq %rbx, %r9
callq 0x5fc18
movl %eax, %r15d
movq %rdx, %r14
leaq -0x40(%rbp), %rax
movl (%rax), %edi
movq 0x8(%rax), %rsi
movl (%r12), %edx
movq 0x8(%r12), %rcx
callq 0x1f39c
movq (%rbx), %r12
movq -0x30(%rbp), %rbx
movl $0xb, %ecx
jmp 0x5ffd8
movq 0x8(%r8), %r13
decl (%r8)
jne 0x5fcee
movq %r8, %rdi
callq 0x5030
movq %r13, %rdi
callq 0x383d6
movq %rax, %rdx
movl $0x4, %ecx
jmp 0x5ffd8
movq %r8, %rdi
callq 0x2d65d
movq %rdx, %r8
leaq -0x50(%rbp), %r13
movq %r13, (%rsp)
leaq -0x40(%rbp), %r9
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r9, %r12
callq 0x5fc18
movl %eax, %r15d
movq %rdx, %r14
movl (%r13), %edi
movq 0x8(%r13), %rsi
callq 0x3df28
movq (%r12), %r12
movl $0xc, %ecx
jmp 0x5ffd8
movq %r8, %rdi
callq 0x2d596
movq %rdx, %r8
leaq -0x50(%rbp), %r13
movq %r13, (%rsp)
leaq -0x40(%rbp), %r9
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r9, %r12
callq 0x5f50b
movl %eax, %r15d
movq %rdx, %r14
movl (%r13), %edi
movq 0x8(%r13), %rsi
callq 0x3d699
movq %rax, %rdx
movq (%r12), %r12
movl $0x9, %ecx
jmp 0x5ffd8
movl 0x4(%r8), %r13d
decl (%r8)
jne 0x5fdad
movq %r8, %rdi
callq 0x5030
movl %r13d, %edi
callq 0x1eb4d
movl $0x2, %ecx
jmp 0x5ffd8
movq %rbx, -0x30(%rbp)
movq 0x8(%r8), %r13
decl (%r8)
jne 0x5fdd4
movq %r8, %rdi
callq 0x5030
leaq -0x40(%rbp), %r8
leaq -0x50(%rbp), %rbx
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movq %r13, %rcx
movq %r8, %r12
movq %rbx, %r9
callq 0x5f84c
movl %eax, %r15d
movq %rdx, %r14
movl (%rbx), %ecx
movl 0x4(%rbx), %eax
movq 0x8(%rbx), %rdx
movq (%r12), %r12
movq -0x30(%rbp), %rbx
jmp 0x5ffd8
movq 0x8(%r8), %r13
decl (%r8)
jne 0x5fe20
movq %r8, %rdi
callq 0x5030
movq %r13, %rdi
callq 0x2075d
movq %rax, %rdx
movl $0x7, %ecx
jmp 0x5ffd8
xorl %eax, %eax
xorl %edx, %edx
jmp 0x5ffd8
movq 0x8(%r8), %r13
decl (%r8)
jne 0x5fe4f
movq %r8, %rdi
callq 0x5030
movq %r13, %rdi
callq 0x1f349
movq %rax, %rdx
movl $0x5, %ecx
jmp 0x5ffd8
movq %r8, %rdi
callq 0x2d69d
cmpl $0x3, %eax
ja 0x5fffd
movl %eax, %eax
leaq 0x7f502(%rip), %rcx     # 0xdf380
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rdx, %rdi
callq 0x2d85f
movq %rax, %rdi
callq 0x3dd25
xorl %edi, %edi
jmp 0x5ffcb
movq 0x8(%r8), %r13
decl (%r8)
jne 0x5feaf
movq %r8, %rdi
callq 0x5030
movq %r13, %rdi
callq 0x3ded5
movq %rax, %rdx
movl $0x6, %ecx
jmp 0x5ffd8
movq %r8, %rdi
callq 0x2d55b
leaq -0x50(%rbp), %r8
leaq -0x40(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movq %rax, %rcx
movq %r8, %r12
movq %r13, %r9
callq 0x5f147
movl %eax, %r15d
movq %rdx, %r14
movq (%r13), %rdi
callq 0x34fb2
movq (%r12), %r12
movl $0xa, %ecx
jmp 0x5ffd8
movq %r8, %rdi
callq 0x2d520
movq %rax, %rdi
callq 0x3de7a
movl $0x8, %ecx
jmp 0x5ffd8
movq %rdx, %rdi
callq 0x2d89a
movq %rax, %rdi
callq 0x3dd78
movl $0x2, %edi
jmp 0x5ffcb
movq %rbx, -0x30(%rbp)
movq 0x8(%rdx), %r13
decl (%rdx)
jne 0x5ff50
movq %rdx, %rdi
callq 0x5030
leaq -0x50(%rbp), %rbx
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x3ad6d
movq %rax, %rdi
callq 0x3adac
movq (%rbx), %rdi
leaq -0x40(%rbp), %rbx
leaq -0x60(%rbp), %r12
movl %r15d, %esi
movq %r14, %rdx
movq %rax, %rcx
movq %rbx, %r8
movq %r12, %r9
callq 0x5f147
movl %eax, %r15d
movq %rdx, %r14
movq (%r12), %rdi
callq 0x34fb2
movq (%rbx), %r12
movl $0xa, %ecx
movq -0x30(%rbp), %rbx
jmp 0x5ffd8
movsd 0x8(%rdx), %xmm0
decl (%rdx)
jne 0x5ffc1
movq %rdx, %rdi
movsd %xmm0, -0x30(%rbp)
callq 0x5030
movsd -0x30(%rbp), %xmm0
callq 0x3ddcb
movl $0x1, %edi
movq %rax, %rsi
callq 0x37c78
movl $0xd, %ecx
movq 0x10(%rbp), %rsi
movl %ecx, (%rsi)
movl %eax, 0x4(%rsi)
movq %rdx, 0x8(%rsi)
movq %r12, (%rbx)
movl %r15d, %eax
movq %r14, %rdx
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x806b7(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x806bc(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302