
/* WARNING: Unknown calling convention */

void s_aarch64_arch_extension(int ignored)

{
  undefined4 *puVar1;
  byte bVar2;
  byte *str;
  undefined4 uVar3;
  byte *pbVar4;
  int iVar5;
  byte bVar6;
  int unaff_EDI;
  
  __x86_get_pc_thunk_di();
  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);
  str = (byte *)*puVar1;
  bVar6 = *str;
  pbVar4 = str;
  if (bVar6 != 0) {
    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);
    while ((bVar2 & 0x40) == 0) {
      pbVar4 = pbVar4 + 1;
      *puVar1 = pbVar4;
      bVar6 = *pbVar4;
      if (bVar6 == 0) break;
      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);
    }
  }
  *pbVar4 = 0;
  iVar5 = aarch64_parse_features((char *)str,(aarch64_feature_set **)(&DAT_0003ec29 + unaff_EDI),1);
  if (iVar5 != 0) {
    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];
    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);
    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;
    *(byte *)*puVar1 = bVar6;
    demand_empty_rest_of_line();
  }
  return;
}



void FUN_00042a60(void)

{
  undefined4 *puVar1;
  byte bVar2;
  undefined4 uVar3;
  byte *pbVar4;
  int iVar5;
  byte bVar6;
  int unaff_EDI;
  
  FUN_0001e7ad();
  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);
  pbVar4 = (byte *)*puVar1;
  bVar6 = *pbVar4;
  if (bVar6 != 0) {
    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);
    while ((bVar2 & 0x40) == 0) {
      pbVar4 = pbVar4 + 1;
      *puVar1 = pbVar4;
      bVar6 = *pbVar4;
      if (bVar6 == 0) break;
      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);
    }
  }
  *pbVar4 = 0;
  iVar5 = FUN_000426e0();
  if (iVar5 != 0) {
    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];
    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);
    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;
    *(byte *)*puVar1 = bVar6;
    FUN_0002f430();
  }
  return;
}


PUSH EBP
PUSH EDI
CALL 0x0001e7ad
ADD EDI,0x35599
PUSH ESI
PUSH EBX
SUB ESP,0x1c
LEA ESI,[EDI + 0x99b8]
MOV EDX,dword ptr [ESI]
MOVZX EBX,byte ptr [EDX]
MOV dword ptr [ESP + 0xc],EDX
TEST BL,BL
JZ 0x00042b00
MOV ECX,dword ptr [EDI + 0xffffff50]
MOVZX EAX,BL
TEST byte ptr [ECX + EAX*0x2],0x40
JNZ 0x00042b00
LEA EAX,[EDX + 0x1]
JMP 0x00042aac
MOVZX EDX,BL
ADD EAX,0x1
TEST byte ptr [ECX + EDX*0x2],0x40
JNZ 0x00042ab7
MOV dword ptr [ESI],EAX
MOVZX EBX,byte ptr [EAX]
MOV EBP,EAX
TEST BL,BL
JNZ 0x00042aa0
MOV byte ptr [EBP],0x0
MOV EAX,dword ptr [ESP + 0xc]
MOV ECX,0x1
LEA EDX,[EDI + 0x9690]
CALL 0x000426e0
TEST EAX,EAX
JZ 0x00042af5
MOV EAX,dword ptr [EDI + 0x9690]
MOV EDX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EDI + 0x9698],EAX
MOV EAX,dword ptr [ESI]
MOV dword ptr [EDI + 0x969c],EDX
MOV byte ptr [EAX],BL
MOV EBX,EDI
CALL 0x0002f430
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,dword ptr [ESP + 0xc]
JMP 0x00042ab7
(translation_unit "void FUN_00042a60(void)\n\n{\n  undefined4 *puVar1;\n  byte bVar2;\n  undefined4 uVar3;\n  byte *pbVar4;\n  int iVar5;\n  byte bVar6;\n  int unaff_EDI;\n  \n  FUN_0001e7ad();\n  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);\n  pbVar4 = (byte *)*puVar1;\n  bVar6 = *pbVar4;\n  if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }\n  *pbVar4 = 0;\n  iVar5 = FUN_000426e0();\n  if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }\n  return;\n}\n\n" (function_definition "void FUN_00042a60(void)\n\n{\n  undefined4 *puVar1;\n  byte bVar2;\n  undefined4 uVar3;\n  byte *pbVar4;\n  int iVar5;\n  byte bVar6;\n  int unaff_EDI;\n  \n  FUN_0001e7ad();\n  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);\n  pbVar4 = (byte *)*puVar1;\n  bVar6 = *pbVar4;\n  if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }\n  *pbVar4 = 0;\n  iVar5 = FUN_000426e0();\n  if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00042a60(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 *puVar1;\n  byte bVar2;\n  undefined4 uVar3;\n  byte *pbVar4;\n  int iVar5;\n  byte bVar6;\n  int unaff_EDI;\n  \n  FUN_0001e7ad();\n  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);\n  pbVar4 = (byte *)*puVar1;\n  bVar6 = *pbVar4;\n  if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }\n  *pbVar4 = 0;\n  iVar5 = FUN_000426e0();\n  if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_0001e7ad();" (call_expression "FUN_0001e7ad()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);" (assignment_expression "puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51)" identifier = (cast_expression "(undefined4 *)(unaff_EDI + 0x3ef51)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x3ef51)" ( (binary_expression "unaff_EDI + 0x3ef51" identifier + number_literal) )))) ;) (expression_statement "pbVar4 = (byte *)*puVar1;" (assignment_expression "pbVar4 = (byte *)*puVar1" identifier = (cast_expression "(byte *)*puVar1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "bVar6 = *pbVar4;" (assignment_expression "bVar6 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }" if (parenthesized_expression "(bVar6 != 0)" ( (binary_expression "bVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }" { (expression_statement "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);" (assignment_expression "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" identifier = (pointer_expression "*(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" * (cast_expression "(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" ( (binary_expression "*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2" (pointer_expression "*(int *)(unaff_EDI + 0x354e9)" * (cast_expression "(int *)(unaff_EDI + 0x354e9)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x354e9)" ( (binary_expression "unaff_EDI + 0x354e9" identifier + number_literal) )))) + (binary_expression "(uint)bVar6 * 2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) (while_statement "while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }" while (parenthesized_expression "((bVar2 & 0x40) == 0)" ( (binary_expression "(bVar2 & 0x40) == 0" (parenthesized_expression "(bVar2 & 0x40)" ( (binary_expression "bVar2 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }" { (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = pbVar4;" (assignment_expression "*puVar1 = pbVar4" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "bVar6 = *pbVar4;" (assignment_expression "bVar6 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if (bVar6 == 0) break;" if (parenthesized_expression "(bVar6 == 0)" ( (binary_expression "bVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);" (assignment_expression "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" identifier = (pointer_expression "*(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" * (cast_expression "(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" ( (binary_expression "*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2" (pointer_expression "*(int *)(unaff_EDI + 0x354e9)" * (cast_expression "(int *)(unaff_EDI + 0x354e9)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x354e9)" ( (binary_expression "unaff_EDI + 0x354e9" identifier + number_literal) )))) + (binary_expression "(uint)bVar6 * 2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) })) })) (expression_statement "*pbVar4 = 0;" (assignment_expression "*pbVar4 = 0" (pointer_expression "*pbVar4" * identifier) = number_literal) ;) (expression_statement "iVar5 = FUN_000426e0();" (assignment_expression "iVar5 = FUN_000426e0()" identifier = (call_expression "FUN_000426e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }" { (expression_statement "uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];" (assignment_expression "uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1]" identifier = (subscript_expression "(*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1]" (parenthesized_expression "(*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))" ( (pointer_expression "*(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" * (cast_expression "(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_0003ec29 + unaff_EDI)" ( (binary_expression "&DAT_0003ec29 + unaff_EDI" (pointer_expression "&DAT_0003ec29" & identifier) + identifier) )))) )) [ number_literal ])) ;) (expression_statement "*(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);" (assignment_expression "*(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" (pointer_expression "*(undefined4 *)(unaff_EDI + 0x3ec31)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x3ec31)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x3ec31)" ( (binary_expression "unaff_EDI + 0x3ec31" identifier + number_literal) )))) = (pointer_expression "**(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" * (pointer_expression "*(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" * (cast_expression "(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_0003ec29 + unaff_EDI)" ( (binary_expression "&DAT_0003ec29 + unaff_EDI" (pointer_expression "&DAT_0003ec29" & identifier) + identifier) )))))) ;) (expression_statement "*(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;" (assignment_expression "*(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3" (pointer_expression "*(undefined4 *)(unaff_EDI + 0x3ec35)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x3ec35)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x3ec35)" ( (binary_expression "unaff_EDI + 0x3ec35" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte *)*puVar1 = bVar6;" (assignment_expression "*(byte *)*puVar1 = bVar6" (pointer_expression "*(byte *)*puVar1" * (cast_expression "(byte *)*puVar1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) = identifier) ;) (expression_statement "FUN_0002f430();" (call_expression "FUN_0002f430()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid s_aarch64_arch_extension(int ignored)\n\n{\n  undefined4 *puVar1;\n  byte bVar2;\n  byte *str;\n  undefined4 uVar3;\n  byte *pbVar4;\n  int iVar5;\n  byte bVar6;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);\n  str = (byte *)*puVar1;\n  bVar6 = *str;\n  pbVar4 = str;\n  if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }\n  *pbVar4 = 0;\n  iVar5 = aarch64_parse_features((char *)str,(aarch64_feature_set **)(&DAT_0003ec29 + unaff_EDI),1);\n  if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    demand_empty_rest_of_line();\n  }\n  return;\n}\n\n" comment (function_definition "void s_aarch64_arch_extension(int ignored)\n\n{\n  undefined4 *puVar1;\n  byte bVar2;\n  byte *str;\n  undefined4 uVar3;\n  byte *pbVar4;\n  int iVar5;\n  byte bVar6;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);\n  str = (byte *)*puVar1;\n  bVar6 = *str;\n  pbVar4 = str;\n  if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }\n  *pbVar4 = 0;\n  iVar5 = aarch64_parse_features((char *)str,(aarch64_feature_set **)(&DAT_0003ec29 + unaff_EDI),1);\n  if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    demand_empty_rest_of_line();\n  }\n  return;\n}" primitive_type (function_declarator "s_aarch64_arch_extension(int ignored)" identifier (parameter_list "(int ignored)" ( (parameter_declaration "int ignored" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  byte bVar2;\n  byte *str;\n  undefined4 uVar3;\n  byte *pbVar4;\n  int iVar5;\n  byte bVar6;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);\n  str = (byte *)*puVar1;\n  bVar6 = *str;\n  pbVar4 = str;\n  if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }\n  *pbVar4 = 0;\n  iVar5 = aarch64_parse_features((char *)str,(aarch64_feature_set **)(&DAT_0003ec29 + unaff_EDI),1);\n  if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    demand_empty_rest_of_line();\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte *str;" type_identifier (pointer_declarator "*str" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);" (assignment_expression "puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51)" identifier = (cast_expression "(undefined4 *)(unaff_EDI + 0x3ef51)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x3ef51)" ( (binary_expression "unaff_EDI + 0x3ef51" identifier + number_literal) )))) ;) (expression_statement "str = (byte *)*puVar1;" (assignment_expression "str = (byte *)*puVar1" identifier = (cast_expression "(byte *)*puVar1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "bVar6 = *str;" (assignment_expression "bVar6 = *str" identifier = (pointer_expression "*str" * identifier)) ;) (expression_statement "pbVar4 = str;" (assignment_expression "pbVar4 = str" identifier = identifier) ;) (if_statement "if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }" if (parenthesized_expression "(bVar6 != 0)" ( (binary_expression "bVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }" { (expression_statement "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);" (assignment_expression "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" identifier = (pointer_expression "*(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" * (cast_expression "(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" ( (binary_expression "*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2" (pointer_expression "*(int *)(unaff_EDI + 0x354e9)" * (cast_expression "(int *)(unaff_EDI + 0x354e9)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x354e9)" ( (binary_expression "unaff_EDI + 0x354e9" identifier + number_literal) )))) + (binary_expression "(uint)bVar6 * 2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) (while_statement "while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }" while (parenthesized_expression "((bVar2 & 0x40) == 0)" ( (binary_expression "(bVar2 & 0x40) == 0" (parenthesized_expression "(bVar2 & 0x40)" ( (binary_expression "bVar2 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }" { (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = pbVar4;" (assignment_expression "*puVar1 = pbVar4" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "bVar6 = *pbVar4;" (assignment_expression "bVar6 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if (bVar6 == 0) break;" if (parenthesized_expression "(bVar6 == 0)" ( (binary_expression "bVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);" (assignment_expression "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" identifier = (pointer_expression "*(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" * (cast_expression "(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" ( (binary_expression "*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2" (pointer_expression "*(int *)(unaff_EDI + 0x354e9)" * (cast_expression "(int *)(unaff_EDI + 0x354e9)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x354e9)" ( (binary_expression "unaff_EDI + 0x354e9" identifier + number_literal) )))) + (binary_expression "(uint)bVar6 * 2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) })) })) (expression_statement "*pbVar4 = 0;" (assignment_expression "*pbVar4 = 0" (pointer_expression "*pbVar4" * identifier) = number_literal) ;) (expression_statement "iVar5 = aarch64_parse_features((char *)str,(aarch64_feature_set **)(&DAT_0003ec29 + unaff_EDI),1);" (assignment_expression "iVar5 = aarch64_parse_features((char *)str,(aarch64_feature_set **)(&DAT_0003ec29 + unaff_EDI),1)" identifier = (call_expression "aarch64_parse_features((char *)str,(aarch64_feature_set **)(&DAT_0003ec29 + unaff_EDI),1)" identifier (argument_list "((char *)str,(aarch64_feature_set **)(&DAT_0003ec29 + unaff_EDI),1)" ( (cast_expression "(char *)str" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(aarch64_feature_set **)(&DAT_0003ec29 + unaff_EDI)" ( (type_descriptor "aarch64_feature_set **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_0003ec29 + unaff_EDI)" ( (binary_expression "&DAT_0003ec29 + unaff_EDI" (pointer_expression "&DAT_0003ec29" & identifier) + identifier) ))) , number_literal )))) ;) (if_statement "if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    demand_empty_rest_of_line();\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    demand_empty_rest_of_line();\n  }" { (expression_statement "uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];" (assignment_expression "uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1]" identifier = (subscript_expression "(*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1]" (parenthesized_expression "(*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))" ( (pointer_expression "*(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" * (cast_expression "(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_0003ec29 + unaff_EDI)" ( (binary_expression "&DAT_0003ec29 + unaff_EDI" (pointer_expression "&DAT_0003ec29" & identifier) + identifier) )))) )) [ number_literal ])) ;) (expression_statement "*(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);" (assignment_expression "*(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" (pointer_expression "*(undefined4 *)(unaff_EDI + 0x3ec31)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x3ec31)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x3ec31)" ( (binary_expression "unaff_EDI + 0x3ec31" identifier + number_literal) )))) = (pointer_expression "**(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" * (pointer_expression "*(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" * (cast_expression "(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_0003ec29 + unaff_EDI)" ( (binary_expression "&DAT_0003ec29 + unaff_EDI" (pointer_expression "&DAT_0003ec29" & identifier) + identifier) )))))) ;) (expression_statement "*(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;" (assignment_expression "*(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3" (pointer_expression "*(undefined4 *)(unaff_EDI + 0x3ec35)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x3ec35)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x3ec35)" ( (binary_expression "unaff_EDI + 0x3ec35" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte *)*puVar1 = bVar6;" (assignment_expression "*(byte *)*puVar1 = bVar6" (pointer_expression "*(byte *)*puVar1" * (cast_expression "(byte *)*puVar1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) = identifier) ;) (expression_statement "demand_empty_rest_of_line();" (call_expression "demand_empty_rest_of_line()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00042a60(void)\n\n{\n  undefined4 *puVar1;\n  byte bVar2;\n  undefined4 uVar3;\n  byte *pbVar4;\n  int iVar5;\n  byte bVar6;\n  int unaff_EDI;\n  \n  FUN_0001e7ad();\n  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);\n  pbVar4 = (byte *)*puVar1;\n  bVar6 = *pbVar4;\n  if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }\n  *pbVar4 = 0;\n  iVar5 = FUN_000426e0();\n  if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }\n  return;\n}\n\n" (function_definition "void FUN_00042a60(void)\n\n{\n  undefined4 *puVar1;\n  byte bVar2;\n  undefined4 uVar3;\n  byte *pbVar4;\n  int iVar5;\n  byte bVar6;\n  int unaff_EDI;\n  \n  FUN_0001e7ad();\n  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);\n  pbVar4 = (byte *)*puVar1;\n  bVar6 = *pbVar4;\n  if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }\n  *pbVar4 = 0;\n  iVar5 = FUN_000426e0();\n  if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00042a60(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 *puVar1;\n  byte bVar2;\n  undefined4 uVar3;\n  byte *pbVar4;\n  int iVar5;\n  byte bVar6;\n  int unaff_EDI;\n  \n  FUN_0001e7ad();\n  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);\n  pbVar4 = (byte *)*puVar1;\n  bVar6 = *pbVar4;\n  if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }\n  *pbVar4 = 0;\n  iVar5 = FUN_000426e0();\n  if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_0001e7ad();" (call_expression "FUN_0001e7ad()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);" (assignment_expression "puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51)" identifier = (cast_expression "(undefined4 *)(unaff_EDI + 0x3ef51)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x3ef51)" ( (binary_expression "unaff_EDI + 0x3ef51" identifier + number_literal) )))) ;) (expression_statement "pbVar4 = (byte *)*puVar1;" (assignment_expression "pbVar4 = (byte *)*puVar1" identifier = (cast_expression "(byte *)*puVar1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "bVar6 = *pbVar4;" (assignment_expression "bVar6 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }" if (parenthesized_expression "(bVar6 != 0)" ( (binary_expression "bVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }" { (expression_statement "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);" (assignment_expression "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" identifier = (pointer_expression "*(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" * (cast_expression "(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" ( (binary_expression "*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2" (pointer_expression "*(int *)(unaff_EDI + 0x354e9)" * (cast_expression "(int *)(unaff_EDI + 0x354e9)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x354e9)" ( (binary_expression "unaff_EDI + 0x354e9" identifier + number_literal) )))) + (binary_expression "(uint)bVar6 * 2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) (while_statement "while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }" while (parenthesized_expression "((bVar2 & 0x40) == 0)" ( (binary_expression "(bVar2 & 0x40) == 0" (parenthesized_expression "(bVar2 & 0x40)" ( (binary_expression "bVar2 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }" { (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = pbVar4;" (assignment_expression "*puVar1 = pbVar4" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "bVar6 = *pbVar4;" (assignment_expression "bVar6 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if (bVar6 == 0) break;" if (parenthesized_expression "(bVar6 == 0)" ( (binary_expression "bVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);" (assignment_expression "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" identifier = (pointer_expression "*(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" * (cast_expression "(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" ( (binary_expression "*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2" (pointer_expression "*(int *)(unaff_EDI + 0x354e9)" * (cast_expression "(int *)(unaff_EDI + 0x354e9)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x354e9)" ( (binary_expression "unaff_EDI + 0x354e9" identifier + number_literal) )))) + (binary_expression "(uint)bVar6 * 2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) })) })) (expression_statement "*pbVar4 = 0;" (assignment_expression "*pbVar4 = 0" (pointer_expression "*pbVar4" * identifier) = number_literal) ;) (expression_statement "iVar5 = FUN_000426e0();" (assignment_expression "iVar5 = FUN_000426e0()" identifier = (call_expression "FUN_000426e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }" { (expression_statement "uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];" (assignment_expression "uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1]" identifier = (subscript_expression "(*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1]" (parenthesized_expression "(*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))" ( (pointer_expression "*(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" * (cast_expression "(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_0003ec29 + unaff_EDI)" ( (binary_expression "&DAT_0003ec29 + unaff_EDI" (pointer_expression "&DAT_0003ec29" & identifier) + identifier) )))) )) [ number_literal ])) ;) (expression_statement "*(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);" (assignment_expression "*(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" (pointer_expression "*(undefined4 *)(unaff_EDI + 0x3ec31)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x3ec31)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x3ec31)" ( (binary_expression "unaff_EDI + 0x3ec31" identifier + number_literal) )))) = (pointer_expression "**(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" * (pointer_expression "*(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" * (cast_expression "(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_0003ec29 + unaff_EDI)" ( (binary_expression "&DAT_0003ec29 + unaff_EDI" (pointer_expression "&DAT_0003ec29" & identifier) + identifier) )))))) ;) (expression_statement "*(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;" (assignment_expression "*(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3" (pointer_expression "*(undefined4 *)(unaff_EDI + 0x3ec35)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x3ec35)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x3ec35)" ( (binary_expression "unaff_EDI + 0x3ec35" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte *)*puVar1 = bVar6;" (assignment_expression "*(byte *)*puVar1 = bVar6" (pointer_expression "*(byte *)*puVar1" * (cast_expression "(byte *)*puVar1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) = identifier) ;) (expression_statement "FUN_0002f430();" (call_expression "FUN_0002f430()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) ))))) ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) )) [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + 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 *)) ) (pointer_expression * IDENT))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00042a60(void)\n\n{\n  undefined4 *puVar1;\n  byte bVar2;\n  undefined4 uVar3;\n  byte *pbVar4;\n  int iVar5;\n  byte bVar6;\n  int unaff_EDI;\n  \n  FUN_0001e7ad();\n  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);\n  pbVar4 = (byte *)*puVar1;\n  bVar6 = *pbVar4;\n  if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }\n  *pbVar4 = 0;\n  iVar5 = FUN_000426e0();\n  if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00042a60(void)" (identifier "FUN_00042a60") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  byte bVar2;\n  undefined4 uVar3;\n  byte *pbVar4;\n  int iVar5;\n  byte bVar6;\n  int unaff_EDI;\n  \n  FUN_0001e7ad();\n  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);\n  pbVar4 = (byte *)*puVar1;\n  bVar6 = *pbVar4;\n  if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }\n  *pbVar4 = 0;\n  iVar5 = FUN_000426e0();\n  if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_0001e7ad();" (call_expression "FUN_0001e7ad()" (identifier "FUN_0001e7ad") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);" (assignment_expression "puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(unaff_EDI + 0x3ef51)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x3ef51)" (( "(") (binary_expression "unaff_EDI + 0x3ef51" (identifier "unaff_EDI") (+ "+") (number_literal "0x3ef51")) () ")")))) (; ";")) (expression_statement "pbVar4 = (byte *)*puVar1;" (assignment_expression "pbVar4 = (byte *)*puVar1" (identifier "pbVar4") (= "=") (cast_expression "(byte *)*puVar1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (expression_statement "bVar6 = *pbVar4;" (assignment_expression "bVar6 = *pbVar4" (identifier "bVar6") (= "=") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4"))) (; ";")) (if_statement "if (bVar6 != 0) {\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }" (if "if") (parenthesized_expression "(bVar6 != 0)" (( "(") (binary_expression "bVar6 != 0" (identifier "bVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }\n  }" ({ "{") (expression_statement "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);" (assignment_expression "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" (* "*") (cast_expression "(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" (( "(") (binary_expression "*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2" (pointer_expression "*(int *)(unaff_EDI + 0x354e9)" (* "*") (cast_expression "(int *)(unaff_EDI + 0x354e9)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x354e9)" (( "(") (binary_expression "unaff_EDI + 0x354e9" (identifier "unaff_EDI") (+ "+") (number_literal "0x354e9")) () ")")))) (+ "+") (binary_expression "(uint)bVar6 * 2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "2"))) () ")"))))) (; ";")) (while_statement "while ((bVar2 & 0x40) == 0) {\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }" (while "while") (parenthesized_expression "((bVar2 & 0x40) == 0)" (( "(") (binary_expression "(bVar2 & 0x40) == 0" (parenthesized_expression "(bVar2 & 0x40)" (( "(") (binary_expression "bVar2 & 0x40" (identifier "bVar2") (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      pbVar4 = pbVar4 + 1;\n      *puVar1 = pbVar4;\n      bVar6 = *pbVar4;\n      if (bVar6 == 0) break;\n      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);\n    }" ({ "{") (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar1 = pbVar4;" (assignment_expression "*puVar1 = pbVar4" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "pbVar4")) (; ";")) (expression_statement "bVar6 = *pbVar4;" (assignment_expression "bVar6 = *pbVar4" (identifier "bVar6") (= "=") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4"))) (; ";")) (if_statement "if (bVar6 == 0) break;" (if "if") (parenthesized_expression "(bVar6 == 0)" (( "(") (binary_expression "bVar6 == 0" (identifier "bVar6") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);" (assignment_expression "bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" (* "*") (cast_expression "(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2)" (( "(") (binary_expression "*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2" (pointer_expression "*(int *)(unaff_EDI + 0x354e9)" (* "*") (cast_expression "(int *)(unaff_EDI + 0x354e9)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x354e9)" (( "(") (binary_expression "unaff_EDI + 0x354e9" (identifier "unaff_EDI") (+ "+") (number_literal "0x354e9")) () ")")))) (+ "+") (binary_expression "(uint)bVar6 * 2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "2"))) () ")"))))) (; ";")) (} "}"))) (} "}"))) (expression_statement "*pbVar4 = 0;" (assignment_expression "*pbVar4 = 0" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = FUN_000426e0();" (assignment_expression "iVar5 = FUN_000426e0()" (identifier "iVar5") (= "=") (call_expression "FUN_000426e0()" (identifier "FUN_000426e0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];\n    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);\n    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;\n    *(byte *)*puVar1 = bVar6;\n    FUN_0002f430();\n  }" ({ "{") (expression_statement "uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];" (assignment_expression "uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1]" (identifier "uVar3") (= "=") (subscript_expression "(*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1]" (parenthesized_expression "(*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))" (( "(") (pointer_expression "*(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" (* "*") (cast_expression "(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&DAT_0003ec29 + unaff_EDI)" (( "(") (binary_expression "&DAT_0003ec29 + unaff_EDI" (pointer_expression "&DAT_0003ec29" (& "&") (identifier "DAT_0003ec29")) (+ "+") (identifier "unaff_EDI")) () ")")))) () ")")) ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);" (assignment_expression "*(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" (pointer_expression "*(undefined4 *)(unaff_EDI + 0x3ec31)" (* "*") (cast_expression "(undefined4 *)(unaff_EDI + 0x3ec31)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x3ec31)" (( "(") (binary_expression "unaff_EDI + 0x3ec31" (identifier "unaff_EDI") (+ "+") (number_literal "0x3ec31")) () ")")))) (= "=") (pointer_expression "**(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" (* "*") (pointer_expression "*(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" (* "*") (cast_expression "(undefined4 **)(&DAT_0003ec29 + unaff_EDI)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&DAT_0003ec29 + unaff_EDI)" (( "(") (binary_expression "&DAT_0003ec29 + unaff_EDI" (pointer_expression "&DAT_0003ec29" (& "&") (identifier "DAT_0003ec29")) (+ "+") (identifier "unaff_EDI")) () ")")))))) (; ";")) (expression_statement "*(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;" (assignment_expression "*(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3" (pointer_expression "*(undefined4 *)(unaff_EDI + 0x3ec35)" (* "*") (cast_expression "(undefined4 *)(unaff_EDI + 0x3ec35)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x3ec35)" (( "(") (binary_expression "unaff_EDI + 0x3ec35" (identifier "unaff_EDI") (+ "+") (number_literal "0x3ec35")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(byte *)*puVar1 = bVar6;" (assignment_expression "*(byte *)*puVar1 = bVar6" (pointer_expression "*(byte *)*puVar1" (* "*") (cast_expression "(byte *)*puVar1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (= "=") (identifier "bVar6")) (; ";")) (expression_statement "FUN_0002f430();" (call_expression "FUN_0002f430()" (identifier "FUN_0002f430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(int ignored)

{
  type_1 *puVar1;
  type_2 var_4;
  type_2 *str;
  type_1 uVar3;
  type_2 *var_5;
  int var_7;
  type_2 var_3;
  int var_2;
  
  var_1();
  puVar1 = (type_1 *)(var_2 + 0x3ef51);
  str = (type_2 *)*puVar1;
  var_3 = *str;
  var_5 = str;
  if (var_3 != 0) {
    var_4 = *(type_2 *)(*(int *)(var_2 + 0x354e9) + (type_3)var_3 * 2);
    while ((var_4 & 0x40) == 0) {
      var_5 = var_5 + 1;
      *puVar1 = var_5;
      var_3 = *var_5;
      if (var_3 == 0) break;
      var_4 = *(type_2 *)(*(int *)(var_2 + 0x354e9) + (type_3)var_3 * 2);
    }
  }
  *var_5 = 0;
  var_7 = var_6((char *)str,(type_4 **)(&DAT_0003ec29 + var_2),1);
  if (var_7 != 0) {
    uVar3 = (*(type_1 **)(&DAT_0003ec29 + var_2))[1];
    *(type_1 *)(var_2 + 0x3ec31) = **(type_1 **)(&DAT_0003ec29 + var_2);
    *(type_1 *)(var_2 + 0x3ec35) = uVar3;
    *(type_2 *)*puVar1 = var_3;
    var_8();
  }
  return;
}


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

void MASKED(void)

{
  undefined4 *puVar1;
  byte bVar2;
  undefined4 uVar3;
  byte *pbVar4;
  int iVar5;
  byte bVar6;
  int unaff_EDI;
  
  FUN_0001e7ad();
  puVar1 = (undefined4 *)(unaff_EDI + 0x3ef51);
  pbVar4 = (byte *)*puVar1;
  bVar6 = *pbVar4;
  if (bVar6 != 0) {
    bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);
    while ((bVar2 & 0x40) == 0) {
      pbVar4 = pbVar4 + 1;
      *puVar1 = pbVar4;
      bVar6 = *pbVar4;
      if (bVar6 == 0) break;
      bVar2 = *(byte *)(*(int *)(unaff_EDI + 0x354e9) + (uint)bVar6 * 2);
    }
  }
  *pbVar4 = 0;
  iVar5 = FUN_000426e0();
  if (iVar5 != 0) {
    uVar3 = (*(undefined4 **)(&DAT_0003ec29 + unaff_EDI))[1];
    *(undefined4 *)(unaff_EDI + 0x3ec31) = **(undefined4 **)(&DAT_0003ec29 + unaff_EDI);
    *(undefined4 *)(unaff_EDI + 0x3ec35) = uVar3;
    *(byte *)*puVar1 = bVar6;
    FUN_0002f430();
  }
  return;
}

