// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_tycon_Tycon_c99zereprzetag
static STR* mw_mirth_tycon_Tycon_c99zereprzetag (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_tycon_Tycon in_Tycon_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* branch_zaMirth_5;
	STR* branch_Str_6;
	switch ((in_Tycon_2).tag) {
		case mirth_tycon_Tycon_Prim: {
			enum mirth_type_PrimType v7 = mtp_mirth_tycon_Tycon_Prim(in_Tycon_2);
			struct mirth_mirth_zaMirth* v8;
			STR* v9 = mw_mirth_type_PrimType_c99zereprzetag(in_zaMirth_1, v7, &v8);
			branch_Str_6 = v9;
			branch_zaMirth_5 = v8;
		} break;
		case mirth_tycon_Tycon_Data: {
			uint64_t v10 = mtp_mirth_tycon_Tycon_Data(in_Tycon_2);
			struct mirth_mirth_zaMirth* v11;
			STR* v12 = mw_mirth_data_Data_cname(in_zaMirth_1, v10, &v11);
			STR* v13;
			STRLIT(v13, "TAG_", 4);
			STR* v14 = str_cat(v13, v12);
			branch_Str_6 = v14;
			branch_zaMirth_5 = v11;
		} break;
		case mirth_tycon_Tycon_Table: {
			uint64_t v15 = mtp_mirth_tycon_Tycon_Table(in_Tycon_2);
			struct mirth_mirth_zaMirth* v16;
			STR* v17 = mw_mirth_table_Table_cname(in_zaMirth_1, v15, &v16);
			STR* v18;
			STRLIT(v18, "TAG_", 4);
			STR* v19 = str_cat(v18, v17);
			branch_Str_6 = v19;
			branch_zaMirth_5 = v16;
		} 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 $0x120, %rsp            # imm = 0x120
movl %esi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x11c(%rbp)
testl %eax, %eax
je 0x268503
jmp 0x2684a9
movl -0x11c(%rbp), %eax
subl $0x1, %eax
je 0x26864e
jmp 0x2684ba
movl -0x11c(%rbp), %eax
subl $0x2, %eax
jne 0x2687ba
jmp 0x2684cb
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x5a4e0
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rdi
movl -0x34(%rbp), %esi
leaq -0x40(%rbp), %rdx
callq 0x26a710
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x2687d3
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x5a440
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rdi
movq -0x50(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x230390
movq %rax, -0x60(%rbp)
cmpq $0x0, 0x112ee70(%rip)   # 0x13973a0
jne 0x26854a
leaq 0x104c94(%rip), %rdi    # 0x36d1cd
movl $0x4, %esi
callq 0xb6c0
movq %rax, 0x112ee56(%rip)   # 0x13973a0
jmp 0x26854c
movq 0x112ee4d(%rip), %rax   # 0x13973a0
movq %rax, -0x78(%rbp)
leaq 0x128bfa(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x268615
movq 0x112ee21(%rip), %rax   # 0x13973a0
movq %rax, -0x88(%rbp)
leaq 0x128bcb(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
cmpq $0x0, %rax
je 0x268615
movq 0x112eded(%rip), %rax   # 0x13973a0
movq %rax, -0x98(%rbp)
leaq 0x128b97(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movq -0x98(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x268615
movq 0x112edbc(%rip), %rax   # 0x13973a0
movq %rax, -0xa8(%rbp)
leaq 0x128b66(%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 0x268617
movq 0x112ed82(%rip), %rax   # 0x13973a0
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x1a680
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x2687d3
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x5a490
movq %rax, -0xb8(%rbp)
movq -0x18(%rbp), %rdi
movq -0xb8(%rbp), %rsi
leaq -0xc0(%rbp), %rdx
callq 0x22a9d0
movq %rax, -0xc8(%rbp)
cmpq $0x0, 0x112ed21(%rip)   # 0x13973a8
jne 0x2686a1
leaq 0x104b3d(%rip), %rdi    # 0x36d1cd
movl $0x4, %esi
callq 0xb6c0
movq %rax, 0x112ed07(%rip)   # 0x13973a8
jmp 0x2686a3
movq 0x112ecfe(%rip), %rax   # 0x13973a8
movq %rax, -0xe0(%rbp)
leaq 0x128aa0(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x268778
movq 0x112ecc9(%rip), %rax   # 0x13973a8
movq %rax, -0xf0(%rbp)
leaq 0x128a6b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xe8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xf0(%rbp), %rax
cmpq $0x0, %rax
je 0x268778
movq 0x112ec92(%rip), %rax   # 0x13973a8
movq %rax, -0x100(%rbp)
leaq 0x128a34(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xf8(%rbp)
movq -0x100(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x268778
movq 0x112ec61(%rip), %rax   # 0x13973a8
movq %rax, -0x110(%rbp)
leaq 0x128a03(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x110(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x26877a
movq 0x112ec27(%rip), %rax   # 0x13973a8
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
callq 0x1a680
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x2687d3
leaq 0xeb6c0(%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 $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopl (%rax,%rax)