// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_linearzebasezevarzy
static struct std_maybe_Maybe_1 mw_mirth_type_StackType_linearzebasezevarzy (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_StackType in_StackType_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* branch_zaMirth_5;
	struct std_maybe_Maybe_1 branch_Maybe_6;
	switch ((in_StackType_2).tag) {
		case mirth_type_StackType_Error: {
			struct std_maybe_Maybe_1 v7 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v7;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Ignore: {
			struct std_maybe_Maybe_1 v8 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v8;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Unit: {
			struct std_maybe_Maybe_1 v9 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v9;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Meta: {
			uint64_t v10 = mtp_mirth_type_StackType_Meta(in_StackType_2);
			struct mirth_mirth_zaMirth* v11;
			struct std_maybe_Maybe_1 v12 = mw_mirth_type_MetaVar_typezy(in_zaMirth_1, v10, &v11);
			struct mirth_mirth_zaMirth* branch_zaMirth_13;
			struct std_maybe_Maybe_1 branch_Maybe_14;
			switch ((v12).tag) {
				case std_maybe_Maybe_1_None: {
					struct std_maybe_Maybe_1 v15 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_14 = v15;
					branch_zaMirth_13 = v11;
				} break;
				case std_maybe_Maybe_1_Some: {
					VAL v16 = mtp_std_maybe_Maybe_1_Some(v12);
					struct mirth_mirth_zaMirth* v17;
					struct mirth_type_Type v18 = mw_mirth_type_Type_expand(v11, V_mirth_type_Type(v16), &v17);
					incref(MK_mirth_type_Type(v18));
					struct std_maybe_Maybe_1 v19 = mtw_std_maybe_Maybe_1_Some(MK_mirth_type_Type(v18));
					struct mirth_mirth_zaMirth* v20;
					mw_mirth_type_MetaVar_typezyzx(v17, v19, v10, &v20);
					struct mirth_type_StackType v21 = mw_mirth_type_Type_zgStackType(v18);
					struct mirth_mirth_zaMirth* v22;
					struct std_maybe_Maybe_1 v23 = mw_mirth_type_StackType_linearzebasezevarzy(v20, v21, &v22);
					branch_Maybe_14 = v23;
					branch_zaMirth_13 = v22;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_Maybe_6 = branch_Maybe_14;
			branch_zaMirth_5 = branch_zaMirth_13;
		} break;
		case mirth_type_StackType_Var: {
			uint64_t v24 = mtp_mirth_type_StackType_Var(in_StackType_2);
			struct std_maybe_Maybe_1 v25 = mtw_std_maybe_Maybe_1_Some(MK_mirth_var_Var(v24));
			branch_Maybe_6 = v25;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Cons: {
			struct mirth_type_Type v26;
			struct mirth_type_StackType v27 = mtp_mirth_type_StackType_Cons(in_StackType_2, &v26);
			struct mirth_mirth_zaMirth* v28;
			struct std_maybe_Maybe_1 v29 = mw_mirth_type_StackType_linearzebasezevarzy(in_zaMirth_1, v27, &v28);
			struct mirth_mirth_zaMirth* v30;
			struct std_maybe_Maybe_1 v31;
			struct mirth_type_Type v32 = mw_std_maybe_Maybe_1_filter_1_sp3(v28, v26, v29, &v30, &v31);
			decref(MK_mirth_type_Type(v32));
			branch_Maybe_6 = v31;
			branch_zaMirth_5 = v30;
		} break;
		case mirth_type_StackType_With: {
			struct mirth_type_Type v33;
			struct mirth_type_StackType v34 = mtp_mirth_type_StackType_With(in_StackType_2, &v33);
			struct mirth_mirth_zaMirth* v35;
			struct std_maybe_Maybe_1 v36 = mw_mirth_type_StackType_linearzebasezevarzy(in_zaMirth_1, v34, &v35);
			struct mirth_mirth_zaMirth* v37;
			struct std_maybe_Maybe_1 v38;
			struct mirth_type_Type v39 = mw_std_maybe_Maybe_1_filter_1_sp4(v35, v33, v36, &v37, &v38);
			decref(MK_mirth_type_Type(v39));
			branch_Maybe_6 = v38;
			branch_zaMirth_5 = v37;
		} break;
		case mirth_type_StackType_ConsLabel: {
			struct mirth_type_Type v40;
			uint64_t v41;
			struct mirth_type_StackType v42 = mtp_mirth_type_StackType_ConsLabel(in_StackType_2, &v40, &v41);
			struct mirth_mirth_zaMirth* v43;
			struct std_maybe_Maybe_1 v44 = mw_mirth_type_StackType_linearzebasezevarzy(in_zaMirth_1, v42, &v43);
			struct mirth_mirth_zaMirth* v45;
			struct std_maybe_Maybe_1 v46;
			struct mirth_type_Type v47 = mw_std_maybe_Maybe_1_filter_1_sp3(v43, v40, v44, &v45, &v46);
			decref(MK_mirth_type_Type(v47));
			branch_Maybe_6 = v46;
			branch_zaMirth_5 = v45;
		} break;
		case mirth_type_StackType_WithLabel: {
			struct mirth_type_Type v48;
			uint64_t v49;
			struct mirth_type_StackType v50 = mtp_mirth_type_StackType_WithLabel(in_StackType_2, &v48, &v49);
			struct mirth_mirth_zaMirth* v51;
			struct std_maybe_Maybe_1 v52 = mw_mirth_type_StackType_linearzebasezevarzy(in_zaMirth_1, v50, &v51);
			struct mirth_mirth_zaMirth* v53;
			struct std_maybe_Maybe_1 v54;
			struct mirth_type_Type v55 = mw_std_maybe_Maybe_1_filter_1_sp4(v51, v48, v52, &v53, &v54);
			decref(MK_mirth_type_Type(v55));
			branch_Maybe_6 = v54;
			branch_zaMirth_5 = v53;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_5;
	return branch_Maybe_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
cmpl $0x8, %esi
ja 0xae3aa
movq %rcx, %rbx
movq %rdi, %r14
movl %esi, %eax
leaq 0x35c75(%rip), %rcx     # 0xe3d44
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
xorl %edx, %edx
jmp 0xae398
leaq -0x60(%rbp), %r15
movq %rdx, %rdi
movq %r15, %rsi
callq 0x39346
leaq -0x48(%rbp), %r12
movq %r14, %rdi
movl %eax, %esi
movq %r12, %rcx
callq 0xae0a6
movq %rdx, %r8
movq (%r12), %rdi
movl (%r15), %esi
movq 0x8(%r15), %rdx
leaq -0x38(%rbp), %rcx
movq %rcx, (%rsp)
leaq -0x40(%rbp), %r9
movl %eax, %ecx
callq 0xafa98
jmp 0xae165
leaq -0x60(%rbp), %r15
movq %rdx, %rdi
movq %r15, %rsi
callq 0x392bf
leaq -0x48(%rbp), %r12
movq %r14, %rdi
movl %eax, %esi
movq %r12, %rcx
callq 0xae0a6
movq %rdx, %r8
movq (%r12), %rdi
movl (%r15), %esi
movq 0x8(%r15), %rdx
leaq -0x38(%rbp), %rcx
movq %rcx, (%rsp)
leaq -0x40(%rbp), %r9
movl %eax, %ecx
callq 0xaf957
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xae19c
decl (%rcx)
jne 0xae19c
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x67955(%rip), %rsi     # 0x115ae9
movq %rax, %rdi
callq 0xd4e3
movl -0x38(%rbp), %eax
movq -0x30(%rbp), %rdx
movq -0x40(%rbp), %r14
jmp 0xae398
leaq -0x60(%rbp), %r15
leaq -0x48(%rbp), %rax
movq %rdx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x393cd
leaq -0x40(%rbp), %r12
movq %r14, %rdi
movl %eax, %esi
movq %r12, %rcx
callq 0xae0a6
movq %rdx, %r8
movq (%r12), %rdi
movl (%r15), %esi
movq 0x8(%r15), %rdx
leaq -0x38(%rbp), %rcx
movq %rcx, (%rsp)
leaq -0x50(%rbp), %r9
movl %eax, %ecx
callq 0xaf957
jmp 0xae23e
leaq -0x60(%rbp), %r15
leaq -0x48(%rbp), %rax
movq %rdx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x39471
leaq -0x40(%rbp), %r12
movq %r14, %rdi
movl %eax, %esi
movq %r12, %rcx
callq 0xae0a6
movq %rdx, %r8
movq (%r12), %rdi
movl (%r15), %esi
movq 0x8(%r15), %rdx
leaq -0x38(%rbp), %rcx
movq %rcx, (%rsp)
leaq -0x50(%rbp), %r9
movl %eax, %ecx
callq 0xafa98
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xae275
decl (%rcx)
jne 0xae275
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x6787c(%rip), %rsi     # 0x115ae9
movq %rax, %rdi
callq 0xd4e3
movl -0x38(%rbp), %eax
movq -0x30(%rbp), %rdx
movq -0x50(%rbp), %r14
jmp 0xae398
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0xae295
movq %rdx, %rdi
callq 0x5030
leaq -0x60(%rbp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2e11b
cmpl $0x1, %eax
je 0xae2e5
testl %eax, %eax
jne 0xae3aa
xorl %eax, %eax
movq -0x60(%rbp), %r14
jmp 0xae0da
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0xae2cc
movq %rdx, %rdi
callq 0x5030
leaq 0x677cd(%rip), %rsi     # 0x115aa0
movq %r15, %rdi
callq 0x95f6
movl $0x1, %eax
jmp 0xae398
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0xdaeb
movq -0x60(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r14, %rax
leaq -0x38(%rbp), %rcx
movq %rax, %rdx
callq 0x2e18a
movq %rdx, %r12
movq %rax, -0x70(%rbp)
movq %rax, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0x677c0(%rip), %rsi     # 0x115ae9
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xae33f
incl (%rax)
callq 0x95f6
movq %rdx, %r13
movq -0x38(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x106b0d2(%rip), %rdi   # 0x1119428
movq %r15, %rsi
callq 0x13ff0
addq $0x4, %r14
orq %r13, %r14
leaq 0x66f55(%rip), %rsi     # 0x1152c1
movq %r14, %rdi
movq %rax, %rdx
callq 0x14ab5
movq -0x70(%rbp), %rdi
movq %r12, %rsi
callq 0x391d9
leaq -0x48(%rbp), %r14
movq -0x68(%rbp), %rdi
movl %eax, %esi
movq %r14, %rcx
callq 0xae0a6
movq (%r14), %r14
movq %r14, (%rbx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x3638a(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x3638f(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5