// File: /workspace/github_c_makefile_star2_O3/SimpleDoger[P]Darknet_CPU_Only/classifier.c
// Function: run_classifier
void run_classifier(int argc, char **argv)
{
    if(argc < 4){
        fprintf(stderr, "usage: %s %s [train/test/valid] [cfg] [weights (optional)]\n", argv[0], argv[1]);
        return;
    }

    char *gpu_list = find_char_arg(argc, argv, "-gpus", 0);
    int ngpus;
    int *gpus = read_intlist(gpu_list, &ngpus, gpu_index);


    int cam_index = find_int_arg(argc, argv, "-c", 0);
    int top = find_int_arg(argc, argv, "-t", 0);
    int clear = find_arg(argc, argv, "-clear");
    char *data = argv[3];
    char *cfg = argv[4];
    char *weights = (argc > 5) ? argv[5] : 0;
    char *filename = (argc > 6) ? argv[6]: 0;
    char *layer_s = (argc > 7) ? argv[7]: 0;
    int layer = layer_s ? atoi(layer_s) : -1;
    if(0==strcmp(argv[2], "predict")) predict_classifier(data, cfg, weights, filename, top);
    else if(0==strcmp(argv[2], "fout")) file_output_classifier(data, cfg, weights, filename);
    else if(0==strcmp(argv[2], "try")) try_classifier(data, cfg, weights, filename, atoi(layer_s));
    else if(0==strcmp(argv[2], "train")) train_classifier(data, cfg, weights, gpus, ngpus, clear);
    else if(0==strcmp(argv[2], "demo")) demo_classifier(data, cfg, weights, cam_index, filename);
    else if(0==strcmp(argv[2], "gun")) gun_classifier(data, cfg, weights, cam_index, filename);
    else if(0==strcmp(argv[2], "threat")) threat_classifier(data, cfg, weights, cam_index, filename);
    else if(0==strcmp(argv[2], "test")) test_classifier(data, cfg, weights, layer);
    else if(0==strcmp(argv[2], "csv")) csv_classifier(data, cfg, weights);
    else if(0==strcmp(argv[2], "label")) label_classifier(data, cfg, weights);
    else if(0==strcmp(argv[2], "valid")) validate_classifier_single(data, cfg, weights);
    else if(0==strcmp(argv[2], "validmulti")) validate_classifier_multi(data, cfg, weights);
    else if(0==strcmp(argv[2], "valid10")) validate_classifier_10(data, cfg, weights);
    else if(0==strcmp(argv[2], "validcrop")) validate_classifier_crop(data, cfg, weights);
    else if(0==strcmp(argv[2], "validfull")) validate_classifier_full(data, cfg, weights);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r12
cmpl $0x3, %edi
jle 0x4e38f
movl %edi, %ebx
leaq 0xc907(%rip), %rdx      # 0x5aa14
xorl %r15d, %r15d
movq %r12, %rsi
xorl %ecx, %ecx
callq 0xee68
leaq 0x1e68f(%rip), %rcx     # 0x6c7b0
movl (%rcx), %edx
leaq 0x14(%rsp), %rsi
movq %rax, %rdi
callq 0xe7d7
leaq 0xc108(%rip), %rdx      # 0x5a23f
movl %ebx, %edi
movq %r12, %rsi
xorl %ecx, %ecx
callq 0xed18
leaq 0xcc62(%rip), %rdx      # 0x5adac
movl %ebx, %edi
movq %r12, %rsi
xorl %ecx, %ecx
callq 0xed18
movl %eax, %r13d
leaq 0xbff5(%rip), %rdx      # 0x5a155
movl %ebx, %edi
movq %r12, %rsi
callq 0xeca2
movl %eax, 0x10(%rsp)
movl $0x0, %eax
movl $0x0, %r14d
cmpl $0x6, %ebx
jb 0x4e1a1
movq 0x28(%r12), %rax
jne 0x4e18d
xorl %r15d, %r15d
xorl %r14d, %r14d
jmp 0x4e1a1
movq 0x30(%r12), %r14
cmpl $0x8, %ebx
jb 0x4e19e
movq 0x38(%r12), %r15
jmp 0x4e1a1
xorl %r15d, %r15d
movq %rax, 0x8(%rsp)
movq %r15, %rbx
movq 0x18(%r12), %rbp
movq 0x20(%r12), %r15
movq 0x10(%r12), %r12
leaq 0xcbf0(%rip), %rsi      # 0x5adaf
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x4e326
leaq 0xcbe1(%rip), %rsi      # 0x5adb7
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x4e33e
leaq 0xcbcf(%rip), %rsi      # 0x5adbc
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x4e353
leaq 0xc210(%rip), %rsi      # 0x5a414
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x4e373
leaq 0xcba5(%rip), %rsi      # 0x5adc0
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x4e397
leaq 0xcb93(%rip), %rsi      # 0x5adc5
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x4e397
leaq 0xcb80(%rip), %rsi      # 0x5adc9
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x4e397
leaq 0xcff5(%rip), %rsi      # 0x5b255
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x4e3a6
leaq 0xc186(%rip), %rsi      # 0x5a3fd
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
movq %r15, %r14
je 0x4e3b8
leaq 0xcb3f(%rip), %rsi      # 0x5add0
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x4e3ca
leaq 0x9dbc(%rip), %rsi      # 0x58064
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x4e3dc
leaq 0xcb17(%rip), %rsi      # 0x5add6
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x4e3ee
leaq 0xcb0b(%rip), %rsi      # 0x5ade1
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x4e400
leaq 0xcafc(%rip), %rsi      # 0x5ade9
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x4e412
leaq 0xcaef(%rip), %rsi      # 0x5adf3
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
jne 0x4e397
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
callq 0x4c6d1
jmp 0x4e397
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
movl %r13d, %r8d
callq 0x4d48d
jmp 0x4e397
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
callq 0x4ded8
jmp 0x4e397
movq %rbx, %rdi
callq 0x3400
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
movl %eax, %r8d
callq 0x4d0ab
jmp 0x4e397
movl 0x14(%rsp), %r8d
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movl 0x10(%rsp), %r9d
callq 0x4b3c3
jmp 0x4e397
movq %r12, %rdi
callq 0xb445
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
callq 0x4db36
jmp 0x4e397
movq %rbp, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x4d915
jmp 0x4e397
movq %rbp, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x4d738
jmp 0x4e397
movq %rbp, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x4c9c7
jmp 0x4e397
movq %rbp, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x4cd09
jmp 0x4e397
movq %rbp, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x4c0dc
jmp 0x4e397
movq %rbp, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x4bd16
jmp 0x4e397
nop