// File: /workspace/github_c_makefile_star2_O3/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 0xafd7(%rip)            # 0xe344
cmpb $0x1, 0xafd4(%rip)      # 0xe348
jne 0x337b
callq 0x3752
movl 0xafcb(%rip), %eax      # 0xe34c
cmpl $-0x1, %eax
jne 0x339b
movl $0xffffffff, 0xafc0(%rip) # imm = 0xFFFFFFFF
callq 0x266c
movl %eax, 0xafb1(%rip)      # 0xe34c
testl %eax, %eax
je 0x3408
xorl %edx, %edx
cmpl $0x2, %eax
jl 0x33ba
callq 0x2380
cltd
idivl 0xaf9a(%rip)            # 0xe34c
cmpl 0xaf98(%rip), %edx      # 0xe350
je 0x33a6
movl %edx, 0xaf90(%rip)      # 0xe350
movslq %edx, %r12
leaq 0xae36(%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 0x3414
testl %ebx, %ebx
je 0x3733
callq 0x2380
cltd
idivl %ebx
movl %edx, %ebx
incl %ebx
movl (%r13,%r12,4), %eax
jmp 0x3417
leaq 0x75d1(%rip), %rbx      # 0xa9e0
jmp 0x370e
movl %r15d, %eax
andl $0x7f, %r15d
btl $0x18, %eax
jae 0x34af
decl %ebx
jne 0x34af
imull $0x39, %r15d, %eax
shrl $0x9, %eax
movq 0xab9d(%rip), %r14      # 0xdfd8
movq (%r14), %rdi
leal (%r15,%r15,8), %ecx
leal (%r15,%rcx,2), %ecx
shrl $0x9, %ecx
addb %al, %cl
addb $0x7, %cl
movzbl %cl, %ebx
movl %ebx, %esi
movl $0x19, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x346f
movq (%r14), %rdi
movl $0x3e, %esi
callq 0x2300
movq (%r14), %rdi
movl %ebx, %esi
movl $0x35, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x3490
movq (%r14), %rdi
movl $0x3c, %esi
callq 0x2300
movl 0xc556(%rip), %edi      # 0xf9ec
movl 0xc554(%rip), %esi      # 0xf9f0
callq 0x615b
movb $0x1, 0xaea0(%rip)      # 0xe348
movl (%r13,%r12,4), %eax
xorl %ebx, %ebx
btl $0x19, %eax
jae 0x34bd
decl %ebx
je 0x35ef
btl $0x1a, %eax
jae 0x368c
cmpl $0x1, %ebx
jne 0x368c
movq %r12, 0x8(%rsp)
leal (%r15,%r15,8), %eax
leal (%r15,%rax,2), %eax
shrl $0x9, %eax
leal (%rax,%rax,2), %eax
imull $0x39, %r15d, %ecx
shrl $0x9, %ecx
leal (%rcx,%rcx,8), %ecx
movq %r15, 0x10(%rsp)
movl %r15d, %edx
subb %cl, %dl
movzbl %dl, %ecx
imull $0x56, %ecx, %ecx
shrl $0x8, %ecx
addb %al, %cl
movzbl %cl, %r13d
imull $0x56, %r13d, %eax
shrl $0x8, %eax
leal (%rax,%rax,2), %eax
movl %r13d, %ecx
subb %al, %cl
movzbl %cl, %eax
subl %eax, %r13d
leal (%rax,%rax,2), %ebp
movl $0x3, %r12d
movl $0xaaaaaaab, %r15d      # imm = 0xAAAAAAAB
movq 0xaaa7(%rip), %r14      # 0xdfd8
movl %r13d, %eax
imulq %r15, %rax
shrq $0x21, %rax
movq (%r14), %rdi
leal (%rax,%r13), %ebx
addl $0x7, %ebx
movl %ebx, %esi
movl $0x19, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x3564
movq (%r14), %rdi
movl $0x3e, %esi
callq 0x2300
movq (%r14), %rdi
movl %ebx, %esi
movl $0x35, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x3585
movq (%r14), %rdi
movl $0x3c, %esi
callq 0x2300
movzbl %bpl, %eax
imulq $0x55555556, %rax, %rax # imm = 0x55555556
shrq $0x20, %rax
addl %ebp, %eax
movq (%r14), %rdi
leal 0x1d(,%rax,2), %ebx
movl $0x5, %esi
movl %ebx, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x35be
movq (%r14), %rdi
movl $0x76, %esi
callq 0x2300
movq (%r14), %rdi
movl $0x13, %esi
movl %ebx, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x35df
movq (%r14), %rdi
movl $0x5e, %esi
callq 0x2300
incl %ebp
incl %r13d
decl %r12d
jne 0x3531
jmp 0x3663
movq %r12, 0x8(%rsp)
imull $0x39, %r15d, %eax
shrl $0x9, %eax
leal (%rax,%rax,8), %eax
movq %r15, 0x10(%rsp)
movl %r15d, %ecx
subb %al, %cl
movq 0xa9c9(%rip), %r14      # 0xdfd8
movq (%r14), %rdi
movzbl %cl, %eax
imull $0x56, %eax, %ecx
shrl $0x8, %ecx
addb %cl, %al
addb %al, %al
addb $0x1d, %al
movzbl %al, %ebx
movl $0x5, %esi
movl %ebx, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x3642
movq (%r14), %rdi
movl $0x76, %esi
callq 0x2300
movq (%r14), %rdi
movl $0x13, %esi
movl %ebx, %edx
callq 0x22d0
cmpl $-0x1, %eax
je 0x3663
movq (%r14), %rdi
movl $0x5e, %esi
callq 0x2300
movl 0xc383(%rip), %edi      # 0xf9ec
movl 0xc381(%rip), %esi      # 0xf9f0
callq 0x615b
movb $0x1, 0xaccd(%rip)      # 0xe348
movq 0x10(%rsp), %r15
movq 0x8(%rsp), %r12
leaq 0xab74(%rip), %r13      # 0xe200
cmpb $0x1, 0xacc1(%rip)      # 0xe354
jne 0x36d6
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 0xac9d(%rip), %rbx      # 0xe360
leaq 0x7351(%rip), %rsi      # 0xaa1b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2320
jmp 0x370e
movl 0xac68(%rip), %eax      # 0xe344
cmpl $0xa, %eax
jg 0x36ed
movl 0xac65(%rip), %ecx      # 0xe34c
addl %ecx, %ecx
cmpl %eax, %ecx
jge 0x3724
movzwl 0x2(%r13,%r12,4), %edx
andl $0xf, %edx
leaq 0xac63(%rip), %rbx      # 0xe360
leaq 0x732e(%rip), %rsi      # 0xaa32
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 0x384f
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x72ba(%rip), %rdi      # 0xa9f4
leaq 0x72b9(%rip), %rsi      # 0xa9fa
leaq 0x72bb(%rip), %rcx      # 0xaa03
movl $0xdfb, %edx            # imm = 0xDFB
callq 0x2160