// File: /workspace/github_c_makefile_star2_O0/justy989[P]ce/ce_draw_term.c
// Function: draw_layout
static void _draw_layout(CeLayout_t* layout, CeVim_t* vim, CeVimVisualData_t* visual, CeMacros_t* macros,
                         CeBuffer_t* input_buffer, CeColorDefs_t* color_defs, int64_t tab_width, CeLineNumber_t line_number,
                         CeVisualLineDisplayType_t visual_line_display_type, CeLayout_t* current, CeSyntaxDef_t* syntax_defs,
                         int64_t terminal_width, bool highlight_search, int ui_fg_color, int ui_bg_color,
                         CeRune_t show_line_extends_passed_view_as){
     switch(layout->type){
     default:
          break;
     case CE_LAYOUT_TYPE_VIEW:
     {
          CeDrawColorList_t draw_color_list = {};
          CeAppBufferData_t* buffer_data = layout->view.buffer->app_data;

          if(buffer_data->syntax_function){
               CeRangeList_t range_list = {};
               // add to the highlight range list only if this is the current view
               if(layout == current){
                    switch(vim->mode){
                    default:
                         break;
                    case CE_VIM_MODE_VISUAL:
                    {
                         CeRange_t range = {visual->point, layout->view.cursor};
                         ce_range_sort(&range);
                         ce_range_list_insert(&range_list, range.start, range.end);
                    } break;
                    case CE_VIM_MODE_VISUAL_LINE:
                    {
                         CeRange_t range = {visual->point, layout->view.cursor};
                         ce_range_sort(&range);
                         range.start.x = 0;
                         range.end.x = ce_utf8_last_index(layout->view.buffer->lines[range.end.y]) + 1;
                         ce_range_list_insert(&range_list, range.start, range.end);
                    } break;
                    case CE_VIM_MODE_VISUAL_BLOCK:
                    {
                         CeRange_t range = {visual->point, layout->view.cursor};
                         if(range.start.x > range.end.x){
                              int64_t tmp = range.start.x;
                              range.start.x = range.end.x;
                              range.end.x = tmp;
                         }
                         if(range.start.y > range.end.y){
                              int64_t tmp = range.start.y;
                              range.start.y = range.end.y;
                              range.end.y = tmp;
                         }
                         for(int64_t i = range.start.y; i <= range.end.y; i++){
                              CePoint_t start = {range.start.x, i};
                              CePoint_t end = {range.end.x, i};
                              ce_range_list_insert(&range_list, start, end);
                         }
                    } break;
                    }
               }

               // TODO: doesn't work for multiline searches
               if(highlight_search){
                    const char* pattern = NULL;

                    if((strcmp(input_buffer->name, "Search") == 0 ||
                        strcmp(input_buffer->name, "Reverse Search") == 0 ||
                        strcmp(input_buffer->name, "Regex Search") == 0 ||
                        strcmp(input_buffer->name, "Regex Reverse Search") == 0) &&
                       input_buffer->line_count && strlen(input_buffer->lines[0])){
                         pattern = input_buffer->lines[0];
                    }else{
                         const CeVimYank_t* yank = vim->yanks + ce_vim_register_index('/');
                         if(yank->text) pattern = yank->text;
                    }

                    if(pattern){
                         int64_t pattern_len = ce_utf8_strlen(pattern);
                         int64_t min = layout->view.scroll.y;
                         int64_t max = min + (layout->view.rect.bottom - layout->view.rect.top);
                         int64_t clamp_max = (layout->view.buffer->line_count - 1);
                         CE_CLAMP(min, 0, clamp_max);
                         CE_CLAMP(max, 0, clamp_max);

                         if(vim->search_mode == CE_VIM_SEARCH_MODE_FORWARD ||
                            vim->search_mode == CE_VIM_SEARCH_MODE_BACKWARD){
                              for(int64_t i = min; i <= max; i++){
                                   char* match = NULL;
                                   char* itr = layout->view.buffer->lines[i];
                                   while((match = strstr(itr, pattern))){
                                        CePoint_t start = {ce_utf8_strlen_between(layout->view.buffer->lines[i], match) - 1, i};
                                        CePoint_t end = {start.x + (pattern_len - 1), i};
                                        ce_range_list_insert(&range_list, start, end);
                                        itr = match + pattern_len;
                                   }
                              }
                         }else if(vim->search_mode == CE_VIM_SEARCH_MODE_REGEX_FORWARD ||
                                  vim->search_mode == CE_VIM_SEARCH_MODE_REGEX_BACKWARD){
                              CeRegex_t regex = NULL;
                              CeRegexResult_t regex_result = ce_regex_init(pattern,
                                                                           &regex);
                              if(regex_result.error_message == NULL){
                                   for(int64_t i = min; i <= max; i++){
                                        char* itr = layout->view.buffer->lines[i];
                                        int64_t prev_end_x = 0;
                                        while(itr){
                                             regex_result = ce_regex_match(regex, itr);
                                             if(regex_result.error_message != NULL){
                                                  free(regex_result.error_message);
                                                  break;
                                             }else{
                                                  if(regex_result.match_length > 0){
                                                       CePoint_t start = {prev_end_x + regex_result.match_start, i};
                                                       CePoint_t end = {start.x + (regex_result.match_length - 1), i};
                                                       ce_range_list_insert(&range_list, start, end);
                                                       itr = ce_utf8_iterate_to(itr, regex_result.match_start + regex_result.match_length);
                                                       prev_end_x = end.x + 1;
                                                  }else{
                                                       break;
                                                  }
                                             }
                                        }
                                   }
                                   ce_regex_free(regex);
                              }else{
                                   free(regex_result.error_message);
                              }
                         }
                    }
               }

               buffer_data->syntax_function(&layout->view, &range_list, &draw_color_list, syntax_defs,
                                            layout->view.buffer->syntax_data);
               ce_range_list_free(&range_list);
          }

          _draw_view(&layout->view, tab_width, line_number, visual_line_display_type, &draw_color_list, color_defs, syntax_defs,
                    terminal_width, show_line_extends_passed_view_as);
          ce_draw_color_list_free(&draw_color_list);
          _draw_view_status(&layout->view, layout == current ? vim : NULL, macros, color_defs, 0,
                           ui_fg_color, ui_bg_color);
          int64_t rect_height = layout->view.rect.bottom - layout->view.rect.top;
          int color_pair = ce_color_def_get(color_defs, ui_fg_color, ui_bg_color);
          attron(COLOR_PAIR(color_pair));
          if(layout->view.rect.right < (terminal_width - 1)){
               for(int i = 0; i < rect_height; i++){
                    mvaddch(layout->view.rect.top + i, layout->view.rect.right, ' ');
               }
          }
     } break;
     case CE_LAYOUT_TYPE_LIST:
          for(int64_t i = 0; i < layout->list.layout_count; i++){
               _draw_layout(layout->list.layouts[i], vim, visual, macros, input_buffer, color_defs, tab_width,
                           line_number, visual_line_display_type, current, syntax_defs, terminal_width, highlight_search,
                           ui_fg_color, ui_bg_color, show_line_extends_passed_view_as);
          }
          break;
     case CE_LAYOUT_TYPE_TAB:
          _draw_layout(layout->tab.root, vim, visual, macros, input_buffer, color_defs, tab_width, line_number,
                      visual_line_display_type, current, syntax_defs, terminal_width, highlight_search, ui_fg_color, ui_bg_color,
                      show_line_extends_passed_view_as);
          break;
     }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x298, %rsp            # imm = 0x298
movl 0x58(%rbp), %eax
movl 0x50(%rbp), %eax
movl 0x48(%rbp), %eax
movb 0x40(%rbp), %al
movq 0x38(%rbp), %r10
movq 0x30(%rbp), %r10
movq 0x28(%rbp), %r10
movl 0x20(%rbp), %r10d
movl 0x18(%rbp), %r10d
movq 0x10(%rbp), %r10
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdx, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movq %r8, -0x50(%rbp)
movq %r9, -0x58(%rbp)
andb $0x1, %al
movb %al, -0x59(%rbp)
movq -0x30(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x214(%rbp)
testl %eax, %eax
je 0x23b5e
jmp 0x23b37
movl -0x214(%rbp), %eax
subl $0x1, %eax
je 0x24562
jmp 0x23b48
movl -0x214(%rbp), %eax
subl $0x2, %eax
je 0x24649
jmp 0x23b59
jmp 0x246e9
leaq -0x70(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0xd290
movq -0x30(%rbp), %rax
movq 0x48(%rax), %rax
movq 0x58(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
cmpq $0x0, 0x600(%rax)
je 0x243ec
leaq -0x88(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0xd290
movq -0x30(%rbp), %rax
cmpq 0x28(%rbp), %rax
jne 0x23e34
movq -0x38(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x218(%rbp)
subl $0x2, %eax
je 0x23beb
jmp 0x23bc4
movl -0x218(%rbp), %eax
subl $0x3, %eax
je 0x23c57
jmp 0x23bd5
movl -0x218(%rbp), %eax
subl $0x4, %eax
je 0x23cf4
jmp 0x23be6
jmp 0x23e32
movq -0x40(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0xa8(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rcx
movq %rcx, -0x98(%rbp)
movq 0x40(%rax), %rax
movq %rax, -0x90(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x12840
movq -0xa8(%rbp), %rsi
movq -0xa0(%rbp), %rdx
movq -0x98(%rbp), %rcx
movq -0x90(%rbp), %r8
leaq -0x88(%rbp), %rdi
callq 0x2b360
jmp 0x23e32
movq -0x40(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0xc8(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0xc0(%rbp)
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rcx
movq %rcx, -0xb8(%rbp)
movq 0x40(%rax), %rax
movq %rax, -0xb0(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x12840
movq $0x0, -0xc8(%rbp)
movq -0x30(%rbp), %rax
movq 0x48(%rax), %rax
movq (%rax), %rax
movq -0xb0(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0xf1f0
addq $0x1, %rax
movq %rax, -0xb8(%rbp)
movq -0xc8(%rbp), %rsi
movq -0xc0(%rbp), %rdx
movq -0xb8(%rbp), %rcx
movq -0xb0(%rbp), %r8
leaq -0x88(%rbp), %rdi
callq 0x2b360
jmp 0x23e32
movq -0x40(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0xe8(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0xe0(%rbp)
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rcx
movq %rcx, -0xd8(%rbp)
movq 0x40(%rax), %rax
movq %rax, -0xd0(%rbp)
movq -0xe8(%rbp), %rax
cmpq -0xd8(%rbp), %rax
jle 0x23d61
movq -0xe8(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xe0(%rbp), %rax
cmpq -0xd0(%rbp), %rax
jle 0x23d9b
movq -0xe0(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rax
cmpq -0xd0(%rbp), %rax
jg 0x23e30
movq -0xe8(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
movq -0x120(%rbp), %rcx
movq -0x118(%rbp), %r8
leaq -0x88(%rbp), %rdi
callq 0x2b360
movq -0x100(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x100(%rbp)
jmp 0x23da9
jmp 0x23e32
jmp 0x23e34
testb $0x1, -0x59(%rbp)
je 0x243b0
movq $0x0, -0x128(%rbp)
movq -0x50(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x207a0(%rip), %rsi     # 0x445f8
callq 0xd370
cmpl $0x0, %eax
je 0x23ead
movq -0x50(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2077f(%rip), %rsi     # 0x445f0
callq 0xd370
cmpl $0x0, %eax
je 0x23ead
movq -0x50(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x204cc(%rip), %rsi     # 0x44356
callq 0xd370
cmpl $0x0, %eax
je 0x23ead
movq -0x50(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x20747(%rip), %rsi     # 0x445ea
callq 0xd370
cmpl $0x0, %eax
jne 0x23ee0
movq -0x50(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x23ee0
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rdi
callq 0xd200
cmpq $0x0, %rax
je 0x23ee0
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, -0x128(%rbp)
jmp 0x23f35
movq -0x38(%rbp), %rax
addq $0x1050, %rax           # imm = 0x1050
movq %rax, -0x220(%rbp)
movl $0x2f, %edi
callq 0x33a80
movq %rax, %rcx
movq -0x220(%rbp), %rax
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x23f33
movq -0x130(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x128(%rbp)
jmp 0x23f35
cmpq $0x0, -0x128(%rbp)
je 0x243ae
movq -0x128(%rbp), %rdi
callq 0xea70
movq %rax, -0x138(%rbp)
movq -0x30(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rax
movq -0x30(%rbp), %rcx
movq 0x20(%rcx), %rcx
movq -0x30(%rbp), %rdx
subq 0x18(%rdx), %rcx
addq %rcx, %rax
movq %rax, -0x148(%rbp)
movq -0x30(%rbp), %rax
movq 0x48(%rax), %rax
movq 0x8(%rax), %rax
subq $0x1, %rax
movq %rax, -0x150(%rbp)
cmpq $0x0, -0x140(%rbp)
jge 0x23fb2
xorl %eax, %eax
movq %rax, -0x228(%rbp)
jmp 0x23fee
movq -0x140(%rbp), %rax
cmpq -0x150(%rbp), %rax
jle 0x23fd2
movq -0x150(%rbp), %rax
movq %rax, -0x230(%rbp)
jmp 0x23fe0
movq -0x140(%rbp), %rax
movq %rax, -0x230(%rbp)
movq -0x230(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x140(%rbp)
cmpq $0x0, -0x148(%rbp)
jge 0x24011
xorl %eax, %eax
movq %rax, -0x238(%rbp)
jmp 0x2404d
movq -0x148(%rbp), %rax
cmpq -0x150(%rbp), %rax
jle 0x24031
movq -0x150(%rbp), %rax
movq %rax, -0x240(%rbp)
jmp 0x2403f
movq -0x148(%rbp), %rax
movq %rax, -0x240(%rbp)
movq -0x240(%rbp), %rax
movq %rax, -0x238(%rbp)
movq -0x238(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x38(%rbp), %rax
cmpl $0x0, 0x19dc(%rax)
je 0x24079
movq -0x38(%rbp), %rax
cmpl $0x1, 0x19dc(%rax)
jne 0x241ac
movq -0x140(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rax
cmpq -0x148(%rbp), %rax
jg 0x241a7
movq $0x0, -0x160(%rbp)
movq -0x30(%rbp), %rax
movq 0x48(%rax), %rax
movq (%rax), %rax
movq -0x158(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x168(%rbp)
movq -0x168(%rbp), %rdi
movq -0x128(%rbp), %rsi
callq 0xd6d0
movq %rax, -0x160(%rbp)
cmpq $0x0, %rax
je 0x2418e
movq -0x30(%rbp), %rax
movq 0x48(%rax), %rax
movq (%rax), %rax
movq -0x158(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x160(%rbp), %rsi
callq 0x11a20
subq $0x1, %rax
movq %rax, -0x178(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x178(%rbp), %rax
movq -0x138(%rbp), %rcx
subq $0x1, %rcx
addq %rcx, %rax
movq %rax, -0x188(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x178(%rbp), %rsi
movq -0x170(%rbp), %rdx
movq -0x188(%rbp), %rcx
movq -0x180(%rbp), %r8
leaq -0x88(%rbp), %rdi
callq 0x2b360
movq -0x160(%rbp), %rax
addq -0x138(%rbp), %rax
movq %rax, -0x168(%rbp)
jmp 0x240c3
jmp 0x24190
movq -0x158(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x158(%rbp)
jmp 0x24087
jmp 0x243ac
movq -0x38(%rbp), %rax
cmpl $0x2, 0x19dc(%rax)
je 0x241ca
movq -0x38(%rbp), %rax
cmpl $0x3, 0x19dc(%rax)
jne 0x243aa
movq $0x0, -0x190(%rbp)
movq -0x128(%rbp), %rsi
leaq -0x1a8(%rbp), %rdi
leaq -0x190(%rbp), %rdx
callq 0x2a950
cmpq $0x0, -0x1a8(%rbp)
jne 0x2439c
movq -0x140(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rax
cmpq -0x148(%rbp), %rax
jg 0x2438e
movq -0x30(%rbp), %rax
movq 0x48(%rax), %rax
movq (%rax), %rax
movq -0x1b0(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x1b8(%rbp)
movq $0x0, -0x1c0(%rbp)
cmpq $0x0, -0x1b8(%rbp)
je 0x24375
movq -0x190(%rbp), %rsi
movq -0x1b8(%rbp), %rdx
leaq -0x1d8(%rbp), %rdi
callq 0x2aa10
movq -0x1d8(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x1c8(%rbp), %rax
movq %rax, -0x198(%rbp)
cmpq $0x0, -0x1a8(%rbp)
je 0x242b4
movq -0x1a8(%rbp), %rdi
callq 0xd090
jmp 0x24375
cmpq $0x0, -0x198(%rbp)
jle 0x2436c
movq -0x1c0(%rbp), %rax
addq -0x1a0(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0x1e8(%rbp), %rax
movq -0x198(%rbp), %rcx
subq $0x1, %rcx
addq %rcx, %rax
movq %rax, -0x1f8(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movq -0x1e8(%rbp), %rsi
movq -0x1e0(%rbp), %rdx
movq -0x1f8(%rbp), %rcx
movq -0x1f0(%rbp), %r8
leaq -0x88(%rbp), %rdi
callq 0x2b360
movq -0x1b8(%rbp), %rdi
movq -0x1a0(%rbp), %rsi
addq -0x198(%rbp), %rsi
callq 0xeca0
movq %rax, -0x1b8(%rbp)
movq -0x1f8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1c0(%rbp)
jmp 0x2436e
jmp 0x24375
jmp 0x24370
jmp 0x24247
jmp 0x24377
movq -0x1b0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1b0(%rbp)
jmp 0x2420b
movq -0x190(%rbp), %rdi
callq 0x2aaf0
jmp 0x243a8
movq -0x1a8(%rbp), %rdi
callq 0xd090
jmp 0x243aa
jmp 0x243ac
jmp 0x243ae
jmp 0x243b0
movq -0x78(%rbp), %rax
movq 0x600(%rax), %rax
movq -0x30(%rbp), %rdi
addq $0x8, %rdi
movq 0x30(%rbp), %rcx
movq -0x30(%rbp), %rdx
movq 0x48(%rdx), %rdx
movq 0x60(%rdx), %r8
leaq -0x88(%rbp), %rsi
leaq -0x70(%rbp), %rdx
callq *%rax
leaq -0x88(%rbp), %rdi
callq 0x2b5a0
movq -0x30(%rbp), %rdi
addq $0x8, %rdi
movq 0x10(%rbp), %rsi
movl 0x18(%rbp), %edx
movl 0x20(%rbp), %ecx
movq -0x58(%rbp), %r9
movq 0x30(%rbp), %r11
movq 0x38(%rbp), %r10
movl 0x58(%rbp), %eax
leaq -0x70(%rbp), %r8
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x24700
leaq -0x70(%rbp), %rdi
callq 0x2b300
movq -0x30(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x248(%rbp)
movq -0x30(%rbp), %rax
cmpq 0x28(%rbp), %rax
jne 0x24452
movq -0x38(%rbp), %rax
movq %rax, -0x250(%rbp)
jmp 0x2445d
xorl %eax, %eax
movq %rax, -0x250(%rbp)
jmp 0x2445d
movq -0x248(%rbp), %rdi
movq -0x250(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x58(%rbp), %rcx
movl 0x48(%rbp), %r9d
movl 0x50(%rbp), %eax
xorl %r8d, %r8d
movl %eax, (%rsp)
callq 0x22730
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x30(%rbp), %rcx
subq 0x18(%rcx), %rax
movq %rax, -0x200(%rbp)
movq -0x58(%rbp), %rdi
movl 0x48(%rbp), %esi
movl 0x50(%rbp), %edx
callq 0x2b6d0
movl %eax, -0x204(%rbp)
movq 0x29b20(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl -0x204(%rbp), %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
xorl %eax, %eax
movl %eax, %edx
callq 0xd0f0
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x38(%rbp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jge 0x2455d
movl $0x0, -0x208(%rbp)
movslq -0x208(%rbp), %rax
cmpq -0x200(%rbp), %rax
jge 0x2455b
movq 0x29acf(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x208(%rbp), %rcx
addq %rcx, %rax
movl %eax, %esi
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movl %eax, %edx
callq 0xd070
cmpl $-0x1, %eax
jne 0x24536
jmp 0x2454a
movq 0x29a9b(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl $0x20, %esi
callq 0xd600
movl -0x208(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x208(%rbp)
jmp 0x244f2
jmp 0x2455d
jmp 0x246e9
movq $0x0, -0x210(%rbp)
movq -0x210(%rbp), %rax
movq -0x30(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jge 0x24644
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x210(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq -0x58(%rbp), %r9
movq 0x10(%rbp), %rax
movq %rax, -0x260(%rbp)
movl 0x18(%rbp), %eax
movl %eax, -0x258(%rbp)
movl 0x20(%rbp), %r13d
movq 0x28(%rbp), %r12
movq 0x30(%rbp), %r15
movq 0x38(%rbp), %r14
movb -0x59(%rbp), %bl
movl 0x48(%rbp), %r11d
movl 0x50(%rbp), %r10d
movl 0x58(%rbp), %eax
movl %eax, -0x254(%rbp)
movq -0x260(%rbp), %rax
andb $0x1, %bl
movq %rax, (%rsp)
movl -0x258(%rbp), %eax
movl %eax, 0x8(%rsp)
movl -0x254(%rbp), %eax
movl %r13d, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movq %r14, 0x28(%rsp)
movzbl %bl, %ebx
movl %ebx, 0x30(%rsp)
movl %r11d, 0x38(%rsp)
movl %r10d, 0x40(%rsp)
movl %eax, 0x48(%rsp)
callq 0x23ad0
movq -0x210(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x210(%rbp)
jmp 0x2456d
jmp 0x246e9
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq -0x58(%rbp), %r9
movq 0x10(%rbp), %rax
movq %rax, -0x270(%rbp)
movl 0x18(%rbp), %eax
movl %eax, -0x268(%rbp)
movl 0x20(%rbp), %r13d
movq 0x28(%rbp), %r12
movq 0x30(%rbp), %r15
movq 0x38(%rbp), %r14
movb -0x59(%rbp), %bl
movl 0x48(%rbp), %r11d
movl 0x50(%rbp), %r10d
movl 0x58(%rbp), %eax
movl %eax, -0x264(%rbp)
movq -0x270(%rbp), %rax
andb $0x1, %bl
movq %rax, (%rsp)
movl -0x268(%rbp), %eax
movl %eax, 0x8(%rsp)
movl -0x264(%rbp), %eax
movl %r13d, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movq %r14, 0x28(%rsp)
movzbl %bl, %ebx
movl %ebx, 0x30(%rsp)
movl %r11d, 0x38(%rsp)
movl %r10d, 0x40(%rsp)
movl %eax, 0x48(%rsp)
callq 0x23ad0
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax,%rax)