// File: /workspace/github_c_makefile_star2_O3/SimpleDoger[P]Darknet_CPU_Only/yolo.c
// Function: run_yolo
void run_yolo(int argc, char **argv)
{
    char *prefix = find_char_arg(argc, argv, "-prefix", 0);
    float thresh = find_float_arg(argc, argv, "-thresh", .2);
    int cam_index = find_int_arg(argc, argv, "-c", 0);
    int frame_skip = find_int_arg(argc, argv, "-s", 0);
    if(argc < 4){
        fprintf(stderr, "usage: %s %s [train/test/valid] [cfg] [weights (optional)]\n", argv[0], argv[1]);
        return;
    }

    int avg = find_int_arg(argc, argv, "-avg", 1);
    char *cfg = argv[3];
    char *weights = (argc > 4) ? argv[4] : 0;
    char *filename = (argc > 5) ? argv[5]: 0;
    if(0==strcmp(argv[2], "test")) test_yolo(cfg, weights, filename, thresh);
    else if(0==strcmp(argv[2], "train")) train_yolo(cfg, weights);
    else if(0==strcmp(argv[2], "valid")) validate_yolo(cfg, weights);
    else if(0==strcmp(argv[2], "recall")) validate_yolo_recall(cfg, weights);
    else if(0==strcmp(argv[2], "demo")) demo(cfg, weights, thresh, cam_index, filename, voc_names, 20, frame_skip, prefix, avg, .5, 0,0,0,0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movl %edi, %r14d
leaq 0xbb8d(%rip), %rdx      # 0x5b157
xorl %ecx, %ecx
callq 0xee68
movq %rax, %r15
leaq 0xbb84(%rip), %rdx      # 0x5b15f
movss 0x997d(%rip), %xmm0     # 0x58f60
movl %r14d, %edi
movq %rbx, %rsi
callq 0xedb7
movss %xmm0, 0x4(%rsp)
leaq 0xac44(%rip), %rdx      # 0x5a23f
movl %r14d, %edi
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0xed18
movl %eax, %ebp
leaq 0xbb56(%rip), %rdx      # 0x5b167
movl %r14d, %edi
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0xed18
cmpl $0x3, %r14d
jle 0x4f765
movq %rax, 0x8(%rsp)
movq %r15, 0x10(%rsp)
leaq 0xbb31(%rip), %rdx      # 0x5b16a
movl %r14d, %edi
movq %rbx, %rsi
movl $0x1, %ecx
callq 0xed18
movl %eax, %r15d
cmpl $0x4, %r14d
jne 0x4f657
xorl %r12d, %r12d
jmp 0x4f667
movq 0x20(%rbx), %r12
cmpl $0x6, %r14d
jb 0x4f667
movq 0x28(%rbx), %r13
jmp 0x4f66a
xorl %r13d, %r13d
movq 0x18(%rbx), %r14
movq 0x10(%rbx), %rbx
leaq 0xbbdc(%rip), %rsi      # 0x5b255
movq %rbx, %rdi
callq 0x3260
testl %eax, %eax
je 0x4f72a
leaq 0xad84(%rip), %rsi      # 0x5a414
movq %rbx, %rdi
callq 0x3260
testl %eax, %eax
je 0x4f74c
leaq 0x89bd(%rip), %rsi      # 0x58064
movq %rbx, %rdi
callq 0x3260
testl %eax, %eax
je 0x4f77c
leaq 0xbab1(%rip), %rsi      # 0x5b16f
movq %rbx, %rdi
callq 0x3260
testl %eax, %eax
je 0x4f795
leaq 0xb6eb(%rip), %rsi      # 0x5adc0
movq %rbx, %rdi
callq 0x3260
testl %eax, %eax
jne 0x4f76d
subq $0x8, %rsp
xorl %eax, %eax
leaq 0x1cffe(%rip), %r8      # 0x6c6f0
movss 0x5b6a(%rip), %xmm1     # 0x55264
movq %r14, %rdi
movq %r12, %rsi
movss 0xc(%rsp), %xmm0
movl %ebp, %edx
movq %r13, %rcx
movl $0x14, %r9d
pushq %rax
pushq %rax
pushq %rax
pushq %rax
pushq %r15
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x81b0
addq $0x58, %rsp
jmp 0x4f771
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movss 0x4(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4f33c
movq %r14, %rdi
movq %r12, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4ed6c
movq %rbx, %rdi
callq 0xca3f
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %r12, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc024
movq %r14, %rdi
movq %r12, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc5c3
nop