
/* WARNING: Unknown calling convention */

Backend * backend_from_proto(int proto)

{
  Backend *pBVar1;
  int iVar2;
  int *piVar3;
  
  pBVar1 = *(Backend **)PTR_PTR_000bc564;
  if (pBVar1 != (Backend *)0x0) {
    iVar2 = pBVar1->protocol;
    piVar3 = (int *)PTR_PTR_000bc564;
    while (proto != iVar2) {
      piVar3 = piVar3 + 1;
      pBVar1 = (Backend *)*piVar3;
      if (pBVar1 == (Backend *)0x0) {
        return (Backend *)0x0;
      }
      iVar2 = pBVar1->protocol;
    }
  }
  return pBVar1;
}



void backend_from_proto(int param_1)

{
  int iVar1;
  int *piVar2;
  
  if (*(int *)PTR_PTR_000bc564 != 0) {
    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);
    piVar2 = (int *)PTR_PTR_000bc564;
    while (param_1 != iVar1) {
      piVar2 = piVar2 + 1;
      if (*piVar2 == 0) {
        return;
      }
      iVar1 = *(int *)(*piVar2 + 0x48);
    }
  }
  return;
}


lui gp,0x9
addiu gp,gp,0x4104
addu gp,gp,t9
lw v0,-0x7bec(gp)
lw v0,0x0(v0)
beq v0,zero,0x00030090
_nop
lw v1,0x48(v0)
beq a0,v1,0x00030090
_lw v1,-0x7bec(gp)
addiu v1,v1,0x4
lw v0,0x0(v1)
beq v0,zero,0x00030090
_nop
lw a1,0x48(v0)
bne a1,a0,0x00030078
_addiu v1,v1,0x4
jr ra
_nop
(translation_unit "void backend_from_proto(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_000bc564 != 0) {\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }\n  return;\n}\n\n" (function_definition "void backend_from_proto(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_000bc564 != 0) {\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "backend_from_proto(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_000bc564 != 0) {\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (*(int *)PTR_PTR_000bc564 != 0) {\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }" if (parenthesized_expression "(*(int *)PTR_PTR_000bc564 != 0)" ( (binary_expression "*(int *)PTR_PTR_000bc564 != 0" (pointer_expression "*(int *)PTR_PTR_000bc564" * (cast_expression "(int *)PTR_PTR_000bc564" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }" { (expression_statement "iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);" (assignment_expression "iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48)" identifier = (pointer_expression "*(int *)(*(int *)PTR_PTR_000bc564 + 0x48)" * (cast_expression "(int *)(*(int *)PTR_PTR_000bc564 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_PTR_000bc564 + 0x48)" ( (binary_expression "*(int *)PTR_PTR_000bc564 + 0x48" (pointer_expression "*(int *)PTR_PTR_000bc564" * (cast_expression "(int *)PTR_PTR_000bc564" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (expression_statement "piVar2 = (int *)PTR_PTR_000bc564;" (assignment_expression "piVar2 = (int *)PTR_PTR_000bc564" identifier = (cast_expression "(int *)PTR_PTR_000bc564" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }" while (parenthesized_expression "(param_1 != iVar1)" ( (binary_expression "param_1 != iVar1" identifier != identifier) )) (compound_statement "{\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }" { (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (if_statement "if (*piVar2 == 0) {\n        return;\n      }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = *(int *)(*piVar2 + 0x48);" (assignment_expression "iVar1 = *(int *)(*piVar2 + 0x48)" identifier = (pointer_expression "*(int *)(*piVar2 + 0x48)" * (cast_expression "(int *)(*piVar2 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0x48)" ( (binary_expression "*piVar2 + 0x48" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nBackend * backend_from_proto(int proto)\n\n{\n  Backend *pBVar1;\n  int iVar2;\n  int *piVar3;\n  \n  pBVar1 = *(Backend **)PTR_PTR_000bc564;\n  if (pBVar1 != (Backend *)0x0) {\n    iVar2 = pBVar1->protocol;\n    piVar3 = (int *)PTR_PTR_000bc564;\n    while (proto != iVar2) {\n      piVar3 = piVar3 + 1;\n      pBVar1 = (Backend *)*piVar3;\n      if (pBVar1 == (Backend *)0x0) {\n        return (Backend *)0x0;\n      }\n      iVar2 = pBVar1->protocol;\n    }\n  }\n  return pBVar1;\n}\n\n" comment (function_definition "Backend * backend_from_proto(int proto)\n\n{\n  Backend *pBVar1;\n  int iVar2;\n  int *piVar3;\n  \n  pBVar1 = *(Backend **)PTR_PTR_000bc564;\n  if (pBVar1 != (Backend *)0x0) {\n    iVar2 = pBVar1->protocol;\n    piVar3 = (int *)PTR_PTR_000bc564;\n    while (proto != iVar2) {\n      piVar3 = piVar3 + 1;\n      pBVar1 = (Backend *)*piVar3;\n      if (pBVar1 == (Backend *)0x0) {\n        return (Backend *)0x0;\n      }\n      iVar2 = pBVar1->protocol;\n    }\n  }\n  return pBVar1;\n}" type_identifier (pointer_declarator "* backend_from_proto(int proto)" * (function_declarator "backend_from_proto(int proto)" identifier (parameter_list "(int proto)" ( (parameter_declaration "int proto" primitive_type identifier) )))) (compound_statement "{\n  Backend *pBVar1;\n  int iVar2;\n  int *piVar3;\n  \n  pBVar1 = *(Backend **)PTR_PTR_000bc564;\n  if (pBVar1 != (Backend *)0x0) {\n    iVar2 = pBVar1->protocol;\n    piVar3 = (int *)PTR_PTR_000bc564;\n    while (proto != iVar2) {\n      piVar3 = piVar3 + 1;\n      pBVar1 = (Backend *)*piVar3;\n      if (pBVar1 == (Backend *)0x0) {\n        return (Backend *)0x0;\n      }\n      iVar2 = pBVar1->protocol;\n    }\n  }\n  return pBVar1;\n}" { (declaration "Backend *pBVar1;" type_identifier (pointer_declarator "*pBVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "pBVar1 = *(Backend **)PTR_PTR_000bc564;" (assignment_expression "pBVar1 = *(Backend **)PTR_PTR_000bc564" identifier = (pointer_expression "*(Backend **)PTR_PTR_000bc564" * (cast_expression "(Backend **)PTR_PTR_000bc564" ( (type_descriptor "Backend **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (pBVar1 != (Backend *)0x0) {\n    iVar2 = pBVar1->protocol;\n    piVar3 = (int *)PTR_PTR_000bc564;\n    while (proto != iVar2) {\n      piVar3 = piVar3 + 1;\n      pBVar1 = (Backend *)*piVar3;\n      if (pBVar1 == (Backend *)0x0) {\n        return (Backend *)0x0;\n      }\n      iVar2 = pBVar1->protocol;\n    }\n  }" if (parenthesized_expression "(pBVar1 != (Backend *)0x0)" ( (binary_expression "pBVar1 != (Backend *)0x0" identifier != (cast_expression "(Backend *)0x0" ( (type_descriptor "Backend *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = pBVar1->protocol;\n    piVar3 = (int *)PTR_PTR_000bc564;\n    while (proto != iVar2) {\n      piVar3 = piVar3 + 1;\n      pBVar1 = (Backend *)*piVar3;\n      if (pBVar1 == (Backend *)0x0) {\n        return (Backend *)0x0;\n      }\n      iVar2 = pBVar1->protocol;\n    }\n  }" { (expression_statement "iVar2 = pBVar1->protocol;" (assignment_expression "iVar2 = pBVar1->protocol" identifier = (field_expression "pBVar1->protocol" identifier -> field_identifier)) ;) (expression_statement "piVar3 = (int *)PTR_PTR_000bc564;" (assignment_expression "piVar3 = (int *)PTR_PTR_000bc564" identifier = (cast_expression "(int *)PTR_PTR_000bc564" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while (proto != iVar2) {\n      piVar3 = piVar3 + 1;\n      pBVar1 = (Backend *)*piVar3;\n      if (pBVar1 == (Backend *)0x0) {\n        return (Backend *)0x0;\n      }\n      iVar2 = pBVar1->protocol;\n    }" while (parenthesized_expression "(proto != iVar2)" ( (binary_expression "proto != iVar2" identifier != identifier) )) (compound_statement "{\n      piVar3 = piVar3 + 1;\n      pBVar1 = (Backend *)*piVar3;\n      if (pBVar1 == (Backend *)0x0) {\n        return (Backend *)0x0;\n      }\n      iVar2 = pBVar1->protocol;\n    }" { (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "pBVar1 = (Backend *)*piVar3;" (assignment_expression "pBVar1 = (Backend *)*piVar3" identifier = (cast_expression "(Backend *)*piVar3" ( (type_descriptor "Backend *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (if_statement "if (pBVar1 == (Backend *)0x0) {\n        return (Backend *)0x0;\n      }" if (parenthesized_expression "(pBVar1 == (Backend *)0x0)" ( (binary_expression "pBVar1 == (Backend *)0x0" identifier == (cast_expression "(Backend *)0x0" ( (type_descriptor "Backend *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return (Backend *)0x0;\n      }" { (return_statement "return (Backend *)0x0;" return (cast_expression "(Backend *)0x0" ( (type_descriptor "Backend *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar2 = pBVar1->protocol;" (assignment_expression "iVar2 = pBVar1->protocol" identifier = (field_expression "pBVar1->protocol" identifier -> field_identifier)) ;) })) })) (return_statement "return pBVar1;" return identifier ;) })))
(translation_unit "void backend_from_proto(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_000bc564 != 0) {\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }\n  return;\n}\n\n" (function_definition "void backend_from_proto(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_000bc564 != 0) {\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "backend_from_proto(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_000bc564 != 0) {\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (*(int *)PTR_PTR_000bc564 != 0) {\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }" if (parenthesized_expression "(*(int *)PTR_PTR_000bc564 != 0)" ( (binary_expression "*(int *)PTR_PTR_000bc564 != 0" (pointer_expression "*(int *)PTR_PTR_000bc564" * (cast_expression "(int *)PTR_PTR_000bc564" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }" { (expression_statement "iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);" (assignment_expression "iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48)" identifier = (pointer_expression "*(int *)(*(int *)PTR_PTR_000bc564 + 0x48)" * (cast_expression "(int *)(*(int *)PTR_PTR_000bc564 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_PTR_000bc564 + 0x48)" ( (binary_expression "*(int *)PTR_PTR_000bc564 + 0x48" (pointer_expression "*(int *)PTR_PTR_000bc564" * (cast_expression "(int *)PTR_PTR_000bc564" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (expression_statement "piVar2 = (int *)PTR_PTR_000bc564;" (assignment_expression "piVar2 = (int *)PTR_PTR_000bc564" identifier = (cast_expression "(int *)PTR_PTR_000bc564" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }" while (parenthesized_expression "(param_1 != iVar1)" ( (binary_expression "param_1 != iVar1" identifier != identifier) )) (compound_statement "{\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }" { (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (if_statement "if (*piVar2 == 0) {\n        return;\n      }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = *(int *)(*piVar2 + 0x48);" (assignment_expression "iVar1 = *(int *)(*piVar2 + 0x48)" identifier = (pointer_expression "*(int *)(*piVar2 + 0x48)" * (cast_expression "(int *)(*piVar2 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0x48)" ( (binary_expression "*piVar2 + 0x48" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) })) })) (return_statement return ;) })))
(function_definition "void backend_from_proto(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_000bc564 != 0) {\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "backend_from_proto(int param_1)" (identifier "backend_from_proto") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (*(int *)PTR_PTR_000bc564 != 0) {\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (if_statement "if (*(int *)PTR_PTR_000bc564 != 0) {\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)PTR_PTR_000bc564 != 0)" (( "(") (binary_expression "*(int *)PTR_PTR_000bc564 != 0" (pointer_expression "*(int *)PTR_PTR_000bc564" (* "*") (cast_expression "(int *)PTR_PTR_000bc564" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_PTR_000bc564"))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);\n    piVar2 = (int *)PTR_PTR_000bc564;\n    while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);" (assignment_expression "iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)PTR_PTR_000bc564 + 0x48)" (* "*") (cast_expression "(int *)(*(int *)PTR_PTR_000bc564 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_PTR_000bc564 + 0x48)" (( "(") (binary_expression "*(int *)PTR_PTR_000bc564 + 0x48" (pointer_expression "*(int *)PTR_PTR_000bc564" (* "*") (cast_expression "(int *)PTR_PTR_000bc564" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_PTR_000bc564"))) (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (expression_statement "piVar2 = (int *)PTR_PTR_000bc564;" (assignment_expression "piVar2 = (int *)PTR_PTR_000bc564" (identifier "piVar2") (= "=") (cast_expression "(int *)PTR_PTR_000bc564" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_PTR_000bc564"))) (; ";")) (while_statement "while (param_1 != iVar1) {\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }" (while "while") (parenthesized_expression "(param_1 != iVar1)" (( "(") (binary_expression "param_1 != iVar1" (identifier "param_1") (!= "!=") (identifier "iVar1")) () ")")) (compound_statement "{\n      piVar2 = piVar2 + 1;\n      if (*piVar2 == 0) {\n        return;\n      }\n      iVar1 = *(int *)(*piVar2 + 0x48);\n    }" ({ "{") (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*piVar2 == 0) {\n        return;\n      }" (if "if") (parenthesized_expression "(*piVar2 == 0)" (( "(") (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(*piVar2 + 0x48);" (assignment_expression "iVar1 = *(int *)(*piVar2 + 0x48)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*piVar2 + 0x48)" (* "*") (cast_expression "(int *)(*piVar2 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + 0x48)" (( "(") (binary_expression "*piVar2 + 0x48" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 * function_1(int var_2)

{
  type_1 *var_1;
  int var_3;
  int *var_4;
  
  var_1 = *(type_1 **)PTR_PTR_000bc564;
  if (var_1 != (type_1 *)0x0) {
    var_3 = var_1->protocol;
    var_4 = (int *)PTR_PTR_000bc564;
    while (var_2 != var_3) {
      var_4 = var_4 + 1;
      var_1 = (type_1 *)*var_4;
      if (var_1 == (type_1 *)0x0) {
        return (type_1 *)0x0;
      }
      var_3 = var_1->protocol;
    }
  }
  return var_1;
}


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

void MASKED(int param_1)

{
  int iVar1;
  int *piVar2;
  
  if (*(int *)PTR_PTR_000bc564 != 0) {
    iVar1 = *(int *)(*(int *)PTR_PTR_000bc564 + 0x48);
    piVar2 = (int *)PTR_PTR_000bc564;
    while (param_1 != iVar1) {
      piVar2 = piVar2 + 1;
      if (*piVar2 == 0) {
        return;
      }
      iVar1 = *(int *)(*piVar2 + 0x48);
    }
  }
  return;
}

