// File: /workspace/github_c_makefile_star2_O3/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 $0x38, %rsp
movq %rdx, %rbx
movq %rdi, %r14
leaq 0x109f2a5(%rip), %rdi   # 0x1114d20
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %rdi
shrq $0x30, %rax
je 0x75b2a
movq %rbx, -0x30(%rbp)
cmpl $0x1, %eax
jne 0x75b57
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %rdi
callq 0xd745
leaq -0x60(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
movq %rdx, %r14
callq 0x73af8
movl %eax, %ebx
movq %rdx, %r13
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd01b
movl %eax, %r12d
movq %rdx, %r15
movq (%r14), %r14
cmpl $0x1, %ebx
jne 0x75b2e
movq %r13, %rdi
leaq -0x58(%rbp), %rsi
callq 0xd0aa
movq %r14, %rdi
movq %rax, %rsi
leaq -0x38(%rbp), %rdx
callq 0x3e6ec
movq %rdx, %rcx
movl %r12d, %edi
movq %r15, %rsi
movl %eax, %edx
leaq -0x48(%rbp), %r8
callq 0x2f53f
movl -0x58(%rbp), %ebx
movq -0x50(%rbp), %r13
movl -0x48(%rbp), %r12d
movq -0x40(%rbp), %r15
movq -0x38(%rbp), %r14
jmp 0x75ae1
xorl %edx, %edx
jmp 0x75b45
testl %ebx, %ebx
jne 0x75b57
xorl %edi, %edi
xorl %esi, %esi
movl %r12d, %edx
movq %r15, %rcx
callq 0xd01b
movq -0x30(%rbp), %rbx
movq %r14, (%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x6ab5d(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x6ab62(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302