// File: /workspace/github_c_makefile_star2_O3/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 0x5f81c
movq %r9, %rbx
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
movq 0x10(%rbp), %rsi
movl %ecx, %eax
leaq 0x7fde6(%rip), %rdx     # 0xdf324
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
xorl %edx, %edx
jmp 0x5f7f7
movq %rbx, -0x30(%rbp)
leaq -0x50(%rbp), %rbx
movq %r8, %rdi
movq %rbx, %rsi
callq 0x381ac
movq %rdx, %r8
leaq -0x60(%rbp), %rcx
movq %rcx, (%rsp)
leaq -0x38(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r13, %r9
callq 0x5f50b
movq (%r13), %rdi
movl (%rbx), %ecx
movq 0x8(%rbx), %r8
leaq -0x70(%rbp), %r12
movq %r12, (%rsp)
leaq -0x40(%rbp), %rbx
movl %eax, %esi
movq %rbx, %r9
callq 0x5fc18
movl %eax, %r15d
movq %rdx, %r14
movl (%r12), %edx
movq 0x8(%r12), %rcx
movq (%rbx), %r12
movq -0x30(%rbp), %rbx
leaq -0x60(%rbp), %rax
movl (%rax), %edi
movq 0x8(%rax), %rsi
callq 0x20ae8
movq 0x10(%rbp), %rsi
movl $0x7, %ecx
jmp 0x5f7f7
movq %rbx, -0x30(%rbp)
leaq -0x70(%rbp), %rbx
movq %r8, %rdi
movq %rbx, %rsi
callq 0x38125
movq %rdx, %r8
leaq -0x50(%rbp), %rcx
movq %rcx, (%rsp)
leaq -0x40(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r13, %r9
callq 0x5f50b
movq (%r13), %rdi
movl (%rbx), %ecx
movq 0x8(%rbx), %r8
leaq -0x60(%rbp), %r12
movq %r12, (%rsp)
leaq -0x38(%rbp), %rbx
movl %eax, %esi
movq %rbx, %r9
callq 0x5fc18
movl %eax, %r15d
movq %rdx, %r14
leaq -0x50(%rbp), %rax
movl (%rax), %edi
movq 0x8(%rax), %rsi
movl (%r12), %edx
movq 0x8(%r12), %rcx
callq 0x205af
movq 0x10(%rbp), %rsi
movq (%rbx), %r12
movq -0x30(%rbp), %rbx
movl $0x5, %ecx
jmp 0x5f7f7
movq %rbx, -0x30(%rbp)
leaq -0x70(%rbp), %rbx
leaq -0x40(%rbp), %rdx
movq %r8, %rdi
movq %rbx, %rsi
callq 0x38233
movq %rdx, %r8
leaq -0x50(%rbp), %rcx
movq %rcx, (%rsp)
leaq -0x38(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r13, %r9
callq 0x5f50b
movq (%r13), %rdi
movl (%rbx), %ecx
movq 0x8(%rbx), %r8
leaq -0x60(%rbp), %r12
movq %r12, (%rsp)
leaq -0x78(%rbp), %rbx
movl %eax, %esi
movq %rbx, %r9
callq 0x5fc18
movl %eax, %r15d
movq %rdx, %r14
leaq -0x40(%rbp), %rax
movq (%rax), %r8
leaq -0x50(%rbp), %rax
movl (%rax), %edi
movq 0x8(%rax), %rsi
movl (%r12), %edx
movq 0x8(%r12), %rcx
callq 0x3c8d3
movq 0x10(%rbp), %rsi
movq (%rbx), %r12
movq -0x30(%rbp), %rbx
movl $0x6, %ecx
jmp 0x5f7f7
movq %rbx, -0x30(%rbp)
leaq -0x50(%rbp), %rbx
leaq -0x38(%rbp), %rdx
movq %r8, %rdi
movq %rbx, %rsi
callq 0x382d7
movq %rdx, %r8
leaq -0x60(%rbp), %rcx
movq %rcx, (%rsp)
leaq -0x78(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %eax, %ecx
movq %r13, %r9
callq 0x5f50b
movq (%r13), %rdi
movl (%rbx), %ecx
movq 0x8(%rbx), %r8
leaq -0x70(%rbp), %r12
movq %r12, (%rsp)
leaq -0x40(%rbp), %rbx
movl %eax, %esi
movq %rbx, %r9
callq 0x5fc18
movl %eax, %r15d
movq %rdx, %r14
movl (%r12), %edx
movq 0x8(%r12), %rcx
movq (%rbx), %r12
movq -0x30(%rbp), %rbx
leaq -0x38(%rbp), %rax
movq (%rax), %r8
leaq -0x60(%rbp), %rax
movl (%rax), %edi
movq 0x8(%rax), %rsi
callq 0x3cfb6
movq 0x10(%rbp), %rsi
movl $0x8, %ecx
jmp 0x5f7f7
movq %rbx, -0x30(%rbp)
movq 0x8(%r8), %r13
decl (%r8)
jne 0x5f796
movq %r8, %rdi
callq 0x5030
leaq -0x50(%rbp), %r8
leaq -0x70(%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), %edi
movq 0x8(%rbx), %rsi
callq 0x38041
movl %eax, %ecx
movq (%r12), %r12
movq -0x30(%rbp), %rbx
jmp 0x5f7f3
movq 0x8(%r8), %r13
decl (%r8)
jne 0x5f7e3
movq %r8, %rdi
callq 0x5030
movq %r13, %rdi
callq 0x359bd
movq %rax, %rdx
movl $0x3, %ecx
movq 0x10(%rbp), %rsi
movl %ecx, (%rsi)
movl $0x0, 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 0x80e98(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x80e9d(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302