// File: /workspace/github_c_makefile_star2_O0/morozov312[P]documentary/./src/main.c
// Function: main
int main(int argc, char** argv)
{
    char *start_dir, *dest_dir;
    int argc_flag = Check_argc(argc, argv);
    if (!argc_flag) {
        return 0;
    }
    int argv_flag = Check_argv(argc, argv, &start_dir, &dest_dir);
    if (!argv_flag) {
        return 0;
    }
    if (strcmp(start_dir, "") == 0) {
        printf("\x1b[31m Error! \x1b[0m\n");
        Print_help();
        return 0;
    }
    char** paths_array = (char**)calloc(MAX_COUNT_OF_FILES, sizeof(char*));
    for (int i = 0; i < MAX_COUNT_OF_FILES; i++) {
        paths_array[i] = (char*)calloc(MAX_PATH_LEN, sizeof(char));
    }
    int recursive_exit_flag = 0;
    int recursive_res = Search_files_recursive(
            start_dir, paths_array, &recursive_exit_flag);
    if (recursive_res == -1) {
        printf("%s\n",
               "\x1b[36mWarning!\x1b[0m limit of files for this "
               "folder "
               "overpassed!");
    }
    for (int i = 0; i < MAX_COUNT_OF_FILES; i++) {
        size_t len = strlen(paths_array[i]);
        if (len > 0) {
            Create_document(paths_array[i], dest_dir);
        }
    }
    for (int i = 0; i < MAX_COUNT_OF_FILES; i++) {
        free(paths_array[i]);
    }
    free(paths_array);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x19c0
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
jne 0x12a7
movl $0x0, -0x4(%rbp)
jmp 0x1409
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq -0x18(%rbp), %rdx
leaq -0x20(%rbp), %rcx
callq 0x1aa0
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
jne 0x12d0
movl $0x0, -0x4(%rbp)
jmp 0x1409
movq -0x18(%rbp), %rdi
leaq 0x1e83(%rip), %rsi      # 0x315e
callq 0x1110
cmpl $0x0, %eax
jne 0x1306
leaq 0x1d18(%rip), %rdi      # 0x3004
movb $0x0, %al
callq 0x10b0
movb $0x0, %al
callq 0x1930
movl $0x0, -0x4(%rbp)
jmp 0x1409
movl $0x1e, %edi
movl $0x8, %esi
callq 0x1100
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
cmpl $0x1e, -0x34(%rbp)
jge 0x134f
movl $0xff, %edi
movl $0x1, %esi
callq 0x1100
movq %rax, %rdx
movq -0x30(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x1320
movl $0x0, -0x38(%rbp)
movq -0x18(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0x1610
movl %eax, -0x3c(%rbp)
cmpl $-0x1, -0x3c(%rbp)
jne 0x1385
leaq 0x1d8e(%rip), %rdi      # 0x3105
leaq 0x1c99(%rip), %rsi      # 0x3017
movb $0x0, %al
callq 0x10b0
movl $0x0, -0x40(%rbp)
cmpl $0x1e, -0x40(%rbp)
jge 0x13d0
movq -0x30(%rbp), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x1080
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jbe 0x13c3
movq -0x30(%rbp), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x20(%rbp), %rsi
callq 0x2930
jmp 0x13c5
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0x138c
movl $0x0, -0x4c(%rbp)
cmpl $0x1e, -0x4c(%rbp)
jge 0x13f9
movq -0x30(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x1030
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x13d7
movq -0x30(%rbp), %rdi
callq 0x1030
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)