
/* WARNING: Unknown calling convention */

void sb_add_char(sb *ptr,size_t c)

{
  size_t sVar1;
  
  sb_check(ptr,1);
  sVar1 = ptr->len;
  ptr->len = sVar1 + 1;
  ptr->ptr[sVar1] = (char)c;
  return;
}



void FUN_000358b0(int *param_1,undefined1 param_2)

{
  int iVar1;
  
  FUN_000356e0();
  iVar1 = param_1[1];
  param_1[1] = iVar1 + 1;
  *(undefined1 *)(*param_1 + iVar1) = param_2;
  return;
}


PUSH EBX
MOV EDX,0x1
SUB ESP,0x8
MOV EBX,dword ptr [ESP + 0x10]
MOV EAX,EBX
CALL 0x000356e0
MOV EAX,dword ptr [EBX + 0x4]
MOV EDX,dword ptr [EBX]
LEA ECX,[EAX + 0x1]
MOV dword ptr [EBX + 0x4],ECX
MOV ECX,dword ptr [ESP + 0x14]
MOV byte ptr [EDX + EAX*0x1],CL
ADD ESP,0x8
POP EBX
RET
(translation_unit "void FUN_000358b0(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  \n  FUN_000356e0();\n  iVar1 = param_1[1];\n  param_1[1] = iVar1 + 1;\n  *(undefined1 *)(*param_1 + iVar1) = param_2;\n  return;\n}\n\n" (function_definition "void FUN_000358b0(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  \n  FUN_000356e0();\n  iVar1 = param_1[1];\n  param_1[1] = iVar1 + 1;\n  *(undefined1 *)(*param_1 + iVar1) = param_2;\n  return;\n}" primitive_type (function_declarator "FUN_000358b0(int *param_1,undefined1 param_2)" identifier (parameter_list "(int *param_1,undefined1 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  FUN_000356e0();\n  iVar1 = param_1[1];\n  param_1[1] = iVar1 + 1;\n  *(undefined1 *)(*param_1 + iVar1) = param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "FUN_000356e0();" (call_expression "FUN_000356e0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + iVar1) = param_2;" (assignment_expression "*(undefined1 *)(*param_1 + iVar1) = param_2" (pointer_expression "*(undefined1 *)(*param_1 + iVar1)" * (cast_expression "(undefined1 *)(*param_1 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar1)" ( (binary_expression "*param_1 + iVar1" (pointer_expression "*param_1" * identifier) + identifier) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid sb_add_char(sb *ptr,size_t c)\n\n{\n  size_t sVar1;\n  \n  sb_check(ptr,1);\n  sVar1 = ptr->len;\n  ptr->len = sVar1 + 1;\n  ptr->ptr[sVar1] = (char)c;\n  return;\n}\n\n" comment (function_definition "void sb_add_char(sb *ptr,size_t c)\n\n{\n  size_t sVar1;\n  \n  sb_check(ptr,1);\n  sVar1 = ptr->len;\n  ptr->len = sVar1 + 1;\n  ptr->ptr[sVar1] = (char)c;\n  return;\n}" primitive_type (function_declarator "sb_add_char(sb *ptr,size_t c)" identifier (parameter_list "(sb *ptr,size_t c)" ( (parameter_declaration "sb *ptr" type_identifier (pointer_declarator "*ptr" * identifier)) , (parameter_declaration "size_t c" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  \n  sb_check(ptr,1);\n  sVar1 = ptr->len;\n  ptr->len = sVar1 + 1;\n  ptr->ptr[sVar1] = (char)c;\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sb_check(ptr,1);" (call_expression "sb_check(ptr,1)" identifier (argument_list "(ptr,1)" ( identifier , number_literal ))) ;) (expression_statement "sVar1 = ptr->len;" (assignment_expression "sVar1 = ptr->len" identifier = (field_expression "ptr->len" identifier -> field_identifier)) ;) (expression_statement "ptr->len = sVar1 + 1;" (assignment_expression "ptr->len = sVar1 + 1" (field_expression "ptr->len" identifier -> field_identifier) = (binary_expression "sVar1 + 1" identifier + number_literal)) ;) (expression_statement "ptr->ptr[sVar1] = (char)c;" (assignment_expression "ptr->ptr[sVar1] = (char)c" (subscript_expression "ptr->ptr[sVar1]" (field_expression "ptr->ptr" identifier -> field_identifier) [ identifier ]) = (cast_expression "(char)c" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000358b0(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  \n  FUN_000356e0();\n  iVar1 = param_1[1];\n  param_1[1] = iVar1 + 1;\n  *(undefined1 *)(*param_1 + iVar1) = param_2;\n  return;\n}\n\n" (function_definition "void FUN_000358b0(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  \n  FUN_000356e0();\n  iVar1 = param_1[1];\n  param_1[1] = iVar1 + 1;\n  *(undefined1 *)(*param_1 + iVar1) = param_2;\n  return;\n}" primitive_type (function_declarator "FUN_000358b0(int *param_1,undefined1 param_2)" identifier (parameter_list "(int *param_1,undefined1 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  FUN_000356e0();\n  iVar1 = param_1[1];\n  param_1[1] = iVar1 + 1;\n  *(undefined1 *)(*param_1 + iVar1) = param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "FUN_000356e0();" (call_expression "FUN_000356e0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + iVar1) = param_2;" (assignment_expression "*(undefined1 *)(*param_1 + iVar1) = param_2" (pointer_expression "*(undefined1 *)(*param_1 + iVar1)" * (cast_expression "(undefined1 *)(*param_1 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar1)" ( (binary_expression "*param_1 + iVar1" (pointer_expression "*param_1" * identifier) + identifier) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_000358b0(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  \n  FUN_000356e0();\n  iVar1 = param_1[1];\n  param_1[1] = iVar1 + 1;\n  *(undefined1 *)(*param_1 + iVar1) = param_2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000358b0(int *param_1,undefined1 param_2)" (identifier "FUN_000358b0") (parameter_list "(int *param_1,undefined1 param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  FUN_000356e0();\n  iVar1 = param_1[1];\n  param_1[1] = iVar1 + 1;\n  *(undefined1 *)(*param_1 + iVar1) = param_2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "FUN_000356e0();" (call_expression "FUN_000356e0()" (identifier "FUN_000356e0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(*param_1 + iVar1) = param_2;" (assignment_expression "*(undefined1 *)(*param_1 + iVar1) = param_2" (pointer_expression "*(undefined1 *)(*param_1 + iVar1)" (* "*") (cast_expression "(undefined1 *)(*param_1 + iVar1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar1)" (( "(") (binary_expression "*param_1 + iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(type_1 *ptr,size_t c)

{
  size_t var_2;
  
  var_1(ptr,1);
  var_2 = ptr->len;
  ptr->len = var_2 + 1;
  ptr->ptr[var_2] = (char)c;
  return;
}


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

void MASKED(int *param_1,undefined1 param_2)

{
  int iVar1;
  
  FUN_000356e0();
  iVar1 = param_1[1];
  param_1[1] = iVar1 + 1;
  *(undefined1 *)(*param_1 + iVar1) = param_2;
  return;
}

