// File: /workspace/github_c_makefile_star2_O3/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, -0x70(%rbp)
movq %rdi, -0x40(%rbp)
movslq %edi, %rbx
movl $0x10, %esi
movq %rbx, %rdi
callq 0x2180
movq %rax, -0x30(%rbp)
movl $0x0, (%r14)
cmpl $0x2, %ebx
jl 0x4995
movq -0x40(%rbp), %rax
decl %eax
movq %rax, -0x40(%rbp)
xorl %ebx, %ebx
movq %r14, -0x68(%rbp)
movq -0x70(%rbp), %rax
movq (%rax,%rbx,8), %r13
movq 0x8(%rax,%rbx,8), %r15
movq %r13, %rdi
callq 0x4240
movl %eax, -0x48(%rbp)
movq %r13, %rdi
callq 0x4280
movl %eax, -0x44(%rbp)
movq %r13, %rdi
callq 0x4425
movq %r12, %r14
movl %eax, %r12d
movq %r13, %rdi
callq 0x43e6
movl %eax, -0x4c(%rbp)
movq %r15, -0x60(%rbp)
movq %r15, %rdi
callq 0x4758
movl %eax, -0x34(%rbp)
movq %r13, %rdi
callq 0x433a
movq %rax, %r15
movq %r13, %rdi
callq 0x42c0
movq %rax, -0x58(%rbp)
movq %r15, %r13
movq %r15, %rdi
callq 0x430e
movl -0x48(%rbp), %r9d
movl -0x44(%rbp), %r10d
testl %r12d, %r12d
movq %r14, %r12
movq -0x68(%rbp), %r14
setne %dl
movl (%r12), %ecx
testl %ecx, %ecx
sete %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x48c2
movl $0x1, (%r12)
movl (%r14), %ecx
movslq %ecx, %rdx
movq %rdx, %rsi
shlq $0x4, %rsi
movq -0x30(%rbp), %rdi
movq -0x58(%rbp), %r8
movq %r8, (%rdi,%rsi)
leaq 0x1286(%rip), %r8       # 0x5b2e
movq %r8, 0x8(%rdi,%rsi)
testl %r10d, %r10d
je 0x48b9
testl %r9d, %r9d
jne 0x48de
jmp 0x48ec
incl %ecx
movl %ecx, (%r14)
movl (%r12), %ecx
testl %ecx, %ecx
sete %cl
movl %r10d, %edx
orl %r9d, %edx
setne %dl
orb %cl, %dl
je 0x4929
testl %r10d, %r10d
je 0x494a
testl %r9d, %r9d
je 0x48e6
movq %rax, %rdi
callq 0x42c0
movl (%r14), %ecx
movslq %ecx, %rdx
shlq $0x4, %rdx
cmpl $0x0, -0x34(%rbp)
movq -0x60(%rbp), %rsi
leaq 0x122f(%rip), %rdi      # 0x5b2e
cmoveq %rdi, %rsi
movq -0x30(%rbp), %rdi
movq %rax, (%rdi,%rdx)
movslq %ecx, %rax
movq %rax, %rcx
shlq $0x4, %rcx
movq %rsi, 0x8(%rdi,%rcx)
incl %eax
movl %eax, (%r14)
movl $0x0, (%r12)
jmp 0x494a
movslq (%r14), %rax
leal 0x1(%rax), %ecx
shlq $0x4, %rax
movq -0x30(%rbp), %rdx
movq %r13, (%rdx,%rax)
leaq 0x11ec(%rip), %rsi      # 0x5b2e
movq %rsi, 0x8(%rdx,%rax)
movl %ecx, (%r14)
cmpl $0x0, -0x4c(%rbp)
je 0x4988
cmpl $0x0, (%r12)
jne 0x4988
movslq (%r14), %rax
leal 0x1(%rax), %ecx
shlq $0x4, %rax
movq -0x30(%rbp), %rdx
movq -0x58(%rbp), %rsi
movq %rsi, (%rdx,%rax)
cmpl $0x0, -0x34(%rbp)
leaq 0x11b6(%rip), %rsi      # 0x5b2e
movq -0x60(%rbp), %rdi
cmoveq %rsi, %rdi
movq %rdi, 0x8(%rdx,%rax)
movl %ecx, (%r14)
incq %rbx
cmpq %rbx, -0x40(%rbp)
jne 0x47eb
movq -0x30(%rbp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq