// File: /workspace/github_c_makefile_star2_O2/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, %r13
movl %edi, %ebx
leaq 0xdde1(%rip), %rdx      # 0x52017
xorl %ecx, %ecx
callq 0x4151
movq %rax, %r14
leaq 0xddd8(%rip), %rdx      # 0x5201f
movss 0xbc61(%rip), %xmm0     # 0x4feb0
movl %ebx, %edi
movq %r13, %rsi
callq 0x40c0
movss %xmm0, 0x4(%rsp)
leaq 0xced9(%rip), %rdx      # 0x5113f
movl %ebx, %edi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x4041
movl %eax, %ebp
leaq 0xddac(%rip), %rdx      # 0x52027
movl %ebx, %edi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x4041
cmpl $0x3, %ebx
jle 0x443ad
cmpl $0x4, %ebx
movq %r14, 0x10(%rsp)
movq %rax, 0x8(%rsp)
jne 0x442a4
xorl %r15d, %r15d
jmp 0x442b3
movq 0x20(%r13), %r15
cmpl $0x6, %ebx
jb 0x442b3
movq 0x28(%r13), %r12
jmp 0x442b6
xorl %r12d, %r12d
movq 0x18(%r13), %r14
leaq 0xdd69(%rip), %rdx      # 0x5202a
pushq $0x1
popq %rcx
movl %ebx, %edi
movq %r13, %rsi
callq 0x4041
movl %eax, %ebx
movq 0x10(%r13), %r13
leaq 0xde3a(%rip), %rsi      # 0x52115
movq %r13, %rdi
callq 0x3260
testl %eax, %eax
je 0x44340
leaq 0xd026(%rip), %rsi      # 0x51314
movq %r13, %rdi
callq 0x3260
testl %eax, %eax
je 0x44362
leaq 0xac83(%rip), %rsi      # 0x4ef84
movq %r13, %rdi
callq 0x3260
testl %eax, %eax
je 0x4437b
leaq 0xdd1b(%rip), %rsi      # 0x5202f
movq %r13, %rdi
callq 0x3260
testl %eax, %eax
je 0x44394
leaq 0xd959(%rip), %rsi      # 0x51c80
movq %r13, %rdi
callq 0x3260
testl %eax, %eax
je 0x443db
addq $0x18, %rsp
jmp 0x4441d
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 0x43fb4
movq %r14, %rdi
movq %r15, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x42fe0
movq %r14, %rdi
movq %r15, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x43467
movq %r14, %rdi
movq %r15, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x43b63
movq 0x1fc44(%rip), %rax     # 0x63ff8
movq (%rax), %rdi
movq (%r13), %rdx
movq 0x8(%r13), %rcx
leaq 0xcc14(%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 0x1ff5a(%rip), %r8      # 0x64340
pushq $0x50
popq %r9
movss 0x7e42(%rip), %xmm1     # 0x4c234
movq %r14, %rdi
movq %r15, %rsi
movss 0xc(%rsp), %xmm0
movl %ebp, %edx
movq %r12, %rcx
pushq $0x0
pushq $0x0
pushq $0x0
pushq $0x0
pushq %rbx
pushq 0x40(%rsp)
pushq 0x40(%rsp)
callq 0x2faac
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq