
/* parse_lsda_header(_Unwind_Context*, unsigned char const*, lsda_header_info*) */

void parse_lsda_header(_Unwind_Context *param_1,uchar *param_2,lsda_header_info *param_3)

{
  uchar uVar1;
  lsda_header_info lVar2;
  byte bVar3;
  undefined8 uVar4;
  lsda_header_info *plVar5;
  byte bVar6;
  lsda_header_info *plVar7;
  ulong uVar8;
  
  uVar4 = 0;
  if (param_1 != (_Unwind_Context *)0x0) {
    uVar4 = _Unwind_GetRegionStart();
  }
  *(undefined8 *)param_3 = uVar4;
  uVar1 = *param_2;
  if (uVar1 == 0xff) {
    *(undefined8 *)(param_3 + 8) = uVar4;
    lVar2 = *(lsda_header_info *)(param_2 + 1);
    plVar7 = (lsda_header_info *)(param_2 + 2);
    param_3[0x28] = lVar2;
  }
  else {
    uVar8 = base_of_encoded_value(uVar1,param_1);
    plVar7 = (lsda_header_info *)
             read_encoded_value_with_base(uVar1,uVar8,param_2 + 1,(ulong *)(param_3 + 8));
    lVar2 = *plVar7;
    plVar7 = plVar7 + 1;
    param_3[0x28] = lVar2;
  }
  if (lVar2 == (lsda_header_info)0xff) {
    *(undefined8 *)(param_3 + 0x18) = 0;
  }
  else {
    uVar8 = 0;
    bVar6 = 0;
    plVar5 = plVar7;
    do {
      plVar7 = plVar5 + 1;
      lVar2 = *plVar5;
      bVar3 = bVar6 & 0x3f;
      bVar6 = bVar6 + 7;
      uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;
      plVar5 = plVar7;
    } while ((char)lVar2 < '\0');
    *(lsda_header_info **)(param_3 + 0x18) = plVar7 + uVar8;
  }
  uVar8 = 0;
  bVar6 = 0;
  param_3[0x29] = *plVar7;
  plVar7 = plVar7 + 1;
  do {
    plVar5 = plVar7 + 1;
    lVar2 = *plVar7;
    bVar3 = bVar6 & 0x3f;
    bVar6 = bVar6 + 7;
    uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;
    plVar7 = plVar5;
  } while ((char)lVar2 < '\0');
  *(lsda_header_info **)(param_3 + 0x20) = plVar5 + uVar8;
  return;
}



void FUN_00275d50(long param_1,char *param_2,undefined8 *param_3)

{
  char cVar1;
  byte bVar2;
  byte bVar3;
  undefined8 uVar4;
  byte *pbVar5;
  char *pcVar6;
  byte bVar7;
  byte *pbVar8;
  ulong uVar9;
  
  uVar4 = 0;
  if (param_1 != 0) {
    uVar4 = FUN_00304370();
  }
  *param_3 = uVar4;
  cVar1 = *param_2;
  if (cVar1 == -1) {
    param_3[1] = uVar4;
    cVar1 = param_2[1];
    pbVar8 = (byte *)(param_2 + 2);
    *(char *)(param_3 + 5) = cVar1;
  }
  else {
    uVar4 = FUN_00275d00(cVar1,param_1);
    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);
    cVar1 = *pcVar6;
    pbVar8 = (byte *)(pcVar6 + 1);
    *(char *)(param_3 + 5) = cVar1;
  }
  if (cVar1 == -1) {
    param_3[3] = 0;
  }
  else {
    uVar9 = 0;
    bVar7 = 0;
    pbVar5 = pbVar8;
    do {
      pbVar8 = pbVar5 + 1;
      bVar2 = *pbVar5;
      bVar3 = bVar7 & 0x3f;
      bVar7 = bVar7 + 7;
      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;
      pbVar5 = pbVar8;
    } while ((char)bVar2 < '\0');
    param_3[3] = pbVar8 + uVar9;
  }
  uVar9 = 0;
  bVar7 = 0;
  *(byte *)((long)param_3 + 0x29) = *pbVar8;
  pbVar8 = pbVar8 + 1;
  do {
    pbVar5 = pbVar8 + 1;
    bVar2 = *pbVar8;
    bVar3 = bVar7 & 0x3f;
    bVar7 = bVar7 + 7;
    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;
    pbVar8 = pbVar5;
  } while ((char)bVar2 < '\0');
  param_3[4] = pbVar5 + uVar9;
  return;
}


