// File: /workspace/github_c_makefile_star2_O0/PoulinV[P]AxiCLASS/build/../tools/parser.c
// Function: parser_read_int
int parser_read_int(struct file_content * pfc,
                    char * name,
                    int * 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))
    index++;

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

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

  /* read parameter value. If this fails, return an error */

  class_test(sscanf(pfc->value[index],"%d",value) != 1,
             errmsg,
             "could not read value of parameter '%s' in file '%s'\n",name,pfc->filename);

  /* if parameter read correctly, 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 $0x2048, %rsp           # imm = 0x2048
movq %rdi, 0x2038(%rsp)
movq %rsi, 0x2030(%rsp)
movq %rdx, 0x2028(%rsp)
movq %rcx, 0x2020(%rsp)
movq %r8, 0x2018(%rsp)
movq 0x2020(%rsp), %rax
movl $0x0, (%rax)
movl $0x0, 0x2014(%rsp)
movl 0x2014(%rsp), %ecx
movq 0x2038(%rsp), %rdx
xorl %eax, %eax
cmpl 0x8(%rdx), %ecx
movb %al, 0xf(%rsp)
jge 0x38394
movq 0x2038(%rsp), %rax
movq 0x10(%rax), %rdi
movslq 0x2014(%rsp), %rax
shlq $0xa, %rax
addq %rax, %rdi
movq 0x2030(%rsp), %rsi
callq 0x84b0
cmpl $0x0, %eax
setne %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x3839e
jmp 0x383b1
movl 0x2014(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2014(%rsp)
jmp 0x38348
movl 0x2014(%rsp), %eax
movq 0x2038(%rsp), %rcx
cmpl 0x8(%rcx), %eax
jne 0x383d5
movl $0x0, 0x2044(%rsp)
jmp 0x385b7
movq 0x2038(%rsp), %rax
movq 0x18(%rax), %rdi
movslq 0x2014(%rsp), %rax
shlq $0xa, %rax
addq %rax, %rdi
movq 0x2028(%rsp), %rdx
leaq 0x1a8ab7(%rip), %rsi    # 0x1e0eb6
movb $0x0, %al
callq 0x83b0
cmpl $0x1, %eax
je 0x38497
leaq 0x1810(%rsp), %rdi
movq 0x2030(%rsp), %rdx
movq 0x2038(%rsp), %rax
movq (%rax), %rcx
leaq 0x19c7d8(%rip), %rsi    # 0x1d4c09
movb $0x0, %al
callq 0x5b9c0
leaq 0x1010(%rsp), %rdi
leaq 0x1810(%rsp), %rcx
leaq 0x199c33(%rip), %rsi    # 0x1d2082
leaq 0x19c7e8(%rip), %rdx    # 0x1d4c3e
movb $0x0, %al
callq 0x5b9c0
movq 0x2018(%rsp), %rdi
leaq 0x1010(%rsp), %r8
leaq 0x199bc0(%rip), %rsi    # 0x1d2034
leaq 0x19c7ed(%rip), %rdx    # 0x1d4c68
movl $0xbf, %ecx
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x2044(%rsp)
jmp 0x385b7
movq 0x2020(%rsp), %rax
movl $0x1, (%rax)
movq 0x2038(%rsp), %rax
movq 0x20(%rax), %rax
movslq 0x2014(%rsp), %rcx
movw $0x1, (%rax,%rcx,2)
movl 0x2014(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2010(%rsp)
movl 0x2010(%rsp), %eax
movq 0x2038(%rsp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x385ac
movq 0x2038(%rsp), %rax
movq 0x10(%rax), %rdi
movslq 0x2010(%rsp), %rax
shlq $0xa, %rax
addq %rax, %rdi
movq 0x2030(%rsp), %rsi
callq 0x84b0
cmpl $0x0, %eax
jne 0x38594
leaq 0x810(%rsp), %rdi
movq 0x2030(%rsp), %rdx
movq 0x2038(%rsp), %rax
movq (%rax), %rcx
leaq 0x19c741(%rip), %rsi    # 0x1d4c78
movb $0x0, %al
callq 0x5b9c0
leaq 0x10(%rsp), %rdi
leaq 0x810(%rsp), %rcx
leaq 0x199b30(%rip), %rsi    # 0x1d2082
leaq 0x19c74e(%rip), %rdx    # 0x1d4ca7
movb $0x0, %al
callq 0x5b9c0
movq 0x2018(%rsp), %rdi
leaq 0x10(%rsp), %r8
leaq 0x199ac0(%rip), %rsi    # 0x1d2034
leaq 0x19c6ed(%rip), %rdx    # 0x1d4c68
movl $0xcd, %ecx
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x2044(%rsp)
jmp 0x385b7
jmp 0x38596
movl 0x2010(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2010(%rsp)
jmp 0x384d0
movl $0x0, 0x2044(%rsp)
movl 0x2044(%rsp), %eax
addq $0x2048, %rsp           # imm = 0x2048
retq
nopw %cs:(%rax,%rax)