// File: /workspace/github_c_makefile_star2_O1/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 0x4c0c3
movl %edi, %r14d
leaq 0xca72(%rip), %rdx      # 0x588bc
xorl %r15d, %r15d
movq %r12, %rsi
xorl %ecx, %ecx
callq 0xe64d
leaq 0x1e962(%rip), %rcx     # 0x6a7c0
movl (%rcx), %edx
leaq 0x14(%rsp), %rsi
movq %rax, %rdi
callq 0xe017
leaq 0xc293(%rip), %rdx      # 0x58107
movl %r14d, %edi
movq %r12, %rsi
xorl %ecx, %ecx
callq 0xe4b3
leaq 0xcdb3(%rip), %rdx      # 0x58c3b
movl %r14d, %edi
movq %r12, %rsi
xorl %ecx, %ecx
callq 0xe4b3
movl %eax, %ebp
leaq 0xc17f(%rip), %rdx      # 0x5801d
movl %r14d, %edi
movq %r12, %rsi
callq 0xe439
movl %eax, 0x10(%rsp)
cmpl $0x6, %r14d
jl 0x4beb8
movq 0x28(%r12), %r15
cmpl $0x7, %r14d
jl 0x4bec5
movq 0x30(%r12), %r13
jmp 0x4bec8
xorl %r13d, %r13d
cmpl $0x8, %r14d
movq %r15, 0x8(%rsp)
jl 0x4beda
movq 0x38(%r12), %r14
jmp 0x4bedd
xorl %r14d, %r14d
movq 0x18(%r12), %r15
movq 0x20(%r12), %rbx
movq 0x10(%r12), %r12
leaq 0xcd4b(%rip), %rsi      # 0x58c3e
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
je 0x4c05a
leaq 0xcd3c(%rip), %rsi      # 0x58c46
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
je 0x4c072
leaq 0xcd2a(%rip), %rsi      # 0x58c4b
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
je 0x4c087
leaq 0xc3a4(%rip), %rsi      # 0x582dc
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
je 0x4c0a7
leaq 0xcd00(%rip), %rsi      # 0x58c4f
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
je 0x4c0cb
leaq 0xccee(%rip), %rsi      # 0x58c54
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
je 0x4c0cb
leaq 0xccdb(%rip), %rsi      # 0x58c58
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
je 0x4c0cb
leaq 0xd169(%rip), %rsi      # 0x590fd
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
je 0x4c0da
leaq 0xc31a(%rip), %rsi      # 0x582c5
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
movq %rbx, %r14
je 0x4c0ec
leaq 0xcc9a(%rip), %rsi      # 0x58c5f
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
je 0x4c0fe
leaq 0x9fb0(%rip), %rsi      # 0x55f8c
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
je 0x4c110
leaq 0xcc72(%rip), %rsi      # 0x58c65
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
je 0x4c122
leaq 0xcc66(%rip), %rsi      # 0x58c70
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
je 0x4c134
leaq 0xcc57(%rip), %rsi      # 0x58c78
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
je 0x4c146
leaq 0xcc4a(%rip), %rsi      # 0x58c82
movq %r12, %rdi
callq 0x3270
testl %eax, %eax
jne 0x4c0cb
movq %r15, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq 0x4a3c5
jmp 0x4c0cb
movq %r15, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
movq %r13, %rcx
movl %ebp, %r8d
callq 0x4b1b8
jmp 0x4c0cb
movq %r15, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
movq %r13, %rcx
callq 0x4bc14
jmp 0x4c0cb
movq %r14, %rdi
callq 0x3410
movq %r15, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
movq %r13, %rcx
movl %eax, %r8d
callq 0x4adcf
jmp 0x4c0cb
movl 0x14(%rsp), %r8d
movq %r15, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
movl 0x10(%rsp), %r9d
callq 0x49057
jmp 0x4c0cb
movq %r12, %rdi
callq 0xac9d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq 0x4b861
jmp 0x4c0cb
movq %r15, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x4b640
jmp 0x4c0cb
movq %r15, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x4b463
jmp 0x4c0cb
movq %r15, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x4a6cc
jmp 0x4c0cb
movq %r15, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x4aa21
jmp 0x4c0cb
movq %r15, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x49dcb
jmp 0x4c0cb
movq %r15, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x499cd
jmp 0x4c0cb
nop