// File: jkingan[P]ladyheather/heather.cpp
// Function: config_text()
void config_text()
{
int i;

   // text drawing stuff
   PLOT_TEXT_COL = (PLOT_COL / TEXT_WIDTH);
   PLOT_TEXT_ROW = (PLOT_ROW / TEXT_HEIGHT);

   MOUSE_COL = (PLOT_TEXT_COL)+2;
   MOUSE_ROW = ((PLOT_TEXT_ROW)-6-eofs);
   MOUSE_ROW -= ((TEXT_Y_MARGIN+TEXT_HEIGHT-1)/TEXT_HEIGHT);
   if((TEXT_HEIGHT == 16) && (SCREEN_HEIGHT <= SHORT_SCREEN)) --MOUSE_ROW;
   if(MOUSE_ROW < 0) MOUSE_ROW = 0;

   TEXT_COLS = ((SCREEN_WIDTH+TEXT_WIDTH-1)/TEXT_WIDTH);
   if(TEXT_COLS >= (int)sizeof(blanks)) TEXT_COLS = sizeof(blanks)-1;
   TEXT_ROWS = ((SCREEN_HEIGHT+TEXT_HEIGHT-1)/TEXT_HEIGHT);
   if(text_mode) MOUSE_ROW = TEXT_ROWS;

   EDIT_ROW = PLOT_TEXT_ROW+2;   // where to put the string input dialog
   if(SCREEN_HEIGHT <= TINY_HEIGHT) EDIT_ROW = PLOT_TEXT_ROW+1;  // piss3
   EDIT_COL = PLOT_TEXT_COL;

   if(text_mode) {
      EDIT_ROW = EDIT_COL = 0;
      PLOT_ROW += (TEXT_HEIGHT*3);
      PLOT_TEXT_ROW = 100;
   }

   for(i=0; i<TEXT_COLS; i++) blanks[i] = ' ';
   blanks[TEXT_COLS] = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x261756(%rip), %eax    # 0x277a60
cltd
idivl 0x2616df(%rip)          # 0x2779f0
movl %eax, 0x261755(%rip)    # 0x277a6c
movl 0x26173f(%rip), %eax    # 0x277a5c
cltd
idivl 0x2616d0(%rip)          # 0x2779f4
movl %eax, 0x261746(%rip)    # 0x277a70
movl 0x26173c(%rip), %eax    # 0x277a6c
addl $0x2, %eax
movl %eax, 0x261653(%rip)    # 0x27798c
movl 0x261731(%rip), %eax    # 0x277a70
subl $0x6, %eax
subl 0x287dd8(%rip), %eax    # 0x29e120
movl %eax, 0x26163a(%rip)    # 0x277988
movl 0x2616a0(%rip), %eax    # 0x2779f4
shll $0x0, %eax
addl 0x261697(%rip), %eax    # 0x2779f4
subl $0x1, %eax
cltd
idivl 0x26168d(%rip)          # 0x2779f4
movl %eax, %ecx
movl 0x261619(%rip), %eax    # 0x277988
subl %ecx, %eax
movl %eax, 0x261611(%rip)    # 0x277988
cmpl $0x10, 0x261676(%rip)   # 0x2779f4
jne 0x1639b
cmpl $0x258, 0x26165a(%rip)  # imm = 0x258
jg 0x1639b
movl 0x2615f6(%rip), %eax    # 0x277988
addl $-0x1, %eax
movl %eax, 0x2615ed(%rip)    # 0x277988
cmpl $0x0, 0x2615e6(%rip)    # 0x277988
jge 0x163ae
movl $0x0, 0x2615da(%rip)    # 0x277988
movl 0x26162c(%rip), %eax    # 0x2779e0
addl 0x261636(%rip), %eax    # 0x2779f0
subl $0x1, %eax
cltd
idivl 0x26162c(%rip)          # 0x2779f0
movl %eax, 0x26161e(%rip)    # 0x2779e8
cmpl $0x201, 0x261614(%rip)  # imm = 0x201
jl 0x163e0
movl $0x200, 0x261608(%rip)  # imm = 0x200
movl 0x2615fe(%rip), %eax    # 0x2779e4
addl 0x261608(%rip), %eax    # 0x2779f4
subl $0x1, %eax
cltd
idivl 0x2615fe(%rip)          # 0x2779f4
movl %eax, 0x2615f0(%rip)    # 0x2779ec
cmpl $0x0, 0x2615b5(%rip)    # 0x2779b8
je 0x16411
movl 0x2615e1(%rip), %eax    # 0x2779ec
movl %eax, 0x261577(%rip)    # 0x277988
movl 0x261659(%rip), %eax    # 0x277a70
addl $0x2, %eax
movl %eax, 0x3883cc(%rip)    # 0x39e7ec
cmpl $0x1e0, 0x2615ba(%rip)  # imm = 0x1E0
jg 0x1643b
movl 0x26163e(%rip), %eax    # 0x277a70
addl $0x1, %eax
movl %eax, 0x3883b1(%rip)    # 0x39e7ec
movl 0x26162b(%rip), %eax    # 0x277a6c
movl %eax, 0x3883a9(%rip)    # 0x39e7f0
cmpl $0x0, 0x26156a(%rip)    # 0x2779b8
je 0x16481
movl $0x0, 0x388396(%rip)    # 0x39e7f0
movl $0x0, 0x388388(%rip)    # 0x39e7ec
imull $0x3, 0x261589(%rip), %eax # 0x2779f4
addl 0x2615eb(%rip), %eax    # 0x277a5c
movl %eax, 0x2615e5(%rip)    # 0x277a5c
movl $0x64, 0x2615ef(%rip)   # 0x277a70
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl 0x261557(%rip), %eax    # 0x2779e8
jge 0x164ad
movslq -0x4(%rbp), %rcx
leaq 0x384d52(%rip), %rax    # 0x39b1f0
movb $0x20, (%rax,%rcx)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x16488
movslq 0x261534(%rip), %rcx    # 0x2779e8
leaq 0x384d35(%rip), %rax    # 0x39b1f0
movb $0x0, (%rax,%rcx)
popq %rbp
retq
nopw %cs:(%rax,%rax)