
void dlg_refresh(control *ctrl,void *dlg)

{
  int *piVar1;
  int iVar2;
  dlgparam *dp;
  int index;
  
  if (ctrl == (control *)0x0) {
    index = 0;
    while( true ) {
                    /* WARNING: Load size is inaccurate */
      piVar1 = (int *)index234(*dlg,index);
      if (piVar1 == (int *)0x0) break;
      iVar2 = *piVar1;
      if (iVar2 == 0) {
        (*(code *)PTR___assert_fail_000b5a40)
                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,
                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,
                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);
        return;
      }
      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {
        (**(code **)(iVar2 + 0x10))(iVar2,dlg,*(undefined4 *)((int)dlg + 8),0);
      }
      index = index + 1;
    }
  }
  else if ((ctrl->generic).handler != (handler_fn)0x0) {
                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(ctrl->generic).handler)(ctrl,dlg,*(void **)((int)dlg + 8),0);
    return;
  }
  return;
}



void dlg_refresh(int param_1,undefined4 *param_2)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  
  if (param_1 == 0) {
    iVar3 = 0;
    while( true ) {
      piVar1 = (int *)index234(*param_2,iVar3);
      if (piVar1 == (int *)0x0) break;
      iVar2 = *piVar1;
      if (iVar2 == 0) {
        (*(code *)PTR___assert_fail_000b5a40)
                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,
                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,
                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);
        return;
      }
      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {
        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);
      }
      iVar3 = iVar3 + 1;
    }
  }
  else if (*(code **)(param_1 + 0x10) != (code *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);
    return;
  }
  return;
}


