// File: /workspace/github_c_makefile_star2_O2/morozov312[P]documentary/./src/processing.c
// Function: Create_struct_of_data
comment* Create_struct_of_data(
        int qty_lines, char** document_data, int* qty_structs, int* start_flag)
{
    comment* comments_array = (comment*)calloc(qty_lines, sizeof(comment));
    *qty_structs = 0;
    for (int i = 0; i < qty_lines - 1; i++) {
        //=========================================================================
        char* current_s = document_data[i];
        char* next_s = document_data[i + 1];
        int multiline_begin_flag = Check_multiline_comment_begin(current_s);
        int multiline_end_flag = Check_multiline_comment_end(current_s);
        int multiline_doc_flag = Check_multiline_documentary_comment(current_s);
        int singleline_doc_flag = Check_single_documentary_comment(current_s);
        int code_Check_flag = Check_code(next_s);
        char* str_whithout_star = Del_multiline_comment_stars(current_s);
        char* str_whithout_doc = Del_documentary_comment_symbols(current_s);
        char* s_whithout_end = Del_multiline_comment_end(str_whithout_star);
        //========================================================================
        /// Check to begin multiline documentary comment
        if (multiline_doc_flag && !*start_flag) {
            *start_flag = 1;
            comments_array[*qty_structs].comment_data = str_whithout_doc;
            comments_array[*qty_structs].code_string = "";
            if (!multiline_end_flag) {
                *qty_structs = *qty_structs + 1;
            }
        }
        /// search lines between end and begin multiline doucumentary comment
        if (*start_flag && !multiline_end_flag && !multiline_begin_flag) {
            comments_array[*qty_structs].comment_data = str_whithout_star;
            comments_array[*qty_structs].code_string = "";
            *qty_structs = *qty_structs + 1;
        }
        /// Checking at the end of the documentary comment
        if (multiline_end_flag) {
            /// in case if multiline comment writing in one-line
            if (multiline_begin_flag) {
                char* no_symb = Del_documentary_comment_symbols(s_whithout_end);
                comments_array[*qty_structs].comment_data = no_symb;
            } else {
                comments_array[*qty_structs].comment_data = s_whithout_end;
            }
            //=============================================================
            if (code_Check_flag) {
                comments_array[*qty_structs].code_string = next_s;
            } else {
                comments_array[*qty_structs].code_string = "";
            }
            *qty_structs = *qty_structs + 1;
            *start_flag = 0;
        }
        /// search singleline comment if there wasn't start of multiline comment
        if (singleline_doc_flag && !*start_flag) {
            comments_array[*qty_structs].comment_data = str_whithout_doc;
            if (code_Check_flag) {
                comments_array[*qty_structs].code_string = next_s;
            } else {
                comments_array[*qty_structs].code_string = "";
            }
            *qty_structs = *qty_structs + 1;
        }
    }
    return comments_array;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, -0x60(%rbp)
movslq %edi, %r14
pushq $0x10
popq %rsi
movq %r14, %rdi
callq 0x2180
movq %rbx, -0x38(%rbp)
andl $0x0, (%rbx)
cmpl $0x2, %r14d
pushq $0x1
popq %rcx
cmovll %ecx, %r14d
movq %rax, -0x30(%rbp)
decl %r14d
movq %r14, -0x68(%rbp)
xorl %ebx, %ebx
cmpq %rbx, -0x68(%rbp)
je 0x48b2
movq -0x60(%rbp), %rax
movq (%rax,%rbx,8), %r13
movq %rbx, -0x58(%rbp)
movq 0x8(%rax,%rbx,8), %r15
movq %r13, %rdi
callq 0x419c
movl %eax, -0x40(%rbp)
movq %r13, %rdi
callq 0x41d8
movl %eax, %r14d
movq %r13, %rdi
callq 0x4356
movq %r12, %rbx
movl %eax, %r12d
movq %r13, %rdi
callq 0x4319
movl %eax, -0x44(%rbp)
movq %r15, -0x50(%rbp)
movq %r15, %rdi
callq 0x468e
movl %eax, -0x3c(%rbp)
movq %r13, %rdi
callq 0x428c
movq %rax, %r15
movq %r13, %rdi
callq 0x4214
movq %rax, %r13
movq %r15, %rdi
callq 0x4260
testl %r12d, %r12d
movq %rbx, %r12
setne %dl
movl (%rbx), %ecx
testl %ecx, %ecx
sete %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x47e5
movl $0x1, (%r12)
movq -0x38(%rbp), %rcx
movslq (%rcx), %rdx
movq %rdx, %rcx
shlq $0x4, %rcx
movq -0x30(%rbp), %rsi
movq %r13, (%rsi,%rcx)
leaq 0x1362(%rip), %rdi      # 0x5b2e
movq %rdi, 0x8(%rsi,%rcx)
pushq $0x1
popq %rcx
testl %r14d, %r14d
jne 0x47e5
incl %edx
movq -0x38(%rbp), %rcx
movl %edx, (%rcx)
movl (%r12), %ecx
testl %ecx, %ecx
sete %cl
movl %r14d, %edx
movl -0x40(%rbp), %esi
orl %esi, %edx
setne %dl
orb %cl, %dl
je 0x4845
testl %r14d, %r14d
movq -0x58(%rbp), %rbx
je 0x486d
testl %esi, %esi
je 0x480e
movq %rax, %rdi
callq 0x4214
movq -0x38(%rbp), %rsi
movslq (%rsi), %rcx
leal 0x1(%rcx), %edx
shlq $0x4, %rcx
movq -0x30(%rbp), %rdi
movq %rax, (%rdi,%rcx)
cmpl $0x0, -0x3c(%rbp)
movq -0x50(%rbp), %rax
leaq 0x12fb(%rip), %r8       # 0x5b2e
cmoveq %r8, %rax
movq %rax, 0x8(%rdi,%rcx)
movl %edx, (%rsi)
andl $0x0, (%r12)
jmp 0x486d
movq -0x38(%rbp), %rdx
movslq (%rdx), %rax
leal 0x1(%rax), %ecx
shlq $0x4, %rax
movq -0x30(%rbp), %rsi
movq %r15, (%rsi,%rax)
leaq 0x12cc(%rip), %rdi      # 0x5b2e
movq %rdi, 0x8(%rsi,%rax)
movl %ecx, (%rdx)
movq -0x58(%rbp), %rbx
cmpl $0x0, -0x44(%rbp)
je 0x48aa
cmpl $0x0, (%r12)
jne 0x48aa
movq -0x38(%rbp), %rdx
movslq (%rdx), %rax
leal 0x1(%rax), %ecx
shlq $0x4, %rax
movq -0x30(%rbp), %rsi
movq %r13, (%rsi,%rax)
cmpl $0x0, -0x3c(%rbp)
leaq 0x1293(%rip), %rdi      # 0x5b2e
movq -0x50(%rbp), %r8
cmoveq %rdi, %r8
movq %r8, 0x8(%rsi,%rax)
movl %ecx, (%rdx)
incq %rbx
jmp 0x4716
movq -0x30(%rbp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq