// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Value_keepzevaluezx
static void mw_mirth_c99_zaC99Value_keepzevaluezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_c99_zaC99Value* in_zaC99Value_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5, struct mirth_c99_zaC99Value* *out_zaC99Value_6) {
	struct mirth_c99_C99ReprType v7 = in_zaC99Value_3->mvaluezerepr;
	incref(MK_mirth_c99_C99ReprType(v7));
	struct mirth_mirth_zaMirth* v8;
	bool v9 = mw_mirth_c99_C99ReprType_needszerefcountingzy(in_zaMirth_1, v7, &v8);
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_10;
	struct mirth_c99_zaC99Value* branch_zaC99Value_11;
	struct mirth_mirth_zaMirth* branch_zaMirth_12;
	if (v9) {
		STR* v13 = in_zaC99Value_3->mvaluezename;
		incref(MKSTR(v13));
		struct mirth_c99_C99ReprType v14 = in_zaC99Value_3->mvaluezerepr;
		incref(MK_mirth_c99_C99ReprType(v14));
		struct mirth_mirth_zaMirth* v15;
		STR* v16 = mw_mirth_c99_C99ReprType_mkzemacro(v8, v13, v14, &v15);
		struct mirth_c99_zaC99* r17 = in_zaC99Branch_2->mzac99;
		struct mirth_mirth_zaMirth* v18;
		struct mirth_c99_zaC99* v19;
		mw_mirth_c99_zaC99_indent(v15, r17, &v18, &v19);
		STR* v20;
		STRLIT(v20, "incref(", 7);
		struct mirth_mirth_zaMirth* v21;
		struct mirth_c99_zaC99* v22;
		mw_mirth_c99_zaC99_put(v18, v19, v20, &v21, &v22);
		struct mirth_mirth_zaMirth* v23;
		struct mirth_c99_zaC99* v24;
		mw_mirth_c99_zaC99_put(v21, v22, v16, &v23, &v24);
		STR* v25;
		STRLIT(v25, ");", 2);
		struct mirth_mirth_zaMirth* v26;
		struct mirth_c99_zaC99* v27;
		mw_mirth_c99_zaC99_put(v23, v24, v25, &v26, &v27);
		struct mirth_mirth_zaMirth* v28;
		struct mirth_c99_zaC99* v29;
		mw_mirth_c99_zaC99_line(v26, v27, &v28, &v29);
		in_zaC99Branch_2->mzac99 = v29;
		branch_zaMirth_12 = v28;
		branch_zaC99Value_11 = in_zaC99Value_3;
		branch_zaC99Branch_10 = in_zaC99Branch_2;
	} else {
		branch_zaMirth_12 = v8;
		branch_zaC99Value_11 = in_zaC99Value_3;
		branch_zaC99Branch_10 = in_zaC99Branch_2;
	}
	*out_zaC99Value_6 = branch_zaC99Value_11;
	*out_zaC99Branch_5 = branch_zaC99Branch_10;
	*out_zaMirth_4 = branch_zaMirth_12;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, -0x48(%rbp)
movq %r8, -0x50(%rbp)
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %r12
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movl (%rdx), %esi
movq 0x8(%rdx), %rdx
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %r8b
orb %cl, %r8b
jne 0xdd0f8
incl (%rax)
leaq -0x30(%rbp), %rcx
callq 0xa325e
testb %al, %al
je 0xdd28c
movq 0x10(%r13), %rsi
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xdd123
incl (%rax)
movq %r14, -0x40(%rbp)
movl (%r13), %edx
movq 0x8(%r13), %rcx
movq %rcx, %rax
andq %rbx, %rax
sete %dil
testb $0x3, %cl
setne %r8b
orb %dil, %r8b
jne 0xdd147
incl (%rax)
movq -0x30(%rbp), %rdi
leaq -0x98(%rbp), %r14
movq %r14, %r8
callq 0xa8c22
movq %rax, -0x38(%rbp)
movq (%r12), %rsi
movq (%r14), %rdi
leaq -0x70(%rbp), %rdx
leaq -0x68(%rbp), %rcx
callq 0x95d84
cmpq $0x0, 0x10401ae(%rip)   # 0x111d328
jne 0xdd1a3
movl $0x7, %edi
callq 0xf9f7
movq $0x7, 0x10(%rax)
movl $0x72636e69, 0x18(%rax) # imm = 0x72636E69
movl $0x28666572, 0x1b(%rax) # imm = 0x28666572
movq %rax, 0x1040185(%rip)   # 0x111d328
movq 0x104017e(%rip), %rdx   # 0x111d328
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xdd1c1
incl (%rax)
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %r14
leaq -0x88(%rbp), %r15
movq %r14, %rcx
movq %r15, %r8
callq 0x94972
movq (%r14), %rdi
movq (%r15), %rsi
leaq -0x60(%rbp), %rcx
leaq -0x58(%rbp), %r8
movq -0x38(%rbp), %rdx
callq 0x94972
cmpq $0x0, 0x104012f(%rip)   # 0x111d330
jne 0xdd222
movl $0x2, %edi
callq 0xf9f7
movq $0x2, 0x10(%rax)
movw $0x3b29, 0x18(%rax)     # imm = 0x3B29
movq %rax, 0x104010e(%rip)   # 0x111d330
movq 0x1040107(%rip), %rdx   # 0x111d330
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xdd23b
incl (%rbx)
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
leaq -0x80(%rbp), %rbx
leaq -0x78(%rbp), %r14
movq %rbx, %rcx
movq %r14, %r8
callq 0x94972
movq (%rbx), %r15
movq (%r14), %r14
cmpb $0x1, 0x18(%r14)
jne 0xdd282
movq 0x28(%r14), %rsi
leaq -0xa0(%rbp), %rbx
movl $0xa, %edi
movq %rbx, %rdx
callq 0x95160
movq (%rbx), %rax
movq %rax, 0x28(%r14)
movq %r14, (%r12)
movq -0x40(%rbp), %r14
jmp 0xdd290
movq -0x30(%rbp), %r15
movq -0x48(%rbp), %rax
movq %r13, (%rax)
movq -0x50(%rbp), %rax
movq %r12, (%rax)
movq %r15, (%r14)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq