
long __frame_state_for(long param_1,long param_2)

{
  undefined8 uVar1;
  int iVar2;
  char cVar3;
  long lVar4;
  undefined8 *puVar5;
  undefined8 *puVar6;
  undefined8 auStack_288 [19];
  long local_1f0;
  undefined8 local_1c8;
  undefined8 local_1b8;
  undefined8 local_198;
  undefined4 local_190 [72];
  undefined8 local_70;
  undefined2 local_68;
  int local_58;
  undefined2 local_30;
  undefined8 local_20;
  
  local_1f0 = param_1 + 1;
  puVar5 = &local_198;
  puVar6 = auStack_288;
  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {
    *puVar6 = 0;
    puVar6 = puVar6 + 1;
  }
  local_1c8 = 0x4000000000000000;
  iVar2 = uw_frame_state_for(auStack_288,puVar5);
  if ((iVar2 != 0) || (local_58 == 2)) {
    return 0;
  }
  lVar4 = 0;
  do {
    while( true ) {
      cVar3 = (char)*(undefined4 *)(puVar5 + 1);
      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;
      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;
      uVar1 = *puVar5;
      puVar5 = puVar5 + 2;
      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;
      lVar4 = lVar4 + 1;
      if (lVar4 == 0x12) goto LAB_003683b1;
    }
    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;
    lVar4 = lVar4 + 1;
    puVar5 = puVar5 + 2;
  } while (lVar4 != 0x12);
LAB_003683b1:
  *(undefined8 *)(param_2 + 0x10) = local_70;
  *(undefined2 *)(param_2 + 0xb0) = local_68;
  *(undefined2 *)(param_2 + 0xb2) = local_30;
  *(undefined8 *)(param_2 + 0x18) = local_1b8;
  *(undefined8 *)(param_2 + 8) = local_20;
  return param_2;
}



long FUN_00368300(long param_1,long param_2)

{
  undefined8 uVar1;
  int iVar2;
  char cVar3;
  long lVar4;
  undefined8 *puVar5;
  undefined8 *puVar6;
  undefined8 auStack_288 [19];
  long local_1f0;
  undefined8 local_1c8;
  undefined8 local_1b8;
  undefined8 local_198;
  undefined4 local_190 [72];
  undefined8 local_70;
  undefined2 local_68;
  int local_58;
  undefined2 local_30;
  undefined8 local_20;
  
  local_1f0 = param_1 + 1;
  puVar5 = &local_198;
  puVar6 = auStack_288;
  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {
    *puVar6 = 0;
    puVar6 = puVar6 + 1;
  }
  local_1c8 = 0x4000000000000000;
  iVar2 = FUN_00366a00(auStack_288,puVar5);
  if ((iVar2 != 0) || (local_58 == 2)) {
    return 0;
  }
  lVar4 = 0;
  do {
    while( true ) {
      cVar3 = (char)*(undefined4 *)(puVar5 + 1);
      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;
      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;
      uVar1 = *puVar5;
      puVar5 = puVar5 + 2;
      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;
      lVar4 = lVar4 + 1;
      if (lVar4 == 0x12) goto LAB_003683b1;
    }
    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;
    lVar4 = lVar4 + 1;
    puVar5 = puVar5 + 2;
  } while (lVar4 != 0x12);
LAB_003683b1:
  *(undefined8 *)(param_2 + 0x10) = local_70;
  *(undefined2 *)(param_2 + 0xb0) = local_68;
  *(undefined2 *)(param_2 + 0xb2) = local_30;
  *(undefined8 *)(param_2 + 0x18) = local_1b8;
  *(undefined8 *)(param_2 + 8) = local_20;
  return param_2;
}


