
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uchar * unw_decode_r3(uchar *dp,uint code,void *arg,uchar *end)

{
  byte bVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  char *pcVar5;
  byte bVar6;
  byte *pbVar7;
  bool bVar9;
  uint local_2c;
  uint local_28;
  byte *pbVar8;
  
  local_28 = 0;
  pbVar7 = dp + 1;
  local_2c = *dp & 0x7f;
  if ((char)*dp < '\0') {
    bVar6 = 0;
    pbVar8 = pbVar7;
    do {
      pbVar7 = pbVar8 + 1;
      bVar1 = *pbVar8;
      bVar6 = bVar6 + 7;
      uVar2 = bVar1 & 0x7f;
      uVar3 = uVar2 << (bVar6 & 0x1f);
      uVar4 = uVar3;
      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);
      if ((bVar6 & 0x20) != 0) {
        uVar4 = 0;
        uVar2 = uVar3;
      }
      local_2c = uVar4 | local_2c;
      local_28 = uVar2 | local_28;
      pbVar8 = pbVar7;
    } while ((char)bVar1 < '\0');
  }
  bVar9 = (code & 3) == 1;
  unw_rlen._0_4_ = local_2c;
  unw_rlen._4_4_ = local_28;
  *(uint *)arg = (uint)bVar9;
  pcVar5 = "body";
  if (!bVar9) {
    pcVar5 = "prologue";
  }
  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);
  return pbVar7;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

byte * FUN_0004af20(byte *param_1,uint param_2,uint *param_3)

{
  byte bVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  char *pcVar5;
  byte bVar6;
  byte *pbVar7;
  bool bVar9;
  uint local_2c;
  uint local_28;
  byte *pbVar8;
  
  local_28 = 0;
  pbVar7 = param_1 + 1;
  local_2c = *param_1 & 0x7f;
  if ((char)*param_1 < '\0') {
    bVar6 = 0;
    pbVar8 = pbVar7;
    do {
      pbVar7 = pbVar8 + 1;
      bVar1 = *pbVar8;
      bVar6 = bVar6 + 7;
      uVar2 = bVar1 & 0x7f;
      uVar3 = uVar2 << (bVar6 & 0x1f);
      uVar4 = uVar3;
      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);
      if ((bVar6 & 0x20) != 0) {
        uVar4 = 0;
        uVar2 = uVar3;
      }
      local_2c = uVar4 | local_2c;
      local_28 = uVar2 | local_28;
      pbVar8 = pbVar7;
    } while ((char)bVar1 < '\0');
  }
  bVar9 = (param_2 & 3) == 1;
  DAT_000b7558 = local_2c;
  DAT_000b755c = local_28;
  *param_3 = (uint)bVar9;
  pcVar5 = "body";
  if (!bVar9) {
    pcVar5 = "prologue";
  }
  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);
  return pbVar7;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013f70
