// File: /workspace/github_c_makefile_star2_O0/SimpleDoger[P]Darknet_CPU_Only/rnn.c
// Function: run_char_rnn
void run_char_rnn(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 *filename = find_char_arg(argc, argv, "-file", "data/shakespeare.txt");
    char *seed = find_char_arg(argc, argv, "-seed", "\n\n");
    int len = find_int_arg(argc, argv, "-len", 1000);
    float temp = find_float_arg(argc, argv, "-temp", .7);
    int rseed = find_int_arg(argc, argv, "-srand", time(0));
    int clear = find_arg(argc, argv, "-clear");
    int tokenized = find_arg(argc, argv, "-tokenized");
    char *tokens = find_char_arg(argc, argv, "-tokens", 0);

    char *cfg = argv[3];
    char *weights = (argc > 4) ? argv[4] : 0;
    if(0==strcmp(argv[2], "train")) train_char_rnn(cfg, weights, filename, clear, tokenized);
    else if(0==strcmp(argv[2], "valid")) valid_char_rnn(cfg, weights, seed);
    else if(0==strcmp(argv[2], "validtactic")) valid_tactic_rnn(cfg, weights, seed);
    else if(0==strcmp(argv[2], "vec")) vec_char_rnn(cfg, weights, seed);
    else if(0==strcmp(argv[2], "generate")) test_char_rnn(cfg, weights, len, seed, temp, rseed, tokens);
    else if(0==strcmp(argv[2], "generatetactic")) test_tactic_rnn(cfg, weights, len, temp, rseed, tokens);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
cmpl $0x4, -0x4(%rbp)
jge 0x5fad1
movq 0x2354c(%rip), %rax     # 0x82ff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
leaq 0x15dcb(%rip), %rsi     # 0x75890
movb $0x0, %al
callq 0x3240
jmp 0x5fd3b
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x15e39(%rip), %rdx     # 0x75918
leaq 0x167ff(%rip), %rcx     # 0x762e5
callq 0x47a0
movq %rax, -0x18(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x167fd(%rip), %rdx     # 0x762fa
leaq 0x162a9(%rip), %rcx     # 0x75dad
callq 0x47a0
movq %rax, -0x20(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x167e5(%rip), %rdx     # 0x76300
movl $0x3e8, %ecx            # imm = 0x3E8
callq 0x4630
movl %eax, -0x24(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x16659(%rip), %rdx     # 0x7618f
movss 0x16696(%rip), %xmm0    # 0x761d4
callq 0x46e0
movss %xmm0, -0x28(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x3290
movl -0x5c(%rbp), %edi
movq -0x58(%rbp), %rsi
movl %eax, %ecx
leaq 0x16796(%rip), %rdx     # 0x76305
callq 0x4630
movl %eax, -0x2c(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x15d80(%rip), %rdx     # 0x75905
callq 0x45a0
movl %eax, -0x30(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x16771(%rip), %rdx     # 0x7630c
callq 0x45a0
movl %eax, -0x34(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x16766(%rip), %rdx     # 0x76317
xorl %eax, %eax
movl %eax, %ecx
callq 0x47a0
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x48(%rbp)
cmpl $0x4, -0x4(%rbp)
jle 0x5fbde
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x68(%rbp)
jmp 0x5fbe6
xorl %eax, %eax
movq %rax, -0x68(%rbp)
jmp 0x5fbe6
movq -0x68(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x15fbf(%rip), %rsi     # 0x75bbc
callq 0x3230
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x5fc27
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x30(%rbp), %ecx
movl -0x34(%rbp), %r8d
callq 0x5e5a0
jmp 0x5fd3b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x13d3d(%rip), %rsi     # 0x73973
callq 0x3230
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x5fc59
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x5f5b0
jmp 0x5fd39
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x166b7(%rip), %rsi     # 0x7631f
callq 0x3230
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x5fc8b
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x5f2f0
jmp 0x5fd37
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x16691(%rip), %rsi     # 0x7632b
callq 0x3230
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x5fcba
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x5f860
jmp 0x5fd35
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x16666(%rip), %rsi     # 0x7632f
callq 0x3230
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x5fcf9
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x20(%rbp), %rcx
movss -0x28(%rbp), %xmm0
movl -0x2c(%rbp), %r8d
movq -0x40(%rbp), %r9
callq 0x5ebf0
jmp 0x5fd33
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x16630(%rip), %rsi     # 0x76338
callq 0x3230
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x5fd31
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl -0x24(%rbp), %edx
movss -0x28(%rbp), %xmm0
movl -0x2c(%rbp), %ecx
movq -0x40(%rbp), %r8
callq 0x5f0c0
jmp 0x5fd33
jmp 0x5fd35
jmp 0x5fd37
jmp 0x5fd39
jmp 0x5fd3b
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)