
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int ssh_send(void *handle,char *buf,int len)

{
  int iVar1;
  Ssh_conflict ssh;
  
  if (handle == (void *)0x0) {
    return 0;
  }
  if ((((*(int *)((int)handle + 0x10) != 0) && (*(code **)((int)handle + 0x23c) != (code *)0x0)) &&
      ((**(code **)((int)handle + 0x23c))(), *(int *)((int)handle + 0x10) != 0)) &&
     (*(int *)((int)handle + 0x23c) != 0)) {
    iVar1 = ssh_sendbuffer(handle);
    return iVar1;
  }
  return 0;
}



int FUN_0003add8(int param_1)

{
  int iVar1;
  int iVar2;
  
  if (param_1 == 0) {
    return 0;
  }
  if ((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&
      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&
     (*(int *)(param_1 + 0x23c) != 0)) {
    iVar2 = *(int *)(param_1 + 0x1a4);
    if (iVar2 != 0) {
      iVar2 = *(int *)(param_1 + 0x1a0);
    }
    if (*(int *)(param_1 + 0x198) != 1) {
      if (*(int *)(param_1 + 0x198) == 2) {
        if (*(int *)(param_1 + 0x128) != 0) {
          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);
          return iVar2 + iVar1;
        }
      }
      else {
        iVar2 = 0;
      }
    }
    return iVar2;
  }
  return 0;
}


lui gp,0x8
addiu gp,gp,-0xa68
addu gp,gp,t9
beq a0,zero,0x0003ae60
_nop
addiu sp,sp,-0x20
lw v1,0x10(a0)
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
beq v1,zero,0x0003ae4c
_sw ra,0x1c(sp)
lw t9,0x23c(a0)
beq t9,zero,0x0003ae50
_lw ra,0x1c(sp)
jalr t9
_or a3,zero,zero
lw v0,0x10(s0)
beq v0,zero,0x0003ae4c
_lw gp,0x10(sp)
lw v0,0x23c(s0)
beq v0,zero,0x0003ae4c
_lw t9,-0x7adc(gp)
or a0,s0,zero
lw ra,0x1c(sp)
lw s0,0x18(sp)
addiu t9,t9,-0x52f0
b 0x0003ad10
_addiu sp,sp,0x20
lw ra,0x1c(sp)
or v0,zero,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
jr ra
_or v0,zero,zero
(translation_unit "int FUN_0003add8(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if ((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)) {\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0003add8(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if ((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)) {\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0003add8(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if ((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)) {\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)) {\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }" if (parenthesized_expression "((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0))" ( (binary_expression "(((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)" (parenthesized_expression "(((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0))" ( (binary_expression "((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0))" ( (binary_expression "(*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)" (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(code **)(param_1 + 0x23c) != (code *)0x0)" ( (binary_expression "*(code **)(param_1 + 0x23c) != (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x23c)" * (cast_expression "(code **)(param_1 + 0x23c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x23c)" ( (binary_expression "param_1 + 0x23c" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)" ( (comma_expression "(**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0" (call_expression "(**(code **)(param_1 + 0x23c))()" (parenthesized_expression "(**(code **)(param_1 + 0x23c))" ( (pointer_expression "**(code **)(param_1 + 0x23c)" * (pointer_expression "*(code **)(param_1 + 0x23c)" * (cast_expression "(code **)(param_1 + 0x23c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x23c)" ( (binary_expression "param_1 + 0x23c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) , (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal)) ))) )) && (parenthesized_expression "(*(int *)(param_1 + 0x23c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x23c) != 0" (pointer_expression "*(int *)(param_1 + 0x23c)" * (cast_expression "(int *)(param_1 + 0x23c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23c)" ( (binary_expression "param_1 + 0x23c" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x1a4);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x1a4)" identifier = (pointer_expression "*(int *)(param_1 + 0x1a4)" * (cast_expression "(int *)(param_1 + 0x1a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a4)" ( (binary_expression "param_1 + 0x1a4" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x1a0);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x1a0)" identifier = (pointer_expression "*(int *)(param_1 + 0x1a0)" * (cast_expression "(int *)(param_1 + 0x1a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a0)" ( (binary_expression "param_1 + 0x1a0" identifier + number_literal) ))))) ;) })) (if_statement "if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x198) != 1)" ( (binary_expression "*(int *)(param_1 + 0x198) != 1" (pointer_expression "*(int *)(param_1 + 0x198)" * (cast_expression "(int *)(param_1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }" { (if_statement "if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x198) == 2)" ( (binary_expression "*(int *)(param_1 + 0x198) == 2" (pointer_expression "*(int *)(param_1 + 0x198)" * (cast_expression "(int *)(param_1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }" { (if_statement "if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x128) != 0)" ( (binary_expression "*(int *)(param_1 + 0x128) != 0" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }" { (expression_statement "iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);" (assignment_expression "iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20)" identifier = (call_expression "bufchain_size(*(int *)(param_1 + 0x128) + 0x20)" identifier (argument_list "(*(int *)(param_1 + 0x128) + 0x20)" ( (binary_expression "*(int *)(param_1 + 0x128) + 0x20" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) + number_literal) )))) ;) (return_statement "return iVar2 + iVar1;" return (binary_expression "iVar2 + iVar1" identifier + identifier) ;) })) }) (else_clause "else {\n        iVar2 = 0;\n      }" else (compound_statement "{\n        iVar2 = 0;\n      }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }))) })) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint ssh_send(void *handle,char *buf,int len)\n\n{\n  int iVar1;\n  Ssh_conflict ssh;\n  \n  if (handle == (void *)0x0) {\n    return 0;\n  }\n  if ((((*(int *)((int)handle + 0x10) != 0) && (*(code **)((int)handle + 0x23c) != (code *)0x0)) &&\n      ((**(code **)((int)handle + 0x23c))(), *(int *)((int)handle + 0x10) != 0)) &&\n     (*(int *)((int)handle + 0x23c) != 0)) {\n    iVar1 = ssh_sendbuffer(handle);\n    return iVar1;\n  }\n  return 0;\n}\n\n" comment (function_definition "int ssh_send(void *handle,char *buf,int len)\n\n{\n  int iVar1;\n  Ssh_conflict ssh;\n  \n  if (handle == (void *)0x0) {\n    return 0;\n  }\n  if ((((*(int *)((int)handle + 0x10) != 0) && (*(code **)((int)handle + 0x23c) != (code *)0x0)) &&\n      ((**(code **)((int)handle + 0x23c))(), *(int *)((int)handle + 0x10) != 0)) &&\n     (*(int *)((int)handle + 0x23c) != 0)) {\n    iVar1 = ssh_sendbuffer(handle);\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "ssh_send(void *handle,char *buf,int len)" identifier (parameter_list "(void *handle,char *buf,int len)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  Ssh_conflict ssh;\n  \n  if (handle == (void *)0x0) {\n    return 0;\n  }\n  if ((((*(int *)((int)handle + 0x10) != 0) && (*(code **)((int)handle + 0x23c) != (code *)0x0)) &&\n      ((**(code **)((int)handle + 0x23c))(), *(int *)((int)handle + 0x10) != 0)) &&\n     (*(int *)((int)handle + 0x23c) != 0)) {\n    iVar1 = ssh_sendbuffer(handle);\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Ssh_conflict ssh;" type_identifier identifier ;) (if_statement "if (handle == (void *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(handle == (void *)0x0)" ( (binary_expression "handle == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((((*(int *)((int)handle + 0x10) != 0) && (*(code **)((int)handle + 0x23c) != (code *)0x0)) &&\n      ((**(code **)((int)handle + 0x23c))(), *(int *)((int)handle + 0x10) != 0)) &&\n     (*(int *)((int)handle + 0x23c) != 0)) {\n    iVar1 = ssh_sendbuffer(handle);\n    return iVar1;\n  }" if (parenthesized_expression "((((*(int *)((int)handle + 0x10) != 0) && (*(code **)((int)handle + 0x23c) != (code *)0x0)) &&\n      ((**(code **)((int)handle + 0x23c))(), *(int *)((int)handle + 0x10) != 0)) &&\n     (*(int *)((int)handle + 0x23c) != 0))" ( (binary_expression "(((*(int *)((int)handle + 0x10) != 0) && (*(code **)((int)handle + 0x23c) != (code *)0x0)) &&\n      ((**(code **)((int)handle + 0x23c))(), *(int *)((int)handle + 0x10) != 0)) &&\n     (*(int *)((int)handle + 0x23c) != 0)" (parenthesized_expression "(((*(int *)((int)handle + 0x10) != 0) && (*(code **)((int)handle + 0x23c) != (code *)0x0)) &&\n      ((**(code **)((int)handle + 0x23c))(), *(int *)((int)handle + 0x10) != 0))" ( (binary_expression "((*(int *)((int)handle + 0x10) != 0) && (*(code **)((int)handle + 0x23c) != (code *)0x0)) &&\n      ((**(code **)((int)handle + 0x23c))(), *(int *)((int)handle + 0x10) != 0)" (parenthesized_expression "((*(int *)((int)handle + 0x10) != 0) && (*(code **)((int)handle + 0x23c) != (code *)0x0))" ( (binary_expression "(*(int *)((int)handle + 0x10) != 0) && (*(code **)((int)handle + 0x23c) != (code *)0x0)" (parenthesized_expression "(*(int *)((int)handle + 0x10) != 0)" ( (binary_expression "*(int *)((int)handle + 0x10) != 0" (pointer_expression "*(int *)((int)handle + 0x10)" * (cast_expression "(int *)((int)handle + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x10)" ( (binary_expression "(int)handle + 0x10" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(code **)((int)handle + 0x23c) != (code *)0x0)" ( (binary_expression "*(code **)((int)handle + 0x23c) != (code *)0x0" (pointer_expression "*(code **)((int)handle + 0x23c)" * (cast_expression "(code **)((int)handle + 0x23c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x23c)" ( (binary_expression "(int)handle + 0x23c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "((**(code **)((int)handle + 0x23c))(), *(int *)((int)handle + 0x10) != 0)" ( (comma_expression "(**(code **)((int)handle + 0x23c))(), *(int *)((int)handle + 0x10) != 0" (call_expression "(**(code **)((int)handle + 0x23c))()" (parenthesized_expression "(**(code **)((int)handle + 0x23c))" ( (pointer_expression "**(code **)((int)handle + 0x23c)" * (pointer_expression "*(code **)((int)handle + 0x23c)" * (cast_expression "(code **)((int)handle + 0x23c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x23c)" ( (binary_expression "(int)handle + 0x23c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (argument_list "()" ( ))) , (binary_expression "*(int *)((int)handle + 0x10) != 0" (pointer_expression "*(int *)((int)handle + 0x10)" * (cast_expression "(int *)((int)handle + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x10)" ( (binary_expression "(int)handle + 0x10" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal)) ))) )) && (parenthesized_expression "(*(int *)((int)handle + 0x23c) != 0)" ( (binary_expression "*(int *)((int)handle + 0x23c) != 0" (pointer_expression "*(int *)((int)handle + 0x23c)" * (cast_expression "(int *)((int)handle + 0x23c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x23c)" ( (binary_expression "(int)handle + 0x23c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    iVar1 = ssh_sendbuffer(handle);\n    return iVar1;\n  }" { (expression_statement "iVar1 = ssh_sendbuffer(handle);" (assignment_expression "iVar1 = ssh_sendbuffer(handle)" identifier = (call_expression "ssh_sendbuffer(handle)" identifier (argument_list "(handle)" ( identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_0003add8(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if ((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)) {\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0003add8(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if ((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)) {\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0003add8(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if ((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)) {\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)) {\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }" if (parenthesized_expression "((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0))" ( (binary_expression "(((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)" (parenthesized_expression "(((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0))" ( (binary_expression "((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0))" ( (binary_expression "(*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)" (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(code **)(param_1 + 0x23c) != (code *)0x0)" ( (binary_expression "*(code **)(param_1 + 0x23c) != (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x23c)" * (cast_expression "(code **)(param_1 + 0x23c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x23c)" ( (binary_expression "param_1 + 0x23c" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)" ( (comma_expression "(**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0" (call_expression "(**(code **)(param_1 + 0x23c))()" (parenthesized_expression "(**(code **)(param_1 + 0x23c))" ( (pointer_expression "**(code **)(param_1 + 0x23c)" * (pointer_expression "*(code **)(param_1 + 0x23c)" * (cast_expression "(code **)(param_1 + 0x23c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x23c)" ( (binary_expression "param_1 + 0x23c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) , (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal)) ))) )) && (parenthesized_expression "(*(int *)(param_1 + 0x23c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x23c) != 0" (pointer_expression "*(int *)(param_1 + 0x23c)" * (cast_expression "(int *)(param_1 + 0x23c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x23c)" ( (binary_expression "param_1 + 0x23c" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x1a4);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x1a4)" identifier = (pointer_expression "*(int *)(param_1 + 0x1a4)" * (cast_expression "(int *)(param_1 + 0x1a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a4)" ( (binary_expression "param_1 + 0x1a4" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x1a0);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x1a0)" identifier = (pointer_expression "*(int *)(param_1 + 0x1a0)" * (cast_expression "(int *)(param_1 + 0x1a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a0)" ( (binary_expression "param_1 + 0x1a0" identifier + number_literal) ))))) ;) })) (if_statement "if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x198) != 1)" ( (binary_expression "*(int *)(param_1 + 0x198) != 1" (pointer_expression "*(int *)(param_1 + 0x198)" * (cast_expression "(int *)(param_1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }" { (if_statement "if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x198) == 2)" ( (binary_expression "*(int *)(param_1 + 0x198) == 2" (pointer_expression "*(int *)(param_1 + 0x198)" * (cast_expression "(int *)(param_1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }" { (if_statement "if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x128) != 0)" ( (binary_expression "*(int *)(param_1 + 0x128) != 0" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }" { (expression_statement "iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);" (assignment_expression "iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20)" identifier = (call_expression "bufchain_size(*(int *)(param_1 + 0x128) + 0x20)" identifier (argument_list "(*(int *)(param_1 + 0x128) + 0x20)" ( (binary_expression "*(int *)(param_1 + 0x128) + 0x20" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) + number_literal) )))) ;) (return_statement "return iVar2 + iVar1;" return (binary_expression "iVar2 + iVar1" identifier + identifier) ;) })) }) (else_clause "else {\n        iVar2 = 0;\n      }" else (compound_statement "{\n        iVar2 = 0;\n      }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }))) })) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) && (parenthesized_expression ( (comma_expression (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (return_statement return (binary_expression IDENT + IDENT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_0003add8(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if ((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)) {\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_0003add8(int param_1)" (identifier "FUN_0003add8") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if ((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)) {\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)) {\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }" (if "if") (parenthesized_expression "((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0))" (( "(") (binary_expression "(((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&\n     (*(int *)(param_1 + 0x23c) != 0)" (parenthesized_expression "(((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0))" (( "(") (binary_expression "((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&\n      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0))" (( "(") (binary_expression "(*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)" (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(code **)(param_1 + 0x23c) != (code *)0x0)" (( "(") (binary_expression "*(code **)(param_1 + 0x23c) != (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x23c)" (* "*") (cast_expression "(code **)(param_1 + 0x23c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x23c)" (( "(") (binary_expression "param_1 + 0x23c" (identifier "param_1") (+ "+") (number_literal "0x23c")) () ")")))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)" (( "(") (comma_expression "(**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0" (call_expression "(**(code **)(param_1 + 0x23c))()" (parenthesized_expression "(**(code **)(param_1 + 0x23c))" (( "(") (pointer_expression "**(code **)(param_1 + 0x23c)" (* "*") (pointer_expression "*(code **)(param_1 + 0x23c)" (* "*") (cast_expression "(code **)(param_1 + 0x23c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x23c)" (( "(") (binary_expression "param_1 + 0x23c" (identifier "param_1") (+ "+") (number_literal "0x23c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (, ",") (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x23c) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x23c) != 0" (pointer_expression "*(int *)(param_1 + 0x23c)" (* "*") (cast_expression "(int *)(param_1 + 0x23c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x23c)" (( "(") (binary_expression "param_1 + 0x23c" (identifier "param_1") (+ "+") (number_literal "0x23c")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x1a4);\n    if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }\n    if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }\n    return iVar2;\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x1a4);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x1a4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x1a4)" (* "*") (cast_expression "(int *)(param_1 + 0x1a4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a4)" (( "(") (binary_expression "param_1 + 0x1a4" (identifier "param_1") (+ "+") (number_literal "0x1a4")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) {\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x1a0);\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x1a0);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x1a0)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x1a0)" (* "*") (cast_expression "(int *)(param_1 + 0x1a0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a0)" (( "(") (binary_expression "param_1 + 0x1a0" (identifier "param_1") (+ "+") (number_literal "0x1a0")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x198) != 1) {\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x198) != 1)" (( "(") (binary_expression "*(int *)(param_1 + 0x198) != 1" (pointer_expression "*(int *)(param_1 + 0x198)" (* "*") (cast_expression "(int *)(param_1 + 0x198)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x198)" (( "(") (binary_expression "param_1 + 0x198" (identifier "param_1") (+ "+") (number_literal "0x198")) () ")")))) (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }\n    }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x198) == 2) {\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }\n      else {\n        iVar2 = 0;\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x198) == 2)" (( "(") (binary_expression "*(int *)(param_1 + 0x198) == 2" (pointer_expression "*(int *)(param_1 + 0x198)" (* "*") (cast_expression "(int *)(param_1 + 0x198)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x198)" (( "(") (binary_expression "param_1 + 0x198" (identifier "param_1") (+ "+") (number_literal "0x198")) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }\n      }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x128) != 0) {\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x128) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x128) != 0" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);\n          return iVar2 + iVar1;\n        }" ({ "{") (expression_statement "iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);" (assignment_expression "iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20)" (identifier "iVar1") (= "=") (call_expression "bufchain_size(*(int *)(param_1 + 0x128) + 0x20)" (identifier "bufchain_size") (argument_list "(*(int *)(param_1 + 0x128) + 0x20)" (( "(") (binary_expression "*(int *)(param_1 + 0x128) + 0x20" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (+ "+") (number_literal "0x20")) () ")")))) (; ";")) (return_statement "return iVar2 + iVar1;" (return "return") (binary_expression "iVar2 + iVar1" (identifier "iVar2") (+ "+") (identifier "iVar1")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        iVar2 = 0;\n      }" (else "else") (compound_statement "{\n        iVar2 = 0;\n      }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_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: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) right: (parenthesized_expression (comma_expression left: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list)) right: (binary_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: (number_literal)))))) right: (parenthesized_expression (binary_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: (number_literal))))) consequence: (compound_statement (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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))))))))) (if_statement condition: (parenthesized_expression (binary_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: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_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: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_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: (number_literal)))))) (return_statement (binary_expression left: (identifier) right: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) (return_statement (identifier)))) (return_statement (number_literal)))))

int MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  
  if (param_1 == 0) {
    return 0;
  }
  if ((((*(int *)(param_1 + 0x10) != 0) && (*(code **)(param_1 + 0x23c) != (code *)0x0)) &&
      ((**(code **)(param_1 + 0x23c))(), *(int *)(param_1 + 0x10) != 0)) &&
     (*(int *)(param_1 + 0x23c) != 0)) {
    iVar2 = *(int *)(param_1 + 0x1a4);
    if (iVar2 != 0) {
      iVar2 = *(int *)(param_1 + 0x1a0);
    }
    if (*(int *)(param_1 + 0x198) != 1) {
      if (*(int *)(param_1 + 0x198) == 2) {
        if (*(int *)(param_1 + 0x128) != 0) {
          iVar1 = bufchain_size(*(int *)(param_1 + 0x128) + 0x20);
          return iVar2 + iVar1;
        }
      }
      else {
        iVar2 = 0;
      }
    }
    return iVar2;
  }
  return 0;
}

