
int __frame_state_for(int param_1,int param_2)

{
  char cVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 auStack_15c [19];
  int local_110;
  undefined4 local_fc;
  undefined4 local_f4;
  undefined4 local_dc [37];
  undefined4 local_48;
  undefined2 local_44;
  int local_3c;
  undefined2 local_28;
  undefined4 local_20;
  
  puVar3 = auStack_15c;
  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {
    *puVar3 = 0;
    puVar3 = puVar3 + 1;
  }
  local_fc = 0x40000000;
  local_110 = param_1 + 1;
  iVar2 = uw_frame_state_for();
  if ((iVar2 != 0) || (local_3c == 2)) {
    return 0;
  }
  iVar2 = 0;
  do {
    while( true ) {
      cVar1 = (char)local_dc[iVar2 * 2 + 1];
      *(char *)(param_2 + 0x5c + iVar2) = cVar1;
      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;
      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];
      iVar2 = iVar2 + 1;
      if (iVar2 == 0x12) goto LAB_0027db41;
    }
    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;
    iVar2 = iVar2 + 1;
  } while (iVar2 != 0x12);
LAB_0027db41:
  *(undefined4 *)(param_2 + 8) = local_48;
  *(undefined2 *)(param_2 + 0x58) = local_44;
  *(undefined2 *)(param_2 + 0x5a) = local_28;
  *(undefined4 *)(param_2 + 0xc) = local_f4;
  *(undefined4 *)(param_2 + 4) = local_20;
  return param_2;
}



int FUN_0027dab0(int param_1,int param_2)

{
  char cVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 auStack_15c [19];
  int local_110;
  undefined4 local_fc;
  undefined4 local_f4;
  undefined4 local_dc [37];
  undefined4 local_48;
  undefined2 local_44;
  int local_3c;
  undefined2 local_28;
  undefined4 local_20;
  
  puVar3 = auStack_15c;
  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {
    *puVar3 = 0;
    puVar3 = puVar3 + 1;
  }
  local_fc = 0x40000000;
  local_110 = param_1 + 1;
  iVar2 = FUN_0027c430();
  if ((iVar2 != 0) || (local_3c == 2)) {
    return 0;
  }
  iVar2 = 0;
  do {
    while( true ) {
      cVar1 = (char)local_dc[iVar2 * 2 + 1];
      *(char *)(param_2 + 0x5c + iVar2) = cVar1;
      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;
      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];
      iVar2 = iVar2 + 1;
      if (iVar2 == 0x12) goto LAB_0027db41;
    }
    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;
    iVar2 = iVar2 + 1;
  } while (iVar2 != 0x12);
LAB_0027db41:
  *(undefined4 *)(param_2 + 8) = local_48;
  *(undefined2 *)(param_2 + 0x58) = local_44;
  *(undefined2 *)(param_2 + 0x5a) = local_28;
  *(undefined4 *)(param_2 + 0xc) = local_f4;
  *(undefined4 *)(param_2 + 4) = local_20;
  return param_2;
}


