// File: /workspace/github_c_makefile_star2_O2/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 $0x48, %rsp
cmpl $0xd, %esi
ja 0x93f67
movq %rcx, %rbx
movq %rdi, %r14
pushq $0x1
popq %r15
movl %esi, %eax
leaq 0x3ff5d(%rip), %rcx     # 0xd3a0c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rdx, %rdi
callq 0x2aa5d
cmpl $0x15, %eax
ja 0x93f67
movl %eax, %r15d
movl %eax, %eax
leaq 0x3ff6f(%rip), %rcx     # 0xd3a44
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0x11
jmp 0x93f4e
leaq -0x38(%rbp), %r13
movq %rdx, %rdi
movq %r13, %rsi
callq 0x2ad00
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 0x93b33
movl -0x38(%rbp), %edi
decl (%rcx)
jne 0x93b33
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x74fbb(%rip), %rsi     # 0x108ae9
callq 0xce94
leaq -0x48(%rbp), %r13
movq %r14, %rdi
movl %r15d, %esi
movq %r12, %rdx
movq %r13, %rcx
callq 0x93a82
movl %eax, %r15d
movq (%r13), %r14
jmp 0x93f52
movq %rdx, %rdi
callq 0x2abd6
jmp 0x93f50
movq %rdx, %rdi
callq 0x2ad87
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
pushq $0x12
popq %r15
orb %sil, %dil
jne 0x93f50
decl (%rcx)
jne 0x93f50
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x74f45(%rip), %rsi     # 0x108ae9
jmp 0x93cd4
movq %rdx, %rdi
callq 0x2acc0
leaq -0x48(%rbp), %rcx
leaq -0x38(%rbp), %r8
movq %r14, %rdi
movl %eax, %esi
callq 0x32573
cmpl $0x2, %eax
jne 0x93d44
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x10bca
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0xd759
xorb $0x1, %al
movzbl %al, %r15d
shll $0x2, %r15d
jmp 0x93db5
movq %rdx, %rdi
callq 0x2aabf
movq %rax, %r12
leaq -0x38(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x2aadc
cmpl $0x1, %eax
je 0x93e84
testl %eax, %eax
jne 0x93f67
movq -0x38(%rbp), %r14
jmp 0x93f50
movq %rdx, %rdi
callq 0x2ac2d
movq %rax, %rdi
jmp 0x93e4b
movq %rdx, %rdi
callq 0x2abf3
jmp 0x93f50
movq %rdx, %rdi
callq 0x2adc7
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x93f50
decl (%rcx)
jne 0x93f50
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x74f87(%rip), %rsi     # 0x108c09
jmp 0x93cd4
movq %rdx, %rdi
callq 0x2ac10
movq %rax, %rdi
callq 0x93fa7
movq %rax, %rdx
pushq $0x14
jmp 0x93e55
movq %rdx, %rdi
callq 0x2ac85
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x93f50
decl (%rcx)
jne 0x93f50
leaq 0x74ea5(%rip), %rsi     # 0x108b79
movq %rax, %rdi
callq 0xce94
jmp 0x93f50
movq %rbx, -0x40(%rbp)
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0x2ac4a
movq %rax, %r15
movq %rax, %rcx
andq %rbx, %rcx
setne %al
testb $0x3, %r15b
sete %r12b
andb %al, %r12b
movq %rcx, -0x58(%rbp)
movq %r15, %rax
je 0x93dbe
addq $0x8, %rax
movq %rax, -0x50(%rbp)
movq 0x8(%r15), %r13
cmpl $0x0, (%rcx)
jne 0x93dca
movq %r15, %rdi
leaq 0x74df7(%rip), %rsi     # 0x108b31
callq 0xce94
jmp 0x93dca
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 0x93d81
decl (%rcx)
jne 0x93d81
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x75598(%rip), %rsi     # 0x109311
movq %rax, %rdi
callq 0xce94
movq -0x30(%rbp), %rax
andq %rax, %rbx
sete %cl
testb $0x3, %al
setne %dl
pushq $0x4
popq %r15
orb %cl, %dl
jne 0x93db2
movl -0x38(%rbp), %edi
decl (%rbx)
jne 0x93db2
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x744cc(%rip), %rsi     # 0x108279
callq 0xce94
movq %r14, %rbx
movq -0x48(%rbp), %r14
jmp 0x93f50
addq $0x8, %rax
movq %rax, -0x50(%rbp)
movq 0x8(%r15), %r13
leaq -0x38(%rbp), %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0x71564
movl %eax, %r14d
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x93e06
decl (%rbx)
jne 0x93e06
movq %r14, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0x744c0(%rip), %rsi     # 0x1082c1
callq 0xce94
movq %r14, %rdi
callq 0xd86d
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0xd759
movq -0x38(%rbp), %r14
testb %al, %al
je 0x93e5c
movq -0x50(%rbp), %rax
movq (%rax), %r13
testb %r12b, %r12b
movq -0x40(%rbp), %rbx
movq -0x58(%rbp), %rax
je 0x93e48
decl (%rax)
jne 0x93e48
movq %r15, %rdi
leaq 0x74cee(%rip), %rsi     # 0x108b31
callq 0xce94
movq %r13, %rdi
callq 0x93ff0
movq %rax, %rdx
pushq $0x15
popq %r15
jmp 0x93f52
testb %r12b, %r12b
movq -0x40(%rbp), %rbx
movq -0x58(%rbp), %rax
je 0x93e7c
decl (%rax)
jne 0x93e7c
movq %r15, %rdi
leaq 0x74cba(%rip), %rsi     # 0x108b31
callq 0xce94
xorl %r15d, %r15d
jmp 0x93f50
movq %rbx, -0x40(%rbp)
movq %rdx, %rdi
callq 0xd491
movq -0x38(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rax
leaq -0x48(%rbp), %rcx
movq %rax, %rdx
callq 0x2ab4b
movl %eax, %r15d
movq %rdx, %r14
movq %r15, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0x74c1e(%rip), %rsi     # 0x108ae9
andq %rdx, %rbx
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0x93ede
incl (%rbx)
callq 0x8d0c
movq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %r13
movq %rdx, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x2ab8f
movq (%r13), %rdi
leaq -0x60(%rbp), %r12
movl %r15d, %esi
movq %r14, %rdx
movq %r12, %rcx
callq 0x93a82
movl %eax, %r15d
movq (%r12), %r14
movq -0x40(%rbp), %rbx
jmp 0x93f52
pushq $0xc
jmp 0x93f4e
pushq $0xb
jmp 0x93f4e
pushq $0xe
jmp 0x93f4e
pushq $0x8
jmp 0x93f4e
pushq $0xa
jmp 0x93f4e
pushq $0xd
jmp 0x93f4e
pushq $0x10
jmp 0x93f4e
pushq $0x2
jmp 0x93f4e
pushq $0x3
jmp 0x93f4e
pushq $0xf
jmp 0x93f4e
pushq $0x9
jmp 0x93f4e
pushq $0x12
jmp 0x93f4e
pushq $0x7
popq %r15
xorl %edx, %edx
movq %r14, (%rbx)
movl %r15d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4089f(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6