// File: /workspace/github_c_makefile_star2_O1/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, %r13
movq %rsi, %r12
movq %rdi, %r14
leaq 0x105e849(%rip), %rdi   # 0x111c1b0
callq 0x13ff0
movq %rax, %r15
movq %rax, %rdi
callq 0x153b0
testb %al, %al
je 0xbd996
movq %r15, %rdi
callq 0x140f0
movq %rax, %r12
movq %rax, %rdi
movq %rdx, %rsi
callq 0x10db8
jmp 0xbdb0d
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
leaq 0x105c0e1(%rip), %rdi   # 0x1119a88
movq %r12, %rsi
callq 0x13ff0
movq %rax, %rdi
callq 0x140f0
movq %rax, %rcx
shrq $0x30, %rcx
andq %rbx, %rax
testq %rcx, %rcx
movq %r13, -0x38(%rbp)
je 0xbda1d
cmpl $0x1, %ecx
jne 0xbdb23
movq 0x8(%rax), %r12
decl (%rax)
jne 0xbd9e3
movq %rax, %rdi
callq 0x5030
leaq 0x105e7d6(%rip), %rdi   # 0x111c1c0
movq %r12, -0x30(%rbp)
movq %r12, %rsi
callq 0x13ff0
movq %rax, %r13
movq %rax, %rdi
callq 0x153b0
testb %al, %al
je 0xbda82
movq %r13, %rdi
callq 0x140f0
movq %rax, %r12
movq %rax, %rdi
movq %rdx, %rsi
callq 0x10db8
jmp 0xbda9c
decl (%rax)
jne 0xbda29
movq %rax, %rdi
callq 0x5030
movq 0x50(%r14), %r12
movq %r12, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xbda44
addl $0x2, (%rax)
movl $0x3, %esi
movq %r12, %rdi
callq 0xe8e2
movq %rax, %r13
movq 0x50(%r14), %rdi
movq %rdi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0xbda7c
decl (%rax)
jne 0xbda7c
leaq 0x579b2(%rip), %rsi     # 0x115429
callq 0xd4e3
movq %r13, 0x50(%r14)
jmp 0xbdae4
leaq 0x579a0(%rip), %rsi     # 0x115429
movl $0x1, %r12d
movl $0x1, %edi
movq %r13, %rdx
callq 0x14ab5
movq %r12, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xbdab2
incl (%rax)
movl $0x3, %esi
movq %r12, %rdi
callq 0xe8e2
movq %rax, %r13
leaq 0x105e6f7(%rip), %rdi   # 0x111c1c0
movq -0x30(%rbp), %rsi
callq 0x13ff0
leaq 0x57950(%rip), %rsi     # 0x115429
movq %r13, %rdi
movq %rax, %rdx
callq 0x14ab5
leaq 0x5793e(%rip), %rsi     # 0x115429
andq %r12, %rbx
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
movq -0x38(%rbp), %r13
jne 0xbdb02
incl (%rbx)
movq %r12, %rdi
movq %r15, %rdx
callq 0x14ab5
movq %r14, (%r13)
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x26c11(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x26c16(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5