// File: /workspace/github_c_makefile_star2_O2/cinemast[P]sudoku/sudoku.c
// Function: solve
static
int
solve (void)
{
    int idx;

    for (;;) {
        if (0 == deterministic()) {
            /* Solved, make a new choice, or rewind a previous choice */
            idx = choice();
            if (-1 == idx) {
                idx = 0;
                break;
            } else if ((idx < 0 || -1 == choose(idx, 1))
                       && -1 == backtrack()) {
                idx = -1;
                break;
            }
        } else {
            /* rewind to a previous choice */
            if (-1 == backtrack()) {
                idx = -1;
                break;
            }
        }
    }
    return idx;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0xa25a(%rip), %r15      # 0xfc80
callq 0x25c1
testl %eax, %eax
jne 0x5bf7
xorl %ebx, %ebx
cmpl $0x9, %ebx
je 0x5a8f
movl %ebx, %edi
leaq -0x33a0(%rip), %r14     # 0x26a3
movq %r14, %rsi
callq 0x2640
movl %ebx, %edi
movq %r14, %rsi
callq 0x26a9
movl %ebx, %edi
leaq -0x32a6(%rip), %r14     # 0x27b8
movq %r14, %rsi
callq 0x2640
movl %ebx, %edi
movq %r14, %rsi
callq 0x26a9
movl %ebx, %edi
leaq -0x32bb(%rip), %r14     # 0x27be
movq %r14, %rsi
callq 0x2640
movl %ebx, %edi
movq %r14, %rsi
callq 0x26a9
incl %ebx
jmp 0x5a35
callq 0x25c1
testl %eax, %eax
jne 0x5bf7
xorl %ebx, %ebx
cmpl $0x9, %ebx
je 0x5bf2
movl %ebx, %edi
callq 0x27df
movl %ebx, %edi
callq 0x28a0
pushq $0x1
popq %rbp
cmpq $0xa, %rbp
je 0x5b28
pushq $0x40
popq %r14
movl %ebp, %ecx
shll %cl, %r14d
andl $0x0, (%r15,%rbp,4)
xorl %r13d, %r13d
xorl %r12d, %r12d
xorl %r15d, %r15d
cmpl $0x9, %r13d
je 0x5b12
movl %ebx, %edi
movl %r13d, %esi
callq 0x27be
cltq
pushq $0x40
popq %rdx
movl %r13d, %ecx
shll %cl, %edx
xorl %ecx, %ecx
leaq 0x99a8(%rip), %rsi      # 0xf4a0
testl %r14d, (%rsi,%rax,4)
movl $0x0, %eax
cmovnel %eax, %edx
sete %cl
orl %edx, %r12d
addl %ecx, %r15d
incl %r13d
jmp 0x5ad5
cmpl $0x2, %r15d
leaq 0xa163(%rip), %r15      # 0xfc80
jne 0x5b23
movl %r12d, (%r15,%rbp,4)
incq %rbp
jmp 0x5ab8
xorl %edx, %edx
pushq $0x1
popq %rcx
cmpq $0x9, %rcx
je 0x5beb
movl (%r15,%rcx,4), %eax
testl %eax, %eax
je 0x5be0
movq %rdx, %rsi
cmpq $0x8, %rsi
je 0x5be0
leaq 0x1(%rsi), %r13
cmpl 0x8(%r15,%rsi,4), %eax
movq %r13, %rsi
jne 0x5b46
movq %rdx, 0x10(%rsp)
pushq $0x40
popq %r12
movq %rcx, 0x8(%rsp)
shll %cl, %r12d
movl $0x80, %ebp
movl %r13d, %ecx
shll %cl, %ebp
movl %ebp, %r15d
orl %r12d, %r15d
xorl $0xff80, %r15d          # imm = 0xFF80
xorl %r14d, %r14d
cmpl $0x9, %r14d
je 0x5bc4
movl %ebx, %edi
movl %r14d, %esi
callq 0x27be
cltq
leaq 0x98fe(%rip), %rcx      # 0xf4a0
movl (%rcx,%rax,4), %ecx
testl %r12d, %ecx
jne 0x5bbf
testl %ebp, %ecx
jne 0x5ceb
orl %r15d, %ecx
leaq 0x98e4(%rip), %rdx      # 0xf4a0
movl %ecx, (%rdx,%rax,4)
incl %r14d
jmp 0x5b89
leaq 0xa0b5(%rip), %r15      # 0xfc80
andl $0x0, 0x4(%r15,%r13,4)
movq 0x8(%rsp), %rcx
andl $0x0, (%r15,%rcx,4)
movq 0x10(%rsp), %rdx
incq %rcx
incq %rdx
jmp 0x5b2d
incl %ebx
jmp 0x5a9e
callq 0x25c1
testl %eax, %eax
jle 0x5c39
incl 0x9f93(%rip)            # 0xfb94
movl %eax, %ebx
shlq $0x2, %rbx
xorl %r14d, %r14d
cmpq %r14, %rbx
je 0x5a26
leaq 0x85e6(%rip), %rax      # 0xe200
movl (%r14,%rax), %esi
movl %esi, %edi
andl $0x7f, %edi
shrl $0x10, %esi
andl $0xf, %esi
callq 0x5894
addq $0x4, %r14
cmpl $-0x1, %eax
jne 0x5c0a
jmp 0x5c3b
je 0x5c4e
callq 0x5d0a
cmpl $-0x1, %eax
jne 0x5a26
jmp 0x5cd5
xorl %r14d, %r14d
leaq 0x9848(%rip), %r13      # 0xf4a0
xorl %ebp, %ebp
movslq %ebp, %rbx
cmpq $0x51, %r14
je 0x5c99
movl (%r13), %edi
testl $0xf0000, %edi          # imm = 0xF0000
jne 0x5c90
callq 0x52a8
movl %eax, %ecx
shll $0x10, %ecx
addl %r14d, %ecx
leaq 0x857d(%rip), %rdx      # 0xe200
movl %ecx, (%rdx,%rbx,4)
andl $0xf, %eax
cmpl $0x9, %eax
je 0x5c3b
incl %ebp
incq %r14
addq $0x4, %r13
jmp 0x5c5a
testl %ebp, %ebp
je 0x5ce7
leaq 0x855c(%rip), %rdi      # 0xe200
movq %rbx, %rsi
pushq $0x4
popq %rdx
leaq 0x21e(%rip), %rcx       # 0x5ecf
callq 0x2070
movl 0x8544(%rip), %edi      # 0xe200
andl $0x7f, %edi
pushq $0x1
popq %rsi
callq 0x5e74
cmpl $-0x1, %eax
jne 0x5a26
jmp 0x5c3b
pushq $-0x1
popq %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x5cd8
leaq 0x445d(%rip), %rdi      # 0xa14f
leaq 0x3cb1(%rip), %rsi      # 0x99aa
leaq 0x4477(%rip), %rcx      # 0xa177
movl $0x4f1, %edx            # imm = 0x4F1
callq 0x2160