// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_C99DataSumTagRepr_packzestructzx
static STR* mw_mirth_c99_C99DataSumTagRepr_packzestructzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_c99_C99DataSumTagRepr in_C99DataSumTagRepr_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5) {
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_8;
	STR* branch_Str_9;
	switch ((in_C99DataSumTagRepr_3).tag) {
		case mirth_c99_C99DataSumTagRepr_Unit: {
			struct mirth_c99_C99DataUnitRepr* v10 = mtp_mirth_c99_C99DataSumTagRepr_Unit(in_C99DataSumTagRepr_3);
			struct mirth_mirth_zaMirth* v11;
			struct mirth_c99_zaC99Branch* v12;
			mw_mirth_c99_C99DataUnitRepr_packzeunitzx(in_zaMirth_1, in_zaC99Branch_2, v10, &v11, &v12);
			STR* v13;
			STRLIT(v13, "0", 1);
			branch_Str_9 = v13;
			branch_zaC99Branch_8 = v12;
			branch_zaMirth_7 = v11;
		} break;
		case mirth_c99_C99DataSumTagRepr_Struct: {
			struct mirth_c99_C99DataStructRepr* v14 = mtp_mirth_c99_C99DataSumTagRepr_Struct(in_C99DataSumTagRepr_3);
			struct mirth_mirth_zaMirth* v15;
			struct mirth_c99_zaC99Branch* v16;
			STR* v17 = mw_mirth_c99_C99DataStructRepr_packzestructzx(in_zaMirth_1, in_zaC99Branch_2, v14, &v15, &v16);
			branch_Str_9 = v17;
			branch_zaC99Branch_8 = v16;
			branch_zaMirth_7 = v15;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99Branch_5 = branch_zaC99Branch_8;
	*out_zaMirth_4 = branch_zaMirth_7;
	return branch_Str_9;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movl %edx, -0x10(%rbp)
movq %rcx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0xcc(%rbp)
testl %eax, %eax
je 0x2a6965
jmp 0x2a6951
movl -0xcc(%rbp), %eax
subl $0x1, %eax
je 0x2a6aa2
jmp 0x2a6b01
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2796e0
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq -0x58(%rbp), %rcx
leaq -0x60(%rbp), %r8
callq 0x2935f0
cmpq $0x0, 0x10f15c2(%rip)   # 0x1397f58
jne 0x2a69b0
leaq 0xc757d(%rip), %rdi     # 0x36df1c
movl $0x1, %esi
callq 0xb6c0
movq %rax, 0x10f15a8(%rip)   # 0x1397f58
jmp 0x2a69b2
movq 0x10f159f(%rip), %rax   # 0x1397f58
movq %rax, -0x78(%rbp)
leaq 0xea794(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2a6a7b
movq 0x10f1573(%rip), %rax   # 0x1397f58
movq %rax, -0x88(%rbp)
leaq 0xea765(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
cmpq $0x0, %rax
je 0x2a6a7b
movq 0x10f153f(%rip), %rax   # 0x1397f58
movq %rax, -0x98(%rbp)
leaq 0xea731(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movq -0x98(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2a6a7b
movq 0x10f150e(%rip), %rax   # 0x1397f58
movq %rax, -0xa8(%rbp)
leaq 0xea700(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x2a6a7d
movq 0x10f14d4(%rip), %rax   # 0x1397f58
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x2a6b1a
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2797e0
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0xb0(%rbp), %rdx
leaq -0xb8(%rbp), %rcx
leaq -0xc0(%rbp), %r8
callq 0x2a3970
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x2a6b1a
leaq 0xad379(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x48(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
nopl (%rax)