// File: /workspace/github_c_makefile_star2_O0/justy989[P]ce/ce_draw_term.c
// Function: draw_view
static void _draw_view(CeView_t* view, int64_t tab_width, CeLineNumber_t line_number, CeVisualLineDisplayType_t visual_line_display_type,
                       CeDrawColorList_t* draw_color_list, CeColorDefs_t* color_defs, CeSyntaxDef_t* syntax_defs,
                       int64_t terminal_right, CeRune_t show_line_extends_passed_view_as){
     int64_t view_width = ce_view_width(view);
     int64_t view_height = ce_view_height(view);
     int64_t row_min = view->scroll.y;
     int64_t col_min = view->scroll.x;
     int64_t col_max = col_min + view_width;

     char tab_str[tab_width + 1];
     memset(tab_str, ' ', tab_width);
     tab_str[tab_width] = 0;

     CeDrawColorNode_t* draw_color_node = draw_color_list->head;

     // figure out how wide the line number margin needs to be
     int line_number_size = 0;
     if(!view->buffer->no_line_numbers){
          line_number_size = ce_line_number_column_width(line_number, view->buffer->line_count, view->rect.top, view->rect.bottom);
          if(line_number_size){
               col_max -= line_number_size;
               line_number_size--;
          }
     }

     if(view->buffer->line_count >= 0){
          for(int64_t y = 0; y < view_height; y++){
               int64_t index = 0;
               int64_t x = 0;
               int64_t rune_len = 0;
               int64_t line_index = y + row_min;
               CeRune_t rune = 1;
               int64_t real_y = y + view->scroll.y;

               move(view->rect.top + y, view->rect.left);

               if(!view->buffer->no_line_numbers && line_number){
                    int fg = CE_COLOR_DEFAULT;
                    int bg = CE_COLOR_DEFAULT;
                    if(draw_color_node){
                         fg = draw_color_node->fg;
                         bg = draw_color_node->bg;
                    }
                    fg = ce_syntax_def_get_fg(syntax_defs, CE_SYNTAX_COLOR_LINE_NUMBER, fg);
                    bg = ce_syntax_def_get_bg(syntax_defs, CE_SYNTAX_COLOR_LINE_NUMBER, bg);
                    int change_color_pair = ce_color_def_get(color_defs, fg, bg);
                    attron(COLOR_PAIR(change_color_pair));
                    int value = real_y + 1;
                    if(line_number == CE_LINE_NUMBER_RELATIVE || (line_number == CE_LINE_NUMBER_ABSOLUTE_AND_RELATIVE && view->cursor.y != real_y)){
                         value = abs((int)(view->cursor.y - real_y));
                    }
                    printw("%*d ", line_number_size, value);
               }

               standend();
               if(!view->buffer->no_highlight_current_line && real_y == view->cursor.y){
                    int bg = ce_syntax_def_get_bg(syntax_defs, CE_SYNTAX_COLOR_CURRENT_LINE, CE_COLOR_DEFAULT);
                    int change_color_pair = ce_color_def_get(color_defs, CE_COLOR_DEFAULT, bg);
                    attron(COLOR_PAIR(change_color_pair));
               }else if(draw_color_node && ce_point_after((CePoint_t){index, y + view->scroll.y}, draw_color_node->point)){
                    int change_color_pair = ce_color_def_get(color_defs, draw_color_node->fg, draw_color_node->bg);
                    attron(COLOR_PAIR(change_color_pair));
               }

               if(line_index < view->buffer->line_count){
                    const char* line = view->buffer->lines[y + row_min];

                    while(rune > 0){
                         rune = ce_utf8_decode(line, &rune_len);

                         // check if we need to move to the next color
                         while(draw_color_node && !ce_point_after(draw_color_node->point, (CePoint_t){index, real_y})){
                              int bg = draw_color_node->bg;
                              if(!view->buffer->no_highlight_current_line && bg == CE_COLOR_DEFAULT && real_y == view->cursor.y){
                                   bg = ce_syntax_def_get_bg(syntax_defs, CE_SYNTAX_COLOR_CURRENT_LINE, bg);
                              }

                              int change_color_pair = ce_color_def_get(color_defs, draw_color_node->fg, bg);
                              attron(COLOR_PAIR(change_color_pair));
                              draw_color_node = draw_color_node->next;
                         }

                         const char* look_ahead = line + rune_len;
                         int64_t next_rune_len = 0;
                         CeRune_t next_rune = 1;

                         next_rune = ce_utf8_decode(look_ahead, &next_rune_len);

                         if(x > col_max){
                              x++;
                         }else if(show_line_extends_passed_view_as &&
                                  ((view->rect.right >= terminal_right && x == col_max) ||
                                   (view->rect.right < terminal_right && x == (col_max - 1))) &&
                                  next_rune != 0){
                              int new_bg = ce_syntax_def_get_bg(syntax_defs, CE_SYNTAX_COLOR_LINE_EXTENDS_PASSED_VIEW, CE_COLOR_DEFAULT);
                              int new_fg = ce_syntax_def_get_fg(syntax_defs, CE_SYNTAX_COLOR_LINE_EXTENDS_PASSED_VIEW, CE_COLOR_DEFAULT);
                              int change_color_pair = ce_color_def_get(color_defs, new_fg, new_bg);
                              attron(COLOR_PAIR(change_color_pair));
                              addch(show_line_extends_passed_view_as);
                              standend();
                              x++;
                         }else if(x >= col_min && rune > 0){
                              if(rune == CE_TAB){
                                   x += tab_width;
                                   addstr(tab_str);
                              }else if(rune >= 0x80){
                                   char utf8_string[CE_UTF8_SIZE + 1];
                                   int64_t bytes_written = 0;
                                   ce_utf8_encode(rune, utf8_string, CE_UTF8_SIZE, &bytes_written);
                                   utf8_string[bytes_written] = 0;
                                   addstr(utf8_string);
                                   x++;
                              }else{
                                   addch(rune);
                                   x++;
                              }
                         }else if(rune == CE_TAB){
                              x += tab_width;
                         }else{
                              x++;
                         }

                         line += rune_len;
                         index++;
                    }

                    x--;
               }

               if(x < col_min) x = col_min;
               switch(visual_line_display_type){
               default:
                    break;
               case CE_VISUAL_LINE_DISPLAY_TYPE_FULL_LINE:
                    for(; x <= col_max; x++) addch(' ');
                    break;
               case CE_VISUAL_LINE_DISPLAY_TYPE_INCLUDE_NEWLINE:
                    addch(' ');
                    x++;
               // intentional fall through
               case CE_VISUAL_LINE_DISPLAY_TYPE_EXCLUDE_NEWLINE:
                    standend();
                    if(!view->buffer->no_highlight_current_line && real_y == view->cursor.y){
                         int bg = ce_syntax_def_get_bg(syntax_defs, CE_SYNTAX_COLOR_CURRENT_LINE, CE_COLOR_DEFAULT);
                         int change_color_pair = ce_color_def_get(color_defs, CE_COLOR_DEFAULT, bg);
                         attron(COLOR_PAIR(change_color_pair));
                    }
                    for(; x <= col_max; x++) addch(' ');
                    break;
               }
          }
     }else{
          standend();
     }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movl 0x20(%rbp), %eax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movq %r9, -0x28(%rbp)
movq -0x8(%rbp), %rdi
callq 0x119e0
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x11a00
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq -0x30(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, %rax
incq %rax
movq %rsp, %rdx
movq %rdx, -0x58(%rbp)
addq $0x10, %rcx
andq $-0x10, %rcx
movq %rsp, %rdi
subq %rcx, %rdi
movq %rdi, -0x138(%rbp)
movq %rdi, %rsp
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdx
movl $0x20, %esi
callq 0xd290
movq -0x138(%rbp), %rax
movq -0x10(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x68(%rbp)
movl $0x0, -0x6c(%rbp)
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
testb $0x1, 0x50(%rax)
jne 0x2481e
movl -0x14(%rbp), %edi
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x8(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rcx
callq 0x12940
movl %eax, -0x6c(%rbp)
cmpl $0x0, -0x6c(%rbp)
je 0x2481c
movslq -0x6c(%rbp), %rcx
movq -0x50(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x50(%rbp)
movl -0x6c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x2481e
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
cmpq $0x0, 0x8(%rax)
jl 0x25094
movq $0x0, -0x78(%rbp)
movq -0x78(%rbp), %rax
cmpq -0x38(%rbp), %rax
jge 0x25092
movq $0x0, -0x80(%rbp)
movq $0x0, -0x88(%rbp)
movq $0x0, -0x90(%rbp)
movq -0x78(%rbp), %rax
addq -0x40(%rbp), %rax
movq %rax, -0x98(%rbp)
movl $0x1, -0x9c(%rbp)
movq -0x78(%rbp), %rax
movq -0x8(%rbp), %rcx
addq 0x28(%rcx), %rax
movq %rax, -0xa8(%rbp)
movq 0x29740(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
addq -0x78(%rbp), %rax
movl %eax, %esi
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl %eax, %edx
callq 0xd070
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
testb $0x1, 0x50(%rax)
jne 0x249d9
cmpl $0x0, -0x14(%rbp)
je 0x249d9
movl $0xffffffff, -0xac(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0xb0(%rbp) # imm = 0xFFFFFFFF
cmpq $0x0, -0x68(%rbp)
je 0x24907
movq -0x68(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xac(%rbp)
movq -0x68(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0xb0(%rbp)
movq 0x10(%rbp), %rdi
movl -0xac(%rbp), %edx
movl $0x14, %esi
callq 0x2b180
movl %eax, -0xac(%rbp)
movq 0x10(%rbp), %rdi
movl -0xb0(%rbp), %edx
movl $0x14, %esi
callq 0x2b1c0
movl %eax, -0xb0(%rbp)
movq -0x28(%rbp), %rdi
movl -0xac(%rbp), %esi
movl -0xb0(%rbp), %edx
callq 0x2b6d0
movl %eax, -0xb4(%rbp)
movq 0x2967b(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl -0xb4(%rbp), %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
xorl %eax, %eax
movl %eax, %edx
callq 0xd0f0
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movl %eax, -0xb8(%rbp)
cmpl $0x2, -0x14(%rbp)
je 0x249a6
cmpl $0x3, -0x14(%rbp)
jne 0x249c2
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
cmpq -0xa8(%rbp), %rax
je 0x249c2
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
subq -0xa8(%rbp), %rax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
movl %eax, -0xb8(%rbp)
movl -0x6c(%rbp), %esi
movl -0xb8(%rbp), %edx
leaq 0x1fc2d(%rip), %rdi     # 0x445ff
movb $0x0, %al
callq 0xd4b0
movq 0x295f8(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
xorl %esi, %esi
callq 0xd710
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
testb $0x1, 0x51(%rax)
jne 0x24a63
movq -0xa8(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x38(%rcx), %rax
jne 0x24a63
movq 0x10(%rbp), %rdi
movl $0xd, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2b1c0
movl %eax, -0xbc(%rbp)
movq -0x28(%rbp), %rdi
movl -0xbc(%rbp), %edx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x2b6d0
movl %eax, -0xc0(%rbp)
movq 0x29595(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl -0xc0(%rbp), %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
xorl %eax, %eax
movl %eax, %edx
callq 0xd0f0
jmp 0x24af1
cmpq $0x0, -0x68(%rbp)
je 0x24aef
movq -0x80(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x78(%rbp), %rax
movq -0x8(%rbp), %rcx
addq 0x28(%rcx), %rax
movq %rax, -0xc8(%rbp)
movq -0x68(%rbp), %rax
movq -0xd0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
movq 0x8(%rax), %rdx
movq 0x10(%rax), %rcx
callq 0xf690
testb $0x1, %al
jne 0x24ab1
jmp 0x24aef
movq -0x28(%rbp), %rdi
movq -0x68(%rbp), %rax
movl (%rax), %esi
movq -0x68(%rbp), %rax
movl 0x4(%rax), %edx
callq 0x2b6d0
movl %eax, -0xd4(%rbp)
movq 0x29504(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl -0xd4(%rbp), %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
xorl %eax, %eax
movl %eax, %edx
callq 0xd0f0
jmp 0x24af1
movq -0x98(%rbp), %rax
movq -0x8(%rbp), %rcx
movq 0x40(%rcx), %rcx
cmpq 0x8(%rcx), %rax
jge 0x24f19
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movq (%rax), %rax
movq -0x78(%rbp), %rcx
addq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0xe0(%rbp)
cmpl $0x0, -0x9c(%rbp)
jle 0x24f07
movq -0xe0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0xedc0
movl %eax, -0x9c(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x68(%rbp)
movb %al, -0x139(%rbp)
je 0x24b9d
movq -0x68(%rbp), %rax
movq -0x80(%rbp), %rcx
movq %rcx, -0xf0(%rbp)
movq -0xa8(%rbp), %rcx
movq %rcx, -0xe8(%rbp)
movq 0x8(%rax), %rdi
movq 0x10(%rax), %rsi
movq -0xf0(%rbp), %rdx
movq -0xe8(%rbp), %rcx
callq 0xf690
xorb $-0x1, %al
movb %al, -0x139(%rbp)
movb -0x139(%rbp), %al
testb $0x1, %al
jne 0x24bac
jmp 0x24c49
movq -0x68(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0xf4(%rbp)
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
testb $0x1, 0x51(%rax)
jne 0x24bfb
cmpl $-0x1, -0xf4(%rbp)
jne 0x24bfb
movq -0xa8(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x38(%rcx), %rax
jne 0x24bfb
movq 0x10(%rbp), %rdi
movl -0xf4(%rbp), %edx
movl $0xd, %esi
callq 0x2b1c0
movl %eax, -0xf4(%rbp)
movq -0x28(%rbp), %rdi
movq -0x68(%rbp), %rax
movl (%rax), %esi
movl -0xf4(%rbp), %edx
callq 0x2b6d0
movl %eax, -0xf8(%rbp)
movq 0x293bb(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl -0xf8(%rbp), %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
xorl %eax, %eax
movl %eax, %edx
callq 0xd0f0
movq -0x68(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x68(%rbp)
jmp 0x24b4e
movq -0xe0(%rbp), %rax
addq -0x90(%rbp), %rax
movq %rax, -0x100(%rbp)
movq $0x0, -0x108(%rbp)
movl $0x1, -0x10c(%rbp)
movq -0x100(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0xedc0
movl %eax, -0x10c(%rbp)
movq -0x88(%rbp), %rax
cmpq -0x50(%rbp), %rax
jle 0x24cb0
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x24ee1
cmpl $0x0, 0x20(%rbp)
je 0x24db5
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
cmpq 0x18(%rbp), %rax
jl 0x24cd5
movq -0x88(%rbp), %rax
cmpq -0x50(%rbp), %rax
je 0x24cff
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
cmpq 0x18(%rbp), %rax
jge 0x24db5
movq -0x88(%rbp), %rax
movq -0x50(%rbp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x24db5
cmpl $0x0, -0x10c(%rbp)
je 0x24db5
movq 0x10(%rbp), %rdi
movl $0x17, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2b1c0
movl %eax, -0x110(%rbp)
movq 0x10(%rbp), %rdi
movl $0x17, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2b180
movl %eax, -0x114(%rbp)
movq -0x28(%rbp), %rdi
movl -0x114(%rbp), %esi
movl -0x110(%rbp), %edx
callq 0x2b6d0
movl %eax, -0x118(%rbp)
movq 0x29278(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl -0x118(%rbp), %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
xorl %eax, %eax
movl %eax, %edx
callq 0xd0f0
movq 0x29256(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl 0x20(%rbp), %esi
callq 0xd600
movq 0x29244(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
xorl %esi, %esi
callq 0xd710
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x24edf
movq -0x88(%rbp), %rax
cmpq -0x48(%rbp), %rax
jl 0x24eac
cmpl $0x0, -0x9c(%rbp)
jle 0x24eac
cmpl $0x9, -0x9c(%rbp)
jne 0x24e0e
movq -0x138(%rbp), %rsi
movq -0x10(%rbp), %rax
addq -0x88(%rbp), %rax
movq %rax, -0x88(%rbp)
movq 0x291dc(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xd190
jmp 0x24eaa
cmpl $0x80, -0x9c(%rbp)
jl 0x24e81
movq $0x0, -0x128(%rbp)
movl -0x9c(%rbp), %edi
leaq -0x11d(%rbp), %rsi
movl $0x4, %edx
leaq -0x128(%rbp), %rcx
callq 0x10000
movq -0x128(%rbp), %rax
movb $0x0, -0x11d(%rbp,%rax)
movq 0x2917f(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
leaq -0x11d(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xd190
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x24ea8
movq 0x29150(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl -0x9c(%rbp), %esi
callq 0xd600
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x24eaa
jmp 0x24edd
cmpl $0x9, -0x9c(%rbp)
jne 0x24ec9
movq -0x10(%rbp), %rax
addq -0x88(%rbp), %rax
movq %rax, -0x88(%rbp)
jmp 0x24edb
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x24edd
jmp 0x24edf
jmp 0x24ee1
movq -0x90(%rbp), %rax
addq -0xe0(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x24b28
movq -0x88(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
cmpq -0x48(%rbp), %rax
jge 0x24f31
movq -0x48(%rbp), %rax
movq %rax, -0x88(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x140(%rbp)
testl %eax, %eax
je 0x24f5f
jmp 0x24f40
movl -0x140(%rbp), %eax
subl $0x1, %eax
je 0x24f9b
jmp 0x24f4d
movl -0x140(%rbp), %eax
subl $0x2, %eax
je 0x24fc1
jmp 0x24f5a
jmp 0x2507f
jmp 0x24f61
movq -0x88(%rbp), %rax
cmpq -0x50(%rbp), %rax
jg 0x24f96
movq 0x29063(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl $0x20, %esi
callq 0xd600
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x24f61
jmp 0x2507f
movq 0x29036(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl $0x20, %esi
callq 0xd600
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
movq 0x29010(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
xorl %esi, %esi
callq 0xd710
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
testb $0x1, 0x51(%rax)
jne 0x25046
movq -0xa8(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x38(%rcx), %rax
jne 0x25046
movq 0x10(%rbp), %rdi
movl $0xd, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2b1c0
movl %eax, -0x12c(%rbp)
movq -0x28(%rbp), %rdi
movl -0x12c(%rbp), %edx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x2b6d0
movl %eax, -0x130(%rbp)
movq 0x28fad(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl -0x130(%rbp), %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
xorl %eax, %eax
movl %eax, %edx
callq 0xd0f0
jmp 0x25048
movq -0x88(%rbp), %rax
cmpq -0x50(%rbp), %rax
jg 0x2507d
movq 0x28f7c(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
movl $0x20, %esi
callq 0xd600
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x25048
jmp 0x2507f
jmp 0x25081
movq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x78(%rbp)
jmp 0x24839
jmp 0x250a5
movq 0x28f3d(%rip), %rax     # 0x4dfd8
movq (%rax), %rdi
xorl %esi, %esi
callq 0xd710
movq -0x58(%rbp), %rax
movq %rax, %rsp
movq %rbp, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)