// File: /workspace/github_c_makefile_star2_O1/cinemast[P]sudoku/sudoku.c
// Function: request_hint
void request_hint (void)
{
    ++req_hints;
    if (have_hint) {
        clear_hints();
    }
    if (-1 == num_hints) {
        last_hint = -1;
        num_hints = findhints();
    }
    if (0 == num_hints) {
        set_status("No hints available!");
    } else {
        int i, idx;
        int n = 0;

        if (1 < num_hints) {
            do {
                i = rand() % num_hints;
            } while (i == last_hint);
        } else {
            i = 0;
        }
        idx = GET_INDEX(possible[last_hint = i]);

        /* Count # possible ways of expressing hint */
        if (0 != (HINT_ROW & possible[i])) {
            ++n;
        }
        if (0 != (HINT_COLUMN & possible[i])) {
            ++n;
        }
        if (0 != (HINT_BLOCK & possible[i])) {
            ++n;
        }
        assert(0 < n);
        if (1 < n) {
            n = 1 + rand() % n;
        }
        if (0 != (HINT_ROW & possible[i])) {
            if (0 == --n) {
                row_hint(ROW(idx));
            }
        }
        if (0 != (HINT_COLUMN & possible[i])) {
            if (0 == --n) {
                column_hint(COLUMN(idx));
            }
        }
        if (0 != (HINT_BLOCK & possible[i])) {
            if (0 == --n) {
                block_hint(IDX_BLOCK(ROW(idx), COLUMN(idx)));
            }
        }
        if (opt_spoilerhint) {
            /* Useful for testing... */
            sprintf(statusline, "%d @ row %d, column %d",
                        GET_DIGIT(possible[i]),
                        ROW(idx)+1, COLUMN(idx)+1);
            set_status(statusline);
        } else if (10 < req_hints || 2 * num_hints < req_hints) {
            sprintf(statusline, "(try the digit %d)",
                        GET_DIGIT(possible[i]));
            set_status(statusline);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
incl 0xafb7(%rip)            # 0xe344
cmpb $0x1, 0xafb4(%rip)      # 0xe348
jne 0x339b
callq 0x3796
cmpl $-0x1, 0xafaa(%rip)     # 0xe34c
jne 0x33b9
movl $0xffffffff, 0xafa2(%rip) # imm = 0xFFFFFFFF
callq 0x265c
movl %eax, 0xaf93(%rip)      # 0xe34c
movl 0xaf8d(%rip), %eax      # 0xe34c
testl %eax, %eax
je 0x3711
xorl %edx, %edx
cmpl $0x2, %eax
jl 0x33e2
callq 0x2380
cltd
idivl 0xaf72(%rip)            # 0xe34c
cmpl 0xaf70(%rip), %edx      # 0xe350
je 0x33ce
movl %edx, 0xaf68(%rip)      # 0xe350
movslq %edx, %r12
leaq 0xae0e(%rip), %r13      # 0xe200
movl (%r13,%r12,4), %r15d
movl %r15d, %eax
shrl $0x18, %eax
andl $0x1, %eax
movl %r15d, %ebx
shrl $0x19, %ebx
andl $0x1, %ebx
btl $0x1a, %r15d
adcl %eax, %ebx
cmpl $0x1, %ebx
je 0x3429
testl %ebx, %ebx
je 0x3777
callq 0x2380
cltd
idivl %ebx
movl %edx, %ebx
incl %ebx
andl $0x7f, %r15d
testb $0x1, 0x3(%r13,%r12,4)
je 0x34c3
decl %ebx
jne 0x34c3
movl %r15d, %eax
imulq $0x1c71c71d, %rax, %rcx # imm = 0x1C71C71D
shrq $0x20, %rcx
movq 0xab82(%rip), %r14      # 0xdfd8
movq (%r14), %rdi
imulq $0x97b425f, %rax, %rax  # imm = 0x97B425F
shrq $0x20, %rax
leal (%rcx,%rax), %ebx
addl $0x7, %ebx
movl %ebx, %esi
movl $0x19, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x3488
movq (%r14), %rdi
movl $0x3e, %esi
callq 0x2300
movq (%r14), %rdi
movl %ebx, %esi
movl $0x35, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x34a9
movq (%r14), %rdi
movl $0x3c, %esi
callq 0x2300
movl 0xc53d(%rip), %edi      # 0xf9ec
movl 0xc53b(%rip), %esi      # 0xf9f0
callq 0x6134
movb $0x1, 0xae87(%rip)      # 0xe348
xorl %ebx, %ebx
testb $0x2, 0x3(%r13,%r12,4)
je 0x3564
decl %ebx
jne 0x3564
movl %r15d, %eax
imulq $0x1c71c71d, %rax, %rax # imm = 0x1C71C71D
shrq $0x20, %rax
leal (%rax,%rax,8), %eax
movl %r15d, %ecx
subl %eax, %ecx
movq 0xaae4(%rip), %r14      # 0xdfd8
movq (%r14), %rdi
imulq $0x55555556, %rcx, %rax # imm = 0x55555556
shrq $0x20, %rax
addl %ecx, %eax
leal 0x1d(,%rax,2), %ebx
movl $0x5, %esi
movl %ebx, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x3529
movq (%r14), %rdi
movl $0x76, %esi
callq 0x2300
movq (%r14), %rdi
movl $0x13, %esi
movl %ebx, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x354a
movq (%r14), %rdi
movl $0x5e, %esi
callq 0x2300
movl 0xc49c(%rip), %edi      # 0xf9ec
movl 0xc49a(%rip), %esi      # 0xf9f0
callq 0x6134
movb $0x1, 0xade6(%rip)      # 0xe348
xorl %ebx, %ebx
testb $0x4, 0x3(%r13,%r12,4)
je 0x36c7
cmpl $0x1, %ebx
jne 0x36c7
movq %r12, 0x8(%rsp)
movl %r15d, %eax
imulq $0x97b425f, %rax, %rcx  # imm = 0x97B425F
shrq $0x20, %rcx
leal (%rcx,%rcx,2), %ecx
imulq $0x1c71c71d, %rax, %rax # imm = 0x1C71C71D
shrq $0x20, %rax
leal (%rax,%rax,8), %eax
movq %r15, 0x10(%rsp)
movl %r15d, %edx
subl %eax, %edx
imulq $0x55555556, %rdx, %rax # imm = 0x55555556
shrq $0x20, %rax
addl %ecx, %eax
imulq $0x55555556, %rax, %rcx # imm = 0x55555556
shrq $0x20, %rcx
leal (%rcx,%rcx,2), %ebp
subl %ebp, %eax
leal (%rax,%rax,2), %r13d
leal (%rcx,%rcx,2), %r12d
addl $0x7, %r12d
movl $0x3, %r15d
movq 0xa9fb(%rip), %r14      # 0xdfd8
movl %ebp, %ebx
movl $0xaaaaaaab, %eax       # imm = 0xAAAAAAAB
imulq %rax, %rbx
shrq $0x21, %rbx
addl %r12d, %ebx
movq (%r14), %rdi
movl %ebx, %esi
movl $0x19, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x3610
movq (%r14), %rdi
movl $0x3e, %esi
callq 0x2300
movq (%r14), %rdi
movl %ebx, %esi
movl $0x35, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x3631
movq (%r14), %rdi
movl $0x3c, %esi
callq 0x2300
movl %r13d, %eax
movl $0xaaaaaaab, %ecx       # imm = 0xAAAAAAAB
imulq %rcx, %rax
shrq $0x21, %rax
addl %r13d, %eax
movq (%r14), %rdi
leal 0x1d(,%rax,2), %ebx
movl $0x5, %esi
movl %ebx, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x366c
movq (%r14), %rdi
movl $0x76, %esi
callq 0x2300
movq (%r14), %rdi
movl $0x13, %esi
movl %ebx, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x368d
movq (%r14), %rdi
movl $0x5e, %esi
callq 0x2300
incl %r13d
incl %ebp
incl %r12d
decl %r15d
jne 0x35dd
movl 0xc348(%rip), %edi      # 0xf9ec
movl 0xc346(%rip), %esi      # 0xf9f0
callq 0x6134
movb $0x1, 0xac92(%rip)      # 0xe348
movq 0x10(%rsp), %r15
movq 0x8(%rsp), %r12
leaq 0xab39(%rip), %r13      # 0xe200
cmpb $0x1, 0xac86(%rip)      # 0xe354
jne 0x371a
movzwl 0x2(%r13,%r12,4), %edx
andl $0xf, %edx
movl %r15d, %eax
imulq $0x1c71c71d, %rax, %rax # imm = 0x1C71C71D
shrq $0x20, %rax
leal (%rax,%rax,8), %esi
movl %eax, %ecx
incl %ecx
negl %esi
leal (%r15,%rsi), %r8d
incl %r8d
leaq 0xac62(%rip), %rbx      # 0xe360
leaq 0x72d6(%rip), %rsi      # 0xa9db
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2320
jmp 0x3752
leaq 0x7288(%rip), %rbx      # 0xa9a0
jmp 0x3752
movl 0xac24(%rip), %eax      # 0xe344
cmpl $0xa, %eax
jg 0x3731
movl 0xac21(%rip), %ecx      # 0xe34c
addl %ecx, %ecx
cmpl %eax, %ecx
jge 0x3768
movzwl 0x2(%r13,%r12,4), %edx
andl $0xf, %edx
leaq 0xac1f(%rip), %rbx      # 0xe360
leaq 0x72aa(%rip), %rsi      # 0xa9f2
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2320
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3890
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7236(%rip), %rdi      # 0xa9b4
leaq 0x7235(%rip), %rsi      # 0xa9ba
leaq 0x7237(%rip), %rcx      # 0xa9c3
movl $0xdfb, %edx            # imm = 0xDFB
callq 0x2160