// File: /workspace/github_c_makefile_star2_O0/mmayer[P]pcal/src/writefil.c
// Function: find_images
void find_images (int month, int year)
{
   register int day;
   year_info *py;
   month_info *pm;
   register day_info *pd;
   
   /* if no text for this year and month, return */
   
   if ((py = find_year(year, FALSE)) == NULL || (pm = py->month[month-1]) == NULL) {
      return;
   }

   /* walk array of day text pointers and linked lists of text */
   
   for (day = 1; day <= LAST_NOTE_DAY; day++) {
      for (pd = pm->day[day-1]; pd; pd = pd->next) {
         
         /* Determine if this is a 'daytext' or an 'image'... */
         if (ci_strncmp(pd->text, "image:", 6) == 0) {
            
            char temp_str[300];
            char *p;
            
            printf("%d [()] \n", day);
            
            strncpy(temp_str, pd->text, sizeof temp_str);
            p = strchr(pd->text, ' ');  /* Isolate the EPS image filename */
            strncpy(temp_str, p+1, sizeof temp_str);  /* Copy the remaining parameters */
            *p = '\0';
            printf("(%s) %s ", pd->text+6, temp_str);
            
            this_day = 1;
            RESET_DATE();   /* reset working date */
            
            printf("epsimage\n");
         }
      }
   }

   return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl -0x8(%rbp), %edi
xorl %esi, %esi
callq 0xefe0
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
je 0x19bb1
movq -0x18(%rbp), %rax
movl -0x4(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq 0x8(%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x19bb6
jmp 0x19cf5
movl $0x1, -0xc(%rbp)
cmpl $0x2d, -0xc(%rbp)
jg 0x19cf3
movq -0x20(%rbp), %rax
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq 0x8(%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x19ce3
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x1096b(%rip), %rsi     # 0x2a562
movl $0x6, %edx
callq 0xb3b0
cmpl $0x0, %eax
jne 0x19cd0
movl -0xc(%rbp), %esi
leaq 0x10be6(%rip), %rdi     # 0x2a7fa
movb $0x0, %al
callq 0x5110
leaq -0x160(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rsi
movl $0x12c, %edx            # imm = 0x12C
callq 0x5060
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movl $0x20, %esi
callq 0x5100
movq %rax, -0x168(%rbp)
leaq -0x160(%rbp), %rdi
movq -0x168(%rbp), %rsi
addq $0x1, %rsi
movl $0x12c, %edx            # imm = 0x12C
callq 0x5060
movq -0x168(%rbp), %rax
movb $0x0, (%rax)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rsi
addq $0x6, %rsi
leaq -0x160(%rbp), %rdx
leaq 0x10b77(%rip), %rdi     # 0x2a804
movb $0x0, %al
callq 0x5110
movl $0x1, 0x1b3ca(%rip)     # 0x35068
movl 0x1b3a0(%rip), %eax     # 0x35044
movl %eax, 0x1b3c2(%rip)     # 0x3506c
movl 0x1b3b8(%rip), %eax     # 0x35068
movl %eax, 0x1b3ba(%rip)     # 0x35070
movl 0x1b38c(%rip), %eax     # 0x35048
movl %eax, 0x1b3b2(%rip)     # 0x35074
leaq 0x10b44(%rip), %rdi     # 0x2a80d
movb $0x0, %al
callq 0x5110
jmp 0x19cd2
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x19bdd
jmp 0x19ce5
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x19bbd
jmp 0x19cf5
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
nop