// File: /workspace/github_c_makefile_star2_O1/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 0x10a14ef(%rip), %rdi   # 0x1118d20
callq 0x13ff0
movq %rax, %rdi
callq 0x140f0
movq %rax, %rdi
shrq $0x30, %rax
je 0x7793f
movq %rbx, -0x30(%rbp)
cmpl $0x1, %eax
jne 0x77953
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %rdi
callq 0xdaeb
leaq -0x60(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
movq %rdx, %r14
callq 0x758ae
movl %eax, %r13d
movq %rdx, %rbx
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd37c
movl %eax, %r12d
movq %rdx, %r15
movq (%r14), %r14
testl %r13d, %r13d
je 0x778ee
cmpl $0x1, %r13d
jne 0x77953
movq %rbx, %rdi
leaq -0x58(%rbp), %rsi
callq 0xd450
movq %r14, %rdi
movq %rax, %rsi
leaq -0x38(%rbp), %rdx
callq 0x3fa35
movq %rdx, %rcx
movl %r12d, %edi
movq %r15, %rsi
movl %eax, %edx
leaq -0x48(%rbp), %r8
callq 0x3043a
movl -0x58(%rbp), %r13d
movq -0x50(%rbp), %rbx
movl -0x48(%rbp), %r12d
movq -0x40(%rbp), %r15
movq -0x38(%rbp), %r14
movb $0x1, %al
jmp 0x778f2
xorl %eax, %eax
xorl %ebx, %ebx
testb %al, %al
jne 0x77898
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rdx
sete %al
testb $0x3, %bl
setne %cl
orb %al, %cl
jne 0x7792a
decl (%rdx)
jne 0x7792a
shlq $0x30, %r13
orq %rbx, %r13
leaq 0x9d957(%rip), %rsi     # 0x115279
movq %r13, %rdi
callq 0xd4e3
xorl %edi, %edi
xorl %esi, %esi
movl %r12d, %edx
movq %r15, %rcx
callq 0xd37c
movq -0x30(%rbp), %rbx
jmp 0x77941
xorl %edx, %edx
movq %r14, (%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x6cde1(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x6cde6(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5