
void __regparm3
fts3PutDeltaVarint3(char **pp,int bDescIdx,sqlite3_int64 *piPrev,int *pbFirst,sqlite3_int64 iVal)

{
  byte *pbVar1;
  ulonglong uVar2;
  ulonglong uVar3;
  ulonglong uVar4;
  byte *pbVar5;
  byte bVar6;
  uint uVar7;
  byte *pbVar8;
  
  if ((bDescIdx == 0) || (*pbFirst == 0)) {
    uVar2 = iVal - *piPrev;
  }
  else {
    uVar2 = CONCAT44((*(int *)((int)piPrev + 4) - iVal._4_4_) - (uint)((uint)*piPrev < (uint)iVal),
                     (uint)*piPrev - (uint)iVal);
  }
  pbVar1 = (byte *)*pp;
  pbVar5 = pbVar1;
  do {
    pbVar8 = pbVar5;
    uVar7 = (uint)uVar2;
    bVar6 = (byte)uVar2;
    uVar4 = uVar2 & 0x7f00000000;
    uVar3 = uVar2 >> 7;
    uVar2 = uVar2 >> 7;
    *pbVar8 = bVar6 | 0x80;
    pbVar5 = pbVar8 + 1;
  } while ((int)(uVar3 >> 0x20) != 0 || (uVar7 >> 7 != 0 || uVar4 != 0));
  *pbVar8 = bVar6 & 0x7f;
  *pp = *pp + ((int)(pbVar8 + 1) - (int)pbVar1);
  *piPrev = iVal;
  *pbFirst = 1;
  return;
}



void __regparm3
FUN_0001fbf0(int *param_1,int param_2,uint *param_3,int *param_4,uint param_5,uint param_6)