PUSH R13
XOR EAX,EAX
MOV R13,RDI
PUSH R12
MOV R12,RSI
PUSH RBP
PUSH RBX
MOV RBX,RDX
SUB RSP,0x8
TEST RDI,RDI
JZ 0x00275d6f
CALL 0x00304370
MOV qword ptr [RBX],RAX
MOVZX EDI,byte ptr [R12]
LEA RBP,[R12 + 0x1]
CMP DIL,0xff
JNZ 0x00275e00
MOV qword ptr [RBX + 0x8],RAX
MOVZX EAX,byte ptr [RBP]
LEA RSI,[RBP + 0x1]
MOV byte ptr [RBX + 0x28],AL
CMP AL,0xff
JZ 0x00275e37
XOR EDI,EDI
XOR ECX,ECX
NOP dword ptr [RAX]
ADD RSI,0x1
MOVZX EDX,byte ptr [RSI + -0x1]
MOV RAX,RDX
AND EAX,0x7f
SHL RAX,CL
ADD ECX,0x7
OR RDI,RAX
TEST DL,DL
JS 0x00275da0
ADD RDI,RSI
MOV qword ptr [RBX + 0x18],RDI
MOVZX EDX,byte ptr [RSI]
LEA RAX,[RSI + 0x1]
XOR EDI,EDI
XOR ECX,ECX
MOV byte ptr [RBX + 0x29],DL
ADD RAX,0x1
MOVZX ESI,byte ptr [RAX + -0x1]
MOV RDX,RSI
AND EDX,0x7f
SHL RDX,CL
ADD ECX,0x7
OR RDI,RDX
TEST SIL,SIL
JS 0x00275dd0
ADD RDI,RAX
MOV qword ptr [RBX + 0x20],RDI
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
MOVZX R12D,DIL
MOV RSI,R13
MOV EDI,R12D
CALL 0x00275d00
MOV RDX,RBP
LEA RCX,[RBX + 0x8]
MOV EDI,R12D
MOV RSI,RAX
CALL 0x00275a90
MOV RBP,RAX
MOVZX EAX,byte ptr [RBP]
LEA RSI,[RBP + 0x1]
MOV byte ptr [RBX + 0x28],AL
CMP AL,0xff
JNZ 0x00275d99
MOV qword ptr [RBX + 0x18],0x0
JMP 0x00275dc2
(translation_unit "void FUN_00275d50(long param_1,char *param_2,undefined8 *param_3)\n\n{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  byte bVar7;\n  byte *pbVar8;\n  ulong uVar9;\n  \n  uVar4 = 0;\n  if (param_1 != 0) {\n    uVar4 = FUN_00304370();\n  }\n  *param_3 = uVar4;\n  cVar1 = *param_2;\n  if (cVar1 == -1) {\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  if (cVar1 == -1) {\n    param_3[3] = 0;\n  }\n  else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }\n  uVar9 = 0;\n  bVar7 = 0;\n  *(byte *)((long)param_3 + 0x29) = *pbVar8;\n  pbVar8 = pbVar8 + 1;\n  do {\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  } while ((char)bVar2 < '\0');\n  param_3[4] = pbVar5 + uVar9;\n  return;\n}\n\n" (function_definition "void FUN_00275d50(long param_1,char *param_2,undefined8 *param_3)\n\n{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  byte bVar7;\n  byte *pbVar8;\n  ulong uVar9;\n  \n  uVar4 = 0;\n  if (param_1 != 0) {\n    uVar4 = FUN_00304370();\n  }\n  *param_3 = uVar4;\n  cVar1 = *param_2;\n  if (cVar1 == -1) {\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  if (cVar1 == -1) {\n    param_3[3] = 0;\n  }\n  else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }\n  uVar9 = 0;\n  bVar7 = 0;\n  *(byte *)((long)param_3 + 0x29) = *pbVar8;\n  pbVar8 = pbVar8 + 1;\n  do {\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  } while ((char)bVar2 < '\0');\n  param_3[4] = pbVar5 + uVar9;\n  return;\n}" primitive_type (function_declarator "FUN_00275d50(long param_1,char *param_2,undefined8 *param_3)" identifier (parameter_list "(long param_1,char *param_2,undefined8 *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  byte bVar7;\n  byte *pbVar8;\n  ulong uVar9;\n  \n  uVar4 = 0;\n  if (param_1 != 0) {\n    uVar4 = FUN_00304370();\n  }\n  *param_3 = uVar4;\n  cVar1 = *param_2;\n  if (cVar1 == -1) {\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  if (cVar1 == -1) {\n    param_3[3] = 0;\n  }\n  else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }\n  uVar9 = 0;\n  bVar7 = 0;\n  *(byte *)((long)param_3 + 0x29) = *pbVar8;\n  pbVar8 = pbVar8 + 1;\n  do {\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  } while ((char)bVar2 < '\0');\n  param_3[4] = pbVar5 + uVar9;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "ulong uVar9;" type_identifier identifier ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != 0) {\n    uVar4 = FUN_00304370();\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = FUN_00304370();\n  }" { (expression_statement "uVar4 = FUN_00304370();" (assignment_expression "uVar4 = FUN_00304370()" identifier = (call_expression "FUN_00304370()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "*param_3 = uVar4;" (assignment_expression "*param_3 = uVar4" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (cVar1 == -1) {\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }" if (parenthesized_expression "(cVar1 == -1)" ( (binary_expression "cVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }" { (expression_statement "param_3[1] = uVar4;" (assignment_expression "param_3[1] = uVar4" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "cVar1 = param_2[1];" (assignment_expression "cVar1 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar8 = (byte *)(param_2 + 2);" (assignment_expression "pbVar8 = (byte *)(param_2 + 2)" identifier = (cast_expression "(byte *)(param_2 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) )))) ;) (expression_statement "*(char *)(param_3 + 5) = cVar1;" (assignment_expression "*(char *)(param_3 + 5) = cVar1" (pointer_expression "*(char *)(param_3 + 5)" * (cast_expression "(char *)(param_3 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 5)" ( (binary_expression "param_3 + 5" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }" else (compound_statement "{\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }" { (expression_statement "uVar4 = FUN_00275d00(cVar1,param_1);" (assignment_expression "uVar4 = FUN_00275d00(cVar1,param_1)" identifier = (call_expression "FUN_00275d00(cVar1,param_1)" identifier (argument_list "(cVar1,param_1)" ( identifier , identifier )))) ;) (expression_statement "pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);" (assignment_expression "pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1)" identifier = (cast_expression "(char *)FUN_00275a90(cVar1,uVar4,param_2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00275a90(cVar1,uVar4,param_2 + 1)" identifier (argument_list "(cVar1,uVar4,param_2 + 1)" ( identifier , identifier , (binary_expression "param_2 + 1" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *pcVar6;" (assignment_expression "cVar1 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) ;) (expression_statement "pbVar8 = (byte *)(pcVar6 + 1);" (assignment_expression "pbVar8 = (byte *)(pcVar6 + 1)" identifier = (cast_expression "(byte *)(pcVar6 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar6 + 1)" ( (binary_expression "pcVar6 + 1" identifier + number_literal) )))) ;) (expression_statement "*(char *)(param_3 + 5) = cVar1;" (assignment_expression "*(char *)(param_3 + 5) = cVar1" (pointer_expression "*(char *)(param_3 + 5)" * (cast_expression "(char *)(param_3 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 5)" ( (binary_expression "param_3 + 5" identifier + number_literal) )))) = identifier) ;) }))) (if_statement "if (cVar1 == -1) {\n    param_3[3] = 0;\n  }\n  else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }" if (parenthesized_expression "(cVar1 == -1)" ( (binary_expression "cVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    param_3[3] = 0;\n  }" { (expression_statement "param_3[3] = 0;" (assignment_expression "param_3[3] = 0" (subscript_expression "param_3[3]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }" else (compound_statement "{\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "pbVar5 = pbVar8;" (assignment_expression "pbVar5 = pbVar8" identifier = identifier) ;) (do_statement "do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');" do (compound_statement "{\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    }" { (expression_statement "pbVar8 = pbVar5 + 1;" (assignment_expression "pbVar8 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *pbVar5;" (assignment_expression "bVar2 = *pbVar5" identifier = (pointer_expression "*pbVar5" * identifier)) ;) (expression_statement "bVar3 = bVar7 & 0x3f;" (assignment_expression "bVar3 = bVar7 & 0x3f" identifier = (binary_expression "bVar7 & 0x3f" identifier & number_literal)) ;) (expression_statement "bVar7 = bVar7 + 7;" (assignment_expression "bVar7 = bVar7 + 7" identifier = (binary_expression "bVar7 + 7" identifier + number_literal)) ;) (expression_statement "uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;" (assignment_expression "uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3" identifier = (binary_expression "uVar9 | (ulong)(bVar2 & 0x7f) << bVar3" identifier | (binary_expression "(ulong)(bVar2 & 0x7f) << bVar3" (call_expression "(ulong)(bVar2 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(bVar2 & 0x7f)" ( (binary_expression "bVar2 & 0x7f" identifier & number_literal) ))) << identifier))) ;) (expression_statement "pbVar5 = pbVar8;" (assignment_expression "pbVar5 = pbVar8" identifier = identifier) ;) }) while (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "param_3[3] = pbVar8 + uVar9;" (assignment_expression "param_3[3] = pbVar8 + uVar9" (subscript_expression "param_3[3]" identifier [ number_literal ]) = (binary_expression "pbVar8 + uVar9" identifier + identifier)) ;) }))) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "*(byte *)((long)param_3 + 0x29) = *pbVar8;" (assignment_expression "*(byte *)((long)param_3 + 0x29) = *pbVar8" (pointer_expression "*(byte *)((long)param_3 + 0x29)" * (cast_expression "(byte *)((long)param_3 + 0x29)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + 0x29)" ( (binary_expression "(long)param_3 + 0x29" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (do_statement "do {\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  } while ((char)bVar2 < '\0');" do (compound_statement "{\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  }" { (expression_statement "pbVar5 = pbVar8 + 1;" (assignment_expression "pbVar5 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "bVar3 = bVar7 & 0x3f;" (assignment_expression "bVar3 = bVar7 & 0x3f" identifier = (binary_expression "bVar7 & 0x3f" identifier & number_literal)) ;) (expression_statement "bVar7 = bVar7 + 7;" (assignment_expression "bVar7 = bVar7 + 7" identifier = (binary_expression "bVar7 + 7" identifier + number_literal)) ;) (expression_statement "uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;" (assignment_expression "uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3" identifier = (binary_expression "uVar9 | (ulong)(bVar2 & 0x7f) << bVar3" identifier | (binary_expression "(ulong)(bVar2 & 0x7f) << bVar3" (call_expression "(ulong)(bVar2 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(bVar2 & 0x7f)" ( (binary_expression "bVar2 & 0x7f" identifier & number_literal) ))) << identifier))) ;) (expression_statement "pbVar8 = pbVar5;" (assignment_expression "pbVar8 = pbVar5" identifier = identifier) ;) }) while (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "param_3[4] = pbVar5 + uVar9;" (assignment_expression "param_3[4] = pbVar5 + uVar9" (subscript_expression "param_3[4]" identifier [ number_literal ]) = (binary_expression "pbVar5 + uVar9" identifier + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* parse_lsda_header(_Unwind_Context*, unsigned char const*, lsda_header_info*) */\n\nvoid parse_lsda_header(_Unwind_Context *param_1,uchar *param_2,lsda_header_info *param_3)\n\n{\n  uchar uVar1;\n  lsda_header_info lVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  lsda_header_info *plVar5;\n  byte bVar6;\n  lsda_header_info *plVar7;\n  ulong uVar8;\n  \n  uVar4 = 0;\n  if (param_1 != (_Unwind_Context *)0x0) {\n    uVar4 = _Unwind_GetRegionStart();\n  }\n  *(undefined8 *)param_3 = uVar4;\n  uVar1 = *param_2;\n  if (uVar1 == 0xff) {\n    *(undefined8 *)(param_3 + 8) = uVar4;\n    lVar2 = *(lsda_header_info *)(param_2 + 1);\n    plVar7 = (lsda_header_info *)(param_2 + 2);\n    param_3[0x28] = lVar2;\n  }\n  else {\n    uVar8 = base_of_encoded_value(uVar1,param_1);\n    plVar7 = (lsda_header_info *)\n             read_encoded_value_with_base(uVar1,uVar8,param_2 + 1,(ulong *)(param_3 + 8));\n    lVar2 = *plVar7;\n    plVar7 = plVar7 + 1;\n    param_3[0x28] = lVar2;\n  }\n  if (lVar2 == (lsda_header_info)0xff) {\n    *(undefined8 *)(param_3 + 0x18) = 0;\n  }\n  else {\n    uVar8 = 0;\n    bVar6 = 0;\n    plVar5 = plVar7;\n    do {\n      plVar7 = plVar5 + 1;\n      lVar2 = *plVar5;\n      bVar3 = bVar6 & 0x3f;\n      bVar6 = bVar6 + 7;\n      uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;\n      plVar5 = plVar7;\n    } while ((char)lVar2 < '\0');\n    *(lsda_header_info **)(param_3 + 0x18) = plVar7 + uVar8;\n  }\n  uVar8 = 0;\n  bVar6 = 0;\n  param_3[0x29] = *plVar7;\n  plVar7 = plVar7 + 1;\n  do {\n    plVar5 = plVar7 + 1;\n    lVar2 = *plVar7;\n    bVar3 = bVar6 & 0x3f;\n    bVar6 = bVar6 + 7;\n    uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;\n    plVar7 = plVar5;\n  } while ((char)lVar2 < '\0');\n  *(lsda_header_info **)(param_3 + 0x20) = plVar5 + uVar8;\n  return;\n}\n\n" comment (function_definition "void parse_lsda_header(_Unwind_Context *param_1,uchar *param_2,lsda_header_info *param_3)\n\n{\n  uchar uVar1;\n  lsda_header_info lVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  lsda_header_info *plVar5;\n  byte bVar6;\n  lsda_header_info *plVar7;\n  ulong uVar8;\n  \n  uVar4 = 0;\n  if (param_1 != (_Unwind_Context *)0x0) {\n    uVar4 = _Unwind_GetRegionStart();\n  }\n  *(undefined8 *)param_3 = uVar4;\n  uVar1 = *param_2;\n  if (uVar1 == 0xff) {\n    *(undefined8 *)(param_3 + 8) = uVar4;\n    lVar2 = *(lsda_header_info *)(param_2 + 1);\n    plVar7 = (lsda_header_info *)(param_2 + 2);\n    param_3[0x28] = lVar2;\n  }\n  else {\n    uVar8 = base_of_encoded_value(uVar1,param_1);\n    plVar7 = (lsda_header_info *)\n             read_encoded_value_with_base(uVar1,uVar8,param_2 + 1,(ulong *)(param_3 + 8));\n    lVar2 = *plVar7;\n    plVar7 = plVar7 + 1;\n    param_3[0x28] = lVar2;\n  }\n  if (lVar2 == (lsda_header_info)0xff) {\n    *(undefined8 *)(param_3 + 0x18) = 0;\n  }\n  else {\n    uVar8 = 0;\n    bVar6 = 0;\n    plVar5 = plVar7;\n    do {\n      plVar7 = plVar5 + 1;\n      lVar2 = *plVar5;\n      bVar3 = bVar6 & 0x3f;\n      bVar6 = bVar6 + 7;\n      uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;\n      plVar5 = plVar7;\n    } while ((char)lVar2 < '\0');\n    *(lsda_header_info **)(param_3 + 0x18) = plVar7 + uVar8;\n  }\n  uVar8 = 0;\n  bVar6 = 0;\n  param_3[0x29] = *plVar7;\n  plVar7 = plVar7 + 1;\n  do {\n    plVar5 = plVar7 + 1;\n    lVar2 = *plVar7;\n    bVar3 = bVar6 & 0x3f;\n    bVar6 = bVar6 + 7;\n    uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;\n    plVar7 = plVar5;\n  } while ((char)lVar2 < '\0');\n  *(lsda_header_info **)(param_3 + 0x20) = plVar5 + uVar8;\n  return;\n}" primitive_type (function_declarator "parse_lsda_header(_Unwind_Context *param_1,uchar *param_2,lsda_header_info *param_3)" identifier (parameter_list "(_Unwind_Context *param_1,uchar *param_2,lsda_header_info *param_3)" ( (parameter_declaration "_Unwind_Context *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uchar *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "lsda_header_info *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uchar uVar1;\n  lsda_header_info lVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  lsda_header_info *plVar5;\n  byte bVar6;\n  lsda_header_info *plVar7;\n  ulong uVar8;\n  \n  uVar4 = 0;\n  if (param_1 != (_Unwind_Context *)0x0) {\n    uVar4 = _Unwind_GetRegionStart();\n  }\n  *(undefined8 *)param_3 = uVar4;\n  uVar1 = *param_2;\n  if (uVar1 == 0xff) {\n    *(undefined8 *)(param_3 + 8) = uVar4;\n    lVar2 = *(lsda_header_info *)(param_2 + 1);\n    plVar7 = (lsda_header_info *)(param_2 + 2);\n    param_3[0x28] = lVar2;\n  }\n  else {\n    uVar8 = base_of_encoded_value(uVar1,param_1);\n    plVar7 = (lsda_header_info *)\n             read_encoded_value_with_base(uVar1,uVar8,param_2 + 1,(ulong *)(param_3 + 8));\n    lVar2 = *plVar7;\n    plVar7 = plVar7 + 1;\n    param_3[0x28] = lVar2;\n  }\n  if (lVar2 == (lsda_header_info)0xff) {\n    *(undefined8 *)(param_3 + 0x18) = 0;\n  }\n  else {\n    uVar8 = 0;\n    bVar6 = 0;\n    plVar5 = plVar7;\n    do {\n      plVar7 = plVar5 + 1;\n      lVar2 = *plVar5;\n      bVar3 = bVar6 & 0x3f;\n      bVar6 = bVar6 + 7;\n      uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;\n      plVar5 = plVar7;\n    } while ((char)lVar2 < '\0');\n    *(lsda_header_info **)(param_3 + 0x18) = plVar7 + uVar8;\n  }\n  uVar8 = 0;\n  bVar6 = 0;\n  param_3[0x29] = *plVar7;\n  plVar7 = plVar7 + 1;\n  do {\n    plVar5 = plVar7 + 1;\n    lVar2 = *plVar7;\n    bVar3 = bVar6 & 0x3f;\n    bVar6 = bVar6 + 7;\n    uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;\n    plVar7 = plVar5;\n  } while ((char)lVar2 < '\0');\n  *(lsda_header_info **)(param_3 + 0x20) = plVar5 + uVar8;\n  return;\n}" { (declaration "uchar uVar1;" type_identifier identifier ;) (declaration "lsda_header_info lVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "lsda_header_info *plVar5;" type_identifier (pointer_declarator "*plVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "lsda_header_info *plVar7;" type_identifier (pointer_declarator "*plVar7" * identifier) ;) (declaration "ulong uVar8;" type_identifier identifier ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != (_Unwind_Context *)0x0) {\n    uVar4 = _Unwind_GetRegionStart();\n  }" if (parenthesized_expression "(param_1 != (_Unwind_Context *)0x0)" ( (binary_expression "param_1 != (_Unwind_Context *)0x0" identifier != (cast_expression "(_Unwind_Context *)0x0" ( (type_descriptor "_Unwind_Context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar4 = _Unwind_GetRegionStart();\n  }" { (expression_statement "uVar4 = _Unwind_GetRegionStart();" (assignment_expression "uVar4 = _Unwind_GetRegionStart()" identifier = (call_expression "_Unwind_GetRegionStart()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "*(undefined8 *)param_3 = uVar4;" (assignment_expression "*(undefined8 *)param_3 = uVar4" (pointer_expression "*(undefined8 *)param_3" * (cast_expression "(undefined8 *)param_3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (uVar1 == 0xff) {\n    *(undefined8 *)(param_3 + 8) = uVar4;\n    lVar2 = *(lsda_header_info *)(param_2 + 1);\n    plVar7 = (lsda_header_info *)(param_2 + 2);\n    param_3[0x28] = lVar2;\n  }\n  else {\n    uVar8 = base_of_encoded_value(uVar1,param_1);\n    plVar7 = (lsda_header_info *)\n             read_encoded_value_with_base(uVar1,uVar8,param_2 + 1,(ulong *)(param_3 + 8));\n    lVar2 = *plVar7;\n    plVar7 = plVar7 + 1;\n    param_3[0x28] = lVar2;\n  }" if (parenthesized_expression "(uVar1 == 0xff)" ( (binary_expression "uVar1 == 0xff" identifier == number_literal) )) (compound_statement "{\n    *(undefined8 *)(param_3 + 8) = uVar4;\n    lVar2 = *(lsda_header_info *)(param_2 + 1);\n    plVar7 = (lsda_header_info *)(param_2 + 2);\n    param_3[0x28] = lVar2;\n  }" { (expression_statement "*(undefined8 *)(param_3 + 8) = uVar4;" (assignment_expression "*(undefined8 *)(param_3 + 8) = uVar4" (pointer_expression "*(undefined8 *)(param_3 + 8)" * (cast_expression "(undefined8 *)(param_3 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "lVar2 = *(lsda_header_info *)(param_2 + 1);" (assignment_expression "lVar2 = *(lsda_header_info *)(param_2 + 1)" identifier = (pointer_expression "*(lsda_header_info *)(param_2 + 1)" * (cast_expression "(lsda_header_info *)(param_2 + 1)" ( (type_descriptor "lsda_header_info *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) ))))) ;) (expression_statement "plVar7 = (lsda_header_info *)(param_2 + 2);" (assignment_expression "plVar7 = (lsda_header_info *)(param_2 + 2)" identifier = (cast_expression "(lsda_header_info *)(param_2 + 2)" ( (type_descriptor "lsda_header_info *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) )))) ;) (expression_statement "param_3[0x28] = lVar2;" (assignment_expression "param_3[0x28] = lVar2" (subscript_expression "param_3[0x28]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    uVar8 = base_of_encoded_value(uVar1,param_1);\n    plVar7 = (lsda_header_info *)\n             read_encoded_value_with_base(uVar1,uVar8,param_2 + 1,(ulong *)(param_3 + 8));\n    lVar2 = *plVar7;\n    plVar7 = plVar7 + 1;\n    param_3[0x28] = lVar2;\n  }" else (compound_statement "{\n    uVar8 = base_of_encoded_value(uVar1,param_1);\n    plVar7 = (lsda_header_info *)\n             read_encoded_value_with_base(uVar1,uVar8,param_2 + 1,(ulong *)(param_3 + 8));\n    lVar2 = *plVar7;\n    plVar7 = plVar7 + 1;\n    param_3[0x28] = lVar2;\n  }" { (expression_statement "uVar8 = base_of_encoded_value(uVar1,param_1);" (assignment_expression "uVar8 = base_of_encoded_value(uVar1,param_1)" identifier = (call_expression "base_of_encoded_value(uVar1,param_1)" identifier (argument_list "(uVar1,param_1)" ( identifier , identifier )))) ;) (expression_statement "plVar7 = (lsda_header_info *)\n             read_encoded_value_with_base(uVar1,uVar8,param_2 + 1,(ulong *)(param_3 + 8));" (assignment_expression "plVar7 = (lsda_header_info *)\n             read_encoded_value_with_base(uVar1,uVar8,param_2 + 1,(ulong *)(param_3 + 8))" identifier = (cast_expression "(lsda_header_info *)\n             read_encoded_value_with_base(uVar1,uVar8,param_2 + 1,(ulong *)(param_3 + 8))" ( (type_descriptor "lsda_header_info *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "read_encoded_value_with_base(uVar1,uVar8,param_2 + 1,(ulong *)(param_3 + 8))" identifier (argument_list "(uVar1,uVar8,param_2 + 1,(ulong *)(param_3 + 8))" ( identifier , identifier , (binary_expression "param_2 + 1" identifier + number_literal) , (cast_expression "(ulong *)(param_3 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))) ))))) ;) (expression_statement "lVar2 = *plVar7;" (assignment_expression "lVar2 = *plVar7" identifier = (pointer_expression "*plVar7" * identifier)) ;) (expression_statement "plVar7 = plVar7 + 1;" (assignment_expression "plVar7 = plVar7 + 1" identifier = (binary_expression "plVar7 + 1" identifier + number_literal)) ;) (expression_statement "param_3[0x28] = lVar2;" (assignment_expression "param_3[0x28] = lVar2" (subscript_expression "param_3[0x28]" identifier [ number_literal ]) = identifier) ;) }))) (if_statement "if (lVar2 == (lsda_header_info)0xff) {\n    *(undefined8 *)(param_3 + 0x18) = 0;\n  }\n  else {\n    uVar8 = 0;\n    bVar6 = 0;\n    plVar5 = plVar7;\n    do {\n      plVar7 = plVar5 + 1;\n      lVar2 = *plVar5;\n      bVar3 = bVar6 & 0x3f;\n      bVar6 = bVar6 + 7;\n      uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;\n      plVar5 = plVar7;\n    } while ((char)lVar2 < '\0');\n    *(lsda_header_info **)(param_3 + 0x18) = plVar7 + uVar8;\n  }" if (parenthesized_expression "(lVar2 == (lsda_header_info)0xff)" ( (binary_expression "lVar2 == (lsda_header_info)0xff" identifier == (cast_expression "(lsda_header_info)0xff" ( (type_descriptor "lsda_header_info" type_identifier) ) number_literal)) )) (compound_statement "{\n    *(undefined8 *)(param_3 + 0x18) = 0;\n  }" { (expression_statement "*(undefined8 *)(param_3 + 0x18) = 0;" (assignment_expression "*(undefined8 *)(param_3 + 0x18) = 0" (pointer_expression "*(undefined8 *)(param_3 + 0x18)" * (cast_expression "(undefined8 *)(param_3 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x18)" ( (binary_expression "param_3 + 0x18" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar8 = 0;\n    bVar6 = 0;\n    plVar5 = plVar7;\n    do {\n      plVar7 = plVar5 + 1;\n      lVar2 = *plVar5;\n      bVar3 = bVar6 & 0x3f;\n      bVar6 = bVar6 + 7;\n      uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;\n      plVar5 = plVar7;\n    } while ((char)lVar2 < '\0');\n    *(lsda_header_info **)(param_3 + 0x18) = plVar7 + uVar8;\n  }" else (compound_statement "{\n    uVar8 = 0;\n    bVar6 = 0;\n    plVar5 = plVar7;\n    do {\n      plVar7 = plVar5 + 1;\n      lVar2 = *plVar5;\n      bVar3 = bVar6 & 0x3f;\n      bVar6 = bVar6 + 7;\n      uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;\n      plVar5 = plVar7;\n    } while ((char)lVar2 < '\0');\n    *(lsda_header_info **)(param_3 + 0x18) = plVar7 + uVar8;\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "plVar5 = plVar7;" (assignment_expression "plVar5 = plVar7" identifier = identifier) ;) (do_statement "do {\n      plVar7 = plVar5 + 1;\n      lVar2 = *plVar5;\n      bVar3 = bVar6 & 0x3f;\n      bVar6 = bVar6 + 7;\n      uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;\n      plVar5 = plVar7;\n    } while ((char)lVar2 < '\0');" do (compound_statement "{\n      plVar7 = plVar5 + 1;\n      lVar2 = *plVar5;\n      bVar3 = bVar6 & 0x3f;\n      bVar6 = bVar6 + 7;\n      uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;\n      plVar5 = plVar7;\n    }" { (expression_statement "plVar7 = plVar5 + 1;" (assignment_expression "plVar7 = plVar5 + 1" identifier = (binary_expression "plVar5 + 1" identifier + number_literal)) ;) (expression_statement "lVar2 = *plVar5;" (assignment_expression "lVar2 = *plVar5" identifier = (pointer_expression "*plVar5" * identifier)) ;) (expression_statement "bVar3 = bVar6 & 0x3f;" (assignment_expression "bVar3 = bVar6 & 0x3f" identifier = (binary_expression "bVar6 & 0x3f" identifier & number_literal)) ;) (expression_statement "bVar6 = bVar6 + 7;" (assignment_expression "bVar6 = bVar6 + 7" identifier = (binary_expression "bVar6 + 7" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;" (assignment_expression "uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3" identifier = (binary_expression "uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3" identifier | (binary_expression "(ulong)((byte)lVar2 & 0x7f) << bVar3" (call_expression "(ulong)((byte)lVar2 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((byte)lVar2 & 0x7f)" ( (binary_expression "(byte)lVar2 & 0x7f" (cast_expression "(byte)lVar2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) << identifier))) ;) (expression_statement "plVar5 = plVar7;" (assignment_expression "plVar5 = plVar7" identifier = identifier) ;) }) while (parenthesized_expression "((char)lVar2 < '\0')" ( (binary_expression "(char)lVar2 < '\0'" (cast_expression "(char)lVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "*(lsda_header_info **)(param_3 + 0x18) = plVar7 + uVar8;" (assignment_expression "*(lsda_header_info **)(param_3 + 0x18) = plVar7 + uVar8" (pointer_expression "*(lsda_header_info **)(param_3 + 0x18)" * (cast_expression "(lsda_header_info **)(param_3 + 0x18)" ( (type_descriptor "lsda_header_info **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x18)" ( (binary_expression "param_3 + 0x18" identifier + number_literal) )))) = (binary_expression "plVar7 + uVar8" identifier + identifier)) ;) }))) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "param_3[0x29] = *plVar7;" (assignment_expression "param_3[0x29] = *plVar7" (subscript_expression "param_3[0x29]" identifier [ number_literal ]) = (pointer_expression "*plVar7" * identifier)) ;) (expression_statement "plVar7 = plVar7 + 1;" (assignment_expression "plVar7 = plVar7 + 1" identifier = (binary_expression "plVar7 + 1" identifier + number_literal)) ;) (do_statement "do {\n    plVar5 = plVar7 + 1;\n    lVar2 = *plVar7;\n    bVar3 = bVar6 & 0x3f;\n    bVar6 = bVar6 + 7;\n    uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;\n    plVar7 = plVar5;\n  } while ((char)lVar2 < '\0');" do (compound_statement "{\n    plVar5 = plVar7 + 1;\n    lVar2 = *plVar7;\n    bVar3 = bVar6 & 0x3f;\n    bVar6 = bVar6 + 7;\n    uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;\n    plVar7 = plVar5;\n  }" { (expression_statement "plVar5 = plVar7 + 1;" (assignment_expression "plVar5 = plVar7 + 1" identifier = (binary_expression "plVar7 + 1" identifier + number_literal)) ;) (expression_statement "lVar2 = *plVar7;" (assignment_expression "lVar2 = *plVar7" identifier = (pointer_expression "*plVar7" * identifier)) ;) (expression_statement "bVar3 = bVar6 & 0x3f;" (assignment_expression "bVar3 = bVar6 & 0x3f" identifier = (binary_expression "bVar6 & 0x3f" identifier & number_literal)) ;) (expression_statement "bVar6 = bVar6 + 7;" (assignment_expression "bVar6 = bVar6 + 7" identifier = (binary_expression "bVar6 + 7" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3;" (assignment_expression "uVar8 = uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3" identifier = (binary_expression "uVar8 | (ulong)((byte)lVar2 & 0x7f) << bVar3" identifier | (binary_expression "(ulong)((byte)lVar2 & 0x7f) << bVar3" (call_expression "(ulong)((byte)lVar2 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((byte)lVar2 & 0x7f)" ( (binary_expression "(byte)lVar2 & 0x7f" (cast_expression "(byte)lVar2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) << identifier))) ;) (expression_statement "plVar7 = plVar5;" (assignment_expression "plVar7 = plVar5" identifier = identifier) ;) }) while (parenthesized_expression "((char)lVar2 < '\0')" ( (binary_expression "(char)lVar2 < '\0'" (cast_expression "(char)lVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "*(lsda_header_info **)(param_3 + 0x20) = plVar5 + uVar8;" (assignment_expression "*(lsda_header_info **)(param_3 + 0x20) = plVar5 + uVar8" (pointer_expression "*(lsda_header_info **)(param_3 + 0x20)" * (cast_expression "(lsda_header_info **)(param_3 + 0x20)" ( (type_descriptor "lsda_header_info **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) )))) = (binary_expression "plVar5 + uVar8" identifier + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00275d50(long param_1,char *param_2,undefined8 *param_3)\n\n{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  byte bVar7;\n  byte *pbVar8;\n  ulong uVar9;\n  \n  uVar4 = 0;\n  if (param_1 != 0) {\n    uVar4 = FUN_00304370();\n  }\n  *param_3 = uVar4;\n  cVar1 = *param_2;\n  if (cVar1 == -1) {\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  if (cVar1 == -1) {\n    param_3[3] = 0;\n  }\n  else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }\n  uVar9 = 0;\n  bVar7 = 0;\n  *(byte *)((long)param_3 + 0x29) = *pbVar8;\n  pbVar8 = pbVar8 + 1;\n  do {\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  } while ((char)bVar2 < '\0');\n  param_3[4] = pbVar5 + uVar9;\n  return;\n}\n\n" (function_definition "void FUN_00275d50(long param_1,char *param_2,undefined8 *param_3)\n\n{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  byte bVar7;\n  byte *pbVar8;\n  ulong uVar9;\n  \n  uVar4 = 0;\n  if (param_1 != 0) {\n    uVar4 = FUN_00304370();\n  }\n  *param_3 = uVar4;\n  cVar1 = *param_2;\n  if (cVar1 == -1) {\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  if (cVar1 == -1) {\n    param_3[3] = 0;\n  }\n  else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }\n  uVar9 = 0;\n  bVar7 = 0;\n  *(byte *)((long)param_3 + 0x29) = *pbVar8;\n  pbVar8 = pbVar8 + 1;\n  do {\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  } while ((char)bVar2 < '\0');\n  param_3[4] = pbVar5 + uVar9;\n  return;\n}" primitive_type (function_declarator "FUN_00275d50(long param_1,char *param_2,undefined8 *param_3)" identifier (parameter_list "(long param_1,char *param_2,undefined8 *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  byte bVar7;\n  byte *pbVar8;\n  ulong uVar9;\n  \n  uVar4 = 0;\n  if (param_1 != 0) {\n    uVar4 = FUN_00304370();\n  }\n  *param_3 = uVar4;\n  cVar1 = *param_2;\n  if (cVar1 == -1) {\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  if (cVar1 == -1) {\n    param_3[3] = 0;\n  }\n  else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }\n  uVar9 = 0;\n  bVar7 = 0;\n  *(byte *)((long)param_3 + 0x29) = *pbVar8;\n  pbVar8 = pbVar8 + 1;\n  do {\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  } while ((char)bVar2 < '\0');\n  param_3[4] = pbVar5 + uVar9;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "ulong uVar9;" type_identifier identifier ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != 0) {\n    uVar4 = FUN_00304370();\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = FUN_00304370();\n  }" { (expression_statement "uVar4 = FUN_00304370();" (assignment_expression "uVar4 = FUN_00304370()" identifier = (call_expression "FUN_00304370()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "*param_3 = uVar4;" (assignment_expression "*param_3 = uVar4" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (cVar1 == -1) {\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }" if (parenthesized_expression "(cVar1 == -1)" ( (binary_expression "cVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }" { (expression_statement "param_3[1] = uVar4;" (assignment_expression "param_3[1] = uVar4" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "cVar1 = param_2[1];" (assignment_expression "cVar1 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar8 = (byte *)(param_2 + 2);" (assignment_expression "pbVar8 = (byte *)(param_2 + 2)" identifier = (cast_expression "(byte *)(param_2 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) )))) ;) (expression_statement "*(char *)(param_3 + 5) = cVar1;" (assignment_expression "*(char *)(param_3 + 5) = cVar1" (pointer_expression "*(char *)(param_3 + 5)" * (cast_expression "(char *)(param_3 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 5)" ( (binary_expression "param_3 + 5" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }" else (compound_statement "{\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }" { (expression_statement "uVar4 = FUN_00275d00(cVar1,param_1);" (assignment_expression "uVar4 = FUN_00275d00(cVar1,param_1)" identifier = (call_expression "FUN_00275d00(cVar1,param_1)" identifier (argument_list "(cVar1,param_1)" ( identifier , identifier )))) ;) (expression_statement "pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);" (assignment_expression "pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1)" identifier = (cast_expression "(char *)FUN_00275a90(cVar1,uVar4,param_2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00275a90(cVar1,uVar4,param_2 + 1)" identifier (argument_list "(cVar1,uVar4,param_2 + 1)" ( identifier , identifier , (binary_expression "param_2 + 1" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *pcVar6;" (assignment_expression "cVar1 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) ;) (expression_statement "pbVar8 = (byte *)(pcVar6 + 1);" (assignment_expression "pbVar8 = (byte *)(pcVar6 + 1)" identifier = (cast_expression "(byte *)(pcVar6 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar6 + 1)" ( (binary_expression "pcVar6 + 1" identifier + number_literal) )))) ;) (expression_statement "*(char *)(param_3 + 5) = cVar1;" (assignment_expression "*(char *)(param_3 + 5) = cVar1" (pointer_expression "*(char *)(param_3 + 5)" * (cast_expression "(char *)(param_3 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 5)" ( (binary_expression "param_3 + 5" identifier + number_literal) )))) = identifier) ;) }))) (if_statement "if (cVar1 == -1) {\n    param_3[3] = 0;\n  }\n  else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }" if (parenthesized_expression "(cVar1 == -1)" ( (binary_expression "cVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    param_3[3] = 0;\n  }" { (expression_statement "param_3[3] = 0;" (assignment_expression "param_3[3] = 0" (subscript_expression "param_3[3]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }" else (compound_statement "{\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "pbVar5 = pbVar8;" (assignment_expression "pbVar5 = pbVar8" identifier = identifier) ;) (do_statement "do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');" do (compound_statement "{\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    }" { (expression_statement "pbVar8 = pbVar5 + 1;" (assignment_expression "pbVar8 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *pbVar5;" (assignment_expression "bVar2 = *pbVar5" identifier = (pointer_expression "*pbVar5" * identifier)) ;) (expression_statement "bVar3 = bVar7 & 0x3f;" (assignment_expression "bVar3 = bVar7 & 0x3f" identifier = (binary_expression "bVar7 & 0x3f" identifier & number_literal)) ;) (expression_statement "bVar7 = bVar7 + 7;" (assignment_expression "bVar7 = bVar7 + 7" identifier = (binary_expression "bVar7 + 7" identifier + number_literal)) ;) (expression_statement "uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;" (assignment_expression "uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3" identifier = (binary_expression "uVar9 | (ulong)(bVar2 & 0x7f) << bVar3" identifier | (binary_expression "(ulong)(bVar2 & 0x7f) << bVar3" (call_expression "(ulong)(bVar2 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(bVar2 & 0x7f)" ( (binary_expression "bVar2 & 0x7f" identifier & number_literal) ))) << identifier))) ;) (expression_statement "pbVar5 = pbVar8;" (assignment_expression "pbVar5 = pbVar8" identifier = identifier) ;) }) while (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "param_3[3] = pbVar8 + uVar9;" (assignment_expression "param_3[3] = pbVar8 + uVar9" (subscript_expression "param_3[3]" identifier [ number_literal ]) = (binary_expression "pbVar8 + uVar9" identifier + identifier)) ;) }))) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "*(byte *)((long)param_3 + 0x29) = *pbVar8;" (assignment_expression "*(byte *)((long)param_3 + 0x29) = *pbVar8" (pointer_expression "*(byte *)((long)param_3 + 0x29)" * (cast_expression "(byte *)((long)param_3 + 0x29)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + 0x29)" ( (binary_expression "(long)param_3 + 0x29" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (do_statement "do {\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  } while ((char)bVar2 < '\0');" do (compound_statement "{\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  }" { (expression_statement "pbVar5 = pbVar8 + 1;" (assignment_expression "pbVar5 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "bVar3 = bVar7 & 0x3f;" (assignment_expression "bVar3 = bVar7 & 0x3f" identifier = (binary_expression "bVar7 & 0x3f" identifier & number_literal)) ;) (expression_statement "bVar7 = bVar7 + 7;" (assignment_expression "bVar7 = bVar7 + 7" identifier = (binary_expression "bVar7 + 7" identifier + number_literal)) ;) (expression_statement "uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;" (assignment_expression "uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3" identifier = (binary_expression "uVar9 | (ulong)(bVar2 & 0x7f) << bVar3" identifier | (binary_expression "(ulong)(bVar2 & 0x7f) << bVar3" (call_expression "(ulong)(bVar2 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(bVar2 & 0x7f)" ( (binary_expression "bVar2 & 0x7f" identifier & number_literal) ))) << identifier))) ;) (expression_statement "pbVar8 = pbVar5;" (assignment_expression "pbVar8 = pbVar5" identifier = identifier) ;) }) while (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "param_3[4] = pbVar5 + uVar9;" (assignment_expression "param_3[4] = pbVar5 + uVar9" (subscript_expression "param_3[4]" identifier [ number_literal ]) = (binary_expression "pbVar5 + uVar9" identifier + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) })) (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) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (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 ')) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 ')) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00275d50(long param_1,char *param_2,undefined8 *param_3)\n\n{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  byte bVar7;\n  byte *pbVar8;\n  ulong uVar9;\n  \n  uVar4 = 0;\n  if (param_1 != 0) {\n    uVar4 = FUN_00304370();\n  }\n  *param_3 = uVar4;\n  cVar1 = *param_2;\n  if (cVar1 == -1) {\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  if (cVar1 == -1) {\n    param_3[3] = 0;\n  }\n  else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }\n  uVar9 = 0;\n  bVar7 = 0;\n  *(byte *)((long)param_3 + 0x29) = *pbVar8;\n  pbVar8 = pbVar8 + 1;\n  do {\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  } while ((char)bVar2 < '\0');\n  param_3[4] = pbVar5 + uVar9;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00275d50(long param_1,char *param_2,undefined8 *param_3)" (identifier "FUN_00275d50") (parameter_list "(long param_1,char *param_2,undefined8 *param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 *param_3" (type_identifier "undefined8") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char cVar1;\n  byte bVar2;\n  byte bVar3;\n  undefined8 uVar4;\n  byte *pbVar5;\n  char *pcVar6;\n  byte bVar7;\n  byte *pbVar8;\n  ulong uVar9;\n  \n  uVar4 = 0;\n  if (param_1 != 0) {\n    uVar4 = FUN_00304370();\n  }\n  *param_3 = uVar4;\n  cVar1 = *param_2;\n  if (cVar1 == -1) {\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  if (cVar1 == -1) {\n    param_3[3] = 0;\n  }\n  else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }\n  uVar9 = 0;\n  bVar7 = 0;\n  *(byte *)((long)param_3 + 0x29) = *pbVar8;\n  pbVar8 = pbVar8 + 1;\n  do {\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  } while ((char)bVar2 < '\0');\n  param_3[4] = pbVar5 + uVar9;\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "byte bVar7;" (type_identifier "byte") (identifier "bVar7") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "ulong uVar9;" (type_identifier "ulong") (identifier "uVar9") (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 != 0) {\n    uVar4 = FUN_00304370();\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = FUN_00304370();\n  }" ({ "{") (expression_statement "uVar4 = FUN_00304370();" (assignment_expression "uVar4 = FUN_00304370()" (identifier "uVar4") (= "=") (call_expression "FUN_00304370()" (identifier "FUN_00304370") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (expression_statement "*param_3 = uVar4;" (assignment_expression "*param_3 = uVar4" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" (identifier "cVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (cVar1 == -1) {\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }\n  else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }" (if "if") (parenthesized_expression "(cVar1 == -1)" (( "(") (binary_expression "cVar1 == -1" (identifier "cVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    param_3[1] = uVar4;\n    cVar1 = param_2[1];\n    pbVar8 = (byte *)(param_2 + 2);\n    *(char *)(param_3 + 5) = cVar1;\n  }" ({ "{") (expression_statement "param_3[1] = uVar4;" (assignment_expression "param_3[1] = uVar4" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "cVar1 = param_2[1];" (assignment_expression "cVar1 = param_2[1]" (identifier "cVar1") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pbVar8 = (byte *)(param_2 + 2);" (assignment_expression "pbVar8 = (byte *)(param_2 + 2)" (identifier "pbVar8") (= "=") (cast_expression "(byte *)(param_2 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 2)" (( "(") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "*(char *)(param_3 + 5) = cVar1;" (assignment_expression "*(char *)(param_3 + 5) = cVar1" (pointer_expression "*(char *)(param_3 + 5)" (* "*") (cast_expression "(char *)(param_3 + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 5)" (( "(") (binary_expression "param_3 + 5" (identifier "param_3") (+ "+") (number_literal "5")) () ")")))) (= "=") (identifier "cVar1")) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }" (else "else") (compound_statement "{\n    uVar4 = FUN_00275d00(cVar1,param_1);\n    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);\n    cVar1 = *pcVar6;\n    pbVar8 = (byte *)(pcVar6 + 1);\n    *(char *)(param_3 + 5) = cVar1;\n  }" ({ "{") (expression_statement "uVar4 = FUN_00275d00(cVar1,param_1);" (assignment_expression "uVar4 = FUN_00275d00(cVar1,param_1)" (identifier "uVar4") (= "=") (call_expression "FUN_00275d00(cVar1,param_1)" (identifier "FUN_00275d00") (argument_list "(cVar1,param_1)" (( "(") (identifier "cVar1") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);" (assignment_expression "pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1)" (identifier "pcVar6") (= "=") (cast_expression "(char *)FUN_00275a90(cVar1,uVar4,param_2 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00275a90(cVar1,uVar4,param_2 + 1)" (identifier "FUN_00275a90") (argument_list "(cVar1,uVar4,param_2 + 1)" (( "(") (identifier "cVar1") (, ",") (identifier "uVar4") (, ",") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "cVar1 = *pcVar6;" (assignment_expression "cVar1 = *pcVar6" (identifier "cVar1") (= "=") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6"))) (; ";")) (expression_statement "pbVar8 = (byte *)(pcVar6 + 1);" (assignment_expression "pbVar8 = (byte *)(pcVar6 + 1)" (identifier "pbVar8") (= "=") (cast_expression "(byte *)(pcVar6 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar6 + 1)" (( "(") (binary_expression "pcVar6 + 1" (identifier "pcVar6") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*(char *)(param_3 + 5) = cVar1;" (assignment_expression "*(char *)(param_3 + 5) = cVar1" (pointer_expression "*(char *)(param_3 + 5)" (* "*") (cast_expression "(char *)(param_3 + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 5)" (( "(") (binary_expression "param_3 + 5" (identifier "param_3") (+ "+") (number_literal "5")) () ")")))) (= "=") (identifier "cVar1")) (; ";")) (} "}")))) (if_statement "if (cVar1 == -1) {\n    param_3[3] = 0;\n  }\n  else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }" (if "if") (parenthesized_expression "(cVar1 == -1)" (( "(") (binary_expression "cVar1 == -1" (identifier "cVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    param_3[3] = 0;\n  }" ({ "{") (expression_statement "param_3[3] = 0;" (assignment_expression "param_3[3] = 0" (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }" (else "else") (compound_statement "{\n    uVar9 = 0;\n    bVar7 = 0;\n    pbVar5 = pbVar8;\n    do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');\n    param_3[3] = pbVar8 + uVar9;\n  }" ({ "{") (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" (identifier "bVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar5 = pbVar8;" (assignment_expression "pbVar5 = pbVar8" (identifier "pbVar5") (= "=") (identifier "pbVar8")) (; ";")) (do_statement "do {\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    } while ((char)bVar2 < '\0');" (do "do") (compound_statement "{\n      pbVar8 = pbVar5 + 1;\n      bVar2 = *pbVar5;\n      bVar3 = bVar7 & 0x3f;\n      bVar7 = bVar7 + 7;\n      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n      pbVar5 = pbVar8;\n    }" ({ "{") (expression_statement "pbVar8 = pbVar5 + 1;" (assignment_expression "pbVar8 = pbVar5 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar2 = *pbVar5;" (assignment_expression "bVar2 = *pbVar5" (identifier "bVar2") (= "=") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5"))) (; ";")) (expression_statement "bVar3 = bVar7 & 0x3f;" (assignment_expression "bVar3 = bVar7 & 0x3f" (identifier "bVar3") (= "=") (binary_expression "bVar7 & 0x3f" (identifier "bVar7") (& "&") (number_literal "0x3f"))) (; ";")) (expression_statement "bVar7 = bVar7 + 7;" (assignment_expression "bVar7 = bVar7 + 7" (identifier "bVar7") (= "=") (binary_expression "bVar7 + 7" (identifier "bVar7") (+ "+") (number_literal "7"))) (; ";")) (expression_statement "uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;" (assignment_expression "uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3" (identifier "uVar9") (= "=") (binary_expression "uVar9 | (ulong)(bVar2 & 0x7f) << bVar3" (identifier "uVar9") (| "|") (binary_expression "(ulong)(bVar2 & 0x7f) << bVar3" (call_expression "(ulong)(bVar2 & 0x7f)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(bVar2 & 0x7f)" (( "(") (binary_expression "bVar2 & 0x7f" (identifier "bVar2") (& "&") (number_literal "0x7f")) () ")"))) (<< "<<") (identifier "bVar3")))) (; ";")) (expression_statement "pbVar5 = pbVar8;" (assignment_expression "pbVar5 = pbVar8" (identifier "pbVar5") (= "=") (identifier "pbVar8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((char)bVar2 < '\0')" (( "(") (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar2")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "param_3[3] = pbVar8 + uVar9;" (assignment_expression "param_3[3] = pbVar8 + uVar9" (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "pbVar8 + uVar9" (identifier "pbVar8") (+ "+") (identifier "uVar9"))) (; ";")) (} "}")))) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" (identifier "bVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(byte *)((long)param_3 + 0x29) = *pbVar8;" (assignment_expression "*(byte *)((long)param_3 + 0x29) = *pbVar8" (pointer_expression "*(byte *)((long)param_3 + 0x29)" (* "*") (cast_expression "(byte *)((long)param_3 + 0x29)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_3 + 0x29)" (( "(") (binary_expression "(long)param_3 + 0x29" (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3")) (+ "+") (number_literal "0x29")) () ")")))) (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + 1" (identifier "pbVar8") (+ "+") (number_literal "1"))) (; ";")) (do_statement "do {\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  } while ((char)bVar2 < '\0');" (do "do") (compound_statement "{\n    pbVar5 = pbVar8 + 1;\n    bVar2 = *pbVar8;\n    bVar3 = bVar7 & 0x3f;\n    bVar7 = bVar7 + 7;\n    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;\n    pbVar8 = pbVar5;\n  }" ({ "{") (expression_statement "pbVar5 = pbVar8 + 1;" (assignment_expression "pbVar5 = pbVar8 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar8 + 1" (identifier "pbVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar2 = *pbVar8;" (assignment_expression "bVar2 = *pbVar8" (identifier "bVar2") (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (expression_statement "bVar3 = bVar7 & 0x3f;" (assignment_expression "bVar3 = bVar7 & 0x3f" (identifier "bVar3") (= "=") (binary_expression "bVar7 & 0x3f" (identifier "bVar7") (& "&") (number_literal "0x3f"))) (; ";")) (expression_statement "bVar7 = bVar7 + 7;" (assignment_expression "bVar7 = bVar7 + 7" (identifier "bVar7") (= "=") (binary_expression "bVar7 + 7" (identifier "bVar7") (+ "+") (number_literal "7"))) (; ";")) (expression_statement "uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;" (assignment_expression "uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3" (identifier "uVar9") (= "=") (binary_expression "uVar9 | (ulong)(bVar2 & 0x7f) << bVar3" (identifier "uVar9") (| "|") (binary_expression "(ulong)(bVar2 & 0x7f) << bVar3" (call_expression "(ulong)(bVar2 & 0x7f)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(bVar2 & 0x7f)" (( "(") (binary_expression "bVar2 & 0x7f" (identifier "bVar2") (& "&") (number_literal "0x7f")) () ")"))) (<< "<<") (identifier "bVar3")))) (; ";")) (expression_statement "pbVar8 = pbVar5;" (assignment_expression "pbVar8 = pbVar5" (identifier "pbVar8") (= "=") (identifier "pbVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((char)bVar2 < '\0')" (( "(") (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar2")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "param_3[4] = pbVar5 + uVar9;" (assignment_expression "param_3[4] = pbVar5 + uVar9" (subscript_expression "param_3[4]" (identifier "param_3") ([ "[") (number_literal "4") (] "]")) (= "=") (binary_expression "pbVar5 + uVar9" (identifier "pbVar5") (+ "+") (identifier "uVar9"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* parse_lsda_header(_Unwind_Context*, unsigned char const*, lsda_header_info*) */

void function_1(type_1 *var_1,type_2 *var_5,type_3 *var_4)

{
  type_2 var_3;
  type_3 var_9;
  type_4 var_13;
  type_5 uVar4;
  type_3 *var_10;
  type_4 var_11;
  type_3 *var_8;
  type_6 var_12;
  
  uVar4 = 0;
  if (var_1 != (type_1 *)0x0) {
    uVar4 = var_2();
  }
  *(type_5 *)var_4 = uVar4;
  var_3 = *var_5;
  if (var_3 == 0xff) {
    *(type_5 *)(var_4 + 8) = uVar4;
    var_9 = *(type_3 *)(var_5 + 1);
    var_8 = (type_3 *)(var_5 + 2);
    var_4[0x28] = var_9;
  }
  else {
    var_12 = var_6(var_3,var_1);
    var_8 = (type_3 *)
             var_7(var_3,var_12,var_5 + 1,(type_6 *)(var_4 + 8));
    var_9 = *var_8;
    var_8 = var_8 + 1;
    var_4[0x28] = var_9;
  }
  if (var_9 == (type_3)0xff) {
    *(type_5 *)(var_4 + 0x18) = 0;
  }
  else {
    var_12 = 0;
    var_11 = 0;
    var_10 = var_8;
    do {
      var_8 = var_10 + 1;
      var_9 = *var_10;
      var_13 = var_11 & 0x3f;
      var_11 = var_11 + 7;
      var_12 = var_12 | (type_6)((type_4)var_9 & 0x7f) << var_13;
      var_10 = var_8;
    } while ((char)var_9 < '\0');
    *(type_3 **)(var_4 + 0x18) = var_8 + var_12;
  }
  var_12 = 0;
  var_11 = 0;
  var_4[0x29] = *var_8;
  var_8 = var_8 + 1;
  do {
    var_10 = var_8 + 1;
    var_9 = *var_8;
    var_13 = var_11 & 0x3f;
    var_11 = var_11 + 7;
    var_12 = var_12 | (type_6)((type_4)var_9 & 0x7f) << var_13;
    var_8 = var_10;
  } while ((char)var_9 < '\0');
  *(type_3 **)(var_4 + 0x20) = var_10 + var_12;
  return;
}


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

void MASKED(long param_1,char *param_2,undefined8 *param_3)

{
  char cVar1;
  byte bVar2;
  byte bVar3;
  undefined8 uVar4;
  byte *pbVar5;
  char *pcVar6;
  byte bVar7;
  byte *pbVar8;
  ulong uVar9;
  
  uVar4 = 0;
  if (param_1 != 0) {
    uVar4 = FUN_00304370();
  }
  *param_3 = uVar4;
  cVar1 = *param_2;
  if (cVar1 == -1) {
    param_3[1] = uVar4;
    cVar1 = param_2[1];
    pbVar8 = (byte *)(param_2 + 2);
    *(char *)(param_3 + 5) = cVar1;
  }
  else {
    uVar4 = FUN_00275d00(cVar1,param_1);
    pcVar6 = (char *)FUN_00275a90(cVar1,uVar4,param_2 + 1);
    cVar1 = *pcVar6;
    pbVar8 = (byte *)(pcVar6 + 1);
    *(char *)(param_3 + 5) = cVar1;
  }
  if (cVar1 == -1) {
    param_3[3] = 0;
  }
  else {
    uVar9 = 0;
    bVar7 = 0;
    pbVar5 = pbVar8;
    do {
      pbVar8 = pbVar5 + 1;
      bVar2 = *pbVar5;
      bVar3 = bVar7 & 0x3f;
      bVar7 = bVar7 + 7;
      uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;
      pbVar5 = pbVar8;
    } while ((char)bVar2 < '\0');
    param_3[3] = pbVar8 + uVar9;
  }
  uVar9 = 0;
  bVar7 = 0;
  *(byte *)((long)param_3 + 0x29) = *pbVar8;
  pbVar8 = pbVar8 + 1;
  do {
    pbVar5 = pbVar8 + 1;
    bVar2 = *pbVar8;
    bVar3 = bVar7 & 0x3f;
    bVar7 = bVar7 + 7;
    uVar9 = uVar9 | (ulong)(bVar2 & 0x7f) << bVar3;
    pbVar8 = pbVar5;
  } while ((char)bVar2 < '\0');
  param_3[4] = pbVar5 + uVar9;
  return;
}

