// File: /workspace/github_c_makefile_star2_O0/PoulinV[P]AxiCLASS/build/../tools/parser.c
// Function: parser_read_line
int parser_read_line(char * line,
                     int * is_data,
                     char * name,
                     char * value,
                     ErrorMsg errmsg) {

  char * phash;
  char * pequal;
  char * left;
  char * right;

  /* check that there is an '=' (if you want the role of '=' to be
     played by ':' you only need to substitute it in the next line and
     recompile) */

  pequal=strchr(line,'=');
  if (pequal == NULL) {*is_data = _FALSE_; return _SUCCESS_;}

  /* if yes, check that there is not an '#' before the '=' */

  phash=strchr(line,'#');
  if ((phash != NULL) && (phash-pequal<2)) {*is_data = _FALSE_; return _SUCCESS_;}

  /* get the name, i.e. the block before the '=' */

  left=line;
  while (left[0]==' ') {
    left++;
  }
  /* Ignore any of " ' */
  if(left[0]=='\'' || left[0]=='\"'){
    left++;
  }

  right=pequal-1;
  while (right[0]==' ') {
    right--;
  }
  if(right[0]=='\'' || right[0]=='\"'){
    right--;
  }

  /* deal with missing variable names */

  class_test(right-left < 0,
             errmsg,
             "Syntax error in the input line '%s': no name passed on the left of the '=' sign",line);

  class_test(right-left+1 >= _ARGUMENT_LENGTH_MAX_,
             errmsg,
             "name starting by '%s' too long; shorten it or increase _ARGUMENT_LENGTH_MAX_",strncpy(name,left,(_ARGUMENT_LENGTH_MAX_-1)));

  strncpy(name,left,right-left+1);
  name[right-left+1]='\0';

  /* get the value, i.e. the block after the '=' */

  left = pequal+1;
  while (left[0]==' ') {
    left++;
  }

  if (phash == NULL)
    right = line+strlen(line)-1;
  else
    right = phash-1;

  while (right[0]<=' ') {
    right--;
  }

  if (right-left < 0) {*is_data = _FALSE_; return _SUCCESS_;}

  class_test(right-left+1 >= _ARGUMENT_LENGTH_MAX_,
             errmsg,
             "value starting by '%s' too long; shorten it or increase _ARGUMENT_LENGTH_MAX_",strncpy(value,left,(_ARGUMENT_LENGTH_MAX_-1)));

  strncpy(value,left,right-left+1);
  value[right-left+1]='\0';

  *is_data = _TRUE_;

  return _SUCCESS_;

}

