
int userkey_parse_line_counter(char *text)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  char **ppcVar4;
  char **ppcVar5;
  undefined *puVar6;
  char *endptr;
  int local_14;
  
  puVar6 = PTR___stack_chk_guard_000b2f04;
  ppcVar4 = &endptr;
  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;
  uVar1 = (*(code *)PTR_strtoul_000b2e54)(text,ppcVar4,10);
  if ((*text == '\0') || (*endptr != '\0')) {
    uVar1 = 0xffffffff;
  }
  else if (0x1554 < uVar1) {
    uVar1 = 0xffffffff;
  }
  if (local_14 != *(int *)puVar6) {
    iVar3 = local_14;
    puVar6 = PTR___stack_chk_fail_000b2ed8;
    (*(code *)PTR___stack_chk_fail_000b2ed8)();
    ppcVar5 = ppcVar4;
    while( true ) {
      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);
      if (iVar2 + 1U < 0xf) {
        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {
          return 0;
        }
      }
      else if (iVar2 == 0x3a) {
        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);
        if (iVar3 != 0x20) {
          return 0;
        }
        *(undefined1 *)ppcVar5 = 0;
        return 1;
      }
      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;
      *(char *)ppcVar5 = (char)iVar2;
      ppcVar5 = (char **)((int)ppcVar5 + 1);
    }
    return 0;
  }
  return uVar1;
}



uint FUN_0006add4(char *param_1)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  char **ppcVar4;
  char **ppcVar5;
  undefined *puVar6;
  char *local_18;
  int local_14;
  
  puVar6 = PTR___stack_chk_guard_000b2f04;
  ppcVar4 = &local_18;
  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;
  uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10);
  if ((*param_1 == '\0') || (*local_18 != '\0')) {
    uVar1 = 0xffffffff;
  }
  else if (0x1554 < uVar1) {
    uVar1 = 0xffffffff;
  }
  if (local_14 != *(int *)puVar6) {
    iVar3 = local_14;
    puVar6 = PTR___stack_chk_fail_000b2ed8;
    (*(code *)PTR___stack_chk_fail_000b2ed8)();
    ppcVar5 = ppcVar4;
    while( true ) {
      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);
      if (iVar2 + 1U < 0xf) {
        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {
          return 0;
        }
      }
      else if (iVar2 == 0x3a) {
        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);
        if (iVar3 != 0x20) {
          return 0;
        }
        *(undefined1 *)ppcVar5 = 0;
        return 1;
      }
      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;
      *(char *)ppcVar5 = (char)iVar2;
      ppcVar5 = (char **)((int)ppcVar5 + 1);
    }
    return 0;
  }
  return uVar1;
}


