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

void __regparm3 clip_addchar(clip_workbuf *b,wchar_t chr,int attr)

{
  size_t n;
  wchar_t *pwVar1;
  int *piVar2;
  
  if (b->bufpos < b->buflen) {
    piVar2 = b->attrptr;
  }
  else {
    n = b->buflen * 2;
    b->buflen = n;
    pwVar1 = (wchar_t *)saferealloc(b->textbuf,n,4);
    b->textbuf = pwVar1;
    b->textptr = pwVar1 + b->bufpos;
    piVar2 = (int *)saferealloc(b->attrbuf,b->buflen,4);
    b->attrbuf = piVar2;
    piVar2 = piVar2 + b->bufpos;
  }
  pwVar1 = b->textptr;
  b->textptr = pwVar1 + 1;
  *pwVar1 = chr;
  b->attrptr = piVar2 + 1;
  *piVar2 = attr;
  b->bufpos = b->bufpos + 1;
  return;
}



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

void __regparm3 FUN_00072a50(int *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  
  if (param_1[1] < *param_1) {
    puVar2 = (undefined4 *)param_1[5];
  }
  else {
    iVar3 = *param_1 * 2;
    *param_1 = iVar3;
    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);
    param_1[2] = iVar3;
    param_1[3] = iVar3 + param_1[1] * 4;
    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);
    param_1[4] = iVar3;
    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);
  }
  puVar1 = (undefined4 *)param_1[3];
  param_1[3] = (int)(puVar1 + 1);
  *puVar1 = param_2;
  param_1[5] = (int)(puVar2 + 1);
  *puVar2 = param_3;
  param_1[1] = param_1[1] + 1;
  return;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0x9dcf1