PUSH RBP
XOR EAX,EAX
MOV R8,RDI
MOV ECX,0x1e
PUSH RBX
ADD R8,0x1
MOV RBP,RSI
SUB RSP,0x278
MOV RDX,RSP
LEA RBX,[RSP + 0xf0]
MOV RDI,RDX
MOV RSI,RBX
STOSQ.REP RDI
MOV RDI,RDX
MOV qword ptr [RSP + 0x98],R8
MOV RAX,0x4000000000000000
MOV qword ptr [RSP + 0xc0],RAX
CALL 0x00366a00
TEST EAX,EAX
JNZ 0x00368400
CMP dword ptr [RSP + 0x230],0x2
JZ 0x00368400
MOV RSI,RBX
XOR EDX,EDX
JMP 0x00368387
MOV qword ptr [RBP + RDX*0x8 + 0x20],0x0
ADD RDX,0x1
ADD RSI,0x10
CMP RDX,0x12
JZ 0x003683b1
MOV ECX,dword ptr [RSI + 0x8]
MOV byte ptr [RBP + RDX*0x1 + 0xb4],CL
CMP CL,0x1
JZ 0x0036839b
CMP CL,0x2
JNZ 0x00368370
MOV RAX,qword ptr [RSI]
ADD RSI,0x10
MOV qword ptr [RBP + RDX*0x8 + 0x20],RAX
ADD RDX,0x1
CMP RDX,0x12
JNZ 0x00368387
MOV RAX,qword ptr [RSP + 0x218]
MOV qword ptr [RBP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x220]
MOV word ptr [RBP + 0xb0],AX
MOV RAX,qword ptr [RSP + 0x258]
MOV word ptr [RBP + 0xb2],AX
MOV RAX,qword ptr [RSP + 0xd0]
MOV qword ptr [RBP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x268]
MOV qword ptr [RBP + 0x8],RAX
ADD RSP,0x278
MOV RAX,RBP
POP RBX
POP RBP
RET
ADD RSP,0x278
XOR EAX,EAX
POP RBX
POP RBP
RET
(translation_unit "long FUN_00368300(long param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  undefined8 *puVar6;\n  undefined8 auStack_288 [19];\n  long local_1f0;\n  undefined8 local_1c8;\n  undefined8 local_1b8;\n  undefined8 local_198;\n  undefined4 local_190 [72];\n  undefined8 local_70;\n  undefined2 local_68;\n  int local_58;\n  undefined2 local_30;\n  undefined8 local_20;\n  \n  local_1f0 = param_1 + 1;\n  puVar5 = &local_198;\n  puVar6 = auStack_288;\n  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  local_1c8 = 0x4000000000000000;\n  iVar2 = FUN_00366a00(auStack_288,puVar5);\n  if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }\n  lVar4 = 0;\n  do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);\nLAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;\n  *(undefined2 *)(param_2 + 0xb0) = local_68;\n  *(undefined2 *)(param_2 + 0xb2) = local_30;\n  *(undefined8 *)(param_2 + 0x18) = local_1b8;\n  *(undefined8 *)(param_2 + 8) = local_20;\n  return param_2;\n}\n\n" (function_definition "long FUN_00368300(long param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  undefined8 *puVar6;\n  undefined8 auStack_288 [19];\n  long local_1f0;\n  undefined8 local_1c8;\n  undefined8 local_1b8;\n  undefined8 local_198;\n  undefined4 local_190 [72];\n  undefined8 local_70;\n  undefined2 local_68;\n  int local_58;\n  undefined2 local_30;\n  undefined8 local_20;\n  \n  local_1f0 = param_1 + 1;\n  puVar5 = &local_198;\n  puVar6 = auStack_288;\n  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  local_1c8 = 0x4000000000000000;\n  iVar2 = FUN_00366a00(auStack_288,puVar5);\n  if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }\n  lVar4 = 0;\n  do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);\nLAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;\n  *(undefined2 *)(param_2 + 0xb0) = local_68;\n  *(undefined2 *)(param_2 + 0xb2) = local_30;\n  *(undefined8 *)(param_2 + 0x18) = local_1b8;\n  *(undefined8 *)(param_2 + 8) = local_20;\n  return param_2;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00368300(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  undefined8 *puVar6;\n  undefined8 auStack_288 [19];\n  long local_1f0;\n  undefined8 local_1c8;\n  undefined8 local_1b8;\n  undefined8 local_198;\n  undefined4 local_190 [72];\n  undefined8 local_70;\n  undefined2 local_68;\n  int local_58;\n  undefined2 local_30;\n  undefined8 local_20;\n  \n  local_1f0 = param_1 + 1;\n  puVar5 = &local_198;\n  puVar6 = auStack_288;\n  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  local_1c8 = 0x4000000000000000;\n  iVar2 = FUN_00366a00(auStack_288,puVar5);\n  if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }\n  lVar4 = 0;\n  do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);\nLAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;\n  *(undefined2 *)(param_2 + 0xb0) = local_68;\n  *(undefined2 *)(param_2 + 0xb2) = local_30;\n  *(undefined8 *)(param_2 + 0x18) = local_1b8;\n  *(undefined8 *)(param_2 + 8) = local_20;\n  return param_2;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined8 auStack_288 [19];" type_identifier (array_declarator "auStack_288 [19]" identifier [ number_literal ]) ;) (declaration "long local_1f0;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_1c8;" type_identifier identifier ;) (declaration "undefined8 local_1b8;" type_identifier identifier ;) (declaration "undefined8 local_198;" type_identifier identifier ;) (declaration "undefined4 local_190 [72];" type_identifier (array_declarator "local_190 [72]" identifier [ number_literal ]) ;) (declaration "undefined8 local_70;" type_identifier identifier ;) (declaration "undefined2 local_68;" type_identifier identifier ;) (declaration "int local_58;" primitive_type identifier ;) (declaration "undefined2 local_30;" type_identifier identifier ;) (declaration "undefined8 local_20;" type_identifier identifier ;) (expression_statement "local_1f0 = param_1 + 1;" (assignment_expression "local_1f0 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "puVar5 = &local_198;" (assignment_expression "puVar5 = &local_198" identifier = (pointer_expression "&local_198" & identifier)) ;) (expression_statement "puVar6 = auStack_288;" (assignment_expression "puVar6 = auStack_288" identifier = identifier) ;) (for_statement "for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" for ( (assignment_expression "lVar4 = 0x1e" identifier = number_literal) ; (binary_expression "lVar4 != 0" identifier != number_literal) ; (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "local_1c8 = 0x4000000000000000;" (assignment_expression "local_1c8 = 0x4000000000000000" identifier = number_literal) ;) (expression_statement "iVar2 = FUN_00366a00(auStack_288,puVar5);" (assignment_expression "iVar2 = FUN_00366a00(auStack_288,puVar5)" identifier = (call_expression "FUN_00366a00(auStack_288,puVar5)" identifier (argument_list "(auStack_288,puVar5)" ( identifier , identifier )))) ;) (if_statement "if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }" if (parenthesized_expression "((iVar2 != 0) || (local_58 == 2))" ( (binary_expression "(iVar2 != 0) || (local_58 == 2)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) || (parenthesized_expression "(local_58 == 2)" ( (binary_expression "local_58 == 2" identifier == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);" do (compound_statement "{\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  }" { (while_statement "while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }" { (expression_statement "cVar3 = (char)*(undefined4 *)(puVar5 + 1);" (assignment_expression "cVar3 = (char)*(undefined4 *)(puVar5 + 1)" identifier = (cast_expression "(char)*(undefined4 *)(puVar5 + 1)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(undefined4 *)(puVar5 + 1)" * (cast_expression "(undefined4 *)(puVar5 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) )))))) ;) (expression_statement "*(char *)(param_2 + 0xb4 + lVar4) = cVar3;" (assignment_expression "*(char *)(param_2 + 0xb4 + lVar4) = cVar3" (pointer_expression "*(char *)(param_2 + 0xb4 + lVar4)" * (cast_expression "(char *)(param_2 + 0xb4 + lVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb4 + lVar4)" ( (binary_expression "param_2 + 0xb4 + lVar4" (binary_expression "param_2 + 0xb4" identifier + number_literal) + identifier) )))) = identifier) ;) (if_statement "if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;" if (parenthesized_expression "((cVar3 != '\x01') && (cVar3 != '\x02'))" ( (binary_expression "(cVar3 != '\x01') && (cVar3 != '\x02')" (parenthesized_expression "(cVar3 != '\x01')" ( (binary_expression "cVar3 != '\x01'" identifier != (char_literal "'\x01'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar3 != '\x02')" ( (binary_expression "cVar3 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "uVar1 = *puVar5;" (assignment_expression "uVar1 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;" (assignment_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1" (pointer_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" * (cast_expression "(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20 + lVar4 * 8)" ( (binary_expression "param_2 + 0x20 + lVar4 * 8" (binary_expression "param_2 + 0x20" identifier + number_literal) + (binary_expression "lVar4 * 8" identifier * number_literal)) )))) = identifier) ;) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" identifier = (binary_expression "lVar4 + 1" identifier + number_literal)) ;) (if_statement "if (lVar4 == 0x12) goto LAB_003683b1;" if (parenthesized_expression "(lVar4 == 0x12)" ( (binary_expression "lVar4 == 0x12" identifier == number_literal) )) (goto_statement "goto LAB_003683b1;" goto statement_identifier ;)) })) (expression_statement "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;" (assignment_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0" (pointer_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" * (cast_expression "(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20 + lVar4 * 8)" ( (binary_expression "param_2 + 0x20 + lVar4 * 8" (binary_expression "param_2 + 0x20" identifier + number_literal) + (binary_expression "lVar4 * 8" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" identifier = (binary_expression "lVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar4 != 0x12)" ( (binary_expression "lVar4 != 0x12" identifier != number_literal) )) ;) (labeled_statement "LAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;" statement_identifier : (expression_statement "*(undefined8 *)(param_2 + 0x10) = local_70;" (assignment_expression "*(undefined8 *)(param_2 + 0x10) = local_70" (pointer_expression "*(undefined8 *)(param_2 + 0x10)" * (cast_expression "(undefined8 *)(param_2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(undefined2 *)(param_2 + 0xb0) = local_68;" (assignment_expression "*(undefined2 *)(param_2 + 0xb0) = local_68" (pointer_expression "*(undefined2 *)(param_2 + 0xb0)" * (cast_expression "(undefined2 *)(param_2 + 0xb0)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb0)" ( (binary_expression "param_2 + 0xb0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(param_2 + 0xb2) = local_30;" (assignment_expression "*(undefined2 *)(param_2 + 0xb2) = local_30" (pointer_expression "*(undefined2 *)(param_2 + 0xb2)" * (cast_expression "(undefined2 *)(param_2 + 0xb2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb2)" ( (binary_expression "param_2 + 0xb2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_2 + 0x18) = local_1b8;" (assignment_expression "*(undefined8 *)(param_2 + 0x18) = local_1b8" (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_2 + 8) = local_20;" (assignment_expression "*(undefined8 *)(param_2 + 8) = local_20" (pointer_expression "*(undefined8 *)(param_2 + 8)" * (cast_expression "(undefined8 *)(param_2 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "long __frame_state_for(long param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  undefined8 *puVar6;\n  undefined8 auStack_288 [19];\n  long local_1f0;\n  undefined8 local_1c8;\n  undefined8 local_1b8;\n  undefined8 local_198;\n  undefined4 local_190 [72];\n  undefined8 local_70;\n  undefined2 local_68;\n  int local_58;\n  undefined2 local_30;\n  undefined8 local_20;\n  \n  local_1f0 = param_1 + 1;\n  puVar5 = &local_198;\n  puVar6 = auStack_288;\n  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  local_1c8 = 0x4000000000000000;\n  iVar2 = uw_frame_state_for(auStack_288,puVar5);\n  if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }\n  lVar4 = 0;\n  do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);\nLAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;\n  *(undefined2 *)(param_2 + 0xb0) = local_68;\n  *(undefined2 *)(param_2 + 0xb2) = local_30;\n  *(undefined8 *)(param_2 + 0x18) = local_1b8;\n  *(undefined8 *)(param_2 + 8) = local_20;\n  return param_2;\n}\n\n" (function_definition "long __frame_state_for(long param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  undefined8 *puVar6;\n  undefined8 auStack_288 [19];\n  long local_1f0;\n  undefined8 local_1c8;\n  undefined8 local_1b8;\n  undefined8 local_198;\n  undefined4 local_190 [72];\n  undefined8 local_70;\n  undefined2 local_68;\n  int local_58;\n  undefined2 local_30;\n  undefined8 local_20;\n  \n  local_1f0 = param_1 + 1;\n  puVar5 = &local_198;\n  puVar6 = auStack_288;\n  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  local_1c8 = 0x4000000000000000;\n  iVar2 = uw_frame_state_for(auStack_288,puVar5);\n  if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }\n  lVar4 = 0;\n  do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);\nLAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;\n  *(undefined2 *)(param_2 + 0xb0) = local_68;\n  *(undefined2 *)(param_2 + 0xb2) = local_30;\n  *(undefined8 *)(param_2 + 0x18) = local_1b8;\n  *(undefined8 *)(param_2 + 8) = local_20;\n  return param_2;\n}" (sized_type_specifier "long" long) (function_declarator "__frame_state_for(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  undefined8 *puVar6;\n  undefined8 auStack_288 [19];\n  long local_1f0;\n  undefined8 local_1c8;\n  undefined8 local_1b8;\n  undefined8 local_198;\n  undefined4 local_190 [72];\n  undefined8 local_70;\n  undefined2 local_68;\n  int local_58;\n  undefined2 local_30;\n  undefined8 local_20;\n  \n  local_1f0 = param_1 + 1;\n  puVar5 = &local_198;\n  puVar6 = auStack_288;\n  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  local_1c8 = 0x4000000000000000;\n  iVar2 = uw_frame_state_for(auStack_288,puVar5);\n  if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }\n  lVar4 = 0;\n  do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);\nLAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;\n  *(undefined2 *)(param_2 + 0xb0) = local_68;\n  *(undefined2 *)(param_2 + 0xb2) = local_30;\n  *(undefined8 *)(param_2 + 0x18) = local_1b8;\n  *(undefined8 *)(param_2 + 8) = local_20;\n  return param_2;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined8 auStack_288 [19];" type_identifier (array_declarator "auStack_288 [19]" identifier [ number_literal ]) ;) (declaration "long local_1f0;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_1c8;" type_identifier identifier ;) (declaration "undefined8 local_1b8;" type_identifier identifier ;) (declaration "undefined8 local_198;" type_identifier identifier ;) (declaration "undefined4 local_190 [72];" type_identifier (array_declarator "local_190 [72]" identifier [ number_literal ]) ;) (declaration "undefined8 local_70;" type_identifier identifier ;) (declaration "undefined2 local_68;" type_identifier identifier ;) (declaration "int local_58;" primitive_type identifier ;) (declaration "undefined2 local_30;" type_identifier identifier ;) (declaration "undefined8 local_20;" type_identifier identifier ;) (expression_statement "local_1f0 = param_1 + 1;" (assignment_expression "local_1f0 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "puVar5 = &local_198;" (assignment_expression "puVar5 = &local_198" identifier = (pointer_expression "&local_198" & identifier)) ;) (expression_statement "puVar6 = auStack_288;" (assignment_expression "puVar6 = auStack_288" identifier = identifier) ;) (for_statement "for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" for ( (assignment_expression "lVar4 = 0x1e" identifier = number_literal) ; (binary_expression "lVar4 != 0" identifier != number_literal) ; (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "local_1c8 = 0x4000000000000000;" (assignment_expression "local_1c8 = 0x4000000000000000" identifier = number_literal) ;) (expression_statement "iVar2 = uw_frame_state_for(auStack_288,puVar5);" (assignment_expression "iVar2 = uw_frame_state_for(auStack_288,puVar5)" identifier = (call_expression "uw_frame_state_for(auStack_288,puVar5)" identifier (argument_list "(auStack_288,puVar5)" ( identifier , identifier )))) ;) (if_statement "if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }" if (parenthesized_expression "((iVar2 != 0) || (local_58 == 2))" ( (binary_expression "(iVar2 != 0) || (local_58 == 2)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) || (parenthesized_expression "(local_58 == 2)" ( (binary_expression "local_58 == 2" identifier == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);" do (compound_statement "{\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  }" { (while_statement "while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }" { (expression_statement "cVar3 = (char)*(undefined4 *)(puVar5 + 1);" (assignment_expression "cVar3 = (char)*(undefined4 *)(puVar5 + 1)" identifier = (cast_expression "(char)*(undefined4 *)(puVar5 + 1)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(undefined4 *)(puVar5 + 1)" * (cast_expression "(undefined4 *)(puVar5 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) )))))) ;) (expression_statement "*(char *)(param_2 + 0xb4 + lVar4) = cVar3;" (assignment_expression "*(char *)(param_2 + 0xb4 + lVar4) = cVar3" (pointer_expression "*(char *)(param_2 + 0xb4 + lVar4)" * (cast_expression "(char *)(param_2 + 0xb4 + lVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb4 + lVar4)" ( (binary_expression "param_2 + 0xb4 + lVar4" (binary_expression "param_2 + 0xb4" identifier + number_literal) + identifier) )))) = identifier) ;) (if_statement "if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;" if (parenthesized_expression "((cVar3 != '\x01') && (cVar3 != '\x02'))" ( (binary_expression "(cVar3 != '\x01') && (cVar3 != '\x02')" (parenthesized_expression "(cVar3 != '\x01')" ( (binary_expression "cVar3 != '\x01'" identifier != (char_literal "'\x01'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar3 != '\x02')" ( (binary_expression "cVar3 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "uVar1 = *puVar5;" (assignment_expression "uVar1 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;" (assignment_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1" (pointer_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" * (cast_expression "(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20 + lVar4 * 8)" ( (binary_expression "param_2 + 0x20 + lVar4 * 8" (binary_expression "param_2 + 0x20" identifier + number_literal) + (binary_expression "lVar4 * 8" identifier * number_literal)) )))) = identifier) ;) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" identifier = (binary_expression "lVar4 + 1" identifier + number_literal)) ;) (if_statement "if (lVar4 == 0x12) goto LAB_003683b1;" if (parenthesized_expression "(lVar4 == 0x12)" ( (binary_expression "lVar4 == 0x12" identifier == number_literal) )) (goto_statement "goto LAB_003683b1;" goto statement_identifier ;)) })) (expression_statement "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;" (assignment_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0" (pointer_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" * (cast_expression "(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20 + lVar4 * 8)" ( (binary_expression "param_2 + 0x20 + lVar4 * 8" (binary_expression "param_2 + 0x20" identifier + number_literal) + (binary_expression "lVar4 * 8" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" identifier = (binary_expression "lVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar4 != 0x12)" ( (binary_expression "lVar4 != 0x12" identifier != number_literal) )) ;) (labeled_statement "LAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;" statement_identifier : (expression_statement "*(undefined8 *)(param_2 + 0x10) = local_70;" (assignment_expression "*(undefined8 *)(param_2 + 0x10) = local_70" (pointer_expression "*(undefined8 *)(param_2 + 0x10)" * (cast_expression "(undefined8 *)(param_2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(undefined2 *)(param_2 + 0xb0) = local_68;" (assignment_expression "*(undefined2 *)(param_2 + 0xb0) = local_68" (pointer_expression "*(undefined2 *)(param_2 + 0xb0)" * (cast_expression "(undefined2 *)(param_2 + 0xb0)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb0)" ( (binary_expression "param_2 + 0xb0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(param_2 + 0xb2) = local_30;" (assignment_expression "*(undefined2 *)(param_2 + 0xb2) = local_30" (pointer_expression "*(undefined2 *)(param_2 + 0xb2)" * (cast_expression "(undefined2 *)(param_2 + 0xb2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb2)" ( (binary_expression "param_2 + 0xb2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_2 + 0x18) = local_1b8;" (assignment_expression "*(undefined8 *)(param_2 + 0x18) = local_1b8" (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_2 + 8) = local_20;" (assignment_expression "*(undefined8 *)(param_2 + 8) = local_20" (pointer_expression "*(undefined8 *)(param_2 + 8)" * (cast_expression "(undefined8 *)(param_2 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "long FUN_00368300(long param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  undefined8 *puVar6;\n  undefined8 auStack_288 [19];\n  long local_1f0;\n  undefined8 local_1c8;\n  undefined8 local_1b8;\n  undefined8 local_198;\n  undefined4 local_190 [72];\n  undefined8 local_70;\n  undefined2 local_68;\n  int local_58;\n  undefined2 local_30;\n  undefined8 local_20;\n  \n  local_1f0 = param_1 + 1;\n  puVar5 = &local_198;\n  puVar6 = auStack_288;\n  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  local_1c8 = 0x4000000000000000;\n  iVar2 = FUN_00366a00(auStack_288,puVar5);\n  if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }\n  lVar4 = 0;\n  do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);\nLAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;\n  *(undefined2 *)(param_2 + 0xb0) = local_68;\n  *(undefined2 *)(param_2 + 0xb2) = local_30;\n  *(undefined8 *)(param_2 + 0x18) = local_1b8;\n  *(undefined8 *)(param_2 + 8) = local_20;\n  return param_2;\n}\n\n" (function_definition "long FUN_00368300(long param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  undefined8 *puVar6;\n  undefined8 auStack_288 [19];\n  long local_1f0;\n  undefined8 local_1c8;\n  undefined8 local_1b8;\n  undefined8 local_198;\n  undefined4 local_190 [72];\n  undefined8 local_70;\n  undefined2 local_68;\n  int local_58;\n  undefined2 local_30;\n  undefined8 local_20;\n  \n  local_1f0 = param_1 + 1;\n  puVar5 = &local_198;\n  puVar6 = auStack_288;\n  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  local_1c8 = 0x4000000000000000;\n  iVar2 = FUN_00366a00(auStack_288,puVar5);\n  if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }\n  lVar4 = 0;\n  do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);\nLAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;\n  *(undefined2 *)(param_2 + 0xb0) = local_68;\n  *(undefined2 *)(param_2 + 0xb2) = local_30;\n  *(undefined8 *)(param_2 + 0x18) = local_1b8;\n  *(undefined8 *)(param_2 + 8) = local_20;\n  return param_2;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00368300(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  undefined8 *puVar6;\n  undefined8 auStack_288 [19];\n  long local_1f0;\n  undefined8 local_1c8;\n  undefined8 local_1b8;\n  undefined8 local_198;\n  undefined4 local_190 [72];\n  undefined8 local_70;\n  undefined2 local_68;\n  int local_58;\n  undefined2 local_30;\n  undefined8 local_20;\n  \n  local_1f0 = param_1 + 1;\n  puVar5 = &local_198;\n  puVar6 = auStack_288;\n  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  local_1c8 = 0x4000000000000000;\n  iVar2 = FUN_00366a00(auStack_288,puVar5);\n  if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }\n  lVar4 = 0;\n  do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);\nLAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;\n  *(undefined2 *)(param_2 + 0xb0) = local_68;\n  *(undefined2 *)(param_2 + 0xb2) = local_30;\n  *(undefined8 *)(param_2 + 0x18) = local_1b8;\n  *(undefined8 *)(param_2 + 8) = local_20;\n  return param_2;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined8 auStack_288 [19];" type_identifier (array_declarator "auStack_288 [19]" identifier [ number_literal ]) ;) (declaration "long local_1f0;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_1c8;" type_identifier identifier ;) (declaration "undefined8 local_1b8;" type_identifier identifier ;) (declaration "undefined8 local_198;" type_identifier identifier ;) (declaration "undefined4 local_190 [72];" type_identifier (array_declarator "local_190 [72]" identifier [ number_literal ]) ;) (declaration "undefined8 local_70;" type_identifier identifier ;) (declaration "undefined2 local_68;" type_identifier identifier ;) (declaration "int local_58;" primitive_type identifier ;) (declaration "undefined2 local_30;" type_identifier identifier ;) (declaration "undefined8 local_20;" type_identifier identifier ;) (expression_statement "local_1f0 = param_1 + 1;" (assignment_expression "local_1f0 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "puVar5 = &local_198;" (assignment_expression "puVar5 = &local_198" identifier = (pointer_expression "&local_198" & identifier)) ;) (expression_statement "puVar6 = auStack_288;" (assignment_expression "puVar6 = auStack_288" identifier = identifier) ;) (for_statement "for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" for ( (assignment_expression "lVar4 = 0x1e" identifier = number_literal) ; (binary_expression "lVar4 != 0" identifier != number_literal) ; (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "local_1c8 = 0x4000000000000000;" (assignment_expression "local_1c8 = 0x4000000000000000" identifier = number_literal) ;) (expression_statement "iVar2 = FUN_00366a00(auStack_288,puVar5);" (assignment_expression "iVar2 = FUN_00366a00(auStack_288,puVar5)" identifier = (call_expression "FUN_00366a00(auStack_288,puVar5)" identifier (argument_list "(auStack_288,puVar5)" ( identifier , identifier )))) ;) (if_statement "if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }" if (parenthesized_expression "((iVar2 != 0) || (local_58 == 2))" ( (binary_expression "(iVar2 != 0) || (local_58 == 2)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) || (parenthesized_expression "(local_58 == 2)" ( (binary_expression "local_58 == 2" identifier == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);" do (compound_statement "{\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  }" { (while_statement "while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }" { (expression_statement "cVar3 = (char)*(undefined4 *)(puVar5 + 1);" (assignment_expression "cVar3 = (char)*(undefined4 *)(puVar5 + 1)" identifier = (cast_expression "(char)*(undefined4 *)(puVar5 + 1)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(undefined4 *)(puVar5 + 1)" * (cast_expression "(undefined4 *)(puVar5 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) )))))) ;) (expression_statement "*(char *)(param_2 + 0xb4 + lVar4) = cVar3;" (assignment_expression "*(char *)(param_2 + 0xb4 + lVar4) = cVar3" (pointer_expression "*(char *)(param_2 + 0xb4 + lVar4)" * (cast_expression "(char *)(param_2 + 0xb4 + lVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb4 + lVar4)" ( (binary_expression "param_2 + 0xb4 + lVar4" (binary_expression "param_2 + 0xb4" identifier + number_literal) + identifier) )))) = identifier) ;) (if_statement "if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;" if (parenthesized_expression "((cVar3 != '\x01') && (cVar3 != '\x02'))" ( (binary_expression "(cVar3 != '\x01') && (cVar3 != '\x02')" (parenthesized_expression "(cVar3 != '\x01')" ( (binary_expression "cVar3 != '\x01'" identifier != (char_literal "'\x01'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar3 != '\x02')" ( (binary_expression "cVar3 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "uVar1 = *puVar5;" (assignment_expression "uVar1 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;" (assignment_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1" (pointer_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" * (cast_expression "(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20 + lVar4 * 8)" ( (binary_expression "param_2 + 0x20 + lVar4 * 8" (binary_expression "param_2 + 0x20" identifier + number_literal) + (binary_expression "lVar4 * 8" identifier * number_literal)) )))) = identifier) ;) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" identifier = (binary_expression "lVar4 + 1" identifier + number_literal)) ;) (if_statement "if (lVar4 == 0x12) goto LAB_003683b1;" if (parenthesized_expression "(lVar4 == 0x12)" ( (binary_expression "lVar4 == 0x12" identifier == number_literal) )) (goto_statement "goto LAB_003683b1;" goto statement_identifier ;)) })) (expression_statement "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;" (assignment_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0" (pointer_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" * (cast_expression "(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20 + lVar4 * 8)" ( (binary_expression "param_2 + 0x20 + lVar4 * 8" (binary_expression "param_2 + 0x20" identifier + number_literal) + (binary_expression "lVar4 * 8" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" identifier = (binary_expression "lVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar4 != 0x12)" ( (binary_expression "lVar4 != 0x12" identifier != number_literal) )) ;) (labeled_statement "LAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;" statement_identifier : (expression_statement "*(undefined8 *)(param_2 + 0x10) = local_70;" (assignment_expression "*(undefined8 *)(param_2 + 0x10) = local_70" (pointer_expression "*(undefined8 *)(param_2 + 0x10)" * (cast_expression "(undefined8 *)(param_2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) = identifier) ;)) (expression_statement "*(undefined2 *)(param_2 + 0xb0) = local_68;" (assignment_expression "*(undefined2 *)(param_2 + 0xb0) = local_68" (pointer_expression "*(undefined2 *)(param_2 + 0xb0)" * (cast_expression "(undefined2 *)(param_2 + 0xb0)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb0)" ( (binary_expression "param_2 + 0xb0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(param_2 + 0xb2) = local_30;" (assignment_expression "*(undefined2 *)(param_2 + 0xb2) = local_30" (pointer_expression "*(undefined2 *)(param_2 + 0xb2)" * (cast_expression "(undefined2 *)(param_2 + 0xb2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb2)" ( (binary_expression "param_2 + 0xb2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_2 + 0x18) = local_1b8;" (assignment_expression "*(undefined8 *)(param_2 + 0x18) = local_1b8" (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_2 + 8) = local_20;" (assignment_expression "*(undefined8 *)(param_2 + 8) = local_20" (pointer_expression "*(undefined8 *)(param_2 + 8)" * (cast_expression "(undefined8 *)(param_2 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (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 = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & 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 = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (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) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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 IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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)) )))) = IDENT) ;) (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)) ;) (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 "long FUN_00368300(long param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  undefined8 *puVar6;\n  undefined8 auStack_288 [19];\n  long local_1f0;\n  undefined8 local_1c8;\n  undefined8 local_1b8;\n  undefined8 local_198;\n  undefined4 local_190 [72];\n  undefined8 local_70;\n  undefined2 local_68;\n  int local_58;\n  undefined2 local_30;\n  undefined8 local_20;\n  \n  local_1f0 = param_1 + 1;\n  puVar5 = &local_198;\n  puVar6 = auStack_288;\n  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  local_1c8 = 0x4000000000000000;\n  iVar2 = FUN_00366a00(auStack_288,puVar5);\n  if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }\n  lVar4 = 0;\n  do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);\nLAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;\n  *(undefined2 *)(param_2 + 0xb0) = local_68;\n  *(undefined2 *)(param_2 + 0xb2) = local_30;\n  *(undefined8 *)(param_2 + 0x18) = local_1b8;\n  *(undefined8 *)(param_2 + 8) = local_20;\n  return param_2;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_00368300(long param_1,long param_2)" (identifier "FUN_00368300") (parameter_list "(long param_1,long param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  undefined8 *puVar6;\n  undefined8 auStack_288 [19];\n  long local_1f0;\n  undefined8 local_1c8;\n  undefined8 local_1b8;\n  undefined8 local_198;\n  undefined4 local_190 [72];\n  undefined8 local_70;\n  undefined2 local_68;\n  int local_58;\n  undefined2 local_30;\n  undefined8 local_20;\n  \n  local_1f0 = param_1 + 1;\n  puVar5 = &local_198;\n  puVar6 = auStack_288;\n  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  local_1c8 = 0x4000000000000000;\n  iVar2 = FUN_00366a00(auStack_288,puVar5);\n  if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }\n  lVar4 = 0;\n  do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);\nLAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;\n  *(undefined2 *)(param_2 + 0xb0) = local_68;\n  *(undefined2 *)(param_2 + 0xb2) = local_30;\n  *(undefined8 *)(param_2 + 0x18) = local_1b8;\n  *(undefined8 *)(param_2 + 8) = local_20;\n  return param_2;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "undefined8 *puVar5;" (type_identifier "undefined8") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined8 *puVar6;" (type_identifier "undefined8") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined8 auStack_288 [19];" (type_identifier "undefined8") (array_declarator "auStack_288 [19]" (identifier "auStack_288") ([ "[") (number_literal "19") (] "]")) (; ";")) (declaration "long local_1f0;" (sized_type_specifier "long" (long "long")) (identifier "local_1f0") (; ";")) (declaration "undefined8 local_1c8;" (type_identifier "undefined8") (identifier "local_1c8") (; ";")) (declaration "undefined8 local_1b8;" (type_identifier "undefined8") (identifier "local_1b8") (; ";")) (declaration "undefined8 local_198;" (type_identifier "undefined8") (identifier "local_198") (; ";")) (declaration "undefined4 local_190 [72];" (type_identifier "undefined4") (array_declarator "local_190 [72]" (identifier "local_190") ([ "[") (number_literal "72") (] "]")) (; ";")) (declaration "undefined8 local_70;" (type_identifier "undefined8") (identifier "local_70") (; ";")) (declaration "undefined2 local_68;" (type_identifier "undefined2") (identifier "local_68") (; ";")) (declaration "int local_58;" (primitive_type "int") (identifier "local_58") (; ";")) (declaration "undefined2 local_30;" (type_identifier "undefined2") (identifier "local_30") (; ";")) (declaration "undefined8 local_20;" (type_identifier "undefined8") (identifier "local_20") (; ";")) (expression_statement "local_1f0 = param_1 + 1;" (assignment_expression "local_1f0 = param_1 + 1" (identifier "local_1f0") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar5 = &local_198;" (assignment_expression "puVar5 = &local_198" (identifier "puVar5") (= "=") (pointer_expression "&local_198" (& "&") (identifier "local_198"))) (; ";")) (expression_statement "puVar6 = auStack_288;" (assignment_expression "puVar6 = auStack_288" (identifier "puVar6") (= "=") (identifier "auStack_288")) (; ";")) (for_statement "for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" (for "for") (( "(") (assignment_expression "lVar4 = 0x1e" (identifier "lVar4") (= "=") (number_literal "0x1e")) (; ";") (binary_expression "lVar4 != 0" (identifier "lVar4") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "lVar4 = lVar4 + -1" (identifier "lVar4") (= "=") (binary_expression "lVar4 + -1" (identifier "lVar4") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" ({ "{") (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "local_1c8 = 0x4000000000000000;" (assignment_expression "local_1c8 = 0x4000000000000000" (identifier "local_1c8") (= "=") (number_literal "0x4000000000000000")) (; ";")) (expression_statement "iVar2 = FUN_00366a00(auStack_288,puVar5);" (assignment_expression "iVar2 = FUN_00366a00(auStack_288,puVar5)" (identifier "iVar2") (= "=") (call_expression "FUN_00366a00(auStack_288,puVar5)" (identifier "FUN_00366a00") (argument_list "(auStack_288,puVar5)" (( "(") (identifier "auStack_288") (, ",") (identifier "puVar5") () ")")))) (; ";")) (if_statement "if ((iVar2 != 0) || (local_58 == 2)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((iVar2 != 0) || (local_58 == 2))" (( "(") (binary_expression "(iVar2 != 0) || (local_58 == 2)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(local_58 == 2)" (( "(") (binary_expression "local_58 == 2" (identifier "local_58") (== "==") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" (identifier "lVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  } while (lVar4 != 0x12);" (do "do") (compound_statement "{\n    while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }\n    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;\n    lVar4 = lVar4 + 1;\n    puVar5 = puVar5 + 2;\n  }" ({ "{") (while_statement "while( true ) {\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      cVar3 = (char)*(undefined4 *)(puVar5 + 1);\n      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;\n      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;\n      uVar1 = *puVar5;\n      puVar5 = puVar5 + 2;\n      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;\n      lVar4 = lVar4 + 1;\n      if (lVar4 == 0x12) goto LAB_003683b1;\n    }" ({ "{") (expression_statement "cVar3 = (char)*(undefined4 *)(puVar5 + 1);" (assignment_expression "cVar3 = (char)*(undefined4 *)(puVar5 + 1)" (identifier "cVar3") (= "=") (cast_expression "(char)*(undefined4 *)(puVar5 + 1)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*(undefined4 *)(puVar5 + 1)" (* "*") (cast_expression "(undefined4 *)(puVar5 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 1)" (( "(") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1")) () ")")))))) (; ";")) (expression_statement "*(char *)(param_2 + 0xb4 + lVar4) = cVar3;" (assignment_expression "*(char *)(param_2 + 0xb4 + lVar4) = cVar3" (pointer_expression "*(char *)(param_2 + 0xb4 + lVar4)" (* "*") (cast_expression "(char *)(param_2 + 0xb4 + lVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xb4 + lVar4)" (( "(") (binary_expression "param_2 + 0xb4 + lVar4" (binary_expression "param_2 + 0xb4" (identifier "param_2") (+ "+") (number_literal "0xb4")) (+ "+") (identifier "lVar4")) () ")")))) (= "=") (identifier "cVar3")) (; ";")) (if_statement "if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;" (if "if") (parenthesized_expression "((cVar3 != '\x01') && (cVar3 != '\x02'))" (( "(") (binary_expression "(cVar3 != '\x01') && (cVar3 != '\x02')" (parenthesized_expression "(cVar3 != '\x01')" (( "(") (binary_expression "cVar3 != '\x01'" (identifier "cVar3") (!= "!=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(cVar3 != '\x02')" (( "(") (binary_expression "cVar3 != '\x02'" (identifier "cVar3") (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar1 = *puVar5;" (assignment_expression "uVar1 = *puVar5" (identifier "uVar1") (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;" (assignment_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1" (pointer_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20 + lVar4 * 8)" (( "(") (binary_expression "param_2 + 0x20 + lVar4 * 8" (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) (+ "+") (binary_expression "lVar4 * 8" (identifier "lVar4") (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" (identifier "lVar4") (= "=") (binary_expression "lVar4 + 1" (identifier "lVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (lVar4 == 0x12) goto LAB_003683b1;" (if "if") (parenthesized_expression "(lVar4 == 0x12)" (( "(") (binary_expression "lVar4 == 0x12" (identifier "lVar4") (== "==") (number_literal "0x12")) () ")")) (goto_statement "goto LAB_003683b1;" (goto "goto") (statement_identifier "LAB_003683b1") (; ";"))) (} "}"))) (expression_statement "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;" (assignment_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0" (pointer_expression "*(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x20 + lVar4 * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20 + lVar4 * 8)" (( "(") (binary_expression "param_2 + 0x20 + lVar4 * 8" (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) (+ "+") (binary_expression "lVar4 * 8" (identifier "lVar4") (* "*") (number_literal "8"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" (identifier "lVar4") (= "=") (binary_expression "lVar4 + 1" (identifier "lVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar4 != 0x12)" (( "(") (binary_expression "lVar4 != 0x12" (identifier "lVar4") (!= "!=") (number_literal "0x12")) () ")")) (; ";")) (labeled_statement "LAB_003683b1:\n  *(undefined8 *)(param_2 + 0x10) = local_70;" (statement_identifier "LAB_003683b1") (: ":") (expression_statement "*(undefined8 *)(param_2 + 0x10) = local_70;" (assignment_expression "*(undefined8 *)(param_2 + 0x10) = local_70" (pointer_expression "*(undefined8 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "local_70")) (; ";"))) (expression_statement "*(undefined2 *)(param_2 + 0xb0) = local_68;" (assignment_expression "*(undefined2 *)(param_2 + 0xb0) = local_68" (pointer_expression "*(undefined2 *)(param_2 + 0xb0)" (* "*") (cast_expression "(undefined2 *)(param_2 + 0xb0)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xb0)" (( "(") (binary_expression "param_2 + 0xb0" (identifier "param_2") (+ "+") (number_literal "0xb0")) () ")")))) (= "=") (identifier "local_68")) (; ";")) (expression_statement "*(undefined2 *)(param_2 + 0xb2) = local_30;" (assignment_expression "*(undefined2 *)(param_2 + 0xb2) = local_30" (pointer_expression "*(undefined2 *)(param_2 + 0xb2)" (* "*") (cast_expression "(undefined2 *)(param_2 + 0xb2)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xb2)" (( "(") (binary_expression "param_2 + 0xb2" (identifier "param_2") (+ "+") (number_literal "0xb2")) () ")")))) (= "=") (identifier "local_30")) (; ";")) (expression_statement "*(undefined8 *)(param_2 + 0x18) = local_1b8;" (assignment_expression "*(undefined8 *)(param_2 + 0x18) = local_1b8" (pointer_expression "*(undefined8 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "local_1b8")) (; ";")) (expression_statement "*(undefined8 *)(param_2 + 8) = local_20;" (assignment_expression "*(undefined8 *)(param_2 + 8) = local_20" (pointer_expression "*(undefined8 *)(param_2 + 8)" (* "*") (cast_expression "(undefined8 *)(param_2 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "local_20")) (; ";")) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

long function_1(long var_1,long var_8)

{
  type_1 uVar1;
  int var_5;
  char var_9;
  long var_2;
  type_1 *var_7;
  type_1 *var_3;
  type_1 auStack_288 [19];
  long local_1f0;
  type_1 local_1c8;
  type_1 local_1b8;
  type_1 local_198;
  type_2 local_190 [72];
  type_1 local_70;
  type_3 local_68;
  int var_6;
  type_3 local_30;
  type_1 local_20;
  
  local_1f0 = var_1 + 1;
  var_7 = &local_198;
  var_3 = auStack_288;
  for (var_2 = 0x1e; var_2 != 0; var_2 = var_2 + -1) {
    *var_3 = 0;
    var_3 = var_3 + 1;
  }
  local_1c8 = 0x4000000000000000;
  var_5 = var_4(auStack_288,var_7);
  if ((var_5 != 0) || (var_6 == 2)) {
    return 0;
  }
  var_2 = 0;
  do {
    while( true ) {
      var_9 = (char)*(type_2 *)(var_7 + 1);
      *(char *)(var_8 + 0xb4 + var_2) = var_9;
      if ((var_9 != '\x01') && (var_9 != '\x02')) break;
      uVar1 = *var_7;
      var_7 = var_7 + 2;
      *(type_1 *)(var_8 + 0x20 + var_2 * 8) = uVar1;
      var_2 = var_2 + 1;
      if (var_2 == 0x12) goto LAB_003683b1;
    }
    *(type_1 *)(var_8 + 0x20 + var_2 * 8) = 0;
    var_2 = var_2 + 1;
    var_7 = var_7 + 2;
  } while (var_2 != 0x12);
LAB_003683b1:
  *(type_1 *)(var_8 + 0x10) = local_70;
  *(type_3 *)(var_8 + 0xb0) = local_68;
  *(type_3 *)(var_8 + 0xb2) = local_30;
  *(type_1 *)(var_8 + 0x18) = local_1b8;
  *(type_1 *)(var_8 + 8) = local_20;
  return var_8;
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) 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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (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: (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)))))))) (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: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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: (identifier))) (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)))) (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)))))

long MASKED(long param_1,long param_2)

{
  undefined8 uVar1;
  int iVar2;
  char cVar3;
  long lVar4;
  undefined8 *puVar5;
  undefined8 *puVar6;
  undefined8 auStack_288 [19];
  long local_1f0;
  undefined8 local_1c8;
  undefined8 local_1b8;
  undefined8 local_198;
  undefined4 local_190 [72];
  undefined8 local_70;
  undefined2 local_68;
  int local_58;
  undefined2 local_30;
  undefined8 local_20;
  
  local_1f0 = param_1 + 1;
  puVar5 = &local_198;
  puVar6 = auStack_288;
  for (lVar4 = 0x1e; lVar4 != 0; lVar4 = lVar4 + -1) {
    *puVar6 = 0;
    puVar6 = puVar6 + 1;
  }
  local_1c8 = 0x4000000000000000;
  iVar2 = FUN_00366a00(auStack_288,puVar5);
  if ((iVar2 != 0) || (local_58 == 2)) {
    return 0;
  }
  lVar4 = 0;
  do {
    while( true ) {
      cVar3 = (char)*(undefined4 *)(puVar5 + 1);
      *(char *)(param_2 + 0xb4 + lVar4) = cVar3;
      if ((cVar3 != '\x01') && (cVar3 != '\x02')) break;
      uVar1 = *puVar5;
      puVar5 = puVar5 + 2;
      *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = uVar1;
      lVar4 = lVar4 + 1;
      if (lVar4 == 0x12) goto LAB_003683b1;
    }
    *(undefined8 *)(param_2 + 0x20 + lVar4 * 8) = 0;
    lVar4 = lVar4 + 1;
    puVar5 = puVar5 + 2;
  } while (lVar4 != 0x12);
LAB_003683b1:
  *(undefined8 *)(param_2 + 0x10) = local_70;
  *(undefined2 *)(param_2 + 0xb0) = local_68;
  *(undefined2 *)(param_2 + 0xb2) = local_30;
  *(undefined8 *)(param_2 + 0x18) = local_1b8;
  *(undefined8 *)(param_2 + 8) = local_20;
  return param_2;
}