{
  byte *pbVar1;
  byte *pbVar2;
  byte bVar3;
  uint uVar4;
  byte *pbVar5;
  uint uVar6;
  
  uVar6 = *param_3;
  if ((param_2 == 0) || (*param_4 == 0)) {
    uVar4 = param_5 - uVar6;
    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);
  }
  else {
    uVar4 = uVar6 - param_5;
    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);
  }
  pbVar1 = (byte *)*param_1;
  pbVar2 = pbVar1;
  do {
    pbVar5 = pbVar2;
    bVar3 = (byte)uVar4;
    uVar4 = uVar4 >> 7 | uVar6 << 0x19;
    uVar6 = uVar6 >> 7;
    *pbVar5 = bVar3 | 0x80;
    pbVar2 = pbVar5 + 1;
  } while (uVar6 != 0 || uVar4 != 0);
  *pbVar5 = bVar3 & 0x7f;
  *param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1));
  param_3[1] = param_6;
  *param_3 = param_5;
  *param_4 = 1;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,EDX
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x14],ECX
MOV dword ptr [ESP + 0xc],EDX
MOV EDX,dword ptr [ECX + 0x4]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ECX]
TEST EBX,EBX
JZ 0x0001fc24
MOV EBX,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [EBX]
TEST ESI,ESI
JNZ 0x0001fca0
MOV ESI,dword ptr [ESP + 0x8]
MOV EDI,dword ptr [ESP + 0xc]
SUB ESI,EAX
SBB EDI,EDX
MOV EAX,ESI
MOV EDX,EDI
MOV EBX,dword ptr [ESP + 0x4]
MOV ESI,dword ptr [EBX]
MOV dword ptr [ESP + 0x10],ESI
JMP 0x0001fc42
MOV ESI,ECX
MOV EDI,EAX
MOV byte ptr [ESP + 0x3],AL
SHRD EAX,EDX,0x7
LEA ECX,[ESI + 0x1]
SHR EDX,0x7
OR EDI,0xffffff80
MOV EBP,EDX
MOV EBX,EDI
OR EBP,EAX
MOV byte ptr [ECX + -0x1],BL
JNZ 0x0001fc40
MOVZX EBX,byte ptr [ESP + 0x3]
MOV EAX,dword ptr [ESP + 0x4]
SUB ECX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0xc]
AND EBX,0x7f
MOV byte ptr [ESI],BL
MOV EBX,dword ptr [ESP + 0x14]
ADD dword ptr [EAX],ECX
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EBX + 0x4],EDX
MOV dword ptr [EBX],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX],0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB EAX,dword ptr [ESP + 0x8]
SBB EDX,dword ptr [ESP + 0xc]
JMP 0x0001fc34
(translation_unit "void __regparm3\nFUN_0001fbf0(int *param_1,int param_2,uint *param_3,int *param_4,uint param_5,uint param_6)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  uVar6 = *param_3;\n  if ((param_2 == 0) || (*param_4 == 0)) {\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }\n  else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }\n  pbVar1 = (byte *)*param_1;\n  pbVar2 = pbVar1;\n  do {\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  } while (uVar6 != 0 || uVar4 != 0);\n  *pbVar5 = bVar3 & 0x7f;\n  *param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1));\n  param_3[1] = param_6;\n  *param_3 = param_5;\n  *param_4 = 1;\n  return;\n}\n\n" (function_definition "void __regparm3\nFUN_0001fbf0(int *param_1,int param_2,uint *param_3,int *param_4,uint param_5,uint param_6)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  uVar6 = *param_3;\n  if ((param_2 == 0) || (*param_4 == 0)) {\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }\n  else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }\n  pbVar1 = (byte *)*param_1;\n  pbVar2 = pbVar1;\n  do {\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  } while (uVar6 != 0 || uVar4 != 0);\n  *pbVar5 = bVar3 & 0x7f;\n  *param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1));\n  param_3[1] = param_6;\n  *param_3 = param_5;\n  *param_4 = 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001fbf0(int *param_1,int param_2,uint *param_3,int *param_4,uint param_5,uint param_6)" identifier (parameter_list "(int *param_1,int param_2,uint *param_3,int *param_4,uint param_5,uint param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "uint param_6" type_identifier identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  uVar6 = *param_3;\n  if ((param_2 == 0) || (*param_4 == 0)) {\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }\n  else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }\n  pbVar1 = (byte *)*param_1;\n  pbVar2 = pbVar1;\n  do {\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  } while (uVar6 != 0 || uVar4 != 0);\n  *pbVar5 = bVar3 & 0x7f;\n  *param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1));\n  param_3[1] = param_6;\n  *param_3 = param_5;\n  *param_4 = 1;\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "uVar6 = *param_3;" (assignment_expression "uVar6 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if ((param_2 == 0) || (*param_4 == 0)) {\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }\n  else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }" if (parenthesized_expression "((param_2 == 0) || (*param_4 == 0))" ( (binary_expression "(param_2 == 0) || (*param_4 == 0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "(*param_4 == 0)" ( (binary_expression "*param_4 == 0" (pointer_expression "*param_4" * identifier) == number_literal) ))) )) (compound_statement "{\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }" { (expression_statement "uVar4 = param_5 - uVar6;" (assignment_expression "uVar4 = param_5 - uVar6" identifier = (binary_expression "param_5 - uVar6" identifier - identifier)) ;) (expression_statement "uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);" (assignment_expression "uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6)" identifier = (binary_expression "(param_6 - param_3[1]) - (uint)(param_5 < uVar6)" (parenthesized_expression "(param_6 - param_3[1])" ( (binary_expression "param_6 - param_3[1]" identifier - (subscript_expression "param_3[1]" identifier [ number_literal ])) )) - (call_expression "(uint)(param_5 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_5 < uVar6)" ( (binary_expression "param_5 < uVar6" identifier < identifier) ))))) ;) }) (else_clause "else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }" else (compound_statement "{\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }" { (expression_statement "uVar4 = uVar6 - param_5;" (assignment_expression "uVar4 = uVar6 - param_5" identifier = (binary_expression "uVar6 - param_5" identifier - identifier)) ;) (expression_statement "uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);" (assignment_expression "uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5)" identifier = (binary_expression "(param_3[1] - param_6) - (uint)(uVar6 < param_5)" (parenthesized_expression "(param_3[1] - param_6)" ( (binary_expression "param_3[1] - param_6" (subscript_expression "param_3[1]" identifier [ number_literal ]) - identifier) )) - (call_expression "(uint)(uVar6 < param_5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < param_5)" ( (binary_expression "uVar6 < param_5" identifier < identifier) ))))) ;) }))) (expression_statement "pbVar1 = (byte *)*param_1;" (assignment_expression "pbVar1 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "pbVar2 = pbVar1;" (assignment_expression "pbVar2 = pbVar1" identifier = identifier) ;) (do_statement "do {\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  } while (uVar6 != 0 || uVar4 != 0);" do (compound_statement "{\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  }" { (expression_statement "pbVar5 = pbVar2;" (assignment_expression "pbVar5 = pbVar2" identifier = identifier) ;) (expression_statement "bVar3 = (byte)uVar4;" (assignment_expression "bVar3 = (byte)uVar4" identifier = (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar4 = uVar4 >> 7 | uVar6 << 0x19;" (assignment_expression "uVar4 = uVar4 >> 7 | uVar6 << 0x19" identifier = (binary_expression "uVar4 >> 7 | uVar6 << 0x19" (binary_expression "uVar4 >> 7" identifier >> number_literal) | (binary_expression "uVar6 << 0x19" identifier << number_literal))) ;) (expression_statement "uVar6 = uVar6 >> 7;" (assignment_expression "uVar6 = uVar6 >> 7" identifier = (binary_expression "uVar6 >> 7" identifier >> number_literal)) ;) (expression_statement "*pbVar5 = bVar3 | 0x80;" (assignment_expression "*pbVar5 = bVar3 | 0x80" (pointer_expression "*pbVar5" * identifier) = (binary_expression "bVar3 | 0x80" identifier | number_literal)) ;) (expression_statement "pbVar2 = pbVar5 + 1;" (assignment_expression "pbVar2 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 != 0 || uVar4 != 0)" ( (binary_expression "uVar6 != 0 || uVar4 != 0" (binary_expression "uVar6 != 0" identifier != number_literal) || (binary_expression "uVar4 != 0" identifier != number_literal)) )) ;) (expression_statement "*pbVar5 = bVar3 & 0x7f;" (assignment_expression "*pbVar5 = bVar3 & 0x7f" (pointer_expression "*pbVar5" * identifier) = (binary_expression "bVar3 & 0x7f" identifier & number_literal)) ;) (expression_statement "*param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1));" (assignment_expression "*param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1))" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar5 + 1 + (*param_1 - (int)pbVar1))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar5 + 1 + (*param_1 - (int)pbVar1))" ( (binary_expression "pbVar5 + 1 + (*param_1 - (int)pbVar1)" (binary_expression "pbVar5 + 1" identifier + number_literal) + (parenthesized_expression "(*param_1 - (int)pbVar1)" ( (binary_expression "*param_1 - (int)pbVar1" (pointer_expression "*param_1" * identifier) - (cast_expression "(int)pbVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )))) ;) (expression_statement "param_3[1] = param_6;" (assignment_expression "param_3[1] = param_6" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_3 = param_5;" (assignment_expression "*param_3 = param_5" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*param_4 = 1;" (assignment_expression "*param_4 = 1" (pointer_expression "*param_4" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3\nfts3PutDeltaVarint3(char **pp,int bDescIdx,sqlite3_int64 *piPrev,int *pbFirst,sqlite3_int64 iVal)\n\n{\n  byte *pbVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  ulonglong uVar4;\n  byte *pbVar5;\n  byte bVar6;\n  uint uVar7;\n  byte *pbVar8;\n  \n  if ((bDescIdx == 0) || (*pbFirst == 0)) {\n    uVar2 = iVal - *piPrev;\n  }\n  else {\n    uVar2 = CONCAT44((*(int *)((int)piPrev + 4) - iVal._4_4_) - (uint)((uint)*piPrev < (uint)iVal),\n                     (uint)*piPrev - (uint)iVal);\n  }\n  pbVar1 = (byte *)*pp;\n  pbVar5 = pbVar1;\n  do {\n    pbVar8 = pbVar5;\n    uVar7 = (uint)uVar2;\n    bVar6 = (byte)uVar2;\n    uVar4 = uVar2 & 0x7f00000000;\n    uVar3 = uVar2 >> 7;\n    uVar2 = uVar2 >> 7;\n    *pbVar8 = bVar6 | 0x80;\n    pbVar5 = pbVar8 + 1;\n  } while ((int)(uVar3 >> 0x20) != 0 || (uVar7 >> 7 != 0 || uVar4 != 0));\n  *pbVar8 = bVar6 & 0x7f;\n  *pp = *pp + ((int)(pbVar8 + 1) - (int)pbVar1);\n  *piPrev = iVal;\n  *pbFirst = 1;\n  return;\n}\n\n" (function_definition "void __regparm3\nfts3PutDeltaVarint3(char **pp,int bDescIdx,sqlite3_int64 *piPrev,int *pbFirst,sqlite3_int64 iVal)\n\n{\n  byte *pbVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  ulonglong uVar4;\n  byte *pbVar5;\n  byte bVar6;\n  uint uVar7;\n  byte *pbVar8;\n  \n  if ((bDescIdx == 0) || (*pbFirst == 0)) {\n    uVar2 = iVal - *piPrev;\n  }\n  else {\n    uVar2 = CONCAT44((*(int *)((int)piPrev + 4) - iVal._4_4_) - (uint)((uint)*piPrev < (uint)iVal),\n                     (uint)*piPrev - (uint)iVal);\n  }\n  pbVar1 = (byte *)*pp;\n  pbVar5 = pbVar1;\n  do {\n    pbVar8 = pbVar5;\n    uVar7 = (uint)uVar2;\n    bVar6 = (byte)uVar2;\n    uVar4 = uVar2 & 0x7f00000000;\n    uVar3 = uVar2 >> 7;\n    uVar2 = uVar2 >> 7;\n    *pbVar8 = bVar6 | 0x80;\n    pbVar5 = pbVar8 + 1;\n  } while ((int)(uVar3 >> 0x20) != 0 || (uVar7 >> 7 != 0 || uVar4 != 0));\n  *pbVar8 = bVar6 & 0x7f;\n  *pp = *pp + ((int)(pbVar8 + 1) - (int)pbVar1);\n  *piPrev = iVal;\n  *pbFirst = 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "fts3PutDeltaVarint3(char **pp,int bDescIdx,sqlite3_int64 *piPrev,int *pbFirst,sqlite3_int64 iVal)" identifier (parameter_list "(char **pp,int bDescIdx,sqlite3_int64 *piPrev,int *pbFirst,sqlite3_int64 iVal)" ( (parameter_declaration "char **pp" primitive_type (pointer_declarator "**pp" * (pointer_declarator "*pp" * identifier))) , (parameter_declaration "int bDescIdx" primitive_type identifier) , (parameter_declaration "sqlite3_int64 *piPrev" type_identifier (pointer_declarator "*piPrev" * identifier)) , (parameter_declaration "int *pbFirst" primitive_type (pointer_declarator "*pbFirst" * identifier)) , (parameter_declaration "sqlite3_int64 iVal" type_identifier identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  ulonglong uVar2;\n  ulonglong uVar3;\n  ulonglong uVar4;\n  byte *pbVar5;\n  byte bVar6;\n  uint uVar7;\n  byte *pbVar8;\n  \n  if ((bDescIdx == 0) || (*pbFirst == 0)) {\n    uVar2 = iVal - *piPrev;\n  }\n  else {\n    uVar2 = CONCAT44((*(int *)((int)piPrev + 4) - iVal._4_4_) - (uint)((uint)*piPrev < (uint)iVal),\n                     (uint)*piPrev - (uint)iVal);\n  }\n  pbVar1 = (byte *)*pp;\n  pbVar5 = pbVar1;\n  do {\n    pbVar8 = pbVar5;\n    uVar7 = (uint)uVar2;\n    bVar6 = (byte)uVar2;\n    uVar4 = uVar2 & 0x7f00000000;\n    uVar3 = uVar2 >> 7;\n    uVar2 = uVar2 >> 7;\n    *pbVar8 = bVar6 | 0x80;\n    pbVar5 = pbVar8 + 1;\n  } while ((int)(uVar3 >> 0x20) != 0 || (uVar7 >> 7 != 0 || uVar4 != 0));\n  *pbVar8 = bVar6 & 0x7f;\n  *pp = *pp + ((int)(pbVar8 + 1) - (int)pbVar1);\n  *piPrev = iVal;\n  *pbFirst = 1;\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "ulonglong uVar2;" type_identifier identifier ;) (declaration "ulonglong uVar3;" type_identifier identifier ;) (declaration "ulonglong uVar4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (if_statement "if ((bDescIdx == 0) || (*pbFirst == 0)) {\n    uVar2 = iVal - *piPrev;\n  }\n  else {\n    uVar2 = CONCAT44((*(int *)((int)piPrev + 4) - iVal._4_4_) - (uint)((uint)*piPrev < (uint)iVal),\n                     (uint)*piPrev - (uint)iVal);\n  }" if (parenthesized_expression "((bDescIdx == 0) || (*pbFirst == 0))" ( (binary_expression "(bDescIdx == 0) || (*pbFirst == 0)" (parenthesized_expression "(bDescIdx == 0)" ( (binary_expression "bDescIdx == 0" identifier == number_literal) )) || (parenthesized_expression "(*pbFirst == 0)" ( (binary_expression "*pbFirst == 0" (pointer_expression "*pbFirst" * identifier) == number_literal) ))) )) (compound_statement "{\n    uVar2 = iVal - *piPrev;\n  }" { (expression_statement "uVar2 = iVal - *piPrev;" (assignment_expression "uVar2 = iVal - *piPrev" identifier = (binary_expression "iVal - *piPrev" identifier - (pointer_expression "*piPrev" * identifier))) ;) }) (else_clause "else {\n    uVar2 = CONCAT44((*(int *)((int)piPrev + 4) - iVal._4_4_) - (uint)((uint)*piPrev < (uint)iVal),\n                     (uint)*piPrev - (uint)iVal);\n  }" else (compound_statement "{\n    uVar2 = CONCAT44((*(int *)((int)piPrev + 4) - iVal._4_4_) - (uint)((uint)*piPrev < (uint)iVal),\n                     (uint)*piPrev - (uint)iVal);\n  }" { (expression_statement "uVar2 = CONCAT44((*(int *)((int)piPrev + 4) - iVal._4_4_) - (uint)((uint)*piPrev < (uint)iVal),\n                     (uint)*piPrev - (uint)iVal);" (assignment_expression "uVar2 = CONCAT44((*(int *)((int)piPrev + 4) - iVal._4_4_) - (uint)((uint)*piPrev < (uint)iVal),\n                     (uint)*piPrev - (uint)iVal)" identifier = (call_expression "CONCAT44((*(int *)((int)piPrev + 4) - iVal._4_4_) - (uint)((uint)*piPrev < (uint)iVal),\n                     (uint)*piPrev - (uint)iVal)" identifier (argument_list "((*(int *)((int)piPrev + 4) - iVal._4_4_) - (uint)((uint)*piPrev < (uint)iVal),\n                     (uint)*piPrev - (uint)iVal)" ( (binary_expression "(*(int *)((int)piPrev + 4) - iVal._4_4_) - (uint)((uint)*piPrev < (uint)iVal)" (parenthesized_expression "(*(int *)((int)piPrev + 4) - iVal._4_4_)" ( (binary_expression "*(int *)((int)piPrev + 4) - iVal._4_4_" (pointer_expression "*(int *)((int)piPrev + 4)" * (cast_expression "(int *)((int)piPrev + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piPrev + 4)" ( (binary_expression "(int)piPrev + 4" (cast_expression "(int)piPrev" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) - (field_expression "iVal._4_4_" identifier . field_identifier)) )) - (call_expression "(uint)((uint)*piPrev < (uint)iVal)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)*piPrev < (uint)iVal)" ( (binary_expression "(uint)*piPrev < (uint)iVal" (binary_expression "(uint)*piPrev" (parenthesized_expression "(uint)" ( identifier )) * identifier) < (cast_expression "(uint)iVal" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) , (binary_expression "(uint)*piPrev - (uint)iVal" (binary_expression "(uint)*piPrev" (parenthesized_expression "(uint)" ( identifier )) * identifier) - (cast_expression "(uint)iVal" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) ;) }))) (expression_statement "pbVar1 = (byte *)*pp;" (assignment_expression "pbVar1 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "pbVar5 = pbVar1;" (assignment_expression "pbVar5 = pbVar1" identifier = identifier) ;) (do_statement "do {\n    pbVar8 = pbVar5;\n    uVar7 = (uint)uVar2;\n    bVar6 = (byte)uVar2;\n    uVar4 = uVar2 & 0x7f00000000;\n    uVar3 = uVar2 >> 7;\n    uVar2 = uVar2 >> 7;\n    *pbVar8 = bVar6 | 0x80;\n    pbVar5 = pbVar8 + 1;\n  } while ((int)(uVar3 >> 0x20) != 0 || (uVar7 >> 7 != 0 || uVar4 != 0));" do (compound_statement "{\n    pbVar8 = pbVar5;\n    uVar7 = (uint)uVar2;\n    bVar6 = (byte)uVar2;\n    uVar4 = uVar2 & 0x7f00000000;\n    uVar3 = uVar2 >> 7;\n    uVar2 = uVar2 >> 7;\n    *pbVar8 = bVar6 | 0x80;\n    pbVar5 = pbVar8 + 1;\n  }" { (expression_statement "pbVar8 = pbVar5;" (assignment_expression "pbVar8 = pbVar5" identifier = identifier) ;) (expression_statement "uVar7 = (uint)uVar2;" (assignment_expression "uVar7 = (uint)uVar2" identifier = (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "bVar6 = (byte)uVar2;" (assignment_expression "bVar6 = (byte)uVar2" identifier = (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar4 = uVar2 & 0x7f00000000;" (assignment_expression "uVar4 = uVar2 & 0x7f00000000" identifier = (binary_expression "uVar2 & 0x7f00000000" identifier & number_literal)) ;) (expression_statement "uVar3 = uVar2 >> 7;" (assignment_expression "uVar3 = uVar2 >> 7" identifier = (binary_expression "uVar2 >> 7" identifier >> number_literal)) ;) (expression_statement "uVar2 = uVar2 >> 7;" (assignment_expression "uVar2 = uVar2 >> 7" identifier = (binary_expression "uVar2 >> 7" identifier >> number_literal)) ;) (expression_statement "*pbVar8 = bVar6 | 0x80;" (assignment_expression "*pbVar8 = bVar6 | 0x80" (pointer_expression "*pbVar8" * identifier) = (binary_expression "bVar6 | 0x80" identifier | number_literal)) ;) (expression_statement "pbVar5 = pbVar8 + 1;" (assignment_expression "pbVar5 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)(uVar3 >> 0x20) != 0 || (uVar7 >> 7 != 0 || uVar4 != 0))" ( (binary_expression "(int)(uVar3 >> 0x20) != 0 || (uVar7 >> 7 != 0 || uVar4 != 0)" (binary_expression "(int)(uVar3 >> 0x20) != 0" (cast_expression "(int)(uVar3 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar3 >> 0x20)" ( (binary_expression "uVar3 >> 0x20" identifier >> number_literal) ))) != number_literal) || (parenthesized_expression "(uVar7 >> 7 != 0 || uVar4 != 0)" ( (binary_expression "uVar7 >> 7 != 0 || uVar4 != 0" (binary_expression "uVar7 >> 7 != 0" (binary_expression "uVar7 >> 7" identifier >> number_literal) != number_literal) || (binary_expression "uVar4 != 0" identifier != number_literal)) ))) )) ;) (expression_statement "*pbVar8 = bVar6 & 0x7f;" (assignment_expression "*pbVar8 = bVar6 & 0x7f" (pointer_expression "*pbVar8" * identifier) = (binary_expression "bVar6 & 0x7f" identifier & number_literal)) ;) (expression_statement "*pp = *pp + ((int)(pbVar8 + 1) - (int)pbVar1);" (assignment_expression "*pp = *pp + ((int)(pbVar8 + 1) - (int)pbVar1)" (pointer_expression "*pp" * identifier) = (binary_expression "*pp + ((int)(pbVar8 + 1) - (int)pbVar1)" (pointer_expression "*pp" * identifier) + (parenthesized_expression "((int)(pbVar8 + 1) - (int)pbVar1)" ( (binary_expression "(int)(pbVar8 + 1) - (int)pbVar1" (cast_expression "(int)(pbVar8 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar8 + 1)" ( (binary_expression "pbVar8 + 1" identifier + number_literal) ))) - (cast_expression "(int)pbVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*piPrev = iVal;" (assignment_expression "*piPrev = iVal" (pointer_expression "*piPrev" * identifier) = identifier) ;) (expression_statement "*pbFirst = 1;" (assignment_expression "*pbFirst = 1" (pointer_expression "*pbFirst" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3\nFUN_0001fbf0(int *param_1,int param_2,uint *param_3,int *param_4,uint param_5,uint param_6)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  uVar6 = *param_3;\n  if ((param_2 == 0) || (*param_4 == 0)) {\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }\n  else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }\n  pbVar1 = (byte *)*param_1;\n  pbVar2 = pbVar1;\n  do {\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  } while (uVar6 != 0 || uVar4 != 0);\n  *pbVar5 = bVar3 & 0x7f;\n  *param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1));\n  param_3[1] = param_6;\n  *param_3 = param_5;\n  *param_4 = 1;\n  return;\n}\n\n" (function_definition "void __regparm3\nFUN_0001fbf0(int *param_1,int param_2,uint *param_3,int *param_4,uint param_5,uint param_6)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  uVar6 = *param_3;\n  if ((param_2 == 0) || (*param_4 == 0)) {\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }\n  else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }\n  pbVar1 = (byte *)*param_1;\n  pbVar2 = pbVar1;\n  do {\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  } while (uVar6 != 0 || uVar4 != 0);\n  *pbVar5 = bVar3 & 0x7f;\n  *param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1));\n  param_3[1] = param_6;\n  *param_3 = param_5;\n  *param_4 = 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001fbf0(int *param_1,int param_2,uint *param_3,int *param_4,uint param_5,uint param_6)" identifier (parameter_list "(int *param_1,int param_2,uint *param_3,int *param_4,uint param_5,uint param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "uint param_6" type_identifier identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  uVar6 = *param_3;\n  if ((param_2 == 0) || (*param_4 == 0)) {\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }\n  else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }\n  pbVar1 = (byte *)*param_1;\n  pbVar2 = pbVar1;\n  do {\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  } while (uVar6 != 0 || uVar4 != 0);\n  *pbVar5 = bVar3 & 0x7f;\n  *param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1));\n  param_3[1] = param_6;\n  *param_3 = param_5;\n  *param_4 = 1;\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "uVar6 = *param_3;" (assignment_expression "uVar6 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if ((param_2 == 0) || (*param_4 == 0)) {\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }\n  else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }" if (parenthesized_expression "((param_2 == 0) || (*param_4 == 0))" ( (binary_expression "(param_2 == 0) || (*param_4 == 0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "(*param_4 == 0)" ( (binary_expression "*param_4 == 0" (pointer_expression "*param_4" * identifier) == number_literal) ))) )) (compound_statement "{\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }" { (expression_statement "uVar4 = param_5 - uVar6;" (assignment_expression "uVar4 = param_5 - uVar6" identifier = (binary_expression "param_5 - uVar6" identifier - identifier)) ;) (expression_statement "uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);" (assignment_expression "uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6)" identifier = (binary_expression "(param_6 - param_3[1]) - (uint)(param_5 < uVar6)" (parenthesized_expression "(param_6 - param_3[1])" ( (binary_expression "param_6 - param_3[1]" identifier - (subscript_expression "param_3[1]" identifier [ number_literal ])) )) - (call_expression "(uint)(param_5 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_5 < uVar6)" ( (binary_expression "param_5 < uVar6" identifier < identifier) ))))) ;) }) (else_clause "else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }" else (compound_statement "{\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }" { (expression_statement "uVar4 = uVar6 - param_5;" (assignment_expression "uVar4 = uVar6 - param_5" identifier = (binary_expression "uVar6 - param_5" identifier - identifier)) ;) (expression_statement "uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);" (assignment_expression "uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5)" identifier = (binary_expression "(param_3[1] - param_6) - (uint)(uVar6 < param_5)" (parenthesized_expression "(param_3[1] - param_6)" ( (binary_expression "param_3[1] - param_6" (subscript_expression "param_3[1]" identifier [ number_literal ]) - identifier) )) - (call_expression "(uint)(uVar6 < param_5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < param_5)" ( (binary_expression "uVar6 < param_5" identifier < identifier) ))))) ;) }))) (expression_statement "pbVar1 = (byte *)*param_1;" (assignment_expression "pbVar1 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "pbVar2 = pbVar1;" (assignment_expression "pbVar2 = pbVar1" identifier = identifier) ;) (do_statement "do {\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  } while (uVar6 != 0 || uVar4 != 0);" do (compound_statement "{\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  }" { (expression_statement "pbVar5 = pbVar2;" (assignment_expression "pbVar5 = pbVar2" identifier = identifier) ;) (expression_statement "bVar3 = (byte)uVar4;" (assignment_expression "bVar3 = (byte)uVar4" identifier = (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar4 = uVar4 >> 7 | uVar6 << 0x19;" (assignment_expression "uVar4 = uVar4 >> 7 | uVar6 << 0x19" identifier = (binary_expression "uVar4 >> 7 | uVar6 << 0x19" (binary_expression "uVar4 >> 7" identifier >> number_literal) | (binary_expression "uVar6 << 0x19" identifier << number_literal))) ;) (expression_statement "uVar6 = uVar6 >> 7;" (assignment_expression "uVar6 = uVar6 >> 7" identifier = (binary_expression "uVar6 >> 7" identifier >> number_literal)) ;) (expression_statement "*pbVar5 = bVar3 | 0x80;" (assignment_expression "*pbVar5 = bVar3 | 0x80" (pointer_expression "*pbVar5" * identifier) = (binary_expression "bVar3 | 0x80" identifier | number_literal)) ;) (expression_statement "pbVar2 = pbVar5 + 1;" (assignment_expression "pbVar2 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 != 0 || uVar4 != 0)" ( (binary_expression "uVar6 != 0 || uVar4 != 0" (binary_expression "uVar6 != 0" identifier != number_literal) || (binary_expression "uVar4 != 0" identifier != number_literal)) )) ;) (expression_statement "*pbVar5 = bVar3 & 0x7f;" (assignment_expression "*pbVar5 = bVar3 & 0x7f" (pointer_expression "*pbVar5" * identifier) = (binary_expression "bVar3 & 0x7f" identifier & number_literal)) ;) (expression_statement "*param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1));" (assignment_expression "*param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1))" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar5 + 1 + (*param_1 - (int)pbVar1))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar5 + 1 + (*param_1 - (int)pbVar1))" ( (binary_expression "pbVar5 + 1 + (*param_1 - (int)pbVar1)" (binary_expression "pbVar5 + 1" identifier + number_literal) + (parenthesized_expression "(*param_1 - (int)pbVar1)" ( (binary_expression "*param_1 - (int)pbVar1" (pointer_expression "*param_1" * identifier) - (cast_expression "(int)pbVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )))) ;) (expression_statement "param_3[1] = param_6;" (assignment_expression "param_3[1] = param_6" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_3 = param_5;" (assignment_expression "*param_3 = param_5" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*param_4 = 1;" (assignment_expression "*param_4 = 1" (pointer_expression "*param_4" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - (subscript_expression IDENT [ LIT ])) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT >> LIT) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT | LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3\nFUN_0001fbf0(int *param_1,int param_2,uint *param_3,int *param_4,uint param_5,uint param_6)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  uVar6 = *param_3;\n  if ((param_2 == 0) || (*param_4 == 0)) {\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }\n  else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }\n  pbVar1 = (byte *)*param_1;\n  pbVar2 = pbVar1;\n  do {\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  } while (uVar6 != 0 || uVar4 != 0);\n  *pbVar5 = bVar3 & 0x7f;\n  *param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1));\n  param_3[1] = param_6;\n  *param_3 = param_5;\n  *param_4 = 1;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001fbf0(int *param_1,int param_2,uint *param_3,int *param_4,uint param_5,uint param_6)" (identifier "FUN_0001fbf0") (parameter_list "(int *param_1,int param_2,uint *param_3,int *param_4,uint param_5,uint param_6)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) (, ",") (parameter_declaration "uint param_6" (type_identifier "uint") (identifier "param_6")) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte bVar3;\n  uint uVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  uVar6 = *param_3;\n  if ((param_2 == 0) || (*param_4 == 0)) {\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }\n  else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }\n  pbVar1 = (byte *)*param_1;\n  pbVar2 = pbVar1;\n  do {\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  } while (uVar6 != 0 || uVar4 != 0);\n  *pbVar5 = bVar3 & 0x7f;\n  *param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1));\n  param_3[1] = param_6;\n  *param_3 = param_5;\n  *param_4 = 1;\n  return;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (expression_statement "uVar6 = *param_3;" (assignment_expression "uVar6 = *param_3" (identifier "uVar6") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (if_statement "if ((param_2 == 0) || (*param_4 == 0)) {\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }\n  else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }" (if "if") (parenthesized_expression "((param_2 == 0) || (*param_4 == 0))" (( "(") (binary_expression "(param_2 == 0) || (*param_4 == 0)" (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*param_4 == 0)" (( "(") (binary_expression "*param_4 == 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar4 = param_5 - uVar6;\n    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);\n  }" ({ "{") (expression_statement "uVar4 = param_5 - uVar6;" (assignment_expression "uVar4 = param_5 - uVar6" (identifier "uVar4") (= "=") (binary_expression "param_5 - uVar6" (identifier "param_5") (- "-") (identifier "uVar6"))) (; ";")) (expression_statement "uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);" (assignment_expression "uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6)" (identifier "uVar6") (= "=") (binary_expression "(param_6 - param_3[1]) - (uint)(param_5 < uVar6)" (parenthesized_expression "(param_6 - param_3[1])" (( "(") (binary_expression "param_6 - param_3[1]" (identifier "param_6") (- "-") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) () ")")) (- "-") (call_expression "(uint)(param_5 < uVar6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_5 < uVar6)" (( "(") (binary_expression "param_5 < uVar6" (identifier "param_5") (< "<") (identifier "uVar6")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }" (else "else") (compound_statement "{\n    uVar4 = uVar6 - param_5;\n    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);\n  }" ({ "{") (expression_statement "uVar4 = uVar6 - param_5;" (assignment_expression "uVar4 = uVar6 - param_5" (identifier "uVar4") (= "=") (binary_expression "uVar6 - param_5" (identifier "uVar6") (- "-") (identifier "param_5"))) (; ";")) (expression_statement "uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);" (assignment_expression "uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5)" (identifier "uVar6") (= "=") (binary_expression "(param_3[1] - param_6) - (uint)(uVar6 < param_5)" (parenthesized_expression "(param_3[1] - param_6)" (( "(") (binary_expression "param_3[1] - param_6" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (- "-") (identifier "param_6")) () ")")) (- "-") (call_expression "(uint)(uVar6 < param_5)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar6 < param_5)" (( "(") (binary_expression "uVar6 < param_5" (identifier "uVar6") (< "<") (identifier "param_5")) () ")"))))) (; ";")) (} "}")))) (expression_statement "pbVar1 = (byte *)*param_1;" (assignment_expression "pbVar1 = (byte *)*param_1" (identifier "pbVar1") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "pbVar2 = pbVar1;" (assignment_expression "pbVar2 = pbVar1" (identifier "pbVar2") (= "=") (identifier "pbVar1")) (; ";")) (do_statement "do {\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  } while (uVar6 != 0 || uVar4 != 0);" (do "do") (compound_statement "{\n    pbVar5 = pbVar2;\n    bVar3 = (byte)uVar4;\n    uVar4 = uVar4 >> 7 | uVar6 << 0x19;\n    uVar6 = uVar6 >> 7;\n    *pbVar5 = bVar3 | 0x80;\n    pbVar2 = pbVar5 + 1;\n  }" ({ "{") (expression_statement "pbVar5 = pbVar2;" (assignment_expression "pbVar5 = pbVar2" (identifier "pbVar5") (= "=") (identifier "pbVar2")) (; ";")) (expression_statement "bVar3 = (byte)uVar4;" (assignment_expression "bVar3 = (byte)uVar4" (identifier "bVar3") (= "=") (cast_expression "(byte)uVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar4"))) (; ";")) (expression_statement "uVar4 = uVar4 >> 7 | uVar6 << 0x19;" (assignment_expression "uVar4 = uVar4 >> 7 | uVar6 << 0x19" (identifier "uVar4") (= "=") (binary_expression "uVar4 >> 7 | uVar6 << 0x19" (binary_expression "uVar4 >> 7" (identifier "uVar4") (>> ">>") (number_literal "7")) (| "|") (binary_expression "uVar6 << 0x19" (identifier "uVar6") (<< "<<") (number_literal "0x19")))) (; ";")) (expression_statement "uVar6 = uVar6 >> 7;" (assignment_expression "uVar6 = uVar6 >> 7" (identifier "uVar6") (= "=") (binary_expression "uVar6 >> 7" (identifier "uVar6") (>> ">>") (number_literal "7"))) (; ";")) (expression_statement "*pbVar5 = bVar3 | 0x80;" (assignment_expression "*pbVar5 = bVar3 | 0x80" (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")) (= "=") (binary_expression "bVar3 | 0x80" (identifier "bVar3") (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar2 = pbVar5 + 1;" (assignment_expression "pbVar2 = pbVar5 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 != 0 || uVar4 != 0)" (( "(") (binary_expression "uVar6 != 0 || uVar4 != 0" (binary_expression "uVar6 != 0" (identifier "uVar6") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0"))) () ")")) (; ";")) (expression_statement "*pbVar5 = bVar3 & 0x7f;" (assignment_expression "*pbVar5 = bVar3 & 0x7f" (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")) (= "=") (binary_expression "bVar3 & 0x7f" (identifier "bVar3") (& "&") (number_literal "0x7f"))) (; ";")) (expression_statement "*param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1));" (assignment_expression "*param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1))" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar5 + 1 + (*param_1 - (int)pbVar1))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar5 + 1 + (*param_1 - (int)pbVar1))" (( "(") (binary_expression "pbVar5 + 1 + (*param_1 - (int)pbVar1)" (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1")) (+ "+") (parenthesized_expression "(*param_1 - (int)pbVar1)" (( "(") (binary_expression "*param_1 - (int)pbVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (- "-") (cast_expression "(int)pbVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar1"))) () ")"))) () ")")))) (; ";")) (expression_statement "param_3[1] = param_6;" (assignment_expression "param_3[1] = param_6" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_6")) (; ";")) (expression_statement "*param_3 = param_5;" (assignment_expression "*param_3 = param_5" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "*param_4 = 1;" (assignment_expression "*param_4 = 1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3
function_1(char **pp,int var_1,type_1 *var_4,int *pbFirst,type_1 var_2)

{
  type_2 *pbVar1;
  type_3 var_5;
  type_3 var_8;
  type_3 var_10;
  type_2 *pbVar5;
  type_2 var_6;
  type_4 var_9;
  type_2 *var_7;
  
  if ((var_1 == 0) || (*pbFirst == 0)) {
    var_5 = var_2 - *var_4;
  }
  else {
    var_5 = var_3((*(int *)((int)var_4 + 4) - var_2._4_4_) - (type_4)((type_4)*var_4 < (type_4)var_2),
                     (type_4)*var_4 - (type_4)var_2);
  }
  pbVar1 = (type_2 *)*pp;
  pbVar5 = pbVar1;
  do {
    var_7 = pbVar5;
    var_9 = (type_4)var_5;
    var_6 = (type_2)var_5;
    var_10 = var_5 & 0x7f00000000;
    var_8 = var_5 >> 7;
    var_5 = var_5 >> 7;
    *var_7 = var_6 | 0x80;
    pbVar5 = var_7 + 1;
  } while ((int)(var_8 >> 0x20) != 0 || (var_9 >> 7 != 0 || var_10 != 0));
  *var_7 = var_6 & 0x7f;
  *pp = *pp + ((int)(var_7 + 1) - (int)pbVar1);
  *var_4 = var_2;
  *pbFirst = 1;
  return;
}


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

void __regparm3
MASKED(int *param_1,int param_2,uint *param_3,int *param_4,uint param_5,uint param_6)

{
  byte *pbVar1;
  byte *pbVar2;
  byte bVar3;
  uint uVar4;
  byte *pbVar5;
  uint uVar6;
  
  uVar6 = *param_3;
  if ((param_2 == 0) || (*param_4 == 0)) {
    uVar4 = param_5 - uVar6;
    uVar6 = (param_6 - param_3[1]) - (uint)(param_5 < uVar6);
  }
  else {
    uVar4 = uVar6 - param_5;
    uVar6 = (param_3[1] - param_6) - (uint)(uVar6 < param_5);
  }
  pbVar1 = (byte *)*param_1;
  pbVar2 = pbVar1;
  do {
    pbVar5 = pbVar2;
    bVar3 = (byte)uVar4;
    uVar4 = uVar4 >> 7 | uVar6 << 0x19;
    uVar6 = uVar6 >> 7;
    *pbVar5 = bVar3 | 0x80;
    pbVar2 = pbVar5 + 1;
  } while (uVar6 != 0 || uVar4 != 0);
  *pbVar5 = bVar3 & 0x7f;
  *param_1 = (int)(pbVar5 + 1 + (*param_1 - (int)pbVar1));
  param_3[1] = param_6;
  *param_3 = param_5;
  *param_4 = 1;
  return;
}

