// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Stack_tiezeknotzx
static void mw_mirth_c99_zaC99Stack_tiezeknotzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_c99_zaC99Stack in_zaC99Stack_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5) {
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_7;
	switch ((in_zaC99Stack_3).tag) {
		case mirth_c99_zaC99Stack_zaNil: {
			struct mirth_mirth_zaMirth* v8;
			struct mirth_c99_zaC99Branch* v9;
			mw_mirth_c99_zaC99Branch_flushzecachezx(in_zaMirth_1, in_zaC99Branch_2, &v8, &v9);
			branch_zaC99Branch_7 = v9;
			branch_zaMirth_6 = v8;
		} break;
		case mirth_c99_zaC99Stack_zaCons: {
			struct mirth_c99_zaC99Stack v10;
			struct mirth_c99_zaC99Value* v11;
			mtp_mirth_c99_zaC99Stack_zaCons(in_zaC99Stack_3, &v10, &v11);
			struct mirth_c99_C99ReprType v12 = v11->mvaluezerepr;
			incref(MK_mirth_c99_C99ReprType(v12));
			incref(MK_mirth_c99_C99ReprType(v12));
			struct mirth_mirth_zaMirth* v13;
			struct mirth_c99_zaC99Branch* v14;
			struct mirth_c99_zaC99Value* v15;
			mw_mirth_c99_zaC99Branch_popzevaluezx(in_zaMirth_1, in_zaC99Branch_2, v12, &v13, &v14, &v15);
			struct mirth_mirth_zaMirth* v16;
			STR* v17 = mw_mirth_c99_zaC99Value_consumezeas(v13, v12, v15, &v16);
			STR* v18 = v11->mvaluezename;
			incref(MKSTR(v18));
			struct mirth_c99_C99ReprType v19 = v11->mvaluezerepr;
			incref(MK_mirth_c99_C99ReprType(v19));
			struct mirth_mirth_zaMirth* v20;
			bool v21 = mw_mirth_c99_C99ReprType_iszephysicalzy(v16, v19, &v20);
			struct mirth_mirth_zaMirth* v22;
			struct mirth_c99_zaC99Branch* v23;
			mw_mirth_c99_zaC99Branch_c99zelinezeif_1_sp24(v17, v18, v20, v21, v14, &v22, &v23);
			struct mirth_mirth_zaMirth* v24;
			struct mirth_c99_zaC99Branch* v25;
			mw_mirth_c99_zaC99Stack_tiezeknotzx(v22, v23, v10, &v24, &v25);
			struct mirth_mirth_zaMirth* v26;
			struct mirth_c99_zaC99Branch* v27;
			mw_mirth_c99_zaC99Value_pushzevaluezx(v24, v25, v11, &v26, &v27);
			branch_zaC99Branch_7 = v27;
			branch_zaMirth_6 = v26;
		} break;
		case mirth_c99_zaC99Stack_zaWith: {
			struct mirth_c99_zaC99Stack v28;
			struct mirth_c99_zaC99Resource* v29;
			mtp_mirth_c99_zaC99Stack_zaWith(in_zaC99Stack_3, &v28, &v29);
			struct mirth_c99_C99ReprType v30 = v29->mresourcezerepr;
			incref(MK_mirth_c99_C99ReprType(v30));
			incref(MK_mirth_c99_C99ReprType(v30));
			struct mirth_mirth_zaMirth* v31;
			struct mirth_c99_zaC99Branch* v32;
			struct mirth_c99_zaC99Resource* v33;
			mw_mirth_c99_zaC99Branch_popzeresourcezx(in_zaMirth_1, in_zaC99Branch_2, v30, &v31, &v32, &v33);
			struct mirth_c99_zaC99Value* v34;
			mw_mirth_c99_zaC99Resource_turnzeintozevaluezx(v33, &v34);
			struct mirth_mirth_zaMirth* v35;
			STR* v36 = mw_mirth_c99_zaC99Value_consumezeas(v31, v30, v34, &v35);
			STR* v37 = v29->mresourcezename;
			incref(MKSTR(v37));
			struct mirth_c99_C99ReprType v38 = v29->mresourcezerepr;
			incref(MK_mirth_c99_C99ReprType(v38));
			struct mirth_mirth_zaMirth* v39;
			bool v40 = mw_mirth_c99_C99ReprType_iszephysicalzy(v35, v38, &v39);
			struct mirth_mirth_zaMirth* v41;
			struct mirth_c99_zaC99Branch* v42;
			mw_mirth_c99_zaC99Branch_c99zelinezeif_1_sp24(v36, v37, v39, v40, v32, &v41, &v42);
			struct mirth_mirth_zaMirth* v43;
			struct mirth_c99_zaC99Branch* v44;
			mw_mirth_c99_zaC99Stack_tiezeknotzx(v41, v42, v28, &v43, &v44);
			struct mirth_mirth_zaMirth* v45;
			struct mirth_c99_zaC99Branch* v46;
			mw_mirth_c99_zaC99Resource_pushzeresourcezx(v43, v44, v29, &v45, &v46);
			branch_zaC99Branch_7 = v46;
			branch_zaMirth_6 = v45;
		} break;
		case mirth_c99_zaC99Stack_zaConsLabel: {
			struct mirth_c99_zaC99Stack v47;
			struct mirth_c99_zaC99Value* v48;
			uint64_t v49 = mtp_mirth_c99_zaC99Stack_zaConsLabel(in_zaC99Stack_3, &v47, &v48);
			struct mirth_c99_C99ReprType v50 = v48->mvaluezerepr;
			incref(MK_mirth_c99_C99ReprType(v50));
			incref(MK_mirth_c99_C99ReprType(v50));
			struct mirth_mirth_zaMirth* v51;
			struct mirth_c99_zaC99Branch* v52;
			struct mirth_c99_zaC99Value* v53;
			mw_mirth_c99_zaC99Branch_popzevaluezelabelzx(in_zaMirth_1, in_zaC99Branch_2, v50, v49, &v51, &v52, &v53);
			struct mirth_mirth_zaMirth* v54;
			STR* v55 = mw_mirth_c99_zaC99Value_consumezeas(v51, v50, v53, &v54);
			STR* v56 = v48->mvaluezename;
			incref(MKSTR(v56));
			struct mirth_c99_C99ReprType v57 = v48->mvaluezerepr;
			incref(MK_mirth_c99_C99ReprType(v57));
			struct mirth_mirth_zaMirth* v58;
			bool v59 = mw_mirth_c99_C99ReprType_iszephysicalzy(v54, v57, &v58);
			struct mirth_mirth_zaMirth* v60;
			struct mirth_c99_zaC99Branch* v61;
			mw_mirth_c99_zaC99Branch_c99zelinezeif_1_sp24(v55, v56, v58, v59, v52, &v60, &v61);
			struct mirth_mirth_zaMirth* v62;
			struct mirth_c99_zaC99Branch* v63;
			mw_mirth_c99_zaC99Stack_tiezeknotzx(v60, v61, v47, &v62, &v63);
			struct mirth_mirth_zaMirth* v64;
			struct mirth_c99_zaC99Branch* v65;
			mw_mirth_c99_pushzevaluezelabelzx(v62, v63, v49, v48, &v64, &v65);
			branch_zaC99Branch_7 = v65;
			branch_zaMirth_6 = v64;
		} break;
		case mirth_c99_zaC99Stack_zaWithLabel: {
			struct mirth_c99_zaC99Stack v66;
			struct mirth_c99_zaC99Resource* v67;
			uint64_t v68 = mtp_mirth_c99_zaC99Stack_zaWithLabel(in_zaC99Stack_3, &v66, &v67);
			struct mirth_c99_C99ReprType v69 = v67->mresourcezerepr;
			incref(MK_mirth_c99_C99ReprType(v69));
			incref(MK_mirth_c99_C99ReprType(v69));
			struct mirth_mirth_zaMirth* v70;
			struct mirth_c99_zaC99Branch* v71;
			struct mirth_c99_zaC99Resource* v72;
			mw_mirth_c99_zaC99Branch_popzeresourcezelabelzx(in_zaMirth_1, in_zaC99Branch_2, v69, v68, &v70, &v71, &v72);
			struct mirth_c99_zaC99Value* v73;
			mw_mirth_c99_zaC99Resource_turnzeintozevaluezx(v72, &v73);
			struct mirth_mirth_zaMirth* v74;
			STR* v75 = mw_mirth_c99_zaC99Value_consumezeas(v70, v69, v73, &v74);
			STR* v76 = v67->mresourcezename;
			incref(MKSTR(v76));
			struct mirth_c99_C99ReprType v77 = v67->mresourcezerepr;
			incref(MK_mirth_c99_C99ReprType(v77));
			struct mirth_mirth_zaMirth* v78;
			bool v79 = mw_mirth_c99_C99ReprType_iszephysicalzy(v74, v77, &v78);
			struct mirth_mirth_zaMirth* v80;
			struct mirth_c99_zaC99Branch* v81;
			mw_mirth_c99_zaC99Branch_c99zelinezeif_1_sp24(v75, v76, v78, v79, v71, &v80, &v81);
			struct mirth_mirth_zaMirth* v82;
			struct mirth_c99_zaC99Branch* v83;
			mw_mirth_c99_zaC99Stack_tiezeknotzx(v80, v81, v66, &v82, &v83);
			struct mirth_mirth_zaMirth* v84;
			struct mirth_c99_zaC99Branch* v85;
			mw_mirth_c99_pushzeresourcezelabelzx(v82, v83, v68, v67, &v84, &v85);
			branch_zaC99Branch_7 = v85;
			branch_zaMirth_6 = v84;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99Branch_5 = branch_zaC99Branch_7;
	*out_zaMirth_4 = branch_zaMirth_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
cmpl $0x4, %edx
ja 0xcb21f
movq %r8, %r13
movq %rsi, %r15
movq %rdi, %r12
movq %r9, -0xb8(%rbp)
movl %edx, %eax
leaq 0x98c8(%rip), %rdx      # 0xd4538
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
leaq -0x58(%rbp), %rbx
leaq -0x78(%rbp), %r14
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0xc981b
movq (%r14), %rax
movq (%rbx), %rcx
jmp 0xcb1ff
movq %r13, -0x38(%rbp)
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x58(%rbp), %rsi
leaq -0x78(%rbp), %rbx
movq %rcx, %rdi
movq %rbx, %rdx
callq 0xa70b2
movq (%rbx), %rbx
movl (%rbx), %edx
movq 0x8(%rbx), %r13
movq %r13, %rsi
andq %r14, %rsi
sete %cl
testb $0x3, %r13b
setne %dil
orb %cl, %dil
jne 0xcace0
addl $0x2, (%rsi)
leaq -0x40(%rbp), %rcx
movq %rcx, 0x8(%rsp)
leaq -0x48(%rbp), %rcx
movq %rcx, (%rsp)
leaq -0x70(%rbp), %r9
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rcx
movq %rax, -0x30(%rbp)
movl %edx, %r12d
movq %rax, %r8
callq 0xa5f3e
leaq -0x40(%rbp), %rax
movq (%rax), %rdi
leaq -0x68(%rbp), %r15
movq %r15, %rsi
callq 0xa9c5b
leaq -0x70(%rbp), %rax
movq (%rax), %rdi
movq (%r15), %rcx
leaq -0x60(%rbp), %r8
movl %r12d, %esi
movq %r13, %rdx
callq 0xa906a
movq %rax, %r15
movq 0x10(%rbx), %r12
movq %r12, %rax
andq %r14, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xcad56
incl (%rax)
movl (%rbx), %esi
movq 0x8(%rbx), %rdx
andq %rdx, %r14
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xcad6f
incl (%r14)
movq -0x60(%rbp), %rdi
leaq -0xa8(%rbp), %r14
movq %r14, %rcx
callq 0x9e05c
movq (%r14), %rdx
movq -0x48(%rbp), %r8
leaq -0x98(%rbp), %r13
movq %r13, (%rsp)
movzbl %al, %ecx
leaq -0xa0(%rbp), %r14
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %r9
callq 0xcdcea
movq (%r14), %rdi
movq (%r13), %rsi
movl -0x58(%rbp), %edx
movq -0x50(%rbp), %rcx
leaq -0x90(%rbp), %r14
leaq -0x88(%rbp), %r15
movq %r14, %r8
movq %r15, %r9
callq 0xcac3a
movq (%r14), %rdi
movq (%r15), %rsi
leaq -0x80(%rbp), %r14
leaq -0xc0(%rbp), %r15
movq -0x30(%rbp), %rdx
movq %rbx, %rcx
movq %r14, %r8
movq %r15, %r9
callq 0xa4b25
jmp 0xcaf44
movq %r13, -0x38(%rbp)
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x58(%rbp), %rsi
leaq -0x78(%rbp), %rbx
movq %rcx, %rdi
movq %rbx, %rdx
callq 0xa7079
movq (%rbx), %rbx
movl (%rbx), %edx
movq 0x8(%rbx), %r13
movq %r13, %rax
andq %r14, %rax
sete %cl
testb $0x3, %r13b
setne %sil
orb %cl, %sil
jne 0xcae3e
addl $0x2, (%rax)
leaq -0x40(%rbp), %rax
movq %rax, (%rsp)
leaq -0x70(%rbp), %r8
leaq -0x48(%rbp), %r9
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rcx
movl %edx, %r12d
callq 0xa68c2
leaq -0x40(%rbp), %rax
movq (%rax), %rdi
leaq -0x68(%rbp), %r15
movq %r15, %rsi
callq 0xa9c5b
leaq -0x70(%rbp), %rax
movq (%rax), %rdi
movq (%r15), %rcx
leaq -0x60(%rbp), %r8
movl %r12d, %esi
movq %r13, %rdx
callq 0xa906a
movq %rax, %r15
movq 0x10(%rbx), %r12
movq %r12, %rax
andq %r14, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xcaea8
incl (%rax)
movl (%rbx), %esi
movq 0x8(%rbx), %rdx
andq %rdx, %r14
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xcaec1
incl (%r14)
movq -0x60(%rbp), %rdi
leaq -0xa8(%rbp), %r14
movq %r14, %rcx
callq 0x9e05c
movq (%r14), %rdx
movq -0x48(%rbp), %r8
leaq -0x98(%rbp), %r13
movq %r13, (%rsp)
movzbl %al, %ecx
leaq -0xa0(%rbp), %r14
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %r9
callq 0xcdcea
movq (%r14), %rdi
movq (%r13), %rsi
movl -0x58(%rbp), %edx
movq -0x50(%rbp), %rcx
leaq -0x90(%rbp), %r14
leaq -0x88(%rbp), %r15
movq %r14, %r8
movq %r15, %r9
callq 0xcac3a
movq (%r14), %rdi
movq (%r15), %rsi
leaq -0x80(%rbp), %r14
leaq -0xc0(%rbp), %r15
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r8
callq 0xa4ab9
movq (%r15), %rax
movq (%r14), %rcx
jmp 0xcb0ac
movq %r13, -0x38(%rbp)
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
leaq -0x58(%rbp), %rsi
leaq -0x78(%rbp), %rbx
movq %rcx, %rdi
movq %rbx, %rdx
callq 0xa70f6
movq (%rbx), %rcx
movl (%rcx), %r14d
movq %rcx, -0x30(%rbp)
movq 0x8(%rcx), %rbx
movq %rbx, %rsi
andq %r13, %rsi
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0xcaf94
addl $0x2, (%rsi)
leaq -0x40(%rbp), %rcx
movq %rcx, 0x8(%rsp)
leaq -0x48(%rbp), %rcx
movq %rcx, (%rsp)
leaq -0x70(%rbp), %r9
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movq %rbx, %rcx
movq %rax, -0xb0(%rbp)
movq %rax, %r8
movq %r9, %r15
callq 0xa5b19
movq (%r15), %rdi
leaq -0x40(%rbp), %rax
movq (%rax), %rcx
leaq -0x68(%rbp), %r8
movl %r14d, %esi
movq %rbx, %rdx
callq 0xa906a
movq %rax, %r15
movq -0x30(%rbp), %rax
movq 0x10(%rax), %r12
movq %r12, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xcb001
incl (%rax)
movq -0x30(%rbp), %rax
movl (%rax), %esi
movq 0x8(%rax), %rdx
andq %rdx, %r13
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xcb01f
incl (%r13)
movq -0x68(%rbp), %rdi
leaq -0x60(%rbp), %rbx
movq %rbx, %rcx
callq 0x9e05c
movq (%rbx), %rdx
movq -0x48(%rbp), %r8
leaq -0xa0(%rbp), %r14
movq %r14, (%rsp)
movzbl %al, %ecx
leaq -0xa8(%rbp), %rbx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %r9
callq 0xcdcea
movq (%rbx), %rdi
movq (%r14), %rsi
movl -0x58(%rbp), %edx
movq -0x50(%rbp), %rcx
leaq -0x98(%rbp), %rbx
leaq -0x90(%rbp), %r14
movq %rbx, %r8
movq %r14, %r9
callq 0xcac3a
movq (%rbx), %rdi
movq (%r14), %rsi
leaq -0x88(%rbp), %rbx
leaq -0x80(%rbp), %r14
movq -0xb0(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq %rbx, %r8
movq %r14, %r9
callq 0xa4a17
movq (%r14), %rax
movq (%rbx), %rcx
movq -0x38(%rbp), %r13
jmp 0xcb1ff
movq %r13, -0x38(%rbp)
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
leaq -0x58(%rbp), %rsi
leaq -0x78(%rbp), %r14
movq %rcx, %rdi
movq %r14, %rdx
callq 0xa7040
movq (%r14), %rax
movl (%rax), %r14d
movq %rax, -0x30(%rbp)
movq 0x8(%rax), %r13
movq %r13, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0xcb0fb
addl $0x2, (%rax)
leaq -0x40(%rbp), %rax
movq %rax, (%rsp)
leaq -0x70(%rbp), %r8
leaq -0x48(%rbp), %r9
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movq %r13, %rcx
movq %r8, %r15
callq 0xa638d
movq (%r15), %rdi
leaq -0x40(%rbp), %rax
movq (%rax), %rcx
leaq -0x68(%rbp), %r8
movl %r14d, %esi
movq %r13, %rdx
callq 0xa906a
movq %rax, %r15
movq -0x30(%rbp), %rax
movq 0x10(%rax), %r12
movq %r12, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xcb159
incl (%rax)
movq -0x30(%rbp), %rax
movl (%rax), %esi
movq 0x8(%rax), %rdx
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
movq -0x38(%rbp), %r13
jne 0xcb179
incl (%rbx)
movq -0x68(%rbp), %rdi
leaq -0x60(%rbp), %r14
movq %r14, %rcx
callq 0x9e05c
movq (%r14), %rdx
movq -0x48(%rbp), %r8
leaq -0xa0(%rbp), %rbx
movq %rbx, (%rsp)
movzbl %al, %ecx
leaq -0xa8(%rbp), %r14
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %r9
callq 0xcdcea
movq (%r14), %rdi
movq (%rbx), %rsi
movl -0x58(%rbp), %edx
movq -0x50(%rbp), %rcx
leaq -0x98(%rbp), %r14
leaq -0x90(%rbp), %r15
movq %r14, %r8
movq %r15, %r9
callq 0xcac3a
movq (%r14), %rdi
movq (%r15), %rsi
leaq -0x88(%rbp), %r14
leaq -0x80(%rbp), %r15
movq -0x30(%rbp), %rdx
movq %r14, %rcx
movq %r15, %r8
callq 0xa49c8
movq (%r15), %rax
movq (%r14), %rcx
movq -0xb8(%rbp), %rdx
movq %rax, (%rdx)
movq %rcx, (%r13)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x95e7(%rip), %rdi      # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6