// File: /workspace/github_c_makefile_star2_O2/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 $0x48, %rsp
cmpl $0xd, %ecx
ja 0x5b07a
movq %r9, %rbx
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
movl %ecx, %eax
leaq 0x785d8(%rip), %rdx     # 0xd3348
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
xorl %edx, %edx
movl %ecx, %eax
jmp 0x5b055
leaq -0x48(%rbp), %rsi
movq %r8, %rdi
callq 0x2ad00
movq %rdx, %r8
leaq -0x38(%rbp), %rcx
movq %rcx, (%rsp)
leaq -0x68(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r13, %r9
callq 0x5ad41
movq (%r13), %rdi
leaq -0x48(%rbp), %rsi
movl (%rsi), %ecx
movq 0x8(%rsi), %r8
leaq -0x58(%rbp), %r13
movq %r13, (%rsp)
leaq -0x60(%rbp), %r12
movl %eax, %esi
movq %r12, %r9
callq 0x5ad41
movl %eax, %r15d
movq %rdx, %r14
leaq -0x38(%rbp), %rax
movl (%rax), %edi
movq 0x8(%rax), %rsi
movl (%r13), %edx
movq 0x8(%r13), %rcx
callq 0x1cff2
movq (%r12), %r12
pushq $0xb
jmp 0x5b054
movq %r8, %rdi
callq 0x2abd6
movq %rax, %rdi
callq 0x351c6
movq %rax, %rdx
pushq $0x4
jmp 0x5b054
movq %r8, %rdi
callq 0x2ad87
movq %rdx, %r8
leaq -0x48(%rbp), %r13
movq %r13, (%rsp)
leaq -0x38(%rbp), %r9
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r9, %r12
callq 0x5ad41
movl %eax, %r15d
movq %rdx, %r14
movl (%r13), %edi
movq 0x8(%r13), %rsi
callq 0x3a8f3
movq (%r12), %r12
pushq $0xc
jmp 0x5b054
movq %r8, %rdi
callq 0x2acc0
movq %rdx, %r8
leaq -0x48(%rbp), %r13
movq %r13, (%rsp)
leaq -0x38(%rbp), %r9
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r9, %r12
callq 0x5a6ce
movl %eax, %r15d
movq %rdx, %r14
movl (%r13), %edi
movq 0x8(%r13), %rsi
callq 0x3a0fa
movq %rax, %rdx
movq (%r12), %r12
pushq $0x9
jmp 0x5b054
movq %r8, %rdi
callq 0x2aa5d
movl %eax, %edi
callq 0x1c77d
pushq $0x2
jmp 0x5b054
movq %r8, %rdi
callq 0x2aabf
leaq -0x38(%rbp), %r8
leaq -0x48(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movq %rax, %rcx
movq %r8, %r12
movq %r13, %r9
callq 0x5a9c8
movl %eax, %r15d
movq %rdx, %r14
movl (%r13), %ecx
movl 0x4(%r13), %eax
movq 0x8(%r13), %rdx
movq (%r12), %r12
jmp 0x5b055
movq %r8, %rdi
callq 0x2ac2d
movq %rax, %rdi
callq 0x1e4a9
movq %rax, %rdx
pushq $0x7
jmp 0x5b054
xorl %eax, %eax
xorl %edx, %edx
jmp 0x5b055
movq %r8, %rdi
callq 0x2abf3
movq %rax, %rdi
callq 0x1cfa9
movq %rax, %rdx
pushq $0x5
jmp 0x5b054
movq %r8, %rdi
callq 0x2adc7
cmpl $0x3, %eax
ja 0x5b07a
movl %eax, %eax
leaq 0x78428(%rip), %rcx     # 0xd3380
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rdx, %rdi
callq 0x2af3e
movq %rax, %rdi
callq 0x3a72e
xorl %edi, %edi
jmp 0x5b04a
movq %r8, %rdi
callq 0x2ac10
movq %rax, %rdi
callq 0x3a8aa
movq %rax, %rdx
pushq $0x6
jmp 0x5b054
movq %r8, %rdi
callq 0x2ac85
leaq -0x48(%rbp), %r8
leaq -0x38(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movq %rax, %rcx
movq %r8, %r12
movq %r13, %r9
callq 0x5a358
movl %eax, %r15d
movq %rdx, %r14
movq (%r13), %rdi
callq 0x3233d
movq (%r12), %r12
pushq $0xa
jmp 0x5b054
movq %r8, %rdi
callq 0x2ac4a
movq %rax, %rdi
callq 0x3a85b
pushq $0x8
jmp 0x5b054
movq %rdx, %rdi
callq 0x2afa0
movq %rax, %rdi
callq 0x3a777
pushq $0x2
jmp 0x5b049
movq %rdx, %rdi
callq 0x2afdb
leaq -0x48(%rbp), %r13
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x37ae3
movq %rax, %rdi
callq 0x37b22
movq (%r13), %rdi
leaq -0x38(%rbp), %r12
leaq -0x58(%rbp), %r13
movl %r15d, %esi
movq %r14, %rdx
movq %rax, %rcx
movq %r12, %r8
jmp 0x5afb1
movq %rdx, %rdi
callq 0x2af79
callq 0x3a7c0
pushq $0x1
popq %rdi
movq %rax, %rsi
callq 0x34ac7
pushq $0xd
popq %rcx
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 $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7978c(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6