// File: gpertea[P]gclib/htest.cpp
// Function: loadStrings(_IO_FILE*, GPVec<HStrData>&, GPVec<HStrData>&, int)
int loadStrings(FILE* f, GPVec<HStrData>& strgsuf, GPVec<HStrData>& strgs, int toLoad) {
  int num=0;
  GLineReader lr(f);
  char* line=NULL;
  int numcl=0;
  while ((line=lr.nextLine())!=NULL) {
	  int len=strlen(line);
	  if (len<3) continue;
	  if (line[0]=='>') {
		  numcl++;
		  if (toLoad && numcl>toLoad) {
			  break;
		  }
		  continue;
	  }
	  if (strcmp(line, "HCLR")==0) {
		  strgs.Add(new HStrData(NULL, 2));
		  strgsuf.Add(new HStrData(NULL, 2));
		  continue;
	  }
	  if (startsWith(line, "RM ")) {
	     strgsuf.Add(new HStrData(line+3,1) );
	     line[len-3]=0;
	     strgs.Add(new HStrData(line+3,1));
	     continue;
	  }
      strgsuf.Add(new HStrData(line));
      line[len-3]=0;
      strgs.Add(new HStrData(line));
	  num++;
  } //while line
  return num;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rsi
leaq -0x68(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0xfeb0
movq $0x0, -0x70(%rbp)
movl $0x0, -0x74(%rbp)
leaq -0x68(%rbp), %rdi
callq 0xff10
movq %rax, -0x90(%rbp)
jmp 0xd413
movq -0x90(%rbp), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, %rax
je 0xd796
movq -0x70(%rbp), %rdi
callq 0x2140
movl %eax, -0x88(%rbp)
cmpl $0x3, -0x88(%rbp)
jge 0xd456
jmp 0xd401
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0xd7b7
movq -0x70(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3e, %eax
jne 0xd480
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0xd47e
movl -0x74(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jle 0xd47e
jmp 0xd796
jmp 0xd401
movq -0x70(%rbp), %rdi
leaq 0x6fa5(%rip), %rsi      # 0x14430
callq 0x2350
cmpl $0x0, %eax
jne 0xd57c
movq -0x18(%rbp), %rax
movq %rax, -0xa0(%rbp)
movl $0x30, %edi
callq 0x2260
movq %rax, -0x98(%rbp)
jmp 0xd4b7
movq -0x98(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x2, %edx
callq 0xffb0
jmp 0xd4ce
movq -0x98(%rbp), %rsi
movq -0xa0(%rbp), %rdi
callq 0xff30
jmp 0xd4e3
movq -0x10(%rbp), %rax
movq %rax, -0xb0(%rbp)
movl $0x30, %edi
callq 0x2260
movq %rax, -0xa8(%rbp)
jmp 0xd501
movq -0xa8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x2, %edx
callq 0xffb0
jmp 0xd518
movq -0xa8(%rbp), %rsi
movq -0xb0(%rbp), %rdi
callq 0xff30
jmp 0xd52d
jmp 0xd401
movq -0x98(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
movl $0x30, %esi
callq 0x2270
jmp 0xd7b7
movq -0xa8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
movl $0x30, %esi
callq 0x2270
jmp 0xd7b7
movq -0x70(%rbp), %rdi
leaq 0x6eae(%rip), %rsi      # 0x14435
callq 0x4460
movb %al, -0xb1(%rbp)
jmp 0xd594
movb -0xb1(%rbp), %al
testb $0x1, %al
jne 0xd5a3
jmp 0xd6a2
movq -0x10(%rbp), %rax
movq %rax, -0xc8(%rbp)
movl $0x30, %edi
callq 0x2260
movq %rax, -0xc0(%rbp)
jmp 0xd5c1
movq -0xc0(%rbp), %rdi
movq -0x70(%rbp), %rsi
addq $0x3, %rsi
movl $0x1, %edx
callq 0xffb0
jmp 0xd5dc
movq -0xc0(%rbp), %rsi
movq -0xc8(%rbp), %rdi
callq 0xff30
jmp 0xd5f1
movq -0x70(%rbp), %rax
movl -0x88(%rbp), %ecx
addl $-0x3, %ecx
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
movq %rax, -0xd8(%rbp)
movl $0x30, %edi
callq 0x2260
movq %rax, -0xd0(%rbp)
jmp 0xd623
movq -0xd0(%rbp), %rdi
movq -0x70(%rbp), %rsi
addq $0x3, %rsi
movl $0x1, %edx
callq 0xffb0
jmp 0xd63e
movq -0xd0(%rbp), %rsi
movq -0xd8(%rbp), %rdi
callq 0xff30
jmp 0xd653
jmp 0xd401
movq -0xc0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
movl $0x30, %esi
callq 0x2270
jmp 0xd7b7
movq -0xd0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
movl $0x30, %esi
callq 0x2270
jmp 0xd7b7
movq -0x10(%rbp), %rax
movq %rax, -0xe8(%rbp)
movl $0x30, %edi
callq 0x2260
movq %rax, -0xe0(%rbp)
jmp 0xd6c0
movq -0xe0(%rbp), %rdi
movq -0x70(%rbp), %rsi
xorl %edx, %edx
callq 0xffb0
jmp 0xd6d4
movq -0xe0(%rbp), %rsi
movq -0xe8(%rbp), %rdi
callq 0xff30
jmp 0xd6e9
movq -0x70(%rbp), %rax
movl -0x88(%rbp), %ecx
addl $-0x3, %ecx
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
movq %rax, -0xf8(%rbp)
movl $0x30, %edi
callq 0x2260
movq %rax, -0xf0(%rbp)
jmp 0xd71b
movq -0xf0(%rbp), %rdi
movq -0x70(%rbp), %rsi
xorl %edx, %edx
callq 0xffb0
jmp 0xd72f
movq -0xf0(%rbp), %rsi
movq -0xf8(%rbp), %rdi
callq 0xff30
jmp 0xd744
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0xd401
movq -0xe0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
movl $0x30, %esi
callq 0x2270
jmp 0xd7b7
movq -0xf0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
movl $0x30, %esi
callq 0x2270
jmp 0xd7b7
movl -0x20(%rbp), %eax
movl %eax, -0xfc(%rbp)
leaq -0x68(%rbp), %rdi
callq 0xfff0
movl -0xfc(%rbp), %eax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
leaq -0x68(%rbp), %rdi
callq 0xfff0
movq -0x80(%rbp), %rdi
callq 0x2400
nopl (%rax)