// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_external_parsezeexternalzedecl
static uint64_t mw_mirth_external_parsezeexternalzedecl (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, struct std_list_List_1 *out_List_5, struct std_maybe_Maybe_1 *out_Maybe_6) {
	struct mirth_mirth_zaMirth* v7;
	struct std_maybe_Maybe_1 v8 = mw_mirth_token_Token_doc(in_zaMirth_1, in_Token_2, &v7);
	struct mirth_mirth_zaMirth* v9;
	uint64_t v10 = mw_mirth_token_Token_succ(v7, in_Token_2, &v9);
	struct mirth_mirth_zaMirth* v11;
	INT v12 = mw_mirth_token_Token_numzeargs(v9, v10, &v11);
	INT v13 = WRAP_I63(0LL);
	INT v14 = v12;
	INT v15 = v13;
	bool v16 = int_lt(v15, v14);
	struct mirth_mirth_zaMirth* branch_zaMirth_17;
	uint64_t branch_Token_18;
	bool branch_Bool_19;
	if (v16) {
		bool v20 = true;
		branch_Bool_19 = v20;
		branch_Token_18 = v10;
		branch_zaMirth_17 = v11;
	} else {
		struct mirth_mirth_zaMirth* v21;
		struct std_maybe_Maybe_1 v22 = mw_mirth_token_Token_lcurlyzy(v11, v10, &v21);
		int64_t v23 = (v22).tag;
		decref(MK_std_maybe_Maybe_1(v22));
		INT v24 = WRAP_I63(0LL);
		INT v25 = v24;
		INT v26 = i64_to_int(v23);
		bool v27 = int_eq(v26, v25);
		bool v28 = !v27;
		branch_Bool_19 = v28;
		branch_Token_18 = v10;
		branch_zaMirth_17 = v21;
	}
	struct std_maybe_Maybe_1 branch_Maybe_29;
	uint64_t branch_Token_30;
	struct mirth_mirth_zaMirth* branch_zaMirth_31;
	struct std_list_List_1 branch_List_32;
	if (branch_Bool_19) {
		struct std_list_List_1 v33 = { .tag=std_list_List_1_Nil };
		struct std_list_List_1 v34;
		mw_std_list_List_1_buildzx(v33, &v34);
		struct mirth_mirth_zaMirth* v35;
		uint64_t v36 = mw_mirth_token_Token_succ(branch_zaMirth_17, branch_Token_18, &v35);
		struct mirth_mirth_zaMirth* v37;
		bool v38 = mw_mirth_token_Token_argszeendzy(v35, v36, &v37);
		bool v39 = !v38;
		struct std_list_List_1 r40 = v34;
		uint64_t v41 = v36;
		struct mirth_mirth_zaMirth* r42 = v37;
		bool v43 = v39;
		while (v43) {
			struct std_list_List_1 r44 = r40;
			uint64_t v45 = v41;
			struct mirth_mirth_zaMirth* r46 = r42;
			struct mirth_mirth_zaMirth* v47;
			struct mirth_external_ExternalDeclPart v48;
			uint64_t v49 = mw_mirth_external_parsezeexternalzedeclzepart(r46, v45, &v47, &v48);
			struct std_list_List_1 v50;
			mw_std_list_zaLister_1_pushzx(MK_mirth_external_ExternalDeclPart(v48), r44, &v50);
			struct mirth_mirth_zaMirth* v51;
			bool v52 = mw_mirth_token_Token_argszeendzy(v47, v49, &v51);
			bool v53 = !v52;
			v43 = v53;
			r42 = v51;
			v41 = v49;
			r40 = v50;
		}
		struct mirth_mirth_zaMirth* v54;
		uint64_t v55 = mw_mirth_token_Token_succ(r42, v41, &v54);
		struct std_list_List_1 v56 = mw_std_list_zaLister_1_donezx(r40);
		branch_List_32 = v56;
		branch_zaMirth_31 = v54;
		branch_Token_30 = v55;
		branch_Maybe_29 = v8;
	} else {
		struct mirth_mirth_zaMirth* v57;
		struct mirth_external_ExternalDeclPart v58;
		uint64_t v59 = mw_mirth_external_parsezeexternalzedeclzeword(branch_zaMirth_17, branch_Token_18, v8, &v57, &v58);
		struct std_list_List_1 v60 = { .tag=std_list_List_1_Nil };
		struct std_list_List_1 v61 = mw_std_list_List_1_cons(MK_mirth_external_ExternalDeclPart(v58), v60);
		struct std_maybe_Maybe_1 v62 = { .tag=std_maybe_Maybe_1_None };
		branch_List_32 = v61;
		branch_zaMirth_31 = v57;
		branch_Token_30 = v59;
		branch_Maybe_29 = v62;
	}
	*out_Maybe_6 = branch_Maybe_29;
	*out_List_5 = branch_List_32;
	*out_zaMirth_3 = branch_zaMirth_31;
	return branch_Token_30;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2b0, %rsp            # imm = 0x2B0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0xa3eb0
movl %eax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0x78490
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x78f50
movq %rax, -0x60(%rbp)
movq 0x20e0f8(%rip), %rax    # 0x36ea50
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0xae20
andb $0x1, %al
movb %al, -0x79(%rbp)
testb $0x1, -0x79(%rbp)
je 0x1609b4
movb $0x1, -0x92(%rbp)
movb -0x92(%rbp), %al
andb $0x1, %al
movb %al, -0x91(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x88(%rbp)
jmp 0x160b78
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x9e8d0
movl %eax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movl -0xb0(%rbp), %eax
movq %rax, -0xb8(%rbp)
movl -0xb0(%rbp), %edi
movq -0xa8(%rbp), %rsi
callq 0x133a0
movq %rax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x160af5
movl -0xb0(%rbp), %edi
movq -0xa8(%rbp), %rsi
callq 0x133a0
movq %rax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd8(%rbp), %rax
cmpq $0x0, %rax
je 0x160af5
movl -0xb0(%rbp), %edi
movq -0xa8(%rbp), %rsi
callq 0x133a0
movq %rax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movq -0xe8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x160af5
movl -0xb0(%rbp), %edi
movq -0xa8(%rbp), %rsi
callq 0x133a0
movq %rax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xf8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x160af3
movl -0xb0(%rbp), %edi
movq -0xa8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0x127c0
jmp 0x160af5
jmp 0x160af7
movq 0x20df52(%rip), %rax    # 0x36ea50
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0xb8(%rbp), %rdi
callq 0x1a290
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rsi
callq 0x194b0
andb $0x1, %al
movb %al, -0x121(%rbp)
movb -0x121(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x122(%rbp)
movb -0x122(%rbp), %al
andb $0x1, %al
movb %al, -0x91(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x88(%rbp)
testb $0x1, -0x91(%rbp)
je 0x160e0e
leaq -0x168(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movl -0x168(%rbp), %edi
movq -0x160(%rbp), %rsi
leaq -0x178(%rbp), %rdx
callq 0xc9d0
movq -0x88(%rbp), %rdi
movq -0x90(%rbp), %rsi
leaq -0x180(%rbp), %rdx
callq 0x78490
movq %rax, -0x188(%rbp)
movq -0x180(%rbp), %rdi
movq -0x188(%rbp), %rsi
leaq -0x190(%rbp), %rdx
callq 0x79430
andb $0x1, %al
movb %al, -0x191(%rbp)
movb -0x191(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x192(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movb -0x192(%rbp), %al
andb $0x1, %al
movb %al, -0x1b9(%rbp)
testb $0x1, -0x1b9(%rbp)
je 0x160d7b
movq -0x1a8(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x1b8(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0x1e0(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
leaq -0x1e8(%rbp), %rdx
leaq -0x1f8(%rbp), %rcx
callq 0x161230
movq %rax, -0x200(%rbp)
movl -0x1f8(%rbp), %edi
movq -0x1f0(%rbp), %rsi
callq 0x161450
movq %rax, -0x220(%rbp)
movq %rdx, -0x218(%rbp)
movq -0x220(%rbp), %rdi
movq -0x218(%rbp), %rsi
movl -0x1d0(%rbp), %edx
movq -0x1c8(%rbp), %rcx
leaq -0x210(%rbp), %r8
callq 0xcc30
movq -0x1e8(%rbp), %rdi
movq -0x200(%rbp), %rsi
leaq -0x228(%rbp), %rdx
callq 0x79430
andb $0x1, %al
movb %al, -0x229(%rbp)
movb -0x229(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x22a(%rbp)
movb -0x22a(%rbp), %al
andb $0x1, %al
movb %al, -0x1b9(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x200(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x208(%rbp), %rax
movq %rax, -0x1a0(%rbp)
jmp 0x160c4a
movq -0x1b8(%rbp), %rdi
movq -0x1b0(%rbp), %rsi
leaq -0x238(%rbp), %rdx
callq 0x78490
movq %rax, -0x240(%rbp)
movl -0x1a8(%rbp), %edi
movq -0x1a0(%rbp), %rsi
callq 0xcea0
movl %eax, -0x250(%rbp)
movq %rdx, -0x248(%rbp)
movq -0x250(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x248(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x238(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x240(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x130(%rbp)
jmp 0x160f04
movq -0x88(%rbp), %rdi
movq -0x90(%rbp), %rsi
movl -0x40(%rbp), %edx
movq -0x38(%rbp), %rcx
leaq -0x258(%rbp), %r8
leaq -0x268(%rbp), %r9
callq 0x161490
movq %rax, -0x270(%rbp)
leaq -0x280(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movl -0x268(%rbp), %edi
movq -0x260(%rbp), %rsi
callq 0x161450
movq %rax, -0x2a0(%rbp)
movq %rdx, -0x298(%rbp)
movq -0x2a0(%rbp), %rdi
movq -0x298(%rbp), %rsi
movl -0x280(%rbp), %edx
movq -0x278(%rbp), %rcx
callq 0x12740
movl %eax, -0x290(%rbp)
movq %rdx, -0x288(%rbp)
leaq -0x2b0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x290(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x288(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x258(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x270(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x2b0(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x2a8(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x28(%rbp), %rax
movq -0x138(%rbp), %rcx
movq %rcx, (%rax)
movq -0x130(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rax
movq -0x158(%rbp), %rcx
movq %rcx, (%rax)
movq -0x150(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x148(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x140(%rbp), %rax
addq $0x2b0, %rsp            # imm = 0x2B0
popq %rbp
retq
nopw %cs:(%rax,%rax)