
void agent_select_result(int fd,int event)

{
  agent_pending_query *conn;
  int iVar1;
  int local_res0 [4];
  
  local_res0[0] = fd;
  if (event == 1) {
    conn = (agent_pending_query *)
           find234(*(tree234 **)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,
                   (cmpfn234)(PTR_LAB_000bec24 + -0x707c));
    if (conn == (agent_pending_query *)0x0) {
      uxsel_del(local_res0[0]);
    }
    else {
      iVar1 = agent_try_read(conn);
      if (iVar1 != 0) {
        (*conn->callback)(conn->callback_ctx,conn->retbuf,conn->retlen);
        agent_cancel_query(conn);
      }
    }
    return;
  }
  (*(code *)PTR___assert_fail_000bed58)
            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);
  return;
}



void FUN_00089204(undefined4 param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 local_res0 [4];
  
  local_res0[0] = param_1;
  if (param_2 == 1) {
    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,
                    PTR_LAB_000bec24 + -0x707c);
    if (iVar1 == 0) {
      uxsel_del(local_res0[0]);
    }
    else {
      iVar2 = FUN_00088fa8(iVar1);
      if (iVar2 != 0) {
        (**(code **)(iVar1 + 0x14))
                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),
                   *(undefined4 *)(iVar1 + 0x10));
        agent_cancel_query(iVar1);
      }
    }
    return;
  }
  (*(code *)PTR___assert_fail_000bed58)
            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);
  return;
}


