// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/llex.c
// Function: read_string
static void read_string (LexState *ls, int del, SemInfo *seminfo) {
  save_and_next(ls);  /* keep delimiter (for error messages) */
  while (ls->current != del) {
    switch (ls->current) {
      case EOZ:
        lexerror(ls, "unfinished string", TK_EOS);
        break;  /* to avoid warnings */
      case '\n':
      case '\r':
        lexerror(ls, "unfinished string", TK_STRING);
        break;  /* to avoid warnings */
      case '\\': {  /* escape sequences */
        int c;  /* final character to be saved */
        next(ls);  /* do not save the `\' */
        switch (ls->current) {
          case 'a': c = '\a'; goto read_save;
          case 'b': c = '\b'; goto read_save;
          case 'f': c = '\f'; goto read_save;
          case 'n': c = '\n'; goto read_save;
          case 'r': c = '\r'; goto read_save;
          case 't': c = '\t'; goto read_save;
          case 'v': c = '\v'; goto read_save;
          case 'x': c = readhexaesc(ls); goto read_save;
          case '\n': case '\r':
            inclinenumber(ls); c = '\n'; goto only_save;
          case '\\': case '\"': case '\'':
            c = ls->current; goto read_save;
          case EOZ: goto no_save;  /* will raise an error next loop */
          case 'z': {  /* zap following span of spaces */
            next(ls);  /* skip the 'z' */
            while (lisspace(ls->current)) {
              if (currIsNewline(ls)) inclinenumber(ls);
              else next(ls);
            }
            goto no_save;
          }
          default: {
            if (!lisdigit(ls->current))
              escerror(ls, &ls->current, 1, "invalid escape sequence");
            /* digital escape \ddd */
            c = readdecesc(ls);
            goto only_save;
          }
        }
       read_save: next(ls);  /* read next character */
       only_save: save(ls, c);  /* save 'c' */
       no_save: break;
      }
      default:
        save_and_next(ls);
    }
  }
  save_and_next(ls);  /* skip delimiter */
  seminfo->ts = luaX_newstring(ls, luaZ_buffer(ls->buff) + 1,
                                   luaZ_bufflen(ls->buff) - 2);
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movl %esi, 0x3c(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x40(%rsp), %rdi
movq 0x40(%rsp), %rax
movl (%rax), %esi
callq 0x33180
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x33830
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, 0x28(%rsp)
jmp 0x33842
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x2c3a0
movl %eax, 0x28(%rsp)
movl 0x28(%rsp), %ecx
movq 0x40(%rsp), %rax
movl %ecx, (%rax)
movq 0x40(%rsp), %rax
movl (%rax), %eax
cmpl 0x3c(%rsp), %eax
je 0x33c05
movq 0x40(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x24(%rsp)
subl $-0x1, %eax
je 0x33894
jmp 0x33870
movl 0x24(%rsp), %eax
subl $0xa, %eax
je 0x338aa
jmp 0x3387b
movl 0x24(%rsp), %eax
subl $0xd, %eax
je 0x338aa
jmp 0x33886
movl 0x24(%rsp), %eax
subl $0x5c, %eax
je 0x338c0
jmp 0x33b95
movq 0x40(%rsp), %rdi
leaq 0x462c(%rip), %rsi      # 0x37ecc
movl $0x11e, %edx            # imm = 0x11E
callq 0x32330
movq 0x40(%rsp), %rdi
leaq 0x4616(%rip), %rsi      # 0x37ecc
movl $0x121, %edx            # imm = 0x121
callq 0x32330
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x338fd
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, 0x20(%rsp)
jmp 0x3390f
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x2c3a0
movl %eax, 0x20(%rsp)
movl 0x20(%rsp), %ecx
movq 0x40(%rsp), %rax
movl %ecx, (%rax)
movq 0x40(%rsp), %rax
movl (%rax), %eax
incl %eax
movl %eax, %ecx
movq %rcx, 0x18(%rsp)
subl $0x7b, %eax
ja 0x33ae0
movq 0x18(%rsp), %rax
leaq 0x42ad(%rip), %rcx      # 0x37bec
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x7, 0x2c(%rsp)
jmp 0x33b2b
movl $0x8, 0x2c(%rsp)
jmp 0x33b2b
movl $0xc, 0x2c(%rsp)
jmp 0x33b2b
movl $0xa, 0x2c(%rsp)
jmp 0x33b2b
movl $0xd, 0x2c(%rsp)
jmp 0x33b2b
movl $0x9, 0x2c(%rsp)
jmp 0x33b2b
movl $0xb, 0x2c(%rsp)
jmp 0x33b2b
movq 0x40(%rsp), %rdi
callq 0x33f60
movl %eax, 0x2c(%rsp)
jmp 0x33b2b
movq 0x40(%rsp), %rdi
callq 0x33280
movl $0xa, 0x2c(%rsp)
jmp 0x33b85
movq 0x40(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x2c(%rsp)
jmp 0x33b2b
jmp 0x33b93
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x33a1f
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, 0x14(%rsp)
jmp 0x33a31
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x2c3a0
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %ecx
movq 0x40(%rsp), %rax
movl %ecx, (%rax)
movq 0x40(%rsp), %rax
movl (%rax), %eax
addl $0x1, %eax
movslq %eax, %rcx
leaq 0x3cd0(%rip), %rax      # 0x37720
movzbl (%rax,%rcx), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x33adb
movq 0x40(%rsp), %rax
cmpl $0xa, (%rax)
je 0x33a70
movq 0x40(%rsp), %rax
cmpl $0xd, (%rax)
jne 0x33a7c
movq 0x40(%rsp), %rdi
callq 0x33280
jmp 0x33ad6
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x33ab9
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, 0x10(%rsp)
jmp 0x33acb
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x2c3a0
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %ecx
movq 0x40(%rsp), %rax
movl %ecx, (%rax)
jmp 0x33a3c
jmp 0x33b93
movq 0x40(%rsp), %rax
movl (%rax), %eax
addl $0x1, %eax
movslq %eax, %rcx
leaq 0x3c2c(%rip), %rax      # 0x37720
movzbl (%rax,%rcx), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0x33b1b
movq 0x40(%rsp), %rdi
movq 0x40(%rsp), %rsi
movl $0x1, %edx
leaq 0x43c8(%rip), %rcx      # 0x37ede
callq 0x34070
movq 0x40(%rsp), %rdi
callq 0x34120
movl %eax, 0x2c(%rsp)
jmp 0x33b85
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x33b68
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, 0xc(%rsp)
jmp 0x33b7a
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x2c3a0
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %ecx
movq 0x40(%rsp), %rax
movl %ecx, (%rax)
movq 0x40(%rsp), %rdi
movl 0x2c(%rsp), %esi
callq 0x33180
jmp 0x33c00
movq 0x40(%rsp), %rdi
movq 0x40(%rsp), %rax
movl (%rax), %esi
callq 0x33180
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x33be3
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, 0x8(%rsp)
jmp 0x33bf5
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x2c3a0
movl %eax, 0x8(%rsp)
movl 0x8(%rsp), %ecx
movq 0x40(%rsp), %rax
movl %ecx, (%rax)
jmp 0x3384d
movq 0x40(%rsp), %rdi
movq 0x40(%rsp), %rax
movl (%rax), %esi
callq 0x33180
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, (%rcx)
cmpq $0x0, %rax
jbe 0x33c53
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
movzbl (%rax), %eax
movl %eax, 0x4(%rsp)
jmp 0x33c65
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x2c3a0
movl %eax, 0x4(%rsp)
movl 0x4(%rsp), %ecx
movq 0x40(%rsp), %rax
movl %ecx, (%rax)
movq 0x40(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x48(%rax), %rax
movq (%rax), %rsi
addq $0x1, %rsi
movq 0x40(%rsp), %rax
movq 0x48(%rax), %rax
movq 0x8(%rax), %rdx
subq $0x2, %rdx
callq 0x323f0
movq %rax, %rcx
movq 0x30(%rsp), %rax
movq %rcx, (%rax)
addq $0x48, %rsp
retq
nopl (%rax,%rax)