// File: /workspace/github_c_makefile_star2_O1/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), %rbx
movq %rbx, %rdx
callq 0x3527c
movl %eax, %r12d
movq %rdx, %r13
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd37c
movl %eax, %r15d
movq %rdx, %r14
movq (%rbx), %rbx
testl %r12d, %r12d
je 0x7c9cb
cmpl $0x1, %r12d
jne 0x7cbb2
movq %r13, %rdi
leaq -0x70(%rbp), %rsi
callq 0xd450
movq %rax, %r12
testb $0x1, %dl
je 0x7c9d5
movq %r12, %r13
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r13
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x7c9d5
incl (%r13)
movq %rbx, %rdi
movq %r12, %rsi
leaq -0x38(%rbp), %rdx
callq 0x27b3d
incl (%r13)
jmp 0x7c9e4
xorl %eax, %eax
xorl %r13d, %r13d
jmp 0x7ca85
movq %rbx, %rdi
movq %r12, %rsi
leaq -0x38(%rbp), %rdx
callq 0x27b3d
movq -0x38(%rbp), %rdi
movq %r12, %rsi
leaq -0x48(%rbp), %rdx
callq 0x3176f
cmpl $0x1, %eax
jne 0x7cbe2
movq %rdx, %rdi
callq 0xdaeb
movq %rax, %rbx
testb $0x1, %dl
je 0x7ca2c
movq %rbx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x7ca2c
incl (%rax)
movq -0x48(%rbp), %rdi
movq %rbx, %rsi
leaq -0x40(%rbp), %rdx
callq 0x412b5
testb %al, %al
je 0x7cae7
movq -0x40(%rbp), %rdi
movq %rbx, %rsi
leaq -0x58(%rbp), %r12
movq %r12, %rdx
callq 0x4140d
movq -0x58(%rbp), %rbx
movq %rax, %rdi
leaq 0x99863(%rip), %rsi     # 0x1162c8
movl %r15d, %edx
movq %r14, %rcx
movq %r12, %r8
callq 0x9741
movl -0x70(%rbp), %r12d
movq -0x68(%rbp), %r13
movl -0x58(%rbp), %r15d
movq -0x50(%rbp), %r14
movb $0x1, %al
testb %al, %al
jne 0x7c971
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %r13, %rdx
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x7cac2
decl (%rdx)
jne 0x7cac2
shlq $0x30, %r12
orq %r13, %r12
leaq 0x987bf(%rip), %rsi     # 0x115279
movq %r12, %rdi
callq 0xd4e3
xorl %edi, %edi
xorl %esi, %esi
movl %r15d, %edx
movq %r14, %rcx
callq 0xd37c
movq -0x60(%rbp), %rcx
movq %rbx, (%rcx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x109d921(%rip)   # 0x111a410
jne 0x7cb07
xorl %edi, %edi
callq 0xf9f7
movq $0x0, 0x10(%rax)
movq %rax, 0x109d909(%rip)   # 0x111a410
movq 0x109d902(%rip), %r14   # 0x111a410
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x7cb2e
incl (%rax)
cmpq $0x0, 0x109d8e2(%rip)   # 0x111a418
jne 0x7cb63
movl $0x14, %edi
callq 0xf9f7
movq $0x14, 0x10(%rax)
movups 0x6f945(%rip), %xmm0    # 0xec496
movups %xmm0, 0x18(%rax)
movl $0x203a656d, 0x28(%rax) # imm = 0x203A656D
movq %rax, 0x109d8b5(%rip)   # 0x111a418
movq 0x109d8ae(%rip), %rsi   # 0x111a418
andq %rsi, -0x30(%rbp)
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x7cb82
movq -0x30(%rbp), %rax
incl (%rax)
movq %r14, %rdi
callq 0xe43c
movq -0x40(%rbp), %rdi
leaq -0x58(%rbp), %r14
leaq -0x78(%rbp), %r15
movq %rax, %rsi
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r8
callq 0x1a389
movq (%r14), %rdi
movq (%r15), %rdx
jmp 0x7cc39
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x67b82(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x67b87(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5
cmpq $0x0, 0x109d81e(%rip)   # 0x111a408
jne 0x7cc17
movl $0x14, %edi
callq 0xf9f7
movq $0x14, 0x10(%rax)
movups 0x6f87c(%rip), %xmm0    # 0xec481
movups %xmm0, 0x18(%rax)
movl $0x2e656d61, 0x28(%rax) # imm = 0x2E656D61
movq %rax, 0x109d7f1(%rip)   # 0x111a408
movq 0x109d7ea(%rip), %rdx   # 0x111a408
andq %rdx, -0x30(%rbp)
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x7cc35
movq -0x30(%rbp), %rax
incl (%rax)
movq -0x48(%rbp), %rdi
movq %r12, %rsi
callq 0x2778c