// Assembly:
subq $0x3078, %rsp           # imm = 0x3078
movq %rdi, 0x3068(%rsp)
movq %rsi, 0x3060(%rsp)
movq %rdx, 0x3058(%rsp)
movq %rcx, 0x3050(%rsp)
movq %r8, 0x3048(%rsp)
movq 0x3068(%rsp), %rdi
movl $0x3d, %esi
callq 0x8140
movq %rax, 0x3038(%rsp)
cmpq $0x0, 0x3038(%rsp)
jne 0x37ac2
movq 0x3060(%rsp), %rax
movl $0x0, (%rax)
movl $0x0, 0x3074(%rsp)
jmp 0x37f9d
movq 0x3068(%rsp), %rdi
movl $0x23, %esi
callq 0x8140
movq %rax, 0x3040(%rsp)
cmpq $0x0, 0x3040(%rsp)
je 0x37b1e
movq 0x3040(%rsp), %rax
movq 0x3038(%rsp), %rcx
subq %rcx, %rax
cmpq $0x2, %rax
jge 0x37b1e
movq 0x3060(%rsp), %rax
movl $0x0, (%rax)
movl $0x0, 0x3074(%rsp)
jmp 0x37f9d
movq 0x3068(%rsp), %rax
movq %rax, 0x3030(%rsp)
movq 0x3030(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x37b54
movq 0x3030(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x3030(%rsp)
jmp 0x37b2e
movq 0x3030(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x27, %eax
je 0x37b74
movq 0x3030(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x22, %eax
jne 0x37b88
movq 0x3030(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x3030(%rsp)
movq 0x3038(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x3028(%rsp)
movq 0x3028(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x37bc2
movq 0x3028(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x3028(%rsp)
jmp 0x37b9c
movq 0x3028(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x27, %eax
je 0x37be2
movq 0x3028(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x22, %eax
jne 0x37bf6
movq 0x3028(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x3028(%rsp)
movq 0x3028(%rsp), %rax
movq 0x3030(%rsp), %rcx
subq %rcx, %rax
cmpq $0x0, %rax
jge 0x37c8c
leaq 0x2820(%rsp), %rdi
movq 0x3068(%rsp), %rdx
leaq 0x19ceb2(%rip), %rsi    # 0x1d4ad8
movb $0x0, %al
callq 0x5b9c0
leaq 0x2020(%rsp), %rdi
leaq 0x2820(%rsp), %rcx
leaq 0x19a43e(%rip), %rsi    # 0x1d2082
leaq 0x19cedd(%rip), %rdx    # 0x1d4b28
movb $0x0, %al
callq 0x5b9c0
movq 0x3048(%rsp), %rdi
leaq 0x2020(%rsp), %r8
leaq 0x19a3cb(%rip), %rsi    # 0x1d2034
leaq 0x19cec7(%rip), %rdx    # 0x1d4b37
movl $0x7c, %ecx
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x3074(%rsp)
jmp 0x37f9d
movq 0x3028(%rsp), %rax
movq 0x3030(%rsp), %rcx
subq %rcx, %rax
addq $0x1, %rax
cmpq $0x400, %rax            # imm = 0x400
jl 0x37d4b
leaq 0x1820(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x3058(%rsp), %rdi
movq 0x3030(%rsp), %rsi
movl $0x3ff, %edx            # imm = 0x3FF
callq 0x81f0
movq 0x18(%rsp), %rdi
movq %rax, %rdx
leaq 0x19ce63(%rip), %rsi    # 0x1d4b48
movb $0x0, %al
callq 0x5b9c0
leaq 0x1020(%rsp), %rdi
leaq 0x1820(%rsp), %rcx
leaq 0x19a37f(%rip), %rsi    # 0x1d2082
leaq 0x19ce8b(%rip), %rdx    # 0x1d4b95
movb $0x0, %al
callq 0x5b9c0
movq 0x3048(%rsp), %rdi
leaq 0x1020(%rsp), %r8
leaq 0x19a30c(%rip), %rsi    # 0x1d2034
leaq 0x19ce08(%rip), %rdx    # 0x1d4b37
movl $0x80, %ecx
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x3074(%rsp)
jmp 0x37f9d
movq 0x3058(%rsp), %rdi
movq 0x3030(%rsp), %rsi
movq 0x3028(%rsp), %rdx
movq 0x3030(%rsp), %rax
subq %rax, %rdx
addq $0x1, %rdx
callq 0x81f0
movq 0x3058(%rsp), %rax
movq 0x3028(%rsp), %rcx
movq 0x3030(%rsp), %rdx
subq %rdx, %rcx
movb $0x0, 0x1(%rax,%rcx)
movq 0x3038(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x3030(%rsp)
movq 0x3030(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x37dd1
movq 0x3030(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x3030(%rsp)
jmp 0x37dab
cmpq $0x0, 0x3040(%rsp)
jne 0x37e0f
movq 0x3068(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x3068(%rsp), %rdi
callq 0x8190
movq %rax, %rcx
movq 0x10(%rsp), %rax
addq %rcx, %rax
addq $-0x1, %rax
movq %rax, 0x3028(%rsp)
jmp 0x37e23
movq 0x3040(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x3028(%rsp)
jmp 0x37e25
movq 0x3028(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jg 0x37e4b
movq 0x3028(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x3028(%rsp)
jmp 0x37e25
movq 0x3028(%rsp), %rax
movq 0x3030(%rsp), %rcx
subq %rcx, %rax
cmpq $0x0, %rax
jge 0x37e82
movq 0x3060(%rsp), %rax
movl $0x0, (%rax)
movl $0x0, 0x3074(%rsp)
jmp 0x37f9d
movq 0x3028(%rsp), %rax
movq 0x3030(%rsp), %rcx
subq %rcx, %rax
addq $0x1, %rax
cmpq $0x400, %rax            # imm = 0x400
jl 0x37f38
leaq 0x820(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x3050(%rsp), %rdi
movq 0x3030(%rsp), %rsi
movl $0x3ff, %edx            # imm = 0x3FF
callq 0x81f0
movq 0x8(%rsp), %rdi
movq %rax, %rdx
leaq 0x19cce0(%rip), %rsi    # 0x1d4bbb
movb $0x0, %al
callq 0x5b9c0
leaq 0x20(%rsp), %rdi
leaq 0x820(%rsp), %rcx
leaq 0x19a18c(%rip), %rsi    # 0x1d2082
leaq 0x19cc98(%rip), %rdx    # 0x1d4b95
movb $0x0, %al
callq 0x5b9c0
movq 0x3048(%rsp), %rdi
leaq 0x20(%rsp), %r8
leaq 0x19a11c(%rip), %rsi    # 0x1d2034
leaq 0x19cc18(%rip), %rdx    # 0x1d4b37
movl $0x99, %ecx
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x3074(%rsp)
jmp 0x37f9d
movq 0x3050(%rsp), %rdi
movq 0x3030(%rsp), %rsi
movq 0x3028(%rsp), %rdx
movq 0x3030(%rsp), %rax
subq %rax, %rdx
addq $0x1, %rdx
callq 0x81f0
movq 0x3050(%rsp), %rax
movq 0x3028(%rsp), %rcx
movq 0x3030(%rsp), %rdx
subq %rdx, %rcx
movb $0x0, 0x1(%rax,%rcx)
movq 0x3060(%rsp), %rax
movl $0x1, (%rax)
movl $0x0, 0x3074(%rsp)
movl 0x3074(%rsp), %eax
addq $0x3078, %rsp           # imm = 0x3078
retq
nopl (%rax)