
void mb_copy(mbchar_t *new_mbc,mbchar_t *old_mbc)

{
  _Bool _Var1;
  char *pcVar2;
  size_t sVar3;
  
  sVar3 = old_mbc->bytes;
  if (old_mbc->ptr == old_mbc->buf) {
    pcVar2 = (char *)(*(code *)PTR_memcpy_0003e2f8)(new_mbc->buf);
    sVar3 = old_mbc->bytes;
    new_mbc->ptr = pcVar2;
  }
  else {
    new_mbc->ptr = old_mbc->ptr;
  }
  _Var1 = old_mbc->wc_valid;
  new_mbc->bytes = sVar3;
  new_mbc->wc_valid = _Var1;
  if (_Var1 != false) {
    new_mbc->wc = old_mbc->wc;
  }
  return;
}



void FUN_00014850(int *param_1,int *param_2)

{
  char cVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = param_2[1];
  if ((int *)*param_2 == param_2 + 4) {
    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);
    iVar3 = param_2[1];
    *param_1 = iVar2;
  }
  else {
    *param_1 = *param_2;
  }
  cVar1 = *(char *)(param_2 + 2);
  param_1[1] = iVar3;
  *(char *)(param_1 + 2) = cVar1;
  if (cVar1 != '\0') {
    param_1[3] = param_2[3];
  }
  return;
}


lui gp,0x3
addiu gp,gp,0x1870
addu gp,gp,t9
addiu sp,sp,-0x28
addiu v0,a1,0x10
sw s0,0x1c(sp)
or s0,a1,zero
sw gp,0x10(sp)
sw s1,0x20(sp)
or s1,a0,zero
sw ra,0x24(sp)
lw a1,0x0(a1)
beq a1,v0,0x000148b8
_lw a2,0x4(s0)
sw a1,0x0(a0)
lbu v0,0x8(s0)
sw a2,0x4(s1)
beq v0,zero,0x000148a4
_sb v0,0x8(s1)
lw v0,0xc(s0)
sw v0,0xc(s1)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
addiu v1,a0,0x10
lw t9,-0x7dc8(gp)
jalr t9
_or a0,v1,zero
lw a2,0x4(s0)
b 0x0001488c
_sw v0,0x0(s1)
(translation_unit "void FUN_00014850(int *param_1,int *param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = param_2[1];\n  if ((int *)*param_2 == param_2 + 4) {\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }\n  else {\n    *param_1 = *param_2;\n  }\n  cVar1 = *(char *)(param_2 + 2);\n  param_1[1] = iVar3;\n  *(char *)(param_1 + 2) = cVar1;\n  if (cVar1 != '\0') {\n    param_1[3] = param_2[3];\n  }\n  return;\n}\n\n" (function_definition "void FUN_00014850(int *param_1,int *param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = param_2[1];\n  if ((int *)*param_2 == param_2 + 4) {\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }\n  else {\n    *param_1 = *param_2;\n  }\n  cVar1 = *(char *)(param_2 + 2);\n  param_1[1] = iVar3;\n  *(char *)(param_1 + 2) = cVar1;\n  if (cVar1 != '\0') {\n    param_1[3] = param_2[3];\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00014850(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = param_2[1];\n  if ((int *)*param_2 == param_2 + 4) {\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }\n  else {\n    *param_1 = *param_2;\n  }\n  cVar1 = *(char *)(param_2 + 2);\n  param_1[1] = iVar3;\n  *(char *)(param_1 + 2) = cVar1;\n  if (cVar1 != '\0') {\n    param_1[3] = param_2[3];\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = param_2[1];" (assignment_expression "iVar3 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if ((int *)*param_2 == param_2 + 4) {\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }\n  else {\n    *param_1 = *param_2;\n  }" if (parenthesized_expression "((int *)*param_2 == param_2 + 4)" ( (binary_expression "(int *)*param_2 == param_2 + 4" (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) == (binary_expression "param_2 + 4" identifier + number_literal)) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }" { (expression_statement "iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);" (assignment_expression "iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4)" identifier = (call_expression "(*(code *)PTR_memcpy_0003e2f8)(param_1 + 4)" (parenthesized_expression "(*(code *)PTR_memcpy_0003e2f8)" ( (pointer_expression "*(code *)PTR_memcpy_0003e2f8" * (cast_expression "(code *)PTR_memcpy_0003e2f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) (expression_statement "iVar3 = param_2[1];" (assignment_expression "iVar3 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) }) (else_clause "else {\n    *param_1 = *param_2;\n  }" else (compound_statement "{\n    *param_1 = *param_2;\n  }" { (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) }))) (expression_statement "cVar1 = *(char *)(param_2 + 2);" (assignment_expression "cVar1 = *(char *)(param_2 + 2)" identifier = (pointer_expression "*(char *)(param_2 + 2)" * (cast_expression "(char *)(param_2 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) ))))) ;) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(char *)(param_1 + 2) = cVar1;" (assignment_expression "*(char *)(param_1 + 2) = cVar1" (pointer_expression "*(char *)(param_1 + 2)" * (cast_expression "(char *)(param_1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = identifier) ;) (if_statement "if (cVar1 != '\0') {\n    param_1[3] = param_2[3];\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_1[3] = param_2[3];\n  }" { (expression_statement "param_1[3] = param_2[3];" (assignment_expression "param_1[3] = param_2[3]" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void mb_copy(mbchar_t *new_mbc,mbchar_t *old_mbc)\n\n{\n  _Bool _Var1;\n  char *pcVar2;\n  size_t sVar3;\n  \n  sVar3 = old_mbc->bytes;\n  if (old_mbc->ptr == old_mbc->buf) {\n    pcVar2 = (char *)(*(code *)PTR_memcpy_0003e2f8)(new_mbc->buf);\n    sVar3 = old_mbc->bytes;\n    new_mbc->ptr = pcVar2;\n  }\n  else {\n    new_mbc->ptr = old_mbc->ptr;\n  }\n  _Var1 = old_mbc->wc_valid;\n  new_mbc->bytes = sVar3;\n  new_mbc->wc_valid = _Var1;\n  if (_Var1 != false) {\n    new_mbc->wc = old_mbc->wc;\n  }\n  return;\n}\n\n" (function_definition "void mb_copy(mbchar_t *new_mbc,mbchar_t *old_mbc)\n\n{\n  _Bool _Var1;\n  char *pcVar2;\n  size_t sVar3;\n  \n  sVar3 = old_mbc->bytes;\n  if (old_mbc->ptr == old_mbc->buf) {\n    pcVar2 = (char *)(*(code *)PTR_memcpy_0003e2f8)(new_mbc->buf);\n    sVar3 = old_mbc->bytes;\n    new_mbc->ptr = pcVar2;\n  }\n  else {\n    new_mbc->ptr = old_mbc->ptr;\n  }\n  _Var1 = old_mbc->wc_valid;\n  new_mbc->bytes = sVar3;\n  new_mbc->wc_valid = _Var1;\n  if (_Var1 != false) {\n    new_mbc->wc = old_mbc->wc;\n  }\n  return;\n}" primitive_type (function_declarator "mb_copy(mbchar_t *new_mbc,mbchar_t *old_mbc)" identifier (parameter_list "(mbchar_t *new_mbc,mbchar_t *old_mbc)" ( (parameter_declaration "mbchar_t *new_mbc" type_identifier (pointer_declarator "*new_mbc" * identifier)) , (parameter_declaration "mbchar_t *old_mbc" type_identifier (pointer_declarator "*old_mbc" * identifier)) ))) (compound_statement "{\n  _Bool _Var1;\n  char *pcVar2;\n  size_t sVar3;\n  \n  sVar3 = old_mbc->bytes;\n  if (old_mbc->ptr == old_mbc->buf) {\n    pcVar2 = (char *)(*(code *)PTR_memcpy_0003e2f8)(new_mbc->buf);\n    sVar3 = old_mbc->bytes;\n    new_mbc->ptr = pcVar2;\n  }\n  else {\n    new_mbc->ptr = old_mbc->ptr;\n  }\n  _Var1 = old_mbc->wc_valid;\n  new_mbc->bytes = sVar3;\n  new_mbc->wc_valid = _Var1;\n  if (_Var1 != false) {\n    new_mbc->wc = old_mbc->wc;\n  }\n  return;\n}" { (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (expression_statement "sVar3 = old_mbc->bytes;" (assignment_expression "sVar3 = old_mbc->bytes" identifier = (field_expression "old_mbc->bytes" identifier -> field_identifier)) ;) (if_statement "if (old_mbc->ptr == old_mbc->buf) {\n    pcVar2 = (char *)(*(code *)PTR_memcpy_0003e2f8)(new_mbc->buf);\n    sVar3 = old_mbc->bytes;\n    new_mbc->ptr = pcVar2;\n  }\n  else {\n    new_mbc->ptr = old_mbc->ptr;\n  }" if (parenthesized_expression "(old_mbc->ptr == old_mbc->buf)" ( (binary_expression "old_mbc->ptr == old_mbc->buf" (field_expression "old_mbc->ptr" identifier -> field_identifier) == (field_expression "old_mbc->buf" identifier -> field_identifier)) )) (compound_statement "{\n    pcVar2 = (char *)(*(code *)PTR_memcpy_0003e2f8)(new_mbc->buf);\n    sVar3 = old_mbc->bytes;\n    new_mbc->ptr = pcVar2;\n  }" { (expression_statement "pcVar2 = (char *)(*(code *)PTR_memcpy_0003e2f8)(new_mbc->buf);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_memcpy_0003e2f8)(new_mbc->buf)" identifier = (cast_expression "(char *)(*(code *)PTR_memcpy_0003e2f8)(new_mbc->buf)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memcpy_0003e2f8)(new_mbc->buf)" (parenthesized_expression "(*(code *)PTR_memcpy_0003e2f8)" ( (pointer_expression "*(code *)PTR_memcpy_0003e2f8" * (cast_expression "(code *)PTR_memcpy_0003e2f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(new_mbc->buf)" ( (field_expression "new_mbc->buf" identifier -> field_identifier) ))))) ;) (expression_statement "sVar3 = old_mbc->bytes;" (assignment_expression "sVar3 = old_mbc->bytes" identifier = (field_expression "old_mbc->bytes" identifier -> field_identifier)) ;) (expression_statement "new_mbc->ptr = pcVar2;" (assignment_expression "new_mbc->ptr = pcVar2" (field_expression "new_mbc->ptr" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n    new_mbc->ptr = old_mbc->ptr;\n  }" else (compound_statement "{\n    new_mbc->ptr = old_mbc->ptr;\n  }" { (expression_statement "new_mbc->ptr = old_mbc->ptr;" (assignment_expression "new_mbc->ptr = old_mbc->ptr" (field_expression "new_mbc->ptr" identifier -> field_identifier) = (field_expression "old_mbc->ptr" identifier -> field_identifier)) ;) }))) (expression_statement "_Var1 = old_mbc->wc_valid;" (assignment_expression "_Var1 = old_mbc->wc_valid" identifier = (field_expression "old_mbc->wc_valid" identifier -> field_identifier)) ;) (expression_statement "new_mbc->bytes = sVar3;" (assignment_expression "new_mbc->bytes = sVar3" (field_expression "new_mbc->bytes" identifier -> field_identifier) = identifier) ;) (expression_statement "new_mbc->wc_valid = _Var1;" (assignment_expression "new_mbc->wc_valid = _Var1" (field_expression "new_mbc->wc_valid" identifier -> field_identifier) = identifier) ;) (if_statement "if (_Var1 != false) {\n    new_mbc->wc = old_mbc->wc;\n  }" if (parenthesized_expression "(_Var1 != false)" ( (binary_expression "_Var1 != false" identifier != false) )) (compound_statement "{\n    new_mbc->wc = old_mbc->wc;\n  }" { (expression_statement "new_mbc->wc = old_mbc->wc;" (assignment_expression "new_mbc->wc = old_mbc->wc" (field_expression "new_mbc->wc" identifier -> field_identifier) = (field_expression "old_mbc->wc" identifier -> field_identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00014850(int *param_1,int *param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = param_2[1];\n  if ((int *)*param_2 == param_2 + 4) {\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }\n  else {\n    *param_1 = *param_2;\n  }\n  cVar1 = *(char *)(param_2 + 2);\n  param_1[1] = iVar3;\n  *(char *)(param_1 + 2) = cVar1;\n  if (cVar1 != '\0') {\n    param_1[3] = param_2[3];\n  }\n  return;\n}\n\n" (function_definition "void FUN_00014850(int *param_1,int *param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = param_2[1];\n  if ((int *)*param_2 == param_2 + 4) {\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }\n  else {\n    *param_1 = *param_2;\n  }\n  cVar1 = *(char *)(param_2 + 2);\n  param_1[1] = iVar3;\n  *(char *)(param_1 + 2) = cVar1;\n  if (cVar1 != '\0') {\n    param_1[3] = param_2[3];\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00014850(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = param_2[1];\n  if ((int *)*param_2 == param_2 + 4) {\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }\n  else {\n    *param_1 = *param_2;\n  }\n  cVar1 = *(char *)(param_2 + 2);\n  param_1[1] = iVar3;\n  *(char *)(param_1 + 2) = cVar1;\n  if (cVar1 != '\0') {\n    param_1[3] = param_2[3];\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = param_2[1];" (assignment_expression "iVar3 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if ((int *)*param_2 == param_2 + 4) {\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }\n  else {\n    *param_1 = *param_2;\n  }" if (parenthesized_expression "((int *)*param_2 == param_2 + 4)" ( (binary_expression "(int *)*param_2 == param_2 + 4" (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) == (binary_expression "param_2 + 4" identifier + number_literal)) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }" { (expression_statement "iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);" (assignment_expression "iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4)" identifier = (call_expression "(*(code *)PTR_memcpy_0003e2f8)(param_1 + 4)" (parenthesized_expression "(*(code *)PTR_memcpy_0003e2f8)" ( (pointer_expression "*(code *)PTR_memcpy_0003e2f8" * (cast_expression "(code *)PTR_memcpy_0003e2f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) (expression_statement "iVar3 = param_2[1];" (assignment_expression "iVar3 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) }) (else_clause "else {\n    *param_1 = *param_2;\n  }" else (compound_statement "{\n    *param_1 = *param_2;\n  }" { (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) }))) (expression_statement "cVar1 = *(char *)(param_2 + 2);" (assignment_expression "cVar1 = *(char *)(param_2 + 2)" identifier = (pointer_expression "*(char *)(param_2 + 2)" * (cast_expression "(char *)(param_2 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) ))))) ;) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(char *)(param_1 + 2) = cVar1;" (assignment_expression "*(char *)(param_1 + 2) = cVar1" (pointer_expression "*(char *)(param_1 + 2)" * (cast_expression "(char *)(param_1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = identifier) ;) (if_statement "if (cVar1 != '\0') {\n    param_1[3] = param_2[3];\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_1[3] = param_2[3];\n  }" { (expression_statement "param_1[3] = param_2[3];" (assignment_expression "param_1[3] = param_2[3]" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (subscript_expression "param_2[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 TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) == (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00014850(int *param_1,int *param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = param_2[1];\n  if ((int *)*param_2 == param_2 + 4) {\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }\n  else {\n    *param_1 = *param_2;\n  }\n  cVar1 = *(char *)(param_2 + 2);\n  param_1[1] = iVar3;\n  *(char *)(param_1 + 2) = cVar1;\n  if (cVar1 != '\0') {\n    param_1[3] = param_2[3];\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00014850(int *param_1,int *param_2)" (identifier "FUN_00014850") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = param_2[1];\n  if ((int *)*param_2 == param_2 + 4) {\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }\n  else {\n    *param_1 = *param_2;\n  }\n  cVar1 = *(char *)(param_2 + 2);\n  param_1[1] = iVar3;\n  *(char *)(param_1 + 2) = cVar1;\n  if (cVar1 != '\0') {\n    param_1[3] = param_2[3];\n  }\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar3 = param_2[1];" (assignment_expression "iVar3 = param_2[1]" (identifier "iVar3") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if ((int *)*param_2 == param_2 + 4) {\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }\n  else {\n    *param_1 = *param_2;\n  }" (if "if") (parenthesized_expression "((int *)*param_2 == param_2 + 4)" (( "(") (binary_expression "(int *)*param_2 == param_2 + 4" (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (== "==") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4"))) () ")")) (compound_statement "{\n    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);\n    iVar3 = param_2[1];\n    *param_1 = iVar2;\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);" (assignment_expression "iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_memcpy_0003e2f8)(param_1 + 4)" (parenthesized_expression "(*(code *)PTR_memcpy_0003e2f8)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0003e2f8" (* "*") (cast_expression "(code *)PTR_memcpy_0003e2f8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0003e2f8"))) () ")")) (argument_list "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "iVar3 = param_2[1];" (assignment_expression "iVar3 = param_2[1]" (identifier "iVar3") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (} "}")) (else_clause "else {\n    *param_1 = *param_2;\n  }" (else "else") (compound_statement "{\n    *param_1 = *param_2;\n  }" ({ "{") (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}")))) (expression_statement "cVar1 = *(char *)(param_2 + 2);" (assignment_expression "cVar1 = *(char *)(param_2 + 2)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_2 + 2)" (* "*") (cast_expression "(char *)(param_2 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 2)" (( "(") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(char *)(param_1 + 2) = cVar1;" (assignment_expression "*(char *)(param_1 + 2) = cVar1" (pointer_expression "*(char *)(param_1 + 2)" (* "*") (cast_expression "(char *)(param_1 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "cVar1")) (; ";")) (if_statement "if (cVar1 != '\0') {\n    param_1[3] = param_2[3];\n  }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    param_1[3] = param_2[3];\n  }" ({ "{") (expression_statement "param_1[3] = param_2[3];" (assignment_expression "param_1[3] = param_2[3]" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *new_mbc,type_1 *old_mbc)

{
  type_2 var_1;
  char *pcVar2;
  size_t sVar3;
  
  sVar3 = old_mbc->bytes;
  if (old_mbc->ptr == old_mbc->buf) {
    pcVar2 = (char *)(*(type_3 *)PTR_memcpy_0003e2f8)(new_mbc->buf);
    sVar3 = old_mbc->bytes;
    new_mbc->ptr = pcVar2;
  }
  else {
    new_mbc->ptr = old_mbc->ptr;
  }
  var_1 = old_mbc->wc_valid;
  new_mbc->bytes = sVar3;
  new_mbc->wc_valid = var_1;
  if (var_1 != false) {
    new_mbc->wc = old_mbc->wc;
  }
  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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))))) (return_statement))))

void MASKED(int *param_1,int *param_2)

{
  char cVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = param_2[1];
  if ((int *)*param_2 == param_2 + 4) {
    iVar2 = (*(code *)PTR_memcpy_0003e2f8)(param_1 + 4);
    iVar3 = param_2[1];
    *param_1 = iVar2;
  }
  else {
    *param_1 = *param_2;
  }
  cVar1 = *(char *)(param_2 + 2);
  param_1[1] = iVar3;
  *(char *)(param_1 + 2) = cVar1;
  if (cVar1 != '\0') {
    param_1[3] = param_2[3];
  }
  return;
}

