
/* check_exception_spec(lsda_header_info*, std::type_info const*, void*, long) */

undefined8
check_exception_spec(lsda_header_info *param_1,type_info *param_2,void *param_3,long param_4)

{
  byte bVar1;
  byte bVar2;
  type_info *ptVar3;
  undefined8 uVar4;
  byte bVar5;
  byte *pbVar6;
  ulong uVar7;
  byte *pbVar8;
  void *local_30 [2];
  
  pbVar6 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));
  local_30[0] = param_3;
  while( true ) {
    uVar7 = 0;
    bVar5 = 0;
    pbVar8 = pbVar6;
    do {
      pbVar6 = pbVar8 + 1;
      bVar1 = *pbVar8;
      bVar2 = bVar5 & 0x3f;
      bVar5 = bVar5 + 7;
      uVar7 = uVar7 | (ulong)(bVar1 & 0x7f) << bVar2;
      pbVar8 = pbVar6;
    } while ((char)bVar1 < '\0');
    if (uVar7 == 0) break;
    ptVar3 = (type_info *)get_ttype_entry(param_1,uVar7);
    uVar4 = get_adjusted_ptr(ptVar3,param_2,local_30);
    if ((char)uVar4 != '\0') {
      return uVar4;
    }
  }
  return 0;
}



undefined8 FUN_00337990(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)

{
  byte bVar1;
  byte bVar2;
  undefined8 uVar3;
  byte bVar4;
  byte *pbVar5;
  ulong uVar6;
  byte *pbVar7;
  undefined8 local_30 [2];
  
  pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));
  local_30[0] = param_3;
  while( true ) {
    uVar6 = 0;
    bVar4 = 0;
    pbVar7 = pbVar5;
    do {
      pbVar5 = pbVar7 + 1;
      bVar1 = *pbVar7;
      bVar2 = bVar4 & 0x3f;
      bVar4 = bVar4 + 7;
      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;
      pbVar7 = pbVar5;
    } while ((char)bVar1 < '\0');
    if (uVar6 == 0) break;
    uVar3 = FUN_00337900(param_1);
    uVar3 = FUN_00337750(uVar3,param_2,local_30);
    if ((char)uVar3 != '\0') {
      return uVar3;
    }
  }
  return 0;
}


