// File: /workspace/github_c_makefile_star2_O0/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
subq $0x310, %rsp            # imm = 0x310
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq -0x28(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
leaq -0x38(%rbp), %rcx
callq 0x872e0
movl %eax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movl -0x48(%rbp), %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0x300(%rbp)
subl $0x9, %eax
ja 0x169d50
movq -0x300(%rbp), %rax
leaq 0x1e90f5(%rip), %rcx    # 0x352730
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x87010
movl %eax, -0x54(%rbp)
movq -0x38(%rbp), %rdi
movl -0x54(%rbp), %esi
leaq -0x60(%rbp), %rdx
callq 0x169ea0
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 -0x60(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x169e7a
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x874e0
movq %rax, -0x78(%rbp)
movq -0x38(%rbp), %rdi
movq -0x78(%rbp), %rsi
leaq -0x80(%rbp), %rdx
callq 0x16b2e0
movl %eax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x169e7a
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x87630
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq 0x228508(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1697fe
movq -0x98(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x2284d3(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb8(%rbp), %rax
cmpq $0x0, %rax
je 0x1697fe
movq -0x98(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0x228498(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movq -0xc8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1697fe
movq -0x98(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq 0x228467(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0xd0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xd8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1697fc
movq -0x98(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq 0x22842a(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0xe0(%rbp)
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
callq 0x127c0
jmp 0x1697fe
jmp 0x169800
jmp 0x169802
cmpq $0x0, 0x122c7ce(%rip)   # 0x1395fd8
jne 0x169824
leaq 0x204de8(%rip), %rdi    # 0x36e5fb
movl $0x5, %esi
callq 0xb6c0
movq %rax, 0x122c7b4(%rip)   # 0x1395fd8
jmp 0x169826
movq 0x122c7ab(%rip), %rax   # 0x1395fd8
movq %rax, -0x100(%rbp)
leaq 0x22791d(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1698fb
movq 0x122c776(%rip), %rax   # 0x1395fd8
movq %rax, -0x110(%rbp)
leaq 0x2278e8(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x110(%rbp), %rax
cmpq $0x0, %rax
je 0x1698fb
movq 0x122c73f(%rip), %rax   # 0x1395fd8
movq %rax, -0x120(%rbp)
leaq 0x2278b1(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movq -0x120(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1698fb
movq 0x122c70e(%rip), %rax   # 0x1395fd8
movq %rax, -0x130(%rbp)
leaq 0x227880(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x128(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x130(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1698fd
movq 0x122c6d4(%rip), %rax   # 0x1395fd8
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rdi
callq 0x16b350
movl %eax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movl -0x140(%rbp), %edi
movq -0x138(%rbp), %rsi
callq 0x720b0
movq %rax, -0x160(%rbp)
movq %rdx, -0x158(%rbp)
movq -0x160(%rbp), %rdi
movq -0x158(%rbp), %rsi
callq 0xca10
movl %eax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x169e7a
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
leaq -0x170(%rbp), %rdx
callq 0x87830
movl %eax, -0x180(%rbp)
movq %rdx, -0x178(%rbp)
movq -0x38(%rbp), %rdi
movl -0x170(%rbp), %esi
movq -0x168(%rbp), %rdx
leaq -0x188(%rbp), %rcx
callq 0x1695e0
movl %eax, -0x198(%rbp)
movq %rdx, -0x190(%rbp)
movl -0x198(%rbp), %eax
movl %eax, -0x304(%rbp)
testl %eax, %eax
je 0x169b9f
jmp 0x1699e7
movl -0x304(%rbp), %eax
subl $0x1, %eax
jne 0x169bfa
jmp 0x1699f8
movl -0x198(%rbp), %edi
movq -0x190(%rbp), %rsi
callq 0x174a0
movq %rax, -0x1d0(%rbp)
movq %rdx, -0x1c8(%rbp)
movl -0x180(%rbp), %edi
movq -0x178(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1e0(%rbp)
movq %rdx, -0x1d8(%rbp)
movq -0x1d8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x169aed
movl -0x180(%rbp), %edi
movq -0x178(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1f0(%rbp)
movq %rdx, -0x1e8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1f0(%rbp), %rax
cmpq $0x0, %rax
je 0x169aed
movl -0x180(%rbp), %edi
movq -0x178(%rbp), %rsi
callq 0x6e780
movq %rax, -0x200(%rbp)
movq %rdx, -0x1f8(%rbp)
movq -0x200(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x169aed
movl -0x180(%rbp), %edi
movq -0x178(%rbp), %rsi
callq 0x6e780
movq %rax, -0x210(%rbp)
movq %rdx, -0x208(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x210(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x169aef
movq -0x188(%rbp), %rax
movq %rax, -0x310(%rbp)
movq -0x1d0(%rbp), %rdi
movq -0x1c8(%rbp), %rsi
callq 0x75460
movq -0x310(%rbp), %rdi
movl %eax, -0x238(%rbp)
movq %rdx, -0x230(%rbp)
movl -0x238(%rbp), %esi
movq -0x230(%rbp), %rdx
movl -0x180(%rbp), %ecx
movq -0x178(%rbp), %r8
leaq -0x218(%rbp), %r9
callq 0x16b3e0
movl %eax, -0x228(%rbp)
movq %rdx, -0x220(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x220(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x1a0(%rbp)
jmp 0x169c13
leaq -0x248(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x248(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x240(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x1a0(%rbp)
jmp 0x169c13
leaq 0x1ea280(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
jmp 0x169c15
movl -0x1a8(%rbp), %edi
movq -0x1a0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x258(%rbp)
movq %rdx, -0x250(%rbp)
movq -0x250(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x169d28
movl -0x1a8(%rbp), %edi
movq -0x1a0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x268(%rbp)
movq %rdx, -0x260(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x268(%rbp), %rax
cmpq $0x0, %rax
je 0x169d28
movl -0x1a8(%rbp), %edi
movq -0x1a0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x278(%rbp)
movq %rdx, -0x270(%rbp)
movq -0x278(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x169d28
movl -0x1a8(%rbp), %edi
movq -0x1a0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x288(%rbp)
movq %rdx, -0x280(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x288(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x169d26
movl -0x1a8(%rbp), %edi
movq -0x1a0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x298(%rbp)
movq %rdx, -0x290(%rbp)
movq -0x298(%rbp), %rdi
movq -0x290(%rbp), %rsi
callq 0x127c0
jmp 0x169d28
jmp 0x169d2a
movq -0x1c0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x1b8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x169e7a
jmp 0x169d52
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x6e780
movq %rax, -0x2a8(%rbp)
movq %rdx, -0x2a0(%rbp)
movq -0x2a0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x169e47
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x6e780
movq %rax, -0x2b8(%rbp)
movq %rdx, -0x2b0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2b8(%rbp), %rax
cmpq $0x0, %rax
je 0x169e47
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x6e780
movq %rax, -0x2c8(%rbp)
movq %rdx, -0x2c0(%rbp)
movq -0x2c8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x169e47
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x6e780
movq %rax, -0x2d8(%rbp)
movq %rdx, -0x2d0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x2d8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x169e45
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x6e780
movq %rax, -0x2e8(%rbp)
movq %rdx, -0x2e0(%rbp)
movq -0x2e8(%rbp), %rdi
movq -0x2e0(%rbp), %rsi
callq 0x127c0
jmp 0x169e47
jmp 0x169e49
leaq -0x2f8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x2f8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x2f0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x310, %rsp            # imm = 0x310
popq %rbp
retq
nopw %cs:(%rax,%rax)