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

UNDO_LIST * _rl_copy_undo_list(UNDO_LIST *head)

{
  int iVar1;
  undo_code uVar2;
  int iVar3;
  UNDO_LIST *pUVar4;
  size_t sVar5;
  char *__dest;
  char *__s;
  UNDO_LIST *local_24;
  UNDO_LIST *local_20;
  
  local_20 = (UNDO_LIST *)0x0;
  if (head != (UNDO_LIST *)0x0) {
    do {
      iVar1 = head->start;
      uVar2 = head->what;
      iVar3 = head->end;
      pUVar4 = (UNDO_LIST *)xmalloc(0x14);
      pUVar4->end = iVar3;
      pUVar4->text = (char *)0x0;
      __s = head->text;
      pUVar4->what = uVar2;
      pUVar4->start = iVar1;
      pUVar4->next = (undo_list *)0x0;
      if (__s != (char *)0x0) {
        sVar5 = strlen(__s);
        __dest = (char *)xmalloc(sVar5 + 1);
        __s = strcpy(__dest,__s);
      }
      pUVar4->text = __s;
      if (local_20 == (UNDO_LIST *)0x0) {
        head = head->next;
        local_20 = pUVar4;
      }
      else {
        local_24->next = pUVar4;
        head = head->next;
      }
      local_24 = pUVar4;
    } while (head != (undo_list *)0x0);
    pUVar4->next = (undo_list *)0x0;
  }
  return local_20;
}



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

