// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Type_ctypezy
static struct std_maybe_Maybe_1 mw_mirth_type_Type_ctypezy (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_Type in_Type_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	struct mirth_type_Type v6 = mw_mirth_type_Type_expand(in_zaMirth_1, in_Type_2, &v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct std_maybe_Maybe_1 branch_Maybe_8;
	switch ((v6).tag) {
		case mirth_type_Type_Prim: {
			enum mirth_type_PrimType v9 = mtp_mirth_type_Type_Prim(v6);
			struct mirth_mirth_zaMirth* v10;
			struct std_maybe_Maybe_1 v11 = mw_mirth_type_PrimType_ctypezy(v5, v9, &v10);
			branch_Maybe_8 = v11;
			branch_zaMirth_7 = v10;
		} break;
		case mirth_type_Type_Data: {
			uint64_t v12 = mtp_mirth_type_Type_Data(v6);
			struct mirth_mirth_zaMirth* v13;
			struct std_maybe_Maybe_1 v14 = mw_mirth_data_Data_ctypezy(v5, v12, &v13);
			branch_Maybe_8 = v14;
			branch_zaMirth_7 = v13;
		} break;
		case mirth_type_Type_Arrow: {
			struct mirth_type_ArrowType* v15 = mtp_mirth_type_Type_Arrow(v6);
			decref(MK_mirth_type_ArrowType(v15));
			STR* v16;
			STRLIT(v16, "FNPTR", 5);
			struct mirth_type_CType v17 = mtw_mirth_type_CType_FnPtr(v16);
			struct std_maybe_Maybe_1 v18 = mtw_std_maybe_Maybe_1_Some(MK_mirth_type_CType(v17));
			branch_Maybe_8 = v18;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_Type_App: {
			struct mirth_type_Type v19;
			struct mirth_type_Type v20 = mtp_mirth_type_Type_App(v6, &v19);
			struct mirth_mirth_zaMirth* v21;
			struct std_maybe_Maybe_1 v22 = mw_mirth_type_Type_ctypezy(v5, v19, &v21);
			struct mirth_type_Type branch_Type_23;
			struct mirth_mirth_zaMirth* branch_zaMirth_24;
			struct std_maybe_Maybe_1 branch_Maybe_25;
			switch ((v22).tag) {
				case std_maybe_Maybe_1_Some: {
					VAL v26 = mtp_std_maybe_Maybe_1_Some(v22);
					incref(MK_mirth_type_Type(v20));
					struct mirth_mirth_zaMirth* v27;
					struct std_maybe_Maybe_1 v28 = mw_mirth_type_Type_ctype1zy(v21, V_mirth_type_CType(v26), v20, &v27);
					branch_Maybe_25 = v28;
					branch_zaMirth_24 = v27;
					branch_Type_23 = v20;
				} break;
				case std_maybe_Maybe_1_None: {
					struct std_maybe_Maybe_1 v29 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_25 = v29;
					branch_zaMirth_24 = v21;
					branch_Type_23 = v20;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			decref(MK_mirth_type_Type(branch_Type_23));
			branch_Maybe_8 = branch_Maybe_25;
			branch_zaMirth_7 = branch_zaMirth_24;
		} break;
		default: {
			decref(MK_mirth_type_Type(v6));
			struct std_maybe_Maybe_1 v30 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_8 = v30;
			branch_zaMirth_7 = v5;
		} break;
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Maybe_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %rbx
leaq -0x40(%rbp), %rcx
callq 0x2ab4b
leal -0x2(%rax), %ecx
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
cmpl $0x9, %ecx
ja 0x5d78c
leaq 0x75ee7(%rip), %rsi     # 0xd33c0
movslq (%rsi,%rcx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
movq %rdx, %rdi
callq 0x2aa5d
xorl %r15d, %r15d
movq -0x40(%rbp), %r13
addl $-0x4, %eax
cmpl $0x10, %eax
ja 0x5d7c0
leaq 0x75ee4(%rip), %rcx     # 0xd33e8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10af99c(%rip), %rdi   # 0x110ceb0
testq %rdi, %rdi
jne 0x5dad2
leaq 0x7d975(%rip), %rdi     # 0xdae99
pushq $0x5
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af97a(%rip)   # 0x110ceb0
jmp 0x5dad2
movq %rdx, %rdi
callq 0x2ac85
movq %rax, %rcx
andq %r14, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x5d56a
decl (%rcx)
jne 0x5d56a
leaq 0xab617(%rip), %rsi     # 0x108b79
movq %rax, %rdi
callq 0xce94
movq 0x10af927(%rip), %rdi   # 0x110ce98
testq %rdi, %rdi
jne 0x5d58f
leaq 0x91667(%rip), %rdi     # 0xeebe4
pushq $0x5
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af909(%rip)   # 0x110ce98
andq %rdi, %r14
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x5d5a3
incl (%r14)
callq 0x5ddb9
movabsq $0x5000000000000, %rdi  # imm = 0x5000000000000
orq %rdx, %rdi
leaq 0xab7b5(%rip), %rsi     # 0x108d71
callq 0x8d0c
movq %rdx, %r14
pushq $0x1
popq %r15
movq -0x40(%rbp), %r13
jmp 0x5dbf1
movq %rdx, %rdi
callq 0x2ac2d
movq -0x40(%rbp), %r15
leaq 0x10aec44(%rip), %rdi   # 0x110c228
movq %rax, %rsi
callq 0x12f88
leaq -0xa8(%rbp), %r12
movq %r15, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x184dc
movq %rax, %r15
movq (%r12), %r13
andq %rax, %r14
shrq $0x30, %r15
jmp 0x5dbf1
leaq -0xa8(%rbp), %r15
movq %rdx, %rdi
movq %r15, %rsi
callq 0x2ad00
movq %rax, -0x58(%rbp)
movq %rdx, %r12
movq -0x40(%rbp), %rdi
movl (%r15), %esi
movq 0x8(%r15), %rdx
leaq -0x60(%rbp), %rcx
callq 0x5d49c
leaq 0xab4a1(%rip), %r15     # 0x108ae9
testl %eax, %eax
movq %r12, -0x50(%rbp)
movq %r15, -0x90(%rbp)
je 0x5d7c8
cmpl $0x1, %eax
jne 0x5dda2
movq %rdx, %rdi
callq 0xd491
movq %rax, %r13
movq %r12, %rdx
andq %r14, %rdx
sete %al
andq $0x3, %r12
setne %cl
orb %al, %cl
jne 0x5d685
incl (%rdx)
movq %rdx, -0x30(%rbp)
movq -0x60(%rbp), %rdi
movq %r13, %rax
andq %r14, %rax
movq %rax, -0x38(%rbp)
leaq -0x68(%rbp), %rcx
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x2ab4b
cmpl $0x7, %eax
jne 0x5d7de
movq %r13, -0x88(%rbp)
shrq $0x30, %r13
movq %r13, -0x48(%rbp)
movq %rdx, %rdi
callq 0x2ac2d
movq %rax, %r13
movq -0x68(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x1216b
movq 0x108(%rax), %r15
leaq 0xaafcb(%rip), %rsi     # 0x1086b1
movq %rax, %rcx
andq %r14, %rcx
sete %dl
testb $0x3, %al
setne %dil
orb %dl, %dil
jne 0x5d706
decl (%rcx)
jne 0x5d706
movq %rax, %rdi
callq 0xce94
cmpq %r13, %r15
jne 0x5d86e
movq -0x48(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x5def5
movq %rax, %r15
movq 0x10af7e2(%rip), %rsi   # 0x110cf08
testq %rsi, %rsi
jne 0x5d744
leaq 0x90a62(%rip), %rdi     # 0xee194
pushq $0x2
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x10af7c4(%rip)   # 0x110cf08
andq %rsi, %r14
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x5d758
incl (%r14)
movq %r15, %rdi
callq 0xd8b0
movq %rax, %rdi
callq 0x5de08
movq %rdx, %rdi
btsq $0x32, %rdi
leaq 0xab5fa(%rip), %rsi     # 0x108d71
callq 0x8d0c
movq %rdx, %r14
pushq $0x1
popq %r15
movq -0x80(%rbp), %r13
jmp 0x5d831
andq %rdx, %r14
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x5d7b9
decl (%r14)
jne 0x5d7b9
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xab338(%rip), %rsi     # 0x108ae9
movq %rax, %rdi
callq 0xce94
xorl %r15d, %r15d
movq -0x40(%rbp), %r13
xorl %r14d, %r14d
jmp 0x5dbf1
movq -0x60(%rbp), %r13
andq %r12, %r14
andl $0x3, %r12d
xorl %r15d, %r15d
movq %r14, %rdx
xorl %r14d, %r14d
jmp 0x5d835
andq %rdx, %r14
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x5d807
decl (%r14)
jne 0x5d807
shlq $0x30, %rax
orq %rdx, %rax
movq %rax, %rdi
movq %r15, %rsi
callq 0xce94
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x5d827
decl (%rax)
jne 0x5d827
andq $-0x4, %r13
leaq 0xab552(%rip), %rsi     # 0x108d71
movq %r13, %rdi
callq 0xce94
xorl %r15d, %r15d
movq -0x68(%rbp), %r13
xorl %r14d, %r14d
movq -0x30(%rbp), %rdx
testq %rdx, %rdx
sete %al
testq %r12, %r12
setne %cl
orb %al, %cl
jne 0x5dbf1
decl (%rdx)
jne 0x5dbf1
movq -0x58(%rbp), %rdi
shlq $0x30, %rdi
orq -0x50(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq 0xce94
jmp 0x5dbf1
movq -0x80(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x1216b
movq 0x118(%rax), %r15
movq %rax, %rcx
andq %r14, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x5d8a9
decl (%rcx)
jne 0x5d8a9
movq %rax, %rdi
leaq 0xaae0d(%rip), %rsi     # 0x1086b1
callq 0xce94
cmpq %r13, %r15
jne 0x5dc0c
movq 0x10af657(%rip), %rdi   # 0x110cf10
testq %rdi, %rdi
jne 0x5d8d7
leaq 0x7d6d2(%rip), %rdi     # 0xdaf97
pushq $0x5
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af639(%rip)   # 0x110cf10
andq %rdi, %r14
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x5d8eb
incl (%r14)
movq -0x48(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x5e0f6
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xab46b(%rip), %rsi     # 0x108d71
movq %rax, %rdi
callq 0x8d0c
movq %rdx, %r14
pushq $0x1
popq %r15
movq -0x78(%rbp), %r13
jmp 0x5d831
movq 0x10af5db(%rip), %rdi   # 0x110cf00
testq %rdi, %rdi
jne 0x5d943
leaq 0x7d597(%rip), %rdi     # 0xdaec8
pushq $0x6
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af5bd(%rip)   # 0x110cf00
andq %rdi, %r14
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x5d957
incl (%r14)
callq 0x5dea6
movabsq $0x3000000000000, %r14  # imm = 0x3000000000000
jmp 0x5dbd8
movq 0x10af55e(%rip), %rdi   # 0x110ced0
testq %rdi, %rdi
jne 0x5dad2
leaq 0x7d537(%rip), %rdi     # 0xdaeb9
pushq $0x8
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af53c(%rip)   # 0x110ced0
jmp 0x5dad2
movq 0x10af508(%rip), %rdi   # 0x110cea8
testq %rdi, %rdi
jne 0x5d9be
leaq 0x7a15b(%rip), %rdi     # 0xd7b07
pushq $0x4
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af4ea(%rip)   # 0x110cea8
andq %rdi, %r14
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x5d9d2
incl (%r14)
callq 0x1d99e
movabsq $0x6000000000000, %r14  # imm = 0x6000000000000
jmp 0x5dbd8
movq 0x10af4eb(%rip), %rdi   # 0x110ced8
testq %rdi, %rdi
jne 0x5dbb9
leaq 0x7d4a3(%rip), %rdi     # 0xdaea0
pushq $0x6
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af4c9(%rip)   # 0x110ced8
jmp 0x5dbb9
movq 0x10af485(%rip), %rdi   # 0x110cea0
testq %rdi, %rdi
jne 0x5da39
leaq 0x7d46c(%rip), %rdi     # 0xdae93
pushq $0x5
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af467(%rip)   # 0x110cea0
andq %rdi, %r14
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x5da4d
incl (%r14)
callq 0x5de08
movq %rdx, %r14
btsq $0x32, %r14
jmp 0x5dbdb
movq 0x10af462(%rip), %rdi   # 0x110cec8
testq %rdi, %rdi
jne 0x5dad2
leaq 0x7d43e(%rip), %rdi     # 0xdaeb0
pushq $0x8
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af444(%rip)   # 0x110cec8
jmp 0x5dad2
movq 0x10af433(%rip), %rdi   # 0x110cec0
testq %rdi, %rdi
jne 0x5dad2
leaq 0x7d40e(%rip), %rdi     # 0xdaea7
pushq $0x8
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af415(%rip)   # 0x110cec0
jmp 0x5dad2
movq 0x10af404(%rip), %rdi   # 0x110ceb8
testq %rdi, %rdi
jne 0x5dad2
leaq 0x7d3df(%rip), %rdi     # 0xdae9f
pushq $0x7
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af3e6(%rip)   # 0x110ceb8
andq %rdi, %r14
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x5dae6
incl (%r14)
callq 0x1ea0f
movq %rdx, %r14
jmp 0x5dbdb
movq 0x10af3e6(%rip), %rdi   # 0x110cee0
testq %rdi, %rdi
jne 0x5dbb9
leaq 0x7d39e(%rip), %rdi     # 0xdaea8
pushq $0x7
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af3c4(%rip)   # 0x110cee0
jmp 0x5dbb9
movq 0x10af3c0(%rip), %rdi   # 0x110cee8
testq %rdi, %rdi
jne 0x5dbb9
leaq 0x7d379(%rip), %rdi     # 0xdaeb1
pushq $0x7
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af39e(%rip)   # 0x110cee8
jmp 0x5dbb9
movq 0x10af3a5(%rip), %rdi   # 0x110cef8
testq %rdi, %rdi
jne 0x5db71
leaq 0x7d363(%rip), %rdi     # 0xdaec2
pushq $0x5
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af387(%rip)   # 0x110cef8
andq %rdi, %r14
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x5db85
incl (%r14)
callq 0x5de57
movq %rdx, %r14
btsq $0x31, %r14
jmp 0x5dbdb
movq 0x10af355(%rip), %rdi   # 0x110cef0
testq %rdi, %rdi
jne 0x5dbb9
leaq 0x7d313(%rip), %rdi     # 0xdaeba
pushq $0x7
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af337(%rip)   # 0x110cef0
movq %rdi, %rax
andq %r14, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x5dbcf
incl (%rax)
callq 0x1e9b1
addq $0x4, %r14
orq %rdx, %r14
leaq 0xab18f(%rip), %rsi     # 0x108d71
movq %r14, %rdi
callq 0x8d0c
movq %rdx, %r14
pushq $0x1
popq %r15
movq %r13, (%rbx)
movl %r15d, %eax
movq %r14, %rdx
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x78(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x1216b
movq 0x128(%rax), %r15
movq %rax, %rcx
andq %r14, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x5dc47
decl (%rcx)
jne 0x5dc47
movq %rax, %rdi
leaq 0xaaa6f(%rip), %rsi     # 0x1086b1
callq 0xce94
cmpq %r13, %r15
jne 0x5dcb8
movq 0x10af2e5(%rip), %rdi   # 0x110cf38
testq %rdi, %rdi
jne 0x5dc71
leaq 0x7d33e(%rip), %rdi     # 0xdaf9d
pushq $0x8
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af2c7(%rip)   # 0x110cf38
andq %rdi, %r14
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x5dc85
incl (%r14)
movq -0x48(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x5e0f6
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xab0d1(%rip), %rsi     # 0x108d71
movq %rax, %rdi
callq 0x8d0c
movq %rdx, %r14
pushq $0x1
popq %r15
movq -0x70(%rbp), %r13
jmp 0x5d831
movq -0x70(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x1216b
movq 0x138(%rax), %r15
movq %rax, %rcx
andq %r14, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x5dcf6
decl (%rcx)
jne 0x5dcf6
movq %rax, %rdi
leaq 0xaa9c0(%rip), %rsi     # 0x1086b1
callq 0xce94
cmpq %r13, %r15
jne 0x5dd64
movq 0x10af23e(%rip), %rdi   # 0x110cf40
testq %rdi, %rdi
jne 0x5dd20
leaq 0x7d298(%rip), %rdi     # 0xdafa6
pushq $0x8
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10af220(%rip)   # 0x110cf40
andq %rdi, %r14
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x5dd34
incl (%r14)
movq -0x48(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x5e0f6
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xab022(%rip), %rsi     # 0x108d71
movq %rax, %rdi
callq 0x8d0c
movq %rdx, %r14
pushq $0x1
popq %r15
movq -0x30(%rbp), %rdx
jmp 0x5dd96
movq -0x38(%rbp), %rax
testq %rax, %rax
movq -0x30(%rbp), %rdx
je 0x5dd90
decl (%rax)
jne 0x5dd90
movq -0x88(%rbp), %rdi
andq $-0x4, %rdi
leaq 0xaafea(%rip), %rsi     # 0x108d71
callq 0xce94
movq -0x30(%rbp), %rdx
xorl %r15d, %r15d
xorl %r14d, %r14d
movq -0x98(%rbp), %r13
jmp 0x5d835
leaq 0x76a64(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6