// File: /workspace/github_c_makefile_star2_O3/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 0x9c448
movq %rcx, %rbx
movq %rdi, %r14
movl $0x1, %r15d
movl %esi, %eax
leaq 0x43b12(%rip), %rcx     # 0xdf9ec
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
decl (%rdx)
jne 0x9c2ab
movq %rdx, %rdi
callq 0x5030
jmp 0x9c2ab
leaq -0x40(%rbp), %r13
movq %rdx, %rdi
movq %r13, %rsi
callq 0x2d5d6
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 0x9bf46
movl -0x40(%rbp), %edi
decl (%rcx)
jne 0x9bf46
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x75ba8(%rip), %rsi     # 0x111ae9
callq 0xd13d
leaq -0x50(%rbp), %r13
movq %r14, %rdi
movl %r15d, %esi
movq %r12, %rdx
movq %r13, %rcx
callq 0x9beab
movl %eax, %r15d
movq (%r13), %r14
jmp 0x9c2ad
movq %rdx, %rdi
callq 0x2d65d
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
movl $0x12, %r15d
orb %sil, %dil
jne 0x9c2ab
decl (%rcx)
jne 0x9c2ab
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x75b3d(%rip), %rsi     # 0x111ae9
jmp 0x9c133
movq %rdx, %rdi
callq 0x2d596
leaq -0x50(%rbp), %rcx
leaq -0x40(%rbp), %r8
movq %r14, %rdi
movl %eax, %esi
callq 0x35208
cmpl $0x2, %eax
jne 0x9c1a1
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
callq 0x11653
movl $0x1, %esi
movq %rax, %rdi
callq 0xe83a
xorl %r15d, %r15d
testl %eax, %eax
setne %r15b
shll $0x2, %r15d
jmp 0x9c214
movl 0x4(%rdx), %r15d
decl (%rdx)
jne 0x9c00f
movq %rdx, %rdi
callq 0x5030
cmpl $0x15, %r15d
ja 0x9c448
movl %r15d, %eax
leaq 0x43a01(%rip), %rcx     # 0xdfa24
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x11, %r15d
jmp 0x9c2ab
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x9c047
movq %rdx, %rdi
callq 0x5030
movq %r15, %rdi
callq 0x9c4cb
movq %rax, %rdx
movl $0x15, %r15d
jmp 0x9c2ad
movq 0x8(%rdx), %r12
decl (%rdx)
jne 0x9c06d
movq %rdx, %rdi
callq 0x5030
leaq -0x40(%rbp), %rdx
movq %r14, %rdi
movq %r12, %rsi
callq 0x2d45d
cmpl $0x1, %eax
je 0x9c2c2
testl %eax, %eax
jne 0x9c448
movq -0x40(%rbp), %r14
jmp 0x9c2ab
movq %rdx, %rdi
callq 0x2d69d
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x9c2ab
decl (%rcx)
jne 0x9c2ab
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x75b34(%rip), %rsi     # 0x111c09
jmp 0x9c133
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x9c0e7
movq %rdx, %rdi
callq 0x5030
movq %r15, %rdi
callq 0x9c478
movq %rax, %rdx
movl $0x14, %r15d
jmp 0x9c2ad
movq %rdx, %rdi
callq 0x2d55b
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x9c2ab
decl (%rcx)
jne 0x9c2ab
leaq 0x75a46(%rip), %rsi     # 0x111b79
movq %rax, %rdi
callq 0xd13d
jmp 0x9c2ab
movq %rbx, -0x30(%rbp)
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0x2d520
movq %rax, %r15
movq %rax, %rcx
andq %r12, %rcx
setne %al
testb $0x3, %r15b
sete %bl
andb %al, %bl
movq %rcx, -0x48(%rbp)
movq %r15, %rax
je 0x9c21d
addq $0x8, %rax
movq %rax, -0x58(%rbp)
movq 0x8(%r15), %r13
cmpl $0x0, (%rcx)
jne 0x9c229
movq %r15, %rdi
leaq 0x7599a(%rip), %rsi     # 0x111b31
callq 0xd13d
jmp 0x9c229
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 0x9c1de
decl (%rcx)
jne 0x9c1de
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x7613b(%rip), %rsi     # 0x112311
movq %rax, %rdi
callq 0xd13d
movq -0x38(%rbp), %rax
andq %rax, %rbx
sete %cl
testb $0x3, %al
setne %dl
movl $0x4, %r15d
orb %cl, %dl
jne 0x9c211
movl -0x40(%rbp), %edi
decl (%rbx)
jne 0x9c211
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x7506d(%rip), %rsi     # 0x111279
callq 0xd13d
movq %r14, %rbx
movq -0x50(%rbp), %r14
jmp 0x9c2ab
addq $0x8, %rax
movq %rax, -0x58(%rbp)
movq 0x8(%r15), %r13
leaq -0x40(%rbp), %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0x77e36
movl %eax, %r14d
andq %rdx, %r12
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x9c267
decl (%r12)
jne 0x9c267
movq %r14, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0x7505f(%rip), %rsi     # 0x1112c1
callq 0xd13d
leaq 0x1(,%r14,2), %rdi
movl $0x1, %esi
callq 0xe83a
movq -0x40(%rbp), %r14
testl %eax, %eax
je 0x9c376
testb %bl, %bl
movq -0x48(%rbp), %rax
je 0x9c3ab
decl (%rax)
movq -0x30(%rbp), %rbx
jne 0x9c2a8
movq %r15, %rdi
leaq 0x7588e(%rip), %rsi     # 0x111b31
callq 0xd13d
xorl %r15d, %r15d
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 0xd745
movq -0x40(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r14, %rax
leaq -0x50(%rbp), %rcx
movq %rax, %rdx
callq 0x2d4cc
movq %rdx, %r15
movq %rax, -0x30(%rbp)
movq %rax, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0x757e3(%rip), %rsi     # 0x111ae9
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x9c31c
incl (%rax)
callq 0x9353
movq %rdx, %r13
movq -0x50(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq 0x10790f5(%rip), %rdi   # 0x1115428
movq %r12, %rsi
callq 0x13c85
addq $0x4, %r14
orq %r13, %r14
leaq 0x74f78(%rip), %rsi     # 0x1112c1
movq %r14, %rdi
movq %rax, %rdx
callq 0x14766
leaq -0x60(%rbp), %r14
movq -0x48(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x9beab
movl %eax, %r15d
movq (%r14), %r14
jmp 0x9c2ad
movq -0x58(%rbp), %rax
movq (%rax), %r13
testb %bl, %bl
movq -0x48(%rbp), %rax
je 0x9c398
decl (%rax)
jne 0x9c398
movq %r15, %rdi
leaq 0x7579e(%rip), %rsi     # 0x111b31
callq 0xd13d
movq %r13, %rdi
callq 0x9c4cb
movq %rax, %rdx
movl $0x15, %r15d
jmp 0x9c3b0
xorl %r15d, %r15d
xorl %edx, %edx
movq -0x30(%rbp), %rbx
jmp 0x9c2ad
movl $0xc, %r15d
jmp 0x9c2ab
movl $0xb, %r15d
jmp 0x9c2ab
movl $0xe, %r15d
jmp 0x9c2ab
movl $0x8, %r15d
jmp 0x9c2ab
movl $0xa, %r15d
jmp 0x9c2ab
movl $0xd, %r15d
jmp 0x9c2ab
movl $0x10, %r15d
jmp 0x9c2ab
movl $0x2, %r15d
jmp 0x9c2ab
movl $0x3, %r15d
jmp 0x9c2ab
movl $0xf, %r15d
jmp 0x9c2ab
movl $0x9, %r15d
jmp 0x9c2ab
movl $0x12, %r15d
jmp 0x9c2ab
movl $0x7, %r15d
jmp 0x9c2ab
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x4426c(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x44271(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302