// File: /workspace/github_c_makefile_star2_O0/sonicse[P]dbf2mysql/dbf.c
// Function: dbf_get_record
int dbf_get_record(dbhead *dbh, field *fields,  u_long rec)
{
    int     	t, i;
    u_char  	*dbffield;
    char	*end, *sp;
    double	dblval;
    long long	int8val;
    long	int4val;
    u_int	hh, mm, ss, month, day, year;
    u_int	daynum, leap_day, day_of_year, days_in_year;
    u_char 	*days_per_month;
    u_long	blknum;

/* calculate at which offset we have to read. *DON'T* forget the
   0x0D which seperates field-descriptions from records!

   Note (april 5 1996): This turns out to be included in db_hlen
*/
    i = dbh->db_hlen + (rec * dbh->db_rlen);

    if (lseek(dbh->db_fd, i, SEEK_SET) == -1) {
	lseek(dbh->db_fd, 0, SEEK_SET);
	dbh->db_offset = 0;
	return DBF_ERROR;
    }

    dbh->db_offset 	= i;
    dbh->db_currec	= rec;

    read(dbh->db_fd, dbh->db_buff, dbh->db_rlen);

    if (dbh->db_buff[0] == DBF_DELETED) {
	return DBF_DELETED;
    }

    dbffield = &dbh->db_buff[1];
    for (t = 0; t < dbh->db_nfields; t++)
    {
        switch(fields[t].db_type) {
          case 'C':		/* Character data */
	    end = (char *)&dbffield[fields[t].db_flen - 1];
	    i = fields[t].db_flen;

            //2011-03-23 AA: Skip only 0-21 code character
	    while (( i > 0) && ((*end < 0x21) && (*end >= 0))) {
		end--;
		i--;
	    }
            strncpy(fields[t].db_contents, (char *)dbffield, i);
	    fields[t].db_contents[i] = '\0';
	    break;

	  case 'B':		/* Binary data - 8 byte field - ???Endian Alert??? */
	    memcpy(&dblval, dbffield, sizeof(dblval));
	    snprintf(fields[t].db_contents, fields[t].db_blen,  "%.*f", fields[t].db_dec, dblval);
	    fields[t].db_contents[fields[t].db_blen-1] = '\0';
	    break;

          case 'M':		/* Memo field */
          case 'G':		/* OLE field */
	    switch(dbh->db_memo)
	    {
	      case DBF_MTYPE_FPT:
		blknum = get_long(dbffield);
		break;
	      case DBF_MTYPE_DBT3:
	      case DBF_MTYPE_DBT4:
		strncpy(fields[t].db_contents, (char *)dbffield, fields[t].db_flen);
		fields[t].db_contents[fields[t].db_flen] = '\0';
		blknum = atol(fields[t].db_contents);
		memset(fields[t].db_contents, 0, fields[t].db_flen);
		break;
	      default:
		blknum = 0;
	    }
	    if (blknum != 0)
		dbf_get_memo_data(dbh, &fields[t], blknum);
	    else
		memset(fields[t].db_contents, '\0', fields[t].db_blen);
	    break;

	  case 'Y':		/* Currency 8 byte field - ???Endian Alert??? */
	    memcpy(&int8val, dbffield, sizeof(int8val));
	    snprintf(fields[t].db_contents, fields[t].db_blen,  "%0*lld",
		     fields[t].db_dec+1, int8val);
	    fields[t].db_contents[fields[t].db_blen-1] = '\0';
	    end = fields[t].db_contents + strlen(fields[t].db_contents) + 1;
	    *end-- = '\0';
	    sp = end - 1;
	    for (i=0; i<fields[t].db_dec; i++)
		*end-- = *sp--;
	    *++sp = '.';
	    break;

	  case 'T':		/* Time 8 byte field - ???Endian Alert??? */
	    memcpy(&daynum, &dbffield[0], sizeof(daynum));
	    daynum -= 1721060;	/* Magic number for 0000-01-01 */
	    if (daynum <= 365 || daynum >= 3652500)
	    {			/* Only allow 0001-01-01 through 9999-12-31 */
	      year = month = day = 0;
	    }
	    else
	    {
	      year = daynum * 100 / 36525;
	      day_of_year = (daynum - year * 365) - (year-1) / 4 +
		  (((year - 1) / 100 + 1) * 3) / 4;
	      while (day_of_year >
		     (days_in_year =
		      ((year & 3) == 0 &&
		       (year % 100 ||
			(year % 400 == 0 && year)) ? 366 : 365)))
	      {
		day_of_year -= days_in_year;
		year++;
	      }
	      leap_day = 0;
	      if (days_in_year == 366)
	      {
		if (day_of_year > 31 + 28)
		{
		  day_of_year--;
		  if (day_of_year == 31 + 28)
		    leap_day = 1;		/* Handle leapyear's leapday */
		}
	      }
	      month = 1;
	      days_per_month = days_in_month;
	      while (day_of_year > *days_per_month)
	      {
		  month++;
		  day_of_year -= *days_per_month++;
	      }
	      day = day_of_year + leap_day;
	    }
	    memcpy(&int4val, &dbffield[4], sizeof(int4val));
	    int4val = int4val / 1000; /* Discard millseconds */
	    ss = int4val % 60;
	    mm = (int4val / 60) % 60;
	    hh = int4val / (60 * 60);
	    snprintf(fields[t].db_contents, fields[t].db_blen,
		     "%04d-%02d-%02d %02d:%02d:%02d",
		     year, month, day, hh, mm, ss);
	    fields[t].db_contents[fields[t].db_blen-1] = '\0';
	    break;

	  case 'I':		/* Integer 8 byte field - ???Endian Alert??? */
	    memcpy(&int4val, dbffield, sizeof(int4val));
	    snprintf(fields[t].db_contents, fields[t].db_blen,  "%ld", int4val);
	    fields[t].db_contents[fields[t].db_blen-1] = '\0';
	    break;

	  default:
	    end = (char *)dbffield;
	    i = fields[t].db_flen;
	    while (( i > 0) && ((*end < 0x21)/* || (*end > 0x7E)*/)) {
		end++;
		i--;
	    }
	    strncpy(fields[t].db_contents, end, i);
	    fields[t].db_contents[i] = '\0';
	    break;
	}
	dbffield += fields[t].db_flen;
    }

    dbh->db_offset += dbh->db_rlen;

    return DBF_VALID;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rdx
movzwl 0x30(%rdx), %edx
imulq %rdx, %rcx
addq %rcx, %rax
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %edi
movslq -0x28(%rbp), %rsi
xorl %edx, %edx
callq 0x2370
cmpq $-0x1, %rax
jne 0x5655
movq -0x10(%rbp), %rax
movl (%rax), %edi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x2370
movq -0x10(%rbp), %rax
movq $0x0, 0x8(%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5f2c
movslq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x10(%rbp), %rax
movl (%rax), %edi
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rsi
movq -0x10(%rbp), %rax
movzwl 0x30(%rax), %eax
movl %eax, %edx
callq 0x22a0
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movzbl (%rax), %eax
cmpl $0x2a, %eax
jne 0x56a6
movl $0x2a, -0x4(%rbp)
jmp 0x5f2c
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x10(%rbp), %rcx
movzbl 0x32(%rcx), %ecx
cmpl %ecx, %eax
jge 0x5f0f
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
movzbl 0xb(%rax,%rcx), %eax
addl $-0x42, %eax
movl %eax, %ecx
movq %rcx, -0x98(%rbp)
subl $0x17, %eax
ja 0x5e43
movq -0x98(%rbp), %rax
leaq 0x33ac(%rip), %rcx      # 0x8ab0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x30(%rbp), %rax
movq -0x18(%rbp), %rcx
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movzbl 0xc(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
movl %eax, -0x28(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x28(%rbp)
movb %al, -0x99(%rbp)
jle 0x5788
movq -0x38(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x21, %ecx
movb %al, -0x9a(%rbp)
jge 0x577c
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
setge %al
movb %al, -0x9a(%rbp)
movb -0x9a(%rbp), %al
movb %al, -0x99(%rbp)
movb -0x99(%rbp), %al
testb $0x1, %al
jne 0x5794
jmp 0x57ab
movq -0x38(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x38(%rbp)
movl -0x28(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x5747
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
movq -0x30(%rbp), %rsi
movslq -0x28(%rbp), %rdx
callq 0x2100
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movslq -0x28(%rbp), %rcx
movb $0x0, (%rax,%rcx)
jmp 0x5ee0
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rsi
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movzbl 0xd(%rax), %ecx
movsd -0x48(%rbp), %xmm0
leaq 0x3429(%rip), %rdx      # 0x8c64
movb $0x1, %al
callq 0x2300
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq -0x18(%rbp), %rcx
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movq 0x10(%rcx), %rcx
subq $0x1, %rcx
movb $0x0, (%rax,%rcx)
jmp 0x5ee0
movq -0x10(%rbp), %rax
movzbl 0x10(%rax), %eax
movl %eax, -0xa0(%rbp)
decl %eax
subl $0x2, %eax
jb 0x58b2
jmp 0x588c
movl -0xa0(%rbp), %eax
subl $0x4, %eax
jne 0x595d
jmp 0x589d
movq -0x30(%rbp), %rdi
callq 0x6f70
movq %rax, -0x90(%rbp)
jmp 0x5968
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
movq -0x30(%rbp), %rsi
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
movl %eax, %edx
callq 0x2100
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq -0x18(%rbp), %rcx
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movzbl 0xc(%rcx), %ecx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
callq 0x2220
movq %rax, -0x90(%rbp)
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x2110
jmp 0x5968
movq $0x0, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x5993
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movslq -0x24(%rbp), %rax
shlq $0x5, %rax
addq %rax, %rsi
movq -0x90(%rbp), %rdx
callq 0x5f40
jmp 0x59c0
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rdx
xorl %esi, %esi
callq 0x2110
jmp 0x5ee0
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rsi
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movzbl 0xd(%rax), %ecx
addl $0x1, %ecx
movq -0x50(%rbp), %r8
leaq 0x3252(%rip), %rdx      # 0x8c69
movb $0x0, %al
callq 0x2300
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq -0x18(%rbp), %rcx
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movq 0x10(%rcx), %rcx
subq $0x1, %rcx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq %rax, -0xa8(%rbp)
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
callq 0x20c0
movq %rax, %rcx
movq -0xa8(%rbp), %rax
addq %rcx, %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x38(%rbp)
movb $0x0, (%rax)
movq -0x38(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x40(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movq -0x18(%rbp), %rcx
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movzbl 0xd(%rcx), %ecx
cmpl %ecx, %eax
jge 0x5aff
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x40(%rbp)
movb (%rax), %cl
movq -0x38(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x38(%rbp)
movb %cl, (%rax)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x5ab8
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x40(%rbp)
movb $0x2e, 0x1(%rax)
jmp 0x5ee0
movq -0x30(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
subl $0x1a42e4, %eax         # imm = 0x1A42E4
movl %eax, -0x74(%rbp)
cmpl $0x16d, -0x74(%rbp)     # imm = 0x16D
jbe 0x5b3d
cmpl $0x37bb94, -0x74(%rbp)  # imm = 0x37BB94
jb 0x5b57
movl $0x0, -0x6c(%rbp)
movl $0x0, -0x68(%rbp)
movl $0x0, -0x70(%rbp)
jmp 0x5ce4
imull $0x64, -0x74(%rbp), %eax
movl $0x8ead, %ecx           # imm = 0x8EAD
xorl %edx, %edx
divl %ecx
movl %eax, -0x70(%rbp)
movl -0x74(%rbp), %eax
imull $0x16d, -0x70(%rbp), %ecx # imm = 0x16D
subl %ecx, %eax
movl -0x70(%rbp), %ecx
subl $0x1, %ecx
shrl $0x2, %ecx
subl %ecx, %eax
movl %eax, -0xac(%rbp)
movl -0x70(%rbp), %eax
subl $0x1, %eax
movl $0x64, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, %ecx
movl -0xac(%rbp), %eax
addl $0x1, %ecx
imull $0x3, %ecx, %ecx
shrl $0x2, %ecx
addl %ecx, %eax
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
movl %eax, -0xb4(%rbp)
movl -0x70(%rbp), %ecx
andl $0x3, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xad(%rbp)
jne 0x5c1c
movl -0x70(%rbp), %eax
movl $0x64, %ecx
xorl %edx, %edx
divl %ecx
movb $0x1, %al
cmpl $0x0, %edx
movb %al, -0xb5(%rbp)
jne 0x5c10
movl -0x70(%rbp), %eax
movl $0x190, %ecx            # imm = 0x190
xorl %edx, %edx
divl %ecx
xorl %eax, %eax
cmpl $0x0, %edx
movb %al, -0xb6(%rbp)
jne 0x5c04
cmpl $0x0, -0x70(%rbp)
setne %al
movb %al, -0xb6(%rbp)
movb -0xb6(%rbp), %al
movb %al, -0xb5(%rbp)
movb -0xb5(%rbp), %al
movb %al, -0xad(%rbp)
movl -0xb4(%rbp), %eax
movb -0xad(%rbp), %sil
movl $0x16d, %ecx            # imm = 0x16D
movl $0x16e, %edx            # imm = 0x16E
testb $0x1, %sil
cmovnel %edx, %ecx
movl %ecx, -0x80(%rbp)
cmpl %ecx, %eax
jbe 0x5c5a
movl -0x80(%rbp), %ecx
movl -0x7c(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x7c(%rbp)
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x5ba9
movl $0x0, -0x78(%rbp)
cmpl $0x16e, -0x80(%rbp)     # imm = 0x16E
jne 0x5c8a
cmpl $0x3b, -0x7c(%rbp)
jbe 0x5c88
movl -0x7c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x7c(%rbp)
cmpl $0x3b, -0x7c(%rbp)
jne 0x5c86
movl $0x1, -0x78(%rbp)
jmp 0x5c88
jmp 0x5c8a
movl $0x1, -0x68(%rbp)
leaq 0x55f8(%rip), %rax      # 0xb290
movq %rax, -0x88(%rbp)
movl -0x7c(%rbp), %eax
movq -0x88(%rbp), %rcx
movzbl (%rcx), %ecx
cmpl %ecx, %eax
jbe 0x5cdb
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
movq -0x88(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x88(%rbp)
movzbl (%rax), %ecx
movl -0x7c(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x7c(%rbp)
jmp 0x5c9f
movl -0x7c(%rbp), %eax
addl -0x78(%rbp), %eax
movl %eax, -0x6c(%rbp)
movq -0x30(%rbp), %rax
movq 0x4(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movl $0x3e8, %ecx            # imm = 0x3E8
cqto
idivq %rcx
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movl $0x3c, %ecx
cqto
idivq %rcx
movl %edx, %eax
movl %eax, -0x64(%rbp)
movq -0x58(%rbp), %rax
movl $0x3c, %ecx
cqto
idivq %rcx
movl $0x3c, %ecx
cqto
idivq %rcx
movl %edx, %eax
movl %eax, -0x60(%rbp)
movq -0x58(%rbp), %rax
movl $0xe10, %ecx            # imm = 0xE10
cqto
idivq %rcx
movl %eax, -0x5c(%rbp)
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rsi
movl -0x70(%rbp), %ecx
movl -0x68(%rbp), %r8d
movl -0x6c(%rbp), %r9d
movl -0x5c(%rbp), %r11d
movl -0x60(%rbp), %r10d
movl -0x64(%rbp), %eax
leaq 0x2eea(%rip), %rdx      # 0x8c70
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movb $0x0, %al
callq 0x2300
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq -0x18(%rbp), %rcx
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movq 0x10(%rcx), %rcx
subq $0x1, %rcx
movb $0x0, (%rax,%rcx)
jmp 0x5ee0
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rsi
movq -0x58(%rbp), %rcx
leaq 0x2e85(%rip), %rdx      # 0x8c8e
movb $0x0, %al
callq 0x2300
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq -0x18(%rbp), %rcx
movslq -0x24(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movq 0x10(%rcx), %rcx
subq $0x1, %rcx
movb $0x0, (%rax,%rcx)
jmp 0x5ee0
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
movl %eax, -0x28(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x28(%rbp)
movb %al, -0xb7(%rbp)
jle 0x5e82
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x21, %eax
setl %al
movb %al, -0xb7(%rbp)
movb -0xb7(%rbp), %al
testb $0x1, %al
jne 0x5e8e
jmp 0x5ea5
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
movl -0x28(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x5e61
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
movq -0x38(%rbp), %rsi
movslq -0x28(%rbp), %rdx
callq 0x2100
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movslq -0x28(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %ecx
movq -0x30(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x56bd
movq -0x10(%rbp), %rax
movzwl 0x30(%rax), %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movl $0x20, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xd0, %rsp
popq %rbp
retq
nopl (%rax,%rax)