
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 _one_mult(uchar *num,int size,int digit,uchar *result)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  if (digit == 0) {
    memset(result,0,size);
    return;
  }
  if (digit != 1) {
    iVar3 = size + -1;
    iVar1 = 0;
    if (0 < size) {
      do {
        iVar2 = (uint)num[iVar3] * digit + iVar1;
        iVar1 = iVar2 / 10;
        result[iVar3] = (char)iVar2 + (uchar)iVar1 * -10;
        iVar3 = iVar3 + -1;
      } while (iVar3 != -1);
      if (iVar1 != 0) {
        result[-1] = (uchar)iVar1;
      }
    }
    return;
  }
  memcpy(result,num,size);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 FUN_0001a0f0(void *param_1,size_t param_2,int param_3,void *param_4)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  if (param_3 == 0) {
    memset(param_4,0,param_2);
    return;
  }
  if (param_3 != 1) {
    iVar3 = param_2 - 1;
    iVar1 = 0;
    if (0 < (int)param_2) {
      do {
        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;
        iVar1 = iVar2 / 10;
        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;
        iVar3 = iVar3 + -1;
      } while (iVar3 != -1);
      if (iVar1 != 0) {
        *(char *)((int)param_4 + -1) = (char)iVar1;
      }
    }
    return;
  }
  memcpy(param_4,param_1,param_2);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
CALL 0x000155a1
ADD ESI,0xee0c
PUSH EBX
MOV EBX,EDX
SUB ESP,0xc
TEST ECX,ECX
JZ 0x0001a160
CMP ECX,0x1
JZ 0x0001a180
LEA EBP,[EAX + -0x1]
MOV EAX,dword ptr [ESP + 0x20]
LEA ESI,[EDX + -0x1]
XOR EDX,EDX
LEA EDI,[EAX + -0x1]
TEST EBX,EBX
JLE 0x0001a154
MOVZX EBX,byte ptr [EBP + ESI*0x1 + 0x1]
MOV EAX,0x66666667
IMUL EBX,ECX
ADD EBX,EDX
IMUL EBX
MOV EAX,EBX
SAR EAX,0x1f
SAR EDX,0x2
SUB EDX,EAX
LEA EAX,[EDX + EDX*0x4]
ADD EAX,EAX
SUB EBX,EAX
MOV byte ptr [EDI + ESI*0x1 + 0x1],BL
SUB ESI,0x1
CMP ESI,-0x1
JNZ 0x0001a120
TEST EDX,EDX
JZ 0x0001a154
MOV byte ptr [EDI],DL
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
MOV EBX,ESI
PUSH EDX
PUSH 0x0
PUSH dword ptr [ESP + 0x2c]
CALL 0x00011220
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
MOV EBX,ESI
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x2c]
CALL 0x000110d0
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid __regparm3 FUN_0001a0f0(void *param_1,size_t param_2,int param_3,void *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    memset(param_4,0,param_2);\n    return;\n  }\n  if (param_3 != 1) {\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }\n  memcpy(param_4,param_1,param_2);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0001a0f0(void *param_1,size_t param_2,int param_3,void *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    memset(param_4,0,param_2);\n    return;\n  }\n  if (param_3 != 1) {\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }\n  memcpy(param_4,param_1,param_2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001a0f0(void *param_1,size_t param_2,int param_3,void *param_4)" identifier (parameter_list "(void *param_1,size_t param_2,int param_3,void *param_4)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "void *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    memset(param_4,0,param_2);\n    return;\n  }\n  if (param_3 != 1) {\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }\n  memcpy(param_4,param_1,param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_3 == 0) {\n    memset(param_4,0,param_2);\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    memset(param_4,0,param_2);\n    return;\n  }" { (expression_statement "memset(param_4,0,param_2);" (call_expression "memset(param_4,0,param_2)" identifier (argument_list "(param_4,0,param_2)" ( identifier , number_literal , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_3 != 1) {\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }" if (parenthesized_expression "(param_3 != 1)" ( (binary_expression "param_3 != 1" identifier != number_literal) )) (compound_statement "{\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }" { (expression_statement "iVar3 = param_2 - 1;" (assignment_expression "iVar3 = param_2 - 1" identifier = (binary_expression "param_2 - 1" identifier - number_literal)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }" if (parenthesized_expression "(0 < (int)param_2)" ( (binary_expression "0 < (int)param_2" number_literal < (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }" { (do_statement "do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);" do (compound_statement "{\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      }" { (expression_statement "iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;" (assignment_expression "iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1" identifier = (binary_expression "(uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1" (binary_expression "(uint)*(byte *)((int)param_1 + iVar3) * param_3" (binary_expression "(uint)*(byte *)((int)param_1 + iVar3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_1 + iVar3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar3)" ( (binary_expression "(int)param_1 + iVar3" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) * identifier) + identifier)) ;) (expression_statement "iVar1 = iVar2 / 10;" (assignment_expression "iVar1 = iVar2 / 10" identifier = (binary_expression "iVar2 / 10" identifier / number_literal)) ;) (expression_statement "*(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;" (assignment_expression "*(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10" (pointer_expression "*(char *)((int)param_4 + iVar3)" * (cast_expression "(char *)((int)param_4 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + iVar3)" ( (binary_expression "(int)param_4 + iVar3" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (binary_expression "(char)iVar2 + (char)iVar1 * -10" (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)iVar1 * -10" (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal))) ;) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) ;) (if_statement "if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }" { (expression_statement "*(char *)((int)param_4 + -1) = (char)iVar1;" (assignment_expression "*(char *)((int)param_4 + -1) = (char)iVar1" (pointer_expression "*(char *)((int)param_4 + -1)" * (cast_expression "(char *)((int)param_4 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + -1)" ( (binary_expression "(int)param_4 + -1" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) })) })) (return_statement "return;" return ;) })) (expression_statement "memcpy(param_4,param_1,param_2);" (call_expression "memcpy(param_4,param_1,param_2)" identifier (argument_list "(param_4,param_1,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid __regparm3 _one_mult(uchar *num,int size,int digit,uchar *result)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (digit == 0) {\n    memset(result,0,size);\n    return;\n  }\n  if (digit != 1) {\n    iVar3 = size + -1;\n    iVar1 = 0;\n    if (0 < size) {\n      do {\n        iVar2 = (uint)num[iVar3] * digit + iVar1;\n        iVar1 = iVar2 / 10;\n        result[iVar3] = (char)iVar2 + (uchar)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        result[-1] = (uchar)iVar1;\n      }\n    }\n    return;\n  }\n  memcpy(result,num,size);\n  return;\n}\n\n" comment (function_definition "void __regparm3 _one_mult(uchar *num,int size,int digit,uchar *result)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (digit == 0) {\n    memset(result,0,size);\n    return;\n  }\n  if (digit != 1) {\n    iVar3 = size + -1;\n    iVar1 = 0;\n    if (0 < size) {\n      do {\n        iVar2 = (uint)num[iVar3] * digit + iVar1;\n        iVar1 = iVar2 / 10;\n        result[iVar3] = (char)iVar2 + (uchar)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        result[-1] = (uchar)iVar1;\n      }\n    }\n    return;\n  }\n  memcpy(result,num,size);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "_one_mult(uchar *num,int size,int digit,uchar *result)" identifier (parameter_list "(uchar *num,int size,int digit,uchar *result)" ( (parameter_declaration "uchar *num" type_identifier (pointer_declarator "*num" * identifier)) , (parameter_declaration "int size" primitive_type identifier) , (parameter_declaration "int digit" primitive_type identifier) , (parameter_declaration "uchar *result" type_identifier (pointer_declarator "*result" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (digit == 0) {\n    memset(result,0,size);\n    return;\n  }\n  if (digit != 1) {\n    iVar3 = size + -1;\n    iVar1 = 0;\n    if (0 < size) {\n      do {\n        iVar2 = (uint)num[iVar3] * digit + iVar1;\n        iVar1 = iVar2 / 10;\n        result[iVar3] = (char)iVar2 + (uchar)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        result[-1] = (uchar)iVar1;\n      }\n    }\n    return;\n  }\n  memcpy(result,num,size);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (digit == 0) {\n    memset(result,0,size);\n    return;\n  }" if (parenthesized_expression "(digit == 0)" ( (binary_expression "digit == 0" identifier == number_literal) )) (compound_statement "{\n    memset(result,0,size);\n    return;\n  }" { (expression_statement "memset(result,0,size);" (call_expression "memset(result,0,size)" identifier (argument_list "(result,0,size)" ( identifier , number_literal , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (digit != 1) {\n    iVar3 = size + -1;\n    iVar1 = 0;\n    if (0 < size) {\n      do {\n        iVar2 = (uint)num[iVar3] * digit + iVar1;\n        iVar1 = iVar2 / 10;\n        result[iVar3] = (char)iVar2 + (uchar)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        result[-1] = (uchar)iVar1;\n      }\n    }\n    return;\n  }" if (parenthesized_expression "(digit != 1)" ( (binary_expression "digit != 1" identifier != number_literal) )) (compound_statement "{\n    iVar3 = size + -1;\n    iVar1 = 0;\n    if (0 < size) {\n      do {\n        iVar2 = (uint)num[iVar3] * digit + iVar1;\n        iVar1 = iVar2 / 10;\n        result[iVar3] = (char)iVar2 + (uchar)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        result[-1] = (uchar)iVar1;\n      }\n    }\n    return;\n  }" { (expression_statement "iVar3 = size + -1;" (assignment_expression "iVar3 = size + -1" identifier = (binary_expression "size + -1" identifier + number_literal)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (0 < size) {\n      do {\n        iVar2 = (uint)num[iVar3] * digit + iVar1;\n        iVar1 = iVar2 / 10;\n        result[iVar3] = (char)iVar2 + (uchar)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        result[-1] = (uchar)iVar1;\n      }\n    }" if (parenthesized_expression "(0 < size)" ( (binary_expression "0 < size" number_literal < identifier) )) (compound_statement "{\n      do {\n        iVar2 = (uint)num[iVar3] * digit + iVar1;\n        iVar1 = iVar2 / 10;\n        result[iVar3] = (char)iVar2 + (uchar)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        result[-1] = (uchar)iVar1;\n      }\n    }" { (do_statement "do {\n        iVar2 = (uint)num[iVar3] * digit + iVar1;\n        iVar1 = iVar2 / 10;\n        result[iVar3] = (char)iVar2 + (uchar)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);" do (compound_statement "{\n        iVar2 = (uint)num[iVar3] * digit + iVar1;\n        iVar1 = iVar2 / 10;\n        result[iVar3] = (char)iVar2 + (uchar)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      }" { (expression_statement "iVar2 = (uint)num[iVar3] * digit + iVar1;" (assignment_expression "iVar2 = (uint)num[iVar3] * digit + iVar1" identifier = (binary_expression "(uint)num[iVar3] * digit + iVar1" (binary_expression "(uint)num[iVar3] * digit" (cast_expression "(uint)num[iVar3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "num[iVar3]" identifier [ identifier ])) * identifier) + identifier)) ;) (expression_statement "iVar1 = iVar2 / 10;" (assignment_expression "iVar1 = iVar2 / 10" identifier = (binary_expression "iVar2 / 10" identifier / number_literal)) ;) (expression_statement "result[iVar3] = (char)iVar2 + (uchar)iVar1 * -10;" (assignment_expression "result[iVar3] = (char)iVar2 + (uchar)iVar1 * -10" (subscript_expression "result[iVar3]" identifier [ identifier ]) = (binary_expression "(char)iVar2 + (uchar)iVar1 * -10" (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(uchar)iVar1 * -10" (cast_expression "(uchar)iVar1" ( (type_descriptor "uchar" type_identifier) ) identifier) * number_literal))) ;) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) ;) (if_statement "if (iVar1 != 0) {\n        result[-1] = (uchar)iVar1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        result[-1] = (uchar)iVar1;\n      }" { (expression_statement "result[-1] = (uchar)iVar1;" (assignment_expression "result[-1] = (uchar)iVar1" (subscript_expression "result[-1]" identifier [ number_literal ]) = (cast_expression "(uchar)iVar1" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) })) })) (return_statement "return;" return ;) })) (expression_statement "memcpy(result,num,size);" (call_expression "memcpy(result,num,size)" identifier (argument_list "(result,num,size)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0001a0f0(void *param_1,size_t param_2,int param_3,void *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    memset(param_4,0,param_2);\n    return;\n  }\n  if (param_3 != 1) {\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }\n  memcpy(param_4,param_1,param_2);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0001a0f0(void *param_1,size_t param_2,int param_3,void *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    memset(param_4,0,param_2);\n    return;\n  }\n  if (param_3 != 1) {\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }\n  memcpy(param_4,param_1,param_2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001a0f0(void *param_1,size_t param_2,int param_3,void *param_4)" identifier (parameter_list "(void *param_1,size_t param_2,int param_3,void *param_4)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "void *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    memset(param_4,0,param_2);\n    return;\n  }\n  if (param_3 != 1) {\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }\n  memcpy(param_4,param_1,param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_3 == 0) {\n    memset(param_4,0,param_2);\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    memset(param_4,0,param_2);\n    return;\n  }" { (expression_statement "memset(param_4,0,param_2);" (call_expression "memset(param_4,0,param_2)" identifier (argument_list "(param_4,0,param_2)" ( identifier , number_literal , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_3 != 1) {\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }" if (parenthesized_expression "(param_3 != 1)" ( (binary_expression "param_3 != 1" identifier != number_literal) )) (compound_statement "{\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }" { (expression_statement "iVar3 = param_2 - 1;" (assignment_expression "iVar3 = param_2 - 1" identifier = (binary_expression "param_2 - 1" identifier - number_literal)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }" if (parenthesized_expression "(0 < (int)param_2)" ( (binary_expression "0 < (int)param_2" number_literal < (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }" { (do_statement "do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);" do (compound_statement "{\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      }" { (expression_statement "iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;" (assignment_expression "iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1" identifier = (binary_expression "(uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1" (binary_expression "(uint)*(byte *)((int)param_1 + iVar3) * param_3" (binary_expression "(uint)*(byte *)((int)param_1 + iVar3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_1 + iVar3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar3)" ( (binary_expression "(int)param_1 + iVar3" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) * identifier) + identifier)) ;) (expression_statement "iVar1 = iVar2 / 10;" (assignment_expression "iVar1 = iVar2 / 10" identifier = (binary_expression "iVar2 / 10" identifier / number_literal)) ;) (expression_statement "*(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;" (assignment_expression "*(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10" (pointer_expression "*(char *)((int)param_4 + iVar3)" * (cast_expression "(char *)((int)param_4 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + iVar3)" ( (binary_expression "(int)param_4 + iVar3" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (binary_expression "(char)iVar2 + (char)iVar1 * -10" (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)iVar1 * -10" (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal))) ;) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) ;) (if_statement "if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }" { (expression_statement "*(char *)((int)param_4 + -1) = (char)iVar1;" (assignment_expression "*(char *)((int)param_4 + -1) = (char)iVar1" (pointer_expression "*(char *)((int)param_4 + -1)" * (cast_expression "(char *)((int)param_4 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + -1)" ( (binary_expression "(int)param_4 + -1" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) })) })) (return_statement "return;" return ;) })) (expression_statement "memcpy(param_4,param_1,param_2);" (call_expression "memcpy(param_4,param_1,param_2)" identifier (argument_list "(param_4,param_1,param_2)" ( identifier , identifier , identifier ))) ;) (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 IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) * IDENT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) })) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0001a0f0(void *param_1,size_t param_2,int param_3,void *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    memset(param_4,0,param_2);\n    return;\n  }\n  if (param_3 != 1) {\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }\n  memcpy(param_4,param_1,param_2);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001a0f0(void *param_1,size_t param_2,int param_3,void *param_4)" (identifier "FUN_0001a0f0") (parameter_list "(void *param_1,size_t param_2,int param_3,void *param_4)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "void *param_4" (primitive_type "void") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_3 == 0) {\n    memset(param_4,0,param_2);\n    return;\n  }\n  if (param_3 != 1) {\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }\n  memcpy(param_4,param_1,param_2);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (param_3 == 0) {\n    memset(param_4,0,param_2);\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    memset(param_4,0,param_2);\n    return;\n  }" ({ "{") (expression_statement "memset(param_4,0,param_2);" (call_expression "memset(param_4,0,param_2)" (identifier "memset") (argument_list "(param_4,0,param_2)" (( "(") (identifier "param_4") (, ",") (number_literal "0") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_3 != 1) {\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 != 1)" (( "(") (binary_expression "param_3 != 1" (identifier "param_3") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    iVar3 = param_2 - 1;\n    iVar1 = 0;\n    if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }\n    return;\n  }" ({ "{") (expression_statement "iVar3 = param_2 - 1;" (assignment_expression "iVar3 = param_2 - 1" (identifier "iVar3") (= "=") (binary_expression "param_2 - 1" (identifier "param_2") (- "-") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < (int)param_2) {\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }" (if "if") (parenthesized_expression "(0 < (int)param_2)" (( "(") (binary_expression "0 < (int)param_2" (number_literal "0") (< "<") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")")) (compound_statement "{\n      do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);\n      if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }\n    }" ({ "{") (do_statement "do {\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      } while (iVar3 != -1);" (do "do") (compound_statement "{\n        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;\n        iVar1 = iVar2 / 10;\n        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;\n        iVar3 = iVar3 + -1;\n      }" ({ "{") (expression_statement "iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;" (assignment_expression "iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1" (identifier "iVar2") (= "=") (binary_expression "(uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1" (binary_expression "(uint)*(byte *)((int)param_1 + iVar3) * param_3" (binary_expression "(uint)*(byte *)((int)param_1 + iVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)((int)param_1 + iVar3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + iVar3)" (( "(") (binary_expression "(int)param_1 + iVar3" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "iVar3")) () ")")))) (* "*") (identifier "param_3")) (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "iVar1 = iVar2 / 10;" (assignment_expression "iVar1 = iVar2 / 10" (identifier "iVar1") (= "=") (binary_expression "iVar2 / 10" (identifier "iVar2") (/ "/") (number_literal "10"))) (; ";")) (expression_statement "*(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;" (assignment_expression "*(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10" (pointer_expression "*(char *)((int)param_4 + iVar3)" (* "*") (cast_expression "(char *)((int)param_4 + iVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + iVar3)" (( "(") (binary_expression "(int)param_4 + iVar3" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (identifier "iVar3")) () ")")))) (= "=") (binary_expression "(char)iVar2 + (char)iVar1 * -10" (cast_expression "(char)iVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar2")) (+ "+") (binary_expression "(char)iVar1 * -10" (cast_expression "(char)iVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar1")) (* "*") (number_literal "-10")))) (; ";")) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != -1)" (( "(") (binary_expression "iVar3 != -1" (identifier "iVar3") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (if_statement "if (iVar1 != 0) {\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(char *)((int)param_4 + -1) = (char)iVar1;\n      }" ({ "{") (expression_statement "*(char *)((int)param_4 + -1) = (char)iVar1;" (assignment_expression "*(char *)((int)param_4 + -1) = (char)iVar1" (pointer_expression "*(char *)((int)param_4 + -1)" (* "*") (cast_expression "(char *)((int)param_4 + -1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + -1)" (( "(") (binary_expression "(int)param_4 + -1" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (number_literal "-1")) () ")")))) (= "=") (cast_expression "(char)iVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar1"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "memcpy(param_4,param_1,param_2);" (call_expression "memcpy(param_4,param_1,param_2)" (identifier "memcpy") (argument_list "(param_4,param_1,param_2)" (( "(") (identifier "param_4") (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 function_1(type_1 *num,int var_3,int var_1,type_1 *result)

{
  int var_4;
  int var_5;
  int var_6;
  
  if (var_1 == 0) {
    var_2(result,0,var_3);
    return;
  }
  if (var_1 != 1) {
    var_6 = var_3 + -1;
    var_4 = 0;
    if (0 < var_3) {
      do {
        var_5 = (type_2)num[var_6] * var_1 + var_4;
        var_4 = var_5 / 10;
        result[var_6] = (char)var_5 + (type_1)var_4 * -10;
        var_6 = var_6 + -1;
      } while (var_6 != -1);
      if (var_4 != 0) {
        result[-1] = (type_1)var_4;
      }
    }
    return;
  }
  var_7(result,num,var_3);
  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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))))) right: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 MASKED(void *param_1,size_t param_2,int param_3,void *param_4)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  if (param_3 == 0) {
    memset(param_4,0,param_2);
    return;
  }
  if (param_3 != 1) {
    iVar3 = param_2 - 1;
    iVar1 = 0;
    if (0 < (int)param_2) {
      do {
        iVar2 = (uint)*(byte *)((int)param_1 + iVar3) * param_3 + iVar1;
        iVar1 = iVar2 / 10;
        *(char *)((int)param_4 + iVar3) = (char)iVar2 + (char)iVar1 * -10;
        iVar3 = iVar3 + -1;
      } while (iVar3 != -1);
      if (iVar1 != 0) {
        *(char *)((int)param_4 + -1) = (char)iVar1;
      }
    }
    return;
  }
  memcpy(param_4,param_1,param_2);
  return;
}