lui gp,0x6
addiu gp,gp,0x14d0
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw s1,0x20(sp)
or s1,a1,zero
sw ra,0x24(sp)
beq a0,zero,0x0005bd60
_sw s0,0x1c(sp)
lw t9,0x10(a0)
beq t9,zero,0x0005bd4c
_lw ra,0x24(sp)
or a3,zero,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw a2,0x8(a1)
jr t9
_addiu sp,sp,0x28
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
or s0,zero,zero
lw t9,-0x7e88(gp)
or a1,s0,zero
bal 0x000542b8
_lw a0,0x0(s1)
beq v0,zero,0x0005bd4c
_lw gp,0x10(sp)
lw a0,0x0(v0)
beq a0,zero,0x0005bdac
_lw a3,-0x7fbc(gp)
lw t9,0x10(a0)
beq t9,zero,0x0005bda4
_or a3,zero,zero
lw a2,0x8(s1)
jalr t9
_or a1,s1,zero
lw gp,0x10(sp)
b 0x0005bd64
_addiu s0,s0,0x1
li a2,0x481
lw a1,-0x7fbc(gp)
lw a0,-0x7fbc(gp)
lw t9,-0x7790(gp)
addiu a3,a3,-0x3858
addiu a1,a1,-0x4b7c
jalr t9
_addiu a0,a0,-0x4928
(translation_unit "void dlg_refresh(int param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }\n  else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void dlg_refresh(int param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }\n  else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "dlg_refresh(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }\n  else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }\n  else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "piVar1 = (int *)index234(*param_2,iVar3);" (assignment_expression "piVar1 = (int *)index234(*param_2,iVar3)" identifier = (cast_expression "(int *)index234(*param_2,iVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "index234(*param_2,iVar3)" identifier (argument_list "(*param_2,iVar3)" ( (pointer_expression "*param_2" * identifier) , identifier ))))) ;) (if_statement "if (piVar1 == (int *)0x0) break;" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x4928" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x3858" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }" if (parenthesized_expression "(*(code **)(iVar2 + 0x10) != (code *)0x0)" ( (binary_expression "*(code **)(iVar2 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(iVar2 + 0x10)" * (cast_expression "(code **)(iVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }" { (expression_statement "(**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);" (call_expression "(**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0)" (parenthesized_expression "(**(code **)(iVar2 + 0x10))" ( (pointer_expression "**(code **)(iVar2 + 0x10)" * (pointer_expression "*(code **)(iVar2 + 0x10)" * (cast_expression "(code **)(iVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) )) (argument_list "(iVar2,param_2,param_2[2],0)" ( identifier , identifier , (subscript_expression "param_2[2]" identifier [ number_literal ]) , number_literal ))) ;) })) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) })) }) (else_clause "else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }" else (if_statement "if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }" if (parenthesized_expression "(*(code **)(param_1 + 0x10) != (code *)0x0)" ( (binary_expression "*(code **)(param_1 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x10)" * (cast_expression "(code **)(param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }" { comment comment (expression_statement "(**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);" (call_expression "(**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0)" (parenthesized_expression "(**(code **)(param_1 + 0x10))" ( (pointer_expression "**(code **)(param_1 + 0x10)" * (pointer_expression "*(code **)(param_1 + 0x10)" * (cast_expression "(code **)(param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) (argument_list "(param_1,param_2,param_2[2],0)" ( identifier , identifier , (subscript_expression "param_2[2]" identifier [ number_literal ]) , number_literal ))) ;) (return_statement "return;" return ;) })))) (return_statement "return;" return ;) })))
(translation_unit "void dlg_refresh(control *ctrl,void *dlg)\n\n{\n  int *piVar1;\n  int iVar2;\n  dlgparam *dp;\n  int index;\n  \n  if (ctrl == (control *)0x0) {\n    index = 0;\n    while( true ) {\n                    /* WARNING: Load size is inaccurate */\n      piVar1 = (int *)index234(*dlg,index);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,dlg,*(undefined4 *)((int)dlg + 8),0);\n      }\n      index = index + 1;\n    }\n  }\n  else if ((ctrl->generic).handler != (handler_fn)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(ctrl->generic).handler)(ctrl,dlg,*(void **)((int)dlg + 8),0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void dlg_refresh(control *ctrl,void *dlg)\n\n{\n  int *piVar1;\n  int iVar2;\n  dlgparam *dp;\n  int index;\n  \n  if (ctrl == (control *)0x0) {\n    index = 0;\n    while( true ) {\n                    /* WARNING: Load size is inaccurate */\n      piVar1 = (int *)index234(*dlg,index);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,dlg,*(undefined4 *)((int)dlg + 8),0);\n      }\n      index = index + 1;\n    }\n  }\n  else if ((ctrl->generic).handler != (handler_fn)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(ctrl->generic).handler)(ctrl,dlg,*(void **)((int)dlg + 8),0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "dlg_refresh(control *ctrl,void *dlg)" identifier (parameter_list "(control *ctrl,void *dlg)" ( (parameter_declaration "control *ctrl" type_identifier (pointer_declarator "*ctrl" * identifier)) , (parameter_declaration "void *dlg" primitive_type (pointer_declarator "*dlg" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  dlgparam *dp;\n  int index;\n  \n  if (ctrl == (control *)0x0) {\n    index = 0;\n    while( true ) {\n                    /* WARNING: Load size is inaccurate */\n      piVar1 = (int *)index234(*dlg,index);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,dlg,*(undefined4 *)((int)dlg + 8),0);\n      }\n      index = index + 1;\n    }\n  }\n  else if ((ctrl->generic).handler != (handler_fn)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(ctrl->generic).handler)(ctrl,dlg,*(void **)((int)dlg + 8),0);\n    return;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "dlgparam *dp;" type_identifier (pointer_declarator "*dp" * identifier) ;) (declaration "int index;" primitive_type identifier ;) (if_statement "if (ctrl == (control *)0x0) {\n    index = 0;\n    while( true ) {\n                    /* WARNING: Load size is inaccurate */\n      piVar1 = (int *)index234(*dlg,index);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,dlg,*(undefined4 *)((int)dlg + 8),0);\n      }\n      index = index + 1;\n    }\n  }\n  else if ((ctrl->generic).handler != (handler_fn)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(ctrl->generic).handler)(ctrl,dlg,*(void **)((int)dlg + 8),0);\n    return;\n  }" if (parenthesized_expression "(ctrl == (control *)0x0)" ( (binary_expression "ctrl == (control *)0x0" identifier == (cast_expression "(control *)0x0" ( (type_descriptor "control *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    index = 0;\n    while( true ) {\n                    /* WARNING: Load size is inaccurate */\n      piVar1 = (int *)index234(*dlg,index);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,dlg,*(undefined4 *)((int)dlg + 8),0);\n      }\n      index = index + 1;\n    }\n  }" { (expression_statement "index = 0;" (assignment_expression "index = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n                    /* WARNING: Load size is inaccurate */\n      piVar1 = (int *)index234(*dlg,index);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,dlg,*(undefined4 *)((int)dlg + 8),0);\n      }\n      index = index + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      piVar1 = (int *)index234(*dlg,index);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,dlg,*(undefined4 *)((int)dlg + 8),0);\n      }\n      index = index + 1;\n    }" { comment (expression_statement "piVar1 = (int *)index234(*dlg,index);" (assignment_expression "piVar1 = (int *)index234(*dlg,index)" identifier = (cast_expression "(int *)index234(*dlg,index)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "index234(*dlg,index)" identifier (argument_list "(*dlg,index)" ( (pointer_expression "*dlg" * identifier) , identifier ))))) ;) (if_statement "if (piVar1 == (int *)0x0) break;" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x4928" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x3858" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,dlg,*(undefined4 *)((int)dlg + 8),0);\n      }" if (parenthesized_expression "(*(code **)(iVar2 + 0x10) != (code *)0x0)" ( (binary_expression "*(code **)(iVar2 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(iVar2 + 0x10)" * (cast_expression "(code **)(iVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(iVar2 + 0x10))(iVar2,dlg,*(undefined4 *)((int)dlg + 8),0);\n      }" { (expression_statement "(**(code **)(iVar2 + 0x10))(iVar2,dlg,*(undefined4 *)((int)dlg + 8),0);" (call_expression "(**(code **)(iVar2 + 0x10))(iVar2,dlg,*(undefined4 *)((int)dlg + 8),0)" (parenthesized_expression "(**(code **)(iVar2 + 0x10))" ( (pointer_expression "**(code **)(iVar2 + 0x10)" * (pointer_expression "*(code **)(iVar2 + 0x10)" * (cast_expression "(code **)(iVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) )) (argument_list "(iVar2,dlg,*(undefined4 *)((int)dlg + 8),0)" ( identifier , identifier , (pointer_expression "*(undefined4 *)((int)dlg + 8)" * (cast_expression "(undefined4 *)((int)dlg + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)dlg + 8)" ( (binary_expression "(int)dlg + 8" (cast_expression "(int)dlg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal ))) ;) })) (expression_statement "index = index + 1;" (assignment_expression "index = index + 1" identifier = (binary_expression "index + 1" identifier + number_literal)) ;) })) }) (else_clause "else if ((ctrl->generic).handler != (handler_fn)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(ctrl->generic).handler)(ctrl,dlg,*(void **)((int)dlg + 8),0);\n    return;\n  }" else (if_statement "if ((ctrl->generic).handler != (handler_fn)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(ctrl->generic).handler)(ctrl,dlg,*(void **)((int)dlg + 8),0);\n    return;\n  }" if (parenthesized_expression "((ctrl->generic).handler != (handler_fn)0x0)" ( (binary_expression "(ctrl->generic).handler != (handler_fn)0x0" (field_expression "(ctrl->generic).handler" (parenthesized_expression "(ctrl->generic)" ( (field_expression "ctrl->generic" identifier -> field_identifier) )) . field_identifier) != (cast_expression "(handler_fn)0x0" ( (type_descriptor "handler_fn" type_identifier) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(ctrl->generic).handler)(ctrl,dlg,*(void **)((int)dlg + 8),0);\n    return;\n  }" { comment comment (expression_statement "(*(ctrl->generic).handler)(ctrl,dlg,*(void **)((int)dlg + 8),0);" (call_expression "(*(ctrl->generic).handler)(ctrl,dlg,*(void **)((int)dlg + 8),0)" (parenthesized_expression "(*(ctrl->generic).handler)" ( (pointer_expression "*(ctrl->generic).handler" * (field_expression "(ctrl->generic).handler" (parenthesized_expression "(ctrl->generic)" ( (field_expression "ctrl->generic" identifier -> field_identifier) )) . field_identifier)) )) (argument_list "(ctrl,dlg,*(void **)((int)dlg + 8),0)" ( identifier , identifier , (pointer_expression "*(void **)((int)dlg + 8)" * (cast_expression "(void **)((int)dlg + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)dlg + 8)" ( (binary_expression "(int)dlg + 8" (cast_expression "(int)dlg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal ))) ;) (return_statement "return;" return ;) })))) (return_statement "return;" return ;) })))
(translation_unit "void dlg_refresh(int param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }\n  else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    \n                    \n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void dlg_refresh(int param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }\n  else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    \n                    \n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "dlg_refresh(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }\n  else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    \n                    \n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }\n  else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    \n                    \n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "piVar1 = (int *)index234(*param_2,iVar3);" (assignment_expression "piVar1 = (int *)index234(*param_2,iVar3)" identifier = (cast_expression "(int *)index234(*param_2,iVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "index234(*param_2,iVar3)" identifier (argument_list "(*param_2,iVar3)" ( (pointer_expression "*param_2" * identifier) , identifier ))))) ;) (if_statement "if (piVar1 == (int *)0x0) break;" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }" { (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" ( (pointer_expression "*(code *)PTR___assert_fail_000b5a40" * (cast_expression "(code *)PTR___assert_fail_000b5a40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x4928" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c" identifier + number_literal) , number_literal , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x3858" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }" if (parenthesized_expression "(*(code **)(iVar2 + 0x10) != (code *)0x0)" ( (binary_expression "*(code **)(iVar2 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(iVar2 + 0x10)" * (cast_expression "(code **)(iVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }" { (expression_statement "(**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);" (call_expression "(**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0)" (parenthesized_expression "(**(code **)(iVar2 + 0x10))" ( (pointer_expression "**(code **)(iVar2 + 0x10)" * (pointer_expression "*(code **)(iVar2 + 0x10)" * (cast_expression "(code **)(iVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) )) (argument_list "(iVar2,param_2,param_2[2],0)" ( identifier , identifier , (subscript_expression "param_2[2]" identifier [ number_literal ]) , number_literal ))) ;) })) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) })) }) (else_clause "else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    \n                    \n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }" else (if_statement "if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    \n                    \n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }" if (parenthesized_expression "(*(code **)(param_1 + 0x10) != (code *)0x0)" ( (binary_expression "*(code **)(param_1 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x10)" * (cast_expression "(code **)(param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n                    \n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }" { (expression_statement "(**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);" (call_expression "(**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0)" (parenthesized_expression "(**(code **)(param_1 + 0x10))" ( (pointer_expression "**(code **)(param_1 + 0x10)" * (pointer_expression "*(code **)(param_1 + 0x10)" * (cast_expression "(code **)(param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) (argument_list "(param_1,param_2,param_2[2],0)" ( identifier , identifier , (subscript_expression "param_2[2]" identifier [ number_literal ]) , number_literal ))) ;) (return_statement "return;" return ;) })))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (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 ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (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 ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , LIT ))) ;) (return_statement return ;) })))) (return_statement return ;) })))
(function_definition "void dlg_refresh(int param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }\n  else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    \n                    \n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "dlg_refresh(int param_1,undefined4 *param_2)" (identifier "dlg_refresh") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 == 0) {\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }\n  else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    \n                    \n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (param_1 == 0) {\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }\n  else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    \n                    \n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = 0;\n    while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      piVar1 = (int *)index234(*param_2,iVar3);\n      if (piVar1 == (int *)0x0) break;\n      iVar2 = *piVar1;\n      if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }\n      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }\n      iVar3 = iVar3 + 1;\n    }" ({ "{") (expression_statement "piVar1 = (int *)index234(*param_2,iVar3);" (assignment_expression "piVar1 = (int *)index234(*param_2,iVar3)" (identifier "piVar1") (= "=") (cast_expression "(int *)index234(*param_2,iVar3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "index234(*param_2,iVar3)" (identifier "index234") (argument_list "(*param_2,iVar3)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "iVar3") () ")"))))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) break;" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (if_statement "if (iVar2 == 0) {\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);\n        return;\n      }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);" (call_expression "(*(code *)PTR___assert_fail_000b5a40)\n                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b5a40)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000b5a40" (* "*") (cast_expression "(code *)PTR___assert_fail_000b5a40" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000b5a40"))) () ")")) (argument_list "(PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,\n                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858)" (( "(") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x4928" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x4928")) (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x4b7c")) (, ",") (number_literal "0x481") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x3858" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x3858")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*(code **)(iVar2 + 0x10) != (code *)0x0) {\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }" (if "if") (parenthesized_expression "(*(code **)(iVar2 + 0x10) != (code *)0x0)" (( "(") (binary_expression "*(code **)(iVar2 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(iVar2 + 0x10)" (* "*") (cast_expression "(code **)(iVar2 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);\n      }" ({ "{") (expression_statement "(**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);" (call_expression "(**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0)" (parenthesized_expression "(**(code **)(iVar2 + 0x10))" (( "(") (pointer_expression "**(code **)(iVar2 + 0x10)" (* "*") (pointer_expression "*(code **)(iVar2 + 0x10)" (* "*") (cast_expression "(code **)(iVar2 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(iVar2,param_2,param_2[2],0)" (( "(") (identifier "iVar2") (, ",") (identifier "param_2") (, ",") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    \n                    \n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }" (else "else") (if_statement "if (*(code **)(param_1 + 0x10) != (code *)0x0) {\n                    \n                    \n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }" (if "if") (parenthesized_expression "(*(code **)(param_1 + 0x10) != (code *)0x0)" (( "(") (binary_expression "*(code **)(param_1 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x10)" (* "*") (cast_expression "(code **)(param_1 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n                    \n    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);\n    return;\n  }" ({ "{") (expression_statement "(**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);" (call_expression "(**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0)" (parenthesized_expression "(**(code **)(param_1 + 0x10))" (( "(") (pointer_expression "**(code **)(param_1 + 0x10)" (* "*") (pointer_expression "*(code **)(param_1 + 0x10)" (* "*") (cast_expression "(code **)(param_1 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(param_1,param_2,param_2[2],0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *var_1,void *dlg)

{
  int *var_3;
  int var_4;
  type_2 *dp;
  int var_6;
  
  if (var_1 == (type_1 *)0x0) {
    var_6 = 0;
    while( true ) {
                    /* WARNING: Load size is inaccurate */
      var_3 = (int *)var_2(*dlg,var_6);
      if (var_3 == (int *)0x0) break;
      var_4 = *var_3;
      if (var_4 == 0) {
        (*(type_3 *)PTR___assert_fail_000b5a40)
                  (var_5 + -0x4928,
                   var_5 + -0x4b7c,0x481,
                   var_5 + -0x3858);
        return;
      }
      if (*(type_3 **)(var_4 + 0x10) != (type_3 *)0x0) {
        (**(type_3 **)(var_4 + 0x10))(var_4,dlg,*(type_4 *)((int)dlg + 8),0);
      }
      var_6 = var_6 + 1;
    }
  }
  else if ((var_1->generic).handler != (type_5)0x0) {
                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(var_1->generic).handler)(var_1,dlg,*(void **)((int)dlg + 8),0);
    return;
  }
  return;
}


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

void MASKED(int param_1,undefined4 *param_2)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  
  if (param_1 == 0) {
    iVar3 = 0;
    while( true ) {
      piVar1 = (int *)index234(*param_2,iVar3);
      if (piVar1 == (int *)0x0) break;
      iVar2 = *piVar1;
      if (iVar2 == 0) {
        (*(code *)PTR___assert_fail_000b5a40)
                  (PTR_s_XXXXXXXXXX___________000b5214 + -0x4928,
                   PTR_s_XXXXXXXXXX___________000b5214 + -0x4b7c,0x481,
                   PTR_s_XXXXXXXXXX___________000b5214 + -0x3858);
        return;
      }
      if (*(code **)(iVar2 + 0x10) != (code *)0x0) {
        (**(code **)(iVar2 + 0x10))(iVar2,param_2,param_2[2],0);
      }
      iVar3 = iVar3 + 1;
    }
  }
  else if (*(code **)(param_1 + 0x10) != (code *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x0005bd44. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(param_1 + 0x10))(param_1,param_2,param_2[2],0);
    return;
  }
  return;
}

