// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_arrow_Arrow_tozerunzevar
static struct std_maybe_Maybe_1 mw_mirth_arrow_Arrow_tozerunzevar (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_arrow_Arrow* in_Arrow_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct std_list_List_1 v5 = in_Arrow_2->matoms;
	incref(MK_std_list_List_1(v5));
	decref(MK_mirth_arrow_Arrow(in_Arrow_2));
	struct std_maybe_Maybe_1 v6 = mw_std_list_List_1_singlezy(v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct std_maybe_Maybe_1 branch_Maybe_8;
	switch ((v6).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v9 = mtp_std_maybe_Maybe_1_Some(v6);
			struct mirth_mirth_zaMirth* v10;
			struct std_maybe_Maybe_1 v11 = mw_mirth_arrow_Atom_tozerunzevar(in_zaMirth_1, V_mirth_arrow_Atom(v9), &v10);
			branch_Maybe_8 = v11;
			branch_zaMirth_7 = v10;
		} break;
		case std_maybe_Maybe_1_None: {
			struct std_maybe_Maybe_1 v12 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_8 = v12;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Maybe_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq 0x58(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq 0x60(%rax), %rax
movq %rax, -0x30(%rbp)
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq -0x40(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x21f250
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x58(%rbp), %rax
cmpq $0x0, %rax
je 0x21f250
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movq -0x68(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x21f250
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x78(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x21f252
jmp 0x21f254
movq -0x20(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq 0x1731ca(%rip), %rax    # 0x392430
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x21f352
movq -0x20(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x17319e(%rip), %rax    # 0x392430
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x98(%rbp), %rax
cmpq $0x0, %rax
je 0x21f352
movq -0x20(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq 0x173166(%rip), %rax    # 0x392430
orq $0x1, %rax
movq %rax, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x21f352
movq -0x20(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x173138(%rip), %rax    # 0x392430
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xb8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x21f350
movq -0x20(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0x1730fe(%rip), %rax    # 0x392430
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0x127c0
jmp 0x21f352
jmp 0x21f354
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x1f250
movl %eax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movl -0xd8(%rbp), %eax
movl %eax, -0x11c(%rbp)
testl %eax, %eax
je 0x21f3fa
jmp 0x21f37f
movl -0x11c(%rbp), %eax
subl $0x1, %eax
jne 0x21f430
jmp 0x21f390
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x174a0
movq %rax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movq -0x18(%rbp), %rdi
movq -0xf0(%rbp), %rsi
leaq -0xf8(%rbp), %rdx
callq 0x21f470
movl %eax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x21f449
leaq -0x118(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x118(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x21f449
leaq 0x134a4a(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0xe0(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopw (%rax,%rax)