// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_C99DataRepr_underlyingzec99zetype
static STR* mw_mirth_c99_C99DataRepr_underlyingzec99zetype (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_C99DataRepr in_C99DataRepr_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* branch_zaMirth_5;
	STR* branch_Str_6;
	switch ((in_C99DataRepr_2).tag) {
		case mirth_c99_C99DataRepr_Unit: {
			struct mirth_c99_C99DataUnitRepr* v7 = mtp_mirth_c99_C99DataRepr_Unit(in_C99DataRepr_2);
			VAL v8 = mw_mirth_c99_C99DataUnitRepr_underlyingzec99zetype(v7);
			branch_Str_6 = value_str(v8);
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_c99_C99DataRepr_Enum: {
			uint64_t v9 = mtp_mirth_c99_C99DataRepr_Enum(in_C99DataRepr_2);
			struct mirth_mirth_zaMirth* v10;
			STR* v11 = mw_mirth_c99_C99DataEnumRepr_underlyingzec99zetype(in_zaMirth_1, v9, &v10);
			branch_Str_6 = v11;
			branch_zaMirth_5 = v10;
		} break;
		case mirth_c99_C99DataRepr_Trans: {
			struct mirth_c99_C99DataTransRepr* v12 = mtp_mirth_c99_C99DataRepr_Trans(in_C99DataRepr_2);
			struct mirth_mirth_zaMirth* v13;
			STR* v14 = mw_mirth_c99_C99DataTransRepr_underlyingzec99zetype(in_zaMirth_1, v12, &v13);
			branch_Str_6 = v14;
			branch_zaMirth_5 = v13;
		} break;
		case mirth_c99_C99DataRepr_Struct: {
			struct mirth_c99_C99DataStructRepr* v15 = mtp_mirth_c99_C99DataRepr_Struct(in_C99DataRepr_2);
			struct mirth_mirth_zaMirth* v16;
			STR* v17 = mw_mirth_c99_C99DataStructRepr_underlyingzec99zetype(in_zaMirth_1, v15, &v16);
			branch_Str_6 = v17;
			branch_zaMirth_5 = v16;
		} break;
		case mirth_c99_C99DataRepr_Sum: {
			struct mirth_c99_C99DataSumRepr* v18 = mtp_mirth_c99_C99DataRepr_Sum(in_C99DataRepr_2);
			struct mirth_mirth_zaMirth* v19;
			STR* v20 = mw_mirth_c99_C99DataSumRepr_underlyingzec99zetype(in_zaMirth_1, v18, &v19);
			branch_Str_6 = v20;
			branch_zaMirth_5 = v19;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_5;
	return branch_Str_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movl %esi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0x10(%rbp), %eax
movq %rax, -0xb0(%rbp)
subq $0x4, %rax
ja 0x276c04
movq -0xb0(%rbp), %rax
leaq 0xdc9b0(%rip), %rcx     # 0x35346c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x237130
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x276c40
movq %rax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0xb980
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x276c1d
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x239880
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rdi
movq -0x50(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x276e50
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x276c1d
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x23bbd0
movq %rax, -0x68(%rbp)
movq -0x18(%rbp), %rdi
movq -0x68(%rbp), %rsi
leaq -0x70(%rbp), %rdx
callq 0x2770b0
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x276c1d
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x23e060
movq %rax, -0x80(%rbp)
movq -0x18(%rbp), %rdi
movq -0x80(%rbp), %rsi
leaq -0x88(%rbp), %rdx
callq 0x26e0a0
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x276c1d
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x241ad0
movq %rax, -0x98(%rbp)
movq -0x18(%rbp), %rdi
movq -0x98(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x2772b0
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x276c1d
leaq 0xdd276(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x30(%rbp), %rax
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)