// File: /workspace/github_c_makefile_star2_O3/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 0xab714
movq %rcx, %rbx
movq %rdi, %r14
movl %esi, %eax
leaq 0x34953(%rip), %rcx     # 0xdfd8c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
xorl %edx, %edx
jmp 0xab702
leaq -0x60(%rbp), %r15
movq %rdx, %rdi
movq %r15, %rsi
callq 0x381ac
leaq -0x48(%rbp), %r12
movq %r14, %rdi
movl %eax, %esi
movq %r12, %rcx
callq 0xab410
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 0xacdbf
jmp 0xab4cf
leaq -0x60(%rbp), %r15
movq %rdx, %rdi
movq %r15, %rsi
callq 0x38125
leaq -0x48(%rbp), %r12
movq %r14, %rdi
movl %eax, %esi
movq %r12, %rcx
callq 0xab410
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 0xacc7e
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xab506
decl (%rcx)
jne 0xab506
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x665eb(%rip), %rsi     # 0x111ae9
movq %rax, %rdi
callq 0xd13d
movl -0x38(%rbp), %eax
movq -0x30(%rbp), %rdx
movq -0x40(%rbp), %r14
jmp 0xab702
leaq -0x60(%rbp), %r15
leaq -0x48(%rbp), %rax
movq %rdx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x38233
leaq -0x40(%rbp), %r12
movq %r14, %rdi
movl %eax, %esi
movq %r12, %rcx
callq 0xab410
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 0xacc7e
jmp 0xab5a8
leaq -0x60(%rbp), %r15
leaq -0x48(%rbp), %rax
movq %rdx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x382d7
leaq -0x40(%rbp), %r12
movq %r14, %rdi
movl %eax, %esi
movq %r12, %rcx
callq 0xab410
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 0xacdbf
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0xab5df
decl (%rcx)
jne 0xab5df
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x66512(%rip), %rsi     # 0x111ae9
movq %rax, %rdi
callq 0xd13d
movl -0x38(%rbp), %eax
movq -0x30(%rbp), %rdx
movq -0x50(%rbp), %r14
jmp 0xab702
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0xab5ff
movq %rdx, %rdi
callq 0x5030
leaq -0x60(%rbp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2d45d
cmpl $0x1, %eax
je 0xab64f
testl %eax, %eax
jne 0xab714
xorl %eax, %eax
movq -0x60(%rbp), %r14
jmp 0xab444
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0xab636
movq %rdx, %rdi
callq 0x5030
leaq 0x66463(%rip), %rsi     # 0x111aa0
movq %r15, %rdi
callq 0x9353
movl $0x1, %eax
jmp 0xab702
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0xd745
movq -0x60(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r14, %rax
leaq -0x38(%rbp), %rcx
movq %rax, %rdx
callq 0x2d4cc
movq %rdx, %r12
movq %rax, -0x70(%rbp)
movq %rax, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0x66456(%rip), %rsi     # 0x111ae9
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xab6a9
incl (%rax)
callq 0x9353
movq %rdx, %r13
movq -0x38(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x1069d68(%rip), %rdi   # 0x1115428
movq %r15, %rsi
callq 0x13c85
addq $0x4, %r14
orq %r13, %r14
leaq 0x65beb(%rip), %rsi     # 0x1112c1
movq %r14, %rdi
movq %rax, %rdx
callq 0x14766
movq -0x70(%rbp), %rdi
movq %r12, %rsi
callq 0x38041
leaq -0x48(%rbp), %r14
movq -0x68(%rbp), %rdi
movl %eax, %esi
movq %r14, %rcx
callq 0xab410
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 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x34fa0(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x34fa5(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302