lui gp,0x5
addiu gp,gp,-0xa64
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x751c(gp)
li a2,0xa
addiu a1,sp,0x18
sw s0,0x24(sp)
lw s0,-0x746c(gp)
sw s1,0x28(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw ra,0x2c(sp)
lw v0,0x0(s0)
sw v0,0x1c(sp)
jalr t9
_nop
lb v1,0x0(s1)
beq v1,zero,0x0006ae5c
_lw gp,0x10(sp)
lw v1,0x18(sp)
lb v1,0x0(v1)
bne v1,zero,0x0006ae5c
_li a0,-0x1
sltiu v1,v0,0x1555
movz v0,a0,v1
lw a0,0x1c(sp)
lw v1,0x0(s0)
bne a0,v1,0x0006ae64
_lw ra,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
b 0x0006ae3c
_li v0,-0x1
lw t9,-0x7498(gp)
jalr t9
_nop
(translation_unit "uint FUN_0006add4(char *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  undefined *puVar6;\n  char *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  ppcVar4 = &local_18;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10);\n  if ((*param_1 == '\0') || (*local_18 != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }\n  if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }\n  return uVar1;\n}\n\n" (function_definition "uint FUN_0006add4(char *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  undefined *puVar6;\n  char *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  ppcVar4 = &local_18;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10);\n  if ((*param_1 == '\0') || (*local_18 != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }\n  if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0006add4(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  undefined *puVar6;\n  char *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  ppcVar4 = &local_18;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10);\n  if ((*param_1 == '\0') || (*local_18 != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }\n  if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char **ppcVar4;" primitive_type (pointer_declarator "**ppcVar4" * (pointer_declarator "*ppcVar4" * identifier)) ;) (declaration "char **ppcVar5;" primitive_type (pointer_declarator "**ppcVar5" * (pointer_declarator "*ppcVar5" * identifier)) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "char *local_18;" primitive_type (pointer_declarator "*local_18" * identifier) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "ppcVar4 = &local_18;" (assignment_expression "ppcVar4 = &local_18" identifier = (pointer_expression "&local_18" & identifier)) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10);" (assignment_expression "uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10)" identifier = (call_expression "(*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10)" (parenthesized_expression "(*(code *)PTR_strtoul_000b2e54)" ( (pointer_expression "*(code *)PTR_strtoul_000b2e54" * (cast_expression "(code *)PTR_strtoul_000b2e54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,ppcVar4,10)" ( identifier , identifier , number_literal )))) ;) (if_statement "if ((*param_1 == '\0') || (*local_18 != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }" if (parenthesized_expression "((*param_1 == '\0') || (*local_18 != '\0'))" ( (binary_expression "(*param_1 == '\0') || (*local_18 != '\0')" (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*local_18 != '\0')" ( (binary_expression "*local_18 != '\0'" (pointer_expression "*local_18" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }" else (if_statement "if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }" if (parenthesized_expression "(0x1554 < uVar1)" ( (binary_expression "0x1554 < uVar1" number_literal < identifier) )) (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) })))) (if_statement "if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }" if (parenthesized_expression "(local_14 != *(int *)puVar6)" ( (binary_expression "local_14 != *(int *)puVar6" identifier != (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }" { (expression_statement "iVar3 = local_14;" (assignment_expression "iVar3 = local_14" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000b2ed8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "ppcVar5 = ppcVar4;" (assignment_expression "ppcVar5 = ppcVar4" identifier = identifier) ;) (while_statement "while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }" { (expression_statement "iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3)" identifier = (call_expression "(**(code **)(puVar6 + 0x47f90))(iVar3)" (parenthesized_expression "(**(code **)(puVar6 + 0x47f90))" ( (pointer_expression "**(code **)(puVar6 + 0x47f90)" * (pointer_expression "*(code **)(puVar6 + 0x47f90)" * (cast_expression "(code **)(puVar6 + 0x47f90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x47f90)" ( (binary_expression "puVar6 + 0x47f90" identifier + number_literal) ))))) )) (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" if (parenthesized_expression "(iVar2 + 1U < 0xf)" ( (binary_expression "iVar2 + 1U < 0xf" (binary_expression "iVar2 + 1U" identifier + number_literal) < number_literal) )) (compound_statement "{\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }" { (if_statement "if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }" if (parenthesized_expression "((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0)" ( (binary_expression "(int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0" (cast_expression "(int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f)" ( (binary_expression "(0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f" (parenthesized_expression "(0x4801U >> (iVar2 + 1U & 0x1f))" ( (binary_expression "0x4801U >> (iVar2 + 1U & 0x1f)" number_literal >> (parenthesized_expression "(iVar2 + 1U & 0x1f)" ( (binary_expression "iVar2 + 1U & 0x1f" (binary_expression "iVar2 + 1U" identifier + number_literal) & number_literal) ))) )) << number_literal) ))) < number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" else (if_statement "if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" if (parenthesized_expression "(iVar2 == 0x3a)" ( (binary_expression "iVar2 == 0x3a" identifier == number_literal) )) (compound_statement "{\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" { (expression_statement "iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);" (assignment_expression "iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3)" identifier = (call_expression "(**(code **)(puVar6 + 0x47f90))(iVar3)" (parenthesized_expression "(**(code **)(puVar6 + 0x47f90))" ( (pointer_expression "**(code **)(puVar6 + 0x47f90)" * (pointer_expression "*(code **)(puVar6 + 0x47f90)" * (cast_expression "(code **)(puVar6 + 0x47f90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x47f90)" ( (binary_expression "puVar6 + 0x47f90" identifier + number_literal) ))))) )) (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar3 != 0x20) {\n          return 0;\n        }" if (parenthesized_expression "(iVar3 != 0x20)" ( (binary_expression "iVar3 != 0x20" identifier != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined1 *)ppcVar5 = 0;" (assignment_expression "*(undefined1 *)ppcVar5 = 0" (pointer_expression "*(undefined1 *)ppcVar5" * (cast_expression "(undefined1 *)ppcVar5" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))) (if_statement "if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;" if (parenthesized_expression "(ppcVar5 == (char **)((int)ppcVar4 + 0x27))" ( (binary_expression "ppcVar5 == (char **)((int)ppcVar4 + 0x27)" identifier == (cast_expression "(char **)((int)ppcVar4 + 0x27)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppcVar4 + 0x27)" ( (binary_expression "(int)ppcVar4 + 0x27" (cast_expression "(int)ppcVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )) (break_statement "break;" break ;)) (expression_statement "*(char *)ppcVar5 = (char)iVar2;" (assignment_expression "*(char *)ppcVar5 = (char)iVar2" (pointer_expression "*(char *)ppcVar5" * (cast_expression "(char *)ppcVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "ppcVar5 = (char **)((int)ppcVar5 + 1);" (assignment_expression "ppcVar5 = (char **)((int)ppcVar5 + 1)" identifier = (cast_expression "(char **)((int)ppcVar5 + 1)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppcVar5 + 1)" ( (binary_expression "(int)ppcVar5 + 1" (cast_expression "(int)ppcVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (return_statement "return 0;" return number_literal ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int userkey_parse_line_counter(char *text)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  undefined *puVar6;\n  char *endptr;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  ppcVar4 = &endptr;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (*(code *)PTR_strtoul_000b2e54)(text,ppcVar4,10);\n  if ((*text == '\0') || (*endptr != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }\n  if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }\n  return uVar1;\n}\n\n" (function_definition "int userkey_parse_line_counter(char *text)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  undefined *puVar6;\n  char *endptr;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  ppcVar4 = &endptr;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (*(code *)PTR_strtoul_000b2e54)(text,ppcVar4,10);\n  if ((*text == '\0') || (*endptr != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }\n  if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }\n  return uVar1;\n}" primitive_type (function_declarator "userkey_parse_line_counter(char *text)" identifier (parameter_list "(char *text)" ( (parameter_declaration "char *text" primitive_type (pointer_declarator "*text" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  undefined *puVar6;\n  char *endptr;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  ppcVar4 = &endptr;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (*(code *)PTR_strtoul_000b2e54)(text,ppcVar4,10);\n  if ((*text == '\0') || (*endptr != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }\n  if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char **ppcVar4;" primitive_type (pointer_declarator "**ppcVar4" * (pointer_declarator "*ppcVar4" * identifier)) ;) (declaration "char **ppcVar5;" primitive_type (pointer_declarator "**ppcVar5" * (pointer_declarator "*ppcVar5" * identifier)) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "char *endptr;" primitive_type (pointer_declarator "*endptr" * identifier) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "ppcVar4 = &endptr;" (assignment_expression "ppcVar4 = &endptr" identifier = (pointer_expression "&endptr" & identifier)) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar1 = (*(code *)PTR_strtoul_000b2e54)(text,ppcVar4,10);" (assignment_expression "uVar1 = (*(code *)PTR_strtoul_000b2e54)(text,ppcVar4,10)" identifier = (call_expression "(*(code *)PTR_strtoul_000b2e54)(text,ppcVar4,10)" (parenthesized_expression "(*(code *)PTR_strtoul_000b2e54)" ( (pointer_expression "*(code *)PTR_strtoul_000b2e54" * (cast_expression "(code *)PTR_strtoul_000b2e54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(text,ppcVar4,10)" ( identifier , identifier , number_literal )))) ;) (if_statement "if ((*text == '\0') || (*endptr != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }" if (parenthesized_expression "((*text == '\0') || (*endptr != '\0'))" ( (binary_expression "(*text == '\0') || (*endptr != '\0')" (parenthesized_expression "(*text == '\0')" ( (binary_expression "*text == '\0'" (pointer_expression "*text" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*endptr != '\0')" ( (binary_expression "*endptr != '\0'" (pointer_expression "*endptr" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }" else (if_statement "if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }" if (parenthesized_expression "(0x1554 < uVar1)" ( (binary_expression "0x1554 < uVar1" number_literal < identifier) )) (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) })))) (if_statement "if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }" if (parenthesized_expression "(local_14 != *(int *)puVar6)" ( (binary_expression "local_14 != *(int *)puVar6" identifier != (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }" { (expression_statement "iVar3 = local_14;" (assignment_expression "iVar3 = local_14" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000b2ed8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "ppcVar5 = ppcVar4;" (assignment_expression "ppcVar5 = ppcVar4" identifier = identifier) ;) (while_statement "while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }" { (expression_statement "iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3)" identifier = (call_expression "(**(code **)(puVar6 + 0x47f90))(iVar3)" (parenthesized_expression "(**(code **)(puVar6 + 0x47f90))" ( (pointer_expression "**(code **)(puVar6 + 0x47f90)" * (pointer_expression "*(code **)(puVar6 + 0x47f90)" * (cast_expression "(code **)(puVar6 + 0x47f90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x47f90)" ( (binary_expression "puVar6 + 0x47f90" identifier + number_literal) ))))) )) (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" if (parenthesized_expression "(iVar2 + 1U < 0xf)" ( (binary_expression "iVar2 + 1U < 0xf" (binary_expression "iVar2 + 1U" identifier + number_literal) < number_literal) )) (compound_statement "{\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }" { (if_statement "if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }" if (parenthesized_expression "((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0)" ( (binary_expression "(int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0" (cast_expression "(int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f)" ( (binary_expression "(0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f" (parenthesized_expression "(0x4801U >> (iVar2 + 1U & 0x1f))" ( (binary_expression "0x4801U >> (iVar2 + 1U & 0x1f)" number_literal >> (parenthesized_expression "(iVar2 + 1U & 0x1f)" ( (binary_expression "iVar2 + 1U & 0x1f" (binary_expression "iVar2 + 1U" identifier + number_literal) & number_literal) ))) )) << number_literal) ))) < number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" else (if_statement "if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" if (parenthesized_expression "(iVar2 == 0x3a)" ( (binary_expression "iVar2 == 0x3a" identifier == number_literal) )) (compound_statement "{\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" { (expression_statement "iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);" (assignment_expression "iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3)" identifier = (call_expression "(**(code **)(puVar6 + 0x47f90))(iVar3)" (parenthesized_expression "(**(code **)(puVar6 + 0x47f90))" ( (pointer_expression "**(code **)(puVar6 + 0x47f90)" * (pointer_expression "*(code **)(puVar6 + 0x47f90)" * (cast_expression "(code **)(puVar6 + 0x47f90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x47f90)" ( (binary_expression "puVar6 + 0x47f90" identifier + number_literal) ))))) )) (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar3 != 0x20) {\n          return 0;\n        }" if (parenthesized_expression "(iVar3 != 0x20)" ( (binary_expression "iVar3 != 0x20" identifier != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined1 *)ppcVar5 = 0;" (assignment_expression "*(undefined1 *)ppcVar5 = 0" (pointer_expression "*(undefined1 *)ppcVar5" * (cast_expression "(undefined1 *)ppcVar5" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))) (if_statement "if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;" if (parenthesized_expression "(ppcVar5 == (char **)((int)ppcVar4 + 0x27))" ( (binary_expression "ppcVar5 == (char **)((int)ppcVar4 + 0x27)" identifier == (cast_expression "(char **)((int)ppcVar4 + 0x27)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppcVar4 + 0x27)" ( (binary_expression "(int)ppcVar4 + 0x27" (cast_expression "(int)ppcVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )) (break_statement "break;" break ;)) (expression_statement "*(char *)ppcVar5 = (char)iVar2;" (assignment_expression "*(char *)ppcVar5 = (char)iVar2" (pointer_expression "*(char *)ppcVar5" * (cast_expression "(char *)ppcVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "ppcVar5 = (char **)((int)ppcVar5 + 1);" (assignment_expression "ppcVar5 = (char **)((int)ppcVar5 + 1)" identifier = (cast_expression "(char **)((int)ppcVar5 + 1)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppcVar5 + 1)" ( (binary_expression "(int)ppcVar5 + 1" (cast_expression "(int)ppcVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (return_statement "return 0;" return number_literal ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "uint FUN_0006add4(char *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  undefined *puVar6;\n  char *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  ppcVar4 = &local_18;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10);\n  if ((*param_1 == '\0') || (*local_18 != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }\n  if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }\n  return uVar1;\n}\n\n" (function_definition "uint FUN_0006add4(char *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  undefined *puVar6;\n  char *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  ppcVar4 = &local_18;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10);\n  if ((*param_1 == '\0') || (*local_18 != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }\n  if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0006add4(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  undefined *puVar6;\n  char *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  ppcVar4 = &local_18;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10);\n  if ((*param_1 == '\0') || (*local_18 != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }\n  if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char **ppcVar4;" primitive_type (pointer_declarator "**ppcVar4" * (pointer_declarator "*ppcVar4" * identifier)) ;) (declaration "char **ppcVar5;" primitive_type (pointer_declarator "**ppcVar5" * (pointer_declarator "*ppcVar5" * identifier)) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "char *local_18;" primitive_type (pointer_declarator "*local_18" * identifier) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "ppcVar4 = &local_18;" (assignment_expression "ppcVar4 = &local_18" identifier = (pointer_expression "&local_18" & identifier)) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10);" (assignment_expression "uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10)" identifier = (call_expression "(*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10)" (parenthesized_expression "(*(code *)PTR_strtoul_000b2e54)" ( (pointer_expression "*(code *)PTR_strtoul_000b2e54" * (cast_expression "(code *)PTR_strtoul_000b2e54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,ppcVar4,10)" ( identifier , identifier , number_literal )))) ;) (if_statement "if ((*param_1 == '\0') || (*local_18 != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }" if (parenthesized_expression "((*param_1 == '\0') || (*local_18 != '\0'))" ( (binary_expression "(*param_1 == '\0') || (*local_18 != '\0')" (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*local_18 != '\0')" ( (binary_expression "*local_18 != '\0'" (pointer_expression "*local_18" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }" else (if_statement "if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }" if (parenthesized_expression "(0x1554 < uVar1)" ( (binary_expression "0x1554 < uVar1" number_literal < identifier) )) (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) })))) (if_statement "if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }" if (parenthesized_expression "(local_14 != *(int *)puVar6)" ( (binary_expression "local_14 != *(int *)puVar6" identifier != (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }" { (expression_statement "iVar3 = local_14;" (assignment_expression "iVar3 = local_14" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000b2ed8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "ppcVar5 = ppcVar4;" (assignment_expression "ppcVar5 = ppcVar4" identifier = identifier) ;) (while_statement "while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }" { (expression_statement "iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3)" identifier = (call_expression "(**(code **)(puVar6 + 0x47f90))(iVar3)" (parenthesized_expression "(**(code **)(puVar6 + 0x47f90))" ( (pointer_expression "**(code **)(puVar6 + 0x47f90)" * (pointer_expression "*(code **)(puVar6 + 0x47f90)" * (cast_expression "(code **)(puVar6 + 0x47f90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x47f90)" ( (binary_expression "puVar6 + 0x47f90" identifier + number_literal) ))))) )) (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" if (parenthesized_expression "(iVar2 + 1U < 0xf)" ( (binary_expression "iVar2 + 1U < 0xf" (binary_expression "iVar2 + 1U" identifier + number_literal) < number_literal) )) (compound_statement "{\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }" { (if_statement "if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }" if (parenthesized_expression "((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0)" ( (binary_expression "(int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0" (cast_expression "(int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f)" ( (binary_expression "(0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f" (parenthesized_expression "(0x4801U >> (iVar2 + 1U & 0x1f))" ( (binary_expression "0x4801U >> (iVar2 + 1U & 0x1f)" number_literal >> (parenthesized_expression "(iVar2 + 1U & 0x1f)" ( (binary_expression "iVar2 + 1U & 0x1f" (binary_expression "iVar2 + 1U" identifier + number_literal) & number_literal) ))) )) << number_literal) ))) < number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" else (if_statement "if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" if (parenthesized_expression "(iVar2 == 0x3a)" ( (binary_expression "iVar2 == 0x3a" identifier == number_literal) )) (compound_statement "{\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" { (expression_statement "iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);" (assignment_expression "iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3)" identifier = (call_expression "(**(code **)(puVar6 + 0x47f90))(iVar3)" (parenthesized_expression "(**(code **)(puVar6 + 0x47f90))" ( (pointer_expression "**(code **)(puVar6 + 0x47f90)" * (pointer_expression "*(code **)(puVar6 + 0x47f90)" * (cast_expression "(code **)(puVar6 + 0x47f90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x47f90)" ( (binary_expression "puVar6 + 0x47f90" identifier + number_literal) ))))) )) (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar3 != 0x20) {\n          return 0;\n        }" if (parenthesized_expression "(iVar3 != 0x20)" ( (binary_expression "iVar3 != 0x20" identifier != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined1 *)ppcVar5 = 0;" (assignment_expression "*(undefined1 *)ppcVar5 = 0" (pointer_expression "*(undefined1 *)ppcVar5" * (cast_expression "(undefined1 *)ppcVar5" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))) (if_statement "if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;" if (parenthesized_expression "(ppcVar5 == (char **)((int)ppcVar4 + 0x27))" ( (binary_expression "ppcVar5 == (char **)((int)ppcVar4 + 0x27)" identifier == (cast_expression "(char **)((int)ppcVar4 + 0x27)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppcVar4 + 0x27)" ( (binary_expression "(int)ppcVar4 + 0x27" (cast_expression "(int)ppcVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )) (break_statement "break;" break ;)) (expression_statement "*(char *)ppcVar5 = (char)iVar2;" (assignment_expression "*(char *)ppcVar5 = (char)iVar2" (pointer_expression "*(char *)ppcVar5" * (cast_expression "(char *)ppcVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "ppcVar5 = (char **)((int)ppcVar5 + 1);" (assignment_expression "ppcVar5 = (char **)((int)ppcVar5 + 1)" identifier = (cast_expression "(char **)((int)ppcVar5 + 1)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppcVar5 + 1)" ( (binary_expression "(int)ppcVar5 + 1" (cast_expression "(int)ppcVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (return_statement "return 0;" return number_literal ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT >> (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) & LIT) ))) )) << LIT) ))) < LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (return_statement return LIT ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) })) (return_statement return LIT ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_0006add4(char *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  undefined *puVar6;\n  char *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  ppcVar4 = &local_18;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10);\n  if ((*param_1 == '\0') || (*local_18 != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }\n  if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "FUN_0006add4(char *param_1)" (identifier "FUN_0006add4") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  undefined *puVar6;\n  char *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_000b2f04;\n  ppcVar4 = &local_18;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10);\n  if ((*param_1 == '\0') || (*local_18 != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }\n  if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char **ppcVar4;" (primitive_type "char") (pointer_declarator "**ppcVar4" (* "*") (pointer_declarator "*ppcVar4" (* "*") (identifier "ppcVar4"))) (; ";")) (declaration "char **ppcVar5;" (primitive_type "char") (pointer_declarator "**ppcVar5" (* "*") (pointer_declarator "*ppcVar5" (* "*") (identifier "ppcVar5"))) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "char *local_18;" (primitive_type "char") (pointer_declarator "*local_18" (* "*") (identifier "local_18")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar6 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000b2f04" (identifier "puVar6") (= "=") (identifier "PTR___stack_chk_guard_000b2f04")) (; ";")) (expression_statement "ppcVar4 = &local_18;" (assignment_expression "ppcVar4 = &local_18" (identifier "ppcVar4") (= "=") (pointer_expression "&local_18" (& "&") (identifier "local_18"))) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000b2f04" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b2f04")))) (; ";")) (expression_statement "uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10);" (assignment_expression "uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10)" (parenthesized_expression "(*(code *)PTR_strtoul_000b2e54)" (( "(") (pointer_expression "*(code *)PTR_strtoul_000b2e54" (* "*") (cast_expression "(code *)PTR_strtoul_000b2e54" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtoul_000b2e54"))) () ")")) (argument_list "(param_1,ppcVar4,10)" (( "(") (identifier "param_1") (, ",") (identifier "ppcVar4") (, ",") (number_literal "10") () ")")))) (; ";")) (if_statement "if ((*param_1 == '\0') || (*local_18 != '\0')) {\n    uVar1 = 0xffffffff;\n  }\n  else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }" (if "if") (parenthesized_expression "((*param_1 == '\0') || (*local_18 != '\0'))" (( "(") (binary_expression "(*param_1 == '\0') || (*local_18 != '\0')" (parenthesized_expression "(*param_1 == '\0')" (( "(") (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(*local_18 != '\0')" (( "(") (binary_expression "*local_18 != '\0'" (pointer_expression "*local_18" (* "*") (identifier "local_18")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }" (else "else") (if_statement "if (0x1554 < uVar1) {\n    uVar1 = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(0x1554 < uVar1)" (( "(") (binary_expression "0x1554 < uVar1" (number_literal "0x1554") (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))))) (if_statement "if (local_14 != *(int *)puVar6) {\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(local_14 != *(int *)puVar6)" (( "(") (binary_expression "local_14 != *(int *)puVar6" (identifier "local_14") (!= "!=") (pointer_expression "*(int *)puVar6" (* "*") (cast_expression "(int *)puVar6" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar6")))) () ")")) (compound_statement "{\n    iVar3 = local_14;\n    puVar6 = PTR___stack_chk_fail_000b2ed8;\n    (*(code *)PTR___stack_chk_fail_000b2ed8)();\n    ppcVar5 = ppcVar4;\n    while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }\n    return 0;\n  }" ({ "{") (expression_statement "iVar3 = local_14;" (assignment_expression "iVar3 = local_14" (identifier "iVar3") (= "=") (identifier "local_14")) (; ";")) (expression_statement "puVar6 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000b2ed8" (identifier "puVar6") (= "=") (identifier "PTR___stack_chk_fail_000b2ed8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b2ed8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "ppcVar5 = ppcVar4;" (assignment_expression "ppcVar5 = ppcVar4" (identifier "ppcVar5") (= "=") (identifier "ppcVar4")) (; ";")) (while_statement "while( true ) {\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n      if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }\n      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;\n      *(char *)ppcVar5 = (char)iVar2;\n      ppcVar5 = (char **)((int)ppcVar5 + 1);\n    }" ({ "{") (expression_statement "iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar6 + 0x47f90))(iVar3)" (parenthesized_expression "(**(code **)(puVar6 + 0x47f90))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x47f90)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x47f90)" (* "*") (cast_expression "(code **)(puVar6 + 0x47f90)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x47f90)" (( "(") (binary_expression "puVar6 + 0x47f90" (identifier "puVar6") (+ "+") (number_literal "0x47f90")) () ")"))))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (if_statement "if (iVar2 + 1U < 0xf) {\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }\n      else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" (if "if") (parenthesized_expression "(iVar2 + 1U < 0xf)" (( "(") (binary_expression "iVar2 + 1U < 0xf" (binary_expression "iVar2 + 1U" (identifier "iVar2") (+ "+") (number_literal "1U")) (< "<") (number_literal "0xf")) () ")")) (compound_statement "{\n        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }\n      }" ({ "{") (if_statement "if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {\n          return 0;\n        }" (if "if") (parenthesized_expression "((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0)" (( "(") (binary_expression "(int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0" (cast_expression "(int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f)" (( "(") (binary_expression "(0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f" (parenthesized_expression "(0x4801U >> (iVar2 + 1U & 0x1f))" (( "(") (binary_expression "0x4801U >> (iVar2 + 1U & 0x1f)" (number_literal "0x4801U") (>> ">>") (parenthesized_expression "(iVar2 + 1U & 0x1f)" (( "(") (binary_expression "iVar2 + 1U & 0x1f" (binary_expression "iVar2 + 1U" (identifier "iVar2") (+ "+") (number_literal "1U")) (& "&") (number_literal "0x1f")) () ")"))) () ")")) (<< "<<") (number_literal "0x1f")) () ")"))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" (else "else") (if_statement "if (iVar2 == 0x3a) {\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0x3a)" (( "(") (binary_expression "iVar2 == 0x3a" (identifier "iVar2") (== "==") (number_literal "0x3a")) () ")")) (compound_statement "{\n        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);\n        if (iVar3 != 0x20) {\n          return 0;\n        }\n        *(undefined1 *)ppcVar5 = 0;\n        return 1;\n      }" ({ "{") (expression_statement "iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);" (assignment_expression "iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(puVar6 + 0x47f90))(iVar3)" (parenthesized_expression "(**(code **)(puVar6 + 0x47f90))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x47f90)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x47f90)" (* "*") (cast_expression "(code **)(puVar6 + 0x47f90)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x47f90)" (( "(") (binary_expression "puVar6 + 0x47f90" (identifier "puVar6") (+ "+") (number_literal "0x47f90")) () ")"))))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (if_statement "if (iVar3 != 0x20) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(iVar3 != 0x20)" (( "(") (binary_expression "iVar3 != 0x20" (identifier "iVar3") (!= "!=") (number_literal "0x20")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*(undefined1 *)ppcVar5 = 0;" (assignment_expression "*(undefined1 *)ppcVar5 = 0" (pointer_expression "*(undefined1 *)ppcVar5" (* "*") (cast_expression "(undefined1 *)ppcVar5" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "ppcVar5"))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))))) (if_statement "if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;" (if "if") (parenthesized_expression "(ppcVar5 == (char **)((int)ppcVar4 + 0x27))" (( "(") (binary_expression "ppcVar5 == (char **)((int)ppcVar4 + 0x27)" (identifier "ppcVar5") (== "==") (cast_expression "(char **)((int)ppcVar4 + 0x27)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)ppcVar4 + 0x27)" (( "(") (binary_expression "(int)ppcVar4 + 0x27" (cast_expression "(int)ppcVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppcVar4")) (+ "+") (number_literal "0x27")) () ")")))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*(char *)ppcVar5 = (char)iVar2;" (assignment_expression "*(char *)ppcVar5 = (char)iVar2" (pointer_expression "*(char *)ppcVar5" (* "*") (cast_expression "(char *)ppcVar5" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "ppcVar5"))) (= "=") (cast_expression "(char)iVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar2"))) (; ";")) (expression_statement "ppcVar5 = (char **)((int)ppcVar5 + 1);" (assignment_expression "ppcVar5 = (char **)((int)ppcVar5 + 1)" (identifier "ppcVar5") (= "=") (cast_expression "(char **)((int)ppcVar5 + 1)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)ppcVar5 + 1)" (( "(") (binary_expression "(int)ppcVar5 + 1" (cast_expression "(int)ppcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppcVar5")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

int function_1(char *text)

{
  type_1 var_1;
  int var_4;
  int var_5;
  char **ppcVar4;
  char **var_6;
  type_2 *var_3;
  char *endptr;
  int var_2;
  
  var_3 = PTR___stack_chk_guard_000b2f04;
  ppcVar4 = &endptr;
  var_2 = *(int *)PTR___stack_chk_guard_000b2f04;
  var_1 = (*(type_3 *)PTR_strtoul_000b2e54)(text,ppcVar4,10);
  if ((*text == '\0') || (*endptr != '\0')) {
    var_1 = 0xffffffff;
  }
  else if (0x1554 < var_1) {
    var_1 = 0xffffffff;
  }
  if (var_2 != *(int *)var_3) {
    var_5 = var_2;
    var_3 = PTR___stack_chk_fail_000b2ed8;
    (*(type_3 *)PTR___stack_chk_fail_000b2ed8)();
    var_6 = ppcVar4;
    while( true ) {
      var_4 = (**(type_3 **)(var_3 + 0x47f90))(var_5);
      if (var_4 + 1U < 0xf) {
        if ((int)((0x4801U >> (var_4 + 1U & 0x1f)) << 0x1f) < 0) {
          return 0;
        }
      }
      else if (var_4 == 0x3a) {
        var_5 = (**(type_3 **)(var_3 + 0x47f90))(var_5);
        if (var_5 != 0x20) {
          return 0;
        }
        *(type_4 *)var_6 = 0;
        return 1;
      }
      if (var_6 == (char **)((int)ppcVar4 + 0x27)) break;
      *(char *)var_6 = (char)var_4;
      var_6 = (char **)((int)var_6 + 1);
    }
    return 0;
  }
  return var_1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))) right: (number_literal)))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) (return_statement (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) (return_statement (number_literal)))) (return_statement (identifier)))))

uint MASKED(char *param_1)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  char **ppcVar4;
  char **ppcVar5;
  undefined *puVar6;
  char *local_18;
  int local_14;
  
  puVar6 = PTR___stack_chk_guard_000b2f04;
  ppcVar4 = &local_18;
  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;
  uVar1 = (*(code *)PTR_strtoul_000b2e54)(param_1,ppcVar4,10);
  if ((*param_1 == '\0') || (*local_18 != '\0')) {
    uVar1 = 0xffffffff;
  }
  else if (0x1554 < uVar1) {
    uVar1 = 0xffffffff;
  }
  if (local_14 != *(int *)puVar6) {
    iVar3 = local_14;
    puVar6 = PTR___stack_chk_fail_000b2ed8;
    (*(code *)PTR___stack_chk_fail_000b2ed8)();
    ppcVar5 = ppcVar4;
    while( true ) {
      iVar2 = (**(code **)(puVar6 + 0x47f90))(iVar3);
      if (iVar2 + 1U < 0xf) {
        if ((int)((0x4801U >> (iVar2 + 1U & 0x1f)) << 0x1f) < 0) {
          return 0;
        }
      }
      else if (iVar2 == 0x3a) {
        iVar3 = (**(code **)(puVar6 + 0x47f90))(iVar3);
        if (iVar3 != 0x20) {
          return 0;
        }
        *(undefined1 *)ppcVar5 = 0;
        return 1;
      }
      if (ppcVar5 == (char **)((int)ppcVar4 + 0x27)) break;
      *(char *)ppcVar5 = (char)iVar2;
      ppcVar5 = (char **)((int)ppcVar5 + 1);
    }
    return 0;
  }
  return uVar1;
}

