// File: /workspace/github_c_makefile_star2_O3/SimpleDoger[P]Darknet_CPU_Only/coco.c
// Function: run_coco
void run_coco(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;
    }

    char *cfg = argv[3];
    char *weights = (argc > 4) ? argv[4] : 0;
    char *filename = (argc > 5) ? argv[5]: 0;
    int avg = find_int_arg(argc, argv, "-avg", 1);
    if(0==strcmp(argv[2], "test")) test_coco(cfg, weights, filename, thresh);
    else if(0==strcmp(argv[2], "train")) train_coco(cfg, weights);
    else if(0==strcmp(argv[2], "valid")) validate_coco(cfg, weights);
    else if(0==strcmp(argv[2], "recall")) validate_coco_recall(cfg, weights);
    else if(0==strcmp(argv[2], "demo")) demo(cfg, weights, thresh, cam_index, filename, coco_classes, 80, 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, %r13d
leaq 0xc5d1(%rip), %rdx      # 0x5b157
xorl %ecx, %ecx
callq 0xee68
movq %rax, %r14
leaq 0xc5c8(%rip), %rdx      # 0x5b15f
movss 0xa3c1(%rip), %xmm0     # 0x58f60
movl %r13d, %edi
movq %rbx, %rsi
callq 0xedb7
movss %xmm0, 0x4(%rsp)
leaq 0xb688(%rip), %rdx      # 0x5a23f
movl %r13d, %edi
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0xed18
movl %eax, %ebp
leaq 0xc59a(%rip), %rdx      # 0x5b167
movl %r13d, %edi
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0xed18
cmpl $0x3, %r13d
jle 0x4ed21
cmpl $0x4, %r13d
movq %r14, 0x10(%rsp)
movq %rax, 0x8(%rsp)
jne 0x4ebf9
xorl %r15d, %r15d
jmp 0x4ec09
movq 0x20(%rbx), %r15
cmpl $0x6, %r13d
jb 0x4ec09
movq 0x28(%rbx), %r12
jmp 0x4ec0c
xorl %r12d, %r12d
movq 0x18(%rbx), %r14
leaq 0xc553(%rip), %rdx      # 0x5b16a
movl %r13d, %edi
movq %rbx, %rsi
movl $0x1, %ecx
callq 0xed18
movl %eax, %r13d
movq 0x10(%rbx), %rbx
leaq 0xc620(%rip), %rsi      # 0x5b255
movq %rbx, %rdi
callq 0x3260
testl %eax, %eax
je 0x4ece6
leaq 0xb7c8(%rip), %rsi      # 0x5a414
movq %rbx, %rdi
callq 0x3260
testl %eax, %eax
je 0x4ed08
leaq 0x9401(%rip), %rsi      # 0x58064
movq %rbx, %rdi
callq 0x3260
testl %eax, %eax
je 0x4ed38
leaq 0xc4f5(%rip), %rsi      # 0x5b16f
movq %rbx, %rdi
callq 0x3260
testl %eax, %eax
je 0x4ed51
leaq 0xc12f(%rip), %rsi      # 0x5adc0
movq %rbx, %rdi
callq 0x3260
testl %eax, %eax
jne 0x4ed29
subq $0x8, %rsp
xorl %eax, %eax
leaq 0x1d682(%rip), %r8      # 0x6c330
movss 0x65ae(%rip), %xmm1     # 0x55264
movq %r14, %rdi
movq %r15, %rsi
movss 0xc(%rsp), %xmm0
movl %ebp, %edx
movq %r12, %rcx
movl $0x50, %r9d
pushq %rax
pushq %rax
pushq %rax
pushq %rax
pushq %r13
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x81b0
addq $0x58, %rsp
jmp 0x4ed2d
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movss 0x4(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4e8f7
movq %r14, %rdi
movq %r15, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4e428
movq %rbx, %rdi
callq 0xc002
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %r15, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb467
movq %r14, %rdi
movq %r15, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbb82
nop