// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_ArrowType_rigidifyzesigzx
static struct std_list_List_1 mw_mirth_type_ArrowType_rigidifyzesigzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_list_List_1 in_Ctx_2, struct mirth_type_ArrowType* in_ArrowType_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_type_ArrowType* *out_ArrowType_6) {
	incref(MK_mirth_type_ArrowType(in_ArrowType_3));
	struct mirth_type_StackType v7 = in_ArrowType_3->mdom;
	incref(MK_mirth_type_StackType(v7));
	decref(MK_mirth_type_ArrowType(in_ArrowType_3));
	struct mirth_mirth_zaMirth* v8;
	struct std_maybe_Maybe_1 v9 = mw_mirth_type_StackType_linearzebasezemetazy(in_zaMirth_1, v7, &v8);
	struct mirth_type_ArrowType* branch_ArrowType_10;
	struct mirth_mirth_zaMirth* branch_zaMirth_11;
	switch ((v9).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v12 = mtp_std_maybe_Maybe_1_Some(v9);
			incref(MK_mirth_type_ArrowType(in_ArrowType_3));
			struct mirth_type_StackType v13 = in_ArrowType_3->mcod;
			incref(MK_mirth_type_StackType(v13));
			decref(MK_mirth_type_ArrowType(in_ArrowType_3));
			struct mirth_mirth_zaMirth* v14;
			struct std_maybe_Maybe_1 v15 = mw_mirth_type_StackType_linearzebasezemetazy(v8, v13, &v14);
			struct mirth_mirth_zaMirth* branch_zaMirth_16;
			uint64_t branch_MetaVar_17;
			switch ((v15).tag) {
				case std_maybe_Maybe_1_Some: {
					VAL v18 = mtp_std_maybe_Maybe_1_Some(v15);
					incref(v12);
					uint64_t v19 = V_mirth_type_MetaVar(v12);
					uint64_t v20 = V_mirth_type_MetaVar(v18);
					bool v21 = (v19 == v20);
					uint64_t branch_MetaVar_22;
					struct mirth_mirth_zaMirth* branch_zaMirth_23;
					if (v21) {
						struct mirth_type_Type v24 = mw_mirth_type_Type_Unit();
						struct std_maybe_Maybe_1 v25 = mtw_std_maybe_Maybe_1_Some(MK_mirth_type_Type(v24));
						incref(v12);
						struct mirth_mirth_zaMirth* v26;
						mw_mirth_type_MetaVar_typezyzx(v14, v25, V_mirth_type_MetaVar(v12), &v26);
						branch_zaMirth_23 = v26;
						branch_MetaVar_22 = V_mirth_type_MetaVar(v12);
					} else {
						branch_zaMirth_23 = v14;
						branch_MetaVar_22 = V_mirth_type_MetaVar(v12);
					}
					branch_MetaVar_17 = branch_MetaVar_22;
					branch_zaMirth_16 = branch_zaMirth_23;
				} break;
				case std_maybe_Maybe_1_None: {
					branch_MetaVar_17 = V_mirth_type_MetaVar(v12);
					branch_zaMirth_16 = v14;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_zaMirth_11 = branch_zaMirth_16;
			branch_ArrowType_10 = in_ArrowType_3;
		} break;
		case std_maybe_Maybe_1_None: {
			branch_zaMirth_11 = v8;
			branch_ArrowType_10 = in_ArrowType_3;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	struct mirth_mirth_zaMirth* v27;
	struct mirth_type_ArrowType* v28;
	struct std_list_List_1 v29 = mw_mirth_type_ArrowType_rigidifyzx(branch_zaMirth_11, in_Ctx_2, branch_ArrowType_10, &v27, &v28);
	*out_ArrowType_6 = v28;
	*out_zaMirth_4 = v27;
	return v29;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq 0x23ac27(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x157073
movq -0x30(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq 0x23ac02(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x58(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x60(%rbp), %rax
cmpq $0x0, %rax
je 0x157073
movq -0x30(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq 0x23abd7(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x68(%rbp)
movq -0x70(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x157073
movq -0x30(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0x23abb2(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x78(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x80(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x157075
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, -0x90(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x88(%rbp)
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6f140
movq %rax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0x98(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x157164
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6f140
movq %rax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rax
cmpq $0x0, %rax
je 0x157164
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6f140
movq %rax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movq -0xc0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x157164
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6f140
movq %rax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x157166
jmp 0x157168
movq -0x30(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq 0x23aa8e(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x15726c
movq -0x30(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq 0x23aa5c(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0xe8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xf0(%rbp), %rax
cmpq $0x0, %rax
je 0x15726c
movq -0x30(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq 0x23aa24(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0xf8(%rbp)
movq -0x100(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x15726c
movq -0x30(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0x23a9f6(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x110(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x15726a
movq -0x30(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq 0x23a9bc(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rsi
callq 0x127c0
jmp 0x15726c
jmp 0x15726e
movq -0x28(%rbp), %rdi
movl -0x90(%rbp), %esi
movq -0x88(%rbp), %rdx
leaq -0x128(%rbp), %rcx
callq 0x1582a0
movl %eax, -0x138(%rbp)
movq %rdx, -0x130(%rbp)
movl -0x138(%rbp), %eax
movl %eax, -0x2e4(%rbp)
testl %eax, %eax
je 0x157822
jmp 0x1572ae
movl -0x2e4(%rbp), %eax
subl $0x1, %eax
jne 0x15783d
jmp 0x1572bf
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
callq 0x174a0
movq %rax, -0x158(%rbp)
movq %rdx, -0x150(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x168(%rbp)
leaq 0x23a917(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1573a8
movq -0x30(%rbp), %rax
movq %rax, -0x178(%rbp)
leaq 0x23a8e5(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x170(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x178(%rbp), %rax
cmpq $0x0, %rax
je 0x1573a8
movq -0x30(%rbp), %rax
movq %rax, -0x188(%rbp)
leaq 0x23a8b1(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x180(%rbp)
movq -0x188(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1573a8
movq -0x30(%rbp), %rax
movq %rax, -0x198(%rbp)
leaq 0x23a883(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x190(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x198(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1573aa
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rcx
movq %rcx, -0x1a8(%rbp)
movq 0x20(%rax), %rax
movq %rax, -0x1a0(%rbp)
movl -0x1a8(%rbp), %edi
movq -0x1a0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x1b8(%rbp)
movq %rdx, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x157499
movl -0x1a8(%rbp), %edi
movq -0x1a0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x1c8(%rbp)
movq %rdx, -0x1c0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1c8(%rbp), %rax
cmpq $0x0, %rax
je 0x157499
movl -0x1a8(%rbp), %edi
movq -0x1a0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x1d8(%rbp)
movq %rdx, -0x1d0(%rbp)
movq -0x1d8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x157499
movl -0x1a8(%rbp), %edi
movq -0x1a0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x1e8(%rbp)
movq %rdx, -0x1e0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1e8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x15749b
jmp 0x15749d
movq -0x30(%rbp), %rax
movq %rax, -0x1f8(%rbp)
leaq 0x23a759(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x1f0(%rbp)
movq -0x1f0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1575a1
movq -0x30(%rbp), %rax
movq %rax, -0x208(%rbp)
leaq 0x23a727(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x200(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x208(%rbp), %rax
cmpq $0x0, %rax
je 0x1575a1
movq -0x30(%rbp), %rax
movq %rax, -0x218(%rbp)
leaq 0x23a6ef(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x210(%rbp)
movq -0x218(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1575a1
movq -0x30(%rbp), %rax
movq %rax, -0x228(%rbp)
leaq 0x23a6c1(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x220(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x228(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x15759f
movq -0x30(%rbp), %rax
movq %rax, -0x238(%rbp)
leaq 0x23a687(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x230(%rbp)
movq -0x238(%rbp), %rdi
movq -0x230(%rbp), %rsi
callq 0x127c0
jmp 0x1575a1
jmp 0x1575a3
movq -0x128(%rbp), %rdi
movl -0x1a8(%rbp), %esi
movq -0x1a0(%rbp), %rdx
leaq -0x240(%rbp), %rcx
callq 0x1582a0
movl %eax, -0x250(%rbp)
movq %rdx, -0x248(%rbp)
movl -0x250(%rbp), %eax
movl %eax, -0x2e8(%rbp)
testl %eax, %eax
je 0x1577d0
jmp 0x1575e6
movl -0x2e8(%rbp), %eax
subl $0x1, %eax
jne 0x1577ee
jmp 0x1575f7
movl -0x250(%rbp), %edi
movq -0x248(%rbp), %rsi
callq 0x174a0
movq %rax, -0x270(%rbp)
movq %rdx, -0x268(%rbp)
movq -0x150(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x157668
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rax
cmpq $0x0, %rax
je 0x157668
movq -0x158(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x157668
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x15766a
movq -0x158(%rbp), %rax
movq %rax, -0x278(%rbp)
movq -0x270(%rbp), %rax
movq %rax, -0x280(%rbp)
movq -0x278(%rbp), %rax
cmpq -0x280(%rbp), %rax
sete %al
andb $0x1, %al
movb %al, -0x281(%rbp)
testb $0x1, -0x281(%rbp)
je 0x157796
callq 0x158e40
movl %eax, -0x2a8(%rbp)
movq %rdx, -0x2a0(%rbp)
movl -0x2a8(%rbp), %edi
movq -0x2a0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x2c8(%rbp)
movq %rdx, -0x2c0(%rbp)
movq -0x2c8(%rbp), %rdi
movq -0x2c0(%rbp), %rsi
callq 0xca10
movl %eax, -0x2b8(%rbp)
movq %rdx, -0x2b0(%rbp)
movq -0x150(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x15774f
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rax
cmpq $0x0, %rax
je 0x15774f
movq -0x158(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x15774f
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x157751
movq -0x240(%rbp), %rdi
movq -0x158(%rbp), %rcx
movl -0x2b8(%rbp), %esi
movq -0x2b0(%rbp), %rdx
leaq -0x2d0(%rbp), %r8
callq 0x87380
movq -0x2d0(%rbp), %rax
movq %rax, -0x298(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x290(%rbp)
jmp 0x1577b2
movq -0x240(%rbp), %rax
movq %rax, -0x298(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x290(%rbp)
movq -0x290(%rbp), %rax
movq %rax, -0x260(%rbp)
movq -0x298(%rbp), %rax
movq %rax, -0x258(%rbp)
jmp 0x157807
movq -0x158(%rbp), %rax
movq %rax, -0x260(%rbp)
movq -0x240(%rbp), %rax
movq %rax, -0x258(%rbp)
jmp 0x157807
leaq 0x1fc68c(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x258(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x140(%rbp)
jmp 0x157856
movq -0x128(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x140(%rbp)
jmp 0x157856
leaq 0x1fc63d(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x148(%rbp), %rdi
movq -0x140(%rbp), %rcx
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
leaq -0x2d8(%rbp), %r8
leaq -0x2e0(%rbp), %r9
callq 0x158e80
movl %eax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq -0x2e0(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, (%rax)
movq -0x2d8(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
nopw %cs:(%rax,%rax)