// File: /workspace/github_c_makefile_star2_O0/PoulinV[P]AxiCLASS/build/../tools/parser.c
// Function: parser_read_string
int parser_read_string(struct file_content * pfc,
                       char * name,
                       FileArg * value,
                       int * found,
                       ErrorMsg errmsg) {
  int index;
  int i;

  /* intialize the 'found' flag to false */

  * found = _FALSE_;

  /* search parameter */

  index=0;
  while ((index < pfc->size) && (strcmp(pfc->name[index],name) != 0)){
		// printf("reading %s \n", pfc->name[index]);
		index++;

	}

  /* if parameter not found, return with 'found' flag still equal to false */

  if (index == pfc->size)
    return _SUCCESS_;

  /* read parameter value. */

  strcpy(*value,pfc->value[index]);

  /* Set 'found' flag to true, as well as the flag
     associated with this parameter in the file_content structure */

  * found = _TRUE_;
  pfc->read[index] = _TRUE_;

  /* check for multiple entries of the same parameter. If another occurence is found,
     return an error. */

  for (i=index+1; i < pfc->size; i++) {
    class_test(strcmp(pfc->name[i],name) == 0,
               errmsg,
               "multiple entry of parameter '%s' in file '%s'\n",name,pfc->filename);
  }

  /* if everything proceeded normally, return with 'found' flag equal to true */

  return _SUCCESS_;

}

// Assembly:
subq $0x1048, %rsp           # imm = 0x1048
movq %rdi, 0x1038(%rsp)
movq %rsi, 0x1030(%rsp)
movq %rdx, 0x1028(%rsp)
movq %rcx, 0x1020(%rsp)
movq %r8, 0x1018(%rsp)
movq 0x1020(%rsp), %rax
movl $0x0, (%rax)
movl $0x0, 0x1014(%rsp)
movl 0x1014(%rsp), %ecx
movq 0x1038(%rsp), %rdx
xorl %eax, %eax
cmpl 0x8(%rdx), %ecx
movb %al, 0xf(%rsp)
jge 0x38c14
movq 0x1038(%rsp), %rax
movq 0x10(%rax), %rdi
movslq 0x1014(%rsp), %rax
shlq $0xa, %rax
addq %rax, %rdi
movq 0x1030(%rsp), %rsi
callq 0x84b0
cmpl $0x0, %eax
setne %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x38c1e
jmp 0x38c31
movl 0x1014(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1014(%rsp)
jmp 0x38bc8
movl 0x1014(%rsp), %eax
movq 0x1038(%rsp), %rcx
cmpl 0x8(%rcx), %eax
jne 0x38c55
movl $0x0, 0x1044(%rsp)
jmp 0x38d9d
movq 0x1028(%rsp), %rdi
movq 0x1038(%rsp), %rax
movq 0x18(%rax), %rsi
movslq 0x1014(%rsp), %rax
shlq $0xa, %rax
addq %rax, %rsi
callq 0x8370
movq 0x1020(%rsp), %rax
movl $0x1, (%rax)
movq 0x1038(%rsp), %rax
movq 0x20(%rax), %rax
movslq 0x1014(%rsp), %rcx
movw $0x1, (%rax,%rcx,2)
movl 0x1014(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1010(%rsp)
movl 0x1010(%rsp), %eax
movq 0x1038(%rsp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x38d92
movq 0x1038(%rsp), %rax
movq 0x10(%rax), %rdi
movslq 0x1010(%rsp), %rax
shlq $0xa, %rax
addq %rax, %rdi
movq 0x1030(%rsp), %rsi
callq 0x84b0
cmpl $0x0, %eax
jne 0x38d7a
leaq 0x810(%rsp), %rdi
movq 0x1030(%rsp), %rdx
movq 0x1038(%rsp), %rax
movq (%rax), %rcx
leaq 0x19bf5b(%rip), %rsi    # 0x1d4c78
movb $0x0, %al
callq 0x5b9c0
leaq 0x10(%rsp), %rdi
leaq 0x810(%rsp), %rcx
leaq 0x19934a(%rip), %rsi    # 0x1d2082
leaq 0x19bf68(%rip), %rdx    # 0x1d4ca7
movb $0x0, %al
callq 0x5b9c0
movq 0x1018(%rsp), %rdi
leaq 0x10(%rsp), %r8
leaq 0x1992da(%rip), %rsi    # 0x1d2034
leaq 0x19bfc3(%rip), %rdx    # 0x1d4d24
movl $0x167, %ecx            # imm = 0x167
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x1044(%rsp)
jmp 0x38d9d
jmp 0x38d7c
movl 0x1010(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1010(%rsp)
jmp 0x38cb6
movl $0x0, 0x1044(%rsp)
movl 0x1044(%rsp), %eax
addq $0x1048, %rsp           # imm = 0x1048
retq
nopl (%rax)