// File: /workspace/github_c_makefile_star2_O1/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 0x618fb
movq %r9, %rbx
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
movl %ecx, %eax
leaq 0x81dbb(%rip), %rdx     # 0xe3300
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
xorl %edx, %edx
movl %ecx, %eax
jmp 0x618d6
movq %rbx, -0x30(%rbp)
leaq -0x50(%rbp), %rbx
movq %r8, %rdi
movq %rbx, %rsi
callq 0x2e294
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 0x61516
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 0x61516
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 0x1f801
movq (%rbx), %r12
movq -0x30(%rbp), %rbx
movl $0xb, %ecx
jmp 0x618d6
movq 0x8(%r8), %r13
decl (%r8)
jne 0x615ec
movq %r8, %rdi
callq 0x5030
movq %r13, %rdi
callq 0x39570
movq %rax, %rdx
movl $0x4, %ecx
jmp 0x618d6
movq %r8, %rdi
callq 0x2e31b
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 0x61516
movl %eax, %r15d
movq %rdx, %r14
movl (%r13), %edi
movq 0x8(%r13), %rsi
callq 0x3f26f
movq (%r12), %r12
movl $0xc, %ecx
jmp 0x618d6
movq %r8, %rdi
callq 0x2e254
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 0x60de4
movl %eax, %r15d
movq %rdx, %r14
movl (%r13), %edi
movq 0x8(%r13), %rsi
callq 0x3e9e0
movq %rax, %rdx
movq (%r12), %r12
movl $0x9, %ecx
jmp 0x618d6
movl 0x4(%r8), %r13d
decl (%r8)
jne 0x616ab
movq %r8, %rdi
callq 0x5030
movl %r13d, %edi
callq 0x1ef8a
movl $0x2, %ecx
jmp 0x618d6
movq %rbx, -0x30(%rbp)
movq 0x8(%r8), %r13
decl (%r8)
jne 0x616d2
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 0x61125
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 0x618d6
movq 0x8(%r8), %r13
decl (%r8)
jne 0x6171e
movq %r8, %rdi
callq 0x5030
movq %r13, %rdi
callq 0x20cc8
movq %rax, %rdx
movl $0x7, %ecx
jmp 0x618d6
xorl %eax, %eax
xorl %edx, %edx
jmp 0x618d6
movq 0x8(%r8), %r13
decl (%r8)
jne 0x6174d
movq %r8, %rdi
callq 0x5030
movq %r13, %rdi
callq 0x1f7ae
movq %rax, %rdx
movl $0x5, %ecx
jmp 0x618d6
movq %r8, %rdi
callq 0x2e35b
cmpl $0x3, %eax
ja 0x618fb
movl %eax, %eax
leaq 0x81bbc(%rip), %rcx     # 0xe3338
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rdx, %rdi
callq 0x2e51d
movq %rax, %rdi
callq 0x3f06c
xorl %edi, %edi
jmp 0x618c9
movq 0x8(%r8), %r13
decl (%r8)
jne 0x617ad
movq %r8, %rdi
callq 0x5030
movq %r13, %rdi
callq 0x3f21c
movq %rax, %rdx
movl $0x6, %ecx
jmp 0x618d6
movq %r8, %rdi
callq 0x2e219
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 0x60a20
movl %eax, %r15d
movq %rdx, %r14
movq (%r13), %rdi
callq 0x36174
movq (%r12), %r12
movl $0xa, %ecx
jmp 0x618d6
movq %r8, %rdi
callq 0x2e1de
movq %rax, %rdi
callq 0x3f1c1
movl $0x8, %ecx
jmp 0x618d6
movq %rdx, %rdi
callq 0x2e558
movq %rax, %rdi
callq 0x3f0bf
movl $0x2, %edi
jmp 0x618c9
movq %rbx, -0x30(%rbp)
movq 0x8(%rdx), %r13
decl (%rdx)
jne 0x6184e
movq %rdx, %rdi
callq 0x5030
leaq -0x50(%rbp), %rbx
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x3c0b8
movq %rax, %rdi
callq 0x3c0f7
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 0x60a20
movl %eax, %r15d
movq %rdx, %r14
movq (%r12), %rdi
callq 0x36174
movq (%rbx), %r12
movl $0xa, %ecx
movq -0x30(%rbp), %rbx
jmp 0x618d6
movsd 0x8(%rdx), %xmm0
decl (%rdx)
jne 0x618bf
movq %rdx, %rdi
movsd %xmm0, -0x30(%rbp)
callq 0x5030
movsd -0x30(%rbp), %xmm0
callq 0x3f112
movl $0x1, %edi
movq %rax, %rsi
callq 0x38e10
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 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x82e39(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x82e3e(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5