// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_C99DataSumTagRepr_Make
static struct mirth_c99_C99DataSumTagRepr mw_mirth_c99_C99DataSumTagRepr_Make (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Tag_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct std_maybe_Maybe_1 v5 = { .tag=std_maybe_Maybe_1_None };
	uint64_t branch_Tag_6;
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct std_maybe_Maybe_1 branch_Maybe_8;
	switch ((v5).tag) {
		case std_maybe_Maybe_1_None: {
			struct mirth_mirth_zaMirth* v9;
			struct std_maybe_Maybe_1 v10 = mw_mirth_c99_C99DataUnitRepr_MakeOfTagzy(in_zaMirth_1, in_Tag_2, &v9);
			struct std_maybe_Maybe_1 branch_Maybe_11;
			switch ((v10).tag) {
				case std_maybe_Maybe_1_Some: {
					VAL v12 = mtp_std_maybe_Maybe_1_Some(v10);
					struct mirth_c99_C99DataSumTagRepr v13 = mw_mirth_c99_C99DataUnitRepr_zgC99DataSumTagRepr(V_mirth_c99_C99DataUnitRepr(v12));
					struct std_maybe_Maybe_1 v14 = mtw_std_maybe_Maybe_1_Some(MK_mirth_c99_C99DataSumTagRepr(v13));
					branch_Maybe_11 = v14;
				} break;
				case std_maybe_Maybe_1_None: {
					struct std_maybe_Maybe_1 v15 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_11 = v15;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_Maybe_8 = branch_Maybe_11;
			branch_zaMirth_7 = v9;
			branch_Tag_6 = in_Tag_2;
		} break;
		default: {
			branch_Maybe_8 = v5;
			branch_zaMirth_7 = in_zaMirth_1;
			branch_Tag_6 = in_Tag_2;
		} break;
	}
	struct mirth_mirth_zaMirth* branch_zaMirth_16;
	uint64_t branch_Tag_17;
	struct mirth_c99_C99DataSumTagRepr branch_C99DataSumTagRepr_18;
	switch ((branch_Maybe_8).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v19 = mtp_std_maybe_Maybe_1_Some(branch_Maybe_8);
			branch_C99DataSumTagRepr_18 = V_mirth_c99_C99DataSumTagRepr(v19);
			branch_Tag_17 = branch_Tag_6;
			branch_zaMirth_16 = branch_zaMirth_7;
		} break;
		case std_maybe_Maybe_1_None: {
			struct mirth_mirth_zaMirth* v20;
			struct mirth_c99_C99DataStructRepr* v21 = mw_mirth_c99_C99DataStructRepr_Make(branch_zaMirth_7, branch_Tag_6, &v20);
			struct mirth_c99_C99DataSumTagRepr v22 = mw_mirth_c99_C99DataStructRepr_zgC99DataSumTagRepr(v21);
			branch_C99DataSumTagRepr_18 = v22;
			branch_Tag_17 = branch_Tag_6;
			branch_zaMirth_16 = v20;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_16;
	return branch_C99DataSumTagRepr_18;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movl -0x40(%rbp), %eax
testl %eax, %eax
jne 0x236961
jmp 0x23682b
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x230010
movl %eax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movl -0x78(%rbp), %eax
movl %eax, -0x12c(%rbp)
testl %eax, %eax
je 0x2368f5
jmp 0x236856
movl -0x12c(%rbp), %eax
subl $0x1, %eax
jne 0x236923
jmp 0x236867
movl -0x78(%rbp), %edi
movq -0x70(%rbp), %rsi
callq 0x174a0
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x98(%rbp), %rdi
callq 0x236b80
movl %eax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movl -0xa8(%rbp), %edi
movq -0xa0(%rbp), %rsi
callq 0x236ab0
movq %rax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0xca10
movl %eax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0x23693c
leaq -0xd8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0xd8(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0x23693c
leaq 0x11d557(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x88(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x236981
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x130(%rbp)
testl %eax, %eax
je 0x236a09
jmp 0x236990
movl -0x130(%rbp), %eax
subl $0x1, %eax
jne 0x236a6e
jmp 0x2369a1
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x174a0
movq %rax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
callq 0x236bb0
movl %eax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x236a87
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0x233cd0
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rdi
callq 0x236bf0
movl %eax, -0x128(%rbp)
movq %rdx, -0x120(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x236a87
leaq 0x11d40c(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0xe0(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nopw %cs:(%rax,%rax)