// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackTypePart_typezfresource
static struct std_either_Either_2 mw_mirth_type_StackTypePart_typezfresource (struct mirth_type_StackTypePart in_StackTypePart_1) {
	struct std_either_Either_2 branch_Either_3;
	switch ((in_StackTypePart_1).tag) {
		case mirth_type_StackTypePart_Cons: {
			struct mirth_type_Type v4 = mtp_mirth_type_StackTypePart_Cons(in_StackTypePart_1);
			struct std_either_Either_2 v5 = mtw_std_either_Either_2_Left(MK_mirth_type_Type(v4));
			branch_Either_3 = v5;
		} break;
		case mirth_type_StackTypePart_With: {
			struct mirth_type_Type v6 = mtp_mirth_type_StackTypePart_With(in_StackTypePart_1);
			struct std_either_Either_2 v7 = mtw_std_either_Either_2_Right(MK_mirth_type_Type(v6));
			branch_Either_3 = v7;
		} break;
		case mirth_type_StackTypePart_ConsLabel: {
			uint64_t v8;
			struct mirth_type_Type v9 = mtp_mirth_type_StackTypePart_ConsLabel(in_StackTypePart_1, &v8);
			struct std_either_Either_2 v10 = mtw_std_either_Either_2_Left(MK_mirth_type_Type(v9));
			branch_Either_3 = v10;
		} break;
		case mirth_type_StackTypePart_WithLabel: {
			uint64_t v11;
			struct mirth_type_Type v12 = mtp_mirth_type_StackTypePart_WithLabel(in_StackTypePart_1, &v11);
			struct std_either_Either_2 v13 = mtw_std_either_Either_2_Right(MK_mirth_type_Type(v12));
			branch_Either_3 = v13;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	return branch_Either_3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movl %edi, -0x20(%rbp)
movq %rsi, -0x18(%rbp)
movl -0x20(%rbp), %eax
movq %rax, -0xf8(%rbp)
subq $0x3, %rax
ja 0x1ae400
movq -0xf8(%rbp), %rax
leaq 0x1a45a0(%rip), %rcx    # 0x352804
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0xcf110
movl %eax, -0x30(%rbp)
movq %rdx, -0x28(%rbp)
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0x6e780
movq %rax, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x73f50
movl %eax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1ae419
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0xcf330
movl %eax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x6e780
movq %rax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x73fe0
movl %eax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1ae419
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
leaq -0x88(%rbp), %rdx
callq 0xcf210
movl %eax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x6e780
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x73f50
movl %eax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1ae419
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
leaq -0xc0(%rbp), %rdx
callq 0xcf430
movl %eax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
callq 0x6e780
movq %rax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movq -0xf0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0x73fe0
movl %eax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1ae419
leaq 0x1a5a7a(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopl (%rax)