// File: /workspace/github_c_makefile_star2_O2/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 $0x48, %rsp
movq %rcx, -0x60(%rbp)
movl %esi, %eax
movq %rdi, %r12
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x95799(%rip), %rsi     # 0x108bc1
movq %rax, %rdi
callq 0x1e454
movq %rdx, %r13
movq $0x0, -0x38(%rbp)
pushq $0x1
popq %rax
movl %eax, %r14d
movq $0x0, -0x40(%rbp)
movq %r13, %rbx
andq %r15, %rbx
setne %al
testb $0x3, %r13b
sete %r15b
andb %al, %r15b
cmpb $0x1, %r15b
jne 0x73465
incl (%rbx)
movl %r14d, %edi
movq %r13, %rsi
callq 0x36b56
cmpl $0x1, %eax
jne 0x73687
movq %r13, -0x68(%rbp)
movq %r14, %r13
movq %r12, %r14
movq %rdx, %rdi
callq 0xd491
movq %rax, %r12
testb %r15b, %r15b
je 0x734ae
decl (%rbx)
jne 0x734ae
shlq $0x30, %r13
orq -0x68(%rbp), %r13
movq %r13, %rdi
leaq 0x95a78(%rip), %rsi     # 0x108f21
callq 0xce94
movq %r12, %rsi
shrq $0x30, %rsi
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
andq %r15, %r12
movq %r14, %rdi
movq %r12, %rdx
leaq -0x30(%rbp), %rcx
callq 0x34dd2
cmpl $0x8, %eax
ja 0x736ee
movl %eax, %eax
leaq 0x60005(%rip), %rcx     # 0xd34e8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %r14d, %r14d
xorl %edi, %edi
leaq 0x95e19(%rip), %rsi     # 0x109311
callq 0x1e400
movq %rdx, %r13
movq -0x30(%rbp), %r12
jmp 0x73449
movq %rdx, %rdi
callq 0x34e20
movq %rax, %rdi
callq 0x36c1f
btsq $0x32, %rax
jmp 0x73549
movabsq $0x2000000000000, %rdi  # imm = 0x2000000000000
jmp 0x73560
movq %rdx, %rdi
callq 0x34edb
movq %rax, %rdi
callq 0x36bd6
movabsq $0x3000000000000, %rcx  # imm = 0x3000000000000
orq %rcx, %rax
movq %rax, %rdi
jmp 0x73560
movq %rdx, %rdi
leaq -0x50(%rbp), %rsi
callq 0x34f7f
jmp 0x73587
leaq 0x4(%r15), %rdi
leaq 0x95daa(%rip), %rsi     # 0x109311
callq 0x1e400
movq %rdx, %r13
xorl %r14d, %r14d
movq -0x30(%rbp), %r12
jmp 0x73449
movq %rdx, %rdi
leaq -0x50(%rbp), %rsi
callq 0x34ef8
movl %eax, %ebx
movq %rdx, %r14
movq -0x48(%rbp), %rax
movq %rax, %rcx
andq %r15, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x735be
movl -0x50(%rbp), %edi
decl (%rcx)
jne 0x735be
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x95530(%rip), %rsi     # 0x108ae9
callq 0xce94
shlq $0x30, %rbx
orq %r14, %rbx
movq %rbx, %rdi
leaq 0x955f2(%rip), %rsi     # 0x108bc1
callq 0x1e454
movq %rdx, %r13
movq -0x30(%rbp), %r12
pushq $0x1
popq %rax
movl %eax, %r14d
jmp 0x73449
movq %rdx, %rdi
leaq -0x50(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x3502f
jmp 0x73608
movq %rdx, %rdi
leaq -0x50(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x350d3
movl %eax, %ebx
movq %rdx, %r14
movq -0x48(%rbp), %rax
movq %rax, %rcx
andq %r15, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x7363f
movl -0x50(%rbp), %edi
decl (%rcx)
jne 0x7363f
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x954af(%rip), %rsi     # 0x108ae9
callq 0xce94
movq -0x58(%rbp), %rdi
leaq 0x95c7e(%rip), %rsi     # 0x1092c8
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %rcx
callq 0xcf39
movq %rdx, -0x40(%rbp)
shlq $0x30, %rbx
orq %r14, %rbx
movq %rbx, %rdi
leaq 0x95555(%rip), %rsi     # 0x108bc1
callq 0x1e454
movq %rdx, %r13
movq -0x30(%rbp), %r12
pushq $0x1
popq %rax
movl %eax, %r14d
movq %rax, -0x38(%rbp)
jmp 0x73449
testl %eax, %eax
jne 0x736ee
movl %r14d, %edi
movq %r13, %rsi
callq 0x36c68
movl %eax, %edi
movq %rdx, %rsi
callq 0x31344
testb $0x1, %dl
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
je 0x736d0
andq %rax, %r14
sete %cl
testb $0x3, %al
setne %sil
orb %cl, %sil
jne 0x736d0
decl (%r14)
jne 0x736d0
movq %rax, %rdi
movq %rdx, %rsi
callq 0xce94
movq -0x60(%rbp), %rax
movq %r12, (%rax)
movq -0x38(%rbp), %rax
movq -0x40(%rbp), %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x61118(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6