// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_word_Word_c99zeapi
static struct mirth_c99_C99API* mw_mirth_word_Word_c99zeapi (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99* in_zaC99_2, uint64_t in_Word_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99* *out_zaC99_5) {
	void* v7 = field_mut(&mfld_mirth_word_Word_ztc99zeapi, in_Word_3);
	bool v8 = mut_is_set(v7);
	struct mirth_c99_zaC99* branch_zaC99_9;
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	uint64_t branch_Word_11;
	struct mirth_c99_C99API* branch_C99API_12;
	if (v8) {
		VAL v13 = mut_get(v7);
		branch_C99API_12 = V_mirth_c99_C99API(v13);
		branch_Word_11 = in_Word_3;
		branch_zaMirth_10 = in_zaMirth_1;
		branch_zaC99_9 = in_zaC99_2;
	} else {
		struct mirth_mirth_zaMirth* v14;
		struct mirth_type_ArrowType* v15;
		STR* v16 = mw_mirth_word_Word_cnamezetype(in_zaMirth_1, in_Word_3, &v14, &v15);
		struct mirth_mirth_zaMirth* v17;
		struct mirth_c99_zaC99* v18;
		struct mirth_c99_C99API* v19 = mw_mirth_c99_zaC99_cnamezetypezetozec99zeapi(v14, in_zaC99_2, v16, v15, &v17, &v18);
		incref(MK_mirth_c99_C99API(v19));
		mut_set(MK_mirth_c99_C99API(v19), v7);
		branch_C99API_12 = v19;
		branch_Word_11 = in_Word_3;
		branch_zaMirth_10 = v17;
		branch_zaC99_9 = v18;
	}
	*out_zaC99_5 = branch_zaC99_9;
	*out_zaMirth_4 = branch_zaMirth_10;
	return branch_C99API_12;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, -0x50(%rbp)
movq %rcx, %r15
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %r14
leaq 0x105ee62(%rip), %rdi   # 0x111c128
movq %rdx, %rsi
callq 0x13ff0
movq %rax, %rbx
movq %rax, %rdi
callq 0x153b0
testb %al, %al
je 0xbd2ed
movq %rbx, %rdi
callq 0x140f0
movq %rax, %rbx
jmp 0xbd4b1
movq %rbx, -0x40(%rbp)
leaq 0x105ee40(%rip), %rdi   # 0x111c138
movq %r13, %rsi
callq 0x13ff0
movq %rax, %rbx
movq %rax, %rdi
callq 0x153b0
testb %al, %al
movq %r15, -0x48(%rbp)
je 0xbd32e
movq %rbx, %rdi
callq 0x140f0
movq %rax, %rdi
movq %rdx, %rsi
callq 0x942c
movq %rax, %rbx
jmp 0xbd448
movq %rbx, -0x38(%rbp)
leaq 0x105b887(%rip), %rdi   # 0x1118bc0
movq %r13, %rsi
callq 0x13ff0
leaq -0x30(%rbp), %rbx
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x1a972
movq (%rbx), %rdi
leaq -0x30(%rbp), %rdx
movq %rax, %rsi
callq 0x96562
movq %rax, %r14
cmpq $0x0, 0x105eddb(%rip)   # 0x111c148
jne 0xbd385
xorl %edi, %edi
callq 0xf9f7
movq $0x0, 0x10(%rax)
movq %rax, 0x105edc3(%rip)   # 0x111c148
movq 0x105edbc(%rip), %rbx   # 0x111c148
movq %rbx, %rax
movabsq $0xfffffffffffc, %rdi   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0xbd3ab
incl (%rax)
cmpq $0x0, 0x105ed9d(%rip)   # 0x111c150
jne 0xbd3e2
movl $0x3, %edi
callq 0xf9f7
movabsq $0xfffffffffffc, %rdi   # imm = 0xFFFFFFFFFFFC
movq $0x3, 0x10(%rax)
movw $0x776d, 0x18(%rax)     # imm = 0x776D
movb $0x5f, 0x1a(%rax)
movq %rax, 0x105ed6e(%rip)   # 0x111c150
movq 0x105ed67(%rip), %rsi   # 0x111c150
movq %rsi, %rax
andq %rdi, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xbd3ff
incl (%rax)
movq %rbx, %rdi
callq 0xe43c
movq %rax, %rdi
movq %r14, %rsi
callq 0xe43c
movq %rax, %rbx
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0xbd431
incl (%rax)
movq %rbx, %rdi
leaq 0x57d1e(%rip), %rsi     # 0x115159
movq -0x38(%rbp), %rdx
callq 0x14ab5
movq -0x30(%rbp), %r14
leaq -0x30(%rbp), %r15
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x43709
movq (%r15), %rdi
leaq -0x30(%rbp), %r8
leaq -0x58(%rbp), %r9
movq %r12, %rsi
movq %rbx, %rdx
movq %rax, %rcx
callq 0xad972
movq %rax, %rbx
leaq 0x59b84(%rip), %rsi     # 0x117001
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rdx
sete %al
testb $0x3, %bl
setne %cl
orb %al, %cl
jne 0xbd499
incl (%rdx)
movq %rbx, %rdi
movq -0x40(%rbp), %rdx
callq 0x14ab5
movq -0x30(%rbp), %r14
movq -0x58(%rbp), %r12
movq -0x48(%rbp), %r15
movq -0x50(%rbp), %rax
movq %r12, (%rax)
movq %r14, (%r15)
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq