// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Type_c99zerepr
static struct mirth_c99_C99ReprType mw_mirth_type_Type_c99zerepr (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_Type in_Type_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* branch_zaMirth_5;
	struct mirth_c99_C99ReprType branch_C99ReprType_6;
	switch ((in_Type_2).tag) {
		case mirth_type_Type_Error: {
			struct mirth_c99_C99ReprType v7 = { .tag=mirth_c99_C99ReprType_VAL };
			branch_C99ReprType_6 = v7;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Ignore: {
			struct mirth_c99_C99ReprType v8 = { .tag=mirth_c99_C99ReprType_VAL };
			branch_C99ReprType_6 = v8;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Prim: {
			enum mirth_type_PrimType v9 = mtp_mirth_type_Type_Prim(in_Type_2);
			struct mirth_c99_C99ReprType v10 = mw_mirth_type_PrimType_c99zerepr(v9);
			branch_C99ReprType_6 = v10;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Meta: {
			uint64_t v11 = mtp_mirth_type_Type_Meta(in_Type_2);
			struct mirth_mirth_zaMirth* v12;
			struct std_maybe_Maybe_1 v13 = mw_mirth_type_MetaVar_typezy(in_zaMirth_1, v11, &v12);
			struct mirth_mirth_zaMirth* branch_zaMirth_14;
			struct mirth_c99_C99ReprType branch_C99ReprType_15;
			switch ((v13).tag) {
				case std_maybe_Maybe_1_None: {
					struct mirth_c99_C99ReprType v16 = { .tag=mirth_c99_C99ReprType_VAL };
					branch_C99ReprType_15 = v16;
					branch_zaMirth_14 = v12;
				} break;
				case std_maybe_Maybe_1_Some: {
					VAL v17 = mtp_std_maybe_Maybe_1_Some(v13);
					struct mirth_mirth_zaMirth* v18;
					struct mirth_type_Type v19 = mw_mirth_type_Type_expand(v12, V_mirth_type_Type(v17), &v18);
					incref(MK_mirth_type_Type(v19));
					struct std_maybe_Maybe_1 v20 = mtw_std_maybe_Maybe_1_Some(MK_mirth_type_Type(v19));
					struct mirth_mirth_zaMirth* v21;
					mw_mirth_type_MetaVar_typezyzx(v18, v20, v11, &v21);
					struct mirth_mirth_zaMirth* v22;
					struct mirth_c99_C99ReprType v23 = mw_mirth_type_Type_c99zerepr(v21, v19, &v22);
					branch_C99ReprType_15 = v23;
					branch_zaMirth_14 = v22;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_C99ReprType_6 = branch_C99ReprType_15;
			branch_zaMirth_5 = branch_zaMirth_14;
		} break;
		case mirth_type_Type_Hole: {
			uint64_t v24 = mtp_mirth_type_Type_Hole(in_Type_2);
			struct mirth_c99_C99ReprType v25 = { .tag=mirth_c99_C99ReprType_VAL };
			branch_C99ReprType_6 = v25;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Var: {
			uint64_t v26 = mtp_mirth_type_Type_Var(in_Type_2);
			struct mirth_c99_C99ReprType v27 = { .tag=mirth_c99_C99ReprType_VAL };
			branch_C99ReprType_6 = v27;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Table: {
			uint64_t v28 = mtp_mirth_type_Type_Table(in_Type_2);
			struct mirth_c99_C99ReprType v29 = mtw_mirth_c99_C99ReprType_Table(v28);
			branch_C99ReprType_6 = v29;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Data: {
			uint64_t v30 = mtp_mirth_type_Type_Data(in_Type_2);
			struct mirth_c99_C99ReprType v31 = mtw_mirth_c99_C99ReprType_Data(v30);
			branch_C99ReprType_6 = v31;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_DataPartial: {
			struct mirth_data_DataPartial* v32 = mtp_mirth_type_Type_DataPartial(in_Type_2);
			incref(MK_mirth_data_DataPartial(v32));
			struct mirth_mirth_zaMirth* v33;
			bool v34 = mw_mirth_data_DataPartial_iszesemizetransparentzy(in_zaMirth_1, v32, &v33);
			struct mirth_mirth_zaMirth* branch_zaMirth_35;
			struct mirth_c99_C99ReprType branch_C99ReprType_36;
			if (v34) {
				decref(MK_mirth_data_DataPartial(v32));
				struct mirth_c99_C99ReprType v37 = { .tag=mirth_c99_C99ReprType_Void };
				branch_C99ReprType_36 = v37;
				branch_zaMirth_35 = v33;
			} else {
				uint64_t v38 = v32->mdata;
				decref(MK_mirth_data_DataPartial(v32));
				struct mirth_c99_C99ReprType v39 = mtw_mirth_c99_C99ReprType_Data(v38);
				branch_C99ReprType_36 = v39;
				branch_zaMirth_35 = v33;
			}
			branch_C99ReprType_6 = branch_C99ReprType_36;
			branch_zaMirth_5 = branch_zaMirth_35;
		} break;
		case mirth_type_Type_Arrow: {
			struct mirth_type_ArrowType* v40 = mtp_mirth_type_Type_Arrow(in_Type_2);
			decref(MK_mirth_type_ArrowType(v40));
			struct mirth_c99_C99ReprType v41 = { .tag=mirth_c99_C99ReprType_VAL };
			branch_C99ReprType_6 = v41;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Stack: {
			struct mirth_type_StackType v42 = mtp_mirth_type_Type_Stack(in_Type_2);
			struct mirth_mirth_zaMirth* v43;
			struct mirth_c99_C99ReprType v44 = mw_mirth_type_StackType_tuplezec99zerepr(in_zaMirth_1, v42, &v43);
			branch_C99ReprType_6 = v44;
			branch_zaMirth_5 = v43;
		} break;
		case mirth_type_Type_App: {
			struct mirth_type_Type v45;
			struct mirth_type_Type v46 = mtp_mirth_type_Type_App(in_Type_2, &v45);
			decref(MK_mirth_type_Type(v45));
			struct mirth_mirth_zaMirth* v47;
			struct mirth_c99_C99ReprType v48 = mw_mirth_type_Type_c99zerepr(in_zaMirth_1, v46, &v47);
			branch_C99ReprType_6 = v48;
			branch_zaMirth_5 = v47;
		} break;
		case mirth_type_Type_Mut: {
			struct mirth_type_Type v49 = mtp_mirth_type_Type_Mut(in_Type_2);
			decref(MK_mirth_type_Type(v49));
			struct mirth_c99_C99ReprType v50 = { .tag=mirth_c99_C99ReprType_PTR };
			branch_C99ReprType_6 = v50;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Value: {
			struct mirth_type_Value v51 = mtp_mirth_type_Type_Value(in_Type_2);
			decref(MK_mirth_type_Value(v51));
			struct mirth_c99_C99ReprType v52 = { .tag=mirth_c99_C99ReprType_VAL };
			branch_C99ReprType_6 = v52;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_5;
	return branch_C99ReprType_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
cmpl $0xd, %esi
ja 0x9ee90
movq %rcx, %rbx
movq %rdi, %r14
movl $0x1, %r15d
movl %esi, %eax
leaq 0x4505a(%rip), %rcx     # 0xe39a4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
decl (%rdx)
jne 0x9ecf8
movq %rdx, %rdi
callq 0x5030
jmp 0x9ecf8
leaq -0x48(%rbp), %r13
movq %rdx, %rdi
movq %r13, %rsi
callq 0x2e294
movl %eax, %r15d
movq %rdx, %r12
movq 0x8(%r13), %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x9e9b6
movl -0x48(%rbp), %edi
decl (%rcx)
jne 0x9e9b6
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x77138(%rip), %rsi     # 0x115ae9
callq 0xd4e3
leaq -0x50(%rbp), %r13
movq %r14, %rdi
movl %r15d, %esi
movq %r12, %rdx
movq %r13, %rcx
callq 0x9e91b
movl %eax, %r15d
movq (%r13), %r14
jmp 0x9ecfa
movq %rdx, %rdi
callq 0x2e31b
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
movl $0x12, %r15d
orb %sil, %dil
jne 0x9ecf8
decl (%rcx)
jne 0x9ecf8
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x770cd(%rip), %rsi     # 0x115ae9
jmp 0x9eba3
movq %rdx, %rdi
callq 0x2e254
leaq -0x50(%rbp), %rcx
leaq -0x48(%rbp), %r8
movq %r14, %rdi
movl %eax, %esi
callq 0x363c1
cmpl $0x2, %eax
jne 0x9ec81
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x11a85
movl $0x1, %esi
movq %rax, %rdi
callq 0xec04
xorl %r15d, %r15d
testl %eax, %eax
setne %r15b
shll $0x2, %r15d
jmp 0x9ecf4
movl 0x4(%rdx), %r15d
decl (%rdx)
jne 0x9ea7f
movq %rdx, %rdi
callq 0x5030
cmpl $0x15, %r15d
ja 0x9ee90
movl %r15d, %eax
leaq 0x44f49(%rip), %rcx     # 0xe39dc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x11, %r15d
jmp 0x9ecf8
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x9eab7
movq %rdx, %rdi
callq 0x5030
movq %r15, %rdi
callq 0x9ef13
movq %rax, %rdx
movl $0x15, %r15d
jmp 0x9ecfa
movq 0x8(%rdx), %r12
decl (%rdx)
jne 0x9eadd
movq %rdx, %rdi
callq 0x5030
leaq -0x48(%rbp), %rdx
movq %r14, %rdi
movq %r12, %rsi
callq 0x2e11b
cmpl $0x1, %eax
je 0x9ed0f
testl %eax, %eax
jne 0x9ee90
movq -0x48(%rbp), %r14
jmp 0x9ecf8
movq %rdx, %rdi
callq 0x2e35b
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x9ecf8
decl (%rcx)
jne 0x9ecf8
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x770c4(%rip), %rsi     # 0x115c09
jmp 0x9eba3
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x9eb57
movq %rdx, %rdi
callq 0x5030
movq %r15, %rdi
callq 0x9eec0
movq %rax, %rdx
movl $0x14, %r15d
jmp 0x9ecfa
movq %rdx, %rdi
callq 0x2e219
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x9ecf8
decl (%rcx)
jne 0x9ecf8
leaq 0x76fd6(%rip), %rsi     # 0x115b79
movq %rax, %rdi
callq 0xd4e3
jmp 0x9ecf8
movq %rbx, -0x30(%rbp)
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0x2e1de
movq %rax, %r15
andq %r12, %r15
setne %cl
testb $0x3, %al
sete %bl
andb %cl, %bl
cmpb $0x1, %bl
jne 0x9ebde
incl (%r15)
movq %rax, -0x38(%rbp)
movq 0x8(%rax), %r13
testb %bl, %bl
je 0x9ebff
decl (%r15)
jne 0x9ebff
movq -0x38(%rbp), %rdi
leaq 0x76f37(%rip), %rsi     # 0x115b31
callq 0xd4e3
leaq -0x48(%rbp), %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0x79ceb
movl %eax, %r14d
andq %rdx, %r12
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x9ec3d
decl (%r12)
jne 0x9ec3d
movq %r14, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0x76689(%rip), %rsi     # 0x1152c1
callq 0xd4e3
leaq 0x1(,%r14,2), %rdi
movl $0x1, %esi
callq 0xec04
movq -0x48(%rbp), %r14
testl %eax, %eax
je 0x9edc3
testb %bl, %bl
movq -0x38(%rbp), %rdi
je 0x9edf3
decl (%r15)
movq -0x30(%rbp), %rbx
jne 0x9ec7c
leaq 0x76eba(%rip), %rsi     # 0x115b31
callq 0xd4e3
xorl %r15d, %r15d
jmp 0x9ecf8
movq %rbx, %r14
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rcx
andq %rbx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x9ecbe
decl (%rcx)
jne 0x9ecbe
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x7765b(%rip), %rsi     # 0x116311
movq %rax, %rdi
callq 0xd4e3
movq -0x40(%rbp), %rax
andq %rax, %rbx
sete %cl
testb $0x3, %al
setne %dl
movl $0x4, %r15d
orb %cl, %dl
jne 0x9ecf1
movl -0x48(%rbp), %edi
decl (%rbx)
jne 0x9ecf1
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x7658d(%rip), %rsi     # 0x115279
callq 0xd4e3
movq %r14, %rbx
movq -0x50(%rbp), %r14
xorl %edx, %edx
movq %r14, (%rbx)
movl %r15d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0xdaeb
movq -0x48(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r14, %rax
leaq -0x50(%rbp), %rcx
movq %rax, %rdx
callq 0x2e18a
movq %rdx, %r15
movq %rax, -0x38(%rbp)
movq %rax, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0x76d96(%rip), %rsi     # 0x115ae9
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x9ed69
incl (%rax)
callq 0x95f6
movq %rdx, %r13
movq -0x50(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x107a6a8(%rip), %rdi   # 0x1119428
movq %r12, %rsi
callq 0x13ff0
addq $0x4, %r14
orq %r13, %r14
leaq 0x7652b(%rip), %rsi     # 0x1152c1
movq %r14, %rdi
movq %rax, %rdx
callq 0x14ab5
leaq -0x58(%rbp), %r14
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x9e91b
movl %eax, %r15d
movq (%r14), %r14
jmp 0x9ecfa
movq -0x38(%rbp), %rdi
movq 0x8(%rdi), %r13
testb %bl, %bl
je 0x9ede0
decl (%r15)
jne 0x9ede0
leaq 0x76d56(%rip), %rsi     # 0x115b31
callq 0xd4e3
movq %r13, %rdi
callq 0x9ef13
movq %rax, %rdx
movl $0x15, %r15d
jmp 0x9edf8
xorl %r15d, %r15d
xorl %edx, %edx
movq -0x30(%rbp), %rbx
jmp 0x9ecfa
movl $0xc, %r15d
jmp 0x9ecf8
movl $0xb, %r15d
jmp 0x9ecf8
movl $0xe, %r15d
jmp 0x9ecf8
movl $0x8, %r15d
jmp 0x9ecf8
movl $0xa, %r15d
jmp 0x9ecf8
movl $0xd, %r15d
jmp 0x9ecf8
movl $0x10, %r15d
jmp 0x9ecf8
movl $0x2, %r15d
jmp 0x9ecf8
movl $0x3, %r15d
jmp 0x9ecf8
movl $0xf, %r15d
jmp 0x9ecf8
movl $0x9, %r15d
jmp 0x9ecf8
movl $0x12, %r15d
jmp 0x9ecf8
movl $0x7, %r15d
jmp 0x9ecf8
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x458a4(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x458a9(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5