// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_data_Tag_labelzeinputszefromzesig
static struct std_list_List_1 mw_mirth_data_Tag_labelzeinputszefromzesig (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Tag_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	struct std_maybe_Maybe_1 v6 = mw_mirth_data_Tag_sigzy(in_zaMirth_1, in_Tag_2, &v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct std_list_List_1 branch_List_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_list_List_1 v11 = mw_mirth_token_Token_sigzestackzetokens(v5, V_mirth_token_Token(v9), &v10);
			struct std_list_List_1 v12 = { .tag=std_list_List_1_Nil };
			struct std_list_List_1 v13;
			mw_std_list_List_1_buildzx(v12, &v13);
			bool v14 = true;
			struct mirth_mirth_zaMirth* r15 = v10;
			struct std_list_List_1 r16 = v13;
			struct std_list_List_1 v17 = v11;
			bool v18 = v14;
			bool v19 = v14;
			while (v19) {
				struct mirth_mirth_zaMirth* r20 = r15;
				struct std_list_List_1 r21 = r16;
				struct std_list_List_1 v22 = v17;
				bool v23 = v18;
				struct mirth_mirth_zaMirth* branch_zaMirth_24;
				struct std_list_List_1 branch_zaLister_25;
				struct std_list_List_1 branch_List_26;
				bool branch_Bool_27;
				switch ((v22).tag) {
					case std_list_List_1_Cons: {
						struct std_list_List_1 v28;
						VAL v29 = mtp_std_list_List_1_Cons(v22, &v28);
						struct mirth_mirth_zaMirth* v30;
						struct std_maybe_Maybe_1 v31 = mw_mirth_token_Token_sigzelabelzy(r20, V_mirth_token_Token(v29), &v30);
						struct std_list_List_1 v32;
						mw_std_maybe_Maybe_1_for_1_sp2(r21, v31, &v32);
						bool v33 = true;
						branch_Bool_27 = v33;
						branch_List_26 = v28;
						branch_zaLister_25 = v32;
						branch_zaMirth_24 = v30;
					} break;
					case std_list_List_1_Nil: {
						struct std_list_List_1 v34 = { .tag=std_list_List_1_Nil };
						bool v35 = false;
						branch_Bool_27 = v35;
						branch_List_26 = v34;
						branch_zaLister_25 = r21;
						branch_zaMirth_24 = r20;
					} break;
					default: {
						do_panic(str_make("unexpected fallthrough in match\n", 32));
					}
				}
				v19 = branch_Bool_27;
				v18 = branch_Bool_27;
				v17 = branch_List_26;
				r16 = branch_zaLister_25;
				r15 = branch_zaMirth_24;
			}
			decref(MK_std_list_List_1(v17));
			struct std_list_List_1 v36 = mw_std_list_zaLister_1_donezx(r16);
			branch_List_8 = v36;
			branch_zaMirth_7 = r15;
		} break;
		case std_maybe_Maybe_1_None: {
			struct std_list_List_1 v37 = { .tag=std_list_List_1_Nil };
			branch_List_8 = v37;
			branch_zaMirth_7 = v5;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_List_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
leaq -0x30(%rbp), %rdx
callq 0x190c9
testl %eax, %eax
je 0x6f33a
movq %rbx, -0x38(%rbp)
cmpl $0x1, %eax
jne 0x6f39a
movq %rdx, %rdi
callq 0xd491
movq -0x30(%rbp), %rdi
leaq -0x68(%rbp), %r14
movq %rax, %rsi
movq %r14, %rdx
callq 0x6d3c5
movl %eax, %r13d
movq %rdx, %rbx
xorl %edi, %edi
xorl %esi, %esi
callq 0xcd32
movl %eax, %r15d
movq %rdx, %r12
movq (%r14), %r14
leaq -0x60(%rbp), %rcx
movb $0x1, %al
movq %rbx, %rdi
testb $0x1, %al
je 0x6f344
xorl %eax, %eax
movl $0x0, %ebx
testl %r13d, %r13d
je 0x6f2d6
cmpl $0x1, %r13d
jne 0x6f39a
movq %rcx, %rbx
movq %rcx, %rsi
callq 0xce01
movq %r14, %rdi
movq %rax, %rsi
leaq -0x40(%rbp), %rdx
callq 0x3b3ab
movq %rdx, %rcx
movl %r15d, %edi
movq %r12, %rsi
movl %eax, %edx
leaq -0x50(%rbp), %r8
callq 0x2cdac
movq %rbx, %rcx
movl -0x60(%rbp), %r13d
movq -0x58(%rbp), %rbx
movl -0x50(%rbp), %r15d
movq -0x48(%rbp), %r12
movq -0x40(%rbp), %r14
jmp 0x6f2d4
xorl %eax, %eax
movq -0x30(%rbp), %r14
xorl %edx, %edx
jmp 0x6f388
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x6f379
decl (%rax)
jne 0x6f379
shlq $0x30, %r13
orq %rdi, %r13
leaq 0x98f08(%rip), %rsi     # 0x108279
movq %r13, %rdi
callq 0xce94
movl %r15d, %edi
movq %r12, %rsi
callq 0xcd32
movq -0x38(%rbp), %rbx
movq %r14, (%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6546c(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6