// File: /workspace/github_c_makefile_star2_O1/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 0xc74a(%rip), %rdx      # 0x58fff
xorl %ecx, %ecx
callq 0xe64d
movq %rax, %r14
leaq 0xc741(%rip), %rdx      # 0x59007
movss 0xa592(%rip), %xmm0     # 0x56e60
movl %r13d, %edi
movq %rbx, %rsi
callq 0xe57a
movss %xmm0, 0x4(%rsp)
leaq 0xb821(%rip), %rdx      # 0x58107
movl %r13d, %edi
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0xe4b3
movl %eax, %ebp
leaq 0xc713(%rip), %rdx      # 0x5900f
movl %r13d, %edi
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0xe4b3
cmpl $0x3, %r13d
jle 0x4ca50
cmpl $0x4, %r13d
jne 0x4c91e
xorl %r15d, %r15d
jmp 0x4c922
movq 0x20(%rbx), %r15
cmpl $0x6, %r13d
movq %rax, 0x10(%rsp)
movq %r14, 0x8(%rsp)
jl 0x4c938
movq 0x28(%rbx), %r12
jmp 0x4c93b
xorl %r12d, %r12d
movq 0x18(%rbx), %r14
leaq 0xc6cc(%rip), %rdx      # 0x59012
movl %r13d, %edi
movq %rbx, %rsi
movl $0x1, %ecx
callq 0xe4b3
movl %eax, %r13d
movq 0x10(%rbx), %rbx
leaq 0xc799(%rip), %rsi      # 0x590fd
movq %rbx, %rdi
callq 0x3270
testl %eax, %eax
je 0x4ca15
leaq 0xb961(%rip), %rsi      # 0x582dc
movq %rbx, %rdi
callq 0x3270
testl %eax, %eax
je 0x4ca37
leaq 0x95fa(%rip), %rsi      # 0x55f8c
movq %rbx, %rdi
callq 0x3270
testl %eax, %eax
je 0x4ca67
leaq 0xc66e(%rip), %rsi      # 0x59017
movq %rbx, %rdi
callq 0x3270
testl %eax, %eax
je 0x4ca80
leaq 0xc28f(%rip), %rsi      # 0x58c4f
movq %rbx, %rdi
callq 0x3270
testl %eax, %eax
jne 0x4ca58
subq $0x8, %rsp
xorl %eax, %eax
leaq 0x1d963(%rip), %r8      # 0x6a340
movss 0x684f(%rip), %xmm1     # 0x53234
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 0x38(%rsp)
pushq 0x48(%rsp)
callq 0x7f1c
addq $0x58, %rsp
jmp 0x4ca5c
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 0x4c626
movq %r14, %rdi
movq %r15, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4c15c
movq %rbx, %rdi
callq 0xb849
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 0xacbf
movq %r14, %rdi
movq %r15, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb3de
nopl (%rax)