PUSH R13
NOT RCX
PUSH R12
MOV R12,RSI
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x18
ADD RCX,qword ptr [RDI + 0x18]
MOV qword ptr [RSP + 0x8],RDX
MOV R13,RCX
LEA RBP,[RSP + 0x8]
NOP dword ptr [RAX]
XOR ESI,ESI
XOR ECX,ECX
NOP dword ptr [RAX]
ADD R13,0x1
MOVZX EDX,byte ptr [R13 + -0x1]
MOV RAX,RDX
AND EAX,0x7f
SHL RAX,CL
ADD ECX,0x7
OR RSI,RAX
TEST DL,DL
JS 0x003379c0
TEST RSI,RSI
JZ 0x00337a06
MOV RDI,RBX
CALL 0x00337900
MOV RDX,RBP
MOV RSI,R12
MOV RDI,RAX
CALL 0x00337750
TEST AL,AL
JZ 0x003379b8
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
RET
ADD RSP,0x18
XOR EAX,EAX
POP RBX
POP RBP
POP R12
POP R13
RET
(translation_unit "undefined8 FUN_00337990(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)\n\n{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  byte bVar4;\n  byte *pbVar5;\n  ulong uVar6;\n  byte *pbVar7;\n  undefined8 local_30 [2];\n  \n  pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));\n  local_30[0] = param_3;\n  while( true ) {\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00337990(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)\n\n{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  byte bVar4;\n  byte *pbVar5;\n  ulong uVar6;\n  byte *pbVar7;\n  undefined8 local_30 [2];\n  \n  pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));\n  local_30[0] = param_3;\n  while( true ) {\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00337990(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "ulong param_4" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  byte bVar4;\n  byte *pbVar5;\n  ulong uVar6;\n  byte *pbVar7;\n  undefined8 local_30 [2];\n  \n  pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));\n  local_30[0] = param_3;\n  while( true ) {\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "undefined8 local_30 [2];" type_identifier (array_declarator "local_30 [2]" identifier [ number_literal ]) ;) (expression_statement "pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));" (assignment_expression "pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18))" identifier = (cast_expression "(byte *)(~param_4 + *(long *)(param_1 + 0x18))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(~param_4 + *(long *)(param_1 + 0x18))" ( (binary_expression "~param_4 + *(long *)(param_1 + 0x18)" (unary_expression "~param_4" ~ identifier) + (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )))) ;) (expression_statement "local_30[0] = param_3;" (assignment_expression "local_30[0] = param_3" (subscript_expression "local_30[0]" identifier [ number_literal ]) = identifier) ;) (while_statement "while( true ) {\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "pbVar7 = pbVar5;" (assignment_expression "pbVar7 = pbVar5" identifier = identifier) ;) (do_statement "do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');" do (compound_statement "{\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    }" { (expression_statement "pbVar5 = pbVar7 + 1;" (assignment_expression "pbVar5 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar7;" (assignment_expression "bVar1 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) (expression_statement "bVar2 = bVar4 & 0x3f;" (assignment_expression "bVar2 = bVar4 & 0x3f" identifier = (binary_expression "bVar4 & 0x3f" identifier & number_literal)) ;) (expression_statement "bVar4 = bVar4 + 7;" (assignment_expression "bVar4 = bVar4 + 7" identifier = (binary_expression "bVar4 + 7" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;" (assignment_expression "uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2" identifier = (binary_expression "uVar6 | (ulong)(bVar1 & 0x7f) << bVar2" identifier | (binary_expression "(ulong)(bVar1 & 0x7f) << bVar2" (call_expression "(ulong)(bVar1 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(bVar1 & 0x7f)" ( (binary_expression "bVar1 & 0x7f" identifier & number_literal) ))) << identifier))) ;) (expression_statement "pbVar7 = pbVar5;" (assignment_expression "pbVar7 = pbVar5" identifier = identifier) ;) }) while (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if (uVar6 == 0) break;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = FUN_00337900(param_1);" (assignment_expression "uVar3 = FUN_00337900(param_1)" identifier = (call_expression "FUN_00337900(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar3 = FUN_00337750(uVar3,param_2,local_30);" (assignment_expression "uVar3 = FUN_00337750(uVar3,param_2,local_30)" identifier = (call_expression "FUN_00337750(uVar3,param_2,local_30)" identifier (argument_list "(uVar3,param_2,local_30)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((char)uVar3 != '\0') {\n      return uVar3;\n    }" if (parenthesized_expression "((char)uVar3 != '\0')" ( (binary_expression "(char)uVar3 != '\0'" (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return uVar3;\n    }" { (return_statement "return uVar3;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* check_exception_spec(lsda_header_info*, std::type_info const*, void*, long) */\n\nundefined8\ncheck_exception_spec(lsda_header_info *param_1,type_info *param_2,void *param_3,long param_4)\n\n{\n  byte bVar1;\n  byte bVar2;\n  type_info *ptVar3;\n  undefined8 uVar4;\n  byte bVar5;\n  byte *pbVar6;\n  ulong uVar7;\n  byte *pbVar8;\n  void *local_30 [2];\n  \n  pbVar6 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));\n  local_30[0] = param_3;\n  while( true ) {\n    uVar7 = 0;\n    bVar5 = 0;\n    pbVar8 = pbVar6;\n    do {\n      pbVar6 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar2 = bVar5 & 0x3f;\n      bVar5 = bVar5 + 7;\n      uVar7 = uVar7 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar8 = pbVar6;\n    } while ((char)bVar1 < '\0');\n    if (uVar7 == 0) break;\n    ptVar3 = (type_info *)get_ttype_entry(param_1,uVar7);\n    uVar4 = get_adjusted_ptr(ptVar3,param_2,local_30);\n    if ((char)uVar4 != '\0') {\n      return uVar4;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined8\ncheck_exception_spec(lsda_header_info *param_1,type_info *param_2,void *param_3,long param_4)\n\n{\n  byte bVar1;\n  byte bVar2;\n  type_info *ptVar3;\n  undefined8 uVar4;\n  byte bVar5;\n  byte *pbVar6;\n  ulong uVar7;\n  byte *pbVar8;\n  void *local_30 [2];\n  \n  pbVar6 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));\n  local_30[0] = param_3;\n  while( true ) {\n    uVar7 = 0;\n    bVar5 = 0;\n    pbVar8 = pbVar6;\n    do {\n      pbVar6 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar2 = bVar5 & 0x3f;\n      bVar5 = bVar5 + 7;\n      uVar7 = uVar7 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar8 = pbVar6;\n    } while ((char)bVar1 < '\0');\n    if (uVar7 == 0) break;\n    ptVar3 = (type_info *)get_ttype_entry(param_1,uVar7);\n    uVar4 = get_adjusted_ptr(ptVar3,param_2,local_30);\n    if ((char)uVar4 != '\0') {\n      return uVar4;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "check_exception_spec(lsda_header_info *param_1,type_info *param_2,void *param_3,long param_4)" identifier (parameter_list "(lsda_header_info *param_1,type_info *param_2,void *param_3,long param_4)" ( (parameter_declaration "lsda_header_info *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "type_info *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  type_info *ptVar3;\n  undefined8 uVar4;\n  byte bVar5;\n  byte *pbVar6;\n  ulong uVar7;\n  byte *pbVar8;\n  void *local_30 [2];\n  \n  pbVar6 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));\n  local_30[0] = param_3;\n  while( true ) {\n    uVar7 = 0;\n    bVar5 = 0;\n    pbVar8 = pbVar6;\n    do {\n      pbVar6 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar2 = bVar5 & 0x3f;\n      bVar5 = bVar5 + 7;\n      uVar7 = uVar7 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar8 = pbVar6;\n    } while ((char)bVar1 < '\0');\n    if (uVar7 == 0) break;\n    ptVar3 = (type_info *)get_ttype_entry(param_1,uVar7);\n    uVar4 = get_adjusted_ptr(ptVar3,param_2,local_30);\n    if ((char)uVar4 != '\0') {\n      return uVar4;\n    }\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "type_info *ptVar3;" type_identifier (pointer_declarator "*ptVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "void *local_30 [2];" primitive_type (pointer_declarator "*local_30 [2]" * (array_declarator "local_30 [2]" identifier [ number_literal ])) ;) (expression_statement "pbVar6 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));" (assignment_expression "pbVar6 = (byte *)(~param_4 + *(long *)(param_1 + 0x18))" identifier = (cast_expression "(byte *)(~param_4 + *(long *)(param_1 + 0x18))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(~param_4 + *(long *)(param_1 + 0x18))" ( (binary_expression "~param_4 + *(long *)(param_1 + 0x18)" (unary_expression "~param_4" ~ identifier) + (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )))) ;) (expression_statement "local_30[0] = param_3;" (assignment_expression "local_30[0] = param_3" (subscript_expression "local_30[0]" identifier [ number_literal ]) = identifier) ;) (while_statement "while( true ) {\n    uVar7 = 0;\n    bVar5 = 0;\n    pbVar8 = pbVar6;\n    do {\n      pbVar6 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar2 = bVar5 & 0x3f;\n      bVar5 = bVar5 + 7;\n      uVar7 = uVar7 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar8 = pbVar6;\n    } while ((char)bVar1 < '\0');\n    if (uVar7 == 0) break;\n    ptVar3 = (type_info *)get_ttype_entry(param_1,uVar7);\n    uVar4 = get_adjusted_ptr(ptVar3,param_2,local_30);\n    if ((char)uVar4 != '\0') {\n      return uVar4;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar7 = 0;\n    bVar5 = 0;\n    pbVar8 = pbVar6;\n    do {\n      pbVar6 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar2 = bVar5 & 0x3f;\n      bVar5 = bVar5 + 7;\n      uVar7 = uVar7 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar8 = pbVar6;\n    } while ((char)bVar1 < '\0');\n    if (uVar7 == 0) break;\n    ptVar3 = (type_info *)get_ttype_entry(param_1,uVar7);\n    uVar4 = get_adjusted_ptr(ptVar3,param_2,local_30);\n    if ((char)uVar4 != '\0') {\n      return uVar4;\n    }\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "pbVar8 = pbVar6;" (assignment_expression "pbVar8 = pbVar6" identifier = identifier) ;) (do_statement "do {\n      pbVar6 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar2 = bVar5 & 0x3f;\n      bVar5 = bVar5 + 7;\n      uVar7 = uVar7 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar8 = pbVar6;\n    } while ((char)bVar1 < '\0');" do (compound_statement "{\n      pbVar6 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar2 = bVar5 & 0x3f;\n      bVar5 = bVar5 + 7;\n      uVar7 = uVar7 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar8 = pbVar6;\n    }" { (expression_statement "pbVar6 = pbVar8 + 1;" (assignment_expression "pbVar6 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "bVar2 = bVar5 & 0x3f;" (assignment_expression "bVar2 = bVar5 & 0x3f" identifier = (binary_expression "bVar5 & 0x3f" identifier & number_literal)) ;) (expression_statement "bVar5 = bVar5 + 7;" (assignment_expression "bVar5 = bVar5 + 7" identifier = (binary_expression "bVar5 + 7" identifier + number_literal)) ;) (expression_statement "uVar7 = uVar7 | (ulong)(bVar1 & 0x7f) << bVar2;" (assignment_expression "uVar7 = uVar7 | (ulong)(bVar1 & 0x7f) << bVar2" identifier = (binary_expression "uVar7 | (ulong)(bVar1 & 0x7f) << bVar2" identifier | (binary_expression "(ulong)(bVar1 & 0x7f) << bVar2" (call_expression "(ulong)(bVar1 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(bVar1 & 0x7f)" ( (binary_expression "bVar1 & 0x7f" identifier & number_literal) ))) << identifier))) ;) (expression_statement "pbVar8 = pbVar6;" (assignment_expression "pbVar8 = pbVar6" identifier = identifier) ;) }) while (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if (uVar7 == 0) break;" if (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "ptVar3 = (type_info *)get_ttype_entry(param_1,uVar7);" (assignment_expression "ptVar3 = (type_info *)get_ttype_entry(param_1,uVar7)" identifier = (cast_expression "(type_info *)get_ttype_entry(param_1,uVar7)" ( (type_descriptor "type_info *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "get_ttype_entry(param_1,uVar7)" identifier (argument_list "(param_1,uVar7)" ( identifier , identifier ))))) ;) (expression_statement "uVar4 = get_adjusted_ptr(ptVar3,param_2,local_30);" (assignment_expression "uVar4 = get_adjusted_ptr(ptVar3,param_2,local_30)" identifier = (call_expression "get_adjusted_ptr(ptVar3,param_2,local_30)" identifier (argument_list "(ptVar3,param_2,local_30)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((char)uVar4 != '\0') {\n      return uVar4;\n    }" if (parenthesized_expression "((char)uVar4 != '\0')" ( (binary_expression "(char)uVar4 != '\0'" (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return uVar4;\n    }" { (return_statement "return uVar4;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 FUN_00337990(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)\n\n{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  byte bVar4;\n  byte *pbVar5;\n  ulong uVar6;\n  byte *pbVar7;\n  undefined8 local_30 [2];\n  \n  pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));\n  local_30[0] = param_3;\n  while( true ) {\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00337990(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)\n\n{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  byte bVar4;\n  byte *pbVar5;\n  ulong uVar6;\n  byte *pbVar7;\n  undefined8 local_30 [2];\n  \n  pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));\n  local_30[0] = param_3;\n  while( true ) {\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00337990(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "ulong param_4" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  byte bVar4;\n  byte *pbVar5;\n  ulong uVar6;\n  byte *pbVar7;\n  undefined8 local_30 [2];\n  \n  pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));\n  local_30[0] = param_3;\n  while( true ) {\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "undefined8 local_30 [2];" type_identifier (array_declarator "local_30 [2]" identifier [ number_literal ]) ;) (expression_statement "pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));" (assignment_expression "pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18))" identifier = (cast_expression "(byte *)(~param_4 + *(long *)(param_1 + 0x18))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(~param_4 + *(long *)(param_1 + 0x18))" ( (binary_expression "~param_4 + *(long *)(param_1 + 0x18)" (unary_expression "~param_4" ~ identifier) + (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )))) ;) (expression_statement "local_30[0] = param_3;" (assignment_expression "local_30[0] = param_3" (subscript_expression "local_30[0]" identifier [ number_literal ]) = identifier) ;) (while_statement "while( true ) {\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "pbVar7 = pbVar5;" (assignment_expression "pbVar7 = pbVar5" identifier = identifier) ;) (do_statement "do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');" do (compound_statement "{\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    }" { (expression_statement "pbVar5 = pbVar7 + 1;" (assignment_expression "pbVar5 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar7;" (assignment_expression "bVar1 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) (expression_statement "bVar2 = bVar4 & 0x3f;" (assignment_expression "bVar2 = bVar4 & 0x3f" identifier = (binary_expression "bVar4 & 0x3f" identifier & number_literal)) ;) (expression_statement "bVar4 = bVar4 + 7;" (assignment_expression "bVar4 = bVar4 + 7" identifier = (binary_expression "bVar4 + 7" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;" (assignment_expression "uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2" identifier = (binary_expression "uVar6 | (ulong)(bVar1 & 0x7f) << bVar2" identifier | (binary_expression "(ulong)(bVar1 & 0x7f) << bVar2" (call_expression "(ulong)(bVar1 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(bVar1 & 0x7f)" ( (binary_expression "bVar1 & 0x7f" identifier & number_literal) ))) << identifier))) ;) (expression_statement "pbVar7 = pbVar5;" (assignment_expression "pbVar7 = pbVar5" identifier = identifier) ;) }) while (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if (uVar6 == 0) break;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = FUN_00337900(param_1);" (assignment_expression "uVar3 = FUN_00337900(param_1)" identifier = (call_expression "FUN_00337900(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar3 = FUN_00337750(uVar3,param_2,local_30);" (assignment_expression "uVar3 = FUN_00337750(uVar3,param_2,local_30)" identifier = (call_expression "FUN_00337750(uVar3,param_2,local_30)" identifier (argument_list "(uVar3,param_2,local_30)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((char)uVar3 != '\0') {\n      return uVar3;\n    }" if (parenthesized_expression "((char)uVar3 != '\0')" ( (binary_expression "(char)uVar3 != '\0'" (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return uVar3;\n    }" { (return_statement "return uVar3;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (unary_expression ~ IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT & LIT) ))) << IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_00337990(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)\n\n{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  byte bVar4;\n  byte *pbVar5;\n  ulong uVar6;\n  byte *pbVar7;\n  undefined8 local_30 [2];\n  \n  pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));\n  local_30[0] = param_3;\n  while( true ) {\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_00337990(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)" (identifier "FUN_00337990") (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "ulong param_4" (type_identifier "ulong") (identifier "param_4")) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  undefined8 uVar3;\n  byte bVar4;\n  byte *pbVar5;\n  ulong uVar6;\n  byte *pbVar7;\n  undefined8 local_30 [2];\n  \n  pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));\n  local_30[0] = param_3;\n  while( true ) {\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "byte bVar4;" (type_identifier "byte") (identifier "bVar4") (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "ulong uVar6;" (type_identifier "ulong") (identifier "uVar6") (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "undefined8 local_30 [2];" (type_identifier "undefined8") (array_declarator "local_30 [2]" (identifier "local_30") ([ "[") (number_literal "2") (] "]")) (; ";")) (expression_statement "pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));" (assignment_expression "pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18))" (identifier "pbVar5") (= "=") (cast_expression "(byte *)(~param_4 + *(long *)(param_1 + 0x18))" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(~param_4 + *(long *)(param_1 + 0x18))" (( "(") (binary_expression "~param_4 + *(long *)(param_1 + 0x18)" (unary_expression "~param_4" (~ "~") (identifier "param_4")) (+ "+") (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) () ")")))) (; ";")) (expression_statement "local_30[0] = param_3;" (assignment_expression "local_30[0] = param_3" (subscript_expression "local_30[0]" (identifier "local_30") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_3")) (; ";")) (while_statement "while( true ) {\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    uVar6 = 0;\n    bVar4 = 0;\n    pbVar7 = pbVar5;\n    do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');\n    if (uVar6 == 0) break;\n    uVar3 = FUN_00337900(param_1);\n    uVar3 = FUN_00337750(uVar3,param_2,local_30);\n    if ((char)uVar3 != '\0') {\n      return uVar3;\n    }\n  }" ({ "{") (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" (identifier "bVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar7 = pbVar5;" (assignment_expression "pbVar7 = pbVar5" (identifier "pbVar7") (= "=") (identifier "pbVar5")) (; ";")) (do_statement "do {\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    } while ((char)bVar1 < '\0');" (do "do") (compound_statement "{\n      pbVar5 = pbVar7 + 1;\n      bVar1 = *pbVar7;\n      bVar2 = bVar4 & 0x3f;\n      bVar4 = bVar4 + 7;\n      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;\n      pbVar7 = pbVar5;\n    }" ({ "{") (expression_statement "pbVar5 = pbVar7 + 1;" (assignment_expression "pbVar5 = pbVar7 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar1 = *pbVar7;" (assignment_expression "bVar1 = *pbVar7" (identifier "bVar1") (= "=") (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7"))) (; ";")) (expression_statement "bVar2 = bVar4 & 0x3f;" (assignment_expression "bVar2 = bVar4 & 0x3f" (identifier "bVar2") (= "=") (binary_expression "bVar4 & 0x3f" (identifier "bVar4") (& "&") (number_literal "0x3f"))) (; ";")) (expression_statement "bVar4 = bVar4 + 7;" (assignment_expression "bVar4 = bVar4 + 7" (identifier "bVar4") (= "=") (binary_expression "bVar4 + 7" (identifier "bVar4") (+ "+") (number_literal "7"))) (; ";")) (expression_statement "uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;" (assignment_expression "uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2" (identifier "uVar6") (= "=") (binary_expression "uVar6 | (ulong)(bVar1 & 0x7f) << bVar2" (identifier "uVar6") (| "|") (binary_expression "(ulong)(bVar1 & 0x7f) << bVar2" (call_expression "(ulong)(bVar1 & 0x7f)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(bVar1 & 0x7f)" (( "(") (binary_expression "bVar1 & 0x7f" (identifier "bVar1") (& "&") (number_literal "0x7f")) () ")"))) (<< "<<") (identifier "bVar2")))) (; ";")) (expression_statement "pbVar7 = pbVar5;" (assignment_expression "pbVar7 = pbVar5" (identifier "pbVar7") (= "=") (identifier "pbVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((char)bVar1 < '\0')" (( "(") (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar1")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (if_statement "if (uVar6 == 0) break;" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar3 = FUN_00337900(param_1);" (assignment_expression "uVar3 = FUN_00337900(param_1)" (identifier "uVar3") (= "=") (call_expression "FUN_00337900(param_1)" (identifier "FUN_00337900") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar3 = FUN_00337750(uVar3,param_2,local_30);" (assignment_expression "uVar3 = FUN_00337750(uVar3,param_2,local_30)" (identifier "uVar3") (= "=") (call_expression "FUN_00337750(uVar3,param_2,local_30)" (identifier "FUN_00337750") (argument_list "(uVar3,param_2,local_30)" (( "(") (identifier "uVar3") (, ",") (identifier "param_2") (, ",") (identifier "local_30") () ")")))) (; ";")) (if_statement "if ((char)uVar3 != '\0') {\n      return uVar3;\n    }" (if "if") (parenthesized_expression "((char)uVar3 != '\0')" (( "(") (binary_expression "(char)uVar3 != '\0'" (cast_expression "(char)uVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar3")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return uVar3;\n    }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* check_exception_spec(lsda_header_info*, std::type_info const*, void*, long) */

type_1
function_1(type_2 *var_1,type_3 *param_2,void *param_3,long param_4)

{
  type_4 var_5;
  type_4 var_6;
  type_3 *ptVar3;
  type_1 uVar4;
  type_4 var_3;
  type_4 *pbVar6;
  type_5 var_4;
  type_4 *var_2;
  void *local_30 [2];
  
  pbVar6 = (type_4 *)(~param_4 + *(long *)(var_1 + 0x18));
  local_30[0] = param_3;
  while( true ) {
    var_4 = 0;
    var_3 = 0;
    var_2 = pbVar6;
    do {
      pbVar6 = var_2 + 1;
      var_5 = *var_2;
      var_6 = var_3 & 0x3f;
      var_3 = var_3 + 7;
      var_4 = var_4 | (type_5)(var_5 & 0x7f) << var_6;
      var_2 = pbVar6;
    } while ((char)var_5 < '\0');
    if (var_4 == 0) break;
    ptVar3 = (type_3 *)var_7(var_1,var_4);
    uVar4 = var_8(ptVar3,param_2,local_30);
    if ((char)uVar4 != '\0') {
      return uVar4;
    }
  }
  return 0;
}


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

undefined8 MASKED(long param_1,undefined8 param_2,undefined8 param_3,ulong param_4)

{
  byte bVar1;
  byte bVar2;
  undefined8 uVar3;
  byte bVar4;
  byte *pbVar5;
  ulong uVar6;
  byte *pbVar7;
  undefined8 local_30 [2];
  
  pbVar5 = (byte *)(~param_4 + *(long *)(param_1 + 0x18));
  local_30[0] = param_3;
  while( true ) {
    uVar6 = 0;
    bVar4 = 0;
    pbVar7 = pbVar5;
    do {
      pbVar5 = pbVar7 + 1;
      bVar1 = *pbVar7;
      bVar2 = bVar4 & 0x3f;
      bVar4 = bVar4 + 7;
      uVar6 = uVar6 | (ulong)(bVar1 & 0x7f) << bVar2;
      pbVar7 = pbVar5;
    } while ((char)bVar1 < '\0');
    if (uVar6 == 0) break;
    uVar3 = FUN_00337900(param_1);
    uVar3 = FUN_00337750(uVar3,param_2,local_30);
    if ((char)uVar3 != '\0') {
      return uVar3;
    }
  }
  return 0;
}

