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

    int clear = find_arg(argc, argv, "-clear");
    int display = find_arg(argc, argv, "-display");
    int batches = find_int_arg(argc, argv, "-b", 0);
    char *file = find_char_arg(argc, argv, "-file", "/home/pjreddie/data/imagenet/imagenet1k.train.list");

    char *cfg = argv[3];
    char *weights = (argc > 4) ? argv[4] : 0;
    char *filename = (argc > 5) ? argv[5] : 0;
    char *acfg = argv[5];
    char *aweights = (argc > 6) ? argv[6] : 0;
    //if(0==strcmp(argv[2], "train")) train_lsd(cfg, weights, clear);
    //else if(0==strcmp(argv[2], "train2")) train_lsd2(cfg, weights, acfg, aweights, clear);
    //else if(0==strcmp(argv[2], "traincolor")) train_colorizer(cfg, weights, acfg, aweights, clear);
    //else if(0==strcmp(argv[2], "train3")) train_lsd3(argv[3], argv[4], argv[5], argv[6], argv[7], argv[8], clear);
    if(0==strcmp(argv[2], "traingan")) train_dcgan(cfg, weights, acfg, aweights, clear, display, file, batches);
    else if(0==strcmp(argv[2], "trainprog")) train_prog(cfg, weights, acfg, aweights, clear, display, file, batches);
    else if(0==strcmp(argv[2], "traincolor")) train_colorizer(cfg, weights, acfg, aweights, clear, display);
    else if(0==strcmp(argv[2], "gan")) test_dcgan(cfg, weights);
    else if(0==strcmp(argv[2], "inter")) inter_dcgan(cfg, weights);
    else if(0==strcmp(argv[2], "test")) test_lsd(cfg, weights, filename, 0);
    else if(0==strcmp(argv[2], "color")) test_lsd(cfg, weights, filename, 1);
    /*
       else if(0==strcmp(argv[2], "valid")) validate_lsd(cfg, weights);
     */
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
cmpl $0x4, -0x4(%rbp)
jge 0x55e04
movq 0x2d219(%rip), %rax     # 0x82ff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
leaq 0x1fa98(%rip), %rsi     # 0x75890
movb $0x0, %al
callq 0x3240
jmp 0x5608a
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x1faf3(%rip), %rdx     # 0x75905
callq 0x45a0
movl %eax, -0x14(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x1fae4(%rip), %rdx     # 0x7590c
callq 0x45a0
movl %eax, -0x18(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x1fad7(%rip), %rdx     # 0x75915
xorl %ecx, %ecx
callq 0x4630
movl %eax, -0x1c(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x1fac2(%rip), %rdx     # 0x75918
leaq 0x1fac1(%rip), %rcx     # 0x7591e
callq 0x47a0
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
cmpl $0x4, -0x4(%rbp)
jle 0x55e86
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x58(%rbp)
jmp 0x55e8e
xorl %eax, %eax
movq %rax, -0x58(%rbp)
jmp 0x55e8e
movq -0x58(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpl $0x5, -0x4(%rbp)
jle 0x55eaa
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x60(%rbp)
jmp 0x55eb2
xorl %eax, %eax
movq %rax, -0x60(%rbp)
jmp 0x55eb2
movq -0x60(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x48(%rbp)
cmpl $0x6, -0x4(%rbp)
jle 0x55eda
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x68(%rbp)
jmp 0x55ee2
xorl %eax, %eax
movq %rax, -0x68(%rbp)
jmp 0x55ee2
movq -0x68(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x1fa58(%rip), %rsi     # 0x75951
callq 0x3230
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x55f37
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x50(%rbp), %rcx
movl -0x14(%rbp), %r8d
movl -0x18(%rbp), %r9d
movq -0x28(%rbp), %r10
movl -0x1c(%rbp), %eax
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x55980
jmp 0x5608a
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x1fa14(%rip), %rsi     # 0x7595a
callq 0x3230
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x55f84
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x50(%rbp), %rcx
movl -0x14(%rbp), %r8d
movl -0x18(%rbp), %r9d
movq -0x28(%rbp), %r10
movl -0x1c(%rbp), %eax
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x55950
jmp 0x56088
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x1f9d1(%rip), %rsi     # 0x75964
callq 0x3230
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x55fc2
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x50(%rbp), %rcx
movl -0x14(%rbp), %r8d
movl -0x18(%rbp), %r9d
callq 0x559b0
jmp 0x56086
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x1f985(%rip), %rsi     # 0x75956
callq 0x3230
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x55ff0
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x556b0
jmp 0x56084
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x1f970(%rip), %rsi     # 0x7596f
callq 0x3230
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x5601b
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x55260
jmp 0x56082
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2096f(%rip), %rsi     # 0x76999
callq 0x3230
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x5604c
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
xorl %ecx, %ecx
callq 0x559d0
jmp 0x56080
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x1f90e(%rip), %rsi     # 0x75969
callq 0x3230
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x5607e
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movl $0x1, %ecx
callq 0x559d0
jmp 0x56080
jmp 0x56082
jmp 0x56084
jmp 0x56086
jmp 0x56088
jmp 0x5608a
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)