// File: /workspace/github_c_makefile_star2_O2/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 0xca08(%rip), %rdx      # 0x52017
xorl %ecx, %ecx
callq 0x4151
movq %rax, %rbp
leaq 0xc9ff(%rip), %rdx      # 0x5201f
movss 0xa888(%rip), %xmm0     # 0x4feb0
movl %ebx, %edi
movq %r13, %rsi
callq 0x40c0
movss %xmm0, 0x4(%rsp)
leaq 0xbb00(%rip), %rdx      # 0x5113f
movl %ebx, %edi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x4041
movl %eax, %r15d
leaq 0xc9d2(%rip), %rdx      # 0x52027
movl %ebx, %edi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x4041
cmpl $0x3, %ebx
jle 0x45784
movq %rax, 0x10(%rsp)
leaq 0xc9b4(%rip), %rdx      # 0x5202a
pushq $0x1
popq %rcx
movl %ebx, %edi
movq %r13, %rsi
callq 0x4041
movq %rax, 0x8(%rsp)
cmpl $0x4, %ebx
jne 0x45692
xorl %r12d, %r12d
jmp 0x456a1
movq 0x20(%r13), %r12
cmpl $0x6, %ebx
jb 0x456a1
movq 0x28(%r13), %rbx
jmp 0x456a3
xorl %ebx, %ebx
movq 0x18(%r13), %r14
movq 0x10(%r13), %r13
leaq 0xca63(%rip), %rsi      # 0x52115
movq %r13, %rdi
callq 0x3260
testl %eax, %eax
je 0x45717
leaq 0xbc4f(%rip), %rsi      # 0x51314
movq %r13, %rdi
callq 0x3260
testl %eax, %eax
je 0x45739
leaq 0x98ac(%rip), %rsi      # 0x4ef84
movq %r13, %rdi
callq 0x3260
testl %eax, %eax
je 0x45752
leaq 0xc944(%rip), %rsi      # 0x5202f
movq %r13, %rdi
callq 0x3260
testl %eax, %eax
je 0x4576b
leaq 0xc582(%rip), %rsi      # 0x51c80
movq %r13, %rdi
callq 0x3260
testl %eax, %eax
je 0x457b2
addq $0x18, %rsp
jmp 0x457f5
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 0x4538e
movq %r14, %rdi
movq %r12, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x44428
movq %r14, %rdi
movq %r12, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x449b1
movq %r14, %rdi
movq %r12, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x44f3d
movq 0x1e86d(%rip), %rax     # 0x63ff8
movq (%rax), %rdi
movq (%r13), %rdx
movq 0x8(%r13), %rcx
leaq 0xb83d(%rip), %rsi      # 0x50fda
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3270
subq $0x8, %rsp
leaq 0x1ef43(%rip), %r8      # 0x64700
pushq $0x14
popq %r9
movss 0x6a6b(%rip), %xmm1     # 0x4c234
movq %r14, %rdi
movq %r12, %rsi
movss 0xc(%rsp), %xmm0
movl %r15d, %edx
movq %rbx, %rcx
pushq $0x0
pushq $0x0
pushq $0x0
pushq $0x0
pushq 0x30(%rsp)
pushq %rbp
pushq 0x48(%rsp)
callq 0x2faac
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq