// File: /workspace/github_c_makefile_star2_O3/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 0xd89b6
incl (%rax)
leaq -0x30(%rbp), %rcx
callq 0xa07cd
testb %al, %al
je 0xd8b46
movq 0x10(%r13), %rsi
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xd89e1
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 0xd8a05
incl (%rax)
movq -0x30(%rbp), %rdi
leaq -0x98(%rbp), %r14
movq %r14, %r8
callq 0xa5fe9
movq %rax, -0x38(%rbp)
movq (%r12), %rsi
movq (%r14), %rdi
leaq -0x70(%rbp), %rdx
leaq -0x68(%rbp), %rcx
callq 0x93675
movq 0x10408f1(%rip), %rdx   # 0x1119328
testq %rdx, %rdx
jne 0xd8a66
movl $0x7, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x7, 0x10(%rax)
movl $0x72636e69, 0x18(%rax) # imm = 0x72636E69
movl $0x28666572, 0x1b(%rax) # imm = 0x28666572
movq %rax, 0x10408c2(%rip)   # 0x1119328
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xd8a7d
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 0x9221b
movq (%r14), %rdi
movq (%r15), %rsi
leaq -0x60(%rbp), %rcx
leaq -0x58(%rbp), %r8
movq -0x38(%rbp), %rdx
callq 0x9221b
movq 0x1040874(%rip), %rdx   # 0x1119330
testq %rdx, %rdx
jne 0xd8ae3
movl $0x2, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x2, 0x10(%rax)
movw $0x3b29, 0x18(%rax)     # imm = 0x3B29
movq %rax, 0x104084d(%rip)   # 0x1119330
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xd8af5
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 0x9221b
movq (%rbx), %r15
movq (%r14), %r14
cmpb $0x1, 0x18(%r14)
jne 0xd8b3c
movq 0x28(%r14), %rsi
leaq -0xa0(%rbp), %rbx
movl $0xa, %edi
movq %rbx, %rdx
callq 0x92a13
movq (%rbx), %rax
movq %rax, 0x28(%r14)
movq %r14, (%r12)
movq -0x40(%rbp), %r14
jmp 0xd8b4a
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