// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_mirth_zaMirth_parsezelabelzenames
static struct std_list_List_1 mw_mirth_mirth_zaMirth_parsezelabelzenames (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_list_List_1 v7 = { .tag=std_list_List_1_Nil };
	struct std_list_List_1 v8;
	mw_std_list_List_1_buildzx(v7, &v8);
	bool v9 = true;
	struct mirth_mirth_zaMirth* r10 = v5;
	struct std_list_List_1 r11 = v8;
	struct std_list_List_1 v12 = v6;
	bool v13 = v9;
	bool v14 = v9;
	while (v14) {
		struct mirth_mirth_zaMirth* r15 = r10;
		struct std_list_List_1 r16 = r11;
		struct std_list_List_1 v17 = v12;
		bool v18 = v13;
		struct mirth_mirth_zaMirth* branch_zaMirth_19;
		struct std_list_List_1 branch_zaLister_20;
		struct std_list_List_1 branch_List_21;
		bool branch_Bool_22;
		switch ((v17).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v23;
				VAL v24 = mtp_std_list_List_1_Cons(v17, &v23);
				incref(v24);
				struct mirth_mirth_zaMirth* v25;
				mw_mirth_token_Token_argsze0(r15, V_mirth_token_Token(v24), &v25);
				incref(v24);
				struct mirth_mirth_zaMirth* v26;
				struct std_maybe_Maybe_1 v27 = mw_mirth_token_Token_namezy(v25, V_mirth_token_Token(v24), &v26);
				struct mirth_mirth_zaMirth* branch_zaMirth_28;
				uint64_t branch_Token_29;
				VAL branch_zux1_30;
				switch ((v27).tag) {
					case std_maybe_Maybe_1_Some: {
						VAL v31 = mtp_std_maybe_Maybe_1_Some(v27);
						branch_zux1_30 = v31;
						branch_Token_29 = V_mirth_token_Token(v24);
						branch_zaMirth_28 = v26;
					} break;
					case std_maybe_Maybe_1_None: {
						STR* v32;
						STRLIT(v32, "Expected label name.", 20);
						mw_mirth_mirth_zaMirth_emitzefatalzeerrorzx(v26, V_mirth_token_Token(v24), v32);
					} break;
					default: {
						do_panic(str_make("unexpected fallthrough in match\n", 32));
					}
				}
				incref(branch_zux1_30);
				struct mirth_mirth_zaMirth* v36;
				bool v37 = mw_mirth_name_Name_couldzebezelabelzenamezy(branch_zaMirth_28, V_mirth_name_Name(branch_zux1_30), &v36);
				uint64_t branch_Token_38;
				struct mirth_mirth_zaMirth* branch_zaMirth_39;
				uint64_t branch_Name_40;
				if (v37) {
					branch_Name_40 = V_mirth_name_Name(branch_zux1_30);
					branch_zaMirth_39 = v36;
					branch_Token_38 = branch_Token_29;
				} else {
					STR* v41;
					STRLIT(v41, "", 0);
					STR* v42;
					STRLIT(v42, "Invalid label name: ", 20);
					STR* v43;
					mw_std_str_zaStr_pushzestrzx(v42, v41, &v43);
					struct mirth_mirth_zaMirth* v44;
					STR* v45;
					mw_mirth_name_Name_namezj(v36, v43, V_mirth_name_Name(branch_zux1_30), &v44, &v45);
					mw_mirth_mirth_zaMirth_emitzefatalzeerrorzx(v44, branch_Token_29, v45);
				}
				struct mirth_mirth_zaMirth* v49;
				uint64_t v50 = mw_mirth_label_Label_Label(branch_zaMirth_39, branch_Name_40, &v49);
				struct std_list_List_1 v51;
				mw_std_list_zaLister_1_pushzx(MK_mirth_label_Label(v50), r16, &v51);
				bool v52 = true;
				branch_Bool_22 = v52;
				branch_List_21 = v23;
				branch_zaLister_20 = v51;
				branch_zaMirth_19 = v49;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v53 = { .tag=std_list_List_1_Nil };
				bool v54 = false;
				branch_Bool_22 = v54;
				branch_List_21 = v53;
				branch_zaLister_20 = r16;
				branch_zaMirth_19 = r15;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v14 = branch_Bool_22;
		v13 = branch_Bool_22;
		v12 = branch_List_21;
		r11 = branch_zaLister_20;
		r10 = branch_zaMirth_19;
	}
	decref(MK_std_list_List_1(v12));
	struct std_list_List_1 v55 = mw_std_list_zaLister_1_donezx(r11);
	*out_zaMirth_3 = r10;
	return v55;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq %rax, -0x30(%rbp)
leaq -0x80(%rbp), %r14
movq %r14, %rdx
callq 0x34126
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 0x7aaef
movq %r13, %rdi
leaq -0x70(%rbp), %rsi
callq 0xd0aa
movq %rax, %rbx
testb $0x1, %dl
je 0x7aa3c
movq %rbx, %r13
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r13
setne %al
testb $0x3, %bl
sete %cl
testb %cl, %al
je 0x7aa3c
incl (%r13)
movq %r14, %rdi
movq %rbx, %rsi
leaq -0x38(%rbp), %rdx
callq 0x27534
incl (%r13)
jmp 0x7aa4b
movq %r14, %rdi
movq %rbx, %rsi
leaq -0x38(%rbp), %rdx
callq 0x27534
movq -0x38(%rbp), %rdi
movq %rbx, %rsi
leaq -0x48(%rbp), %rdx
callq 0x30835
cmpl $0x1, %eax
jne 0x7ab1c
movq %rdx, %rdi
callq 0xd745
movq %rax, %r14
testb $0x1, %dl
je 0x7aa94
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x7aa94
incl (%rax)
movq -0x48(%rbp), %rdi
movq %r14, %rsi
leaq -0x40(%rbp), %rdx
callq 0x3ff16
testb %al, %al
je 0x7ab76
movq -0x40(%rbp), %rdi
movq %r14, %rsi
leaq -0x58(%rbp), %rbx
movq %rbx, %rdx
callq 0x4006e
movq -0x58(%rbp), %r14
movq %rax, %rdi
leaq 0x977fb(%rip), %rsi     # 0x1122c8
movl %r12d, %edx
movq %r15, %rcx
movq %rbx, %r8
callq 0x949e
movl -0x70(%rbp), %ebx
movq -0x68(%rbp), %r13
movl -0x58(%rbp), %r12d
movq -0x50(%rbp), %r15
jmp 0x7a9e9
testl %ebx, %ebx
jne 0x7ac41
xorl %edi, %edi
xorl %esi, %esi
movl %r12d, %edx
movq %r15, %rcx
callq 0xd01b
movq -0x60(%rbp), %rcx
movq %r14, (%rcx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x109b8e5(%rip), %rdx   # 0x1116408
testq %rdx, %rdx
jne 0x7ab56
movl $0x14, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x14, 0x10(%rax)
movups 0x6d80c(%rip), %xmm0    # 0xe8350
movups %xmm0, 0x18(%rax)
movl $0x2e656d61, 0x28(%rax) # imm = 0x2E656D61
movq %rax, 0x109b8b2(%rip)   # 0x1116408
andq %rdx, -0x30(%rbp)
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x7ab6d
movq -0x30(%rbp), %rax
incl (%rax)
movq -0x48(%rbp), %rdi
jmp 0x7ac39
movq 0x109b893(%rip), %r15   # 0x1116410
testq %r15, %r15
jne 0x7ab9b
xorl %edi, %edi
callq 0xf5e4
movq %rax, %r15
movq $0x0, 0x10(%rax)
movq %rax, 0x109b875(%rip)   # 0x1116410
movq %r15, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x7abbb
incl (%rax)
movq 0x109b856(%rip), %rsi   # 0x1116418
testq %rsi, %rsi
jne 0x7abf5
movl $0x14, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x14, 0x10(%rax)
movups 0x6d782(%rip), %xmm0    # 0xe8365
movups %xmm0, 0x18(%rax)
movl $0x203a656d, 0x28(%rax) # imm = 0x203A656D
movq %rax, 0x109b823(%rip)   # 0x1116418
andq %rsi, -0x30(%rbp)
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x7ac0d
movq -0x30(%rbp), %rax
incl (%rax)
movq %r15, %rdi
callq 0xe069
movq -0x40(%rbp), %rdi
leaq -0x58(%rbp), %r15
leaq -0x78(%rbp), %r12
movq %rax, %rsi
movq %r14, %rdx
movq %r15, %rcx
movq %r12, %r8
callq 0x1a0d2
movq (%r15), %rdi
movq (%r12), %rdx
movq %rbx, %rsi
callq 0x27183
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x65a73(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x65a78(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302