// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_data_Tag_patzec99zeapi
static struct mirth_c99_C99API* mw_mirth_data_Tag_patzec99zeapi (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99* in_zaC99_2, uint64_t in_Tag_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99* *out_zaC99_5) {
	void* v7 = field_mut(&mfld_mirth_data_Tag_ztpatzec99zeapi, in_Tag_3);
	bool v8 = mut_is_set(v7);
	struct mirth_c99_zaC99* branch_zaC99_9;
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	uint64_t branch_Tag_11;
	struct mirth_c99_C99API* branch_C99API_12;
	if (v8) {
		VAL v13 = mut_get(v7);
		branch_C99API_12 = V_mirth_c99_C99API(v13);
		branch_Tag_11 = in_Tag_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_data_Tag_patzecnamezetype(in_zaMirth_1, in_Tag_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_Tag_11 = in_Tag_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, -0x58(%rbp)
movq %rcx, %r15
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x106edfe(%rip), %rdi   # 0x111bf38
movq %rdx, %rsi
callq 0x13ff0
movq %rax, %r14
movq %rax, %rdi
callq 0x153b0
testb %al, %al
je 0xad161
movq %r14, %rdi
callq 0x140f0
movq %rax, %r14
jmp 0xad318
movq %r12, -0x38(%rbp)
leaq 0x106eddc(%rip), %rdi   # 0x111bf48
movq %r13, %rsi
callq 0x13ff0
movq %rax, %r12
movq %rax, %rdi
callq 0x153b0
testb %al, %al
movq %r15, -0x50(%rbp)
movq %r14, -0x48(%rbp)
je 0xad1aa
movq %r12, %rdi
callq 0x140f0
movq %rax, %rdi
movq %rdx, %rsi
callq 0x942c
movq %rax, %r14
movq -0x38(%rbp), %r12
jmp 0xad2a6
movq %r12, -0x40(%rbp)
cmpq $0x0, 0x106eda2(%rip)   # 0x111bf58
jne 0xad1ce
xorl %edi, %edi
callq 0xf9f7
movq $0x0, 0x10(%rax)
movq %rax, 0x106ed8a(%rip)   # 0x111bf58
movq 0x106ed83(%rip), %r14   # 0x111bf58
movq %r14, %rax
movabsq $0xfffffffffffc, %rdi   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
movq -0x38(%rbp), %r12
jne 0xad1f9
incl (%rax)
cmpq $0x0, 0x106ed5f(%rip)   # 0x111bf60
jne 0xad22d
movl $0x4, %edi
callq 0xf9f7
movabsq $0xfffffffffffc, %rdi   # imm = 0xFFFFFFFFFFFC
movq $0x4, 0x10(%rax)
movl $0x5f70746d, 0x18(%rax) # imm = 0x5F70746D
movq %rax, 0x106ed33(%rip)   # 0x111bf60
movq 0x106ed2c(%rip), %rsi   # 0x111bf60
movq %rsi, %rax
andq %rdi, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xad24a
incl (%rax)
movq %r14, %rdi
callq 0xe43c
movq %rax, %r14
leaq -0x30(%rbp), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x9e2ec
movq %r14, %rdi
movq %rax, %rsi
callq 0xe43c
movq %rax, %r14
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0xad28f
incl (%rax)
movq %r14, %rdi
leaq 0x67ec0(%rip), %rsi     # 0x115159
movq -0x40(%rbp), %rdx
callq 0x14ab5
movq -0x30(%rbp), %rbx
leaq -0x30(%rbp), %r15
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x5117e
movq %rax, %rdi
callq 0x77e7a
movq (%r15), %rdi
leaq -0x30(%rbp), %r8
leaq -0x60(%rbp), %r9
movq %r12, %rsi
movq %r14, %rdx
movq %rax, %rcx
callq 0xad972
movq %rax, %r14
leaq 0x69d1e(%rip), %rsi     # 0x117001
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rdx
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0xad300
incl (%rdx)
movq %r14, %rdi
movq -0x48(%rbp), %rdx
callq 0x14ab5
movq -0x30(%rbp), %rbx
movq -0x60(%rbp), %r12
movq -0x50(%rbp), %r15
movq -0x58(%rbp), %rax
movq %r12, (%rax)
movq %rbx, (%r15)
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq