
/* _txnal_cow_string_C1_for_exceptions(void*, char const*, void*) */

void _txnal_cow_string_C1_for_exceptions(void *param_1,char *param_2,void *param_3)

{
  char cVar1;
  long *plVar2;
  long lVar3;
  
  lVar3 = 1;
  while( true ) {
    cVar1 = _ITM_RU1(param_2 + lVar3 + -1);
    if (cVar1 == '\0') break;
    lVar3 = lVar3 + 1;
  }
                    /* try { // try from 002b61f6 to 002b61fa has its CatchHandler @ 002b622e */
  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);
  *(undefined4 *)(plVar2 + 2) = 0;
  plVar2[1] = lVar3 + -1;
  *plVar2 = lVar3 + -1;
  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);
  *(long **)param_1 = plVar2 + 3;
  return;
}



void FUN_002b61c0(undefined8 *param_1,long param_2)

{
  char cVar1;
  long *plVar2;
  long lVar3;
  
  lVar3 = 1;
  while( true ) {
    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);
    if (cVar1 == '\0') break;
    lVar3 = lVar3 + 1;
  }
                    /* try { // try from 002b61f6 to 002b61fa has its CatchHandler @ 002b622e */
  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);
  *(undefined4 *)(plVar2 + 2) = 0;
  plVar2[1] = lVar3 + -1;
  *plVar2 = lVar3 + -1;
  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);
  *param_1 = plVar2 + 3;
  return;
}


PUSH R13
MOV R13,RDI
PUSH R12
MOV R12,RSI
PUSH RBP
LEA RBP,[RSI + -0x1]
PUSH RBX
MOV EBX,0x1
SUB RSP,0x8
JMP 0x002b61e4
ADD RBX,0x1
LEA RDI,[RBP + RBX*0x1]
CALL 0x0013e2c0
TEST AL,AL
JNZ 0x002b61e0
LEA RDI,[RBX + 0x18]
CALL 0x0013e9c0
LEA RDX,[RBX + -0x1]
MOV dword ptr [RAX + 0x10],0x0
LEA RBP,[RAX + 0x18]
MOV RSI,R12
MOV qword ptr [RAX + 0x8],RDX
MOV RDI,RBP
MOV qword ptr [RAX],RDX
MOV RDX,RBX
CALL 0x0013e050
MOV qword ptr [R13],RBP
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
(translation_unit "void FUN_002b61c0(undefined8 *param_1,long param_2)\n\n{\n  char cVar1;\n  long *plVar2;\n  long lVar3;\n  \n  lVar3 = 1;\n  while( true ) {\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }\n                    /* try { // try from 002b61f6 to 002b61fa has its CatchHandler @ 002b622e */\n  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);\n  *(undefined4 *)(plVar2 + 2) = 0;\n  plVar2[1] = lVar3 + -1;\n  *plVar2 = lVar3 + -1;\n  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);\n  *param_1 = plVar2 + 3;\n  return;\n}\n\n" (function_definition "void FUN_002b61c0(undefined8 *param_1,long param_2)\n\n{\n  char cVar1;\n  long *plVar2;\n  long lVar3;\n  \n  lVar3 = 1;\n  while( true ) {\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }\n                    /* try { // try from 002b61f6 to 002b61fa has its CatchHandler @ 002b622e */\n  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);\n  *(undefined4 *)(plVar2 + 2) = 0;\n  plVar2[1] = lVar3 + -1;\n  *plVar2 = lVar3 + -1;\n  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);\n  *param_1 = plVar2 + 3;\n  return;\n}" primitive_type (function_declarator "FUN_002b61c0(undefined8 *param_1,long param_2)" identifier (parameter_list "(undefined8 *param_1,long param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  char cVar1;\n  long *plVar2;\n  long lVar3;\n  \n  lVar3 = 1;\n  while( true ) {\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }\n                    /* try { // try from 002b61f6 to 002b61fa has its CatchHandler @ 002b622e */\n  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);\n  *(undefined4 *)(plVar2 + 2) = 0;\n  plVar2[1] = lVar3 + -1;\n  *plVar2 = lVar3 + -1;\n  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);\n  *param_1 = plVar2 + 3;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar3 = 1;" (assignment_expression "lVar3 = 1" identifier = number_literal) ;) (while_statement "while( true ) {\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }" { (expression_statement "cVar1 = _ITM_RU1(param_2 + -1 + lVar3);" (assignment_expression "cVar1 = _ITM_RU1(param_2 + -1 + lVar3)" identifier = (call_expression "_ITM_RU1(param_2 + -1 + lVar3)" identifier (argument_list "(param_2 + -1 + lVar3)" ( (binary_expression "param_2 + -1 + lVar3" (binary_expression "param_2 + -1" identifier + number_literal) + identifier) )))) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" identifier = (binary_expression "lVar3 + 1" identifier + number_literal)) ;) })) comment (expression_statement "plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);" (assignment_expression "plVar2 = (long *)_ZGTtnam(lVar3 + 0x18)" identifier = (cast_expression "(long *)_ZGTtnam(lVar3 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "_ZGTtnam(lVar3 + 0x18)" identifier (argument_list "(lVar3 + 0x18)" ( (binary_expression "lVar3 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(plVar2 + 2) = 0;" (assignment_expression "*(undefined4 *)(plVar2 + 2) = 0" (pointer_expression "*(undefined4 *)(plVar2 + 2)" * (cast_expression "(undefined4 *)(plVar2 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 2)" ( (binary_expression "plVar2 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "plVar2[1] = lVar3 + -1;" (assignment_expression "plVar2[1] = lVar3 + -1" (subscript_expression "plVar2[1]" identifier [ number_literal ]) = (binary_expression "lVar3 + -1" identifier + number_literal)) ;) (expression_statement "*plVar2 = lVar3 + -1;" (assignment_expression "*plVar2 = lVar3 + -1" (pointer_expression "*plVar2" * identifier) = (binary_expression "lVar3 + -1" identifier + number_literal)) ;) (expression_statement "_ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);" (call_expression "_ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3)" identifier (argument_list "(plVar2 + 3,param_2,lVar3)" ( (binary_expression "plVar2 + 3" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*param_1 = plVar2 + 3;" (assignment_expression "*param_1 = plVar2 + 3" (pointer_expression "*param_1" * identifier) = (binary_expression "plVar2 + 3" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* _txnal_cow_string_C1_for_exceptions(void*, char const*, void*) */\n\nvoid _txnal_cow_string_C1_for_exceptions(void *param_1,char *param_2,void *param_3)\n\n{\n  char cVar1;\n  long *plVar2;\n  long lVar3;\n  \n  lVar3 = 1;\n  while( true ) {\n    cVar1 = _ITM_RU1(param_2 + lVar3 + -1);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }\n                    /* try { // try from 002b61f6 to 002b61fa has its CatchHandler @ 002b622e */\n  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);\n  *(undefined4 *)(plVar2 + 2) = 0;\n  plVar2[1] = lVar3 + -1;\n  *plVar2 = lVar3 + -1;\n  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);\n  *(long **)param_1 = plVar2 + 3;\n  return;\n}\n\n" comment (function_definition "void _txnal_cow_string_C1_for_exceptions(void *param_1,char *param_2,void *param_3)\n\n{\n  char cVar1;\n  long *plVar2;\n  long lVar3;\n  \n  lVar3 = 1;\n  while( true ) {\n    cVar1 = _ITM_RU1(param_2 + lVar3 + -1);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }\n                    /* try { // try from 002b61f6 to 002b61fa has its CatchHandler @ 002b622e */\n  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);\n  *(undefined4 *)(plVar2 + 2) = 0;\n  plVar2[1] = lVar3 + -1;\n  *plVar2 = lVar3 + -1;\n  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);\n  *(long **)param_1 = plVar2 + 3;\n  return;\n}" primitive_type (function_declarator "_txnal_cow_string_C1_for_exceptions(void *param_1,char *param_2,void *param_3)" identifier (parameter_list "(void *param_1,char *param_2,void *param_3)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  long *plVar2;\n  long lVar3;\n  \n  lVar3 = 1;\n  while( true ) {\n    cVar1 = _ITM_RU1(param_2 + lVar3 + -1);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }\n                    /* try { // try from 002b61f6 to 002b61fa has its CatchHandler @ 002b622e */\n  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);\n  *(undefined4 *)(plVar2 + 2) = 0;\n  plVar2[1] = lVar3 + -1;\n  *plVar2 = lVar3 + -1;\n  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);\n  *(long **)param_1 = plVar2 + 3;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar3 = 1;" (assignment_expression "lVar3 = 1" identifier = number_literal) ;) (while_statement "while( true ) {\n    cVar1 = _ITM_RU1(param_2 + lVar3 + -1);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    cVar1 = _ITM_RU1(param_2 + lVar3 + -1);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }" { (expression_statement "cVar1 = _ITM_RU1(param_2 + lVar3 + -1);" (assignment_expression "cVar1 = _ITM_RU1(param_2 + lVar3 + -1)" identifier = (call_expression "_ITM_RU1(param_2 + lVar3 + -1)" identifier (argument_list "(param_2 + lVar3 + -1)" ( (binary_expression "param_2 + lVar3 + -1" (binary_expression "param_2 + lVar3" identifier + identifier) + number_literal) )))) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" identifier = (binary_expression "lVar3 + 1" identifier + number_literal)) ;) })) comment (expression_statement "plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);" (assignment_expression "plVar2 = (long *)_ZGTtnam(lVar3 + 0x18)" identifier = (cast_expression "(long *)_ZGTtnam(lVar3 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "_ZGTtnam(lVar3 + 0x18)" identifier (argument_list "(lVar3 + 0x18)" ( (binary_expression "lVar3 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(plVar2 + 2) = 0;" (assignment_expression "*(undefined4 *)(plVar2 + 2) = 0" (pointer_expression "*(undefined4 *)(plVar2 + 2)" * (cast_expression "(undefined4 *)(plVar2 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 2)" ( (binary_expression "plVar2 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "plVar2[1] = lVar3 + -1;" (assignment_expression "plVar2[1] = lVar3 + -1" (subscript_expression "plVar2[1]" identifier [ number_literal ]) = (binary_expression "lVar3 + -1" identifier + number_literal)) ;) (expression_statement "*plVar2 = lVar3 + -1;" (assignment_expression "*plVar2 = lVar3 + -1" (pointer_expression "*plVar2" * identifier) = (binary_expression "lVar3 + -1" identifier + number_literal)) ;) (expression_statement "_ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);" (call_expression "_ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3)" identifier (argument_list "(plVar2 + 3,param_2,lVar3)" ( (binary_expression "plVar2 + 3" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*(long **)param_1 = plVar2 + 3;" (assignment_expression "*(long **)param_1 = plVar2 + 3" (pointer_expression "*(long **)param_1" * (cast_expression "(long **)param_1" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "plVar2 + 3" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002b61c0(undefined8 *param_1,long param_2)\n\n{\n  char cVar1;\n  long *plVar2;\n  long lVar3;\n  \n  lVar3 = 1;\n  while( true ) {\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }\n                    \n  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);\n  *(undefined4 *)(plVar2 + 2) = 0;\n  plVar2[1] = lVar3 + -1;\n  *plVar2 = lVar3 + -1;\n  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);\n  *param_1 = plVar2 + 3;\n  return;\n}\n\n" (function_definition "void FUN_002b61c0(undefined8 *param_1,long param_2)\n\n{\n  char cVar1;\n  long *plVar2;\n  long lVar3;\n  \n  lVar3 = 1;\n  while( true ) {\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }\n                    \n  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);\n  *(undefined4 *)(plVar2 + 2) = 0;\n  plVar2[1] = lVar3 + -1;\n  *plVar2 = lVar3 + -1;\n  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);\n  *param_1 = plVar2 + 3;\n  return;\n}" primitive_type (function_declarator "FUN_002b61c0(undefined8 *param_1,long param_2)" identifier (parameter_list "(undefined8 *param_1,long param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  char cVar1;\n  long *plVar2;\n  long lVar3;\n  \n  lVar3 = 1;\n  while( true ) {\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }\n                    \n  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);\n  *(undefined4 *)(plVar2 + 2) = 0;\n  plVar2[1] = lVar3 + -1;\n  *plVar2 = lVar3 + -1;\n  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);\n  *param_1 = plVar2 + 3;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar3 = 1;" (assignment_expression "lVar3 = 1" identifier = number_literal) ;) (while_statement "while( true ) {\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }" { (expression_statement "cVar1 = _ITM_RU1(param_2 + -1 + lVar3);" (assignment_expression "cVar1 = _ITM_RU1(param_2 + -1 + lVar3)" identifier = (call_expression "_ITM_RU1(param_2 + -1 + lVar3)" identifier (argument_list "(param_2 + -1 + lVar3)" ( (binary_expression "param_2 + -1 + lVar3" (binary_expression "param_2 + -1" identifier + number_literal) + identifier) )))) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" identifier = (binary_expression "lVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);" (assignment_expression "plVar2 = (long *)_ZGTtnam(lVar3 + 0x18)" identifier = (cast_expression "(long *)_ZGTtnam(lVar3 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "_ZGTtnam(lVar3 + 0x18)" identifier (argument_list "(lVar3 + 0x18)" ( (binary_expression "lVar3 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(plVar2 + 2) = 0;" (assignment_expression "*(undefined4 *)(plVar2 + 2) = 0" (pointer_expression "*(undefined4 *)(plVar2 + 2)" * (cast_expression "(undefined4 *)(plVar2 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 2)" ( (binary_expression "plVar2 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "plVar2[1] = lVar3 + -1;" (assignment_expression "plVar2[1] = lVar3 + -1" (subscript_expression "plVar2[1]" identifier [ number_literal ]) = (binary_expression "lVar3 + -1" identifier + number_literal)) ;) (expression_statement "*plVar2 = lVar3 + -1;" (assignment_expression "*plVar2 = lVar3 + -1" (pointer_expression "*plVar2" * identifier) = (binary_expression "lVar3 + -1" identifier + number_literal)) ;) (expression_statement "_ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);" (call_expression "_ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3)" identifier (argument_list "(plVar2 + 3,param_2,lVar3)" ( (binary_expression "plVar2 + 3" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*param_1 = plVar2 + 3;" (assignment_expression "*param_1 = plVar2 + 3" (pointer_expression "*param_1" * identifier) = (binary_expression "plVar2 + 3" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_002b61c0(undefined8 *param_1,long param_2)\n\n{\n  char cVar1;\n  long *plVar2;\n  long lVar3;\n  \n  lVar3 = 1;\n  while( true ) {\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }\n                    \n  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);\n  *(undefined4 *)(plVar2 + 2) = 0;\n  plVar2[1] = lVar3 + -1;\n  *plVar2 = lVar3 + -1;\n  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);\n  *param_1 = plVar2 + 3;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002b61c0(undefined8 *param_1,long param_2)" (identifier "FUN_002b61c0") (parameter_list "(undefined8 *param_1,long param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  long *plVar2;\n  long lVar3;\n  \n  lVar3 = 1;\n  while( true ) {\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }\n                    \n  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);\n  *(undefined4 *)(plVar2 + 2) = 0;\n  plVar2[1] = lVar3 + -1;\n  *plVar2 = lVar3 + -1;\n  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);\n  *param_1 = plVar2 + 3;\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (expression_statement "lVar3 = 1;" (assignment_expression "lVar3 = 1" (identifier "lVar3") (= "=") (number_literal "1")) (; ";")) (while_statement "while( true ) {\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);\n    if (cVar1 == '\0') break;\n    lVar3 = lVar3 + 1;\n  }" ({ "{") (expression_statement "cVar1 = _ITM_RU1(param_2 + -1 + lVar3);" (assignment_expression "cVar1 = _ITM_RU1(param_2 + -1 + lVar3)" (identifier "cVar1") (= "=") (call_expression "_ITM_RU1(param_2 + -1 + lVar3)" (identifier "_ITM_RU1") (argument_list "(param_2 + -1 + lVar3)" (( "(") (binary_expression "param_2 + -1 + lVar3" (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1")) (+ "+") (identifier "lVar3")) () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') break;" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" (identifier "lVar3") (= "=") (binary_expression "lVar3 + 1" (identifier "lVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);" (assignment_expression "plVar2 = (long *)_ZGTtnam(lVar3 + 0x18)" (identifier "plVar2") (= "=") (cast_expression "(long *)_ZGTtnam(lVar3 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "_ZGTtnam(lVar3 + 0x18)" (identifier "_ZGTtnam") (argument_list "(lVar3 + 0x18)" (( "(") (binary_expression "lVar3 + 0x18" (identifier "lVar3") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(plVar2 + 2) = 0;" (assignment_expression "*(undefined4 *)(plVar2 + 2) = 0" (pointer_expression "*(undefined4 *)(plVar2 + 2)" (* "*") (cast_expression "(undefined4 *)(plVar2 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar2 + 2)" (( "(") (binary_expression "plVar2 + 2" (identifier "plVar2") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "plVar2[1] = lVar3 + -1;" (assignment_expression "plVar2[1] = lVar3 + -1" (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "lVar3 + -1" (identifier "lVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*plVar2 = lVar3 + -1;" (assignment_expression "*plVar2 = lVar3 + -1" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (= "=") (binary_expression "lVar3 + -1" (identifier "lVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "_ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);" (call_expression "_ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3)" (identifier "_ITM_memcpyRtWn") (argument_list "(plVar2 + 3,param_2,lVar3)" (( "(") (binary_expression "plVar2 + 3" (identifier "plVar2") (+ "+") (number_literal "3")) (, ",") (identifier "param_2") (, ",") (identifier "lVar3") () ")"))) (; ";")) (expression_statement "*param_1 = plVar2 + 3;" (assignment_expression "*param_1 = plVar2 + 3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "plVar2 + 3" (identifier "plVar2") (+ "+") (number_literal "3"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* _txnal_cow_string_C1_for_exceptions(void*, char const*, void*) */

void function_1(void *param_1,char *var_2,void *param_3)

{
  char var_4;
  long *var_6;
  long var_3;
  
  var_3 = 1;
  while( true ) {
    var_4 = var_1(var_2 + var_3 + -1);
    if (var_4 == '\0') break;
    var_3 = var_3 + 1;
  }
                    /* try { // try from 002b61f6 to 002b61fa has its CatchHandler @ 002b622e */
  var_6 = (long *)var_5(var_3 + 0x18);
  *(type_1 *)(var_6 + 2) = 0;
  var_6[1] = var_3 + -1;
  *var_6 = var_3 + -1;
  var_7(var_6 + 3,var_2,var_3);
  *(long **)param_1 = var_6 + 3;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement))))

void MASKED(undefined8 *param_1,long param_2)

{
  char cVar1;
  long *plVar2;
  long lVar3;
  
  lVar3 = 1;
  while( true ) {
    cVar1 = _ITM_RU1(param_2 + -1 + lVar3);
    if (cVar1 == '\0') break;
    lVar3 = lVar3 + 1;
  }
                    /* try { // try from 002b61f6 to 002b61fa has its CatchHandler @ 002b622e */
  plVar2 = (long *)_ZGTtnam(lVar3 + 0x18);
  *(undefined4 *)(plVar2 + 2) = 0;
  plVar2[1] = lVar3 + -1;
  *plVar2 = lVar3 + -1;
  _ITM_memcpyRtWn(plVar2 + 3,param_2,lVar3);
  *param_1 = plVar2 + 3;
  return;
}

