// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_token_Token_runzearrowzy
static struct std_maybe_Maybe_1 mw_mirth_token_Token_runzearrowzy (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	struct std_list_List_1 v6 = mw_mirth_token_Token_runzetokens(in_zaMirth_1, in_Token_2, &v5);
	struct std_maybe_Maybe_1 v7 = { .tag=std_maybe_Maybe_1_None };
	bool v8 = true;
	struct mirth_mirth_zaMirth* r9 = v5;
	struct std_maybe_Maybe_1 v10 = v7;
	struct std_list_List_1 v11 = v6;
	bool v12 = v8;
	bool v13 = v8;
	while (v13) {
		struct mirth_mirth_zaMirth* r14 = r9;
		struct std_maybe_Maybe_1 v15 = v10;
		struct std_list_List_1 v16 = v11;
		bool v17 = v12;
		struct std_list_List_1 v18;
		struct std_maybe_Maybe_1 v19 = mw_std_list_List_1_uncons(v16, &v18);
		struct mirth_mirth_zaMirth* branch_zaMirth_20;
		struct std_maybe_Maybe_1 branch_Maybe_21;
		struct std_list_List_1 branch_List_22;
		bool branch_Bool_23;
		switch ((v19).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v24 = mtp_std_maybe_Maybe_1_Some(v19);
				incref(v24);
				struct mirth_mirth_zaMirth* v25;
				bool v26 = mw_mirth_token_Token_arrowzy(r14, V_mirth_token_Token(v24), &v25);
				struct mirth_mirth_zaMirth* branch_zaMirth_27;
				struct std_maybe_Maybe_1 branch_Maybe_28;
				if (v26) {
					struct std_maybe_Maybe_1 v29 = mtw_std_maybe_Maybe_1_Some(v24);
					branch_Maybe_28 = v29;
					branch_zaMirth_27 = v25;
				} else {
					decref(v24);
					struct std_maybe_Maybe_1 v30 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_28 = v30;
					branch_zaMirth_27 = v25;
				}
				struct mirth_mirth_zaMirth* branch_zaMirth_31;
				struct std_maybe_Maybe_1 branch_Maybe_32;
				struct std_list_List_1 branch_List_33;
				switch ((branch_Maybe_28).tag) {
					case std_maybe_Maybe_1_None: {
						branch_List_33 = v18;
						branch_Maybe_32 = v15;
						branch_zaMirth_31 = branch_zaMirth_27;
					} break;
					default: {
						decref(MK_std_list_List_1(v18));
						decref(MK_std_maybe_Maybe_1(v15));
						struct std_list_List_1 v34 = { .tag=std_list_List_1_Nil };
						branch_List_33 = v34;
						branch_Maybe_32 = branch_Maybe_28;
						branch_zaMirth_31 = branch_zaMirth_27;
					} break;
				}
				bool v35 = true;
				branch_Bool_23 = v35;
				branch_List_22 = branch_List_33;
				branch_Maybe_21 = branch_Maybe_32;
				branch_zaMirth_20 = branch_zaMirth_31;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v36 = false;
				branch_Bool_23 = v36;
				branch_List_22 = v18;
				branch_Maybe_21 = v15;
				branch_zaMirth_20 = r14;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v13 = branch_Bool_23;
		v12 = branch_Bool_23;
		v11 = branch_List_22;
		v10 = branch_Maybe_21;
		r9 = branch_zaMirth_20;
	}
	decref(MK_std_list_List_1(v11));
	*out_zaMirth_3 = r9;
	return v10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, -0x58(%rbp)
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x60(%rbp), %rbx
movq %rbx, %rdx
callq 0x31550
movl %eax, %edi
movq %rdx, %rsi
movq (%rbx), %rbx
movq $0x0, -0x30(%rbp)
movb $0x1, %al
leaq -0x48(%rbp), %r12
movq $0x0, -0x38(%rbp)
testb $0x1, %al
je 0x314f2
movq %r12, %rdx
callq 0x1075d
testl %eax, %eax
je 0x314a9
cmpl $0x1, %eax
jne 0x31539
movq %rdx, %rdi
callq 0xd491
movq %rax, %r15
movq %rdx, %r13
testb $0x1, %r13b
je 0x3140a
movq %r15, %rax
andq %r14, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x3140a
incl (%rax)
movq %rbx, %rdi
movq %r15, %rsi
leaq -0x50(%rbp), %rdx
callq 0x31601
testb %al, %al
je 0x314b7
movq %r15, %rdi
movq %r13, %rsi
callq 0x8d0c
movq %rdx, %r13
movq -0x50(%rbp), %rbx
movq -0x40(%rbp), %rax
movq %rax, %rcx
andq %r14, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x31465
movl -0x48(%rbp), %edi
decl (%rcx)
jne 0x31465
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xd6e19(%rip), %rsi     # 0x108279
callq 0xce94
movq -0x38(%rbp), %rsi
movq %rsi, %rax
andq %r14, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x31498
decl (%rax)
jne 0x31498
movq -0x30(%rbp), %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xd6e2e(%rip), %rsi     # 0x1082c1
callq 0xce94
xorl %edi, %edi
pushq $0x1
popq %rax
movq %rax, -0x30(%rbp)
movq %r13, -0x38(%rbp)
xorl %esi, %esi
jmp 0x314eb
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
xorl %eax, %eax
jmp 0x313bf
testb $0x1, %r13b
je 0x314e0
movq %r15, %rax
andq %r14, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x314e0
decl (%rax)
jne 0x314e0
movq %r15, %rdi
movq %r13, %rsi
callq 0xce94
movq -0x50(%rbp), %rbx
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
movb $0x1, %al
jmp 0x313bf
andq %rsi, %r14
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x3151b
decl (%r14)
jne 0x3151b
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xd6d63(%rip), %rsi     # 0x108279
callq 0xce94
movq -0x58(%rbp), %rax
movq %rbx, (%rax)
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rdx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa32cd(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6