// File: /workspace/github_c_makefile_star2_O0/SimpleDoger[P]Darknet_CPU_Only/regressor.c
// Function: predict_regressor
void predict_regressor(char *cfgfile, char *weightfile, char *filename)
{
    network *net = load_network(cfgfile, weightfile, 0);
    set_batch_network(net, 1);
    srand(2222222);

    clock_t time;
    char buff[256];
    char *input = buff;
    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, 0, 0);
        image sized = letterbox_image(im, net->w, net->h);

        float *X = sized.data;
        time=clock();
        float *predictions = network_predict(net, X);
        printf("Predicted: %f\n", predictions[0]);
        printf("%s: Predicted in %f seconds.\n", input, sec(clock()-time));
        free_image(im);
        free_image(sized);
        if (filename) break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
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
leaq -0x130(%rbp), %rax
movq %rax, -0x138(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x613fe
movq -0x138(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x3060
jmp 0x6145f
leaq 0x144ed(%rip), %rdi     # 0x758f2
movb $0x0, %al
callq 0x3130
movq 0x21bbd(%rip), %rax     # 0x82fd0
movq (%rax), %rdi
callq 0x32e0
movq -0x138(%rbp), %rdi
movq 0x21baf(%rip), %rax     # 0x82fd8
movq (%rax), %rdx
movl $0x100, %esi            # imm = 0x100
callq 0x3200
movq %rax, -0x138(%rbp)
cmpq $0x0, -0x138(%rbp)
jne 0x6144c
jmp 0x61591
movq -0x138(%rbp), %rdi
leaq 0x14954(%rip), %rsi     # 0x75dae
callq 0x3380
movq -0x138(%rbp), %rsi
leaq -0x150(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %edx
callq 0xf510
movq -0x20(%rbp), %rax
movl 0x94(%rax), %esi
movq -0x20(%rbp), %rax
movl 0x90(%rax), %edx
leaq -0x168(%rbp), %rdi
leaq -0x150(%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 0x12c60
movq -0x158(%rbp), %rax
movq %rax, -0x170(%rbp)
callq 0x30f0
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
movq -0x170(%rbp), %rsi
callq 0x3b160
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
movss (%rax), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x14ed9(%rip), %rdi     # 0x763d3
movb $0x1, %al
callq 0x3130
movq -0x138(%rbp), %rax
movq %rax, -0x180(%rbp)
callq 0x30f0
movq %rax, %rdi
subq -0x28(%rbp), %rdi
callq 0x4b50
movq -0x180(%rbp), %rsi
cvtss2sd %xmm0, %xmm0
leaq 0x1439a(%rip), %rdi     # 0x758cc
movb $0x1, %al
callq 0x3130
leaq -0x150(%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
leaq -0x168(%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 0x6158c
jmp 0x61591
jmp 0x613e0
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
nopw (%rax,%rax)