// File: /workspace/github_c_makefile_star2_O0/morozov312[P]documentary/./src/utilities.c
// Function: Check_argv
int Check_argv(int argc, char** array_argv, char** inpdir, char** outdir)
{
    const char input_directory[] = "-inpdir";
    const char output_directory[] = "-outdir";
    /// Default input dir
    *inpdir = "";
    /// Default output dir
    *outdir = ".";
    for (int i = 1; i < argc; i++) {
        char* current_str = array_argv[i];
        char* next_str = array_argv[i + 1];
        int check_inp = strcmp(current_str, input_directory);
        int check_out = strcmp(current_str, output_directory);
        int check_help = strcmp(current_str, HELP_FLAG);
        int check_version = strcmp(current_str, VERSION_FLAG);
        if (check_inp && check_out && check_help && check_version) {
            printf("\'%s\'%s \n",
                   array_argv[i],
                   " Is not a command. See \'--help\'");
            return 0;
        }
        if (!check_inp) {
            /// --help for -inpdir
            if (!strcmp(next_str, HELP_FLAG)) {
                printf("%s\n", "Path to source dir");
                return 0;
            } else {
                if (array_argv[i + 1][0] != '.') {
                    printf("\'%s\'%s\n", array_argv[i + 1], " Is wrong path");
                    return 0;
                }
                *inpdir = next_str;
                i++;
            }
        }
        if (!check_out) {
            /// --help for -outdir
            if (!strcmp(next_str, HELP_FLAG)) {
                printf("%s\n",
                       "Path to output dir (default - your current dir)");
                return 0;
            } else {
                *outdir = next_str;
                i++;
            }
        }
    }
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq 0x1710(%rip), %rax      # 0x62de
movq %rax, -0x28(%rbp)
movq 0x1713(%rip), %rax      # 0x62ec
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
leaq 0x1f55(%rip), %rcx      # 0x6b3d
movq %rcx, (%rax)
movq -0x20(%rbp), %rax
leaq 0x1e83(%rip), %rcx      # 0x6a79
movq %rcx, (%rax)
movl $0x1, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x4db9
movq -0x10(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movl -0x34(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x2190
movl %eax, -0x4c(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x2190
movl %eax, -0x50(%rbp)
movq -0x40(%rbp), %rdi
leaq 0x16c1(%rip), %rsi      # 0x631d
callq 0x2190
movl %eax, -0x54(%rbp)
movq -0x40(%rbp), %rdi
leaq 0x16a4(%rip), %rsi      # 0x6313
callq 0x2190
movl %eax, -0x58(%rbp)
cmpl $0x0, -0x4c(%rbp)
je 0x4cbc
cmpl $0x0, -0x50(%rbp)
je 0x4cbc
cmpl $0x0, -0x54(%rbp)
je 0x4cbc
cmpl $0x0, -0x58(%rbp)
je 0x4cbc
movq -0x10(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x1e93(%rip), %rdi      # 0x6b35
leaq 0x1e95(%rip), %rdx      # 0x6b3e
movb $0x0, %al
callq 0x20f0
movl $0x0, -0x4(%rbp)
jmp 0x4dc0
cmpl $0x0, -0x4c(%rbp)
jne 0x4d5a
movq -0x48(%rbp), %rdi
leaq 0x164c(%rip), %rsi      # 0x631d
callq 0x2190
cmpl $0x0, %eax
jne 0x4cfc
leaq 0x1e23(%rip), %rdi      # 0x6b05
leaq 0x1e75(%rip), %rsi      # 0x6b5e
movb $0x0, %al
callq 0x20f0
movl $0x0, -0x4(%rbp)
jmp 0x4dc0
movq -0x10(%rbp), %rax
movl -0x34(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
je 0x4d44
movq -0x10(%rbp), %rax
movl -0x34(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x1e44(%rip), %rdi      # 0x6b71
leaq 0x1e45(%rip), %rdx      # 0x6b79
movb $0x0, %al
callq 0x20f0
movl $0x0, -0x4(%rbp)
jmp 0x4dc0
movq -0x48(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x4d5a
cmpl $0x0, -0x50(%rbp)
jne 0x4da9
movq -0x48(%rbp), %rdi
leaq 0x15b2(%rip), %rsi      # 0x631d
callq 0x2190
cmpl $0x0, %eax
jne 0x4d93
leaq 0x1d89(%rip), %rdi      # 0x6b05
leaq 0x1e05(%rip), %rsi      # 0x6b88
movb $0x0, %al
callq 0x20f0
movl $0x0, -0x4(%rbp)
jmp 0x4dc0
movq -0x48(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x4da9
jmp 0x4dab
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x4c00
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)