// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Value_rigidifyzx
static struct std_list_List_1 mw_mirth_type_Value_rigidifyzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_list_List_1 in_Ctx_2, struct mirth_type_Value in_Value_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_Value_3).tag) {
		case mirth_type_Value_Int: {
			INT v10 = mtp_mirth_type_Value_Int(in_Value_3);
			struct mirth_type_Value v11 = mtw_mirth_type_Value_Int(v10);
			struct mirth_type_Type v12 = mtw_mirth_type_Type_Value(v11);
			branch_Type_9 = v12;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Value_Str: {
			STR* v13 = mtp_mirth_type_Value_Str(in_Value_3);
			struct mirth_type_Value v14 = mtw_mirth_type_Value_Str(v13);
			struct mirth_type_Type v15 = mtw_mirth_type_Type_Value(v14);
			branch_Type_9 = v15;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Value_F64: {
			double v16 = mtp_mirth_type_Value_F64(in_Value_3);
			struct mirth_type_Value v17 = mtw_mirth_type_Value_F64(v16);
			struct mirth_type_Type v18 = mtw_mirth_type_Type_Value(v17);
			branch_Type_9 = v18;
			branch_Ctx_8 = in_Ctx_2;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Value_Block: {
			uint64_t v19 = mtp_mirth_type_Value_Block(in_Value_3);
			struct mirth_mirth_zaMirth* v20;
			struct mirth_arrow_Arrow* v21 = mw_mirth_arrow_Block_arrow(in_zaMirth_1, v19, &v20);
			struct mirth_type_ArrowType* v22 = mw_mirth_arrow_Arrow_type(v21);
			struct mirth_mirth_zaMirth* v23;
			struct mirth_type_ArrowType* v24;
			struct std_list_List_1 v25 = mw_mirth_type_ArrowType_rigidifyzx(v20, in_Ctx_2, v22, &v23, &v24);
			struct mirth_type_Type v26 = mtw_mirth_type_Type_Arrow(v24);
			branch_Type_9 = v26;
			branch_Ctx_8 = v25;
			branch_zaMirth_7 = v23;
		} 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
subq $0x130, %rsp            # imm = 0x130
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, -0x128(%rbp)
subq $0x3, %rax
ja 0x15b609
movq -0x128(%rbp), %rax
leaq 0x1f72d9(%rip), %rcx    # 0x3526b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0x88310
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
callq 0xce280
movl %eax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movl -0x70(%rbp), %edi
movq -0x68(%rbp), %rsi
callq 0xb5300
movl %eax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x78(%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 0x15b622
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0x88460
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rdi
callq 0xce310
movl %eax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0xb5300
movl %eax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0xa0(%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 0x15b622
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0x88410
movsd %xmm0, -0xb0(%rbp)
movsd -0xb0(%rbp), %xmm0
callq 0xce3a0
movl %eax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0xb5300
movl %eax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0xc8(%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 0x15b622
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0x88560
movq %rax, -0xd8(%rbp)
movq -0x38(%rbp), %rdi
movq -0xd8(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
callq 0xc4670
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rdi
callq 0xc46d0
movq %rax, -0xf0(%rbp)
movq -0xe0(%rbp), %rdi
movq -0xf0(%rbp), %rcx
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
leaq -0xf8(%rbp), %r8
leaq -0x100(%rbp), %r9
callq 0x158e80
movl %eax, -0x110(%rbp)
movq %rdx, -0x108(%rbp)
movq -0x100(%rbp), %rdi
callq 0xaf380
movl %eax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x15b622
leaq 0x1f8871(%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 $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nopl (%rax,%rax)