// File: /workspace/github_cpp_makefile_star2_O2/jkingan[P]ladyheather/heather.cpp
// Function: find_sound_files()
void find_sound_files()
{
   // See if user sound files exist for the cuckoo clock and alarm clock
   // If so, we play them.  Otherwise we use the default sounds.

   chime_file   = tune_exists(CHIME_FILE, 1);
   alarm_file   = tune_exists(ALARM_FILE, 1);    // see if alarm sound file exists
   leap_file    = tune_exists(LEAP_FILE, 1);     // see if leapsecond sound file exists
   sun_file     = tune_exists(SUNRISE_FILE, 1);  // see if sunrise tune sound file exists
   noon_file    = tune_exists(NOON_FILE, 1);     // see if solar noon tune sound file exists
   bell_file    = tune_exists(BELL_FILE, 1);     // see if ships bell sound file exists
   click_file   = tune_exists(CLICK_FILE, 1);    // see if touchscreen click sound file exists
   minute_file  = tune_exists(MINUTE_FILE, 1);   // ticking clock minute sound
   seconds_file = tune_exists(SECONDS_FILE, 1);  // ticking clock seconds sound

   if(tune_exists(USER_CHORD_FILE, 1)) chord_file = 2;
   else if(tune_exists(CHORD_FILE, 0)) chord_file = 1;

   if(tune_exists(USER_NOTIFY_FILE, 1)) notify_file = 2;
   else if(tune_exists(NOTIFY_FILE, 0)) notify_file = 1;

printf("chime_file:%d\n", chime_file);  // zork - show_debug_info
printf("alarm_file:%d\n", alarm_file);
printf("leap_file:%d\n", leap_file);
printf("sunrise_file:%d\n", sun_file);
printf("noon_file:%d\n", noon_file);
printf("chord_file:%d\n", chord_file);
printf("noiify_file:%d\n", notify_file);
printf("bell_file:%d\n", bell_file);
printf("click_file:%d\n", click_file);
printf("minute_file:%d\n", minute_file);
printf("second_files:%d\n", seconds_file);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0xe9c19(%rip), %rdi     # 0xf3697
pushq $0x1
popq %rbx
movl %ebx, %esi
callq 0x99b3
movb %al, 0x2ee832(%rip)     # 0x2f82c0
leaq 0xe9c14(%rip), %rdi     # 0xf36a9
movl %ebx, %esi
callq 0x99b3
movb %al, 0x2ee821(%rip)     # 0x2f82c3
leaq 0xe9c12(%rip), %rdi     # 0xf36bb
movl %ebx, %esi
callq 0x99b3
movb %al, 0x2ee80e(%rip)     # 0x2f82c4
leaq 0xe9c12(%rip), %rdi     # 0xf36cf
movl %ebx, %esi
callq 0x99b3
movb %al, 0x2ee7fb(%rip)     # 0x2f82c5
leaq 0xe9c12(%rip), %rdi     # 0xf36e3
movl %ebx, %esi
callq 0x99b3
movb %al, 0x2ee7e8(%rip)     # 0x2f82c6
leaq 0xe9c0f(%rip), %rdi     # 0xf36f4
movl %ebx, %esi
callq 0x99b3
movb %al, 0x2ee7d5(%rip)     # 0x2f82c7
leaq 0xe9c0c(%rip), %rdi     # 0xf3705
movl %ebx, %esi
callq 0x99b3
movb %al, 0x2ee7c2(%rip)     # 0x2f82c8
leaq 0xe9c0a(%rip), %rdi     # 0xf3717
movl %ebx, %esi
callq 0x99b3
movb %al, 0x2ee7a7(%rip)     # 0x2f82c1
leaq 0xe9c09(%rip), %rdi     # 0xf372a
movl %ebx, %esi
callq 0x99b3
movb %al, 0x2ee794(%rip)     # 0x2f82c2
leaq 0xe9c08(%rip), %rdi     # 0xf373d
movl %ebx, %esi
callq 0x99b3
movb $0x2, %cl
testl %eax, %eax
jne 0x9b56
leaq 0xe9c06(%rip), %rdi     # 0xf374f
xorl %esi, %esi
callq 0x99b3
movb $0x1, %cl
testl %eax, %eax
je 0x9b5c
movb %cl, 0x2ee561(%rip)     # 0x2f80bd
leaq 0xe9c07(%rip), %rdi     # 0xf376a
pushq $0x1
popq %rsi
callq 0x99b3
movb $0x2, %cl
testl %eax, %eax
jne 0x9b85
leaq 0xe9c05(%rip), %rdi     # 0xf377d
xorl %esi, %esi
callq 0x99b3
movb $0x1, %cl
testl %eax, %eax
je 0x9b8b
movb %cl, 0x2ee533(%rip)     # 0x2f80be
movzbl 0x2ee72e(%rip), %esi    # 0x2f82c0
leaq 0xe9c00(%rip), %rdi     # 0xf3799
xorl %eax, %eax
callq 0x9030
movzbl 0x2ee71c(%rip), %esi    # 0x2f82c3
leaq 0xe9bfa(%rip), %rdi     # 0xf37a8
xorl %eax, %eax
callq 0x9030
movzbl 0x2ee708(%rip), %esi    # 0x2f82c4
leaq 0xe9bf4(%rip), %rdi     # 0xf37b7
xorl %eax, %eax
callq 0x9030
movzbl 0x2ee6f4(%rip), %esi    # 0x2f82c5
leaq 0xe9bed(%rip), %rdi     # 0xf37c5
xorl %eax, %eax
callq 0x9030
movzbl 0x2ee6e0(%rip), %esi    # 0x2f82c6
leaq 0xe9be9(%rip), %rdi     # 0xf37d6
xorl %eax, %eax
callq 0x9030
movzbl 0x2ee4c2(%rip), %esi    # 0x2f80bd
leaq 0xe9be2(%rip), %rdi     # 0xf37e4
xorl %eax, %eax
callq 0x9030
movzbl 0x2ee4ae(%rip), %esi    # 0x2f80be
leaq 0xe9bdc(%rip), %rdi     # 0xf37f3
xorl %eax, %eax
callq 0x9030
movzbl 0x2ee6a2(%rip), %esi    # 0x2f82c7
leaq 0xe9bd7(%rip), %rdi     # 0xf3803
xorl %eax, %eax
callq 0x9030
movzbl 0x2ee68e(%rip), %esi    # 0x2f82c8
leaq 0xe9bd0(%rip), %rdi     # 0xf3811
xorl %eax, %eax
callq 0x9030
movzbl 0x2ee672(%rip), %esi    # 0x2f82c1
leaq 0xe9bca(%rip), %rdi     # 0xf3820
xorl %eax, %eax
callq 0x9030
movzbl 0x2ee65e(%rip), %esi    # 0x2f82c2
leaq 0xe9bc5(%rip), %rdi     # 0xf3830
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x9030