
char ctrlparse(char *s,char **next)

{
  byte bVar1;
  char cVar2;
  char *pcVar3;
  
  if (*s != '^') {
    *next = (char *)0x0;
    return '\0';
  }
  bVar1 = s[1];
  if (bVar1 == 0) {
    *next = (char *)0x0;
    return '\0';
  }
  if (bVar1 == 0x3c) {
    cVar2 = (*(code *)PTR_strtol_000bcb28)(s + 2,next,0);
    pcVar3 = *next;
    if ((pcVar3 == s + 2) || (*pcVar3 != '>')) {
      *next = (char *)0x0;
      cVar2 = '\0';
    }
    else {
      *next = pcVar3 + 1;
    }
    return cVar2;
  }
  if ((byte)(bVar1 + 0x9f) < 0x1a) {
    *next = s + 2;
    return bVar1 + 0xa0;
  }
  if ((0x20 < (byte)(bVar1 - 0x3f)) && (-1 < (char)bVar1)) {
    if (bVar1 != 0x7e) {
      return '\0';
    }
    *next = s + 2;
    return '^';
  }
  *next = s + 2;
  return bVar1 ^ 0x40;
}



uint ctrlparse(char *param_1,undefined4 *param_2)

{
  uint uVar1;
  char cVar2;
  char *pcVar3;
  
  if (*param_1 != '^') {
    *param_2 = 0;
    return 0;
  }
  cVar2 = param_1[1];
  uVar1 = (uint)cVar2;
  if (uVar1 == 0) {
    *param_2 = 0;
    return 0;
  }
  if (uVar1 == 0x3c) {
    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);
    pcVar3 = (char *)*param_2;
    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {
      *param_2 = 0;
      uVar1 = 0;
    }
    else {
      *param_2 = pcVar3 + 1;
    }
    return uVar1;
  }
  if ((byte)(cVar2 + 0x9fU) < 0x1a) {
    *param_2 = param_1 + 2;
    return (int)(char)(cVar2 + -0x60);
  }
  if ((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)) {
    if (uVar1 != 0x7e) {
      return 0;
    }
    *param_2 = param_1 + 2;
    return 0x5e;
  }
  *param_2 = param_1 + 2;
  return uVar1 ^ 0x40;
}


