// File: /workspace/github_c_makefile_star2_O2/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, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x105efed(%rip), %rdi   # 0x110f1b8
callq 0x12f88
movq %rax, %r12
movq %rax, %rdi
callq 0x142de
testb %al, %al
je 0xb01fa
movq %r12, %rdi
callq 0x1307d
movq %rax, %r12
movq %rax, %rdi
movq %rdx, %rsi
callq 0xff62
jmp 0xb035b
movq %r12, -0x30(%rbp)
leaq -0x40(%rbp), %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x5075b
movq (%r12), %r14
testl %eax, %eax
movq %r15, -0x38(%rbp)
je 0xb0265
cmpl $0x1, %eax
jne 0xb0370
movq %rdx, %rdi
callq 0xb018d
movq %rax, %r13
leaq 0x105ef91(%rip), %rdi   # 0x110f1c8
movq %rax, %rsi
callq 0x12f88
cmpq $0x0, 0x8(%rax)
je 0xb02d2
movq %rax, %rdi
callq 0x1307d
movq %rax, %r12
movq %rax, %rdi
movq %rdx, %rsi
callq 0xff62
jmp 0xb02e8
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0xb0387
movq 0x50(%r14), %r12
movq %r12, %r15
andq %rbx, %r15
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0xb0293
addl $0x2, (%r15)
leaq 0x5818f(%rip), %r13     # 0x108429
pushq $0x3
popq %rsi
movq %r12, %rdi
callq 0xdd03
movq 0x50(%r14), %rdi
andq %rdi, %rbx
sete %dl
testb $0x3, %dil
setne %cl
orb %dl, %cl
jne 0xb02cc
decl (%rbx)
jne 0xb02cc
movq %r13, %rsi
movq %rax, %rbx
callq 0xce94
movq %rbx, %rax
movq %rax, 0x50(%r14)
jmp 0xb0338
leaq 0x58150(%rip), %rsi     # 0x108429
pushq $0x1
popq %r12
movq %r12, %rdi
movq %rax, %rdx
callq 0x1393b
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
andq %r12, %r15
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0xb0306
incl (%r15)
pushq $0x3
popq %rsi
movq %r12, %rdi
callq 0xdd03
movq %rax, %rbx
leaq 0x105eead(%rip), %rdi   # 0x110f1c8
movq %r13, %rsi
callq 0x12f88
leaq 0x580ff(%rip), %r13     # 0x108429
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x1393b
testq %r15, %r15
je 0xb0348
movl %r12d, %eax
andl $0x3, %eax
jne 0xb0348
incl (%r15)
movq %r12, %rdi
movq %r13, %rsi
movq -0x30(%rbp), %rdx
callq 0x1393b
movq -0x38(%rbp), %r15
movq %r14, (%r15)
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x24496(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6