ADD EBX,0x690d7
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x4],0x0
LEA EBP,[EAX + 0x1]
MOVZX EAX,byte ptr [EAX]
MOV EDX,EAX
AND EDX,0x7f
MOV dword ptr [ESP],EDX
TEST AL,AL
JNS 0x0004afa1
XOR ECX,ECX
LEA ESI,[ESI]
ADD EBP,0x1
MOVZX ESI,byte ptr [EBP + -0x1]
ADD ECX,0x7
XOR EDX,EDX
XOR EDI,EDI
MOV EAX,ESI
AND EAX,0x7f
SHLD EDX,EAX,CL
SHL EAX,CL
TEST CL,0x20
CMOVNZ EDX,EAX
CMOVNZ EAX,EDI
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP]
MOV EDI,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0xc],EDX
MOV EDX,dword ptr [ESP + 0x4]
OR EDI,EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP],EDI
OR EAX,EDX
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,ESI
TEST AL,AL
JS 0x0004af58
MOV EAX,dword ptr [ESP + 0x34]
MOV EDX,dword ptr [ESP + 0x38]
XOR ECX,ECX
MOV ESI,dword ptr [ESP]
MOV EDI,dword ptr [ESP + 0x4]
AND EAX,0x3
CMP EAX,0x1
LEA EAX,[EBX + 0xfffda64b]
MOV dword ptr [EBX + 0x3558],ESI
SETZ CL
MOV dword ptr [EBX + 0x355c],EDI
MOV dword ptr [EDX],ECX
LEA EDX,[EBX + 0xfffda650]
CMOVNZ EAX,EDX
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xfffda659]
PUSH EAX
LEA EAX,[EBX + 0xfffda65c]
PUSH EAX
CALL 0x00013060
ADD ESP,0x2c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbyte * FUN_0004af20(byte *param_1,uint param_2,uint *param_3)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  byte bVar6;\n  byte *pbVar7;\n  bool bVar9;\n  uint local_2c;\n  uint local_28;\n  byte *pbVar8;\n  \n  local_28 = 0;\n  pbVar7 = param_1 + 1;\n  local_2c = *param_1 & 0x7f;\n  if ((char)*param_1 < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }\n  bVar9 = (param_2 & 3) == 1;\n  DAT_000b7558 = local_2c;\n  DAT_000b755c = local_28;\n  *param_3 = (uint)bVar9;\n  pcVar5 = "body";\n  if (!bVar9) {\n    pcVar5 = "prologue";\n  }\n  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);\n  return pbVar7;\n}\n\n" comment (function_definition "byte * FUN_0004af20(byte *param_1,uint param_2,uint *param_3)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  byte bVar6;\n  byte *pbVar7;\n  bool bVar9;\n  uint local_2c;\n  uint local_28;\n  byte *pbVar8;\n  \n  local_28 = 0;\n  pbVar7 = param_1 + 1;\n  local_2c = *param_1 & 0x7f;\n  if ((char)*param_1 < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }\n  bVar9 = (param_2 & 3) == 1;\n  DAT_000b7558 = local_2c;\n  DAT_000b755c = local_28;\n  *param_3 = (uint)bVar9;\n  pcVar5 = "body";\n  if (!bVar9) {\n    pcVar5 = "prologue";\n  }\n  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);\n  return pbVar7;\n}" type_identifier (pointer_declarator "* FUN_0004af20(byte *param_1,uint param_2,uint *param_3)" * (function_declarator "FUN_0004af20(byte *param_1,uint param_2,uint *param_3)" identifier (parameter_list "(byte *param_1,uint param_2,uint *param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  byte bVar6;\n  byte *pbVar7;\n  bool bVar9;\n  uint local_2c;\n  uint local_28;\n  byte *pbVar8;\n  \n  local_28 = 0;\n  pbVar7 = param_1 + 1;\n  local_2c = *param_1 & 0x7f;\n  if ((char)*param_1 < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }\n  bVar9 = (param_2 & 3) == 1;\n  DAT_000b7558 = local_2c;\n  DAT_000b755c = local_28;\n  *param_3 = (uint)bVar9;\n  pcVar5 = "body";\n  if (!bVar9) {\n    pcVar5 = "prologue";\n  }\n  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);\n  return pbVar7;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "pbVar7 = param_1 + 1;" (assignment_expression "pbVar7 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "local_2c = *param_1 & 0x7f;" (assignment_expression "local_2c = *param_1 & 0x7f" identifier = (binary_expression "*param_1 & 0x7f" (pointer_expression "*param_1" * identifier) & number_literal)) ;) (if_statement "if ((char)*param_1 < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }" if (parenthesized_expression "((char)*param_1 < '\0')" ( (binary_expression "(char)*param_1 < '\0'" (cast_expression "(char)*param_1" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*param_1" * identifier)) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }" { (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "pbVar8 = pbVar7;" (assignment_expression "pbVar8 = pbVar7" identifier = identifier) ;) (do_statement "do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');" do (compound_statement "{\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    }" { (expression_statement "pbVar7 = pbVar8 + 1;" (assignment_expression "pbVar7 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "bVar6 = bVar6 + 7;" (assignment_expression "bVar6 = bVar6 + 7" identifier = (binary_expression "bVar6 + 7" identifier + number_literal)) ;) (expression_statement "uVar2 = bVar1 & 0x7f;" (assignment_expression "uVar2 = bVar1 & 0x7f" identifier = (binary_expression "bVar1 & 0x7f" identifier & number_literal)) ;) (expression_statement "uVar3 = uVar2 << (bVar6 & 0x1f);" (assignment_expression "uVar3 = uVar2 << (bVar6 & 0x1f)" identifier = (binary_expression "uVar2 << (bVar6 & 0x1f)" identifier << (parenthesized_expression "(bVar6 & 0x1f)" ( (binary_expression "bVar6 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (expression_statement "uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);" (assignment_expression "uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f)" identifier = (binary_expression "0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f)" (binary_expression "0 << (bVar6 & 0x1f)" number_literal << (parenthesized_expression "(bVar6 & 0x1f)" ( (binary_expression "bVar6 & 0x1f" identifier & number_literal) ))) | (binary_expression "uVar2 >> 0x20 - (bVar6 & 0x1f)" identifier >> (binary_expression "0x20 - (bVar6 & 0x1f)" number_literal - (parenthesized_expression "(bVar6 & 0x1f)" ( (binary_expression "bVar6 & 0x1f" identifier & number_literal) )))))) ;) (if_statement "if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }" if (parenthesized_expression "((bVar6 & 0x20) != 0)" ( (binary_expression "(bVar6 & 0x20) != 0" (parenthesized_expression "(bVar6 & 0x20)" ( (binary_expression "bVar6 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" identifier = identifier) ;) })) (expression_statement "local_2c = uVar4 | local_2c;" (assignment_expression "local_2c = uVar4 | local_2c" identifier = (binary_expression "uVar4 | local_2c" identifier | identifier)) ;) (expression_statement "local_28 = uVar2 | local_28;" (assignment_expression "local_28 = uVar2 | local_28" identifier = (binary_expression "uVar2 | local_28" identifier | identifier)) ;) (expression_statement "pbVar8 = pbVar7;" (assignment_expression "pbVar8 = pbVar7" identifier = identifier) ;) }) while (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (expression_statement "bVar9 = (param_2 & 3) == 1;" (assignment_expression "bVar9 = (param_2 & 3) == 1" identifier = (binary_expression "(param_2 & 3) == 1" (parenthesized_expression "(param_2 & 3)" ( (binary_expression "param_2 & 3" identifier & number_literal) )) == number_literal)) ;) (expression_statement "DAT_000b7558 = local_2c;" (assignment_expression "DAT_000b7558 = local_2c" identifier = identifier) ;) (expression_statement "DAT_000b755c = local_28;" (assignment_expression "DAT_000b755c = local_28" identifier = identifier) ;) (expression_statement "*param_3 = (uint)bVar9;" (assignment_expression "*param_3 = (uint)bVar9" (pointer_expression "*param_3" * identifier) = (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "pcVar5 = "body";" (assignment_expression "pcVar5 = "body"" identifier = (string_literal ""body"" " string_content ")) ;) (if_statement "if (!bVar9) {\n    pcVar5 = "prologue";\n  }" if (parenthesized_expression "(!bVar9)" ( (unary_expression "!bVar9" ! identifier) )) (compound_statement "{\n    pcVar5 = "prologue";\n  }" { (expression_statement "pcVar5 = "prologue";" (assignment_expression "pcVar5 = "prologue"" identifier = (string_literal ""prologue"" " string_content ")) ;) })) (expression_statement "printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);" (call_expression "printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c)" identifier (argument_list "("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c)" ( (string_literal ""    %s:%s(rlen=%lu)\n"" " string_content escape_sequence ") , (pointer_expression "&DAT_0008e659" & identifier) , identifier , identifier ))) ;) (return_statement "return pbVar7;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuchar * unw_decode_r3(uchar *dp,uint code,void *arg,uchar *end)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  byte bVar6;\n  byte *pbVar7;\n  bool bVar9;\n  uint local_2c;\n  uint local_28;\n  byte *pbVar8;\n  \n  local_28 = 0;\n  pbVar7 = dp + 1;\n  local_2c = *dp & 0x7f;\n  if ((char)*dp < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }\n  bVar9 = (code & 3) == 1;\n  unw_rlen._0_4_ = local_2c;\n  unw_rlen._4_4_ = local_28;\n  *(uint *)arg = (uint)bVar9;\n  pcVar5 = "body";\n  if (!bVar9) {\n    pcVar5 = "prologue";\n  }\n  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);\n  return pbVar7;\n}\n\n" comment (function_definition "uchar * unw_decode_r3(uchar *dp,uint code,void *arg,uchar *end)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  byte bVar6;\n  byte *pbVar7;\n  bool bVar9;\n  uint local_2c;\n  uint local_28;\n  byte *pbVar8;\n  \n  local_28 = 0;\n  pbVar7 = dp + 1;\n  local_2c = *dp & 0x7f;\n  if ((char)*dp < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }\n  bVar9 = (code & 3) == 1;\n  unw_rlen._0_4_ = local_2c;\n  unw_rlen._4_4_ = local_28;\n  *(uint *)arg = (uint)bVar9;\n  pcVar5 = "body";\n  if (!bVar9) {\n    pcVar5 = "prologue";\n  }\n  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);\n  return pbVar7;\n}" type_identifier (pointer_declarator "* unw_decode_r3(uchar *dp,uint code,void *arg,uchar *end)" * (function_declarator "unw_decode_r3(uchar *dp,uint code,void *arg,uchar *end)" identifier (parameter_list "(uchar *dp,uint code,void *arg,uchar *end)" ( (parameter_declaration "uchar *dp" type_identifier (pointer_declarator "*dp" * identifier)) , (parameter_declaration "uint code" type_identifier identifier) , (parameter_declaration "void *arg" primitive_type (pointer_declarator "*arg" * identifier)) , (parameter_declaration "uchar *end" type_identifier (pointer_declarator "*end" * identifier)) )))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  byte bVar6;\n  byte *pbVar7;\n  bool bVar9;\n  uint local_2c;\n  uint local_28;\n  byte *pbVar8;\n  \n  local_28 = 0;\n  pbVar7 = dp + 1;\n  local_2c = *dp & 0x7f;\n  if ((char)*dp < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }\n  bVar9 = (code & 3) == 1;\n  unw_rlen._0_4_ = local_2c;\n  unw_rlen._4_4_ = local_28;\n  *(uint *)arg = (uint)bVar9;\n  pcVar5 = "body";\n  if (!bVar9) {\n    pcVar5 = "prologue";\n  }\n  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);\n  return pbVar7;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "pbVar7 = dp + 1;" (assignment_expression "pbVar7 = dp + 1" identifier = (binary_expression "dp + 1" identifier + number_literal)) ;) (expression_statement "local_2c = *dp & 0x7f;" (assignment_expression "local_2c = *dp & 0x7f" identifier = (binary_expression "*dp & 0x7f" (pointer_expression "*dp" * identifier) & number_literal)) ;) (if_statement "if ((char)*dp < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }" if (parenthesized_expression "((char)*dp < '\0')" ( (binary_expression "(char)*dp < '\0'" (cast_expression "(char)*dp" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*dp" * identifier)) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }" { (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "pbVar8 = pbVar7;" (assignment_expression "pbVar8 = pbVar7" identifier = identifier) ;) (do_statement "do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');" do (compound_statement "{\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    }" { (expression_statement "pbVar7 = pbVar8 + 1;" (assignment_expression "pbVar7 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "bVar6 = bVar6 + 7;" (assignment_expression "bVar6 = bVar6 + 7" identifier = (binary_expression "bVar6 + 7" identifier + number_literal)) ;) (expression_statement "uVar2 = bVar1 & 0x7f;" (assignment_expression "uVar2 = bVar1 & 0x7f" identifier = (binary_expression "bVar1 & 0x7f" identifier & number_literal)) ;) (expression_statement "uVar3 = uVar2 << (bVar6 & 0x1f);" (assignment_expression "uVar3 = uVar2 << (bVar6 & 0x1f)" identifier = (binary_expression "uVar2 << (bVar6 & 0x1f)" identifier << (parenthesized_expression "(bVar6 & 0x1f)" ( (binary_expression "bVar6 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (expression_statement "uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);" (assignment_expression "uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f)" identifier = (binary_expression "0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f)" (binary_expression "0 << (bVar6 & 0x1f)" number_literal << (parenthesized_expression "(bVar6 & 0x1f)" ( (binary_expression "bVar6 & 0x1f" identifier & number_literal) ))) | (binary_expression "uVar2 >> 0x20 - (bVar6 & 0x1f)" identifier >> (binary_expression "0x20 - (bVar6 & 0x1f)" number_literal - (parenthesized_expression "(bVar6 & 0x1f)" ( (binary_expression "bVar6 & 0x1f" identifier & number_literal) )))))) ;) (if_statement "if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }" if (parenthesized_expression "((bVar6 & 0x20) != 0)" ( (binary_expression "(bVar6 & 0x20) != 0" (parenthesized_expression "(bVar6 & 0x20)" ( (binary_expression "bVar6 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" identifier = identifier) ;) })) (expression_statement "local_2c = uVar4 | local_2c;" (assignment_expression "local_2c = uVar4 | local_2c" identifier = (binary_expression "uVar4 | local_2c" identifier | identifier)) ;) (expression_statement "local_28 = uVar2 | local_28;" (assignment_expression "local_28 = uVar2 | local_28" identifier = (binary_expression "uVar2 | local_28" identifier | identifier)) ;) (expression_statement "pbVar8 = pbVar7;" (assignment_expression "pbVar8 = pbVar7" identifier = identifier) ;) }) while (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (expression_statement "bVar9 = (code & 3) == 1;" (assignment_expression "bVar9 = (code & 3) == 1" identifier = (binary_expression "(code & 3) == 1" (parenthesized_expression "(code & 3)" ( (binary_expression "code & 3" identifier & number_literal) )) == number_literal)) ;) (expression_statement "unw_rlen._0_4_ = local_2c;" (assignment_expression "unw_rlen._0_4_ = local_2c" (field_expression "unw_rlen._0_4_" identifier . field_identifier) = identifier) ;) (expression_statement "unw_rlen._4_4_ = local_28;" (assignment_expression "unw_rlen._4_4_ = local_28" (field_expression "unw_rlen._4_4_" identifier . field_identifier) = identifier) ;) (expression_statement "*(uint *)arg = (uint)bVar9;" (assignment_expression "*(uint *)arg = (uint)bVar9" (pointer_expression "*(uint *)arg" * (cast_expression "(uint *)arg" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "pcVar5 = "body";" (assignment_expression "pcVar5 = "body"" identifier = (string_literal ""body"" " string_content ")) ;) (if_statement "if (!bVar9) {\n    pcVar5 = "prologue";\n  }" if (parenthesized_expression "(!bVar9)" ( (unary_expression "!bVar9" ! identifier) )) (compound_statement "{\n    pcVar5 = "prologue";\n  }" { (expression_statement "pcVar5 = "prologue";" (assignment_expression "pcVar5 = "prologue"" identifier = (string_literal ""prologue"" " string_content ")) ;) })) (expression_statement "printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);" (call_expression "printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c)" identifier (argument_list "("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c)" ( (string_literal ""    %s:%s(rlen=%lu)\n"" " string_content escape_sequence ") , (pointer_expression "&DAT_0008e659" & identifier) , identifier , identifier ))) ;) (return_statement "return pbVar7;" return identifier ;) })))
(translation_unit "byte * FUN_0004af20(byte *param_1,uint param_2,uint *param_3)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  byte bVar6;\n  byte *pbVar7;\n  bool bVar9;\n  uint local_2c;\n  uint local_28;\n  byte *pbVar8;\n  \n  local_28 = 0;\n  pbVar7 = param_1 + 1;\n  local_2c = *param_1 & 0x7f;\n  if ((char)*param_1 < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }\n  bVar9 = (param_2 & 3) == 1;\n  DAT_000b7558 = local_2c;\n  DAT_000b755c = local_28;\n  *param_3 = (uint)bVar9;\n  pcVar5 = "body";\n  if (!bVar9) {\n    pcVar5 = "prologue";\n  }\n  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);\n  return pbVar7;\n}\n\n" (function_definition "byte * FUN_0004af20(byte *param_1,uint param_2,uint *param_3)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  byte bVar6;\n  byte *pbVar7;\n  bool bVar9;\n  uint local_2c;\n  uint local_28;\n  byte *pbVar8;\n  \n  local_28 = 0;\n  pbVar7 = param_1 + 1;\n  local_2c = *param_1 & 0x7f;\n  if ((char)*param_1 < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }\n  bVar9 = (param_2 & 3) == 1;\n  DAT_000b7558 = local_2c;\n  DAT_000b755c = local_28;\n  *param_3 = (uint)bVar9;\n  pcVar5 = "body";\n  if (!bVar9) {\n    pcVar5 = "prologue";\n  }\n  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);\n  return pbVar7;\n}" type_identifier (pointer_declarator "* FUN_0004af20(byte *param_1,uint param_2,uint *param_3)" * (function_declarator "FUN_0004af20(byte *param_1,uint param_2,uint *param_3)" identifier (parameter_list "(byte *param_1,uint param_2,uint *param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  byte bVar6;\n  byte *pbVar7;\n  bool bVar9;\n  uint local_2c;\n  uint local_28;\n  byte *pbVar8;\n  \n  local_28 = 0;\n  pbVar7 = param_1 + 1;\n  local_2c = *param_1 & 0x7f;\n  if ((char)*param_1 < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }\n  bVar9 = (param_2 & 3) == 1;\n  DAT_000b7558 = local_2c;\n  DAT_000b755c = local_28;\n  *param_3 = (uint)bVar9;\n  pcVar5 = "body";\n  if (!bVar9) {\n    pcVar5 = "prologue";\n  }\n  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);\n  return pbVar7;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "pbVar7 = param_1 + 1;" (assignment_expression "pbVar7 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "local_2c = *param_1 & 0x7f;" (assignment_expression "local_2c = *param_1 & 0x7f" identifier = (binary_expression "*param_1 & 0x7f" (pointer_expression "*param_1" * identifier) & number_literal)) ;) (if_statement "if ((char)*param_1 < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }" if (parenthesized_expression "((char)*param_1 < '\0')" ( (binary_expression "(char)*param_1 < '\0'" (cast_expression "(char)*param_1" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*param_1" * identifier)) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }" { (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "pbVar8 = pbVar7;" (assignment_expression "pbVar8 = pbVar7" identifier = identifier) ;) (do_statement "do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');" do (compound_statement "{\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    }" { (expression_statement "pbVar7 = pbVar8 + 1;" (assignment_expression "pbVar7 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "bVar6 = bVar6 + 7;" (assignment_expression "bVar6 = bVar6 + 7" identifier = (binary_expression "bVar6 + 7" identifier + number_literal)) ;) (expression_statement "uVar2 = bVar1 & 0x7f;" (assignment_expression "uVar2 = bVar1 & 0x7f" identifier = (binary_expression "bVar1 & 0x7f" identifier & number_literal)) ;) (expression_statement "uVar3 = uVar2 << (bVar6 & 0x1f);" (assignment_expression "uVar3 = uVar2 << (bVar6 & 0x1f)" identifier = (binary_expression "uVar2 << (bVar6 & 0x1f)" identifier << (parenthesized_expression "(bVar6 & 0x1f)" ( (binary_expression "bVar6 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (expression_statement "uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);" (assignment_expression "uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f)" identifier = (binary_expression "0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f)" (binary_expression "0 << (bVar6 & 0x1f)" number_literal << (parenthesized_expression "(bVar6 & 0x1f)" ( (binary_expression "bVar6 & 0x1f" identifier & number_literal) ))) | (binary_expression "uVar2 >> 0x20 - (bVar6 & 0x1f)" identifier >> (binary_expression "0x20 - (bVar6 & 0x1f)" number_literal - (parenthesized_expression "(bVar6 & 0x1f)" ( (binary_expression "bVar6 & 0x1f" identifier & number_literal) )))))) ;) (if_statement "if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }" if (parenthesized_expression "((bVar6 & 0x20) != 0)" ( (binary_expression "(bVar6 & 0x20) != 0" (parenthesized_expression "(bVar6 & 0x20)" ( (binary_expression "bVar6 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" identifier = identifier) ;) })) (expression_statement "local_2c = uVar4 | local_2c;" (assignment_expression "local_2c = uVar4 | local_2c" identifier = (binary_expression "uVar4 | local_2c" identifier | identifier)) ;) (expression_statement "local_28 = uVar2 | local_28;" (assignment_expression "local_28 = uVar2 | local_28" identifier = (binary_expression "uVar2 | local_28" identifier | identifier)) ;) (expression_statement "pbVar8 = pbVar7;" (assignment_expression "pbVar8 = pbVar7" identifier = identifier) ;) }) while (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (expression_statement "bVar9 = (param_2 & 3) == 1;" (assignment_expression "bVar9 = (param_2 & 3) == 1" identifier = (binary_expression "(param_2 & 3) == 1" (parenthesized_expression "(param_2 & 3)" ( (binary_expression "param_2 & 3" identifier & number_literal) )) == number_literal)) ;) (expression_statement "DAT_000b7558 = local_2c;" (assignment_expression "DAT_000b7558 = local_2c" identifier = identifier) ;) (expression_statement "DAT_000b755c = local_28;" (assignment_expression "DAT_000b755c = local_28" identifier = identifier) ;) (expression_statement "*param_3 = (uint)bVar9;" (assignment_expression "*param_3 = (uint)bVar9" (pointer_expression "*param_3" * identifier) = (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "pcVar5 = "body";" (assignment_expression "pcVar5 = "body"" identifier = (string_literal ""body"" " string_content ")) ;) (if_statement "if (!bVar9) {\n    pcVar5 = "prologue";\n  }" if (parenthesized_expression "(!bVar9)" ( (unary_expression "!bVar9" ! identifier) )) (compound_statement "{\n    pcVar5 = "prologue";\n  }" { (expression_statement "pcVar5 = "prologue";" (assignment_expression "pcVar5 = "prologue"" identifier = (string_literal ""prologue"" " string_content ")) ;) })) (expression_statement "printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);" (call_expression "printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c)" identifier (argument_list "("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c)" ( (string_literal ""    %s:%s(rlen=%lu)\n"" " string_content escape_sequence ") , (pointer_expression "&DAT_0008e659" & identifier) , identifier , identifier ))) ;) (return_statement "return pbVar7;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) < (char_literal ' escape_sequence ')) )) (compound_statement { (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 << (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression LIT << (parenthesized_expression ( (binary_expression IDENT & LIT) ))) | (binary_expression IDENT >> (binary_expression LIT - (parenthesized_expression ( (binary_expression IDENT & LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | 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 IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , (pointer_expression & IDENT) , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "byte * FUN_0004af20(byte *param_1,uint param_2,uint *param_3)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  byte bVar6;\n  byte *pbVar7;\n  bool bVar9;\n  uint local_2c;\n  uint local_28;\n  byte *pbVar8;\n  \n  local_28 = 0;\n  pbVar7 = param_1 + 1;\n  local_2c = *param_1 & 0x7f;\n  if ((char)*param_1 < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }\n  bVar9 = (param_2 & 3) == 1;\n  DAT_000b7558 = local_2c;\n  DAT_000b755c = local_28;\n  *param_3 = (uint)bVar9;\n  pcVar5 = "body";\n  if (!bVar9) {\n    pcVar5 = "prologue";\n  }\n  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);\n  return pbVar7;\n}" (type_identifier "byte") (pointer_declarator "* FUN_0004af20(byte *param_1,uint param_2,uint *param_3)" (* "*") (function_declarator "FUN_0004af20(byte *param_1,uint param_2,uint *param_3)" (identifier "FUN_0004af20") (parameter_list "(byte *param_1,uint param_2,uint *param_3)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  byte bVar6;\n  byte *pbVar7;\n  bool bVar9;\n  uint local_2c;\n  uint local_28;\n  byte *pbVar8;\n  \n  local_28 = 0;\n  pbVar7 = param_1 + 1;\n  local_2c = *param_1 & 0x7f;\n  if ((char)*param_1 < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }\n  bVar9 = (param_2 & 3) == 1;\n  DAT_000b7558 = local_2c;\n  DAT_000b755c = local_28;\n  *param_3 = (uint)bVar9;\n  pcVar5 = "body";\n  if (!bVar9) {\n    pcVar5 = "prologue";\n  }\n  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);\n  return pbVar7;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "bool bVar9;" (primitive_type "bool") (identifier "bVar9") (; ";")) (declaration "uint local_2c;" (type_identifier "uint") (identifier "local_2c") (; ";")) (declaration "uint local_28;" (type_identifier "uint") (identifier "local_28") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar7 = param_1 + 1;" (assignment_expression "pbVar7 = param_1 + 1" (identifier "pbVar7") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_2c = *param_1 & 0x7f;" (assignment_expression "local_2c = *param_1 & 0x7f" (identifier "local_2c") (= "=") (binary_expression "*param_1 & 0x7f" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "0x7f"))) (; ";")) (if_statement "if ((char)*param_1 < '\0') {\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }" (if "if") (parenthesized_expression "((char)*param_1 < '\0')" (( "(") (binary_expression "(char)*param_1 < '\0'" (cast_expression "(char)*param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    bVar6 = 0;\n    pbVar8 = pbVar7;\n    do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');\n  }" ({ "{") (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" (identifier "bVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar8 = pbVar7;" (assignment_expression "pbVar8 = pbVar7" (identifier "pbVar8") (= "=") (identifier "pbVar7")) (; ";")) (do_statement "do {\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    } while ((char)bVar1 < '\0');" (do "do") (compound_statement "{\n      pbVar7 = pbVar8 + 1;\n      bVar1 = *pbVar8;\n      bVar6 = bVar6 + 7;\n      uVar2 = bVar1 & 0x7f;\n      uVar3 = uVar2 << (bVar6 & 0x1f);\n      uVar4 = uVar3;\n      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);\n      if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }\n      local_2c = uVar4 | local_2c;\n      local_28 = uVar2 | local_28;\n      pbVar8 = pbVar7;\n    }" ({ "{") (expression_statement "pbVar7 = pbVar8 + 1;" (assignment_expression "pbVar7 = pbVar8 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar8 + 1" (identifier "pbVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" (identifier "bVar1") (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (expression_statement "bVar6 = bVar6 + 7;" (assignment_expression "bVar6 = bVar6 + 7" (identifier "bVar6") (= "=") (binary_expression "bVar6 + 7" (identifier "bVar6") (+ "+") (number_literal "7"))) (; ";")) (expression_statement "uVar2 = bVar1 & 0x7f;" (assignment_expression "uVar2 = bVar1 & 0x7f" (identifier "uVar2") (= "=") (binary_expression "bVar1 & 0x7f" (identifier "bVar1") (& "&") (number_literal "0x7f"))) (; ";")) (expression_statement "uVar3 = uVar2 << (bVar6 & 0x1f);" (assignment_expression "uVar3 = uVar2 << (bVar6 & 0x1f)" (identifier "uVar3") (= "=") (binary_expression "uVar2 << (bVar6 & 0x1f)" (identifier "uVar2") (<< "<<") (parenthesized_expression "(bVar6 & 0x1f)" (( "(") (binary_expression "bVar6 & 0x1f" (identifier "bVar6") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" (identifier "uVar4") (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);" (assignment_expression "uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f)" (identifier "uVar2") (= "=") (binary_expression "0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f)" (binary_expression "0 << (bVar6 & 0x1f)" (number_literal "0") (<< "<<") (parenthesized_expression "(bVar6 & 0x1f)" (( "(") (binary_expression "bVar6 & 0x1f" (identifier "bVar6") (& "&") (number_literal "0x1f")) () ")"))) (| "|") (binary_expression "uVar2 >> 0x20 - (bVar6 & 0x1f)" (identifier "uVar2") (>> ">>") (binary_expression "0x20 - (bVar6 & 0x1f)" (number_literal "0x20") (- "-") (parenthesized_expression "(bVar6 & 0x1f)" (( "(") (binary_expression "bVar6 & 0x1f" (identifier "bVar6") (& "&") (number_literal "0x1f")) () ")")))))) (; ";")) (if_statement "if ((bVar6 & 0x20) != 0) {\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }" (if "if") (parenthesized_expression "((bVar6 & 0x20) != 0)" (( "(") (binary_expression "(bVar6 & 0x20) != 0" (parenthesized_expression "(bVar6 & 0x20)" (( "(") (binary_expression "bVar6 & 0x20" (identifier "bVar6") (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar4 = 0;\n        uVar2 = uVar3;\n      }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" (identifier "uVar2") (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (expression_statement "local_2c = uVar4 | local_2c;" (assignment_expression "local_2c = uVar4 | local_2c" (identifier "local_2c") (= "=") (binary_expression "uVar4 | local_2c" (identifier "uVar4") (| "|") (identifier "local_2c"))) (; ";")) (expression_statement "local_28 = uVar2 | local_28;" (assignment_expression "local_28 = uVar2 | local_28" (identifier "local_28") (= "=") (binary_expression "uVar2 | local_28" (identifier "uVar2") (| "|") (identifier "local_28"))) (; ";")) (expression_statement "pbVar8 = pbVar7;" (assignment_expression "pbVar8 = pbVar7" (identifier "pbVar8") (= "=") (identifier "pbVar7")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((char)bVar1 < '\0')" (( "(") (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar1")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (} "}"))) (expression_statement "bVar9 = (param_2 & 3) == 1;" (assignment_expression "bVar9 = (param_2 & 3) == 1" (identifier "bVar9") (= "=") (binary_expression "(param_2 & 3) == 1" (parenthesized_expression "(param_2 & 3)" (( "(") (binary_expression "param_2 & 3" (identifier "param_2") (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "1"))) (; ";")) (expression_statement "DAT_000b7558 = local_2c;" (assignment_expression "DAT_000b7558 = local_2c" (identifier "DAT_000b7558") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "DAT_000b755c = local_28;" (assignment_expression "DAT_000b755c = local_28" (identifier "DAT_000b755c") (= "=") (identifier "local_28")) (; ";")) (expression_statement "*param_3 = (uint)bVar9;" (assignment_expression "*param_3 = (uint)bVar9" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9"))) (; ";")) (expression_statement "pcVar5 = "body";" (assignment_expression "pcVar5 = "body"" (identifier "pcVar5") (= "=") (string_literal ""body"" (" """) (string_content "body") (" """))) (; ";")) (if_statement "if (!bVar9) {\n    pcVar5 = "prologue";\n  }" (if "if") (parenthesized_expression "(!bVar9)" (( "(") (unary_expression "!bVar9" (! "!") (identifier "bVar9")) () ")")) (compound_statement "{\n    pcVar5 = "prologue";\n  }" ({ "{") (expression_statement "pcVar5 = "prologue";" (assignment_expression "pcVar5 = "prologue"" (identifier "pcVar5") (= "=") (string_literal ""prologue"" (" """) (string_content "prologue") (" """))) (; ";")) (} "}"))) (expression_statement "printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);" (call_expression "printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c)" (identifier "printf") (argument_list "("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c)" (( "(") (string_literal ""    %s:%s(rlen=%lu)\n"" (" """) (string_content "    %s:%s(rlen=%lu)") (escape_sequence "\n") (" """)) (, ",") (pointer_expression "&DAT_0008e659" (& "&") (identifier "DAT_0008e659")) (, ",") (identifier "pcVar5") (, ",") (identifier "local_2c") () ")"))) (; ";")) (return_statement "return pbVar7;" (return "return") (identifier "pbVar7") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 * function_1(type_1 *var_1,type_2 var_9,void *arg,type_1 *end)

{
  type_3 var_4;
  type_2 var_5;
  type_2 uVar3;
  type_2 var_6;
  char *pcVar5;
  type_3 var_3;
  type_3 *pbVar7;
  bool bVar9;
  type_2 var_7;
  type_2 var_8;
  type_3 *var_2;
  
  var_8 = 0;
  pbVar7 = var_1 + 1;
  var_7 = *var_1 & 0x7f;
  if ((char)*var_1 < '\0') {
    var_3 = 0;
    var_2 = pbVar7;
    do {
      pbVar7 = var_2 + 1;
      var_4 = *var_2;
      var_3 = var_3 + 7;
      var_5 = var_4 & 0x7f;
      uVar3 = var_5 << (var_3 & 0x1f);
      var_6 = uVar3;
      var_5 = 0 << (var_3 & 0x1f) | var_5 >> 0x20 - (var_3 & 0x1f);
      if ((var_3 & 0x20) != 0) {
        var_6 = 0;
        var_5 = uVar3;
      }
      var_7 = var_6 | var_7;
      var_8 = var_5 | var_8;
      var_2 = pbVar7;
    } while ((char)var_4 < '\0');
  }
  bVar9 = (var_9 & 3) == 1;
  unw_rlen._0_4_ = var_7;
  unw_rlen._4_4_ = var_8;
  *(type_2 *)arg = (type_2)bVar9;
  pcVar5 = "body";
  if (!bVar9) {
    pcVar5 = "prologue";
  }
  var_10("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,var_7);
  return pbVar7;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

byte * MASKED(byte *param_1,uint param_2,uint *param_3)

{
  byte bVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  char *pcVar5;
  byte bVar6;
  byte *pbVar7;
  bool bVar9;
  uint local_2c;
  uint local_28;
  byte *pbVar8;
  
  local_28 = 0;
  pbVar7 = param_1 + 1;
  local_2c = *param_1 & 0x7f;
  if ((char)*param_1 < '\0') {
    bVar6 = 0;
    pbVar8 = pbVar7;
    do {
      pbVar7 = pbVar8 + 1;
      bVar1 = *pbVar8;
      bVar6 = bVar6 + 7;
      uVar2 = bVar1 & 0x7f;
      uVar3 = uVar2 << (bVar6 & 0x1f);
      uVar4 = uVar3;
      uVar2 = 0 << (bVar6 & 0x1f) | uVar2 >> 0x20 - (bVar6 & 0x1f);
      if ((bVar6 & 0x20) != 0) {
        uVar4 = 0;
        uVar2 = uVar3;
      }
      local_2c = uVar4 | local_2c;
      local_28 = uVar2 | local_28;
      pbVar8 = pbVar7;
    } while ((char)bVar1 < '\0');
  }
  bVar9 = (param_2 & 3) == 1;
  DAT_000b7558 = local_2c;
  DAT_000b755c = local_28;
  *param_3 = (uint)bVar9;
  pcVar5 = "body";
  if (!bVar9) {
    pcVar5 = "prologue";
  }
  printf("    %s:%s(rlen=%lu)\n",&DAT_0008e659,pcVar5,local_2c);
  return pbVar7;
}

