// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_labelzenames
static struct std_list_List_1 mw_mirth_type_StackType_labelzenames (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_StackType in_StackType_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct std_list_List_1 v5 = { .tag=std_list_List_1_Nil };
	struct std_either_Either_2 v6 = mtw_std_either_Either_2_Right(MK_mirth_type_StackType(in_StackType_2));
	bool v7 = true;
	struct std_list_List_1 v8 = v5;
	struct mirth_mirth_zaMirth* r9 = in_zaMirth_1;
	struct std_either_Either_2 v10 = v6;
	bool v11 = v7;
	bool v12 = v7;
	while (v12) {
		struct std_list_List_1 v13 = v8;
		struct mirth_mirth_zaMirth* r14 = r9;
		struct std_either_Either_2 v15 = v10;
		bool v16 = v11;
		incref(MK_std_either_Either_2(v15));
		struct std_maybe_Maybe_1 v17 = mw_std_either_Either_2_rightzy(v15);
		struct std_list_List_1 branch_List_18;
		struct mirth_mirth_zaMirth* branch_zaMirth_19;
		struct std_either_Either_2 branch_Either_20;
		bool branch_Bool_21;
		switch ((v17).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v22 = mtp_std_maybe_Maybe_1_Some(v17);
				decref(MK_std_either_Either_2(v15));
				struct mirth_mirth_zaMirth* v23;
				struct mirth_type_StackType v24 = mw_mirth_type_StackType_expand(r14, V_mirth_type_StackType(v22), &v23);
				struct std_list_List_1 branch_List_25;
				struct mirth_mirth_zaMirth* branch_zaMirth_26;
				struct std_either_Either_2 branch_Either_27;
				switch ((v24).tag) {
					case mirth_type_StackType_Error: {
						struct mirth_type_StackTypeBase v28 = { .tag=mirth_type_StackTypeBase_Error };
						struct std_either_Either_2 v29 = mtw_std_either_Either_2_Left(MK_mirth_type_StackTypeBase(v28));
						branch_Either_27 = v29;
						branch_zaMirth_26 = v23;
						branch_List_25 = v13;
					} break;
					case mirth_type_StackType_Ignore: {
						struct mirth_type_StackTypeBase v30 = { .tag=mirth_type_StackTypeBase_Ignore };
						struct std_either_Either_2 v31 = mtw_std_either_Either_2_Left(MK_mirth_type_StackTypeBase(v30));
						branch_Either_27 = v31;
						branch_zaMirth_26 = v23;
						branch_List_25 = v13;
					} break;
					case mirth_type_StackType_Var: {
						uint64_t v32 = mtp_mirth_type_StackType_Var(v24);
						struct mirth_type_StackTypeBase v33 = mtw_mirth_type_StackTypeBase_Var(v32);
						struct std_either_Either_2 v34 = mtw_std_either_Either_2_Left(MK_mirth_type_StackTypeBase(v33));
						branch_Either_27 = v34;
						branch_zaMirth_26 = v23;
						branch_List_25 = v13;
					} break;
					case mirth_type_StackType_Meta: {
						uint64_t v35 = mtp_mirth_type_StackType_Meta(v24);
						struct mirth_type_StackTypeBase v36 = mtw_mirth_type_StackTypeBase_Meta(v35);
						struct std_either_Either_2 v37 = mtw_std_either_Either_2_Left(MK_mirth_type_StackTypeBase(v36));
						branch_Either_27 = v37;
						branch_zaMirth_26 = v23;
						branch_List_25 = v13;
					} break;
					case mirth_type_StackType_Unit: {
						struct mirth_type_StackTypeBase v38 = { .tag=mirth_type_StackTypeBase_Unit };
						struct std_either_Either_2 v39 = mtw_std_either_Either_2_Left(MK_mirth_type_StackTypeBase(v38));
						branch_Either_27 = v39;
						branch_zaMirth_26 = v23;
						branch_List_25 = v13;
					} break;
					case mirth_type_StackType_Cons: {
						struct mirth_type_Type v40;
						struct mirth_type_StackType v41 = mtp_mirth_type_StackType_Cons(v24, &v40);
						decref(MK_mirth_type_Type(v40));
						struct std_either_Either_2 v42 = mtw_std_either_Either_2_Right(MK_mirth_type_StackType(v41));
						branch_Either_27 = v42;
						branch_zaMirth_26 = v23;
						branch_List_25 = v13;
					} break;
					case mirth_type_StackType_With: {
						struct mirth_type_Type v43;
						struct mirth_type_StackType v44 = mtp_mirth_type_StackType_With(v24, &v43);
						decref(MK_mirth_type_Type(v43));
						struct std_either_Either_2 v45 = mtw_std_either_Either_2_Right(MK_mirth_type_StackType(v44));
						branch_Either_27 = v45;
						branch_zaMirth_26 = v23;
						branch_List_25 = v13;
					} break;
					case mirth_type_StackType_ConsLabel: {
						struct mirth_type_Type v46;
						uint64_t v47;
						struct mirth_type_StackType v48 = mtp_mirth_type_StackType_ConsLabel(v24, &v46, &v47);
						decref(MK_mirth_type_Type(v46));
						struct std_list_List_1 v49 = mw_std_list_List_1_cons(MK_mirth_label_Label(v47), v13);
						struct std_either_Either_2 v50 = mtw_std_either_Either_2_Right(MK_mirth_type_StackType(v48));
						branch_Either_27 = v50;
						branch_zaMirth_26 = v23;
						branch_List_25 = v49;
					} break;
					case mirth_type_StackType_WithLabel: {
						struct mirth_type_Type v51;
						uint64_t v52;
						struct mirth_type_StackType v53 = mtp_mirth_type_StackType_WithLabel(v24, &v51, &v52);
						decref(MK_mirth_type_Type(v51));
						struct std_list_List_1 v54 = mw_std_list_List_1_cons(MK_mirth_label_Label(v52), v13);
						struct std_either_Either_2 v55 = mtw_std_either_Either_2_Right(MK_mirth_type_StackType(v53));
						branch_Either_27 = v55;
						branch_zaMirth_26 = v23;
						branch_List_25 = v54;
					} break;
					default: {
						do_panic(str_make("unexpected fallthrough in match\n", 32));
					}
				}
				bool v56 = true;
				branch_Bool_21 = v56;
				branch_Either_20 = branch_Either_27;
				branch_zaMirth_19 = branch_zaMirth_26;
				branch_List_18 = branch_List_25;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v57 = false;
				branch_Bool_21 = v57;
				branch_Either_20 = v15;
				branch_zaMirth_19 = r14;
				branch_List_18 = v13;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v12 = branch_Bool_21;
		v11 = branch_Bool_21;
		v10 = branch_Either_20;
		r9 = branch_zaMirth_19;
		v8 = branch_List_18;
	}
	struct std_maybe_Maybe_1 v58 = mw_std_either_Either_2_leftzy(v10);
	VAL v59 = mw_std_maybe_Maybe_1_unwrap_1_sp3(v58);
	decref(v59);
	*out_zaMirth_3 = r9;
	return v8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, -0x60(%rbp)
movl %esi, %eax
movq %rdi, %r15
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x99d1c(%rip), %rsi     # 0x115bc1
movq %rax, %rdi
callq 0x20c67
movq %rdx, %r13
movl $0x1, %r14d
movq $0x0, -0x40(%rbp)
movl $0x0, -0x2c(%rbp)
movq %r13, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x7bedb
incl (%rax)
movl %r14d, %edi
movq %r13, %rsi
callq 0x3b176
testl %eax, %eax
je 0x7bf7d
cmpl $0x1, %eax
jne 0x7c175
movq %rdx, %rdi
callq 0xdaeb
movq %rax, %rbx
movq %r13, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x7bf30
decl (%rax)
jne 0x7bf30
shlq $0x30, %r14
orq %r13, %r14
movq %r14, %rdi
leaq 0x99ff6(%rip), %rsi     # 0x115f21
callq 0xd4e3
movq %rbx, %rsi
shrq $0x30, %rsi
andq %r12, %rbx
movq %r15, %rdi
movq %rbx, %rdx
leaq -0x38(%rbp), %rcx
callq 0x3917b
cmpl $0x8, %eax
ja 0x7c175
movl %eax, %eax
leaq 0x67545(%rip), %rcx     # 0xe34a0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %r14d, %r14d
xorl %edi, %edi
leaq 0x9a3a1(%rip), %rsi     # 0x116311
callq 0x20c09
movq %rdx, %r13
jmp 0x7bffe
xorl %eax, %eax
jmp 0x7c114
movq 0x8(%rdx), %rbx
decl (%rdx)
jne 0x7bf94
movq %rdx, %rdi
callq 0x5030
movq %rbx, %rdi
callq 0x3b262
btsq $0x32, %rax
jmp 0x7bfd4
movabsq $0x2000000000000, %rdi  # imm = 0x2000000000000
jmp 0x7bfec
movq 0x8(%rdx), %rbx
decl (%rdx)
jne 0x7bfbf
movq %rdx, %rdi
callq 0x5030
movq %rbx, %rdi
callq 0x3b20f
movabsq $0x3000000000000, %rcx  # imm = 0x3000000000000
orq %rcx, %rax
movq %rax, %rdi
jmp 0x7bfec
movq %rdx, %rdi
leaq -0x50(%rbp), %rsi
callq 0x39346
jmp 0x7c013
leaq 0x4(%r12), %rdi
leaq 0x9a31e(%rip), %rsi     # 0x116311
callq 0x20c09
movq %rdx, %r13
xorl %r14d, %r14d
movq -0x38(%rbp), %r15
jmp 0x7c112
movq %rdx, %rdi
leaq -0x50(%rbp), %rsi
callq 0x392bf
movl %eax, %r14d
movq %rdx, %rbx
movq -0x48(%rbp), %rax
movq %rax, %rcx
andq %r12, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x7c04b
movl -0x50(%rbp), %edi
decl (%rcx)
jne 0x7c04b
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x99aa3(%rip), %rsi     # 0x115ae9
callq 0xd4e3
shlq $0x30, %r14
orq %rbx, %r14
movq %r14, %rdi
leaq 0x99b65(%rip), %rsi     # 0x115bc1
callq 0x20c67
movq %rdx, %r13
movq -0x38(%rbp), %r15
movl $0x1, %r14d
jmp 0x7c112
movq %rdx, %rdi
leaq -0x50(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x393cd
jmp 0x7c095
movq %rdx, %rdi
leaq -0x50(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x39471
movl %eax, %r14d
movq %rdx, %r15
movq -0x48(%rbp), %rax
movq %rax, %rcx
andq %r12, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x7c0cd
movl -0x50(%rbp), %edi
decl (%rcx)
jne 0x7c0cd
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x99a21(%rip), %rsi     # 0x115ae9
callq 0xd4e3
movq -0x58(%rbp), %rdi
leaq 0x9a1f0(%rip), %rsi     # 0x1162c8
movl -0x2c(%rbp), %edx
movq -0x40(%rbp), %rcx
callq 0xd592
movq %rdx, -0x40(%rbp)
shlq $0x30, %r14
orq %r15, %r14
movq %r14, %rdi
leaq 0x99ac8(%rip), %rsi     # 0x115bc1
callq 0x20c67
movq %rdx, %r13
movq -0x38(%rbp), %r15
movl $0x1, %r14d
movl $0x1, -0x2c(%rbp)
movb $0x1, %al
testb %al, %al
jne 0x7bec5
movl %r14d, %edi
movq %r13, %rsi
callq 0x3b2b5
movl %eax, %edi
movq %rdx, %rsi
callq 0x3502e
testb $0x1, %dl
je 0x7c158
andq %rax, %r12
sete %cl
testb $0x3, %al
setne %sil
orb %cl, %sil
jne 0x7c158
decl (%r12)
jne 0x7c158
movq %rax, %rdi
movq %rdx, %rsi
callq 0xd4e3
movq -0x60(%rbp), %rax
movq %r15, (%rax)
movl -0x2c(%rbp), %eax
movq -0x40(%rbp), %rdx
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 0x685bf(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x685c4(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5