PUSH EBP
XOR EAX,EAX
MOV ECX,0x20
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x14c
MOV EBP,ESP
LEA ESI,[ESP + 0x80]
MOV EBX,dword ptr [ESP + 0x164]
MOV EDI,EBP
MOV EDX,ESI
STOSD.REP ES:EDI
MOV EAX,dword ptr [ESP + 0x160]
MOV dword ptr [ESP + 0x60],0x40000000
ADD EAX,0x1
MOV dword ptr [ESP + 0x4c],EAX
MOV EAX,EBP
CALL 0x0027c430
TEST EAX,EAX
JNZ 0x0027db80
CMP dword ptr [ESP + 0x120],0x2
JZ 0x0027db80
XOR EDX,EDX
JMP 0x0027db20
MOV dword ptr [EBX + EDX*0x4 + 0x10],0x0
ADD EDX,0x1
CMP EDX,0x12
JZ 0x0027db41
MOV ECX,dword ptr [ESI + EDX*0x8 + 0x4]
MOV byte ptr [EBX + EDX*0x1 + 0x5c],CL
CMP CL,0x1
JZ 0x0027db32
CMP CL,0x2
JNZ 0x0027db10
MOV EAX,dword ptr [ESI + EDX*0x8]
MOV dword ptr [EBX + EDX*0x4 + 0x10],EAX
ADD EDX,0x1
CMP EDX,0x12
JNZ 0x0027db20
MOV EAX,dword ptr [ESP + 0x114]
MOV dword ptr [EBX + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x118]
MOV word ptr [EBX + 0x58],AX
MOV EAX,dword ptr [ESP + 0x134]
MOV word ptr [EBX + 0x5a],AX
MOV EAX,dword ptr [ESP + 0x68]
MOV dword ptr [EBX + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x13c]
MOV dword ptr [EBX + 0x4],EAX
ADD ESP,0x14c
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0x14c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "int FUN_0027dab0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 auStack_15c [19];\n  int local_110;\n  undefined4 local_fc;\n  undefined4 local_f4;\n  undefined4 local_dc [37];\n  undefined4 local_48;\n  undefined2 local_44;\n  int local_3c;\n  undefined2 local_28;\n  undefined4 local_20;\n  \n  puVar3 = auStack_15c;\n  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }\n  local_fc = 0x40000000;\n  local_110 = param_1 + 1;\n  iVar2 = FUN_0027c430();\n  if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }\n  iVar2 = 0;\n  do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);\nLAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;\n  *(undefined2 *)(param_2 + 0x58) = local_44;\n  *(undefined2 *)(param_2 + 0x5a) = local_28;\n  *(undefined4 *)(param_2 + 0xc) = local_f4;\n  *(undefined4 *)(param_2 + 4) = local_20;\n  return param_2;\n}\n\n" (function_definition "int FUN_0027dab0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 auStack_15c [19];\n  int local_110;\n  undefined4 local_fc;\n  undefined4 local_f4;\n  undefined4 local_dc [37];\n  undefined4 local_48;\n  undefined2 local_44;\n  int local_3c;\n  undefined2 local_28;\n  undefined4 local_20;\n  \n  puVar3 = auStack_15c;\n  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }\n  local_fc = 0x40000000;\n  local_110 = param_1 + 1;\n  iVar2 = FUN_0027c430();\n  if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }\n  iVar2 = 0;\n  do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);\nLAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;\n  *(undefined2 *)(param_2 + 0x58) = local_44;\n  *(undefined2 *)(param_2 + 0x5a) = local_28;\n  *(undefined4 *)(param_2 + 0xc) = local_f4;\n  *(undefined4 *)(param_2 + 4) = local_20;\n  return param_2;\n}" primitive_type (function_declarator "FUN_0027dab0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 auStack_15c [19];\n  int local_110;\n  undefined4 local_fc;\n  undefined4 local_f4;\n  undefined4 local_dc [37];\n  undefined4 local_48;\n  undefined2 local_44;\n  int local_3c;\n  undefined2 local_28;\n  undefined4 local_20;\n  \n  puVar3 = auStack_15c;\n  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }\n  local_fc = 0x40000000;\n  local_110 = param_1 + 1;\n  iVar2 = FUN_0027c430();\n  if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }\n  iVar2 = 0;\n  do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);\nLAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;\n  *(undefined2 *)(param_2 + 0x58) = local_44;\n  *(undefined2 *)(param_2 + 0x5a) = local_28;\n  *(undefined4 *)(param_2 + 0xc) = local_f4;\n  *(undefined4 *)(param_2 + 4) = local_20;\n  return param_2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 auStack_15c [19];" type_identifier (array_declarator "auStack_15c [19]" identifier [ number_literal ]) ;) (declaration "int local_110;" primitive_type identifier ;) (declaration "undefined4 local_fc;" type_identifier identifier ;) (declaration "undefined4 local_f4;" type_identifier identifier ;) (declaration "undefined4 local_dc [37];" type_identifier (array_declarator "local_dc [37]" identifier [ number_literal ]) ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "undefined2 local_44;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "undefined2 local_28;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "puVar3 = auStack_15c;" (assignment_expression "puVar3 = auStack_15c" identifier = identifier) ;) (for_statement "for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }" for ( (assignment_expression "iVar2 = 0x20" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "local_fc = 0x40000000;" (assignment_expression "local_fc = 0x40000000" identifier = number_literal) ;) (expression_statement "local_110 = param_1 + 1;" (assignment_expression "local_110 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_0027c430();" (assignment_expression "iVar2 = FUN_0027c430()" identifier = (call_expression "FUN_0027c430()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }" if (parenthesized_expression "((iVar2 != 0) || (local_3c == 2))" ( (binary_expression "(iVar2 != 0) || (local_3c == 2)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) || (parenthesized_expression "(local_3c == 2)" ( (binary_expression "local_3c == 2" identifier == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);" do (compound_statement "{\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  }" { (while_statement "while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }" { (expression_statement "cVar1 = (char)local_dc[iVar2 * 2 + 1];" (assignment_expression "cVar1 = (char)local_dc[iVar2 * 2 + 1]" identifier = (cast_expression "(char)local_dc[iVar2 * 2 + 1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "local_dc[iVar2 * 2 + 1]" identifier [ (binary_expression "iVar2 * 2 + 1" (binary_expression "iVar2 * 2" identifier * number_literal) + number_literal) ]))) ;) (expression_statement "*(char *)(param_2 + 0x5c + iVar2) = cVar1;" (assignment_expression "*(char *)(param_2 + 0x5c + iVar2) = cVar1" (pointer_expression "*(char *)(param_2 + 0x5c + iVar2)" * (cast_expression "(char *)(param_2 + 0x5c + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c + iVar2)" ( (binary_expression "param_2 + 0x5c + iVar2" (binary_expression "param_2 + 0x5c" identifier + number_literal) + identifier) )))) = identifier) ;) (if_statement "if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;" if (parenthesized_expression "((cVar1 != '\x01') && (cVar1 != '\x02'))" ( (binary_expression "(cVar1 != '\x01') && (cVar1 != '\x02')" (parenthesized_expression "(cVar1 != '\x01')" ( (binary_expression "cVar1 != '\x01'" identifier != (char_literal "'\x01'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar1 != '\x02')" ( (binary_expression "cVar1 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];" (assignment_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2]" (pointer_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" * (cast_expression "(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10 + iVar2 * 4)" ( (binary_expression "param_2 + 0x10 + iVar2 * 4" (binary_expression "param_2 + 0x10" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = (subscript_expression "local_dc[iVar2 * 2]" identifier [ (binary_expression "iVar2 * 2" identifier * number_literal) ])) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0x12) goto LAB_0027db41;" if (parenthesized_expression "(iVar2 == 0x12)" ( (binary_expression "iVar2 == 0x12" identifier == number_literal) )) (goto_statement "goto LAB_0027db41;" goto statement_identifier ;)) })) (expression_statement "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" * (cast_expression "(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10 + iVar2 * 4)" ( (binary_expression "param_2 + 0x10 + iVar2 * 4" (binary_expression "param_2 + 0x10" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 0x12)" ( (binary_expression "iVar2 != 0x12" identifier != number_literal) )) ;) (labeled_statement "LAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;" statement_identifier : (expression_statement "*(undefined4 *)(param_2 + 8) = local_48;" (assignment_expression "*(undefined4 *)(param_2 + 8) = local_48" (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(undefined2 *)(param_2 + 0x58) = local_44;" (assignment_expression "*(undefined2 *)(param_2 + 0x58) = local_44" (pointer_expression "*(undefined2 *)(param_2 + 0x58)" * (cast_expression "(undefined2 *)(param_2 + 0x58)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(param_2 + 0x5a) = local_28;" (assignment_expression "*(undefined2 *)(param_2 + 0x5a) = local_28" (pointer_expression "*(undefined2 *)(param_2 + 0x5a)" * (cast_expression "(undefined2 *)(param_2 + 0x5a)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5a)" ( (binary_expression "param_2 + 0x5a" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0xc) = local_f4;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = local_f4" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 4) = local_20;" (assignment_expression "*(undefined4 *)(param_2 + 4) = local_20" (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "int __frame_state_for(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 auStack_15c [19];\n  int local_110;\n  undefined4 local_fc;\n  undefined4 local_f4;\n  undefined4 local_dc [37];\n  undefined4 local_48;\n  undefined2 local_44;\n  int local_3c;\n  undefined2 local_28;\n  undefined4 local_20;\n  \n  puVar3 = auStack_15c;\n  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }\n  local_fc = 0x40000000;\n  local_110 = param_1 + 1;\n  iVar2 = uw_frame_state_for();\n  if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }\n  iVar2 = 0;\n  do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);\nLAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;\n  *(undefined2 *)(param_2 + 0x58) = local_44;\n  *(undefined2 *)(param_2 + 0x5a) = local_28;\n  *(undefined4 *)(param_2 + 0xc) = local_f4;\n  *(undefined4 *)(param_2 + 4) = local_20;\n  return param_2;\n}\n\n" (function_definition "int __frame_state_for(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 auStack_15c [19];\n  int local_110;\n  undefined4 local_fc;\n  undefined4 local_f4;\n  undefined4 local_dc [37];\n  undefined4 local_48;\n  undefined2 local_44;\n  int local_3c;\n  undefined2 local_28;\n  undefined4 local_20;\n  \n  puVar3 = auStack_15c;\n  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }\n  local_fc = 0x40000000;\n  local_110 = param_1 + 1;\n  iVar2 = uw_frame_state_for();\n  if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }\n  iVar2 = 0;\n  do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);\nLAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;\n  *(undefined2 *)(param_2 + 0x58) = local_44;\n  *(undefined2 *)(param_2 + 0x5a) = local_28;\n  *(undefined4 *)(param_2 + 0xc) = local_f4;\n  *(undefined4 *)(param_2 + 4) = local_20;\n  return param_2;\n}" primitive_type (function_declarator "__frame_state_for(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 auStack_15c [19];\n  int local_110;\n  undefined4 local_fc;\n  undefined4 local_f4;\n  undefined4 local_dc [37];\n  undefined4 local_48;\n  undefined2 local_44;\n  int local_3c;\n  undefined2 local_28;\n  undefined4 local_20;\n  \n  puVar3 = auStack_15c;\n  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }\n  local_fc = 0x40000000;\n  local_110 = param_1 + 1;\n  iVar2 = uw_frame_state_for();\n  if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }\n  iVar2 = 0;\n  do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);\nLAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;\n  *(undefined2 *)(param_2 + 0x58) = local_44;\n  *(undefined2 *)(param_2 + 0x5a) = local_28;\n  *(undefined4 *)(param_2 + 0xc) = local_f4;\n  *(undefined4 *)(param_2 + 4) = local_20;\n  return param_2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 auStack_15c [19];" type_identifier (array_declarator "auStack_15c [19]" identifier [ number_literal ]) ;) (declaration "int local_110;" primitive_type identifier ;) (declaration "undefined4 local_fc;" type_identifier identifier ;) (declaration "undefined4 local_f4;" type_identifier identifier ;) (declaration "undefined4 local_dc [37];" type_identifier (array_declarator "local_dc [37]" identifier [ number_literal ]) ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "undefined2 local_44;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "undefined2 local_28;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "puVar3 = auStack_15c;" (assignment_expression "puVar3 = auStack_15c" identifier = identifier) ;) (for_statement "for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }" for ( (assignment_expression "iVar2 = 0x20" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "local_fc = 0x40000000;" (assignment_expression "local_fc = 0x40000000" identifier = number_literal) ;) (expression_statement "local_110 = param_1 + 1;" (assignment_expression "local_110 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = uw_frame_state_for();" (assignment_expression "iVar2 = uw_frame_state_for()" identifier = (call_expression "uw_frame_state_for()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }" if (parenthesized_expression "((iVar2 != 0) || (local_3c == 2))" ( (binary_expression "(iVar2 != 0) || (local_3c == 2)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) || (parenthesized_expression "(local_3c == 2)" ( (binary_expression "local_3c == 2" identifier == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);" do (compound_statement "{\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  }" { (while_statement "while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }" { (expression_statement "cVar1 = (char)local_dc[iVar2 * 2 + 1];" (assignment_expression "cVar1 = (char)local_dc[iVar2 * 2 + 1]" identifier = (cast_expression "(char)local_dc[iVar2 * 2 + 1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "local_dc[iVar2 * 2 + 1]" identifier [ (binary_expression "iVar2 * 2 + 1" (binary_expression "iVar2 * 2" identifier * number_literal) + number_literal) ]))) ;) (expression_statement "*(char *)(param_2 + 0x5c + iVar2) = cVar1;" (assignment_expression "*(char *)(param_2 + 0x5c + iVar2) = cVar1" (pointer_expression "*(char *)(param_2 + 0x5c + iVar2)" * (cast_expression "(char *)(param_2 + 0x5c + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c + iVar2)" ( (binary_expression "param_2 + 0x5c + iVar2" (binary_expression "param_2 + 0x5c" identifier + number_literal) + identifier) )))) = identifier) ;) (if_statement "if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;" if (parenthesized_expression "((cVar1 != '\x01') && (cVar1 != '\x02'))" ( (binary_expression "(cVar1 != '\x01') && (cVar1 != '\x02')" (parenthesized_expression "(cVar1 != '\x01')" ( (binary_expression "cVar1 != '\x01'" identifier != (char_literal "'\x01'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar1 != '\x02')" ( (binary_expression "cVar1 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];" (assignment_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2]" (pointer_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" * (cast_expression "(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10 + iVar2 * 4)" ( (binary_expression "param_2 + 0x10 + iVar2 * 4" (binary_expression "param_2 + 0x10" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = (subscript_expression "local_dc[iVar2 * 2]" identifier [ (binary_expression "iVar2 * 2" identifier * number_literal) ])) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0x12) goto LAB_0027db41;" if (parenthesized_expression "(iVar2 == 0x12)" ( (binary_expression "iVar2 == 0x12" identifier == number_literal) )) (goto_statement "goto LAB_0027db41;" goto statement_identifier ;)) })) (expression_statement "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" * (cast_expression "(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10 + iVar2 * 4)" ( (binary_expression "param_2 + 0x10 + iVar2 * 4" (binary_expression "param_2 + 0x10" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 0x12)" ( (binary_expression "iVar2 != 0x12" identifier != number_literal) )) ;) (labeled_statement "LAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;" statement_identifier : (expression_statement "*(undefined4 *)(param_2 + 8) = local_48;" (assignment_expression "*(undefined4 *)(param_2 + 8) = local_48" (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(undefined2 *)(param_2 + 0x58) = local_44;" (assignment_expression "*(undefined2 *)(param_2 + 0x58) = local_44" (pointer_expression "*(undefined2 *)(param_2 + 0x58)" * (cast_expression "(undefined2 *)(param_2 + 0x58)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(param_2 + 0x5a) = local_28;" (assignment_expression "*(undefined2 *)(param_2 + 0x5a) = local_28" (pointer_expression "*(undefined2 *)(param_2 + 0x5a)" * (cast_expression "(undefined2 *)(param_2 + 0x5a)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5a)" ( (binary_expression "param_2 + 0x5a" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0xc) = local_f4;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = local_f4" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 4) = local_20;" (assignment_expression "*(undefined4 *)(param_2 + 4) = local_20" (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "int FUN_0027dab0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 auStack_15c [19];\n  int local_110;\n  undefined4 local_fc;\n  undefined4 local_f4;\n  undefined4 local_dc [37];\n  undefined4 local_48;\n  undefined2 local_44;\n  int local_3c;\n  undefined2 local_28;\n  undefined4 local_20;\n  \n  puVar3 = auStack_15c;\n  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }\n  local_fc = 0x40000000;\n  local_110 = param_1 + 1;\n  iVar2 = FUN_0027c430();\n  if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }\n  iVar2 = 0;\n  do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);\nLAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;\n  *(undefined2 *)(param_2 + 0x58) = local_44;\n  *(undefined2 *)(param_2 + 0x5a) = local_28;\n  *(undefined4 *)(param_2 + 0xc) = local_f4;\n  *(undefined4 *)(param_2 + 4) = local_20;\n  return param_2;\n}\n\n" (function_definition "int FUN_0027dab0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 auStack_15c [19];\n  int local_110;\n  undefined4 local_fc;\n  undefined4 local_f4;\n  undefined4 local_dc [37];\n  undefined4 local_48;\n  undefined2 local_44;\n  int local_3c;\n  undefined2 local_28;\n  undefined4 local_20;\n  \n  puVar3 = auStack_15c;\n  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }\n  local_fc = 0x40000000;\n  local_110 = param_1 + 1;\n  iVar2 = FUN_0027c430();\n  if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }\n  iVar2 = 0;\n  do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);\nLAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;\n  *(undefined2 *)(param_2 + 0x58) = local_44;\n  *(undefined2 *)(param_2 + 0x5a) = local_28;\n  *(undefined4 *)(param_2 + 0xc) = local_f4;\n  *(undefined4 *)(param_2 + 4) = local_20;\n  return param_2;\n}" primitive_type (function_declarator "FUN_0027dab0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 auStack_15c [19];\n  int local_110;\n  undefined4 local_fc;\n  undefined4 local_f4;\n  undefined4 local_dc [37];\n  undefined4 local_48;\n  undefined2 local_44;\n  int local_3c;\n  undefined2 local_28;\n  undefined4 local_20;\n  \n  puVar3 = auStack_15c;\n  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }\n  local_fc = 0x40000000;\n  local_110 = param_1 + 1;\n  iVar2 = FUN_0027c430();\n  if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }\n  iVar2 = 0;\n  do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);\nLAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;\n  *(undefined2 *)(param_2 + 0x58) = local_44;\n  *(undefined2 *)(param_2 + 0x5a) = local_28;\n  *(undefined4 *)(param_2 + 0xc) = local_f4;\n  *(undefined4 *)(param_2 + 4) = local_20;\n  return param_2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 auStack_15c [19];" type_identifier (array_declarator "auStack_15c [19]" identifier [ number_literal ]) ;) (declaration "int local_110;" primitive_type identifier ;) (declaration "undefined4 local_fc;" type_identifier identifier ;) (declaration "undefined4 local_f4;" type_identifier identifier ;) (declaration "undefined4 local_dc [37];" type_identifier (array_declarator "local_dc [37]" identifier [ number_literal ]) ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "undefined2 local_44;" type_identifier identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "undefined2 local_28;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "puVar3 = auStack_15c;" (assignment_expression "puVar3 = auStack_15c" identifier = identifier) ;) (for_statement "for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }" for ( (assignment_expression "iVar2 = 0x20" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "local_fc = 0x40000000;" (assignment_expression "local_fc = 0x40000000" identifier = number_literal) ;) (expression_statement "local_110 = param_1 + 1;" (assignment_expression "local_110 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_0027c430();" (assignment_expression "iVar2 = FUN_0027c430()" identifier = (call_expression "FUN_0027c430()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }" if (parenthesized_expression "((iVar2 != 0) || (local_3c == 2))" ( (binary_expression "(iVar2 != 0) || (local_3c == 2)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) || (parenthesized_expression "(local_3c == 2)" ( (binary_expression "local_3c == 2" identifier == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);" do (compound_statement "{\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  }" { (while_statement "while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }" { (expression_statement "cVar1 = (char)local_dc[iVar2 * 2 + 1];" (assignment_expression "cVar1 = (char)local_dc[iVar2 * 2 + 1]" identifier = (cast_expression "(char)local_dc[iVar2 * 2 + 1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "local_dc[iVar2 * 2 + 1]" identifier [ (binary_expression "iVar2 * 2 + 1" (binary_expression "iVar2 * 2" identifier * number_literal) + number_literal) ]))) ;) (expression_statement "*(char *)(param_2 + 0x5c + iVar2) = cVar1;" (assignment_expression "*(char *)(param_2 + 0x5c + iVar2) = cVar1" (pointer_expression "*(char *)(param_2 + 0x5c + iVar2)" * (cast_expression "(char *)(param_2 + 0x5c + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c + iVar2)" ( (binary_expression "param_2 + 0x5c + iVar2" (binary_expression "param_2 + 0x5c" identifier + number_literal) + identifier) )))) = identifier) ;) (if_statement "if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;" if (parenthesized_expression "((cVar1 != '\x01') && (cVar1 != '\x02'))" ( (binary_expression "(cVar1 != '\x01') && (cVar1 != '\x02')" (parenthesized_expression "(cVar1 != '\x01')" ( (binary_expression "cVar1 != '\x01'" identifier != (char_literal "'\x01'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar1 != '\x02')" ( (binary_expression "cVar1 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];" (assignment_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2]" (pointer_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" * (cast_expression "(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10 + iVar2 * 4)" ( (binary_expression "param_2 + 0x10 + iVar2 * 4" (binary_expression "param_2 + 0x10" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = (subscript_expression "local_dc[iVar2 * 2]" identifier [ (binary_expression "iVar2 * 2" identifier * number_literal) ])) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0x12) goto LAB_0027db41;" if (parenthesized_expression "(iVar2 == 0x12)" ( (binary_expression "iVar2 == 0x12" identifier == number_literal) )) (goto_statement "goto LAB_0027db41;" goto statement_identifier ;)) })) (expression_statement "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" * (cast_expression "(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10 + iVar2 * 4)" ( (binary_expression "param_2 + 0x10 + iVar2 * 4" (binary_expression "param_2 + 0x10" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 0x12)" ( (binary_expression "iVar2 != 0x12" identifier != number_literal) )) ;) (labeled_statement "LAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;" statement_identifier : (expression_statement "*(undefined4 *)(param_2 + 8) = local_48;" (assignment_expression "*(undefined4 *)(param_2 + 8) = local_48" (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(undefined2 *)(param_2 + 0x58) = local_44;" (assignment_expression "*(undefined2 *)(param_2 + 0x58) = local_44" (pointer_expression "*(undefined2 *)(param_2 + 0x58)" * (cast_expression "(undefined2 *)(param_2 + 0x58)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(param_2 + 0x5a) = local_28;" (assignment_expression "*(undefined2 *)(param_2 + 0x5a) = local_28" (pointer_expression "*(undefined2 *)(param_2 + 0x5a)" * (cast_expression "(undefined2 *)(param_2 + 0x5a)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5a)" ( (binary_expression "param_2 + 0x5a" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0xc) = local_f4;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = local_f4" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 4) = local_20;" (assignment_expression "*(undefined4 *)(param_2 + 4) = local_20" (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = (subscript_expression IDENT [ (binary_expression IDENT * LIT) ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0027dab0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 auStack_15c [19];\n  int local_110;\n  undefined4 local_fc;\n  undefined4 local_f4;\n  undefined4 local_dc [37];\n  undefined4 local_48;\n  undefined2 local_44;\n  int local_3c;\n  undefined2 local_28;\n  undefined4 local_20;\n  \n  puVar3 = auStack_15c;\n  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }\n  local_fc = 0x40000000;\n  local_110 = param_1 + 1;\n  iVar2 = FUN_0027c430();\n  if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }\n  iVar2 = 0;\n  do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);\nLAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;\n  *(undefined2 *)(param_2 + 0x58) = local_44;\n  *(undefined2 *)(param_2 + 0x5a) = local_28;\n  *(undefined4 *)(param_2 + 0xc) = local_f4;\n  *(undefined4 *)(param_2 + 4) = local_20;\n  return param_2;\n}" (primitive_type "int") (function_declarator "FUN_0027dab0(int param_1,int param_2)" (identifier "FUN_0027dab0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 auStack_15c [19];\n  int local_110;\n  undefined4 local_fc;\n  undefined4 local_f4;\n  undefined4 local_dc [37];\n  undefined4 local_48;\n  undefined2 local_44;\n  int local_3c;\n  undefined2 local_28;\n  undefined4 local_20;\n  \n  puVar3 = auStack_15c;\n  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }\n  local_fc = 0x40000000;\n  local_110 = param_1 + 1;\n  iVar2 = FUN_0027c430();\n  if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }\n  iVar2 = 0;\n  do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);\nLAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;\n  *(undefined2 *)(param_2 + 0x58) = local_44;\n  *(undefined2 *)(param_2 + 0x5a) = local_28;\n  *(undefined4 *)(param_2 + 0xc) = local_f4;\n  *(undefined4 *)(param_2 + 4) = local_20;\n  return param_2;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 auStack_15c [19];" (type_identifier "undefined4") (array_declarator "auStack_15c [19]" (identifier "auStack_15c") ([ "[") (number_literal "19") (] "]")) (; ";")) (declaration "int local_110;" (primitive_type "int") (identifier "local_110") (; ";")) (declaration "undefined4 local_fc;" (type_identifier "undefined4") (identifier "local_fc") (; ";")) (declaration "undefined4 local_f4;" (type_identifier "undefined4") (identifier "local_f4") (; ";")) (declaration "undefined4 local_dc [37];" (type_identifier "undefined4") (array_declarator "local_dc [37]" (identifier "local_dc") ([ "[") (number_literal "37") (] "]")) (; ";")) (declaration "undefined4 local_48;" (type_identifier "undefined4") (identifier "local_48") (; ";")) (declaration "undefined2 local_44;" (type_identifier "undefined2") (identifier "local_44") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "undefined2 local_28;" (type_identifier "undefined2") (identifier "local_28") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (expression_statement "puVar3 = auStack_15c;" (assignment_expression "puVar3 = auStack_15c" (identifier "puVar3") (= "=") (identifier "auStack_15c")) (; ";")) (for_statement "for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar2 = 0x20" (identifier "iVar2") (= "=") (number_literal "0x20")) (; ";") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + 1;\n  }" ({ "{") (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "local_fc = 0x40000000;" (assignment_expression "local_fc = 0x40000000" (identifier "local_fc") (= "=") (number_literal "0x40000000")) (; ";")) (expression_statement "local_110 = param_1 + 1;" (assignment_expression "local_110 = param_1 + 1" (identifier "local_110") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = FUN_0027c430();" (assignment_expression "iVar2 = FUN_0027c430()" (identifier "iVar2") (= "=") (call_expression "FUN_0027c430()" (identifier "FUN_0027c430") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar2 != 0) || (local_3c == 2)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((iVar2 != 0) || (local_3c == 2))" (( "(") (binary_expression "(iVar2 != 0) || (local_3c == 2)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(local_3c == 2)" (( "(") (binary_expression "local_3c == 2" (identifier "local_3c") (== "==") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 0x12);" (do "do") (compound_statement "{\n    while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }\n    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;\n    iVar2 = iVar2 + 1;\n  }" ({ "{") (while_statement "while( true ) {\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      cVar1 = (char)local_dc[iVar2 * 2 + 1];\n      *(char *)(param_2 + 0x5c + iVar2) = cVar1;\n      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;\n      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];\n      iVar2 = iVar2 + 1;\n      if (iVar2 == 0x12) goto LAB_0027db41;\n    }" ({ "{") (expression_statement "cVar1 = (char)local_dc[iVar2 * 2 + 1];" (assignment_expression "cVar1 = (char)local_dc[iVar2 * 2 + 1]" (identifier "cVar1") (= "=") (cast_expression "(char)local_dc[iVar2 * 2 + 1]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "local_dc[iVar2 * 2 + 1]" (identifier "local_dc") ([ "[") (binary_expression "iVar2 * 2 + 1" (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2")) (+ "+") (number_literal "1")) (] "]")))) (; ";")) (expression_statement "*(char *)(param_2 + 0x5c + iVar2) = cVar1;" (assignment_expression "*(char *)(param_2 + 0x5c + iVar2) = cVar1" (pointer_expression "*(char *)(param_2 + 0x5c + iVar2)" (* "*") (cast_expression "(char *)(param_2 + 0x5c + iVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x5c + iVar2)" (( "(") (binary_expression "param_2 + 0x5c + iVar2" (binary_expression "param_2 + 0x5c" (identifier "param_2") (+ "+") (number_literal "0x5c")) (+ "+") (identifier "iVar2")) () ")")))) (= "=") (identifier "cVar1")) (; ";")) (if_statement "if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;" (if "if") (parenthesized_expression "((cVar1 != '\x01') && (cVar1 != '\x02'))" (( "(") (binary_expression "(cVar1 != '\x01') && (cVar1 != '\x02')" (parenthesized_expression "(cVar1 != '\x01')" (( "(") (binary_expression "cVar1 != '\x01'" (identifier "cVar1") (!= "!=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(cVar1 != '\x02')" (( "(") (binary_expression "cVar1 != '\x02'" (identifier "cVar1") (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];" (assignment_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2]" (pointer_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10 + iVar2 * 4)" (( "(") (binary_expression "param_2 + 0x10 + iVar2 * 4" (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (= "=") (subscript_expression "local_dc[iVar2 * 2]" (identifier "local_dc") ([ "[") (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2")) (] "]"))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar2 == 0x12) goto LAB_0027db41;" (if "if") (parenthesized_expression "(iVar2 == 0x12)" (( "(") (binary_expression "iVar2 == 0x12" (identifier "iVar2") (== "==") (number_literal "0x12")) () ")")) (goto_statement "goto LAB_0027db41;" (goto "goto") (statement_identifier "LAB_0027db41") (; ";"))) (} "}"))) (expression_statement "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x10 + iVar2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10 + iVar2 * 4)" (( "(") (binary_expression "param_2 + 0x10 + iVar2 * 4" (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != 0x12)" (( "(") (binary_expression "iVar2 != 0x12" (identifier "iVar2") (!= "!=") (number_literal "0x12")) () ")")) (; ";")) (labeled_statement "LAB_0027db41:\n  *(undefined4 *)(param_2 + 8) = local_48;" (statement_identifier "LAB_0027db41") (: ":") (expression_statement "*(undefined4 *)(param_2 + 8) = local_48;" (assignment_expression "*(undefined4 *)(param_2 + 8) = local_48" (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "local_48")) (; ";"))) (expression_statement "*(undefined2 *)(param_2 + 0x58) = local_44;" (assignment_expression "*(undefined2 *)(param_2 + 0x58) = local_44" (pointer_expression "*(undefined2 *)(param_2 + 0x58)" (* "*") (cast_expression "(undefined2 *)(param_2 + 0x58)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x58)" (( "(") (binary_expression "param_2 + 0x58" (identifier "param_2") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (identifier "local_44")) (; ";")) (expression_statement "*(undefined2 *)(param_2 + 0x5a) = local_28;" (assignment_expression "*(undefined2 *)(param_2 + 0x5a) = local_28" (pointer_expression "*(undefined2 *)(param_2 + 0x5a)" (* "*") (cast_expression "(undefined2 *)(param_2 + 0x5a)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x5a)" (( "(") (binary_expression "param_2 + 0x5a" (identifier "param_2") (+ "+") (number_literal "0x5a")) () ")")))) (= "=") (identifier "local_28")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0xc) = local_f4;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = local_f4" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "local_f4")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 4) = local_20;" (assignment_expression "*(undefined4 *)(param_2 + 4) = local_20" (pointer_expression "*(undefined4 *)(param_2 + 4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "local_20")) (; ";")) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

int function_1(int var_3,int var_6)

{
  char var_7;
  int var_1;
  type_1 *var_2;
  type_1 auStack_15c [19];
  int local_110;
  type_1 local_fc;
  type_1 local_f4;
  type_1 local_dc [37];
  type_1 local_48;
  type_2 local_44;
  int var_5;
  type_2 local_28;
  type_1 local_20;
  
  var_2 = auStack_15c;
  for (var_1 = 0x20; var_1 != 0; var_1 = var_1 + -1) {
    *var_2 = 0;
    var_2 = var_2 + 1;
  }
  local_fc = 0x40000000;
  local_110 = var_3 + 1;
  var_1 = var_4();
  if ((var_1 != 0) || (var_5 == 2)) {
    return 0;
  }
  var_1 = 0;
  do {
    while( true ) {
      var_7 = (char)local_dc[var_1 * 2 + 1];
      *(char *)(var_6 + 0x5c + var_1) = var_7;
      if ((var_7 != '\x01') && (var_7 != '\x02')) break;
      *(type_1 *)(var_6 + 0x10 + var_1 * 4) = local_dc[var_1 * 2];
      var_1 = var_1 + 1;
      if (var_1 == 0x12) goto LAB_0027db41;
    }
    *(type_1 *)(var_6 + 0x10 + var_1 * 4) = 0;
    var_1 = var_1 + 1;
  } while (var_1 != 0x12);
LAB_0027db41:
  *(type_1 *)(var_6 + 8) = local_48;
  *(type_2 *)(var_6 + 0x58) = local_44;
  *(type_2 *)(var_6 + 0x5a) = local_28;
  *(type_1 *)(var_6 + 0xc) = local_f4;
  *(type_1 *)(var_6 + 4) = local_20;
  return var_6;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement (identifier)))))

int MASKED(int param_1,int param_2)

{
  char cVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 auStack_15c [19];
  int local_110;
  undefined4 local_fc;
  undefined4 local_f4;
  undefined4 local_dc [37];
  undefined4 local_48;
  undefined2 local_44;
  int local_3c;
  undefined2 local_28;
  undefined4 local_20;
  
  puVar3 = auStack_15c;
  for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {
    *puVar3 = 0;
    puVar3 = puVar3 + 1;
  }
  local_fc = 0x40000000;
  local_110 = param_1 + 1;
  iVar2 = FUN_0027c430();
  if ((iVar2 != 0) || (local_3c == 2)) {
    return 0;
  }
  iVar2 = 0;
  do {
    while( true ) {
      cVar1 = (char)local_dc[iVar2 * 2 + 1];
      *(char *)(param_2 + 0x5c + iVar2) = cVar1;
      if ((cVar1 != '\x01') && (cVar1 != '\x02')) break;
      *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = local_dc[iVar2 * 2];
      iVar2 = iVar2 + 1;
      if (iVar2 == 0x12) goto LAB_0027db41;
    }
    *(undefined4 *)(param_2 + 0x10 + iVar2 * 4) = 0;
    iVar2 = iVar2 + 1;
  } while (iVar2 != 0x12);
LAB_0027db41:
  *(undefined4 *)(param_2 + 8) = local_48;
  *(undefined2 *)(param_2 + 0x58) = local_44;
  *(undefined2 *)(param_2 + 0x5a) = local_28;
  *(undefined4 *)(param_2 + 0xc) = local_f4;
  *(undefined4 *)(param_2 + 4) = local_20;
  return param_2;
}

