// File: /workspace/github_c_makefile_star2_O2/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 0x42f27
movl %edi, %ebx
leaq 0xec30(%rip), %rdx      # 0x518cc
xorl %r15d, %r15d
movq %r12, %rsi
xorl %ecx, %ecx
callq 0x4151
leaq 0x21b10(%rip), %rcx     # 0x647c0
movl (%rcx), %edx
leaq 0x14(%rsp), %rsi
movq %rax, %rdi
callq 0x3bfb
leaq 0xe479(%rip), %rdx      # 0x5113f
movl %ebx, %edi
movq %r12, %rsi
xorl %ecx, %ecx
callq 0x4041
leaq 0xef93(%rip), %rdx      # 0x51c6c
movl %ebx, %edi
movq %r12, %rsi
xorl %ecx, %ecx
callq 0x4041
movl %eax, %r13d
leaq 0xe366(%rip), %rdx      # 0x51055
movl %ebx, %edi
movq %r12, %rsi
callq 0x3fdd
movl %eax, 0x10(%rsp)
movl $0x0, %eax
movl $0x0, %r14d
cmpl $0x6, %ebx
jb 0x42d30
movq 0x28(%r12), %rax
jne 0x42d1c
xorl %r15d, %r15d
xorl %r14d, %r14d
jmp 0x42d30
movq 0x30(%r12), %r14
cmpl $0x8, %ebx
jb 0x42d2d
movq 0x38(%r12), %r15
jmp 0x42d30
xorl %r15d, %r15d
movq %rax, 0x8(%rsp)
movq %r15, %rbx
movq 0x18(%r12), %rbp
movq 0x20(%r12), %r15
movq 0x10(%r12), %r12
leaq 0xef21(%rip), %rsi      # 0x51c6f
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x42eb1
leaq 0xef12(%rip), %rsi      # 0x51c77
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x42ec9
leaq 0xef00(%rip), %rsi      # 0x51c7c
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x42ede
leaq 0xe581(%rip), %rsi      # 0x51314
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x42efe
leaq 0xeed6(%rip), %rsi      # 0x51c80
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x42f18
leaq 0xeec4(%rip), %rsi      # 0x51c85
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x42f18
leaq 0xeeb1(%rip), %rsi      # 0x51c89
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x42f18
leaq 0xf326(%rip), %rsi      # 0x52115
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x42f56
leaq 0xe4f7(%rip), %rsi      # 0x512fd
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
movq %r15, %r14
je 0x42f68
leaq 0xee70(%rip), %rsi      # 0x51c90
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x42f7a
leaq 0xc14d(%rip), %rsi      # 0x4ef84
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x42f8c
leaq 0xee48(%rip), %rsi      # 0x51c96
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x42fa1
leaq 0xee3c(%rip), %rsi      # 0x51ca1
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x42fb6
leaq 0xee2d(%rip), %rsi      # 0x51ca9
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
je 0x42fcb
leaq 0xee20(%rip), %rsi      # 0x51cb3
movq %r12, %rdi
callq 0x3260
testl %eax, %eax
jne 0x42f18
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
callq 0x4128d
jmp 0x42f18
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
movl %r13d, %r8d
callq 0x4200d
jmp 0x42f18
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
callq 0x42a6e
jmp 0x42f18
movq %rbx, %rdi
callq 0x3400
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
movl %eax, %r8d
callq 0x41c3f
jmp 0x42f18
movl 0x14(%rsp), %r8d
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movl 0x10(%rsp), %r9d
callq 0x40044
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x210ca(%rip), %rax     # 0x63ff8
movq (%rax), %rdi
movq (%r12), %rdx
movq 0x8(%r12), %rcx
leaq 0xe099(%rip), %rsi      # 0x50fda
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3270
movq %rbp, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
callq 0x426c7
jmp 0x42f18
movq %rbp, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x4249f
jmp 0x42f18
movq %rbp, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x422c2
jmp 0x42f18
movq %rbp, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x41574
jmp 0x42f18
movq %rbp, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x4187e
jmp 0x42f18
movq %rbp, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x40c9c
jmp 0x42f18
movq %rbp, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x40924
jmp 0x42f18