// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_rigidifyzx
static struct std_list_List_1 mw_mirth_type_StackType_rigidifyzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_list_List_1 in_Ctx_2, struct mirth_type_StackType in_StackType_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_type_StackType *out_StackType_6) {
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct std_list_List_1 branch_Ctx_8;
	struct mirth_type_StackType branch_StackType_9;
	switch ((in_StackType_3).tag) {
		case mirth_type_StackType_Error: {
			struct mirth_type_StackType v10 = { .tag=mirth_type_StackType_Error };
			branch_StackType_9 = v10;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Ignore: {
			struct mirth_type_StackType v11 = { .tag=mirth_type_StackType_Ignore };
			branch_StackType_9 = v11;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Unit: {
			struct mirth_type_StackType v12 = { .tag=mirth_type_StackType_Unit };
			branch_StackType_9 = v12;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Meta: {
			uint64_t v13 = mtp_mirth_type_StackType_Meta(in_StackType_3);
			struct mirth_mirth_zaMirth* v14;
			struct mirth_type_Type v15;
			struct std_list_List_1 v16 = mw_mirth_type_MetaVar_rigidifyzx(in_zaMirth_1, in_Ctx_2, v13, &v14, &v15);
			struct mirth_type_StackType v17 = mw_mirth_type_Type_zgStackType(v15);
			branch_StackType_9 = v17;
			branch_Ctx_8 = v16;
			branch_zaMirth_7 = v14;
		} break;
		case mirth_type_StackType_Var: {
			uint64_t v18 = mtp_mirth_type_StackType_Var(in_StackType_3);
			struct mirth_type_StackType v19 = mtw_mirth_type_StackType_Var(v18);
			branch_StackType_9 = v19;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Cons: {
			struct mirth_type_Type v20;
			struct mirth_type_StackType v21 = mtp_mirth_type_StackType_Cons(in_StackType_3, &v20);
			struct mirth_mirth_zaMirth* v22;
			struct mirth_type_StackType v23;
			struct std_list_List_1 v24 = mw_mirth_type_StackType_rigidifyzx(in_zaMirth_1, in_Ctx_2, v21, &v22, &v23);
			struct mirth_mirth_zaMirth* v25;
			struct mirth_type_Type v26;
			struct std_list_List_1 v27 = mw_mirth_type_Type_rigidifyzx(v22, v24, v20, &v25, &v26);
			struct mirth_type_StackType v28 = mtw_mirth_type_StackType_Cons(v23, v26);
			branch_StackType_9 = v28;
			branch_Ctx_8 = v27;
			branch_zaMirth_7 = v25;
		} break;
		case mirth_type_StackType_ConsLabel: {
			struct mirth_type_Type v29;
			uint64_t v30;
			struct mirth_type_StackType v31 = mtp_mirth_type_StackType_ConsLabel(in_StackType_3, &v29, &v30);
			struct mirth_mirth_zaMirth* v32;
			struct mirth_type_StackType v33;
			struct std_list_List_1 v34 = mw_mirth_type_StackType_rigidifyzx(in_zaMirth_1, in_Ctx_2, v31, &v32, &v33);
			struct mirth_mirth_zaMirth* v35;
			struct mirth_type_Type v36;
			struct std_list_List_1 v37 = mw_mirth_type_Type_rigidifyzx(v32, v34, v29, &v35, &v36);
			struct mirth_type_StackType v38 = mtw_mirth_type_StackType_ConsLabel(v33, v36, v30);
			branch_StackType_9 = v38;
			branch_Ctx_8 = v37;
			branch_zaMirth_7 = v35;
		} break;
		case mirth_type_StackType_With: {
			struct mirth_type_Type v39;
			struct mirth_type_StackType v40 = mtp_mirth_type_StackType_With(in_StackType_3, &v39);
			struct mirth_mirth_zaMirth* v41;
			struct mirth_type_StackType v42;
			struct std_list_List_1 v43 = mw_mirth_type_StackType_rigidifyzx(in_zaMirth_1, in_Ctx_2, v40, &v41, &v42);
			struct mirth_mirth_zaMirth* v44;
			struct mirth_type_Type v45;
			struct std_list_List_1 v46 = mw_mirth_type_Resource_rigidifyzx(v41, v43, v39, &v44, &v45);
			struct mirth_type_StackType v47 = mtw_mirth_type_StackType_With(v42, v45);
			branch_StackType_9 = v47;
			branch_Ctx_8 = v46;
			branch_zaMirth_7 = v44;
		} break;
		case mirth_type_StackType_WithLabel: {
			struct mirth_type_Type v48;
			uint64_t v49;
			struct mirth_type_StackType v50 = mtp_mirth_type_StackType_WithLabel(in_StackType_3, &v48, &v49);
			struct mirth_mirth_zaMirth* v51;
			struct mirth_type_StackType v52;
			struct std_list_List_1 v53 = mw_mirth_type_StackType_rigidifyzx(in_zaMirth_1, in_Ctx_2, v50, &v51, &v52);
			struct mirth_mirth_zaMirth* v54;
			struct mirth_type_Type v55;
			struct std_list_List_1 v56 = mw_mirth_type_Resource_rigidifyzx(v51, v53, v48, &v54, &v55);
			struct mirth_type_StackType v57 = mtw_mirth_type_StackType_WithLabel(v52, v55, v49);
			branch_StackType_9 = v57;
			branch_Ctx_8 = v56;
			branch_zaMirth_7 = v54;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_StackType_6 = branch_StackType_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 $0x8, %ecx
ja 0x5a9b1
movq %r9, %r13
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
movq 0x10(%rbp), %rbx
movl %ecx, %eax
leaq 0x78c23(%rip), %rdx     # 0xd3324
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
xorl %edx, %edx
jmp 0x5a98e
leaq -0x58(%rbp), %rsi
movq %r8, %rdi
callq 0x34f7f
movq %rdx, %r8
leaq -0x48(%rbp), %rcx
movq %rcx, (%rsp)
movq %r13, -0x30(%rbp)
leaq -0x38(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r13, %r9
callq 0x5a6ce
movq (%r13), %rdi
leaq -0x58(%rbp), %rsi
movl (%rsi), %ecx
movq 0x8(%rsi), %r8
leaq -0x78(%rbp), %r13
movq %r13, (%rsp)
leaq -0x60(%rbp), %r12
movl %eax, %esi
movq %r12, %r9
callq 0x5b091
movl %eax, %r15d
movq %rdx, %r14
leaq -0x48(%rbp), %rax
movl (%rax), %edi
movq 0x8(%rax), %rsi
movl (%r13), %edx
movq 0x8(%r13), %rcx
movq -0x30(%rbp), %r13
callq 0x1e82b
movq (%r12), %r12
pushq $0x7
jmp 0x5a98d
leaq -0x58(%rbp), %rsi
movq %r8, %rdi
callq 0x34ef8
movq %rdx, %r8
leaq -0x48(%rbp), %rcx
movq %rcx, (%rsp)
movq %r13, -0x30(%rbp)
leaq -0x38(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r13, %r9
callq 0x5a6ce
movq (%r13), %rdi
leaq -0x58(%rbp), %rsi
movl (%rsi), %ecx
movq 0x8(%rsi), %r8
leaq -0x78(%rbp), %r13
movq %r13, (%rsp)
leaq -0x60(%rbp), %r12
movl %eax, %esi
movq %r12, %r9
callq 0x5ad41
movl %eax, %r15d
movq %rdx, %r14
leaq -0x48(%rbp), %rax
movl (%rax), %edi
movq 0x8(%rax), %rsi
movl (%r13), %edx
movq 0x8(%r13), %rcx
movq -0x30(%rbp), %r13
callq 0x1e310
movq (%r12), %r12
pushq $0x5
jmp 0x5a98d
leaq -0x58(%rbp), %rsi
leaq -0x38(%rbp), %rdx
movq %r8, %rdi
callq 0x3502f
movq %rdx, %r8
leaq -0x48(%rbp), %rcx
movq %rcx, (%rsp)
movq %r13, -0x30(%rbp)
leaq -0x60(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r13, %r9
callq 0x5a6ce
movq (%r13), %rdi
leaq -0x58(%rbp), %rsi
movl (%rsi), %ecx
movq 0x8(%rsi), %r8
leaq -0x78(%rbp), %r13
movq %r13, (%rsp)
leaq -0x68(%rbp), %r12
movl %eax, %esi
movq %r12, %r9
callq 0x5ad41
movl %eax, %r15d
movq %rdx, %r14
leaq -0x38(%rbp), %rax
movq (%rax), %r8
leaq -0x48(%rbp), %rax
movl (%rax), %edi
movq 0x8(%rax), %rsi
movl (%r13), %edx
movq 0x8(%r13), %rcx
movq -0x30(%rbp), %r13
callq 0x393fa
movq (%r12), %r12
pushq $0x6
jmp 0x5a98d
leaq -0x58(%rbp), %rsi
leaq -0x38(%rbp), %rdx
movq %r8, %rdi
callq 0x350d3
movq %rdx, %r8
leaq -0x48(%rbp), %rcx
movq %rcx, (%rsp)
movq %r13, -0x30(%rbp)
leaq -0x60(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r13, %r9
callq 0x5a6ce
movq (%r13), %rdi
leaq -0x58(%rbp), %rsi
movl (%rsi), %ecx
movq 0x8(%rsi), %r8
leaq -0x78(%rbp), %r13
movq %r13, (%rsp)
leaq -0x68(%rbp), %r12
movl %eax, %esi
movq %r12, %r9
callq 0x5b091
movl %eax, %r15d
movq %rdx, %r14
leaq -0x38(%rbp), %rax
movq (%rax), %r8
leaq -0x48(%rbp), %rax
movl (%rax), %edi
movq 0x8(%rax), %rsi
movl (%r13), %edx
movq 0x8(%r13), %rcx
movq -0x30(%rbp), %r13
callq 0x39a7a
movq (%r12), %r12
pushq $0x8
jmp 0x5a98d
movq %r8, %rdi
callq 0x34e20
leaq -0x48(%rbp), %r8
movq %r13, %rbx
leaq -0x58(%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), %edi
movq 0x8(%r13), %rsi
movq %rbx, %r13
movq 0x10(%rbp), %rbx
callq 0x34e3d
movl %eax, %ecx
movq (%r12), %r12
jmp 0x5a98e
movq %r8, %rdi
callq 0x34edb
movq %rax, %rdi
callq 0x32c7c
movq %rax, %rdx
pushq $0x3
popq %rcx
movl %ecx, (%rbx)
andl $0x0, 0x4(%rbx)
movq %rdx, 0x8(%rbx)
movq %r12, (%r13)
movl %r15d, %eax
movq %r14, %rdx
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x79e55(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6