SUB ESP,0xc
MOV EAX,dword ptr [EAX]
CMP dword ptr [ESI + 0x4],EAX
JGE 0x00072a98
MOV EAX,dword ptr [ESI + 0x14]
MOV EDX,dword ptr [ESI + 0xc]
LEA ECX,[EDX + 0x4]
MOV dword ptr [ESI + 0xc],ECX
MOV dword ptr [EDX],EDI
LEA EDX,[EAX + 0x4]
MOV dword ptr [ESI + 0x14],EDX
MOV dword ptr [EAX],EBP
ADD dword ptr [ESI + 0x4],0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
ADD EAX,EAX
PUSH 0x4
MOV dword ptr [ESI],EAX
PUSH EAX
PUSH dword ptr [ESI + 0x8]
CALL 0x0002eb80
MOV EDX,dword ptr [ESI + 0x4]
ADD ESP,0xc
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[EAX + EDX*0x4]
PUSH 0x4
MOV dword ptr [ESI + 0xc],EAX
PUSH dword ptr [ESI]
PUSH dword ptr [ESI + 0x10]
CALL 0x0002eb80
MOV EDX,dword ptr [ESI + 0x4]
ADD ESP,0x10
MOV dword ptr [ESI + 0x10],EAX
LEA EAX,[EAX + EDX*0x4]
JMP 0x00072a72
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00072a50(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  if (param_1[1] < *param_1) {\n    puVar2 = (undefined4 *)param_1[5];\n  }\n  else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }\n  puVar1 = (undefined4 *)param_1[3];\n  param_1[3] = (int)(puVar1 + 1);\n  *puVar1 = param_2;\n  param_1[5] = (int)(puVar2 + 1);\n  *puVar2 = param_3;\n  param_1[1] = param_1[1] + 1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00072a50(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  if (param_1[1] < *param_1) {\n    puVar2 = (undefined4 *)param_1[5];\n  }\n  else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }\n  puVar1 = (undefined4 *)param_1[3];\n  param_1[3] = (int)(puVar1 + 1);\n  *puVar1 = param_2;\n  param_1[5] = (int)(puVar2 + 1);\n  *puVar2 = param_3;\n  param_1[1] = param_1[1] + 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00072a50(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  if (param_1[1] < *param_1) {\n    puVar2 = (undefined4 *)param_1[5];\n  }\n  else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }\n  puVar1 = (undefined4 *)param_1[3];\n  param_1[3] = (int)(puVar1 + 1);\n  *puVar1 = param_2;\n  param_1[5] = (int)(puVar2 + 1);\n  *puVar2 = param_3;\n  param_1[1] = param_1[1] + 1;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1[1] < *param_1) {\n    puVar2 = (undefined4 *)param_1[5];\n  }\n  else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }" if (parenthesized_expression "(param_1[1] < *param_1)" ( (binary_expression "param_1[1] < *param_1" (subscript_expression "param_1[1]" identifier [ number_literal ]) < (pointer_expression "*param_1" * identifier)) )) (compound_statement "{\n    puVar2 = (undefined4 *)param_1[5];\n  }" { (expression_statement "puVar2 = (undefined4 *)param_1[5];" (assignment_expression "puVar2 = (undefined4 *)param_1[5]" identifier = (cast_expression "(undefined4 *)param_1[5]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }" else (compound_statement "{\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }" { (expression_statement "iVar3 = *param_1 * 2;" (assignment_expression "iVar3 = *param_1 * 2" identifier = (binary_expression "*param_1 * 2" (pointer_expression "*param_1" * identifier) * number_literal)) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar3 = FUN_0002eb80(param_1[2],iVar3,4);" (assignment_expression "iVar3 = FUN_0002eb80(param_1[2],iVar3,4)" identifier = (call_expression "FUN_0002eb80(param_1[2],iVar3,4)" identifier (argument_list "(param_1[2],iVar3,4)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , number_literal )))) ;) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = iVar3 + param_1[1] * 4;" (assignment_expression "param_1[3] = iVar3 + param_1[1] * 4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (binary_expression "iVar3 + param_1[1] * 4" identifier + (binary_expression "param_1[1] * 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) * number_literal))) ;) (expression_statement "iVar3 = FUN_0002eb80(param_1[4],*param_1,4);" (assignment_expression "iVar3 = FUN_0002eb80(param_1[4],*param_1,4)" identifier = (call_expression "FUN_0002eb80(param_1[4],*param_1,4)" identifier (argument_list "(param_1[4],*param_1,4)" ( (subscript_expression "param_1[4]" identifier [ number_literal ]) , (pointer_expression "*param_1" * identifier) , number_literal )))) ;) (expression_statement "param_1[4] = iVar3;" (assignment_expression "param_1[4] = iVar3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);" (assignment_expression "puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4)" identifier = (cast_expression "(undefined4 *)(iVar3 + param_1[1] * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + param_1[1] * 4)" ( (binary_expression "iVar3 + param_1[1] * 4" identifier + (binary_expression "param_1[1] * 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) * number_literal)) )))) ;) }))) (expression_statement "puVar1 = (undefined4 *)param_1[3];" (assignment_expression "puVar1 = (undefined4 *)param_1[3]" identifier = (cast_expression "(undefined4 *)param_1[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "param_1[3] = (int)(puVar1 + 1);" (assignment_expression "param_1[3] = (int)(puVar1 + 1)" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(int)(puVar1 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "param_1[5] = (int)(puVar2 + 1);" (assignment_expression "param_1[5] = (int)(puVar2 + 1)" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (cast_expression "(int)(puVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*puVar2 = param_3;" (assignment_expression "*puVar2 = param_3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 clip_addchar(clip_workbuf *b,wchar_t chr,int attr)\n\n{\n  size_t n;\n  wchar_t *pwVar1;\n  int *piVar2;\n  \n  if (b->bufpos < b->buflen) {\n    piVar2 = b->attrptr;\n  }\n  else {\n    n = b->buflen * 2;\n    b->buflen = n;\n    pwVar1 = (wchar_t *)saferealloc(b->textbuf,n,4);\n    b->textbuf = pwVar1;\n    b->textptr = pwVar1 + b->bufpos;\n    piVar2 = (int *)saferealloc(b->attrbuf,b->buflen,4);\n    b->attrbuf = piVar2;\n    piVar2 = piVar2 + b->bufpos;\n  }\n  pwVar1 = b->textptr;\n  b->textptr = pwVar1 + 1;\n  *pwVar1 = chr;\n  b->attrptr = piVar2 + 1;\n  *piVar2 = attr;\n  b->bufpos = b->bufpos + 1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 clip_addchar(clip_workbuf *b,wchar_t chr,int attr)\n\n{\n  size_t n;\n  wchar_t *pwVar1;\n  int *piVar2;\n  \n  if (b->bufpos < b->buflen) {\n    piVar2 = b->attrptr;\n  }\n  else {\n    n = b->buflen * 2;\n    b->buflen = n;\n    pwVar1 = (wchar_t *)saferealloc(b->textbuf,n,4);\n    b->textbuf = pwVar1;\n    b->textptr = pwVar1 + b->bufpos;\n    piVar2 = (int *)saferealloc(b->attrbuf,b->buflen,4);\n    b->attrbuf = piVar2;\n    piVar2 = piVar2 + b->bufpos;\n  }\n  pwVar1 = b->textptr;\n  b->textptr = pwVar1 + 1;\n  *pwVar1 = chr;\n  b->attrptr = piVar2 + 1;\n  *piVar2 = attr;\n  b->bufpos = b->bufpos + 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "clip_addchar(clip_workbuf *b,wchar_t chr,int attr)" identifier (parameter_list "(clip_workbuf *b,wchar_t chr,int attr)" ( (parameter_declaration "clip_workbuf *b" type_identifier (pointer_declarator "*b" * identifier)) , (parameter_declaration "wchar_t chr" type_identifier identifier) , (parameter_declaration "int attr" primitive_type identifier) ))) (compound_statement "{\n  size_t n;\n  wchar_t *pwVar1;\n  int *piVar2;\n  \n  if (b->bufpos < b->buflen) {\n    piVar2 = b->attrptr;\n  }\n  else {\n    n = b->buflen * 2;\n    b->buflen = n;\n    pwVar1 = (wchar_t *)saferealloc(b->textbuf,n,4);\n    b->textbuf = pwVar1;\n    b->textptr = pwVar1 + b->bufpos;\n    piVar2 = (int *)saferealloc(b->attrbuf,b->buflen,4);\n    b->attrbuf = piVar2;\n    piVar2 = piVar2 + b->bufpos;\n  }\n  pwVar1 = b->textptr;\n  b->textptr = pwVar1 + 1;\n  *pwVar1 = chr;\n  b->attrptr = piVar2 + 1;\n  *piVar2 = attr;\n  b->bufpos = b->bufpos + 1;\n  return;\n}" { (declaration "size_t n;" primitive_type identifier ;) (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (b->bufpos < b->buflen) {\n    piVar2 = b->attrptr;\n  }\n  else {\n    n = b->buflen * 2;\n    b->buflen = n;\n    pwVar1 = (wchar_t *)saferealloc(b->textbuf,n,4);\n    b->textbuf = pwVar1;\n    b->textptr = pwVar1 + b->bufpos;\n    piVar2 = (int *)saferealloc(b->attrbuf,b->buflen,4);\n    b->attrbuf = piVar2;\n    piVar2 = piVar2 + b->bufpos;\n  }" if (parenthesized_expression "(b->bufpos < b->buflen)" ( (binary_expression "b->bufpos < b->buflen" (field_expression "b->bufpos" identifier -> field_identifier) < (field_expression "b->buflen" identifier -> field_identifier)) )) (compound_statement "{\n    piVar2 = b->attrptr;\n  }" { (expression_statement "piVar2 = b->attrptr;" (assignment_expression "piVar2 = b->attrptr" identifier = (field_expression "b->attrptr" identifier -> field_identifier)) ;) }) (else_clause "else {\n    n = b->buflen * 2;\n    b->buflen = n;\n    pwVar1 = (wchar_t *)saferealloc(b->textbuf,n,4);\n    b->textbuf = pwVar1;\n    b->textptr = pwVar1 + b->bufpos;\n    piVar2 = (int *)saferealloc(b->attrbuf,b->buflen,4);\n    b->attrbuf = piVar2;\n    piVar2 = piVar2 + b->bufpos;\n  }" else (compound_statement "{\n    n = b->buflen * 2;\n    b->buflen = n;\n    pwVar1 = (wchar_t *)saferealloc(b->textbuf,n,4);\n    b->textbuf = pwVar1;\n    b->textptr = pwVar1 + b->bufpos;\n    piVar2 = (int *)saferealloc(b->attrbuf,b->buflen,4);\n    b->attrbuf = piVar2;\n    piVar2 = piVar2 + b->bufpos;\n  }" { (expression_statement "n = b->buflen * 2;" (assignment_expression "n = b->buflen * 2" identifier = (binary_expression "b->buflen * 2" (field_expression "b->buflen" identifier -> field_identifier) * number_literal)) ;) (expression_statement "b->buflen = n;" (assignment_expression "b->buflen = n" (field_expression "b->buflen" identifier -> field_identifier) = identifier) ;) (expression_statement "pwVar1 = (wchar_t *)saferealloc(b->textbuf,n,4);" (assignment_expression "pwVar1 = (wchar_t *)saferealloc(b->textbuf,n,4)" identifier = (cast_expression "(wchar_t *)saferealloc(b->textbuf,n,4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "saferealloc(b->textbuf,n,4)" identifier (argument_list "(b->textbuf,n,4)" ( (field_expression "b->textbuf" identifier -> field_identifier) , identifier , number_literal ))))) ;) (expression_statement "b->textbuf = pwVar1;" (assignment_expression "b->textbuf = pwVar1" (field_expression "b->textbuf" identifier -> field_identifier) = identifier) ;) (expression_statement "b->textptr = pwVar1 + b->bufpos;" (assignment_expression "b->textptr = pwVar1 + b->bufpos" (field_expression "b->textptr" identifier -> field_identifier) = (binary_expression "pwVar1 + b->bufpos" identifier + (field_expression "b->bufpos" identifier -> field_identifier))) ;) (expression_statement "piVar2 = (int *)saferealloc(b->attrbuf,b->buflen,4);" (assignment_expression "piVar2 = (int *)saferealloc(b->attrbuf,b->buflen,4)" identifier = (cast_expression "(int *)saferealloc(b->attrbuf,b->buflen,4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "saferealloc(b->attrbuf,b->buflen,4)" identifier (argument_list "(b->attrbuf,b->buflen,4)" ( (field_expression "b->attrbuf" identifier -> field_identifier) , (field_expression "b->buflen" identifier -> field_identifier) , number_literal ))))) ;) (expression_statement "b->attrbuf = piVar2;" (assignment_expression "b->attrbuf = piVar2" (field_expression "b->attrbuf" identifier -> field_identifier) = identifier) ;) (expression_statement "piVar2 = piVar2 + b->bufpos;" (assignment_expression "piVar2 = piVar2 + b->bufpos" identifier = (binary_expression "piVar2 + b->bufpos" identifier + (field_expression "b->bufpos" identifier -> field_identifier))) ;) }))) (expression_statement "pwVar1 = b->textptr;" (assignment_expression "pwVar1 = b->textptr" identifier = (field_expression "b->textptr" identifier -> field_identifier)) ;) (expression_statement "b->textptr = pwVar1 + 1;" (assignment_expression "b->textptr = pwVar1 + 1" (field_expression "b->textptr" identifier -> field_identifier) = (binary_expression "pwVar1 + 1" identifier + number_literal)) ;) (expression_statement "*pwVar1 = chr;" (assignment_expression "*pwVar1 = chr" (pointer_expression "*pwVar1" * identifier) = identifier) ;) (expression_statement "b->attrptr = piVar2 + 1;" (assignment_expression "b->attrptr = piVar2 + 1" (field_expression "b->attrptr" identifier -> field_identifier) = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "*piVar2 = attr;" (assignment_expression "*piVar2 = attr" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "b->bufpos = b->bufpos + 1;" (assignment_expression "b->bufpos = b->bufpos + 1" (field_expression "b->bufpos" identifier -> field_identifier) = (binary_expression "b->bufpos + 1" (field_expression "b->bufpos" identifier -> field_identifier) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00072a50(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  if (param_1[1] < *param_1) {\n    puVar2 = (undefined4 *)param_1[5];\n  }\n  else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }\n  puVar1 = (undefined4 *)param_1[3];\n  param_1[3] = (int)(puVar1 + 1);\n  *puVar1 = param_2;\n  param_1[5] = (int)(puVar2 + 1);\n  *puVar2 = param_3;\n  param_1[1] = param_1[1] + 1;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00072a50(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  if (param_1[1] < *param_1) {\n    puVar2 = (undefined4 *)param_1[5];\n  }\n  else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }\n  puVar1 = (undefined4 *)param_1[3];\n  param_1[3] = (int)(puVar1 + 1);\n  *puVar1 = param_2;\n  param_1[5] = (int)(puVar2 + 1);\n  *puVar2 = param_3;\n  param_1[1] = param_1[1] + 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00072a50(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  if (param_1[1] < *param_1) {\n    puVar2 = (undefined4 *)param_1[5];\n  }\n  else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }\n  puVar1 = (undefined4 *)param_1[3];\n  param_1[3] = (int)(puVar1 + 1);\n  *puVar1 = param_2;\n  param_1[5] = (int)(puVar2 + 1);\n  *puVar2 = param_3;\n  param_1[1] = param_1[1] + 1;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1[1] < *param_1) {\n    puVar2 = (undefined4 *)param_1[5];\n  }\n  else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }" if (parenthesized_expression "(param_1[1] < *param_1)" ( (binary_expression "param_1[1] < *param_1" (subscript_expression "param_1[1]" identifier [ number_literal ]) < (pointer_expression "*param_1" * identifier)) )) (compound_statement "{\n    puVar2 = (undefined4 *)param_1[5];\n  }" { (expression_statement "puVar2 = (undefined4 *)param_1[5];" (assignment_expression "puVar2 = (undefined4 *)param_1[5]" identifier = (cast_expression "(undefined4 *)param_1[5]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }" else (compound_statement "{\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }" { (expression_statement "iVar3 = *param_1 * 2;" (assignment_expression "iVar3 = *param_1 * 2" identifier = (binary_expression "*param_1 * 2" (pointer_expression "*param_1" * identifier) * number_literal)) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar3 = FUN_0002eb80(param_1[2],iVar3,4);" (assignment_expression "iVar3 = FUN_0002eb80(param_1[2],iVar3,4)" identifier = (call_expression "FUN_0002eb80(param_1[2],iVar3,4)" identifier (argument_list "(param_1[2],iVar3,4)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , number_literal )))) ;) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = iVar3 + param_1[1] * 4;" (assignment_expression "param_1[3] = iVar3 + param_1[1] * 4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (binary_expression "iVar3 + param_1[1] * 4" identifier + (binary_expression "param_1[1] * 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) * number_literal))) ;) (expression_statement "iVar3 = FUN_0002eb80(param_1[4],*param_1,4);" (assignment_expression "iVar3 = FUN_0002eb80(param_1[4],*param_1,4)" identifier = (call_expression "FUN_0002eb80(param_1[4],*param_1,4)" identifier (argument_list "(param_1[4],*param_1,4)" ( (subscript_expression "param_1[4]" identifier [ number_literal ]) , (pointer_expression "*param_1" * identifier) , number_literal )))) ;) (expression_statement "param_1[4] = iVar3;" (assignment_expression "param_1[4] = iVar3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);" (assignment_expression "puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4)" identifier = (cast_expression "(undefined4 *)(iVar3 + param_1[1] * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + param_1[1] * 4)" ( (binary_expression "iVar3 + param_1[1] * 4" identifier + (binary_expression "param_1[1] * 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) * number_literal)) )))) ;) }))) (expression_statement "puVar1 = (undefined4 *)param_1[3];" (assignment_expression "puVar1 = (undefined4 *)param_1[3]" identifier = (cast_expression "(undefined4 *)param_1[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "param_1[3] = (int)(puVar1 + 1);" (assignment_expression "param_1[3] = (int)(puVar1 + 1)" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(int)(puVar1 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "param_1[5] = (int)(puVar2 + 1);" (assignment_expression "param_1[5] = (int)(puVar2 + 1)" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (cast_expression "(int)(puVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*puVar2 = param_3;" (assignment_expression "*puVar2 = param_3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + 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 IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) * LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + (binary_expression (subscript_expression IDENT [ LIT ]) * LIT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (pointer_expression * IDENT) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) )))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00072a50(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  if (param_1[1] < *param_1) {\n    puVar2 = (undefined4 *)param_1[5];\n  }\n  else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }\n  puVar1 = (undefined4 *)param_1[3];\n  param_1[3] = (int)(puVar1 + 1);\n  *puVar1 = param_2;\n  param_1[5] = (int)(puVar2 + 1);\n  *puVar2 = param_3;\n  param_1[1] = param_1[1] + 1;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00072a50(int *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00072a50") (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  if (param_1[1] < *param_1) {\n    puVar2 = (undefined4 *)param_1[5];\n  }\n  else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }\n  puVar1 = (undefined4 *)param_1[3];\n  param_1[3] = (int)(puVar1 + 1);\n  *puVar1 = param_2;\n  param_1[5] = (int)(puVar2 + 1);\n  *puVar2 = param_3;\n  param_1[1] = param_1[1] + 1;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (param_1[1] < *param_1) {\n    puVar2 = (undefined4 *)param_1[5];\n  }\n  else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }" (if "if") (parenthesized_expression "(param_1[1] < *param_1)" (( "(") (binary_expression "param_1[1] < *param_1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (< "<") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) (compound_statement "{\n    puVar2 = (undefined4 *)param_1[5];\n  }" ({ "{") (expression_statement "puVar2 = (undefined4 *)param_1[5];" (assignment_expression "puVar2 = (undefined4 *)param_1[5]" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)param_1[5]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")))) (; ";")) (} "}")) (else_clause "else {\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }" (else "else") (compound_statement "{\n    iVar3 = *param_1 * 2;\n    *param_1 = iVar3;\n    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);\n    param_1[2] = iVar3;\n    param_1[3] = iVar3 + param_1[1] * 4;\n    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);\n    param_1[4] = iVar3;\n    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);\n  }" ({ "{") (expression_statement "iVar3 = *param_1 * 2;" (assignment_expression "iVar3 = *param_1 * 2" (identifier "iVar3") (= "=") (binary_expression "*param_1 * 2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar3 = FUN_0002eb80(param_1[2],iVar3,4);" (assignment_expression "iVar3 = FUN_0002eb80(param_1[2],iVar3,4)" (identifier "iVar3") (= "=") (call_expression "FUN_0002eb80(param_1[2],iVar3,4)" (identifier "FUN_0002eb80") (argument_list "(param_1[2],iVar3,4)" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "iVar3") (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_1[3] = iVar3 + param_1[1] * 4;" (assignment_expression "param_1[3] = iVar3 + param_1[1] * 4" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "iVar3 + param_1[1] * 4" (identifier "iVar3") (+ "+") (binary_expression "param_1[1] * 4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (* "*") (number_literal "4")))) (; ";")) (expression_statement "iVar3 = FUN_0002eb80(param_1[4],*param_1,4);" (assignment_expression "iVar3 = FUN_0002eb80(param_1[4],*param_1,4)" (identifier "iVar3") (= "=") (call_expression "FUN_0002eb80(param_1[4],*param_1,4)" (identifier "FUN_0002eb80") (argument_list "(param_1[4],*param_1,4)" (( "(") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "param_1[4] = iVar3;" (assignment_expression "param_1[4] = iVar3" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);" (assignment_expression "puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(iVar3 + param_1[1] * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + param_1[1] * 4)" (( "(") (binary_expression "iVar3 + param_1[1] * 4" (identifier "iVar3") (+ "+") (binary_expression "param_1[1] * 4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (} "}")))) (expression_statement "puVar1 = (undefined4 *)param_1[3];" (assignment_expression "puVar1 = (undefined4 *)param_1[3]" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)param_1[3]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "param_1[3] = (int)(puVar1 + 1);" (assignment_expression "param_1[3] = (int)(puVar1 + 1)" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(int)(puVar1 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_1[5] = (int)(puVar2 + 1);" (assignment_expression "param_1[5] = (int)(puVar2 + 1)" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (cast_expression "(int)(puVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(puVar2 + 1)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*puVar2 = param_3;" (assignment_expression "*puVar2 = param_3" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *b,type_2 chr,int attr)

{
  size_t n;
  type_2 *var_2;
  int *var_3;
  
  if (b->bufpos < b->buflen) {
    var_3 = b->attrptr;
  }
  else {
    n = b->buflen * 2;
    b->buflen = n;
    var_2 = (type_2 *)var_1(b->textbuf,n,4);
    b->textbuf = var_2;
    b->textptr = var_2 + b->bufpos;
    var_3 = (int *)var_1(b->attrbuf,b->buflen,4);
    b->attrbuf = var_3;
    var_3 = var_3 + b->bufpos;
  }
  var_2 = b->textptr;
  b->textptr = var_2 + 1;
  *var_2 = chr;
  b->attrptr = var_3 + 1;
  *var_3 = attr;
  b->bufpos = b->bufpos + 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: (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: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (pointer_expression argument: (identifier)) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (return_statement))))

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

void __regparm3 MASKED(int *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  
  if (param_1[1] < *param_1) {
    puVar2 = (undefined4 *)param_1[5];
  }
  else {
    iVar3 = *param_1 * 2;
    *param_1 = iVar3;
    iVar3 = FUN_0002eb80(param_1[2],iVar3,4);
    param_1[2] = iVar3;
    param_1[3] = iVar3 + param_1[1] * 4;
    iVar3 = FUN_0002eb80(param_1[4],*param_1,4);
    param_1[4] = iVar3;
    puVar2 = (undefined4 *)(iVar3 + param_1[1] * 4);
  }
  puVar1 = (undefined4 *)param_1[3];
  param_1[3] = (int)(puVar1 + 1);
  *puVar1 = param_2;
  param_1[5] = (int)(puVar2 + 1);
  *puVar2 = param_3;
  param_1[1] = param_1[1] + 1;
  return;
}

