// File: /workspace/github_c_makefile_star2_O1/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, %r13
movl %edi, %ebx
leaq 0xbcdc(%rip), %rdx      # 0x58fff
xorl %ecx, %ecx
callq 0xe64d
movq %rax, %r15
leaq 0xbcd3(%rip), %rdx      # 0x59007
movss 0x9b24(%rip), %xmm0     # 0x56e60
movl %ebx, %edi
movq %r13, %rsi
callq 0xe57a
movss %xmm0, 0x4(%rsp)
leaq 0xadb4(%rip), %rdx      # 0x58107
movl %ebx, %edi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xe4b3
movl %eax, %ebp
leaq 0xbca7(%rip), %rdx      # 0x5900f
movl %ebx, %edi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xe4b3
cmpl $0x3, %ebx
jle 0x4d4b3
movq %rax, 0x10(%rsp)
leaq 0xbc89(%rip), %rdx      # 0x59012
movl %ebx, %edi
movq %r13, %rsi
movl $0x1, %ecx
callq 0xe4b3
movq %rax, 0x8(%rsp)
cmpl $0x4, %ebx
jne 0x4d3a7
xorl %r12d, %r12d
jmp 0x4d3ab
movq 0x20(%r13), %r12
cmpl $0x6, %ebx
jl 0x4d3b6
movq 0x28(%r13), %rbx
jmp 0x4d3b8
xorl %ebx, %ebx
movq 0x18(%r13), %r14
movq 0x10(%r13), %r13
leaq 0xbd36(%rip), %rsi      # 0x590fd
movq %r13, %rdi
callq 0x3270
testl %eax, %eax
je 0x4d478
leaq 0xaefe(%rip), %rsi      # 0x582dc
movq %r13, %rdi
callq 0x3270
testl %eax, %eax
je 0x4d49a
leaq 0x8b97(%rip), %rsi      # 0x55f8c
movq %r13, %rdi
callq 0x3270
testl %eax, %eax
je 0x4d4ca
leaq 0xbc0b(%rip), %rsi      # 0x59017
movq %r13, %rdi
callq 0x3270
testl %eax, %eax
je 0x4d4e3
leaq 0xb82c(%rip), %rsi      # 0x58c4f
movq %r13, %rdi
callq 0x3270
testl %eax, %eax
jne 0x4d4bb
subq $0x8, %rsp
xorl %eax, %eax
leaq 0x1d2c0(%rip), %r8      # 0x6a700
movss 0x5dec(%rip), %xmm1     # 0x53234
movq %r14, %rdi
movq %r12, %rsi
movss 0xc(%rsp), %xmm0
movl %ebp, %edx
movq %rbx, %rcx
movl $0x14, %r9d
pushq %rax
pushq %rax
pushq %rax
pushq %rax
pushq 0x30(%rsp)
pushq %r15
pushq 0x48(%rsp)
callq 0x7f1c
addq $0x58, %rsp
jmp 0x4d4bf
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movss 0x4(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4d096
movq %r14, %rdi
movq %r12, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4ca9c
movq %r13, %rdi
callq 0xc280
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 0xb86b
movq %r14, %rdi
movq %r12, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbe16