
int session_filter(void *pCtx,char *zTab)

{
  int iVar1;
  long lVar2;
  OpenSession *pSession;
  
  if (*(int *)((long)pCtx + 8) < 1) {
    return 1;
  }
  lVar2 = 0;
  do {
    iVar1 = sqlite3_strglob(*(char **)(*(long *)((long)pCtx + 0x10) + lVar2 * 8),zTab);
    if (iVar1 == 0) {
      return 0;
    }
    lVar2 = lVar2 + 1;
  } while ((int)lVar2 < *(int *)((long)pCtx + 8));
  return 1;
}



undefined8 FUN_001160fc(long param_1,undefined8 param_2)

{
  undefined8 uVar1;
  long lVar2;
  
  if (*(int *)(param_1 + 8) < 1) {
    return 1;
  }
  lVar2 = 0;
  do {
    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);
    if ((int)uVar1 == 0) {
      return uVar1;
    }
    lVar2 = lVar2 + 1;
  } while ((int)lVar2 < *(int *)(param_1 + 8));
  return 1;
}


CMP dword ptr [RDI + 0x8],0x0
JLE 0x00116138
PUSH R12
PUSH RBP
PUSH RBX
MOV R12,RSI
MOV RBP,RDI
MOV EBX,0x0
MOV RAX,qword ptr [RBP + 0x10]
MOV RDI,qword ptr [RAX + RBX*0x8]
MOV RSI,R12
CALL 0x0013d34d
TEST EAX,EAX
JZ 0x00116133
ADD RBX,0x1
CMP dword ptr [RBP + 0x8],EBX
JG 0x00116111
MOV EAX,0x1
POP RBX
POP RBP
POP R12
RET
MOV EAX,0x1
RET
(translation_unit "undefined8 FUN_001160fc(long param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  \n  if (*(int *)(param_1 + 8) < 1) {\n    return 1;\n  }\n  lVar2 = 0;\n  do {\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)(param_1 + 8));\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_001160fc(long param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  \n  if (*(int *)(param_1 + 8) < 1) {\n    return 1;\n  }\n  lVar2 = 0;\n  do {\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)(param_1 + 8));\n  return 1;\n}" type_identifier (function_declarator "FUN_001160fc(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  long lVar2;\n  \n  if (*(int *)(param_1 + 8) < 1) {\n    return 1;\n  }\n  lVar2 = 0;\n  do {\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)(param_1 + 8));\n  return 1;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*(int *)(param_1 + 8) < 1) {\n    return 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) < 1)" ( (binary_expression "*(int *)(param_1 + 8) < 1" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)(param_1 + 8));" do (compound_statement "{\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  }" { (expression_statement "uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);" (assignment_expression "uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2)" identifier = (call_expression "FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2)" identifier (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2)" ( (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x10) + lVar2 * 8)" ( (binary_expression "*(long *)(param_1 + 0x10) + lVar2 * 8" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "lVar2 * 8" identifier * number_literal)) )))) , identifier )))) ;) (if_statement "if ((int)uVar1 == 0) {\n      return uVar1;\n    }" if (parenthesized_expression "((int)uVar1 == 0)" ( (binary_expression "(int)uVar1 == 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n      return uVar1;\n    }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "lVar2 = lVar2 + 1;" (assignment_expression "lVar2 = lVar2 + 1" identifier = (binary_expression "lVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar2 < *(int *)(param_1 + 8))" ( (binary_expression "(int)lVar2 < *(int *)(param_1 + 8)" (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) < (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int session_filter(void *pCtx,char *zTab)\n\n{\n  int iVar1;\n  long lVar2;\n  OpenSession *pSession;\n  \n  if (*(int *)((long)pCtx + 8) < 1) {\n    return 1;\n  }\n  lVar2 = 0;\n  do {\n    iVar1 = sqlite3_strglob(*(char **)(*(long *)((long)pCtx + 0x10) + lVar2 * 8),zTab);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)((long)pCtx + 8));\n  return 1;\n}\n\n" (function_definition "int session_filter(void *pCtx,char *zTab)\n\n{\n  int iVar1;\n  long lVar2;\n  OpenSession *pSession;\n  \n  if (*(int *)((long)pCtx + 8) < 1) {\n    return 1;\n  }\n  lVar2 = 0;\n  do {\n    iVar1 = sqlite3_strglob(*(char **)(*(long *)((long)pCtx + 0x10) + lVar2 * 8),zTab);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)((long)pCtx + 8));\n  return 1;\n}" primitive_type (function_declarator "session_filter(void *pCtx,char *zTab)" identifier (parameter_list "(void *pCtx,char *zTab)" ( (parameter_declaration "void *pCtx" primitive_type (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "char *zTab" primitive_type (pointer_declarator "*zTab" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  OpenSession *pSession;\n  \n  if (*(int *)((long)pCtx + 8) < 1) {\n    return 1;\n  }\n  lVar2 = 0;\n  do {\n    iVar1 = sqlite3_strglob(*(char **)(*(long *)((long)pCtx + 0x10) + lVar2 * 8),zTab);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)((long)pCtx + 8));\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "OpenSession *pSession;" type_identifier (pointer_declarator "*pSession" * identifier) ;) (if_statement "if (*(int *)((long)pCtx + 8) < 1) {\n    return 1;\n  }" if (parenthesized_expression "(*(int *)((long)pCtx + 8) < 1)" ( (binary_expression "*(int *)((long)pCtx + 8) < 1" (pointer_expression "*(int *)((long)pCtx + 8)" * (cast_expression "(int *)((long)pCtx + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pCtx + 8)" ( (binary_expression "(long)pCtx + 8" (cast_expression "(long)pCtx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) < number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar1 = sqlite3_strglob(*(char **)(*(long *)((long)pCtx + 0x10) + lVar2 * 8),zTab);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)((long)pCtx + 8));" do (compound_statement "{\n    iVar1 = sqlite3_strglob(*(char **)(*(long *)((long)pCtx + 0x10) + lVar2 * 8),zTab);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    lVar2 = lVar2 + 1;\n  }" { (expression_statement "iVar1 = sqlite3_strglob(*(char **)(*(long *)((long)pCtx + 0x10) + lVar2 * 8),zTab);" (assignment_expression "iVar1 = sqlite3_strglob(*(char **)(*(long *)((long)pCtx + 0x10) + lVar2 * 8),zTab)" identifier = (call_expression "sqlite3_strglob(*(char **)(*(long *)((long)pCtx + 0x10) + lVar2 * 8),zTab)" identifier (argument_list "(*(char **)(*(long *)((long)pCtx + 0x10) + lVar2 * 8),zTab)" ( (pointer_expression "*(char **)(*(long *)((long)pCtx + 0x10) + lVar2 * 8)" * (cast_expression "(char **)(*(long *)((long)pCtx + 0x10) + lVar2 * 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)((long)pCtx + 0x10) + lVar2 * 8)" ( (binary_expression "*(long *)((long)pCtx + 0x10) + lVar2 * 8" (pointer_expression "*(long *)((long)pCtx + 0x10)" * (cast_expression "(long *)((long)pCtx + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pCtx + 0x10)" ( (binary_expression "(long)pCtx + 0x10" (cast_expression "(long)pCtx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + (binary_expression "lVar2 * 8" identifier * number_literal)) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "lVar2 = lVar2 + 1;" (assignment_expression "lVar2 = lVar2 + 1" identifier = (binary_expression "lVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar2 < *(int *)((long)pCtx + 8))" ( (binary_expression "(int)lVar2 < *(int *)((long)pCtx + 8)" (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) < (pointer_expression "*(int *)((long)pCtx + 8)" * (cast_expression "(int *)((long)pCtx + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pCtx + 8)" ( (binary_expression "(long)pCtx + 8" (cast_expression "(long)pCtx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined8 FUN_001160fc(long param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  \n  if (*(int *)(param_1 + 8) < 1) {\n    return 1;\n  }\n  lVar2 = 0;\n  do {\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)(param_1 + 8));\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_001160fc(long param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  \n  if (*(int *)(param_1 + 8) < 1) {\n    return 1;\n  }\n  lVar2 = 0;\n  do {\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)(param_1 + 8));\n  return 1;\n}" type_identifier (function_declarator "FUN_001160fc(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  long lVar2;\n  \n  if (*(int *)(param_1 + 8) < 1) {\n    return 1;\n  }\n  lVar2 = 0;\n  do {\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)(param_1 + 8));\n  return 1;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*(int *)(param_1 + 8) < 1) {\n    return 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) < 1)" ( (binary_expression "*(int *)(param_1 + 8) < 1" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)(param_1 + 8));" do (compound_statement "{\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  }" { (expression_statement "uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);" (assignment_expression "uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2)" identifier = (call_expression "FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2)" identifier (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2)" ( (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x10) + lVar2 * 8)" ( (binary_expression "*(long *)(param_1 + 0x10) + lVar2 * 8" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "lVar2 * 8" identifier * number_literal)) )))) , identifier )))) ;) (if_statement "if ((int)uVar1 == 0) {\n      return uVar1;\n    }" if (parenthesized_expression "((int)uVar1 == 0)" ( (binary_expression "(int)uVar1 == 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n      return uVar1;\n    }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "lVar2 = lVar2 + 1;" (assignment_expression "lVar2 = lVar2 + 1" identifier = (binary_expression "lVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar2 < *(int *)(param_1 + 8))" ( (binary_expression "(int)lVar2 < *(int *)(param_1 + 8)" (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) < (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (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 { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_001160fc(long param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  long lVar2;\n  \n  if (*(int *)(param_1 + 8) < 1) {\n    return 1;\n  }\n  lVar2 = 0;\n  do {\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)(param_1 + 8));\n  return 1;\n}" (type_identifier "undefined8") (function_declarator "FUN_001160fc(long param_1,undefined8 param_2)" (identifier "FUN_001160fc") (parameter_list "(long param_1,undefined8 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  long lVar2;\n  \n  if (*(int *)(param_1 + 8) < 1) {\n    return 1;\n  }\n  lVar2 = 0;\n  do {\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)(param_1 + 8));\n  return 1;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (if_statement "if (*(int *)(param_1 + 8) < 1) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) < 1)" (( "(") (binary_expression "*(int *)(param_1 + 8) < 1" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" (identifier "lVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  } while ((int)lVar2 < *(int *)(param_1 + 8));" (do "do") (compound_statement "{\n    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);\n    if ((int)uVar1 == 0) {\n      return uVar1;\n    }\n    lVar2 = lVar2 + 1;\n  }" ({ "{") (expression_statement "uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);" (assignment_expression "uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2)" (identifier "uVar1") (= "=") (call_expression "FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2)" (identifier "FUN_0013d34d") (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2)" (( "(") (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8)" (* "*") (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x10) + lVar2 * 8)" (( "(") (binary_expression "*(long *)(param_1 + 0x10) + lVar2 * 8" (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "lVar2 * 8" (identifier "lVar2") (* "*") (number_literal "8"))) () ")")))) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if ((int)uVar1 == 0) {\n      return uVar1;\n    }" (if "if") (parenthesized_expression "((int)uVar1 == 0)" (( "(") (binary_expression "(int)uVar1 == 0" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return uVar1;\n    }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "lVar2 = lVar2 + 1;" (assignment_expression "lVar2 = lVar2 + 1" (identifier "lVar2") (= "=") (binary_expression "lVar2 + 1" (identifier "lVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)lVar2 < *(int *)(param_1 + 8))" (( "(") (binary_expression "(int)lVar2 < *(int *)(param_1 + 8)" (cast_expression "(int)lVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar2")) (< "<") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

int function_1(void *pCtx,char *zTab)

{
  int var_3;
  long var_2;
  type_1 *pSession;
  
  if (*(int *)((long)pCtx + 8) < 1) {
    return 1;
  }
  var_2 = 0;
  do {
    var_3 = var_1(*(char **)(*(long *)((long)pCtx + 0x10) + var_2 * 8),zTab);
    if (var_3 == 0) {
      return 0;
    }
    var_2 = var_2 + 1;
  } while ((int)var_2 < *(int *)((long)pCtx + 8));
  return 1;
}


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

undefined8 MASKED(long param_1,undefined8 param_2)

{
  undefined8 uVar1;
  long lVar2;
  
  if (*(int *)(param_1 + 8) < 1) {
    return 1;
  }
  lVar2 = 0;
  do {
    uVar1 = FUN_0013d34d(*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar2 * 8),param_2);
    if ((int)uVar1 == 0) {
      return uVar1;
    }
    lVar2 = lVar2 + 1;
  } while ((int)lVar2 < *(int *)(param_1 + 8));
  return 1;
}