lui gp,0xa
addiu gp,gp,0x351c
addu gp,gp,t9
lb v1,0x0(a0)
li v0,0x5e
beq v1,v0,0x00020c58
_or v0,zero,zero
jr ra
_sw zero,0x0(a1)
lb v0,0x1(a0)
bne v0,zero,0x00020c6c
_nop
jr ra
_sw zero,0x0(a1)
li a2,0x3c
beq v0,a2,0x00020ca0
_andi a2,v0,0xff
addiu a3,a2,-0x61
andi a3,a3,0xff
sltiu a3,a3,0x1a
beq a3,zero,0x00020d14
_nop
addiu v0,a2,-0x60
seb v0,v0
addiu a0,a0,0x2
jr ra
_sw a0,0x0(a1)
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s1,a1,zero
addiu s0,a0,0x2
or a2,zero,zero
or a0,s0,zero
lw t9,-0x7628(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v1,0x0(s1)
beq v1,s0,0x00020cec
_li a0,0x3e
lb a1,0x0(v1)
beq a1,a0,0x00020d08
_seb v0,v0
sw zero,0x0(s1)
or v0,zero,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
addiu v1,v1,0x1
b 0x00020cf4
_sw v1,0x0(s1)
addiu a2,a2,-0x3f
andi a2,a2,0xff
sltiu a2,a2,0x21
bne a2,zero,0x00020d44
_nop
bltz v0,0x00020d44
_nop
li a2,0x7e
beq v0,a2,0x00020d54
_addiu a0,a0,0x2
jr ra
_or v0,zero,zero
xori v0,v0,0x40
addiu a0,a0,0x2
jr ra
_sw a0,0x0(a1)
sw a0,0x0(a1)
jr ra
_or v0,v1,zero
(translation_unit "uint ctrlparse(char *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (*param_1 != '^') {\n    *param_2 = 0;\n    return 0;\n  }\n  cVar2 = param_1[1];\n  uVar1 = (uint)cVar2;\n  if (uVar1 == 0) {\n    *param_2 = 0;\n    return 0;\n  }\n  if (uVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }\n  if ((byte)(cVar2 + 0x9fU) < 0x1a) {\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }\n  if ((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)) {\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }\n  *param_2 = param_1 + 2;\n  return uVar1 ^ 0x40;\n}\n\n" (function_definition "uint ctrlparse(char *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (*param_1 != '^') {\n    *param_2 = 0;\n    return 0;\n  }\n  cVar2 = param_1[1];\n  uVar1 = (uint)cVar2;\n  if (uVar1 == 0) {\n    *param_2 = 0;\n    return 0;\n  }\n  if (uVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }\n  if ((byte)(cVar2 + 0x9fU) < 0x1a) {\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }\n  if ((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)) {\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }\n  *param_2 = param_1 + 2;\n  return uVar1 ^ 0x40;\n}" type_identifier (function_declarator "ctrlparse(char *param_1,undefined4 *param_2)" identifier (parameter_list "(char *param_1,undefined4 *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (*param_1 != '^') {\n    *param_2 = 0;\n    return 0;\n  }\n  cVar2 = param_1[1];\n  uVar1 = (uint)cVar2;\n  if (uVar1 == 0) {\n    *param_2 = 0;\n    return 0;\n  }\n  if (uVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }\n  if ((byte)(cVar2 + 0x9fU) < 0x1a) {\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }\n  if ((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)) {\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }\n  *param_2 = param_1 + 2;\n  return uVar1 ^ 0x40;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (*param_1 != '^') {\n    *param_2 = 0;\n    return 0;\n  }" if (parenthesized_expression "(*param_1 != '^')" ( (binary_expression "*param_1 != '^'" (pointer_expression "*param_1" * identifier) != (char_literal "'^'" ' character ')) )) (compound_statement "{\n    *param_2 = 0;\n    return 0;\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "cVar2 = param_1[1];" (assignment_expression "cVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = (uint)cVar2;" (assignment_expression "uVar1 = (uint)cVar2" identifier = (cast_expression "(uint)cVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (uVar1 == 0) {\n    *param_2 = 0;\n    return 0;\n  }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_2 = 0;\n    return 0;\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(uVar1 == 0x3c)" ( (binary_expression "uVar1 == 0x3c" identifier == number_literal) )) (compound_statement "{\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }" { (expression_statement "cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);" (assignment_expression "cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0)" identifier = (call_expression "(*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0)" (parenthesized_expression "(*(code *)PTR_strtol_000bcb28)" ( (pointer_expression "*(code *)PTR_strtol_000bcb28" * (cast_expression "(code *)PTR_strtol_000bcb28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 2,param_2,0)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal )))) ;) (expression_statement "pcVar3 = (char *)*param_2;" (assignment_expression "pcVar3 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }" if (parenthesized_expression "((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>'))" ( (binary_expression "(pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')" (parenthesized_expression "(pcVar3 == param_1 + 2)" ( (binary_expression "pcVar3 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) || (parenthesized_expression "(uVar1 = (uint)cVar2, *pcVar3 != '>')" ( (comma_expression "uVar1 = (uint)cVar2, *pcVar3 != '>'" (assignment_expression "uVar1 = (uint)cVar2" identifier = (cast_expression "(uint)cVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) , (binary_expression "*pcVar3 != '>'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'>'" ' character '))) ))) )) (compound_statement "{\n      *param_2 = 0;\n      uVar1 = 0;\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      *param_2 = pcVar3 + 1;\n    }" else (compound_statement "{\n      *param_2 = pcVar3 + 1;\n    }" { (expression_statement "*param_2 = pcVar3 + 1;" (assignment_expression "*param_2 = pcVar3 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) }))) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if ((byte)(cVar2 + 0x9fU) < 0x1a) {\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }" if (parenthesized_expression "((byte)(cVar2 + 0x9fU) < 0x1a)" ( (binary_expression "(byte)(cVar2 + 0x9fU) < 0x1a" (call_expression "(byte)(cVar2 + 0x9fU)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar2 + 0x9fU)" ( (binary_expression "cVar2 + 0x9fU" identifier + number_literal) ))) < number_literal) )) (compound_statement "{\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }" { (expression_statement "*param_2 = param_1 + 2;" (assignment_expression "*param_2 = param_1 + 2" (pointer_expression "*param_2" * identifier) = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (return_statement "return (int)(char)(cVar2 + -0x60);" return (cast_expression "(int)(char)(cVar2 + -0x60)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)(cVar2 + -0x60)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(cVar2 + -0x60)" ( (binary_expression "cVar2 + -0x60" identifier + number_literal) )))) ;) })) (if_statement "if ((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)) {\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }" if (parenthesized_expression "((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1))" ( (binary_expression "(0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)" (parenthesized_expression "(0x20 < (byte)(cVar2 - 0x3fU))" ( (binary_expression "0x20 < (byte)(cVar2 - 0x3fU)" number_literal < (call_expression "(byte)(cVar2 - 0x3fU)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar2 - 0x3fU)" ( (binary_expression "cVar2 - 0x3fU" identifier - number_literal) )))) )) && (parenthesized_expression "(-1 < (int)uVar1)" ( (binary_expression "-1 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) (compound_statement "{\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }" { (if_statement "if (uVar1 != 0x7e) {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 != 0x7e)" ( (binary_expression "uVar1 != 0x7e" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_2 = param_1 + 2;" (assignment_expression "*param_2 = param_1 + 2" (pointer_expression "*param_2" * identifier) = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (return_statement "return 0x5e;" return number_literal ;) })) (expression_statement "*param_2 = param_1 + 2;" (assignment_expression "*param_2 = param_1 + 2" (pointer_expression "*param_2" * identifier) = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (return_statement "return uVar1 ^ 0x40;" return (binary_expression "uVar1 ^ 0x40" identifier ^ number_literal) ;) })))
(translation_unit "char ctrlparse(char *s,char **next)\n\n{\n  byte bVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (*s != '^') {\n    *next = (char *)0x0;\n    return '\0';\n  }\n  bVar1 = s[1];\n  if (bVar1 == 0) {\n    *next = (char *)0x0;\n    return '\0';\n  }\n  if (bVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(s + 2,next,0);\n    pcVar3 = *next;\n    if ((pcVar3 == s + 2) || (*pcVar3 != '>')) {\n      *next = (char *)0x0;\n      cVar2 = '\0';\n    }\n    else {\n      *next = pcVar3 + 1;\n    }\n    return cVar2;\n  }\n  if ((byte)(bVar1 + 0x9f) < 0x1a) {\n    *next = s + 2;\n    return bVar1 + 0xa0;\n  }\n  if ((0x20 < (byte)(bVar1 - 0x3f)) && (-1 < (char)bVar1)) {\n    if (bVar1 != 0x7e) {\n      return '\0';\n    }\n    *next = s + 2;\n    return '^';\n  }\n  *next = s + 2;\n  return bVar1 ^ 0x40;\n}\n\n" (function_definition "char ctrlparse(char *s,char **next)\n\n{\n  byte bVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (*s != '^') {\n    *next = (char *)0x0;\n    return '\0';\n  }\n  bVar1 = s[1];\n  if (bVar1 == 0) {\n    *next = (char *)0x0;\n    return '\0';\n  }\n  if (bVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(s + 2,next,0);\n    pcVar3 = *next;\n    if ((pcVar3 == s + 2) || (*pcVar3 != '>')) {\n      *next = (char *)0x0;\n      cVar2 = '\0';\n    }\n    else {\n      *next = pcVar3 + 1;\n    }\n    return cVar2;\n  }\n  if ((byte)(bVar1 + 0x9f) < 0x1a) {\n    *next = s + 2;\n    return bVar1 + 0xa0;\n  }\n  if ((0x20 < (byte)(bVar1 - 0x3f)) && (-1 < (char)bVar1)) {\n    if (bVar1 != 0x7e) {\n      return '\0';\n    }\n    *next = s + 2;\n    return '^';\n  }\n  *next = s + 2;\n  return bVar1 ^ 0x40;\n}" primitive_type (function_declarator "ctrlparse(char *s,char **next)" identifier (parameter_list "(char *s,char **next)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "char **next" primitive_type (pointer_declarator "**next" * (pointer_declarator "*next" * identifier))) ))) (compound_statement "{\n  byte bVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (*s != '^') {\n    *next = (char *)0x0;\n    return '\0';\n  }\n  bVar1 = s[1];\n  if (bVar1 == 0) {\n    *next = (char *)0x0;\n    return '\0';\n  }\n  if (bVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(s + 2,next,0);\n    pcVar3 = *next;\n    if ((pcVar3 == s + 2) || (*pcVar3 != '>')) {\n      *next = (char *)0x0;\n      cVar2 = '\0';\n    }\n    else {\n      *next = pcVar3 + 1;\n    }\n    return cVar2;\n  }\n  if ((byte)(bVar1 + 0x9f) < 0x1a) {\n    *next = s + 2;\n    return bVar1 + 0xa0;\n  }\n  if ((0x20 < (byte)(bVar1 - 0x3f)) && (-1 < (char)bVar1)) {\n    if (bVar1 != 0x7e) {\n      return '\0';\n    }\n    *next = s + 2;\n    return '^';\n  }\n  *next = s + 2;\n  return bVar1 ^ 0x40;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (*s != '^') {\n    *next = (char *)0x0;\n    return '\0';\n  }" if (parenthesized_expression "(*s != '^')" ( (binary_expression "*s != '^'" (pointer_expression "*s" * identifier) != (char_literal "'^'" ' character ')) )) (compound_statement "{\n    *next = (char *)0x0;\n    return '\0';\n  }" { (expression_statement "*next = (char *)0x0;" (assignment_expression "*next = (char *)0x0" (pointer_expression "*next" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })) (expression_statement "bVar1 = s[1];" (assignment_expression "bVar1 = s[1]" identifier = (subscript_expression "s[1]" identifier [ number_literal ])) ;) (if_statement "if (bVar1 == 0) {\n    *next = (char *)0x0;\n    return '\0';\n  }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *next = (char *)0x0;\n    return '\0';\n  }" { (expression_statement "*next = (char *)0x0;" (assignment_expression "*next = (char *)0x0" (pointer_expression "*next" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })) (if_statement "if (bVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(s + 2,next,0);\n    pcVar3 = *next;\n    if ((pcVar3 == s + 2) || (*pcVar3 != '>')) {\n      *next = (char *)0x0;\n      cVar2 = '\0';\n    }\n    else {\n      *next = pcVar3 + 1;\n    }\n    return cVar2;\n  }" if (parenthesized_expression "(bVar1 == 0x3c)" ( (binary_expression "bVar1 == 0x3c" identifier == number_literal) )) (compound_statement "{\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(s + 2,next,0);\n    pcVar3 = *next;\n    if ((pcVar3 == s + 2) || (*pcVar3 != '>')) {\n      *next = (char *)0x0;\n      cVar2 = '\0';\n    }\n    else {\n      *next = pcVar3 + 1;\n    }\n    return cVar2;\n  }" { (expression_statement "cVar2 = (*(code *)PTR_strtol_000bcb28)(s + 2,next,0);" (assignment_expression "cVar2 = (*(code *)PTR_strtol_000bcb28)(s + 2,next,0)" identifier = (call_expression "(*(code *)PTR_strtol_000bcb28)(s + 2,next,0)" (parenthesized_expression "(*(code *)PTR_strtol_000bcb28)" ( (pointer_expression "*(code *)PTR_strtol_000bcb28" * (cast_expression "(code *)PTR_strtol_000bcb28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s + 2,next,0)" ( (binary_expression "s + 2" identifier + number_literal) , identifier , number_literal )))) ;) (expression_statement "pcVar3 = *next;" (assignment_expression "pcVar3 = *next" identifier = (pointer_expression "*next" * identifier)) ;) (if_statement "if ((pcVar3 == s + 2) || (*pcVar3 != '>')) {\n      *next = (char *)0x0;\n      cVar2 = '\0';\n    }\n    else {\n      *next = pcVar3 + 1;\n    }" if (parenthesized_expression "((pcVar3 == s + 2) || (*pcVar3 != '>'))" ( (binary_expression "(pcVar3 == s + 2) || (*pcVar3 != '>')" (parenthesized_expression "(pcVar3 == s + 2)" ( (binary_expression "pcVar3 == s + 2" identifier == (binary_expression "s + 2" identifier + number_literal)) )) || (parenthesized_expression "(*pcVar3 != '>')" ( (binary_expression "*pcVar3 != '>'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'>'" ' character ')) ))) )) (compound_statement "{\n      *next = (char *)0x0;\n      cVar2 = '\0';\n    }" { (expression_statement "*next = (char *)0x0;" (assignment_expression "*next = (char *)0x0" (pointer_expression "*next" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "cVar2 = '\0';" (assignment_expression "cVar2 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n      *next = pcVar3 + 1;\n    }" else (compound_statement "{\n      *next = pcVar3 + 1;\n    }" { (expression_statement "*next = pcVar3 + 1;" (assignment_expression "*next = pcVar3 + 1" (pointer_expression "*next" * identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) }))) (return_statement "return cVar2;" return identifier ;) })) (if_statement "if ((byte)(bVar1 + 0x9f) < 0x1a) {\n    *next = s + 2;\n    return bVar1 + 0xa0;\n  }" if (parenthesized_expression "((byte)(bVar1 + 0x9f) < 0x1a)" ( (binary_expression "(byte)(bVar1 + 0x9f) < 0x1a" (call_expression "(byte)(bVar1 + 0x9f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(bVar1 + 0x9f)" ( (binary_expression "bVar1 + 0x9f" identifier + number_literal) ))) < number_literal) )) (compound_statement "{\n    *next = s + 2;\n    return bVar1 + 0xa0;\n  }" { (expression_statement "*next = s + 2;" (assignment_expression "*next = s + 2" (pointer_expression "*next" * identifier) = (binary_expression "s + 2" identifier + number_literal)) ;) (return_statement "return bVar1 + 0xa0;" return (binary_expression "bVar1 + 0xa0" identifier + number_literal) ;) })) (if_statement "if ((0x20 < (byte)(bVar1 - 0x3f)) && (-1 < (char)bVar1)) {\n    if (bVar1 != 0x7e) {\n      return '\0';\n    }\n    *next = s + 2;\n    return '^';\n  }" if (parenthesized_expression "((0x20 < (byte)(bVar1 - 0x3f)) && (-1 < (char)bVar1))" ( (binary_expression "(0x20 < (byte)(bVar1 - 0x3f)) && (-1 < (char)bVar1)" (parenthesized_expression "(0x20 < (byte)(bVar1 - 0x3f))" ( (binary_expression "0x20 < (byte)(bVar1 - 0x3f)" number_literal < (call_expression "(byte)(bVar1 - 0x3f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(bVar1 - 0x3f)" ( (binary_expression "bVar1 - 0x3f" identifier - number_literal) )))) )) && (parenthesized_expression "(-1 < (char)bVar1)" ( (binary_expression "-1 < (char)bVar1" number_literal < (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ))) )) (compound_statement "{\n    if (bVar1 != 0x7e) {\n      return '\0';\n    }\n    *next = s + 2;\n    return '^';\n  }" { (if_statement "if (bVar1 != 0x7e) {\n      return '\0';\n    }" if (parenthesized_expression "(bVar1 != 0x7e)" ( (binary_expression "bVar1 != 0x7e" identifier != number_literal) )) (compound_statement "{\n      return '\0';\n    }" { (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })) (expression_statement "*next = s + 2;" (assignment_expression "*next = s + 2" (pointer_expression "*next" * identifier) = (binary_expression "s + 2" identifier + number_literal)) ;) (return_statement "return '^';" return (char_literal "'^'" ' character ') ;) })) (expression_statement "*next = s + 2;" (assignment_expression "*next = s + 2" (pointer_expression "*next" * identifier) = (binary_expression "s + 2" identifier + number_literal)) ;) (return_statement "return bVar1 ^ 0x40;" return (binary_expression "bVar1 ^ 0x40" identifier ^ number_literal) ;) })))
(translation_unit "uint ctrlparse(char *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (*param_1 != '^') {\n    *param_2 = 0;\n    return 0;\n  }\n  cVar2 = param_1[1];\n  uVar1 = (uint)cVar2;\n  if (uVar1 == 0) {\n    *param_2 = 0;\n    return 0;\n  }\n  if (uVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }\n  if ((byte)(cVar2 + 0x9fU) < 0x1a) {\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }\n  if ((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)) {\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }\n  *param_2 = param_1 + 2;\n  return uVar1 ^ 0x40;\n}\n\n" (function_definition "uint ctrlparse(char *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (*param_1 != '^') {\n    *param_2 = 0;\n    return 0;\n  }\n  cVar2 = param_1[1];\n  uVar1 = (uint)cVar2;\n  if (uVar1 == 0) {\n    *param_2 = 0;\n    return 0;\n  }\n  if (uVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }\n  if ((byte)(cVar2 + 0x9fU) < 0x1a) {\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }\n  if ((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)) {\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }\n  *param_2 = param_1 + 2;\n  return uVar1 ^ 0x40;\n}" type_identifier (function_declarator "ctrlparse(char *param_1,undefined4 *param_2)" identifier (parameter_list "(char *param_1,undefined4 *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (*param_1 != '^') {\n    *param_2 = 0;\n    return 0;\n  }\n  cVar2 = param_1[1];\n  uVar1 = (uint)cVar2;\n  if (uVar1 == 0) {\n    *param_2 = 0;\n    return 0;\n  }\n  if (uVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }\n  if ((byte)(cVar2 + 0x9fU) < 0x1a) {\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }\n  if ((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)) {\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }\n  *param_2 = param_1 + 2;\n  return uVar1 ^ 0x40;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (*param_1 != '^') {\n    *param_2 = 0;\n    return 0;\n  }" if (parenthesized_expression "(*param_1 != '^')" ( (binary_expression "*param_1 != '^'" (pointer_expression "*param_1" * identifier) != (char_literal "'^'" ' character ')) )) (compound_statement "{\n    *param_2 = 0;\n    return 0;\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "cVar2 = param_1[1];" (assignment_expression "cVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = (uint)cVar2;" (assignment_expression "uVar1 = (uint)cVar2" identifier = (cast_expression "(uint)cVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (uVar1 == 0) {\n    *param_2 = 0;\n    return 0;\n  }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_2 = 0;\n    return 0;\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(uVar1 == 0x3c)" ( (binary_expression "uVar1 == 0x3c" identifier == number_literal) )) (compound_statement "{\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }" { (expression_statement "cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);" (assignment_expression "cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0)" identifier = (call_expression "(*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0)" (parenthesized_expression "(*(code *)PTR_strtol_000bcb28)" ( (pointer_expression "*(code *)PTR_strtol_000bcb28" * (cast_expression "(code *)PTR_strtol_000bcb28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 2,param_2,0)" ( (binary_expression "param_1 + 2" identifier + number_literal) , identifier , number_literal )))) ;) (expression_statement "pcVar3 = (char *)*param_2;" (assignment_expression "pcVar3 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }" if (parenthesized_expression "((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>'))" ( (binary_expression "(pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')" (parenthesized_expression "(pcVar3 == param_1 + 2)" ( (binary_expression "pcVar3 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) || (parenthesized_expression "(uVar1 = (uint)cVar2, *pcVar3 != '>')" ( (comma_expression "uVar1 = (uint)cVar2, *pcVar3 != '>'" (assignment_expression "uVar1 = (uint)cVar2" identifier = (cast_expression "(uint)cVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) , (binary_expression "*pcVar3 != '>'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'>'" ' character '))) ))) )) (compound_statement "{\n      *param_2 = 0;\n      uVar1 = 0;\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      *param_2 = pcVar3 + 1;\n    }" else (compound_statement "{\n      *param_2 = pcVar3 + 1;\n    }" { (expression_statement "*param_2 = pcVar3 + 1;" (assignment_expression "*param_2 = pcVar3 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) }))) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if ((byte)(cVar2 + 0x9fU) < 0x1a) {\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }" if (parenthesized_expression "((byte)(cVar2 + 0x9fU) < 0x1a)" ( (binary_expression "(byte)(cVar2 + 0x9fU) < 0x1a" (call_expression "(byte)(cVar2 + 0x9fU)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar2 + 0x9fU)" ( (binary_expression "cVar2 + 0x9fU" identifier + number_literal) ))) < number_literal) )) (compound_statement "{\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }" { (expression_statement "*param_2 = param_1 + 2;" (assignment_expression "*param_2 = param_1 + 2" (pointer_expression "*param_2" * identifier) = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (return_statement "return (int)(char)(cVar2 + -0x60);" return (cast_expression "(int)(char)(cVar2 + -0x60)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)(cVar2 + -0x60)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(cVar2 + -0x60)" ( (binary_expression "cVar2 + -0x60" identifier + number_literal) )))) ;) })) (if_statement "if ((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)) {\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }" if (parenthesized_expression "((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1))" ( (binary_expression "(0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)" (parenthesized_expression "(0x20 < (byte)(cVar2 - 0x3fU))" ( (binary_expression "0x20 < (byte)(cVar2 - 0x3fU)" number_literal < (call_expression "(byte)(cVar2 - 0x3fU)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar2 - 0x3fU)" ( (binary_expression "cVar2 - 0x3fU" identifier - number_literal) )))) )) && (parenthesized_expression "(-1 < (int)uVar1)" ( (binary_expression "-1 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) (compound_statement "{\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }" { (if_statement "if (uVar1 != 0x7e) {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 != 0x7e)" ( (binary_expression "uVar1 != 0x7e" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_2 = param_1 + 2;" (assignment_expression "*param_2 = param_1 + 2" (pointer_expression "*param_2" * identifier) = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (return_statement "return 0x5e;" return number_literal ;) })) (expression_statement "*param_2 = param_1 + 2;" (assignment_expression "*param_2 = param_1 + 2" (pointer_expression "*param_2" * identifier) = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (return_statement "return uVar1 ^ 0x40;" return (binary_expression "uVar1 ^ 0x40" identifier ^ number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) , (binary_expression (pointer_expression * IDENT) != (char_literal ' character '))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) }))) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (return_statement return (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) )))) )) && (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (return_statement return (binary_expression IDENT ^ LIT) ;) })))
(function_definition "uint ctrlparse(char *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (*param_1 != '^') {\n    *param_2 = 0;\n    return 0;\n  }\n  cVar2 = param_1[1];\n  uVar1 = (uint)cVar2;\n  if (uVar1 == 0) {\n    *param_2 = 0;\n    return 0;\n  }\n  if (uVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }\n  if ((byte)(cVar2 + 0x9fU) < 0x1a) {\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }\n  if ((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)) {\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }\n  *param_2 = param_1 + 2;\n  return uVar1 ^ 0x40;\n}" (type_identifier "uint") (function_declarator "ctrlparse(char *param_1,undefined4 *param_2)" (identifier "ctrlparse") (parameter_list "(char *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (*param_1 != '^') {\n    *param_2 = 0;\n    return 0;\n  }\n  cVar2 = param_1[1];\n  uVar1 = (uint)cVar2;\n  if (uVar1 == 0) {\n    *param_2 = 0;\n    return 0;\n  }\n  if (uVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }\n  if ((byte)(cVar2 + 0x9fU) < 0x1a) {\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }\n  if ((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)) {\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }\n  *param_2 = param_1 + 2;\n  return uVar1 ^ 0x40;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (if_statement "if (*param_1 != '^') {\n    *param_2 = 0;\n    return 0;\n  }" (if "if") (parenthesized_expression "(*param_1 != '^')" (( "(") (binary_expression "*param_1 != '^'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'^'" (' "'") (character "^") (' "'"))) () ")")) (compound_statement "{\n    *param_2 = 0;\n    return 0;\n  }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "cVar2 = param_1[1];" (assignment_expression "cVar2 = param_1[1]" (identifier "cVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar1 = (uint)cVar2;" (assignment_expression "uVar1 = (uint)cVar2" (identifier "uVar1") (= "=") (cast_expression "(uint)cVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "cVar2"))) (; ";")) (if_statement "if (uVar1 == 0) {\n    *param_2 = 0;\n    return 0;\n  }" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_2 = 0;\n    return 0;\n  }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (uVar1 == 0x3c) {\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(uVar1 == 0x3c)" (( "(") (binary_expression "uVar1 == 0x3c" (identifier "uVar1") (== "==") (number_literal "0x3c")) () ")")) (compound_statement "{\n    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);\n    pcVar3 = (char *)*param_2;\n    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }\n    return uVar1;\n  }" ({ "{") (expression_statement "cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);" (assignment_expression "cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0)" (identifier "cVar2") (= "=") (call_expression "(*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0)" (parenthesized_expression "(*(code *)PTR_strtol_000bcb28)" (( "(") (pointer_expression "*(code *)PTR_strtol_000bcb28" (* "*") (cast_expression "(code *)PTR_strtol_000bcb28" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtol_000bcb28"))) () ")")) (argument_list "(param_1 + 2,param_2,0)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "pcVar3 = (char *)*param_2;" (assignment_expression "pcVar3 = (char *)*param_2" (identifier "pcVar3") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {\n      *param_2 = 0;\n      uVar1 = 0;\n    }\n    else {\n      *param_2 = pcVar3 + 1;\n    }" (if "if") (parenthesized_expression "((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>'))" (( "(") (binary_expression "(pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')" (parenthesized_expression "(pcVar3 == param_1 + 2)" (( "(") (binary_expression "pcVar3 == param_1 + 2" (identifier "pcVar3") (== "==") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) () ")")) (|| "||") (parenthesized_expression "(uVar1 = (uint)cVar2, *pcVar3 != '>')" (( "(") (comma_expression "uVar1 = (uint)cVar2, *pcVar3 != '>'" (assignment_expression "uVar1 = (uint)cVar2" (identifier "uVar1") (= "=") (cast_expression "(uint)cVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "cVar2"))) (, ",") (binary_expression "*pcVar3 != '>'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (!= "!=") (char_literal "'>'" (' "'") (character ">") (' "'")))) () ")"))) () ")")) (compound_statement "{\n      *param_2 = 0;\n      uVar1 = 0;\n    }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      *param_2 = pcVar3 + 1;\n    }" (else "else") (compound_statement "{\n      *param_2 = pcVar3 + 1;\n    }" ({ "{") (expression_statement "*param_2 = pcVar3 + 1;" (assignment_expression "*param_2 = pcVar3 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (if_statement "if ((byte)(cVar2 + 0x9fU) < 0x1a) {\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }" (if "if") (parenthesized_expression "((byte)(cVar2 + 0x9fU) < 0x1a)" (( "(") (binary_expression "(byte)(cVar2 + 0x9fU) < 0x1a" (call_expression "(byte)(cVar2 + 0x9fU)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(cVar2 + 0x9fU)" (( "(") (binary_expression "cVar2 + 0x9fU" (identifier "cVar2") (+ "+") (number_literal "0x9fU")) () ")"))) (< "<") (number_literal "0x1a")) () ")")) (compound_statement "{\n    *param_2 = param_1 + 2;\n    return (int)(char)(cVar2 + -0x60);\n  }" ({ "{") (expression_statement "*param_2 = param_1 + 2;" (assignment_expression "*param_2 = param_1 + 2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (return_statement "return (int)(char)(cVar2 + -0x60);" (return "return") (cast_expression "(int)(char)(cVar2 + -0x60)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)(cVar2 + -0x60)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(cVar2 + -0x60)" (( "(") (binary_expression "cVar2 + -0x60" (identifier "cVar2") (+ "+") (number_literal "-0x60")) () ")")))) (; ";")) (} "}"))) (if_statement "if ((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)) {\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }" (if "if") (parenthesized_expression "((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1))" (( "(") (binary_expression "(0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)" (parenthesized_expression "(0x20 < (byte)(cVar2 - 0x3fU))" (( "(") (binary_expression "0x20 < (byte)(cVar2 - 0x3fU)" (number_literal "0x20") (< "<") (call_expression "(byte)(cVar2 - 0x3fU)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(cVar2 - 0x3fU)" (( "(") (binary_expression "cVar2 - 0x3fU" (identifier "cVar2") (- "-") (number_literal "0x3fU")) () ")")))) () ")")) (&& "&&") (parenthesized_expression "(-1 < (int)uVar1)" (( "(") (binary_expression "-1 < (int)uVar1" (number_literal "-1") (< "<") (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1"))) () ")"))) () ")")) (compound_statement "{\n    if (uVar1 != 0x7e) {\n      return 0;\n    }\n    *param_2 = param_1 + 2;\n    return 0x5e;\n  }" ({ "{") (if_statement "if (uVar1 != 0x7e) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar1 != 0x7e)" (( "(") (binary_expression "uVar1 != 0x7e" (identifier "uVar1") (!= "!=") (number_literal "0x7e")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*param_2 = param_1 + 2;" (assignment_expression "*param_2 = param_1 + 2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (return_statement "return 0x5e;" (return "return") (number_literal "0x5e") (; ";")) (} "}"))) (expression_statement "*param_2 = param_1 + 2;" (assignment_expression "*param_2 = param_1 + 2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (return_statement "return uVar1 ^ 0x40;" (return "return") (binary_expression "uVar1 ^ 0x40" (identifier "uVar1") (^ "^") (number_literal "0x40")) (; ";")) (} "}")))

char function_1(char *var_2,char **next)

{
  type_1 var_1;
  char cVar2;
  char *var_3;
  
  if (*var_2 != '^') {
    *next = (char *)0x0;
    return '\0';
  }
  var_1 = var_2[1];
  if (var_1 == 0) {
    *next = (char *)0x0;
    return '\0';
  }
  if (var_1 == 0x3c) {
    cVar2 = (*(type_2 *)PTR_strtol_000bcb28)(var_2 + 2,next,0);
    var_3 = *next;
    if ((var_3 == var_2 + 2) || (*var_3 != '>')) {
      *next = (char *)0x0;
      cVar2 = '\0';
    }
    else {
      *next = var_3 + 1;
    }
    return cVar2;
  }
  if ((type_1)(var_1 + 0x9f) < 0x1a) {
    *next = var_2 + 2;
    return var_1 + 0xa0;
  }
  if ((0x20 < (type_1)(var_1 - 0x3f)) && (-1 < (char)var_1)) {
    if (var_1 != 0x7e) {
      return '\0';
    }
    *next = var_2 + 2;
    return '^';
  }
  *next = var_2 + 2;
  return var_1 ^ 0x40;
}


(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))) (parameter_declaration type: (type_identifier) 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: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (number_literal)))) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) consequence: (compound_statement (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: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

uint MASKED(char *param_1,undefined4 *param_2)

{
  uint uVar1;
  char cVar2;
  char *pcVar3;
  
  if (*param_1 != '^') {
    *param_2 = 0;
    return 0;
  }
  cVar2 = param_1[1];
  uVar1 = (uint)cVar2;
  if (uVar1 == 0) {
    *param_2 = 0;
    return 0;
  }
  if (uVar1 == 0x3c) {
    cVar2 = (*(code *)PTR_strtol_000bcb28)(param_1 + 2,param_2,0);
    pcVar3 = (char *)*param_2;
    if ((pcVar3 == param_1 + 2) || (uVar1 = (uint)cVar2, *pcVar3 != '>')) {
      *param_2 = 0;
      uVar1 = 0;
    }
    else {
      *param_2 = pcVar3 + 1;
    }
    return uVar1;
  }
  if ((byte)(cVar2 + 0x9fU) < 0x1a) {
    *param_2 = param_1 + 2;
    return (int)(char)(cVar2 + -0x60);
  }
  if ((0x20 < (byte)(cVar2 - 0x3fU)) && (-1 < (int)uVar1)) {
    if (uVar1 != 0x7e) {
      return 0;
    }
    *param_2 = param_1 + 2;
    return 0x5e;
  }
  *param_2 = param_1 + 2;
  return uVar1 ^ 0x40;
}

