// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_mirth_zaMirth_parsezeowner
static uint64_t mw_mirth_mirth_zaMirth_parsezeowner (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, struct std_maybe_Maybe_1 *out_Maybe_5) {
	struct mirth_mirth_zaMirth* v6;
	struct std_maybe_Maybe_1 v7 = mw_mirth_token_Token_namezfdnamezy(in_zaMirth_1, in_Token_2, &v6);
	int64_t v8 = (v7).tag;
	decref(MK_std_maybe_Maybe_1(v7));
	INT v9 = WRAP_I63(0LL);
	INT v10 = v9;
	INT v11 = i64_to_int(v8);
	bool v12 = int_eq(v11, v10);
	bool v13 = !v12;
	uint64_t branch_Token_14;
	struct mirth_mirth_zaMirth* branch_zaMirth_15;
	bool branch_Bool_16;
	if (v13) {
		struct mirth_mirth_zaMirth* v17;
		uint64_t v18 = mw_mirth_token_Token_next(v6, in_Token_2, &v17);
		struct mirth_mirth_zaMirth* v19;
		bool v20 = mw_mirth_token_Token_vdashzy(v17, v18, &v19);
		branch_Bool_16 = v20;
		branch_zaMirth_15 = v19;
		branch_Token_14 = in_Token_2;
	} else {
		bool v21 = false;
		branch_Bool_16 = v21;
		branch_zaMirth_15 = v6;
		branch_Token_14 = in_Token_2;
	}
	struct mirth_mirth_zaMirth* branch_zaMirth_22;
	uint64_t branch_Token_23;
	struct std_maybe_Maybe_1 branch_Maybe_24;
	if (branch_Bool_16) {
		struct mirth_mirth_zaMirth* v25;
		uint64_t v26 = mw_mirth_token_Token_next(branch_zaMirth_15, branch_Token_14, &v25);
		struct mirth_mirth_zaMirth* v27;
		uint64_t v28 = mw_mirth_token_Token_succ(v25, v26, &v27);
		struct std_maybe_Maybe_1 v29 = mtw_std_maybe_Maybe_1_Some(MK_mirth_token_Token(branch_Token_14));
		branch_Maybe_24 = v29;
		branch_Token_23 = v28;
		branch_zaMirth_22 = v27;
	} else {
		struct std_maybe_Maybe_1 v30 = { .tag=std_maybe_Maybe_1_None };
		branch_Maybe_24 = v30;
		branch_Token_23 = branch_Token_14;
		branch_zaMirth_22 = branch_zaMirth_15;
	}
	*out_Maybe_5 = branch_Maybe_24;
	*out_zaMirth_3 = branch_zaMirth_22;
	return branch_Token_23;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r15
leaq -0x30(%rbp), %rdx
callq 0x24b09
movl %eax, %r12d
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x60bbe
decl (%rax)
jne 0x60bbe
movq %r12, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xa7708(%rip), %rsi     # 0x1082c1
callq 0xce94
movq %r12, %rdi
callq 0xd86d
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0xd759
testb %al, %al
je 0x60bdd
xorl %eax, %eax
movq -0x30(%rbp), %r12
jmp 0x60c4c
movq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %r12
movq %r15, %rsi
movq %r12, %rdx
callq 0x2598b
movq (%r12), %rdi
leaq -0x40(%rbp), %r12
movq %rax, %rsi
movq %r12, %rdx
callq 0x321eb
movq (%r12), %r12
testb %al, %al
je 0x60c4a
leaq -0x38(%rbp), %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x2598b
movq (%r13), %r12
xorl %r13d, %r13d
cmpq %rax, 0x10ab7cd(%rip)   # 0x110c3f8
leaq 0x1(%rax), %rax
cmovaq %rax, %r13
leaq 0xa817e(%rip), %rsi     # 0x108db8
movq %r15, %rdi
callq 0x8d0c
pushq $0x1
popq %rax
movq %r13, %r15
jmp 0x60c4e
xorl %eax, %eax
xorl %edx, %edx
movl %eax, (%r14)
andl $0x0, 0x4(%r14)
movq %rdx, 0x8(%r14)
movq %r12, (%rbx)
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq