
/* WARNING: Unknown calling convention */

size_t _obstack_memory_used(obstack *h)

{
  _obstack_chunk **pp_Var1;
  char *pcVar2;
  _obstack_chunk *p_Var3;
  
  p_Var3 = h->chunk;
  pcVar2 = (char *)0x0;
  if (p_Var3 == (_obstack_chunk *)0x0) {
    return (size_t)pcVar2;
  }
  do {
    pp_Var1 = &p_Var3->prev;
    pcVar2 = p_Var3->limit + ((int)pcVar2 - (int)p_Var3);
    p_Var3 = *pp_Var1;
  } while (*pp_Var1 != (_obstack_chunk *)0x0);
  return (size_t)pcVar2;
}



int _obstack_memory_used(int param_1)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  piVar3 = *(int **)(param_1 + 4);
  iVar1 = 0;
  if (piVar3 == (int *)0x0) {
    return iVar1;
  }
  do {
    iVar2 = *piVar3 - (int)piVar3;
    piVar3 = (int *)piVar3[1];
    iVar1 = iVar1 + iVar2;
  } while (piVar3 != (int *)0x0);
  return iVar1;
}


MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [EAX + 0x4]
XOR EAX,EAX
TEST EDX,EDX
JZ 0x00029600
LEA ESI,[ESI]
MOV ECX,dword ptr [EDX]
SUB ECX,EDX
MOV EDX,dword ptr [EDX + 0x4]
ADD EAX,ECX
TEST EDX,EDX
JNZ 0x000295f0
RET
RET
(translation_unit "int _obstack_memory_used(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = 0;\n  if (piVar3 == (int *)0x0) {\n    return iVar1;\n  }\n  do {\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  } while (piVar3 != (int *)0x0);\n  return iVar1;\n}\n\n" (function_definition "int _obstack_memory_used(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = 0;\n  if (piVar3 == (int *)0x0) {\n    return iVar1;\n  }\n  do {\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  } while (piVar3 != (int *)0x0);\n  return iVar1;\n}" primitive_type (function_declarator "_obstack_memory_used(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = 0;\n  if (piVar3 == (int *)0x0) {\n    return iVar1;\n  }\n  do {\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  } while (piVar3 != (int *)0x0);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar3 = *(int **)(param_1 + 4);" (assignment_expression "piVar3 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    return iVar1;\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (do_statement "do {\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  } while (piVar3 != (int *)0x0);" do (compound_statement "{\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  }" { (expression_statement "iVar2 = *piVar3 - (int)piVar3;" (assignment_expression "iVar2 = *piVar3 - (int)piVar3" identifier = (binary_expression "*piVar3 - (int)piVar3" (pointer_expression "*piVar3" * identifier) - (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar1 = iVar1 + iVar2;" (assignment_expression "iVar1 = iVar1 + iVar2" identifier = (binary_expression "iVar1 + iVar2" identifier + identifier)) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nsize_t _obstack_memory_used(obstack *h)\n\n{\n  _obstack_chunk **pp_Var1;\n  char *pcVar2;\n  _obstack_chunk *p_Var3;\n  \n  p_Var3 = h->chunk;\n  pcVar2 = (char *)0x0;\n  if (p_Var3 == (_obstack_chunk *)0x0) {\n    return (size_t)pcVar2;\n  }\n  do {\n    pp_Var1 = &p_Var3->prev;\n    pcVar2 = p_Var3->limit + ((int)pcVar2 - (int)p_Var3);\n    p_Var3 = *pp_Var1;\n  } while (*pp_Var1 != (_obstack_chunk *)0x0);\n  return (size_t)pcVar2;\n}\n\n" comment (function_definition "size_t _obstack_memory_used(obstack *h)\n\n{\n  _obstack_chunk **pp_Var1;\n  char *pcVar2;\n  _obstack_chunk *p_Var3;\n  \n  p_Var3 = h->chunk;\n  pcVar2 = (char *)0x0;\n  if (p_Var3 == (_obstack_chunk *)0x0) {\n    return (size_t)pcVar2;\n  }\n  do {\n    pp_Var1 = &p_Var3->prev;\n    pcVar2 = p_Var3->limit + ((int)pcVar2 - (int)p_Var3);\n    p_Var3 = *pp_Var1;\n  } while (*pp_Var1 != (_obstack_chunk *)0x0);\n  return (size_t)pcVar2;\n}" primitive_type (function_declarator "_obstack_memory_used(obstack *h)" identifier (parameter_list "(obstack *h)" ( (parameter_declaration "obstack *h" type_identifier (pointer_declarator "*h" * identifier)) ))) (compound_statement "{\n  _obstack_chunk **pp_Var1;\n  char *pcVar2;\n  _obstack_chunk *p_Var3;\n  \n  p_Var3 = h->chunk;\n  pcVar2 = (char *)0x0;\n  if (p_Var3 == (_obstack_chunk *)0x0) {\n    return (size_t)pcVar2;\n  }\n  do {\n    pp_Var1 = &p_Var3->prev;\n    pcVar2 = p_Var3->limit + ((int)pcVar2 - (int)p_Var3);\n    p_Var3 = *pp_Var1;\n  } while (*pp_Var1 != (_obstack_chunk *)0x0);\n  return (size_t)pcVar2;\n}" { (declaration "_obstack_chunk **pp_Var1;" type_identifier (pointer_declarator "**pp_Var1" * (pointer_declarator "*pp_Var1" * identifier)) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "_obstack_chunk *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (expression_statement "p_Var3 = h->chunk;" (assignment_expression "p_Var3 = h->chunk" identifier = (field_expression "h->chunk" identifier -> field_identifier)) ;) (expression_statement "pcVar2 = (char *)0x0;" (assignment_expression "pcVar2 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (p_Var3 == (_obstack_chunk *)0x0) {\n    return (size_t)pcVar2;\n  }" if (parenthesized_expression "(p_Var3 == (_obstack_chunk *)0x0)" ( (binary_expression "p_Var3 == (_obstack_chunk *)0x0" identifier == (cast_expression "(_obstack_chunk *)0x0" ( (type_descriptor "_obstack_chunk *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (size_t)pcVar2;\n  }" { (return_statement "return (size_t)pcVar2;" return (cast_expression "(size_t)pcVar2" ( (type_descriptor "size_t" primitive_type) ) identifier) ;) })) (do_statement "do {\n    pp_Var1 = &p_Var3->prev;\n    pcVar2 = p_Var3->limit + ((int)pcVar2 - (int)p_Var3);\n    p_Var3 = *pp_Var1;\n  } while (*pp_Var1 != (_obstack_chunk *)0x0);" do (compound_statement "{\n    pp_Var1 = &p_Var3->prev;\n    pcVar2 = p_Var3->limit + ((int)pcVar2 - (int)p_Var3);\n    p_Var3 = *pp_Var1;\n  }" { (expression_statement "pp_Var1 = &p_Var3->prev;" (assignment_expression "pp_Var1 = &p_Var3->prev" identifier = (pointer_expression "&p_Var3->prev" & (field_expression "p_Var3->prev" identifier -> field_identifier))) ;) (expression_statement "pcVar2 = p_Var3->limit + ((int)pcVar2 - (int)p_Var3);" (assignment_expression "pcVar2 = p_Var3->limit + ((int)pcVar2 - (int)p_Var3)" identifier = (binary_expression "p_Var3->limit + ((int)pcVar2 - (int)p_Var3)" (field_expression "p_Var3->limit" identifier -> field_identifier) + (parenthesized_expression "((int)pcVar2 - (int)p_Var3)" ( (binary_expression "(int)pcVar2 - (int)p_Var3" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p_Var3" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "p_Var3 = *pp_Var1;" (assignment_expression "p_Var3 = *pp_Var1" identifier = (pointer_expression "*pp_Var1" * identifier)) ;) }) while (parenthesized_expression "(*pp_Var1 != (_obstack_chunk *)0x0)" ( (binary_expression "*pp_Var1 != (_obstack_chunk *)0x0" (pointer_expression "*pp_Var1" * identifier) != (cast_expression "(_obstack_chunk *)0x0" ( (type_descriptor "_obstack_chunk *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return (size_t)pcVar2;" return (cast_expression "(size_t)pcVar2" ( (type_descriptor "size_t" primitive_type) ) identifier) ;) })))
(translation_unit "int _obstack_memory_used(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = 0;\n  if (piVar3 == (int *)0x0) {\n    return iVar1;\n  }\n  do {\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  } while (piVar3 != (int *)0x0);\n  return iVar1;\n}\n\n" (function_definition "int _obstack_memory_used(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = 0;\n  if (piVar3 == (int *)0x0) {\n    return iVar1;\n  }\n  do {\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  } while (piVar3 != (int *)0x0);\n  return iVar1;\n}" primitive_type (function_declarator "_obstack_memory_used(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = 0;\n  if (piVar3 == (int *)0x0) {\n    return iVar1;\n  }\n  do {\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  } while (piVar3 != (int *)0x0);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar3 = *(int **)(param_1 + 4);" (assignment_expression "piVar3 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    return iVar1;\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (do_statement "do {\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  } while (piVar3 != (int *)0x0);" do (compound_statement "{\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  }" { (expression_statement "iVar2 = *piVar3 - (int)piVar3;" (assignment_expression "iVar2 = *piVar3 - (int)piVar3" identifier = (binary_expression "*piVar3 - (int)piVar3" (pointer_expression "*piVar3" * identifier) - (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar1 = iVar1 + iVar2;" (assignment_expression "iVar1 = iVar1 + iVar2" identifier = (binary_expression "iVar1 + iVar2" identifier + identifier)) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return IDENT ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (return_statement return IDENT ;) })))
(function_definition "int _obstack_memory_used(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = 0;\n  if (piVar3 == (int *)0x0) {\n    return iVar1;\n  }\n  do {\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  } while (piVar3 != (int *)0x0);\n  return iVar1;\n}" (primitive_type "int") (function_declarator "_obstack_memory_used(int param_1)" (identifier "_obstack_memory_used") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = *(int **)(param_1 + 4);\n  iVar1 = 0;\n  if (piVar3 == (int *)0x0) {\n    return iVar1;\n  }\n  do {\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  } while (piVar3 != (int *)0x0);\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "piVar3 = *(int **)(param_1 + 4);" (assignment_expression "piVar3 = *(int **)(param_1 + 4)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (piVar3 == (int *)0x0) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (do_statement "do {\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  } while (piVar3 != (int *)0x0);" (do "do") (compound_statement "{\n    iVar2 = *piVar3 - (int)piVar3;\n    piVar3 = (int *)piVar3[1];\n    iVar1 = iVar1 + iVar2;\n  }" ({ "{") (expression_statement "iVar2 = *piVar3 - (int)piVar3;" (assignment_expression "iVar2 = *piVar3 - (int)piVar3" (identifier "iVar2") (= "=") (binary_expression "*piVar3 - (int)piVar3" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (- "-") (cast_expression "(int)piVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar3")))) (; ";")) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar3[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "iVar1 = iVar1 + iVar2;" (assignment_expression "iVar1 = iVar1 + iVar2" (identifier "iVar1") (= "=") (binary_expression "iVar1 + iVar2" (identifier "iVar1") (+ "+") (identifier "iVar2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

size_t function_1(type_1 *h)

{
  type_2 **pp_Var1;
  char *pcVar2;
  type_2 *var_1;
  
  var_1 = h->chunk;
  pcVar2 = (char *)0x0;
  if (var_1 == (type_2 *)0x0) {
    return (size_t)pcVar2;
  }
  do {
    pp_Var1 = &var_1->prev;
    pcVar2 = var_1->limit + ((int)pcVar2 - (int)var_1);
    var_1 = *pp_Var1;
  } while (*pp_Var1 != (type_2 *)0x0);
  return (size_t)pcVar2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  piVar3 = *(int **)(param_1 + 4);
  iVar1 = 0;
  if (piVar3 == (int *)0x0) {
    return iVar1;
  }
  do {
    iVar2 = *piVar3 - (int)piVar3;
    piVar3 = (int *)piVar3[1];
    iVar1 = iVar1 + iVar2;
  } while (piVar3 != (int *)0x0);
  return iVar1;
}

