// File: /workspace/github_c_makefile_star2_O1/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, %r14
movq %rsi, -0x68(%rbp)
movq %rdi, -0x48(%rbp)
movslq %edi, %rbx
movl $0x10, %esi
movq %rbx, %rdi
callq 0x2180
movq %rax, -0x30(%rbp)
movq %r14, -0x38(%rbp)
movl $0x0, (%r14)
cmpl $0x2, %ebx
jl 0x49f0
movq -0x48(%rbp), %rax
decl %eax
movq %rax, -0x48(%rbp)
xorl %ebx, %ebx
movq -0x68(%rbp), %rax
movq (%rax,%rbx,8), %r13
movq 0x8(%rax,%rbx,8), %r15
movq %r13, %rdi
callq 0x429e
movl %eax, -0x50(%rbp)
movq %r13, %rdi
callq 0x42e0
movl %eax, -0x4c(%rbp)
movq %r13, %rdi
callq 0x4489
movq %r12, %r14
movl %eax, %r12d
movq %r13, %rdi
callq 0x444a
movl %eax, -0x54(%rbp)
movq %r15, -0x60(%rbp)
movq %r15, %rdi
callq 0x47dc
movl %eax, -0x3c(%rbp)
movq %r13, %rdi
callq 0x439e
movq %rax, %r15
movq %r13, %rdi
callq 0x4324
movq %rax, %r13
movq %r15, %rdi
callq 0x4372
movl -0x4c(%rbp), %r10d
testl %r12d, %r12d
movq %r14, %r12
je 0x4922
cmpl $0x0, (%r12)
jne 0x4922
movl $0x1, (%r12)
movq -0x38(%rbp), %rcx
movslq (%rcx), %rcx
movq %rcx, %rdx
shlq $0x4, %rdx
movq -0x30(%rbp), %rsi
movq %r13, (%rsi,%rdx)
leaq 0x121f(%rip), %rdi      # 0x5b2f
movq %rdi, 0x8(%rsi,%rdx)
testl %r10d, %r10d
jne 0x4922
incl %ecx
movq -0x38(%rbp), %rdx
movl %ecx, (%rdx)
cmpl $0x0, (%r12)
sete %cl
movl %r10d, %edx
movl -0x50(%rbp), %r9d
orl %r9d, %edx
setne %dl
orb %cl, %dl
jne 0x495f
movq -0x38(%rbp), %rsi
movslq (%rsi), %rcx
leal 0x1(%rcx), %edx
shlq $0x4, %rcx
movq -0x30(%rbp), %rdi
movq %r15, (%rdi,%rcx)
leaq 0x11d7(%rip), %r8       # 0x5b2f
movq %r8, 0x8(%rdi,%rcx)
movl %edx, (%rsi)
testl %r10d, %r10d
je 0x49a6
testl %r9d, %r9d
je 0x4971
movq %rax, %rdi
callq 0x4324
movq -0x38(%rbp), %rdx
movslq (%rdx), %rcx
shlq $0x4, %rcx
movq -0x30(%rbp), %rsi
movq %rax, (%rsi,%rcx)
cmpl $0x0, -0x3c(%rbp)
movq -0x60(%rbp), %rax
leaq 0x119c(%rip), %rdi      # 0x5b2f
cmoveq %rdi, %rax
movq %rax, 0x8(%rsi,%rcx)
incl (%rdx)
movl $0x0, (%r12)
cmpl $0x0, -0x54(%rbp)
je 0x49e3
cmpl $0x0, (%r12)
jne 0x49e3
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 0x115b(%rip), %rdi      # 0x5b2f
movq -0x60(%rbp), %r8
cmoveq %rdi, %r8
movq %r8, 0x8(%rsi,%rax)
movl %ecx, (%rdx)
incq %rbx
cmpq %rbx, -0x48(%rbp)
jne 0x486f
movq -0x30(%rbp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq