// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_C99DataSumTagRepr_tag
static uint64_t mw_mirth_c99_C99DataSumTagRepr_tag (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_C99DataSumTagRepr in_C99DataSumTagRepr_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* branch_zaMirth_5;
	uint64_t branch_Tag_6;
	switch ((in_C99DataSumTagRepr_2).tag) {
		case mirth_c99_C99DataSumTagRepr_Unit: {
			struct mirth_c99_C99DataUnitRepr* v7 = mtp_mirth_c99_C99DataSumTagRepr_Unit(in_C99DataSumTagRepr_2);
			uint64_t v8 = v7->mtag;
			decref(MK_mirth_c99_C99DataUnitRepr(v7));
			branch_Tag_6 = v8;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_c99_C99DataSumTagRepr_Struct: {
			struct mirth_c99_C99DataStructRepr* v9 = mtp_mirth_c99_C99DataSumTagRepr_Struct(in_C99DataSumTagRepr_2);
			uint64_t v10 = v9->mtag;
			decref(MK_mirth_c99_C99DataStructRepr(v9));
			branch_Tag_6 = v10;
			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_Tag_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movl %esi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0xf4(%rbp)
testl %eax, %eax
je 0x278dcd
jmp 0x278db9
movl -0xf4(%rbp), %eax
subl $0x1, %eax
je 0x278ee0
jmp 0x27902f
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2796e0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq 0x11a0e8(%rip), %rax    # 0x392ee0
orq $0x1, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x278ec9
movq -0x38(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq 0x11a0bf(%rip), %rax    # 0x392ee0
orq $0x1, %rax
movq %rax, -0x58(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x60(%rbp), %rax
cmpq $0x0, %rax
je 0x278ec9
movq -0x38(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq 0x11a090(%rip), %rax    # 0x392ee0
orq $0x1, %rax
movq %rax, -0x68(%rbp)
movq -0x70(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x278ec9
movq -0x38(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0x11a06b(%rip), %rax    # 0x392ee0
orq $0x1, %rax
movq %rax, -0x78(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x80(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x278ec7
movq -0x38(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x11a037(%rip), %rax    # 0x392ee0
orq $0x1, %rax
movq %rax, -0x88(%rbp)
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x127c0
jmp 0x278ec9
jmp 0x278ecb
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x279048
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2797e0
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq 0x11a09e(%rip), %rax    # 0x392fb8
orq $0x1, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x279018
movq -0x98(%rbp), %rax
movq %rax, -0xc0(%rbp)
leaq 0x11a069(%rip), %rax    # 0x392fb8
orq $0x1, %rax
movq %rax, -0xb8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc0(%rbp), %rax
cmpq $0x0, %rax
je 0x279018
movq -0x98(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq 0x11a02e(%rip), %rax    # 0x392fb8
orq $0x1, %rax
movq %rax, -0xc8(%rbp)
movq -0xd0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x279018
movq -0x98(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq 0x119ffd(%rip), %rax    # 0x392fb8
orq $0x1, %rax
movq %rax, -0xd8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xe0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x279016
movq -0x98(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq 0x119fc0(%rip), %rax    # 0x392fb8
orq $0x1, %rax
movq %rax, -0xe8(%rbp)
movq -0xf0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0x127c0
jmp 0x279018
jmp 0x27901a
movq -0xa0(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x279048
leaq 0xdae4b(%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 $0x100, %rsp            # imm = 0x100
popq %rbp
retq