lui gp,0x4
addiu gp,gp,-0x2e94
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
li v0,0x1
bne a1,v0,0x000892b8
_sw a0,0x20(sp)
lw a2,-0x774c(gp)
addiu a2,a2,-0x707c
addiu a1,sp,0x20
lw v0,-0x7fd8(gp)
lw a0,-0x930(v0)
lw t9,-0x7ef4(gp)
bal 0x00088d80
_nop
lw gp,0x10(sp)
beq v0,zero,0x000892e0
_or s0,v0,zero
or a0,v0,zero
lw t9,-0x774c(gp)
addiu t9,t9,-0x7058
bal 0x00088fa8
_nop
lw gp,0x10(sp)
beq v0,zero,0x000892ac
_lw ra,0x1c(sp)
lw t9,0x14(s0)
lw a2,0x10(s0)
lw a1,0x4(s0)
lw a0,0x18(s0)
jalr t9
_nop
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x7b04(gp)
bal 0x0008917c
_nop
lw gp,0x10(sp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw a3,-0x7f2c(gp)
addiu a3,a3,-0x5b70
li a2,0x69
lw a1,-0x7f2c(gp)
addiu a1,a1,-0x5bf0
lw a0,-0x7f2c(gp)
addiu a0,a0,-0x5bb0
lw t9,-0x7618(gp)
jalr t9
_nop
lw a0,0x20(sp)
lw t9,-0x7748(gp)
bal 0x00090fac
_nop
lw gp,0x10(sp)
b 0x000892ac
_lw ra,0x1c(sp)
(translation_unit "void FUN_00089204(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  local_res0[0] = param_1;\n  if (param_2 == 1) {\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);\n  return;\n}\n\n" (function_definition "void FUN_00089204(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  local_res0[0] = param_1;\n  if (param_2 == 1) {\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);\n  return;\n}" primitive_type (function_declarator "FUN_00089204(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  local_res0[0] = param_1;\n  if (param_2 == 1) {\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 local_res0 [4];" type_identifier (array_declarator "local_res0 [4]" identifier [ number_literal ]) ;) (expression_statement "local_res0[0] = param_1;" (assignment_expression "local_res0[0] = param_1" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_2 == 1) {\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }" { (expression_statement "iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);" (assignment_expression "iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c)" identifier = (call_expression "find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c)" identifier (argument_list "(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c)" ( (pointer_expression "*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930)" * (cast_expression "(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__ITM_registerTMCloneTable_000be398 + -0x930)" ( (binary_expression "PTR__ITM_registerTMCloneTable_000be398 + -0x930" identifier + number_literal) )))) , identifier , (binary_expression "PTR_LAB_000bec24 + -0x707c" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uxsel_del(local_res0[0]);\n    }" { (expression_statement "uxsel_del(local_res0[0]);" (call_expression "uxsel_del(local_res0[0])" identifier (argument_list "(local_res0[0])" ( (subscript_expression "local_res0[0]" identifier [ number_literal ]) ))) ;) }) (else_clause "else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }" else (compound_statement "{\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }" { (expression_statement "iVar2 = FUN_00088fa8(iVar1);" (assignment_expression "iVar2 = FUN_00088fa8(iVar1)" identifier = (call_expression "FUN_00088fa8(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }" { (expression_statement "(**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));" (call_expression "(**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10))" (parenthesized_expression "(**(code **)(iVar1 + 0x14))" ( (pointer_expression "**(code **)(iVar1 + 0x14)" * (pointer_expression "*(code **)(iVar1 + 0x14)" * (cast_expression "(code **)(iVar1 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10))" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x18)" * (cast_expression "(undefined4 *)(iVar1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "agent_cancel_query(iVar1);" (call_expression "agent_cancel_query(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) }))) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);" (call_expression "(*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70)" (parenthesized_expression "(*(code *)PTR___assert_fail_000bed58)" ( (pointer_expression "*(code *)PTR___assert_fail_000bed58" * (cast_expression "(code *)PTR___assert_fail_000bed58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70)" ( (binary_expression "PTR_DAT_000be444 + -0x5bb0" identifier + number_literal) , (binary_expression "PTR_DAT_000be444 + -0x5bf0" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000be444 + -0x5b70" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void agent_select_result(int fd,int event)\n\n{\n  agent_pending_query *conn;\n  int iVar1;\n  int local_res0 [4];\n  \n  local_res0[0] = fd;\n  if (event == 1) {\n    conn = (agent_pending_query *)\n           find234(*(tree234 **)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                   (cmpfn234)(PTR_LAB_000bec24 + -0x707c));\n    if (conn == (agent_pending_query *)0x0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar1 = agent_try_read(conn);\n      if (iVar1 != 0) {\n        (*conn->callback)(conn->callback_ctx,conn->retbuf,conn->retlen);\n        agent_cancel_query(conn);\n      }\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);\n  return;\n}\n\n" (function_definition "void agent_select_result(int fd,int event)\n\n{\n  agent_pending_query *conn;\n  int iVar1;\n  int local_res0 [4];\n  \n  local_res0[0] = fd;\n  if (event == 1) {\n    conn = (agent_pending_query *)\n           find234(*(tree234 **)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                   (cmpfn234)(PTR_LAB_000bec24 + -0x707c));\n    if (conn == (agent_pending_query *)0x0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar1 = agent_try_read(conn);\n      if (iVar1 != 0) {\n        (*conn->callback)(conn->callback_ctx,conn->retbuf,conn->retlen);\n        agent_cancel_query(conn);\n      }\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);\n  return;\n}" primitive_type (function_declarator "agent_select_result(int fd,int event)" identifier (parameter_list "(int fd,int event)" ( (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "int event" primitive_type identifier) ))) (compound_statement "{\n  agent_pending_query *conn;\n  int iVar1;\n  int local_res0 [4];\n  \n  local_res0[0] = fd;\n  if (event == 1) {\n    conn = (agent_pending_query *)\n           find234(*(tree234 **)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                   (cmpfn234)(PTR_LAB_000bec24 + -0x707c));\n    if (conn == (agent_pending_query *)0x0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar1 = agent_try_read(conn);\n      if (iVar1 != 0) {\n        (*conn->callback)(conn->callback_ctx,conn->retbuf,conn->retlen);\n        agent_cancel_query(conn);\n      }\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);\n  return;\n}" { (declaration "agent_pending_query *conn;" type_identifier (pointer_declarator "*conn" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int local_res0 [4];" primitive_type (array_declarator "local_res0 [4]" identifier [ number_literal ]) ;) (expression_statement "local_res0[0] = fd;" (assignment_expression "local_res0[0] = fd" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (event == 1) {\n    conn = (agent_pending_query *)\n           find234(*(tree234 **)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                   (cmpfn234)(PTR_LAB_000bec24 + -0x707c));\n    if (conn == (agent_pending_query *)0x0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar1 = agent_try_read(conn);\n      if (iVar1 != 0) {\n        (*conn->callback)(conn->callback_ctx,conn->retbuf,conn->retlen);\n        agent_cancel_query(conn);\n      }\n    }\n    return;\n  }" if (parenthesized_expression "(event == 1)" ( (binary_expression "event == 1" identifier == number_literal) )) (compound_statement "{\n    conn = (agent_pending_query *)\n           find234(*(tree234 **)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                   (cmpfn234)(PTR_LAB_000bec24 + -0x707c));\n    if (conn == (agent_pending_query *)0x0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar1 = agent_try_read(conn);\n      if (iVar1 != 0) {\n        (*conn->callback)(conn->callback_ctx,conn->retbuf,conn->retlen);\n        agent_cancel_query(conn);\n      }\n    }\n    return;\n  }" { (expression_statement "conn = (agent_pending_query *)\n           find234(*(tree234 **)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                   (cmpfn234)(PTR_LAB_000bec24 + -0x707c));" (assignment_expression "conn = (agent_pending_query *)\n           find234(*(tree234 **)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                   (cmpfn234)(PTR_LAB_000bec24 + -0x707c))" identifier = (cast_expression "(agent_pending_query *)\n           find234(*(tree234 **)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                   (cmpfn234)(PTR_LAB_000bec24 + -0x707c))" ( (type_descriptor "agent_pending_query *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "find234(*(tree234 **)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                   (cmpfn234)(PTR_LAB_000bec24 + -0x707c))" identifier (argument_list "(*(tree234 **)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                   (cmpfn234)(PTR_LAB_000bec24 + -0x707c))" ( (pointer_expression "*(tree234 **)(PTR__ITM_registerTMCloneTable_000be398 + -0x930)" * (cast_expression "(tree234 **)(PTR__ITM_registerTMCloneTable_000be398 + -0x930)" ( (type_descriptor "tree234 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR__ITM_registerTMCloneTable_000be398 + -0x930)" ( (binary_expression "PTR__ITM_registerTMCloneTable_000be398 + -0x930" identifier + number_literal) )))) , identifier , (call_expression "(cmpfn234)(PTR_LAB_000bec24 + -0x707c)" (parenthesized_expression "(cmpfn234)" ( identifier )) (argument_list "(PTR_LAB_000bec24 + -0x707c)" ( (binary_expression "PTR_LAB_000bec24 + -0x707c" identifier + number_literal) ))) ))))) ;) (if_statement "if (conn == (agent_pending_query *)0x0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar1 = agent_try_read(conn);\n      if (iVar1 != 0) {\n        (*conn->callback)(conn->callback_ctx,conn->retbuf,conn->retlen);\n        agent_cancel_query(conn);\n      }\n    }" if (parenthesized_expression "(conn == (agent_pending_query *)0x0)" ( (binary_expression "conn == (agent_pending_query *)0x0" identifier == (cast_expression "(agent_pending_query *)0x0" ( (type_descriptor "agent_pending_query *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uxsel_del(local_res0[0]);\n    }" { (expression_statement "uxsel_del(local_res0[0]);" (call_expression "uxsel_del(local_res0[0])" identifier (argument_list "(local_res0[0])" ( (subscript_expression "local_res0[0]" identifier [ number_literal ]) ))) ;) }) (else_clause "else {\n      iVar1 = agent_try_read(conn);\n      if (iVar1 != 0) {\n        (*conn->callback)(conn->callback_ctx,conn->retbuf,conn->retlen);\n        agent_cancel_query(conn);\n      }\n    }" else (compound_statement "{\n      iVar1 = agent_try_read(conn);\n      if (iVar1 != 0) {\n        (*conn->callback)(conn->callback_ctx,conn->retbuf,conn->retlen);\n        agent_cancel_query(conn);\n      }\n    }" { (expression_statement "iVar1 = agent_try_read(conn);" (assignment_expression "iVar1 = agent_try_read(conn)" identifier = (call_expression "agent_try_read(conn)" identifier (argument_list "(conn)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        (*conn->callback)(conn->callback_ctx,conn->retbuf,conn->retlen);\n        agent_cancel_query(conn);\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        (*conn->callback)(conn->callback_ctx,conn->retbuf,conn->retlen);\n        agent_cancel_query(conn);\n      }" { (expression_statement "(*conn->callback)(conn->callback_ctx,conn->retbuf,conn->retlen);" (call_expression "(*conn->callback)(conn->callback_ctx,conn->retbuf,conn->retlen)" (parenthesized_expression "(*conn->callback)" ( (pointer_expression "*conn->callback" * (field_expression "conn->callback" identifier -> field_identifier)) )) (argument_list "(conn->callback_ctx,conn->retbuf,conn->retlen)" ( (field_expression "conn->callback_ctx" identifier -> field_identifier) , (field_expression "conn->retbuf" identifier -> field_identifier) , (field_expression "conn->retlen" identifier -> field_identifier) ))) ;) (expression_statement "agent_cancel_query(conn);" (call_expression "agent_cancel_query(conn)" identifier (argument_list "(conn)" ( identifier ))) ;) })) }))) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);" (call_expression "(*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70)" (parenthesized_expression "(*(code *)PTR___assert_fail_000bed58)" ( (pointer_expression "*(code *)PTR___assert_fail_000bed58" * (cast_expression "(code *)PTR___assert_fail_000bed58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70)" ( (binary_expression "PTR_DAT_000be444 + -0x5bb0" identifier + number_literal) , (binary_expression "PTR_DAT_000be444 + -0x5bf0" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000be444 + -0x5b70" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00089204(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  local_res0[0] = param_1;\n  if (param_2 == 1) {\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);\n  return;\n}\n\n" (function_definition "void FUN_00089204(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  local_res0[0] = param_1;\n  if (param_2 == 1) {\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);\n  return;\n}" primitive_type (function_declarator "FUN_00089204(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  local_res0[0] = param_1;\n  if (param_2 == 1) {\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 local_res0 [4];" type_identifier (array_declarator "local_res0 [4]" identifier [ number_literal ]) ;) (expression_statement "local_res0[0] = param_1;" (assignment_expression "local_res0[0] = param_1" (subscript_expression "local_res0[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_2 == 1) {\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }" { (expression_statement "iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);" (assignment_expression "iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c)" identifier = (call_expression "find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c)" identifier (argument_list "(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c)" ( (pointer_expression "*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930)" * (cast_expression "(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__ITM_registerTMCloneTable_000be398 + -0x930)" ( (binary_expression "PTR__ITM_registerTMCloneTable_000be398 + -0x930" identifier + number_literal) )))) , identifier , (binary_expression "PTR_LAB_000bec24 + -0x707c" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uxsel_del(local_res0[0]);\n    }" { (expression_statement "uxsel_del(local_res0[0]);" (call_expression "uxsel_del(local_res0[0])" identifier (argument_list "(local_res0[0])" ( (subscript_expression "local_res0[0]" identifier [ number_literal ]) ))) ;) }) (else_clause "else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }" else (compound_statement "{\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }" { (expression_statement "iVar2 = FUN_00088fa8(iVar1);" (assignment_expression "iVar2 = FUN_00088fa8(iVar1)" identifier = (call_expression "FUN_00088fa8(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }" { (expression_statement "(**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));" (call_expression "(**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10))" (parenthesized_expression "(**(code **)(iVar1 + 0x14))" ( (pointer_expression "**(code **)(iVar1 + 0x14)" * (pointer_expression "*(code **)(iVar1 + 0x14)" * (cast_expression "(code **)(iVar1 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10))" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x18)" * (cast_expression "(undefined4 *)(iVar1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "agent_cancel_query(iVar1);" (call_expression "agent_cancel_query(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) }))) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);" (call_expression "(*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70)" (parenthesized_expression "(*(code *)PTR___assert_fail_000bed58)" ( (pointer_expression "*(code *)PTR___assert_fail_000bed58" * (cast_expression "(code *)PTR___assert_fail_000bed58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70)" ( (binary_expression "PTR_DAT_000be444 + -0x5bb0" identifier + number_literal) , (binary_expression "PTR_DAT_000be444 + -0x5bf0" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000be444 + -0x5b70" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 IDENT + LIT) )))) , IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) }))) (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00089204(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  local_res0[0] = param_1;\n  if (param_2 == 1) {\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00089204(undefined4 param_1,int param_2)" (identifier "FUN_00089204") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 local_res0 [4];\n  \n  local_res0[0] = param_1;\n  if (param_2 == 1) {\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }\n  (*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 local_res0 [4];" (type_identifier "undefined4") (array_declarator "local_res0 [4]" (identifier "local_res0") ([ "[") (number_literal "4") (] "]")) (; ";")) (expression_statement "local_res0[0] = param_1;" (assignment_expression "local_res0[0] = param_1" (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_1")) (; ";")) (if_statement "if (param_2 == 1) {\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 == 1)" (( "(") (binary_expression "param_2 == 1" (identifier "param_2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);\n    if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }\n    return;\n  }" ({ "{") (expression_statement "iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c);" (assignment_expression "iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c)" (identifier "iVar1") (= "=") (call_expression "find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c)" (identifier "find234") (argument_list "(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,\n                    PTR_LAB_000bec24 + -0x707c)" (( "(") (pointer_expression "*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930)" (* "*") (cast_expression "(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR__ITM_registerTMCloneTable_000be398 + -0x930)" (( "(") (binary_expression "PTR__ITM_registerTMCloneTable_000be398 + -0x930" (identifier "PTR__ITM_registerTMCloneTable_000be398") (+ "+") (number_literal "-0x930")) () ")")))) (, ",") (identifier "local_res0") (, ",") (binary_expression "PTR_LAB_000bec24 + -0x707c" (identifier "PTR_LAB_000bec24") (+ "+") (number_literal "-0x707c")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      uxsel_del(local_res0[0]);\n    }\n    else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uxsel_del(local_res0[0]);\n    }" ({ "{") (expression_statement "uxsel_del(local_res0[0]);" (call_expression "uxsel_del(local_res0[0])" (identifier "uxsel_del") (argument_list "(local_res0[0])" (( "(") (subscript_expression "local_res0[0]" (identifier "local_res0") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }" (else "else") (compound_statement "{\n      iVar2 = FUN_00088fa8(iVar1);\n      if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }\n    }" ({ "{") (expression_statement "iVar2 = FUN_00088fa8(iVar1);" (assignment_expression "iVar2 = FUN_00088fa8(iVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_00088fa8(iVar1)" (identifier "FUN_00088fa8") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));\n        agent_cancel_query(iVar1);\n      }" ({ "{") (expression_statement "(**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10));" (call_expression "(**(code **)(iVar1 + 0x14))\n                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10))" (parenthesized_expression "(**(code **)(iVar1 + 0x14))" (( "(") (pointer_expression "**(code **)(iVar1 + 0x14)" (* "*") (pointer_expression "*(code **)(iVar1 + 0x14)" (* "*") (cast_expression "(code **)(iVar1 + 0x14)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),\n                   *(undefined4 *)(iVar1 + 0x10))" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "agent_cancel_query(iVar1);" (call_expression "agent_cancel_query(iVar1)" (identifier "agent_cancel_query") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);" (call_expression "(*(code *)PTR___assert_fail_000bed58)\n            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70)" (parenthesized_expression "(*(code *)PTR___assert_fail_000bed58)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000bed58" (* "*") (cast_expression "(code *)PTR___assert_fail_000bed58" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000bed58"))) () ")")) (argument_list "(PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70)" (( "(") (binary_expression "PTR_DAT_000be444 + -0x5bb0" (identifier "PTR_DAT_000be444") (+ "+") (number_literal "-0x5bb0")) (, ",") (binary_expression "PTR_DAT_000be444 + -0x5bf0" (identifier "PTR_DAT_000be444") (+ "+") (number_literal "-0x5bf0")) (, ",") (number_literal "0x69") (, ",") (binary_expression "PTR_DAT_000be444 + -0x5b70" (identifier "PTR_DAT_000be444") (+ "+") (number_literal "-0x5b70")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(int fd,int var_1)

{
  type_1 *var_5;
  int var_8;
  int local_res0 [4];
  
  local_res0[0] = fd;
  if (var_1 == 1) {
    var_5 = (type_1 *)
           var_2(*(type_2 **)(var_3 + -0x930),local_res0,
                   (cmpfn234)(var_4 + -0x707c));
    if (var_5 == (type_1 *)0x0) {
      var_6(local_res0[0]);
    }
    else {
      var_8 = var_7(var_5);
      if (var_8 != 0) {
        (*var_5->callback)(var_5->callback_ctx,var_5->retbuf,var_5->retlen);
        var_9(var_5);
      }
    }
    return;
  }
  (*(type_3 *)PTR___assert_fail_000bed58)
            (var_10 + -0x5bb0,var_10 + -0x5bf0,0x69,var_10 + -0x5b70);
  return;
}


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

void MASKED(undefined4 param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 local_res0 [4];
  
  local_res0[0] = param_1;
  if (param_2 == 1) {
    iVar1 = find234(*(undefined4 *)(PTR__ITM_registerTMCloneTable_000be398 + -0x930),local_res0,
                    PTR_LAB_000bec24 + -0x707c);
    if (iVar1 == 0) {
      uxsel_del(local_res0[0]);
    }
    else {
      iVar2 = FUN_00088fa8(iVar1);
      if (iVar2 != 0) {
        (**(code **)(iVar1 + 0x14))
                  (*(undefined4 *)(iVar1 + 0x18),*(undefined4 *)(iVar1 + 4),
                   *(undefined4 *)(iVar1 + 0x10));
        agent_cancel_query(iVar1);
      }
    }
    return;
  }
  (*(code *)PTR___assert_fail_000bed58)
            (PTR_DAT_000be444 + -0x5bb0,PTR_DAT_000be444 + -0x5bf0,0x69,PTR_DAT_000be444 + -0x5b70);
  return;
}

