
/* WARNING: Unknown calling convention */

int zlib_disable_compression(void)

{
  void *pvVar1;
  int iVar2;
  int iVar3;
  LZ77Context *ectx;
  
  pvVar1 = ectx->userdata;
  iVar2 = 7;
  *(undefined4 *)((int)pvVar1 + 0x18) = 1;
  if (*(int *)((int)pvVar1 + 0x14) == 0) {
    iVar3 = *(int *)((int)pvVar1 + 0x10) + 10;
    iVar2 = *(int *)((int)pvVar1 + 0x10) + 0x11;
    if (-1 < iVar3) {
      iVar2 = iVar3;
    }
    iVar2 = (iVar2 >> 3) + 4;
  }
  return iVar2;
}



int FUN_0005c690(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 4);
  iVar1 = 7;
  *(undefined4 *)(iVar2 + 0x18) = 1;
  if (*(int *)(iVar2 + 0x14) == 0) {
    iVar1 = *(int *)(iVar2 + 0x10) + 10;
    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;
    if (-1 < iVar1) {
      iVar2 = iVar1;
    }
    iVar1 = (iVar2 >> 3) + 4;
  }
  return iVar1;
}


MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [EAX + 0x4]
MOV EAX,0x7
MOV ECX,dword ptr [EDX + 0x14]
MOV dword ptr [EDX + 0x18],0x1
TEST ECX,ECX
JNZ 0x0005c6bc
MOV EDX,dword ptr [EDX + 0x10]
LEA EAX,[EDX + 0x11]
ADD EDX,0xa
CMOVNS EAX,EDX
SAR EAX,0x3
ADD EAX,0x4
RET
(translation_unit "int FUN_0005c690(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 4);\n  iVar1 = 7;\n  *(undefined4 *)(iVar2 + 0x18) = 1;\n  if (*(int *)(iVar2 + 0x14) == 0) {\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0005c690(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 4);\n  iVar1 = 7;\n  *(undefined4 *)(iVar2 + 0x18) = 1;\n  if (*(int *)(iVar2 + 0x14) == 0) {\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0005c690(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  iVar2 = *(int *)(param_1 + 4);\n  iVar1 = 7;\n  *(undefined4 *)(iVar2 + 0x18) = 1;\n  if (*(int *)(iVar2 + 0x14) == 0) {\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" * (cast_expression "(undefined4 *)(iVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)(iVar2 + 0x14) == 0) {\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }" if (parenthesized_expression "(*(int *)(iVar2 + 0x14) == 0)" ( (binary_expression "*(int *)(iVar2 + 0x14) == 0" (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }" { (expression_statement "iVar1 = *(int *)(iVar2 + 0x10) + 10;" (assignment_expression "iVar1 = *(int *)(iVar2 + 0x10) + 10" identifier = (binary_expression "*(int *)(iVar2 + 0x10) + 10" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar2 = *(int *)(iVar2 + 0x10) + 0x11;" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x10) + 0x11" identifier = (binary_expression "*(int *)(iVar2 + 0x10) + 0x11" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      iVar2 = iVar1;\n    }" { (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) })) (expression_statement "iVar1 = (iVar2 >> 3) + 4;" (assignment_expression "iVar1 = (iVar2 >> 3) + 4" identifier = (binary_expression "(iVar2 >> 3) + 4" (parenthesized_expression "(iVar2 >> 3)" ( (binary_expression "iVar2 >> 3" identifier >> number_literal) )) + number_literal)) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint zlib_disable_compression(void)\n\n{\n  void *pvVar1;\n  int iVar2;\n  int iVar3;\n  LZ77Context *ectx;\n  \n  pvVar1 = ectx->userdata;\n  iVar2 = 7;\n  *(undefined4 *)((int)pvVar1 + 0x18) = 1;\n  if (*(int *)((int)pvVar1 + 0x14) == 0) {\n    iVar3 = *(int *)((int)pvVar1 + 0x10) + 10;\n    iVar2 = *(int *)((int)pvVar1 + 0x10) + 0x11;\n    if (-1 < iVar3) {\n      iVar2 = iVar3;\n    }\n    iVar2 = (iVar2 >> 3) + 4;\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int zlib_disable_compression(void)\n\n{\n  void *pvVar1;\n  int iVar2;\n  int iVar3;\n  LZ77Context *ectx;\n  \n  pvVar1 = ectx->userdata;\n  iVar2 = 7;\n  *(undefined4 *)((int)pvVar1 + 0x18) = 1;\n  if (*(int *)((int)pvVar1 + 0x14) == 0) {\n    iVar3 = *(int *)((int)pvVar1 + 0x10) + 10;\n    iVar2 = *(int *)((int)pvVar1 + 0x10) + 0x11;\n    if (-1 < iVar3) {\n      iVar2 = iVar3;\n    }\n    iVar2 = (iVar2 >> 3) + 4;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "zlib_disable_compression(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  void *pvVar1;\n  int iVar2;\n  int iVar3;\n  LZ77Context *ectx;\n  \n  pvVar1 = ectx->userdata;\n  iVar2 = 7;\n  *(undefined4 *)((int)pvVar1 + 0x18) = 1;\n  if (*(int *)((int)pvVar1 + 0x14) == 0) {\n    iVar3 = *(int *)((int)pvVar1 + 0x10) + 10;\n    iVar2 = *(int *)((int)pvVar1 + 0x10) + 0x11;\n    if (-1 < iVar3) {\n      iVar2 = iVar3;\n    }\n    iVar2 = (iVar2 >> 3) + 4;\n  }\n  return iVar2;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "LZ77Context *ectx;" type_identifier (pointer_declarator "*ectx" * identifier) ;) (expression_statement "pvVar1 = ectx->userdata;" (assignment_expression "pvVar1 = ectx->userdata" identifier = (field_expression "ectx->userdata" identifier -> field_identifier)) ;) (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" identifier = number_literal) ;) (expression_statement "*(undefined4 *)((int)pvVar1 + 0x18) = 1;" (assignment_expression "*(undefined4 *)((int)pvVar1 + 0x18) = 1" (pointer_expression "*(undefined4 *)((int)pvVar1 + 0x18)" * (cast_expression "(undefined4 *)((int)pvVar1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x18)" ( (binary_expression "(int)pvVar1 + 0x18" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)((int)pvVar1 + 0x14) == 0) {\n    iVar3 = *(int *)((int)pvVar1 + 0x10) + 10;\n    iVar2 = *(int *)((int)pvVar1 + 0x10) + 0x11;\n    if (-1 < iVar3) {\n      iVar2 = iVar3;\n    }\n    iVar2 = (iVar2 >> 3) + 4;\n  }" if (parenthesized_expression "(*(int *)((int)pvVar1 + 0x14) == 0)" ( (binary_expression "*(int *)((int)pvVar1 + 0x14) == 0" (pointer_expression "*(int *)((int)pvVar1 + 0x14)" * (cast_expression "(int *)((int)pvVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x14)" ( (binary_expression "(int)pvVar1 + 0x14" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar3 = *(int *)((int)pvVar1 + 0x10) + 10;\n    iVar2 = *(int *)((int)pvVar1 + 0x10) + 0x11;\n    if (-1 < iVar3) {\n      iVar2 = iVar3;\n    }\n    iVar2 = (iVar2 >> 3) + 4;\n  }" { (expression_statement "iVar3 = *(int *)((int)pvVar1 + 0x10) + 10;" (assignment_expression "iVar3 = *(int *)((int)pvVar1 + 0x10) + 10" identifier = (binary_expression "*(int *)((int)pvVar1 + 0x10) + 10" (pointer_expression "*(int *)((int)pvVar1 + 0x10)" * (cast_expression "(int *)((int)pvVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x10)" ( (binary_expression "(int)pvVar1 + 0x10" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "iVar2 = *(int *)((int)pvVar1 + 0x10) + 0x11;" (assignment_expression "iVar2 = *(int *)((int)pvVar1 + 0x10) + 0x11" identifier = (binary_expression "*(int *)((int)pvVar1 + 0x10) + 0x11" (pointer_expression "*(int *)((int)pvVar1 + 0x10)" * (cast_expression "(int *)((int)pvVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x10)" ( (binary_expression "(int)pvVar1 + 0x10" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal)) ;) (if_statement "if (-1 < iVar3) {\n      iVar2 = iVar3;\n    }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n      iVar2 = iVar3;\n    }" { (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) })) (expression_statement "iVar2 = (iVar2 >> 3) + 4;" (assignment_expression "iVar2 = (iVar2 >> 3) + 4" identifier = (binary_expression "(iVar2 >> 3) + 4" (parenthesized_expression "(iVar2 >> 3)" ( (binary_expression "iVar2 >> 3" identifier >> number_literal) )) + number_literal)) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int FUN_0005c690(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 4);\n  iVar1 = 7;\n  *(undefined4 *)(iVar2 + 0x18) = 1;\n  if (*(int *)(iVar2 + 0x14) == 0) {\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0005c690(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 4);\n  iVar1 = 7;\n  *(undefined4 *)(iVar2 + 0x18) = 1;\n  if (*(int *)(iVar2 + 0x14) == 0) {\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0005c690(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  iVar2 = *(int *)(param_1 + 4);\n  iVar1 = 7;\n  *(undefined4 *)(iVar2 + 0x18) = 1;\n  if (*(int *)(iVar2 + 0x14) == 0) {\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" * (cast_expression "(undefined4 *)(iVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(int *)(iVar2 + 0x14) == 0) {\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }" if (parenthesized_expression "(*(int *)(iVar2 + 0x14) == 0)" ( (binary_expression "*(int *)(iVar2 + 0x14) == 0" (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }" { (expression_statement "iVar1 = *(int *)(iVar2 + 0x10) + 10;" (assignment_expression "iVar1 = *(int *)(iVar2 + 0x10) + 10" identifier = (binary_expression "*(int *)(iVar2 + 0x10) + 10" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar2 = *(int *)(iVar2 + 0x10) + 0x11;" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x10) + 0x11" identifier = (binary_expression "*(int *)(iVar2 + 0x10) + 0x11" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      iVar2 = iVar1;\n    }" { (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) })) (expression_statement "iVar1 = (iVar2 >> 3) + 4;" (assignment_expression "iVar1 = (iVar2 >> 3) + 4" identifier = (binary_expression "(iVar2 >> 3) + 4" (parenthesized_expression "(iVar2 >> 3)" ( (binary_expression "iVar2 >> 3" identifier >> number_literal) )) + number_literal)) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE 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 IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) + LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0005c690(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 4);\n  iVar1 = 7;\n  *(undefined4 *)(iVar2 + 0x18) = 1;\n  if (*(int *)(iVar2 + 0x14) == 0) {\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0005c690(int param_1)" (identifier "FUN_0005c690") (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  iVar2 = *(int *)(param_1 + 4);\n  iVar1 = 7;\n  *(undefined4 *)(iVar2 + 0x18) = 1;\n  if (*(int *)(iVar2 + 0x14) == 0) {\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" (identifier "iVar1") (= "=") (number_literal "7")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if (*(int *)(iVar2 + 0x14) == 0) {\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x14) == 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0x14) == 0" (pointer_expression "*(int *)(iVar2 + 0x14)" (* "*") (cast_expression "(int *)(iVar2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(iVar2 + 0x10) + 10;\n    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar1 = (iVar2 >> 3) + 4;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar2 + 0x10) + 10;" (assignment_expression "iVar1 = *(int *)(iVar2 + 0x10) + 10" (identifier "iVar1") (= "=") (binary_expression "*(int *)(iVar2 + 0x10) + 10" (pointer_expression "*(int *)(iVar2 + 0x10)" (* "*") (cast_expression "(int *)(iVar2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "10"))) (; ";")) (expression_statement "iVar2 = *(int *)(iVar2 + 0x10) + 0x11;" (assignment_expression "iVar2 = *(int *)(iVar2 + 0x10) + 0x11" (identifier "iVar2") (= "=") (binary_expression "*(int *)(iVar2 + 0x10) + 0x11" (pointer_expression "*(int *)(iVar2 + 0x10)" (* "*") (cast_expression "(int *)(iVar2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x11"))) (; ";")) (if_statement "if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      iVar2 = iVar1;\n    }" ({ "{") (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" (identifier "iVar2") (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (expression_statement "iVar1 = (iVar2 >> 3) + 4;" (assignment_expression "iVar1 = (iVar2 >> 3) + 4" (identifier "iVar1") (= "=") (binary_expression "(iVar2 >> 3) + 4" (parenthesized_expression "(iVar2 >> 3)" (( "(") (binary_expression "iVar2 >> 3" (identifier "iVar2") (>> ">>") (number_literal "3")) () ")")) (+ "+") (number_literal "4"))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(void)

{
  void *pvVar1;
  int var_2;
  int var_1;
  type_1 *ectx;
  
  pvVar1 = ectx->userdata;
  var_2 = 7;
  *(type_2 *)((int)pvVar1 + 0x18) = 1;
  if (*(int *)((int)pvVar1 + 0x14) == 0) {
    var_1 = *(int *)((int)pvVar1 + 0x10) + 10;
    var_2 = *(int *)((int)pvVar1 + 0x10) + 0x11;
    if (-1 < var_1) {
      var_2 = var_1;
    }
    var_2 = (var_2 >> 3) + 4;
  }
  return var_2;
}


(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)) (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: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (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: (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)))) (expression_statement (assignment_expression left: (identifier) 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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 4);
  iVar1 = 7;
  *(undefined4 *)(iVar2 + 0x18) = 1;
  if (*(int *)(iVar2 + 0x14) == 0) {
    iVar1 = *(int *)(iVar2 + 0x10) + 10;
    iVar2 = *(int *)(iVar2 + 0x10) + 0x11;
    if (-1 < iVar1) {
      iVar2 = iVar1;
    }
    iVar1 = (iVar2 >> 3) + 4;
  }
  return iVar1;
}

