// File: /workspace/github_c_makefile_star2_O0/SimpleDoger[P]Darknet_CPU_Only/captcha.c
// Function: test_captcha
void test_captcha(char *cfgfile, char *weightfile, char *filename)
{
    network *net = load_network(cfgfile, weightfile, 0);
    set_batch_network(net, 1);
    srand(2222222);
    int i = 0;
    char **names = get_labels("/data/captcha/reimgs.labels.list");
    char buff[256];
    char *input = buff;
    int indexes[26];
    while(1){
        if(filename){
            strncpy(input, filename, 256);
        }else{
            //printf("Enter Image Path: ");
            //fflush(stdout);
            input = fgets(input, 256, stdin);
            if(!input) return;
            strtok(input, "\n");
        }
        image im = load_image_color(input, net->w, net->h);
        float *X = im.data;
        float *predictions = network_predict(net, X);
        top_predictions(net, 26, indexes);
        //printf("%s: Predicted in %f seconds.\n", input, sec(clock()-time));
        for(i = 0; i < 26; ++i){
            int index = indexes[i];
            if(i != 0) printf(", ");
            printf("%s %f", names[index], predictions[index]);
        }
        printf("\n");
        fflush(stdout);
        free_image(im);
        if (filename) break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1f0, %rsp            # imm = 0x1F0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
xorl %edx, %edx
callq 0x39a70
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movl $0x1, %esi
callq 0x3a9b0
movl $0x21e88e, %edi         # imm = 0x21E88E
callq 0x31e0
movl $0x0, -0x24(%rbp)
leaq 0x20c54(%rip), %rdi     # 0x75794
callq 0x343c0
movq %rax, -0x30(%rbp)
leaq -0x130(%rbp), %rax
movq %rax, -0x138(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x54b75
movq -0x138(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x3060
jmp 0x54bb9
movq -0x138(%rbp), %rdi
movq 0x2e455(%rip), %rax     # 0x82fd8
movq (%rax), %rdx
movl $0x100, %esi            # imm = 0x100
callq 0x3200
movq %rax, -0x138(%rbp)
cmpq $0x0, -0x138(%rbp)
jne 0x54ba6
jmp 0x54cdb
movq -0x138(%rbp), %rdi
leaq 0x211fa(%rip), %rsi     # 0x75dae
callq 0x3380
movq -0x138(%rbp), %rsi
movq -0x20(%rbp), %rax
movl 0x94(%rax), %edx
movq -0x20(%rbp), %rax
movl 0x90(%rax), %ecx
leaq -0x1b8(%rbp), %rdi
callq 0xf510
movq -0x1a8(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x20(%rbp), %rdi
movq -0x1c0(%rbp), %rsi
callq 0x3b160
movq %rax, -0x1c8(%rbp)
movq -0x20(%rbp), %rdi
leaq -0x1a0(%rbp), %rdx
movl $0x1a, %esi
callq 0x3b120
movl $0x0, -0x24(%rbp)
cmpl $0x1a, -0x24(%rbp)
jge 0x54c8b
movslq -0x24(%rbp), %rax
movl -0x1a0(%rbp,%rax,4), %eax
movl %eax, -0x1cc(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x54c4c
leaq 0x20c48(%rip), %rdi     # 0x7588d
movb $0x0, %al
callq 0x3130
movq -0x30(%rbp), %rax
movslq -0x1cc(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x1c8(%rbp), %rax
movslq -0x1cc(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x20be6(%rip), %rdi     # 0x7585f
movb $0x1, %al
callq 0x3130
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x54c21
leaq 0x2111c(%rip), %rdi     # 0x75dae
movb $0x0, %al
callq 0x3130
movq 0x2e330(%rip), %rax     # 0x82fd0
movq (%rax), %rdi
callq 0x32e0
leaq -0x1b8(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xedb0
cmpq $0x0, -0x18(%rbp)
je 0x54cd6
jmp 0x54cdb
jmp 0x54b57
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbp
retq
nopw %cs:(%rax,%rax)