// File: /workspace/github_c_makefile_star2_O0/mmayer[P]pcal/src/readfile.c
// Function: process_event_specification
int process_event_specification (char **pword, int *ptext_type, char ***pptext)
{
   int rtn, match;
   date_str *pd;
   
   /* parse date spec and enter information for each match */
   if ((rtn = parse_date(pword, ptext_type, pptext)) == PARSE_OK) {
      match = FALSE;
      for (pd = candidate_dates; pd->mm; pd++) {

         if (pd->yy == -1) {
            if (DEBUG(DEBUG_DATES)) {
               fprintf(stderr, "Bypassing invalidated candidate date: yyyy-%02d-%02d.\n", pd->mm, pd->dd);
            }
         }
         else {
            if (DEBUG(DEBUG_DATES)) {
               fprintf(stderr, "Processing candidate date: %4d-%02d-%02d\n", pd->yy, pd->mm, pd->dd);
            }
            
            if (delete_entry) {
               match |= delete_day_info(pd->mm, pd->dd, pd->yy, *ptext_type, *pptext) == PARSE_OK;
            }
            else {
               match |= enter_day_info(pd->mm, pd->dd, pd->yy, *ptext_type, *pptext) == PARSE_OK;
            }
         }
      }
      rtn = match ? PARSE_OK : PARSE_NOMATCH;
   }
   return rtn;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x10d30
movl %eax, -0x1c(%rbp)
cmpl $0x0, %eax
jne 0x10d24
movl $0x0, -0x20(%rbp)
leaq 0x23311(%rip), %rax     # 0x33f00
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
je 0x10d11
movq -0x28(%rbp), %rax
cmpl $-0x1, 0x8(%rax)
jne 0x10c45
leaq 0x21b4b(%rip), %rax     # 0x3275c
movl (%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x10c40
movq 0x1d3d6(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %edx
movq -0x28(%rbp), %rax
movl 0x4(%rax), %ecx
leaq 0x143ba(%rip), %rsi     # 0x24ff3
movb $0x0, %al
callq 0x51b0
jmp 0x10cfe
leaq 0x21b10(%rip), %rax     # 0x3275c
movl (%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x10c83
movq 0x1d39b(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
movq -0x28(%rbp), %rax
movl 0x8(%rax), %edx
movq -0x28(%rbp), %rax
movl (%rax), %ecx
movq -0x28(%rbp), %rax
movl 0x4(%rax), %r8d
leaq 0x143ae(%rip), %rsi     # 0x2502a
movb $0x0, %al
callq 0x51b0
cmpl $0x0, 0x243aa(%rip)     # 0x35034
je 0x10cc5
movq -0x28(%rbp), %rax
movl (%rax), %edi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %esi
movq -0x28(%rbp), %rax
movl 0x8(%rax), %edx
movq -0x10(%rbp), %rax
movl (%rax), %ecx
movq -0x18(%rbp), %rax
movq (%rax), %r8
callq 0x10730
cmpl $0x0, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
orl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x10cfc
movq -0x28(%rbp), %rax
movl (%rax), %edi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %esi
movq -0x28(%rbp), %rax
movl 0x8(%rax), %edx
movq -0x10(%rbp), %rax
movl (%rax), %ecx
movq -0x18(%rbp), %rax
movq (%rax), %r8
callq 0x10240
cmpl $0x0, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
orl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x10cfe
jmp 0x10d00
movq -0x28(%rbp), %rax
addq $0xc, %rax
movq %rax, -0x28(%rbp)
jmp 0x10bf3
movl -0x20(%rbp), %edx
movl $0x3, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)