// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackTypePart_ctype
static struct mirth_type_CTypeStackPart mw_mirth_type_StackTypePart_ctype (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_StackTypePart in_StackTypePart_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* branch_zaMirth_5;
	struct mirth_type_CTypeStackPart branch_CTypeStackPart_6;
	switch ((in_StackTypePart_2).tag) {
		case mirth_type_StackTypePart_Cons: {
			struct mirth_type_Type v7 = mtp_mirth_type_StackTypePart_Cons(in_StackTypePart_2);
			struct mirth_mirth_zaMirth* v8;
			struct mirth_type_CType v9 = mw_mirth_type_Type_ctype(in_zaMirth_1, v7, &v8);
			struct mirth_type_CTypeStackPart v10 = mtw_mirth_type_CTypeStackPart_Cons(v9);
			branch_CTypeStackPart_6 = v10;
			branch_zaMirth_5 = v8;
		} break;
		case mirth_type_StackTypePart_ConsLabel: {
			uint64_t v11;
			struct mirth_type_Type v12 = mtp_mirth_type_StackTypePart_ConsLabel(in_StackTypePart_2, &v11);
			struct mirth_mirth_zaMirth* v13;
			struct mirth_type_CType v14 = mw_mirth_type_Type_ctype(in_zaMirth_1, v12, &v13);
			struct mirth_type_CTypeStackPart v15 = mtw_mirth_type_CTypeStackPart_ConsLabel(v14, v11);
			branch_CTypeStackPart_6 = v15;
			branch_zaMirth_5 = v13;
		} break;
		case mirth_type_StackTypePart_With: {
			struct mirth_type_Type v16 = mtp_mirth_type_StackTypePart_With(in_StackTypePart_2);
			struct mirth_mirth_zaMirth* v17;
			struct mirth_type_CType v18 = mw_mirth_type_Resource_ctype(in_zaMirth_1, v16, &v17);
			struct mirth_type_CTypeStackPart v19 = mtw_mirth_type_CTypeStackPart_With(v18);
			branch_CTypeStackPart_6 = v19;
			branch_zaMirth_5 = v17;
		} break;
		case mirth_type_StackTypePart_WithLabel: {
			uint64_t v20;
			struct mirth_type_Type v21 = mtp_mirth_type_StackTypePart_WithLabel(in_StackTypePart_2, &v20);
			struct mirth_mirth_zaMirth* v22;
			struct mirth_type_CType v23 = mw_mirth_type_Resource_ctype(in_zaMirth_1, v21, &v22);
			struct mirth_type_CTypeStackPart v24 = mtw_mirth_type_CTypeStackPart_WithLabel(v23, v20);
			branch_CTypeStackPart_6 = v24;
			branch_zaMirth_5 = v22;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_5;
	return branch_CTypeStackPart_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movl -0x20(%rbp), %eax
movq %rax, -0x130(%rbp)
subq $0x3, %rax
ja 0x168a28
movq -0x130(%rbp), %rax
leaq 0x1e9ef0(%rip), %rcx    # 0x35270c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0xcf110
movl %eax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq -0x28(%rbp), %rdi
movl -0x48(%rbp), %esi
movq -0x40(%rbp), %rdx
leaq -0x50(%rbp), %rcx
callq 0x168cf0
movl %eax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x169330
movl %eax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x168a41
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0xcf210
movl %eax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x28(%rbp), %rdi
movl -0x88(%rbp), %esi
movq -0x80(%rbp), %rdx
leaq -0x90(%rbp), %rcx
callq 0x168cf0
movl %eax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0x78(%rbp), %rdx
movl -0xa0(%rbp), %edi
movq -0x98(%rbp), %rsi
callq 0x1693c0
movl %eax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x168a41
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0xcf330
movl %eax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movq -0x28(%rbp), %rdi
movl -0xc0(%rbp), %esi
movq -0xb8(%rbp), %rdx
leaq -0xc8(%rbp), %rcx
callq 0x169460
movl %eax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x1694b0
movl %eax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x168a41
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
callq 0xcf430
movl %eax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0x28(%rbp), %rdi
movl -0x100(%rbp), %esi
movq -0xf8(%rbp), %rdx
leaq -0x108(%rbp), %rcx
callq 0x169460
movl %eax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movq -0xf0(%rbp), %rdx
movl -0x118(%rbp), %edi
movq -0x110(%rbp), %rsi
callq 0x169540
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 -0x108(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x168a41
leaq 0x1eb452(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nopl (%rax)