// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_arrow_Block_homezeindex
static INT mw_mirth_arrow_Block_homezeindex (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Block_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	void* v5 = field_mut(&mfld_mirth_arrow_Block_homezeindex, in_Block_2);
	bool v6 = mut_is_set(v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	INT branch_Int_8;
	if (v6) {
		VAL v9 = mut_get(v5);
		branch_Int_8 = value_int(v9);
		branch_zaMirth_7 = in_zaMirth_1;
	} else {
		struct mirth_mirth_zaMirth* v10;
		struct mirth_arrow_Home v11 = mw_mirth_arrow_Block_home(in_zaMirth_1, in_Block_2, &v10);
		struct mirth_mirth_zaMirth* v12;
		INT v13 = mw_mirth_arrow_Home_incrementzeindexzx(v10, v11, &v12);
		incref(MKINT(v13));
		mut_set(MKINT(v13), v5);
		branch_Int_8 = v13;
		branch_zaMirth_7 = v12;
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Int_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x105db85(%rip), %rdi   # 0x11181b0
callq 0x13c85
movq %rax, %r12
movq %rax, %rdi
callq 0x1505d
testb %al, %al
je 0xba65a
movq %r12, %rdi
callq 0x13d82
movq %rax, %r12
movq %rax, %rdi
movq %rdx, %rsi
callq 0x1099d
jmp 0xba7f0
movq %r15, -0x30(%rbp)
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
leaq 0x105b419(%rip), %rdi   # 0x1115a88
movq %rbx, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %rcx
shrq $0x30, %rcx
andq %r15, %rax
testq %rcx, %rcx
movq %r14, -0x40(%rbp)
movq %r12, -0x38(%rbp)
je 0xba6fe
cmpl $0x1, %ecx
jne 0xba805
movq 0x8(%rax), %r13
decl (%rax)
jne 0xba6af
movq %rax, %rdi
callq 0x5030
leaq 0x105db0a(%rip), %rdi   # 0x11181c0
movq %r13, %rsi
callq 0x13c85
cmpq $0x0, 0x8(%rax)
je 0xba771
movq %rax, %rdi
callq 0x13d82
movq %rax, %r12
movq %rax, %rdi
movq %rdx, %rsi
callq 0x1099d
movq %r12, %rax
andq %r15, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xba78b
incl (%rax)
jmp 0xba78b
decl (%rax)
jne 0xba70a
movq %rax, %rdi
callq 0x5030
movq -0x30(%rbp), %rax
movq 0x50(%rax), %r12
movq %r12, %r14
andq %r15, %r14
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0xba72a
addl $0x2, (%r14)
leaq 0x56cf8(%rip), %r13     # 0x111429
movl $0x3, %esi
movq %r12, %rdi
callq 0xe50f
movq %rax, %rbx
movq -0x30(%rbp), %rax
movq 0x50(%rax), %rdi
andq %rdi, %r15
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0xba767
decl (%r15)
jne 0xba767
movq %r13, %rsi
callq 0xd13d
movq -0x30(%rbp), %r15
movq %rbx, 0x50(%r15)
jmp 0xba7c9
leaq 0x56cb1(%rip), %rsi     # 0x111429
movl $0x1, %r12d
movl $0x1, %edi
movq %rax, %rdx
callq 0x14766
movl $0x3, %esi
movq %r12, %rdi
callq 0xe50f
movq %rax, %rbx
leaq 0x105da1e(%rip), %rdi   # 0x11181c0
movq %r13, %rsi
callq 0x13c85
leaq 0x56c78(%rip), %r13     # 0x111429
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x14766
andq %r12, %r15
movq %r15, %r14
movq -0x30(%rbp), %r15
testq %r14, %r14
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0xba7dd
incl (%r14)
movq %r12, %rdi
movq %r13, %rsi
movq -0x38(%rbp), %rdx
callq 0x14766
movq -0x40(%rbp), %r14
movq %r15, (%r14)
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x25eaf(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x25eb4(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302