// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_external_parsezeexternalzedeclzepart
static uint64_t mw_mirth_external_parsezeexternalzedeclzepart (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, struct mirth_external_ExternalDeclPart *out_ExternalDeclPart_5) {
	struct mirth_mirth_zaMirth* v6;
	struct std_maybe_Maybe_1 v7 = mw_mirth_token_Token_strzy(in_zaMirth_1, in_Token_2, &v6);
	struct mirth_mirth_zaMirth* branch_zaMirth_8;
	uint64_t branch_Token_9;
	struct mirth_external_ExternalDeclPart branch_ExternalDeclPart_10;
	switch ((v7).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v11 = mtp_std_maybe_Maybe_1_Some(v7);
			struct mirth_mirth_zaMirth* v12;
			uint64_t v13 = mw_mirth_token_Token_succ(v6, in_Token_2, &v12);
			struct mirth_external_ExternalDeclPart v14 = mtw_mirth_external_ExternalDeclPart_EDPCode(in_Token_2, value_str(v11));
			branch_ExternalDeclPart_10 = v14;
			branch_Token_9 = v13;
			branch_zaMirth_8 = v12;
		} break;
		case std_maybe_Maybe_1_None: {
			struct mirth_mirth_zaMirth* v15;
			struct std_maybe_Maybe_1 v16 = mw_mirth_token_Token_doc(v6, in_Token_2, &v15);
			struct mirth_mirth_zaMirth* v17;
			struct mirth_external_ExternalDeclPart v18;
			uint64_t v19 = mw_mirth_external_parsezeexternalzedeclzeword(v15, in_Token_2, v16, &v17, &v18);
			branch_ExternalDeclPart_10 = v18;
			branch_Token_9 = v19;
			branch_zaMirth_8 = v17;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	struct mirth_mirth_zaMirth* v20;
	bool v21 = mw_mirth_token_Token_commazy(branch_zaMirth_8, branch_Token_9, &v20);
	struct mirth_mirth_zaMirth* branch_zaMirth_22;
	uint64_t branch_Token_23;
	if (v21) {
		struct mirth_mirth_zaMirth* v24;
		uint64_t v25 = mw_mirth_token_Token_succ(v20, branch_Token_9, &v24);
		branch_Token_23 = v25;
		branch_zaMirth_22 = v24;
	} else {
		branch_Token_23 = branch_Token_9;
		branch_zaMirth_22 = v20;
	}
	*out_ExternalDeclPart_5 = branch_ExternalDeclPart_10;
	*out_zaMirth_3 = branch_zaMirth_22;
	return branch_Token_23;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x28(%rbp), %rdx
callq 0x1621b0
movl %eax, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movl -0x38(%rbp), %eax
movl %eax, -0xf4(%rbp)
testl %eax, %eax
je 0x161309
jmp 0x161276
movl -0xf4(%rbp), %eax
subl $0x1, %eax
jne 0x16138a
jmp 0x161287
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x174a0
movq %rax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x70(%rbp), %rdx
callq 0x78490
movq %rax, -0x78(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0xb980
movq -0x100(%rbp), %rdi
movq %rax, %rsi
callq 0x162210
movl %eax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1613a3
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0xa3eb0
movl %eax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0x90(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0xa0(%rbp), %edx
movq -0x98(%rbp), %rcx
leaq -0xa8(%rbp), %r8
leaq -0xb8(%rbp), %r9
callq 0x161490
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1613a3
leaq 0x1f2af0(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq -0xc8(%rbp), %rdx
callq 0x7ae40
andb $0x1, %al
movb %al, -0xc9(%rbp)
testb $0x1, -0xc9(%rbp)
je 0x161404
movq -0xc8(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
callq 0x78490
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0xd8(%rbp)
jmp 0x16141d
movq -0x48(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x20(%rbp), %rax
movq -0x58(%rbp), %rcx
movq %rcx, (%rax)
movq -0x50(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0xd8(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0xe0(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nop