// File: /workspace/github_c_makefile_star2_O0/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
subq $0x300, %rsp            # imm = 0x300
movq 0x10(%rbp), %rax
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x30(%rbp)
movq %r8, -0x28(%rbp)
movq %rdi, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movl -0x30(%rbp), %eax
movq %rax, -0x2f8(%rbp)
subq $0x8, %rax
ja 0x159db5
movq -0x2f8(%rbp), %rax
leaq 0x1f8ead(%rip), %rcx    # 0x352654
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0x68(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x159dce
movq 0x215384(%rip), %rax    # 0x36eb78
movq %rax, -0x78(%rbp)
movq 0x215381(%rip), %rax    # 0x36eb80
movq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x159dce
movq 0x215321(%rip), %rax    # 0x36eb58
movq %rax, -0x88(%rbp)
movq 0x21531b(%rip), %rax    # 0x36eb60
movq %rax, -0x80(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x159dce
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0xba280
movq %rax, -0x90(%rbp)
movq -0x38(%rbp), %rdi
movq -0x90(%rbp), %rcx
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
leaq -0x98(%rbp), %r8
leaq -0xa8(%rbp), %r9
callq 0x159e00
movl %eax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movl -0xa8(%rbp), %edi
movq -0xa0(%rbp), %rsi
callq 0xba2d0
movl %eax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x159dce
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0xba520
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rdi
callq 0xb1e30
movl %eax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x159dce
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
callq 0xba570
movl %eax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0x38(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
movl -0x100(%rbp), %ecx
movq -0xf8(%rbp), %r8
leaq -0x108(%rbp), %r9
leaq -0x118(%rbp), %rax
movq %rax, (%rsp)
callq 0x159760
movl %eax, -0x128(%rbp)
movq %rdx, -0x120(%rbp)
movq -0x108(%rbp), %rdi
movl -0x128(%rbp), %esi
movq -0x120(%rbp), %rdx
movl -0xf0(%rbp), %ecx
movq -0xe8(%rbp), %r8
leaq -0x130(%rbp), %r9
leaq -0x140(%rbp), %rax
movq %rax, (%rsp)
callq 0x15a160
movl %eax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movl -0x118(%rbp), %edi
movq -0x110(%rbp), %rsi
movl -0x140(%rbp), %edx
movq -0x138(%rbp), %rcx
callq 0x73df0
movl %eax, -0x160(%rbp)
movq %rdx, -0x158(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x159dce
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
leaq -0x170(%rbp), %rdx
leaq -0x178(%rbp), %rcx
callq 0xba980
movl %eax, -0x188(%rbp)
movq %rdx, -0x180(%rbp)
movq -0x38(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
movl -0x188(%rbp), %ecx
movq -0x180(%rbp), %r8
leaq -0x190(%rbp), %r9
leaq -0x1a0(%rbp), %rax
movq %rax, (%rsp)
callq 0x159760
movl %eax, -0x1b0(%rbp)
movq %rdx, -0x1a8(%rbp)
movq -0x190(%rbp), %rdi
movl -0x1b0(%rbp), %esi
movq -0x1a8(%rbp), %rdx
movl -0x170(%rbp), %ecx
movq -0x168(%rbp), %r8
leaq -0x1b8(%rbp), %r9
leaq -0x1c8(%rbp), %rax
movq %rax, (%rsp)
callq 0x15a160
movl %eax, -0x1d8(%rbp)
movq %rdx, -0x1d0(%rbp)
movq -0x178(%rbp), %r8
movl -0x1a0(%rbp), %edi
movq -0x198(%rbp), %rsi
movl -0x1c8(%rbp), %edx
movq -0x1c0(%rbp), %rcx
callq 0xc9e90
movl %eax, -0x1e8(%rbp)
movq %rdx, -0x1e0(%rbp)
movq -0x1e8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x1b8(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x159dce
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
leaq -0x1f8(%rbp), %rdx
callq 0xba740
movl %eax, -0x208(%rbp)
movq %rdx, -0x200(%rbp)
movq -0x38(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
movl -0x208(%rbp), %ecx
movq -0x200(%rbp), %r8
leaq -0x210(%rbp), %r9
leaq -0x220(%rbp), %rax
movq %rax, (%rsp)
callq 0x159760
movl %eax, -0x230(%rbp)
movq %rdx, -0x228(%rbp)
movq -0x210(%rbp), %rdi
movl -0x230(%rbp), %esi
movq -0x228(%rbp), %rdx
movl -0x1f8(%rbp), %ecx
movq -0x1f0(%rbp), %r8
leaq -0x238(%rbp), %r9
leaq -0x248(%rbp), %rax
movq %rax, (%rsp)
callq 0x15a8c0
movl %eax, -0x258(%rbp)
movq %rdx, -0x250(%rbp)
movl -0x220(%rbp), %edi
movq -0x218(%rbp), %rsi
movl -0x248(%rbp), %edx
movq -0x240(%rbp), %rcx
callq 0x749e0
movl %eax, -0x268(%rbp)
movq %rdx, -0x260(%rbp)
movq -0x268(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x260(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x258(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x250(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x238(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x159dce
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
leaq -0x278(%rbp), %rdx
leaq -0x280(%rbp), %rcx
callq 0xbab70
movl %eax, -0x290(%rbp)
movq %rdx, -0x288(%rbp)
movq -0x38(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
movl -0x290(%rbp), %ecx
movq -0x288(%rbp), %r8
leaq -0x298(%rbp), %r9
leaq -0x2a8(%rbp), %rax
movq %rax, (%rsp)
callq 0x159760
movl %eax, -0x2b8(%rbp)
movq %rdx, -0x2b0(%rbp)
movq -0x298(%rbp), %rdi
movl -0x2b8(%rbp), %esi
movq -0x2b0(%rbp), %rdx
movl -0x278(%rbp), %ecx
movq -0x270(%rbp), %r8
leaq -0x2c0(%rbp), %r9
leaq -0x2d0(%rbp), %rax
movq %rax, (%rsp)
callq 0x15a8c0
movl %eax, -0x2e0(%rbp)
movq %rdx, -0x2d8(%rbp)
movq -0x280(%rbp), %r8
movl -0x2a8(%rbp), %edi
movq -0x2a0(%rbp), %rsi
movl -0x2d0(%rbp), %edx
movq -0x2c8(%rbp), %rcx
callq 0xcb770
movl %eax, -0x2f0(%rbp)
movq %rdx, -0x2e8(%rbp)
movq -0x2f0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x2e8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x2e0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x2d8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x2c0(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x159dce
leaq 0x1fa0c5(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq 0x10(%rbp), %rax
movups -0x58(%rbp), %xmm0
movups %xmm0, (%rax)
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x300, %rsp            # imm = 0x300
popq %rbp
retq
nopw %cs:(%rax,%rax)