undefined4 * _rl_copy_undo_list(undefined4 *param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  size_t sVar5;
  char *__dest;
  char *__s;
  undefined4 *local_24;
  undefined4 *local_20;
  
  local_20 = (undefined4 *)0x0;
  if (param_1 != (undefined4 *)0x0) {
    do {
      uVar1 = param_1[1];
      uVar2 = param_1[4];
      uVar3 = param_1[2];
      puVar4 = (undefined4 *)xmalloc(0x14);
      puVar4[2] = uVar3;
      puVar4[3] = 0;
      __s = (char *)param_1[3];
      puVar4[4] = uVar2;
      puVar4[1] = uVar1;
      *puVar4 = 0;
      if (__s != (char *)0x0) {
        sVar5 = strlen(__s);
        __dest = (char *)xmalloc(sVar5 + 1);
        __s = strcpy(__dest,__s);
      }
      puVar4[3] = __s;
      if (local_20 == (undefined4 *)0x0) {
        param_1 = (undefined4 *)*param_1;
        local_20 = puVar4;
      }
      else {
        *local_24 = puVar4;
        param_1 = (undefined4 *)*param_1;
      }
      local_24 = puVar4;
    } while (param_1 != (undefined4 *)0x0);
    *puVar4 = 0;
  }
  return local_20;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0x736a7
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0xc],0x0
TEST EDI,EDI
JNZ 0x000fe994
JMP 0x000fea1e
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX],ESI
MOV EDI,dword ptr [EDI]
TEST EDI,EDI
JZ 0x000fea18
MOV dword ptr [ESP + 0x8],ESI
MOV EDX,dword ptr [EDI + 0x4]
MOV ECX,dword ptr [EDI + 0x10]
SUB ESP,0xc
MOV EBP,dword ptr [EDI + 0x8]
MOV dword ptr [ESP + 0x10],EDX
MOV dword ptr [ESP + 0xc],ECX
PUSH 0x14
CALL 0x000ad700
MOV ECX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x14]
ADD ESP,0x10
MOV dword ptr [EAX + 0x8],EBP
MOV ESI,EAX
MOV dword ptr [EAX + 0xc],0x0
MOV EBP,dword ptr [EDI + 0xc]
MOV dword ptr [EAX + 0x10],ECX
MOV dword ptr [EAX + 0x4],EDX
MOV dword ptr [EAX],0x0
TEST EBP,EBP
JZ 0x000fe9fb
SUB ESP,0xc
PUSH EBP
CALL 0x0002e760
ADD EAX,0x1
MOV dword ptr [ESP],EAX
CALL 0x000ad700
POP EDX
POP ECX
PUSH EBP
PUSH EAX
CALL 0x0002e580
ADD ESP,0x10
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESI + 0xc],EBP
TEST EAX,EAX
JNZ 0x000fe980
MOV EDI,dword ptr [EDI]
MOV dword ptr [ESP + 0xc],ESI
TEST EDI,EDI
JNZ 0x000fe990
MOV dword ptr [ESI],0x0
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * _rl_copy_undo_list(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *__dest;\n  char *__s;\n  undefined4 *local_24;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)0x0;\n  if (param_1 != (undefined4 *)0x0) {\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }\n  return local_20;\n}\n\n" comment (function_definition "undefined4 * _rl_copy_undo_list(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *__dest;\n  char *__s;\n  undefined4 *local_24;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)0x0;\n  if (param_1 != (undefined4 *)0x0) {\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }\n  return local_20;\n}" type_identifier (pointer_declarator "* _rl_copy_undo_list(undefined4 *param_1)" * (function_declarator "_rl_copy_undo_list(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *__dest;\n  char *__s;\n  undefined4 *local_24;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)0x0;\n  if (param_1 != (undefined4 *)0x0) {\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }\n  return local_20;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (declaration "undefined4 *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (undefined4 *)0x0;" (assignment_expression "local_20 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_1 != (undefined4 *)0x0) {\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }" { (do_statement "do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);" do (compound_statement "{\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    }" { (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[4];" (assignment_expression "uVar2 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "puVar4 = (undefined4 *)xmalloc(0x14);" (assignment_expression "puVar4 = (undefined4 *)xmalloc(0x14)" identifier = (cast_expression "(undefined4 *)xmalloc(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "puVar4[2] = uVar3;" (assignment_expression "puVar4[2] = uVar3" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[3] = 0;" (assignment_expression "puVar4[3] = 0" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__s = (char *)param_1[3];" (assignment_expression "__s = (char *)param_1[3]" identifier = (cast_expression "(char *)param_1[3]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "puVar4[4] = uVar2;" (assignment_expression "puVar4[4] = uVar2" (subscript_expression "puVar4[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[1] = uVar1;" (assignment_expression "puVar4[1] = uVar1" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (if_statement "if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }" { (expression_statement "sVar5 = strlen(__s);" (assignment_expression "sVar5 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar5 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar5 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar5 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5 + 1)" identifier (argument_list "(sVar5 + 1)" ( (binary_expression "sVar5 + 1" identifier + number_literal) ))))) ;) (expression_statement "__s = strcpy(__dest,__s);" (assignment_expression "__s = strcpy(__dest,__s)" identifier = (call_expression "strcpy(__dest,__s)" identifier (argument_list "(__dest,__s)" ( identifier , identifier )))) ;) })) (expression_statement "puVar4[3] = __s;" (assignment_expression "puVar4[3] = __s" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }" if (parenthesized_expression "(local_20 == (undefined4 *)0x0)" ( (binary_expression "local_20 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }" { (expression_statement "param_1 = (undefined4 *)*param_1;" (assignment_expression "param_1 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "local_20 = puVar4;" (assignment_expression "local_20 = puVar4" identifier = identifier) ;) }) (else_clause "else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }" else (compound_statement "{\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }" { (expression_statement "*local_24 = puVar4;" (assignment_expression "*local_24 = puVar4" (pointer_expression "*local_24" * identifier) = identifier) ;) (expression_statement "param_1 = (undefined4 *)*param_1;" (assignment_expression "param_1 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) (expression_statement "local_24 = puVar4;" (assignment_expression "local_24 = puVar4" identifier = identifier) ;) }) while (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) })) (return_statement "return local_20;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nUNDO_LIST * _rl_copy_undo_list(UNDO_LIST *head)\n\n{\n  int iVar1;\n  undo_code uVar2;\n  int iVar3;\n  UNDO_LIST *pUVar4;\n  size_t sVar5;\n  char *__dest;\n  char *__s;\n  UNDO_LIST *local_24;\n  UNDO_LIST *local_20;\n  \n  local_20 = (UNDO_LIST *)0x0;\n  if (head != (UNDO_LIST *)0x0) {\n    do {\n      iVar1 = head->start;\n      uVar2 = head->what;\n      iVar3 = head->end;\n      pUVar4 = (UNDO_LIST *)xmalloc(0x14);\n      pUVar4->end = iVar3;\n      pUVar4->text = (char *)0x0;\n      __s = head->text;\n      pUVar4->what = uVar2;\n      pUVar4->start = iVar1;\n      pUVar4->next = (undo_list *)0x0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      pUVar4->text = __s;\n      if (local_20 == (UNDO_LIST *)0x0) {\n        head = head->next;\n        local_20 = pUVar4;\n      }\n      else {\n        local_24->next = pUVar4;\n        head = head->next;\n      }\n      local_24 = pUVar4;\n    } while (head != (undo_list *)0x0);\n    pUVar4->next = (undo_list *)0x0;\n  }\n  return local_20;\n}\n\n" comment comment (function_definition "UNDO_LIST * _rl_copy_undo_list(UNDO_LIST *head)\n\n{\n  int iVar1;\n  undo_code uVar2;\n  int iVar3;\n  UNDO_LIST *pUVar4;\n  size_t sVar5;\n  char *__dest;\n  char *__s;\n  UNDO_LIST *local_24;\n  UNDO_LIST *local_20;\n  \n  local_20 = (UNDO_LIST *)0x0;\n  if (head != (UNDO_LIST *)0x0) {\n    do {\n      iVar1 = head->start;\n      uVar2 = head->what;\n      iVar3 = head->end;\n      pUVar4 = (UNDO_LIST *)xmalloc(0x14);\n      pUVar4->end = iVar3;\n      pUVar4->text = (char *)0x0;\n      __s = head->text;\n      pUVar4->what = uVar2;\n      pUVar4->start = iVar1;\n      pUVar4->next = (undo_list *)0x0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      pUVar4->text = __s;\n      if (local_20 == (UNDO_LIST *)0x0) {\n        head = head->next;\n        local_20 = pUVar4;\n      }\n      else {\n        local_24->next = pUVar4;\n        head = head->next;\n      }\n      local_24 = pUVar4;\n    } while (head != (undo_list *)0x0);\n    pUVar4->next = (undo_list *)0x0;\n  }\n  return local_20;\n}" type_identifier (pointer_declarator "* _rl_copy_undo_list(UNDO_LIST *head)" * (function_declarator "_rl_copy_undo_list(UNDO_LIST *head)" identifier (parameter_list "(UNDO_LIST *head)" ( (parameter_declaration "UNDO_LIST *head" type_identifier (pointer_declarator "*head" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  undo_code uVar2;\n  int iVar3;\n  UNDO_LIST *pUVar4;\n  size_t sVar5;\n  char *__dest;\n  char *__s;\n  UNDO_LIST *local_24;\n  UNDO_LIST *local_20;\n  \n  local_20 = (UNDO_LIST *)0x0;\n  if (head != (UNDO_LIST *)0x0) {\n    do {\n      iVar1 = head->start;\n      uVar2 = head->what;\n      iVar3 = head->end;\n      pUVar4 = (UNDO_LIST *)xmalloc(0x14);\n      pUVar4->end = iVar3;\n      pUVar4->text = (char *)0x0;\n      __s = head->text;\n      pUVar4->what = uVar2;\n      pUVar4->start = iVar1;\n      pUVar4->next = (undo_list *)0x0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      pUVar4->text = __s;\n      if (local_20 == (UNDO_LIST *)0x0) {\n        head = head->next;\n        local_20 = pUVar4;\n      }\n      else {\n        local_24->next = pUVar4;\n        head = head->next;\n      }\n      local_24 = pUVar4;\n    } while (head != (undo_list *)0x0);\n    pUVar4->next = (undo_list *)0x0;\n  }\n  return local_20;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undo_code uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "UNDO_LIST *pUVar4;" type_identifier (pointer_declarator "*pUVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "UNDO_LIST *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (declaration "UNDO_LIST *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (UNDO_LIST *)0x0;" (assignment_expression "local_20 = (UNDO_LIST *)0x0" identifier = (cast_expression "(UNDO_LIST *)0x0" ( (type_descriptor "UNDO_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (head != (UNDO_LIST *)0x0) {\n    do {\n      iVar1 = head->start;\n      uVar2 = head->what;\n      iVar3 = head->end;\n      pUVar4 = (UNDO_LIST *)xmalloc(0x14);\n      pUVar4->end = iVar3;\n      pUVar4->text = (char *)0x0;\n      __s = head->text;\n      pUVar4->what = uVar2;\n      pUVar4->start = iVar1;\n      pUVar4->next = (undo_list *)0x0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      pUVar4->text = __s;\n      if (local_20 == (UNDO_LIST *)0x0) {\n        head = head->next;\n        local_20 = pUVar4;\n      }\n      else {\n        local_24->next = pUVar4;\n        head = head->next;\n      }\n      local_24 = pUVar4;\n    } while (head != (undo_list *)0x0);\n    pUVar4->next = (undo_list *)0x0;\n  }" if (parenthesized_expression "(head != (UNDO_LIST *)0x0)" ( (binary_expression "head != (UNDO_LIST *)0x0" identifier != (cast_expression "(UNDO_LIST *)0x0" ( (type_descriptor "UNDO_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar1 = head->start;\n      uVar2 = head->what;\n      iVar3 = head->end;\n      pUVar4 = (UNDO_LIST *)xmalloc(0x14);\n      pUVar4->end = iVar3;\n      pUVar4->text = (char *)0x0;\n      __s = head->text;\n      pUVar4->what = uVar2;\n      pUVar4->start = iVar1;\n      pUVar4->next = (undo_list *)0x0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      pUVar4->text = __s;\n      if (local_20 == (UNDO_LIST *)0x0) {\n        head = head->next;\n        local_20 = pUVar4;\n      }\n      else {\n        local_24->next = pUVar4;\n        head = head->next;\n      }\n      local_24 = pUVar4;\n    } while (head != (undo_list *)0x0);\n    pUVar4->next = (undo_list *)0x0;\n  }" { (do_statement "do {\n      iVar1 = head->start;\n      uVar2 = head->what;\n      iVar3 = head->end;\n      pUVar4 = (UNDO_LIST *)xmalloc(0x14);\n      pUVar4->end = iVar3;\n      pUVar4->text = (char *)0x0;\n      __s = head->text;\n      pUVar4->what = uVar2;\n      pUVar4->start = iVar1;\n      pUVar4->next = (undo_list *)0x0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      pUVar4->text = __s;\n      if (local_20 == (UNDO_LIST *)0x0) {\n        head = head->next;\n        local_20 = pUVar4;\n      }\n      else {\n        local_24->next = pUVar4;\n        head = head->next;\n      }\n      local_24 = pUVar4;\n    } while (head != (undo_list *)0x0);" do (compound_statement "{\n      iVar1 = head->start;\n      uVar2 = head->what;\n      iVar3 = head->end;\n      pUVar4 = (UNDO_LIST *)xmalloc(0x14);\n      pUVar4->end = iVar3;\n      pUVar4->text = (char *)0x0;\n      __s = head->text;\n      pUVar4->what = uVar2;\n      pUVar4->start = iVar1;\n      pUVar4->next = (undo_list *)0x0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      pUVar4->text = __s;\n      if (local_20 == (UNDO_LIST *)0x0) {\n        head = head->next;\n        local_20 = pUVar4;\n      }\n      else {\n        local_24->next = pUVar4;\n        head = head->next;\n      }\n      local_24 = pUVar4;\n    }" { (expression_statement "iVar1 = head->start;" (assignment_expression "iVar1 = head->start" identifier = (field_expression "head->start" identifier -> field_identifier)) ;) (expression_statement "uVar2 = head->what;" (assignment_expression "uVar2 = head->what" identifier = (field_expression "head->what" identifier -> field_identifier)) ;) (expression_statement "iVar3 = head->end;" (assignment_expression "iVar3 = head->end" identifier = (field_expression "head->end" identifier -> field_identifier)) ;) (expression_statement "pUVar4 = (UNDO_LIST *)xmalloc(0x14);" (assignment_expression "pUVar4 = (UNDO_LIST *)xmalloc(0x14)" identifier = (cast_expression "(UNDO_LIST *)xmalloc(0x14)" ( (type_descriptor "UNDO_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "pUVar4->end = iVar3;" (assignment_expression "pUVar4->end = iVar3" (field_expression "pUVar4->end" identifier -> field_identifier) = identifier) ;) (expression_statement "pUVar4->text = (char *)0x0;" (assignment_expression "pUVar4->text = (char *)0x0" (field_expression "pUVar4->text" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "__s = head->text;" (assignment_expression "__s = head->text" identifier = (field_expression "head->text" identifier -> field_identifier)) ;) (expression_statement "pUVar4->what = uVar2;" (assignment_expression "pUVar4->what = uVar2" (field_expression "pUVar4->what" identifier -> field_identifier) = identifier) ;) (expression_statement "pUVar4->start = iVar1;" (assignment_expression "pUVar4->start = iVar1" (field_expression "pUVar4->start" identifier -> field_identifier) = identifier) ;) (expression_statement "pUVar4->next = (undo_list *)0x0;" (assignment_expression "pUVar4->next = (undo_list *)0x0" (field_expression "pUVar4->next" identifier -> field_identifier) = (cast_expression "(undo_list *)0x0" ( (type_descriptor "undo_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }" { (expression_statement "sVar5 = strlen(__s);" (assignment_expression "sVar5 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar5 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar5 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar5 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5 + 1)" identifier (argument_list "(sVar5 + 1)" ( (binary_expression "sVar5 + 1" identifier + number_literal) ))))) ;) (expression_statement "__s = strcpy(__dest,__s);" (assignment_expression "__s = strcpy(__dest,__s)" identifier = (call_expression "strcpy(__dest,__s)" identifier (argument_list "(__dest,__s)" ( identifier , identifier )))) ;) })) (expression_statement "pUVar4->text = __s;" (assignment_expression "pUVar4->text = __s" (field_expression "pUVar4->text" identifier -> field_identifier) = identifier) ;) (if_statement "if (local_20 == (UNDO_LIST *)0x0) {\n        head = head->next;\n        local_20 = pUVar4;\n      }\n      else {\n        local_24->next = pUVar4;\n        head = head->next;\n      }" if (parenthesized_expression "(local_20 == (UNDO_LIST *)0x0)" ( (binary_expression "local_20 == (UNDO_LIST *)0x0" identifier == (cast_expression "(UNDO_LIST *)0x0" ( (type_descriptor "UNDO_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        head = head->next;\n        local_20 = pUVar4;\n      }" { (expression_statement "head = head->next;" (assignment_expression "head = head->next" identifier = (field_expression "head->next" identifier -> field_identifier)) ;) (expression_statement "local_20 = pUVar4;" (assignment_expression "local_20 = pUVar4" identifier = identifier) ;) }) (else_clause "else {\n        local_24->next = pUVar4;\n        head = head->next;\n      }" else (compound_statement "{\n        local_24->next = pUVar4;\n        head = head->next;\n      }" { (expression_statement "local_24->next = pUVar4;" (assignment_expression "local_24->next = pUVar4" (field_expression "local_24->next" identifier -> field_identifier) = identifier) ;) (expression_statement "head = head->next;" (assignment_expression "head = head->next" identifier = (field_expression "head->next" identifier -> field_identifier)) ;) }))) (expression_statement "local_24 = pUVar4;" (assignment_expression "local_24 = pUVar4" identifier = identifier) ;) }) while (parenthesized_expression "(head != (undo_list *)0x0)" ( (binary_expression "head != (undo_list *)0x0" identifier != (cast_expression "(undo_list *)0x0" ( (type_descriptor "undo_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "pUVar4->next = (undo_list *)0x0;" (assignment_expression "pUVar4->next = (undo_list *)0x0" (field_expression "pUVar4->next" identifier -> field_identifier) = (cast_expression "(undo_list *)0x0" ( (type_descriptor "undo_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return local_20;" return identifier ;) })))
(translation_unit "undefined4 * _rl_copy_undo_list(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *__dest;\n  char *__s;\n  undefined4 *local_24;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)0x0;\n  if (param_1 != (undefined4 *)0x0) {\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }\n  return local_20;\n}\n\n" (function_definition "undefined4 * _rl_copy_undo_list(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *__dest;\n  char *__s;\n  undefined4 *local_24;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)0x0;\n  if (param_1 != (undefined4 *)0x0) {\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }\n  return local_20;\n}" type_identifier (pointer_declarator "* _rl_copy_undo_list(undefined4 *param_1)" * (function_declarator "_rl_copy_undo_list(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *__dest;\n  char *__s;\n  undefined4 *local_24;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)0x0;\n  if (param_1 != (undefined4 *)0x0) {\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }\n  return local_20;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (declaration "undefined4 *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (undefined4 *)0x0;" (assignment_expression "local_20 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_1 != (undefined4 *)0x0) {\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }" { (do_statement "do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);" do (compound_statement "{\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    }" { (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[4];" (assignment_expression "uVar2 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "puVar4 = (undefined4 *)xmalloc(0x14);" (assignment_expression "puVar4 = (undefined4 *)xmalloc(0x14)" identifier = (cast_expression "(undefined4 *)xmalloc(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "puVar4[2] = uVar3;" (assignment_expression "puVar4[2] = uVar3" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[3] = 0;" (assignment_expression "puVar4[3] = 0" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__s = (char *)param_1[3];" (assignment_expression "__s = (char *)param_1[3]" identifier = (cast_expression "(char *)param_1[3]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "puVar4[4] = uVar2;" (assignment_expression "puVar4[4] = uVar2" (subscript_expression "puVar4[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4[1] = uVar1;" (assignment_expression "puVar4[1] = uVar1" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (if_statement "if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }" { (expression_statement "sVar5 = strlen(__s);" (assignment_expression "sVar5 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar5 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar5 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar5 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5 + 1)" identifier (argument_list "(sVar5 + 1)" ( (binary_expression "sVar5 + 1" identifier + number_literal) ))))) ;) (expression_statement "__s = strcpy(__dest,__s);" (assignment_expression "__s = strcpy(__dest,__s)" identifier = (call_expression "strcpy(__dest,__s)" identifier (argument_list "(__dest,__s)" ( identifier , identifier )))) ;) })) (expression_statement "puVar4[3] = __s;" (assignment_expression "puVar4[3] = __s" (subscript_expression "puVar4[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }" if (parenthesized_expression "(local_20 == (undefined4 *)0x0)" ( (binary_expression "local_20 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }" { (expression_statement "param_1 = (undefined4 *)*param_1;" (assignment_expression "param_1 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "local_20 = puVar4;" (assignment_expression "local_20 = puVar4" identifier = identifier) ;) }) (else_clause "else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }" else (compound_statement "{\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }" { (expression_statement "*local_24 = puVar4;" (assignment_expression "*local_24 = puVar4" (pointer_expression "*local_24" * identifier) = identifier) ;) (expression_statement "param_1 = (undefined4 *)*param_1;" (assignment_expression "param_1 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) (expression_statement "local_24 = puVar4;" (assignment_expression "local_24 = puVar4" identifier = identifier) ;) }) while (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) })) (return_statement "return local_20;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_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 ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 * _rl_copy_undo_list(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *__dest;\n  char *__s;\n  undefined4 *local_24;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)0x0;\n  if (param_1 != (undefined4 *)0x0) {\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }\n  return local_20;\n}" (type_identifier "undefined4") (pointer_declarator "* _rl_copy_undo_list(undefined4 *param_1)" (* "*") (function_declarator "_rl_copy_undo_list(undefined4 *param_1)" (identifier "_rl_copy_undo_list") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  size_t sVar5;\n  char *__dest;\n  char *__s;\n  undefined4 *local_24;\n  undefined4 *local_20;\n  \n  local_20 = (undefined4 *)0x0;\n  if (param_1 != (undefined4 *)0x0) {\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }\n  return local_20;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined4 *local_24;" (type_identifier "undefined4") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (declaration "undefined4 *local_20;" (type_identifier "undefined4") (pointer_declarator "*local_20" (* "*") (identifier "local_20")) (; ";")) (expression_statement "local_20 = (undefined4 *)0x0;" (assignment_expression "local_20 = (undefined4 *)0x0" (identifier "local_20") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (param_1 != (undefined4 *)0x0) {\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }" (if "if") (parenthesized_expression "(param_1 != (undefined4 *)0x0)" (( "(") (binary_expression "param_1 != (undefined4 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);\n    *puVar4 = 0;\n  }" ({ "{") (do_statement "do {\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    } while (param_1 != (undefined4 *)0x0);" (do "do") (compound_statement "{\n      uVar1 = param_1[1];\n      uVar2 = param_1[4];\n      uVar3 = param_1[2];\n      puVar4 = (undefined4 *)xmalloc(0x14);\n      puVar4[2] = uVar3;\n      puVar4[3] = 0;\n      __s = (char *)param_1[3];\n      puVar4[4] = uVar2;\n      puVar4[1] = uVar1;\n      *puVar4 = 0;\n      if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }\n      puVar4[3] = __s;\n      if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }\n      local_24 = puVar4;\n    }" ({ "{") (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" (identifier "uVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar2 = param_1[4];" (assignment_expression "uVar2 = param_1[4]" (identifier "uVar2") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" (identifier "uVar3") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "puVar4 = (undefined4 *)xmalloc(0x14);" (assignment_expression "puVar4 = (undefined4 *)xmalloc(0x14)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)xmalloc(0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x14)" (identifier "xmalloc") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "puVar4[2] = uVar3;" (assignment_expression "puVar4[2] = uVar3" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar4[3] = 0;" (assignment_expression "puVar4[3] = 0" (subscript_expression "puVar4[3]" (identifier "puVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "__s = (char *)param_1[3];" (assignment_expression "__s = (char *)param_1[3]" (identifier "__s") (= "=") (cast_expression "(char *)param_1[3]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "puVar4[4] = uVar2;" (assignment_expression "puVar4[4] = uVar2" (subscript_expression "puVar4[4]" (identifier "puVar4") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar4[1] = uVar1;" (assignment_expression "puVar4[1] = uVar1" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (__s != (char *)0x0) {\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }" (if "if") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        sVar5 = strlen(__s);\n        __dest = (char *)xmalloc(sVar5 + 1);\n        __s = strcpy(__dest,__s);\n      }" ({ "{") (expression_statement "sVar5 = strlen(__s);" (assignment_expression "sVar5 = strlen(__s)" (identifier "sVar5") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "__dest = (char *)xmalloc(sVar5 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar5 + 1)" (identifier "__dest") (= "=") (cast_expression "(char *)xmalloc(sVar5 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar5 + 1)" (identifier "xmalloc") (argument_list "(sVar5 + 1)" (( "(") (binary_expression "sVar5 + 1" (identifier "sVar5") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "__s = strcpy(__dest,__s);" (assignment_expression "__s = strcpy(__dest,__s)" (identifier "__s") (= "=") (call_expression "strcpy(__dest,__s)" (identifier "strcpy") (argument_list "(__dest,__s)" (( "(") (identifier "__dest") (, ",") (identifier "__s") () ")")))) (; ";")) (} "}"))) (expression_statement "puVar4[3] = __s;" (assignment_expression "puVar4[3] = __s" (subscript_expression "puVar4[3]" (identifier "puVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "__s")) (; ";")) (if_statement "if (local_20 == (undefined4 *)0x0) {\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }\n      else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }" (if "if") (parenthesized_expression "(local_20 == (undefined4 *)0x0)" (( "(") (binary_expression "local_20 == (undefined4 *)0x0" (identifier "local_20") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        param_1 = (undefined4 *)*param_1;\n        local_20 = puVar4;\n      }" ({ "{") (expression_statement "param_1 = (undefined4 *)*param_1;" (assignment_expression "param_1 = (undefined4 *)*param_1" (identifier "param_1") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "local_20 = puVar4;" (assignment_expression "local_20 = puVar4" (identifier "local_20") (= "=") (identifier "puVar4")) (; ";")) (} "}")) (else_clause "else {\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }" (else "else") (compound_statement "{\n        *local_24 = puVar4;\n        param_1 = (undefined4 *)*param_1;\n      }" ({ "{") (expression_statement "*local_24 = puVar4;" (assignment_expression "*local_24 = puVar4" (pointer_expression "*local_24" (* "*") (identifier "local_24")) (= "=") (identifier "puVar4")) (; ";")) (expression_statement "param_1 = (undefined4 *)*param_1;" (assignment_expression "param_1 = (undefined4 *)*param_1" (identifier "param_1") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")))) (expression_statement "local_24 = puVar4;" (assignment_expression "local_24 = puVar4" (identifier "local_24") (= "=") (identifier "puVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != (undefined4 *)0x0)" (( "(") (binary_expression "param_1 != (undefined4 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return local_20;" (return "return") (identifier "local_20") (; ";")) (} "}")))

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

type_1 * function_1(type_1 *var_1)

{
  int iVar1;
  type_2 uVar2;
  int iVar3;
  type_1 *pUVar4;
  size_t var_5;
  char *__dest;
  char *var_3;
  type_1 *local_24;
  type_1 *var_7;
  
  var_7 = (type_1 *)0x0;
  if (var_1 != (type_1 *)0x0) {
    do {
      iVar1 = var_1->start;
      uVar2 = var_1->what;
      iVar3 = var_1->end;
      pUVar4 = (type_1 *)var_2(0x14);
      pUVar4->end = iVar3;
      pUVar4->text = (char *)0x0;
      var_3 = var_1->text;
      pUVar4->what = uVar2;
      pUVar4->start = iVar1;
      pUVar4->next = (type_3 *)0x0;
      if (var_3 != (char *)0x0) {
        var_5 = var_4(var_3);
        __dest = (char *)var_2(var_5 + 1);
        var_3 = var_6(__dest,var_3);
      }
      pUVar4->text = var_3;
      if (var_7 == (type_1 *)0x0) {
        var_1 = var_1->next;
        var_7 = pUVar4;
      }
      else {
        local_24->next = pUVar4;
        var_1 = var_1->next;
      }
      local_24 = pUVar4;
    } while (var_1 != (type_3 *)0x0);
    pUVar4->next = (type_3 *)0x0;
  }
  return var_7;
}


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

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

undefined4 * MASKED(undefined4 *param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  size_t sVar5;
  char *__dest;
  char *__s;
  undefined4 *local_24;
  undefined4 *local_20;
  
  local_20 = (undefined4 *)0x0;
  if (param_1 != (undefined4 *)0x0) {
    do {
      uVar1 = param_1[1];
      uVar2 = param_1[4];
      uVar3 = param_1[2];
      puVar4 = (undefined4 *)xmalloc(0x14);
      puVar4[2] = uVar3;
      puVar4[3] = 0;
      __s = (char *)param_1[3];
      puVar4[4] = uVar2;
      puVar4[1] = uVar1;
      *puVar4 = 0;
      if (__s != (char *)0x0) {
        sVar5 = strlen(__s);
        __dest = (char *)xmalloc(sVar5 + 1);
        __s = strcpy(__dest,__s);
      }
      puVar4[3] = __s;
      if (local_20 == (undefined4 *)0x0) {
        param_1 = (undefined4 *)*param_1;
        local_20 = puVar4;
      }
      else {
        *local_24 = puVar4;
        param_1 = (undefined4 *)*param_1;
      }
      local_24 = puVar4;
    } while (param_1 != (undefined4 *)0x0);
    *puVar4 = 0;
  }
  return local_20;
}

