// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mtp_mirth_external_ExternalDeclPart_EDPDef
static void mtp_mirth_external_ExternalDeclPart_EDPDef (struct mirth_external_ExternalDeclPart in_ExternalDeclPart_1, struct std_maybe_Maybe_1 *out_Maybe_2, uint64_t *out_Token_3, struct std_maybe_Maybe_1 *out_Maybe_4, uint64_t *out_Token_5) {
	struct mirth_external_ExternalDeclPart_EDPDef v6 = *in_ExternalDeclPart_1.ptr.EDPDef;
	if (!--(in_ExternalDeclPart_1.ptr.EDPDef->refs)) {
		free(in_ExternalDeclPart_1.ptr.EDPDef);
	} else {
		incref(MK_std_maybe_Maybe_1(v6.mdoc));
		incref(MK_std_maybe_Maybe_1(v6.msymbol));
	}
	*out_Token_5 = v6.msig;
	*out_Maybe_4 = v6.msymbol;
	*out_Token_3 = v6.mhead;
	*out_Maybe_2 = v6.mdoc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movl %edi, -0x10(%rbp)
movq %rsi, -0x8(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rsi
leaq -0x68(%rbp), %rdi
movl $0x38, %edx
callq 0x50e0
movq -0x8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x162b52
movq -0x8(%rbp), %rdi
callq 0x5030
jmp 0x162cca
jmp 0x162b54
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x133a0
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x70(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x162c05
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x133a0
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
cmpq $0x0, %rax
je 0x162c05
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x133a0
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x98(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x162c05
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x133a0
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x162c07
jmp 0x162c09
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x133a0
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x162cc6
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x133a0
movq %rax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rax
cmpq $0x0, %rax
je 0x162cc6
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x133a0
movq %rax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movq -0xd8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x162cc6
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x133a0
movq %rax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xe8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x162cc8
jmp 0x162cca
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rcx, (%rax)
movq -0x40(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x50(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, (%rax)
movq -0x58(%rbp), %rcx
movq %rcx, 0x8(%rax)
addq $0xf0, %rsp
popq %rbp
retq
nop