
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

gint __regparm3 columns_compute_width(Columns *cols,widget_dim_fn_t get_width)

{
  code *pcVar1;
  int iVar2;
  gint gVar3;
  undefined4 uVar4;
  int iVar5;
  gint *pgVar6;
  ColumnsChild *pCVar7;
  GList *pGVar8;
  gint *pgVar9;
  int local_2c;
  int local_28;
  
  pGVar8 = cols->children;
  if ((pGVar8 == (GList *)0x0) ||
     (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 == (ColumnsChild *)0x0)) {
    local_2c = 0;
  }
  else {
    pgVar9 = columns_compute_width::onecol;
    local_2c = 0;
    local_28 = 1;
    do {
      if (pCVar7->widget == (GtkWidget *)0x0) {
        local_28 = pCVar7->ncols;
        pgVar9 = pCVar7->percentages;
LAB_00040eb0:
        pGVar8 = pGVar8->next;
        iVar2 = local_2c;
      }
      else {
        iVar2 = gtk_widget_get_visible(pCVar7->widget);
        if (iVar2 == 0) goto LAB_00040eb0;
        gVar3 = (*get_width)(pCVar7);
        iVar2 = pCVar7->colspan;
        if (iVar2 == 0) {
          iVar2 = local_28 - pCVar7->colstart;
        }
        if (iVar2 < 1) {
                    /* WARNING: Does not return */
          pcVar1 = (code *)invalidInstructionException();
          (*pcVar1)();
        }
        pgVar6 = pgVar9 + pCVar7->colstart;
        iVar5 = 0;
        do {
          iVar5 = iVar5 + *pgVar6;
          pgVar6 = pgVar6 + 1;
        } while (pgVar9 + iVar2 + pCVar7->colstart != pgVar6);
        pGVar8 = pGVar8->next;
        iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing;
        if (iVar2 <= local_2c) {
          iVar2 = local_2c;
        }
      }
      local_2c = iVar2;
    } while ((pGVar8 != (GList *)0x0) &&
            (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 != (ColumnsChild *)0x0));
  }
  uVar4 = gtk_container_get_type();
  uVar4 = g_type_check_instance_cast(cols,uVar4);
  iVar2 = gtk_container_get_border_width(uVar4);
  return local_2c + iVar2 * 2;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 FUN_00040e60(int param_1,code *param_2)

{
  code *pcVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  int *piVar6;
  int *piVar7;
  int *piVar8;
  undefined *puVar9;
  int local_2c;
  int local_28;
  
  piVar8 = *(int **)(param_1 + 0x14);
  if ((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)) {
    local_2c = 0;
  }
  else {
    puVar9 = &DAT_00077768;
    local_2c = 0;
    local_28 = 1;
    do {
      if (*piVar7 == 0) {
        local_28 = piVar7[5];
        puVar9 = (undefined *)piVar7[6];
LAB_00040eb0:
        piVar8 = (int *)piVar8[1];
        iVar2 = local_2c;
      }
      else {
        iVar2 = gtk_widget_get_visible(*piVar7);
        if (iVar2 == 0) goto LAB_00040eb0;
        iVar3 = (*param_2)(piVar7);
        iVar2 = piVar7[2];
        if (iVar2 == 0) {
          iVar2 = local_28 - piVar7[1];
        }
        if (iVar2 < 1) {
                    /* WARNING: Does not return */
          pcVar1 = (code *)invalidInstructionException();
          (*pcVar1)();
        }
        piVar6 = (int *)(puVar9 + piVar7[1] * 4);
        iVar5 = 0;
        do {
          iVar5 = iVar5 + *piVar6;
          piVar6 = piVar6 + 1;
        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);
        piVar8 = (int *)piVar8[1];
        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -
                *(int *)(param_1 + 0x1c);
        if (iVar2 <= local_2c) {
          iVar2 = local_2c;
        }
      }
      local_2c = iVar2;
    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));
  }
  uVar4 = gtk_container_get_type();
  uVar4 = g_type_check_instance_cast(param_1,uVar4);
  iVar2 = gtk_container_get_border_width(uVar4);
  return local_2c + iVar2 * 2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001a360
ADD EBX,0x6097b
SUB ESP,0x1c
MOV ESI,dword ptr [EAX + 0x14]
MOV dword ptr [ESP + 0x8],EAX
MOV dword ptr [ESP + 0xc],EDX
TEST ESI,ESI
JZ 0x00040f7f
MOV EBP,dword ptr [ESI]
TEST EBP,EBP
JZ 0x00040f7f
LEA EDI,[EBX + 0xfffd5f84]
MOV dword ptr [ESP],0x0
MOV dword ptr [ESP + 0x4],0x1
JMP 0x00040ec5
MOV ESI,dword ptr [ESI + 0x4]
TEST ESI,ESI
JZ 0x00040f48
MOV EBP,dword ptr [ESI]
TEST EBP,EBP
JZ 0x00040f48
MOV EAX,dword ptr [EBP]
TEST EAX,EAX
JZ 0x00040f70
SUB ESP,0xc
PUSH EAX
CALL 0x00018df0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00040eb0
SUB ESP,0xc
PUSH EBP
MOV EAX,dword ptr [ESP + 0x1c]
CALL EAX
MOV ECX,dword ptr [EBP + 0x8]
ADD ESP,0x10
TEST ECX,ECX
JNZ 0x00040efb
MOV ECX,dword ptr [ESP + 0x4]
SUB ECX,dword ptr [EBP + 0x4]
TEST ECX,ECX
JLE 0x00019fd0
MOV EBP,dword ptr [EBP + 0x4]
ADD ECX,EBP
LEA EDX,[EDI + EBP*0x4]
LEA EBP,[EDI + ECX*0x4]
XOR ECX,ECX
ADD ECX,dword ptr [EDX]
ADD EDX,0x4
CMP EBP,EDX
JNZ 0x00040f10
MOV EDX,dword ptr [ESP + 0x8]
MOV ESI,dword ptr [ESI + 0x4]
MOV EBP,dword ptr [EDX + 0x1c]
ADD EAX,EBP
IMUL EAX,EAX,0x64
LEA EAX,[ECX + EAX*0x1 + -0x1]
CDQ
IDIV ECX
MOV ECX,dword ptr [ESP]
SUB EAX,EBP
CMP ECX,EAX
CMOVGE EAX,ECX
MOV dword ptr [ESP],EAX
TEST ESI,ESI
JNZ 0x00040ebb
LEA ESI,[ESI]
MOV ESI,dword ptr [ESP]
CALL 0x00018a70
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0x14]
CALL 0x00018580
MOV dword ptr [ESP],EAX
CALL 0x00018f20
ADD ESP,0x2c
POP EBX
LEA EAX,[ESI + EAX*0x2]
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP + 0x14]
MOV EDI,dword ptr [EBP + 0x18]
MOV dword ptr [ESP + 0x4],EAX
JMP 0x00040eb0
XOR ESI,ESI
JMP 0x00040f4b
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00040e60(int param_1,code *param_2)\n\n{\n  code *pcVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  undefined *puVar9;\n  int local_2c;\n  int local_28;\n  \n  piVar8 = *(int **)(param_1 + 0x14);\n  if ((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }\n  uVar4 = gtk_container_get_type();\n  uVar4 = g_type_check_instance_cast(param_1,uVar4);\n  iVar2 = gtk_container_get_border_width(uVar4);\n  return local_2c + iVar2 * 2;\n}\n\n" comment (function_definition "int __regparm3 FUN_00040e60(int param_1,code *param_2)\n\n{\n  code *pcVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  undefined *puVar9;\n  int local_2c;\n  int local_28;\n  \n  piVar8 = *(int **)(param_1 + 0x14);\n  if ((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }\n  uVar4 = gtk_container_get_type();\n  uVar4 = g_type_check_instance_cast(param_1,uVar4);\n  iVar2 = gtk_container_get_border_width(uVar4);\n  return local_2c + iVar2 * 2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00040e60(int param_1,code *param_2)" identifier (parameter_list "(int param_1,code *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  undefined *puVar9;\n  int local_2c;\n  int local_28;\n  \n  piVar8 = *(int **)(param_1 + 0x14);\n  if ((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }\n  uVar4 = gtk_container_get_type();\n  uVar4 = g_type_check_instance_cast(param_1,uVar4);\n  iVar2 = gtk_container_get_border_width(uVar4);\n  return local_2c + iVar2 * 2;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "piVar8 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar8 = *(int **)(param_1 + 0x14)" identifier = (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }" if (parenthesized_expression "((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0))" ( (binary_expression "(piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)" (parenthesized_expression "(piVar8 == (int *)0x0)" ( (binary_expression "piVar8 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)" ( (comma_expression "piVar7 = (int *)*piVar8, piVar7 == (int *)0x0" (assignment_expression "piVar7 = (int *)*piVar8" identifier = (cast_expression "(int *)*piVar8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar8" * identifier))) , (binary_expression "piVar7 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    local_2c = 0;\n  }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) }) (else_clause "else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }" else (compound_statement "{\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }" { (expression_statement "puVar9 = &DAT_00077768;" (assignment_expression "puVar9 = &DAT_00077768" identifier = (pointer_expression "&DAT_00077768" & identifier)) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) (do_statement "do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));" do (compound_statement "{\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    }" { (if_statement "if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }" if (parenthesized_expression "(*piVar7 == 0)" ( (binary_expression "*piVar7 == 0" (pointer_expression "*piVar7" * identifier) == number_literal) )) (compound_statement "{\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }" { (expression_statement "local_28 = piVar7[5];" (assignment_expression "local_28 = piVar7[5]" identifier = (subscript_expression "piVar7[5]" identifier [ number_literal ])) ;) (expression_statement "puVar9 = (undefined *)piVar7[6];" (assignment_expression "puVar9 = (undefined *)piVar7[6]" identifier = (cast_expression "(undefined *)piVar7[6]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[6]" identifier [ number_literal ]))) ;) (labeled_statement "LAB_00040eb0:\n        piVar8 = (int *)piVar8[1];" statement_identifier : (expression_statement "piVar8 = (int *)piVar8[1];" (assignment_expression "piVar8 = (int *)piVar8[1]" identifier = (cast_expression "(int *)piVar8[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar8[1]" identifier [ number_literal ]))) ;)) (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" identifier = identifier) ;) }) (else_clause "else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }" else (compound_statement "{\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }" { (expression_statement "iVar2 = gtk_widget_get_visible(*piVar7);" (assignment_expression "iVar2 = gtk_widget_get_visible(*piVar7)" identifier = (call_expression "gtk_widget_get_visible(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (if_statement "if (iVar2 == 0) goto LAB_00040eb0;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00040eb0;" goto statement_identifier ;)) (expression_statement "iVar3 = (*param_2)(piVar7);" (assignment_expression "iVar3 = (*param_2)(piVar7)" identifier = (call_expression "(*param_2)(piVar7)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(piVar7)" ( identifier )))) ;) (expression_statement "iVar2 = piVar7[2];" (assignment_expression "iVar2 = piVar7[2]" identifier = (subscript_expression "piVar7[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar2 = local_28 - piVar7[1];\n        }" { (expression_statement "iVar2 = local_28 - piVar7[1];" (assignment_expression "iVar2 = local_28 - piVar7[1]" identifier = (binary_expression "local_28 - piVar7[1]" identifier - (subscript_expression "piVar7[1]" identifier [ number_literal ]))) ;) })) (if_statement "if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }" { comment (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "piVar6 = (int *)(puVar9 + piVar7[1] * 4);" (assignment_expression "piVar6 = (int *)(puVar9 + piVar7[1] * 4)" identifier = (cast_expression "(int *)(puVar9 + piVar7[1] * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + piVar7[1] * 4)" ( (binary_expression "puVar9 + piVar7[1] * 4" identifier + (binary_expression "piVar7[1] * 4" (subscript_expression "piVar7[1]" identifier [ number_literal ]) * number_literal)) )))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);" do (compound_statement "{\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        }" { (expression_statement "iVar5 = iVar5 + *piVar6;" (assignment_expression "iVar5 = iVar5 + *piVar6" identifier = (binary_expression "iVar5 + *piVar6" identifier + (pointer_expression "*piVar6" * identifier))) ;) (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" identifier = (binary_expression "piVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6)" ( (binary_expression "(int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6" (cast_expression "(int *)(puVar9 + (iVar2 + piVar7[1]) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + (iVar2 + piVar7[1]) * 4)" ( (binary_expression "puVar9 + (iVar2 + piVar7[1]) * 4" identifier + (binary_expression "(iVar2 + piVar7[1]) * 4" (parenthesized_expression "(iVar2 + piVar7[1])" ( (binary_expression "iVar2 + piVar7[1]" identifier + (subscript_expression "piVar7[1]" identifier [ number_literal ])) )) * number_literal)) ))) != identifier) )) ;) (expression_statement "piVar8 = (int *)piVar8[1];" (assignment_expression "piVar8 = (int *)piVar8[1]" identifier = (cast_expression "(int *)piVar8[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar8[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);" (assignment_expression "iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c)" identifier = (binary_expression "(iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c)" (binary_expression "(iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5" (parenthesized_expression "(iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100)" ( (binary_expression "iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100" (binary_expression "iVar5 + -1" identifier + number_literal) + (binary_expression "(iVar3 + *(int *)(param_1 + 0x1c)) * 100" (parenthesized_expression "(iVar3 + *(int *)(param_1 + 0x1c))" ( (binary_expression "iVar3 + *(int *)(param_1 + 0x1c)" identifier + (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) * number_literal)) )) / identifier) - (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))))) ;) (if_statement "if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }" if (parenthesized_expression "(iVar2 <= local_2c)" ( (binary_expression "iVar2 <= local_2c" identifier <= identifier) )) (compound_statement "{\n          iVar2 = local_2c;\n        }" { (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" identifier = identifier) ;) })) }))) (expression_statement "local_2c = iVar2;" (assignment_expression "local_2c = iVar2" identifier = identifier) ;) }) while (parenthesized_expression "((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0))" ( (binary_expression "(piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0)" (parenthesized_expression "(piVar8 != (int *)0x0)" ( (binary_expression "piVar8 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(piVar7 = (int *)*piVar8, piVar7 != (int *)0x0)" ( (comma_expression "piVar7 = (int *)*piVar8, piVar7 != (int *)0x0" (assignment_expression "piVar7 = (int *)*piVar8" identifier = (cast_expression "(int *)*piVar8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar8" * identifier))) , (binary_expression "piVar7 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) ;) }))) (expression_statement "uVar4 = gtk_container_get_type();" (assignment_expression "uVar4 = gtk_container_get_type()" identifier = (call_expression "gtk_container_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(param_1,uVar4);" (assignment_expression "uVar4 = g_type_check_instance_cast(param_1,uVar4)" identifier = (call_expression "g_type_check_instance_cast(param_1,uVar4)" identifier (argument_list "(param_1,uVar4)" ( identifier , identifier )))) ;) (expression_statement "iVar2 = gtk_container_get_border_width(uVar4);" (assignment_expression "iVar2 = gtk_container_get_border_width(uVar4)" identifier = (call_expression "gtk_container_get_border_width(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (return_statement "return local_2c + iVar2 * 2;" return (binary_expression "local_2c + iVar2 * 2" identifier + (binary_expression "iVar2 * 2" identifier * number_literal)) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\ngint __regparm3 columns_compute_width(Columns *cols,widget_dim_fn_t get_width)\n\n{\n  code *pcVar1;\n  int iVar2;\n  gint gVar3;\n  undefined4 uVar4;\n  int iVar5;\n  gint *pgVar6;\n  ColumnsChild *pCVar7;\n  GList *pGVar8;\n  gint *pgVar9;\n  int local_2c;\n  int local_28;\n  \n  pGVar8 = cols->children;\n  if ((pGVar8 == (GList *)0x0) ||\n     (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 == (ColumnsChild *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    pgVar9 = columns_compute_width::onecol;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (pCVar7->widget == (GtkWidget *)0x0) {\n        local_28 = pCVar7->ncols;\n        pgVar9 = pCVar7->percentages;\nLAB_00040eb0:\n        pGVar8 = pGVar8->next;\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(pCVar7->widget);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        gVar3 = (*get_width)(pCVar7);\n        iVar2 = pCVar7->colspan;\n        if (iVar2 == 0) {\n          iVar2 = local_28 - pCVar7->colstart;\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        pgVar6 = pgVar9 + pCVar7->colstart;\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *pgVar6;\n          pgVar6 = pgVar6 + 1;\n        } while (pgVar9 + iVar2 + pCVar7->colstart != pgVar6);\n        pGVar8 = pGVar8->next;\n        iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing;\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((pGVar8 != (GList *)0x0) &&\n            (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 != (ColumnsChild *)0x0));\n  }\n  uVar4 = gtk_container_get_type();\n  uVar4 = g_type_check_instance_cast(cols,uVar4);\n  iVar2 = gtk_container_get_border_width(uVar4);\n  return local_2c + iVar2 * 2;\n}\n\n" comment (function_definition "gint __regparm3 columns_compute_width(Columns *cols,widget_dim_fn_t get_width)\n\n{\n  code *pcVar1;\n  int iVar2;\n  gint gVar3;\n  undefined4 uVar4;\n  int iVar5;\n  gint *pgVar6;\n  ColumnsChild *pCVar7;\n  GList *pGVar8;\n  gint *pgVar9;\n  int local_2c;\n  int local_28;\n  \n  pGVar8 = cols->children;\n  if ((pGVar8 == (GList *)0x0) ||\n     (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 == (ColumnsChild *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    pgVar9 = columns_compute_width::onecol;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (pCVar7->widget == (GtkWidget *)0x0) {\n        local_28 = pCVar7->ncols;\n        pgVar9 = pCVar7->percentages;\nLAB_00040eb0:\n        pGVar8 = pGVar8->next;\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(pCVar7->widget);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        gVar3 = (*get_width)(pCVar7);\n        iVar2 = pCVar7->colspan;\n        if (iVar2 == 0) {\n          iVar2 = local_28 - pCVar7->colstart;\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        pgVar6 = pgVar9 + pCVar7->colstart;\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *pgVar6;\n          pgVar6 = pgVar6 + 1;\n        } while (pgVar9 + iVar2 + pCVar7->colstart != pgVar6);\n        pGVar8 = pGVar8->next;\n        iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing;\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((pGVar8 != (GList *)0x0) &&\n            (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 != (ColumnsChild *)0x0));\n  }\n  uVar4 = gtk_container_get_type();\n  uVar4 = g_type_check_instance_cast(cols,uVar4);\n  iVar2 = gtk_container_get_border_width(uVar4);\n  return local_2c + iVar2 * 2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "columns_compute_width(Columns *cols,widget_dim_fn_t get_width)" identifier (parameter_list "(Columns *cols,widget_dim_fn_t get_width)" ( (parameter_declaration "Columns *cols" type_identifier (pointer_declarator "*cols" * identifier)) , (parameter_declaration "widget_dim_fn_t get_width" type_identifier identifier) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  gint gVar3;\n  undefined4 uVar4;\n  int iVar5;\n  gint *pgVar6;\n  ColumnsChild *pCVar7;\n  GList *pGVar8;\n  gint *pgVar9;\n  int local_2c;\n  int local_28;\n  \n  pGVar8 = cols->children;\n  if ((pGVar8 == (GList *)0x0) ||\n     (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 == (ColumnsChild *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    pgVar9 = columns_compute_width::onecol;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (pCVar7->widget == (GtkWidget *)0x0) {\n        local_28 = pCVar7->ncols;\n        pgVar9 = pCVar7->percentages;\nLAB_00040eb0:\n        pGVar8 = pGVar8->next;\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(pCVar7->widget);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        gVar3 = (*get_width)(pCVar7);\n        iVar2 = pCVar7->colspan;\n        if (iVar2 == 0) {\n          iVar2 = local_28 - pCVar7->colstart;\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        pgVar6 = pgVar9 + pCVar7->colstart;\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *pgVar6;\n          pgVar6 = pgVar6 + 1;\n        } while (pgVar9 + iVar2 + pCVar7->colstart != pgVar6);\n        pGVar8 = pGVar8->next;\n        iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing;\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((pGVar8 != (GList *)0x0) &&\n            (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 != (ColumnsChild *)0x0));\n  }\n  uVar4 = gtk_container_get_type();\n  uVar4 = g_type_check_instance_cast(cols,uVar4);\n  iVar2 = gtk_container_get_border_width(uVar4);\n  return local_2c + iVar2 * 2;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "gint gVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "gint *pgVar6;" type_identifier (pointer_declarator "*pgVar6" * identifier) ;) (declaration "ColumnsChild *pCVar7;" type_identifier (pointer_declarator "*pCVar7" * identifier) ;) (declaration "GList *pGVar8;" type_identifier (pointer_declarator "*pGVar8" * identifier) ;) (declaration "gint *pgVar9;" type_identifier (pointer_declarator "*pgVar9" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "pGVar8 = cols->children;" (assignment_expression "pGVar8 = cols->children" identifier = (field_expression "cols->children" identifier -> field_identifier)) ;) (if_statement "if ((pGVar8 == (GList *)0x0) ||\n     (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 == (ColumnsChild *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    pgVar9 = columns_compute_width::onecol;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (pCVar7->widget == (GtkWidget *)0x0) {\n        local_28 = pCVar7->ncols;\n        pgVar9 = pCVar7->percentages;\nLAB_00040eb0:\n        pGVar8 = pGVar8->next;\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(pCVar7->widget);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        gVar3 = (*get_width)(pCVar7);\n        iVar2 = pCVar7->colspan;\n        if (iVar2 == 0) {\n          iVar2 = local_28 - pCVar7->colstart;\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        pgVar6 = pgVar9 + pCVar7->colstart;\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *pgVar6;\n          pgVar6 = pgVar6 + 1;\n        } while (pgVar9 + iVar2 + pCVar7->colstart != pgVar6);\n        pGVar8 = pGVar8->next;\n        iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing;\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((pGVar8 != (GList *)0x0) &&\n            (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 != (ColumnsChild *)0x0));\n  }" if (parenthesized_expression "((pGVar8 == (GList *)0x0) ||\n     (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 == (ColumnsChild *)0x0))" ( (binary_expression "(pGVar8 == (GList *)0x0) ||\n     (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 == (ColumnsChild *)0x0)" (parenthesized_expression "(pGVar8 == (GList *)0x0)" ( (binary_expression "pGVar8 == (GList *)0x0" identifier == (cast_expression "(GList *)0x0" ( (type_descriptor "GList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 == (ColumnsChild *)0x0)" ( (comma_expression "pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 == (ColumnsChild *)0x0" (assignment_expression "pCVar7 = (ColumnsChild *)pGVar8->data" identifier = (cast_expression "(ColumnsChild *)pGVar8->data" ( (type_descriptor "ColumnsChild *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pGVar8->data" identifier -> field_identifier))) , (binary_expression "pCVar7 == (ColumnsChild *)0x0" identifier == (cast_expression "(ColumnsChild *)0x0" ( (type_descriptor "ColumnsChild *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    local_2c = 0;\n  }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) }) (else_clause "else {\n    pgVar9 = columns_compute_width::onecol;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (pCVar7->widget == (GtkWidget *)0x0) {\n        local_28 = pCVar7->ncols;\n        pgVar9 = pCVar7->percentages;\nLAB_00040eb0:\n        pGVar8 = pGVar8->next;\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(pCVar7->widget);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        gVar3 = (*get_width)(pCVar7);\n        iVar2 = pCVar7->colspan;\n        if (iVar2 == 0) {\n          iVar2 = local_28 - pCVar7->colstart;\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        pgVar6 = pgVar9 + pCVar7->colstart;\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *pgVar6;\n          pgVar6 = pgVar6 + 1;\n        } while (pgVar9 + iVar2 + pCVar7->colstart != pgVar6);\n        pGVar8 = pGVar8->next;\n        iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing;\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((pGVar8 != (GList *)0x0) &&\n            (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 != (ColumnsChild *)0x0));\n  }" else (compound_statement "{\n    pgVar9 = columns_compute_width::onecol;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (pCVar7->widget == (GtkWidget *)0x0) {\n        local_28 = pCVar7->ncols;\n        pgVar9 = pCVar7->percentages;\nLAB_00040eb0:\n        pGVar8 = pGVar8->next;\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(pCVar7->widget);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        gVar3 = (*get_width)(pCVar7);\n        iVar2 = pCVar7->colspan;\n        if (iVar2 == 0) {\n          iVar2 = local_28 - pCVar7->colstart;\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        pgVar6 = pgVar9 + pCVar7->colstart;\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *pgVar6;\n          pgVar6 = pgVar6 + 1;\n        } while (pgVar9 + iVar2 + pCVar7->colstart != pgVar6);\n        pGVar8 = pGVar8->next;\n        iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing;\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((pGVar8 != (GList *)0x0) &&\n            (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 != (ColumnsChild *)0x0));\n  }" { (expression_statement "pgVar9 = columns_compute_width::onecol;" (assignment_expression "pgVar9 = columns_compute_width" identifier = identifier) (ERROR "::onecol" : : identifier) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) (do_statement "do {\n      if (pCVar7->widget == (GtkWidget *)0x0) {\n        local_28 = pCVar7->ncols;\n        pgVar9 = pCVar7->percentages;\nLAB_00040eb0:\n        pGVar8 = pGVar8->next;\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(pCVar7->widget);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        gVar3 = (*get_width)(pCVar7);\n        iVar2 = pCVar7->colspan;\n        if (iVar2 == 0) {\n          iVar2 = local_28 - pCVar7->colstart;\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        pgVar6 = pgVar9 + pCVar7->colstart;\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *pgVar6;\n          pgVar6 = pgVar6 + 1;\n        } while (pgVar9 + iVar2 + pCVar7->colstart != pgVar6);\n        pGVar8 = pGVar8->next;\n        iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing;\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((pGVar8 != (GList *)0x0) &&\n            (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 != (ColumnsChild *)0x0));" do (compound_statement "{\n      if (pCVar7->widget == (GtkWidget *)0x0) {\n        local_28 = pCVar7->ncols;\n        pgVar9 = pCVar7->percentages;\nLAB_00040eb0:\n        pGVar8 = pGVar8->next;\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(pCVar7->widget);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        gVar3 = (*get_width)(pCVar7);\n        iVar2 = pCVar7->colspan;\n        if (iVar2 == 0) {\n          iVar2 = local_28 - pCVar7->colstart;\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        pgVar6 = pgVar9 + pCVar7->colstart;\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *pgVar6;\n          pgVar6 = pgVar6 + 1;\n        } while (pgVar9 + iVar2 + pCVar7->colstart != pgVar6);\n        pGVar8 = pGVar8->next;\n        iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing;\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    }" { (if_statement "if (pCVar7->widget == (GtkWidget *)0x0) {\n        local_28 = pCVar7->ncols;\n        pgVar9 = pCVar7->percentages;\nLAB_00040eb0:\n        pGVar8 = pGVar8->next;\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(pCVar7->widget);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        gVar3 = (*get_width)(pCVar7);\n        iVar2 = pCVar7->colspan;\n        if (iVar2 == 0) {\n          iVar2 = local_28 - pCVar7->colstart;\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        pgVar6 = pgVar9 + pCVar7->colstart;\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *pgVar6;\n          pgVar6 = pgVar6 + 1;\n        } while (pgVar9 + iVar2 + pCVar7->colstart != pgVar6);\n        pGVar8 = pGVar8->next;\n        iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing;\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }" if (parenthesized_expression "(pCVar7->widget == (GtkWidget *)0x0)" ( (binary_expression "pCVar7->widget == (GtkWidget *)0x0" (field_expression "pCVar7->widget" identifier -> field_identifier) == (cast_expression "(GtkWidget *)0x0" ( (type_descriptor "GtkWidget *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        local_28 = pCVar7->ncols;\n        pgVar9 = pCVar7->percentages;\nLAB_00040eb0:\n        pGVar8 = pGVar8->next;\n        iVar2 = local_2c;\n      }" { (expression_statement "local_28 = pCVar7->ncols;" (assignment_expression "local_28 = pCVar7->ncols" identifier = (field_expression "pCVar7->ncols" identifier -> field_identifier)) ;) (expression_statement "pgVar9 = pCVar7->percentages;" (assignment_expression "pgVar9 = pCVar7->percentages" identifier = (field_expression "pCVar7->percentages" identifier -> field_identifier)) ;) (labeled_statement "LAB_00040eb0:\n        pGVar8 = pGVar8->next;" statement_identifier : (expression_statement "pGVar8 = pGVar8->next;" (assignment_expression "pGVar8 = pGVar8->next" identifier = (field_expression "pGVar8->next" identifier -> field_identifier)) ;)) (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" identifier = identifier) ;) }) (else_clause "else {\n        iVar2 = gtk_widget_get_visible(pCVar7->widget);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        gVar3 = (*get_width)(pCVar7);\n        iVar2 = pCVar7->colspan;\n        if (iVar2 == 0) {\n          iVar2 = local_28 - pCVar7->colstart;\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        pgVar6 = pgVar9 + pCVar7->colstart;\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *pgVar6;\n          pgVar6 = pgVar6 + 1;\n        } while (pgVar9 + iVar2 + pCVar7->colstart != pgVar6);\n        pGVar8 = pGVar8->next;\n        iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing;\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }" else (compound_statement "{\n        iVar2 = gtk_widget_get_visible(pCVar7->widget);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        gVar3 = (*get_width)(pCVar7);\n        iVar2 = pCVar7->colspan;\n        if (iVar2 == 0) {\n          iVar2 = local_28 - pCVar7->colstart;\n        }\n        if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        pgVar6 = pgVar9 + pCVar7->colstart;\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *pgVar6;\n          pgVar6 = pgVar6 + 1;\n        } while (pgVar9 + iVar2 + pCVar7->colstart != pgVar6);\n        pGVar8 = pGVar8->next;\n        iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing;\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }" { (expression_statement "iVar2 = gtk_widget_get_visible(pCVar7->widget);" (assignment_expression "iVar2 = gtk_widget_get_visible(pCVar7->widget)" identifier = (call_expression "gtk_widget_get_visible(pCVar7->widget)" identifier (argument_list "(pCVar7->widget)" ( (field_expression "pCVar7->widget" identifier -> field_identifier) )))) ;) (if_statement "if (iVar2 == 0) goto LAB_00040eb0;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00040eb0;" goto statement_identifier ;)) (expression_statement "gVar3 = (*get_width)(pCVar7);" (assignment_expression "gVar3 = (*get_width)(pCVar7)" identifier = (call_expression "(*get_width)(pCVar7)" (parenthesized_expression "(*get_width)" ( (pointer_expression "*get_width" * identifier) )) (argument_list "(pCVar7)" ( identifier )))) ;) (expression_statement "iVar2 = pCVar7->colspan;" (assignment_expression "iVar2 = pCVar7->colspan" identifier = (field_expression "pCVar7->colspan" identifier -> field_identifier)) ;) (if_statement "if (iVar2 == 0) {\n          iVar2 = local_28 - pCVar7->colstart;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar2 = local_28 - pCVar7->colstart;\n        }" { (expression_statement "iVar2 = local_28 - pCVar7->colstart;" (assignment_expression "iVar2 = local_28 - pCVar7->colstart" identifier = (binary_expression "local_28 - pCVar7->colstart" identifier - (field_expression "pCVar7->colstart" identifier -> field_identifier))) ;) })) (if_statement "if (iVar2 < 1) {\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Does not return */\n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }" { comment (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "pgVar6 = pgVar9 + pCVar7->colstart;" (assignment_expression "pgVar6 = pgVar9 + pCVar7->colstart" identifier = (binary_expression "pgVar9 + pCVar7->colstart" identifier + (field_expression "pCVar7->colstart" identifier -> field_identifier))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar5 = iVar5 + *pgVar6;\n          pgVar6 = pgVar6 + 1;\n        } while (pgVar9 + iVar2 + pCVar7->colstart != pgVar6);" do (compound_statement "{\n          iVar5 = iVar5 + *pgVar6;\n          pgVar6 = pgVar6 + 1;\n        }" { (expression_statement "iVar5 = iVar5 + *pgVar6;" (assignment_expression "iVar5 = iVar5 + *pgVar6" identifier = (binary_expression "iVar5 + *pgVar6" identifier + (pointer_expression "*pgVar6" * identifier))) ;) (expression_statement "pgVar6 = pgVar6 + 1;" (assignment_expression "pgVar6 = pgVar6 + 1" identifier = (binary_expression "pgVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pgVar9 + iVar2 + pCVar7->colstart != pgVar6)" ( (binary_expression "pgVar9 + iVar2 + pCVar7->colstart != pgVar6" (binary_expression "pgVar9 + iVar2 + pCVar7->colstart" (binary_expression "pgVar9 + iVar2" identifier + identifier) + (field_expression "pCVar7->colstart" identifier -> field_identifier)) != identifier) )) ;) (expression_statement "pGVar8 = pGVar8->next;" (assignment_expression "pGVar8 = pGVar8->next" identifier = (field_expression "pGVar8->next" identifier -> field_identifier)) ;) (expression_statement "iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing;" (assignment_expression "iVar2 = (iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing" identifier = (binary_expression "(iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5 - cols->spacing" (binary_expression "(iVar5 + -1 + (gVar3 + cols->spacing) * 100) / iVar5" (parenthesized_expression "(iVar5 + -1 + (gVar3 + cols->spacing) * 100)" ( (binary_expression "iVar5 + -1 + (gVar3 + cols->spacing) * 100" (binary_expression "iVar5 + -1" identifier + number_literal) + (binary_expression "(gVar3 + cols->spacing) * 100" (parenthesized_expression "(gVar3 + cols->spacing)" ( (binary_expression "gVar3 + cols->spacing" identifier + (field_expression "cols->spacing" identifier -> field_identifier)) )) * number_literal)) )) / identifier) - (field_expression "cols->spacing" identifier -> field_identifier))) ;) (if_statement "if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }" if (parenthesized_expression "(iVar2 <= local_2c)" ( (binary_expression "iVar2 <= local_2c" identifier <= identifier) )) (compound_statement "{\n          iVar2 = local_2c;\n        }" { (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" identifier = identifier) ;) })) }))) (expression_statement "local_2c = iVar2;" (assignment_expression "local_2c = iVar2" identifier = identifier) ;) }) while (parenthesized_expression "((pGVar8 != (GList *)0x0) &&\n            (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 != (ColumnsChild *)0x0))" ( (binary_expression "(pGVar8 != (GList *)0x0) &&\n            (pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 != (ColumnsChild *)0x0)" (parenthesized_expression "(pGVar8 != (GList *)0x0)" ( (binary_expression "pGVar8 != (GList *)0x0" identifier != (cast_expression "(GList *)0x0" ( (type_descriptor "GList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 != (ColumnsChild *)0x0)" ( (comma_expression "pCVar7 = (ColumnsChild *)pGVar8->data, pCVar7 != (ColumnsChild *)0x0" (assignment_expression "pCVar7 = (ColumnsChild *)pGVar8->data" identifier = (cast_expression "(ColumnsChild *)pGVar8->data" ( (type_descriptor "ColumnsChild *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pGVar8->data" identifier -> field_identifier))) , (binary_expression "pCVar7 != (ColumnsChild *)0x0" identifier != (cast_expression "(ColumnsChild *)0x0" ( (type_descriptor "ColumnsChild *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) ;) }))) (expression_statement "uVar4 = gtk_container_get_type();" (assignment_expression "uVar4 = gtk_container_get_type()" identifier = (call_expression "gtk_container_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(cols,uVar4);" (assignment_expression "uVar4 = g_type_check_instance_cast(cols,uVar4)" identifier = (call_expression "g_type_check_instance_cast(cols,uVar4)" identifier (argument_list "(cols,uVar4)" ( identifier , identifier )))) ;) (expression_statement "iVar2 = gtk_container_get_border_width(uVar4);" (assignment_expression "iVar2 = gtk_container_get_border_width(uVar4)" identifier = (call_expression "gtk_container_get_border_width(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (return_statement "return local_2c + iVar2 * 2;" return (binary_expression "local_2c + iVar2 * 2" identifier + (binary_expression "iVar2 * 2" identifier * number_literal)) ;) })))
(translation_unit "int __regparm3 FUN_00040e60(int param_1,code *param_2)\n\n{\n  code *pcVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  undefined *puVar9;\n  int local_2c;\n  int local_28;\n  \n  piVar8 = *(int **)(param_1 + 0x14);\n  if ((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }\n  uVar4 = gtk_container_get_type();\n  uVar4 = g_type_check_instance_cast(param_1,uVar4);\n  iVar2 = gtk_container_get_border_width(uVar4);\n  return local_2c + iVar2 * 2;\n}\n\n" (function_definition "int __regparm3 FUN_00040e60(int param_1,code *param_2)\n\n{\n  code *pcVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  undefined *puVar9;\n  int local_2c;\n  int local_28;\n  \n  piVar8 = *(int **)(param_1 + 0x14);\n  if ((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }\n  uVar4 = gtk_container_get_type();\n  uVar4 = g_type_check_instance_cast(param_1,uVar4);\n  iVar2 = gtk_container_get_border_width(uVar4);\n  return local_2c + iVar2 * 2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00040e60(int param_1,code *param_2)" identifier (parameter_list "(int param_1,code *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  undefined *puVar9;\n  int local_2c;\n  int local_28;\n  \n  piVar8 = *(int **)(param_1 + 0x14);\n  if ((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }\n  uVar4 = gtk_container_get_type();\n  uVar4 = g_type_check_instance_cast(param_1,uVar4);\n  iVar2 = gtk_container_get_border_width(uVar4);\n  return local_2c + iVar2 * 2;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "piVar8 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar8 = *(int **)(param_1 + 0x14)" identifier = (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }" if (parenthesized_expression "((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0))" ( (binary_expression "(piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)" (parenthesized_expression "(piVar8 == (int *)0x0)" ( (binary_expression "piVar8 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)" ( (comma_expression "piVar7 = (int *)*piVar8, piVar7 == (int *)0x0" (assignment_expression "piVar7 = (int *)*piVar8" identifier = (cast_expression "(int *)*piVar8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar8" * identifier))) , (binary_expression "piVar7 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    local_2c = 0;\n  }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) }) (else_clause "else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }" else (compound_statement "{\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }" { (expression_statement "puVar9 = &DAT_00077768;" (assignment_expression "puVar9 = &DAT_00077768" identifier = (pointer_expression "&DAT_00077768" & identifier)) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) (do_statement "do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));" do (compound_statement "{\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    }" { (if_statement "if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }" if (parenthesized_expression "(*piVar7 == 0)" ( (binary_expression "*piVar7 == 0" (pointer_expression "*piVar7" * identifier) == number_literal) )) (compound_statement "{\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }" { (expression_statement "local_28 = piVar7[5];" (assignment_expression "local_28 = piVar7[5]" identifier = (subscript_expression "piVar7[5]" identifier [ number_literal ])) ;) (expression_statement "puVar9 = (undefined *)piVar7[6];" (assignment_expression "puVar9 = (undefined *)piVar7[6]" identifier = (cast_expression "(undefined *)piVar7[6]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[6]" identifier [ number_literal ]))) ;) (labeled_statement "LAB_00040eb0:\n        piVar8 = (int *)piVar8[1];" statement_identifier : (expression_statement "piVar8 = (int *)piVar8[1];" (assignment_expression "piVar8 = (int *)piVar8[1]" identifier = (cast_expression "(int *)piVar8[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar8[1]" identifier [ number_literal ]))) ;)) (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" identifier = identifier) ;) }) (else_clause "else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }" else (compound_statement "{\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }" { (expression_statement "iVar2 = gtk_widget_get_visible(*piVar7);" (assignment_expression "iVar2 = gtk_widget_get_visible(*piVar7)" identifier = (call_expression "gtk_widget_get_visible(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (if_statement "if (iVar2 == 0) goto LAB_00040eb0;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00040eb0;" goto statement_identifier ;)) (expression_statement "iVar3 = (*param_2)(piVar7);" (assignment_expression "iVar3 = (*param_2)(piVar7)" identifier = (call_expression "(*param_2)(piVar7)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(piVar7)" ( identifier )))) ;) (expression_statement "iVar2 = piVar7[2];" (assignment_expression "iVar2 = piVar7[2]" identifier = (subscript_expression "piVar7[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar2 = local_28 - piVar7[1];\n        }" { (expression_statement "iVar2 = local_28 - piVar7[1];" (assignment_expression "iVar2 = local_28 - piVar7[1]" identifier = (binary_expression "local_28 - piVar7[1]" identifier - (subscript_expression "piVar7[1]" identifier [ number_literal ]))) ;) })) (if_statement "if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }" { (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "piVar6 = (int *)(puVar9 + piVar7[1] * 4);" (assignment_expression "piVar6 = (int *)(puVar9 + piVar7[1] * 4)" identifier = (cast_expression "(int *)(puVar9 + piVar7[1] * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + piVar7[1] * 4)" ( (binary_expression "puVar9 + piVar7[1] * 4" identifier + (binary_expression "piVar7[1] * 4" (subscript_expression "piVar7[1]" identifier [ number_literal ]) * number_literal)) )))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);" do (compound_statement "{\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        }" { (expression_statement "iVar5 = iVar5 + *piVar6;" (assignment_expression "iVar5 = iVar5 + *piVar6" identifier = (binary_expression "iVar5 + *piVar6" identifier + (pointer_expression "*piVar6" * identifier))) ;) (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" identifier = (binary_expression "piVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6)" ( (binary_expression "(int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6" (cast_expression "(int *)(puVar9 + (iVar2 + piVar7[1]) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + (iVar2 + piVar7[1]) * 4)" ( (binary_expression "puVar9 + (iVar2 + piVar7[1]) * 4" identifier + (binary_expression "(iVar2 + piVar7[1]) * 4" (parenthesized_expression "(iVar2 + piVar7[1])" ( (binary_expression "iVar2 + piVar7[1]" identifier + (subscript_expression "piVar7[1]" identifier [ number_literal ])) )) * number_literal)) ))) != identifier) )) ;) (expression_statement "piVar8 = (int *)piVar8[1];" (assignment_expression "piVar8 = (int *)piVar8[1]" identifier = (cast_expression "(int *)piVar8[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar8[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);" (assignment_expression "iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c)" identifier = (binary_expression "(iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c)" (binary_expression "(iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5" (parenthesized_expression "(iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100)" ( (binary_expression "iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100" (binary_expression "iVar5 + -1" identifier + number_literal) + (binary_expression "(iVar3 + *(int *)(param_1 + 0x1c)) * 100" (parenthesized_expression "(iVar3 + *(int *)(param_1 + 0x1c))" ( (binary_expression "iVar3 + *(int *)(param_1 + 0x1c)" identifier + (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) * number_literal)) )) / identifier) - (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))))) ;) (if_statement "if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }" if (parenthesized_expression "(iVar2 <= local_2c)" ( (binary_expression "iVar2 <= local_2c" identifier <= identifier) )) (compound_statement "{\n          iVar2 = local_2c;\n        }" { (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" identifier = identifier) ;) })) }))) (expression_statement "local_2c = iVar2;" (assignment_expression "local_2c = iVar2" identifier = identifier) ;) }) while (parenthesized_expression "((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0))" ( (binary_expression "(piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0)" (parenthesized_expression "(piVar8 != (int *)0x0)" ( (binary_expression "piVar8 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(piVar7 = (int *)*piVar8, piVar7 != (int *)0x0)" ( (comma_expression "piVar7 = (int *)*piVar8, piVar7 != (int *)0x0" (assignment_expression "piVar7 = (int *)*piVar8" identifier = (cast_expression "(int *)*piVar8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar8" * identifier))) , (binary_expression "piVar7 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) ;) }))) (expression_statement "uVar4 = gtk_container_get_type();" (assignment_expression "uVar4 = gtk_container_get_type()" identifier = (call_expression "gtk_container_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = g_type_check_instance_cast(param_1,uVar4);" (assignment_expression "uVar4 = g_type_check_instance_cast(param_1,uVar4)" identifier = (call_expression "g_type_check_instance_cast(param_1,uVar4)" identifier (argument_list "(param_1,uVar4)" ( identifier , identifier )))) ;) (expression_statement "iVar2 = gtk_container_get_border_width(uVar4);" (assignment_expression "iVar2 = gtk_container_get_border_width(uVar4)" identifier = (call_expression "gtk_container_get_border_width(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (return_statement "return local_2c + iVar2 * 2;" return (binary_expression "local_2c + iVar2 * 2" identifier + (binary_expression "iVar2 * 2" identifier * number_literal)) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (subscript_expression IDENT [ LIT ]))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + (subscript_expression IDENT [ LIT ])) )) * LIT)) ))) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) * LIT)) )) / IDENT) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (return_statement return (binary_expression IDENT + (binary_expression IDENT * LIT)) ;) })))
(function_definition "int __regparm3 FUN_00040e60(int param_1,code *param_2)\n\n{\n  code *pcVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  undefined *puVar9;\n  int local_2c;\n  int local_28;\n  \n  piVar8 = *(int **)(param_1 + 0x14);\n  if ((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }\n  uVar4 = gtk_container_get_type();\n  uVar4 = g_type_check_instance_cast(param_1,uVar4);\n  iVar2 = gtk_container_get_border_width(uVar4);\n  return local_2c + iVar2 * 2;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00040e60(int param_1,code *param_2)" (identifier "FUN_00040e60") (parameter_list "(int param_1,code *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "code *param_2" (type_identifier "code") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  int *piVar8;\n  undefined *puVar9;\n  int local_2c;\n  int local_28;\n  \n  piVar8 = *(int **)(param_1 + 0x14);\n  if ((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }\n  uVar4 = gtk_container_get_type();\n  uVar4 = g_type_check_instance_cast(param_1,uVar4);\n  iVar2 = gtk_container_get_border_width(uVar4);\n  return local_2c + iVar2 * 2;\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (expression_statement "piVar8 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar8 = *(int **)(param_1 + 0x14)" (identifier "piVar8") (= "=") (pointer_expression "*(int **)(param_1 + 0x14)" (* "*") (cast_expression "(int **)(param_1 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if ((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)) {\n    local_2c = 0;\n  }\n  else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }" (if "if") (parenthesized_expression "((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0))" (( "(") (binary_expression "(piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)" (parenthesized_expression "(piVar8 == (int *)0x0)" (( "(") (binary_expression "piVar8 == (int *)0x0" (identifier "piVar8") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)" (( "(") (comma_expression "piVar7 = (int *)*piVar8, piVar7 == (int *)0x0" (assignment_expression "piVar7 = (int *)*piVar8" (identifier "piVar7") (= "=") (cast_expression "(int *)*piVar8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar8" (* "*") (identifier "piVar8")))) (, ",") (binary_expression "piVar7 == (int *)0x0" (identifier "piVar7") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    local_2c = 0;\n  }" ({ "{") (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }" (else "else") (compound_statement "{\n    puVar9 = &DAT_00077768;\n    local_2c = 0;\n    local_28 = 1;\n    do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));\n  }" ({ "{") (expression_statement "puVar9 = &DAT_00077768;" (assignment_expression "puVar9 = &DAT_00077768" (identifier "puVar9") (= "=") (pointer_expression "&DAT_00077768" (& "&") (identifier "DAT_00077768"))) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" (identifier "local_28") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));" (do "do") (compound_statement "{\n      if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }\n      local_2c = iVar2;\n    }" ({ "{") (if_statement "if (*piVar7 == 0) {\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }\n      else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }" (if "if") (parenthesized_expression "(*piVar7 == 0)" (( "(") (binary_expression "*piVar7 == 0" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        local_28 = piVar7[5];\n        puVar9 = (undefined *)piVar7[6];\nLAB_00040eb0:\n        piVar8 = (int *)piVar8[1];\n        iVar2 = local_2c;\n      }" ({ "{") (expression_statement "local_28 = piVar7[5];" (assignment_expression "local_28 = piVar7[5]" (identifier "local_28") (= "=") (subscript_expression "piVar7[5]" (identifier "piVar7") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "puVar9 = (undefined *)piVar7[6];" (assignment_expression "puVar9 = (undefined *)piVar7[6]" (identifier "puVar9") (= "=") (cast_expression "(undefined *)piVar7[6]" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar7[6]" (identifier "piVar7") ([ "[") (number_literal "6") (] "]")))) (; ";")) (labeled_statement "LAB_00040eb0:\n        piVar8 = (int *)piVar8[1];" (statement_identifier "LAB_00040eb0") (: ":") (expression_statement "piVar8 = (int *)piVar8[1];" (assignment_expression "piVar8 = (int *)piVar8[1]" (identifier "piVar8") (= "=") (cast_expression "(int *)piVar8[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar8[1]" (identifier "piVar8") ([ "[") (number_literal "1") (] "]")))) (; ";"))) (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" (identifier "iVar2") (= "=") (identifier "local_2c")) (; ";")) (} "}")) (else_clause "else {\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }" (else "else") (compound_statement "{\n        iVar2 = gtk_widget_get_visible(*piVar7);\n        if (iVar2 == 0) goto LAB_00040eb0;\n        iVar3 = (*param_2)(piVar7);\n        iVar2 = piVar7[2];\n        if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }\n        if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }\n        piVar6 = (int *)(puVar9 + piVar7[1] * 4);\n        iVar5 = 0;\n        do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);\n        piVar8 = (int *)piVar8[1];\n        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);\n        if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }\n      }" ({ "{") (expression_statement "iVar2 = gtk_widget_get_visible(*piVar7);" (assignment_expression "iVar2 = gtk_widget_get_visible(*piVar7)" (identifier "iVar2") (= "=") (call_expression "gtk_widget_get_visible(*piVar7)" (identifier "gtk_widget_get_visible") (argument_list "(*piVar7)" (( "(") (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) goto LAB_00040eb0;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00040eb0;" (goto "goto") (statement_identifier "LAB_00040eb0") (; ";"))) (expression_statement "iVar3 = (*param_2)(piVar7);" (assignment_expression "iVar3 = (*param_2)(piVar7)" (identifier "iVar3") (= "=") (call_expression "(*param_2)(piVar7)" (parenthesized_expression "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")) (argument_list "(piVar7)" (( "(") (identifier "piVar7") () ")")))) (; ";")) (expression_statement "iVar2 = piVar7[2];" (assignment_expression "iVar2 = piVar7[2]" (identifier "iVar2") (= "=") (subscript_expression "piVar7[2]" (identifier "piVar7") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (iVar2 == 0) {\n          iVar2 = local_28 - piVar7[1];\n        }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar2 = local_28 - piVar7[1];\n        }" ({ "{") (expression_statement "iVar2 = local_28 - piVar7[1];" (assignment_expression "iVar2 = local_28 - piVar7[1]" (identifier "iVar2") (= "=") (binary_expression "local_28 - piVar7[1]" (identifier "local_28") (- "-") (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}"))) (if_statement "if (iVar2 < 1) {\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }" (if "if") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n                    \n          pcVar1 = (code *)invalidInstructionException();\n          (*pcVar1)();\n        }" ({ "{") (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" (identifier "pcVar1") (= "=") (cast_expression "(code *)invalidInstructionException()" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "invalidInstructionException()" (identifier "invalidInstructionException") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar6 = (int *)(puVar9 + piVar7[1] * 4);" (assignment_expression "piVar6 = (int *)(puVar9 + piVar7[1] * 4)" (identifier "piVar6") (= "=") (cast_expression "(int *)(puVar9 + piVar7[1] * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + piVar7[1] * 4)" (( "(") (binary_expression "puVar9 + piVar7[1] * 4" (identifier "puVar9") (+ "+") (binary_expression "piVar7[1] * 4" (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);" (do "do") (compound_statement "{\n          iVar5 = iVar5 + *piVar6;\n          piVar6 = piVar6 + 1;\n        }" ({ "{") (expression_statement "iVar5 = iVar5 + *piVar6;" (assignment_expression "iVar5 = iVar5 + *piVar6" (identifier "iVar5") (= "=") (binary_expression "iVar5 + *piVar6" (identifier "iVar5") (+ "+") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")))) (; ";")) (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 1" (identifier "piVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6)" (( "(") (binary_expression "(int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6" (cast_expression "(int *)(puVar9 + (iVar2 + piVar7[1]) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + (iVar2 + piVar7[1]) * 4)" (( "(") (binary_expression "puVar9 + (iVar2 + piVar7[1]) * 4" (identifier "puVar9") (+ "+") (binary_expression "(iVar2 + piVar7[1]) * 4" (parenthesized_expression "(iVar2 + piVar7[1])" (( "(") (binary_expression "iVar2 + piVar7[1]" (identifier "iVar2") (+ "+") (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]"))) () ")")) (* "*") (number_literal "4"))) () ")"))) (!= "!=") (identifier "piVar6")) () ")")) (; ";")) (expression_statement "piVar8 = (int *)piVar8[1];" (assignment_expression "piVar8 = (int *)piVar8[1]" (identifier "piVar8") (= "=") (cast_expression "(int *)piVar8[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar8[1]" (identifier "piVar8") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c);" (assignment_expression "iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c)" (identifier "iVar2") (= "=") (binary_expression "(iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -\n                *(int *)(param_1 + 0x1c)" (binary_expression "(iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5" (parenthesized_expression "(iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100)" (( "(") (binary_expression "iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100" (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1")) (+ "+") (binary_expression "(iVar3 + *(int *)(param_1 + 0x1c)) * 100" (parenthesized_expression "(iVar3 + *(int *)(param_1 + 0x1c))" (( "(") (binary_expression "iVar3 + *(int *)(param_1 + 0x1c)" (identifier "iVar3") (+ "+") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (* "*") (number_literal "100"))) () ")")) (/ "/") (identifier "iVar5")) (- "-") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))))) (; ";")) (if_statement "if (iVar2 <= local_2c) {\n          iVar2 = local_2c;\n        }" (if "if") (parenthesized_expression "(iVar2 <= local_2c)" (( "(") (binary_expression "iVar2 <= local_2c" (identifier "iVar2") (<= "<=") (identifier "local_2c")) () ")")) (compound_statement "{\n          iVar2 = local_2c;\n        }" ({ "{") (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" (identifier "iVar2") (= "=") (identifier "local_2c")) (; ";")) (} "}"))) (} "}")))) (expression_statement "local_2c = iVar2;" (assignment_expression "local_2c = iVar2" (identifier "local_2c") (= "=") (identifier "iVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0))" (( "(") (binary_expression "(piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0)" (parenthesized_expression "(piVar8 != (int *)0x0)" (( "(") (binary_expression "piVar8 != (int *)0x0" (identifier "piVar8") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(piVar7 = (int *)*piVar8, piVar7 != (int *)0x0)" (( "(") (comma_expression "piVar7 = (int *)*piVar8, piVar7 != (int *)0x0" (assignment_expression "piVar7 = (int *)*piVar8" (identifier "piVar7") (= "=") (cast_expression "(int *)*piVar8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar8" (* "*") (identifier "piVar8")))) (, ",") (binary_expression "piVar7 != (int *)0x0" (identifier "piVar7") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (; ";")) (} "}")))) (expression_statement "uVar4 = gtk_container_get_type();" (assignment_expression "uVar4 = gtk_container_get_type()" (identifier "uVar4") (= "=") (call_expression "gtk_container_get_type()" (identifier "gtk_container_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = g_type_check_instance_cast(param_1,uVar4);" (assignment_expression "uVar4 = g_type_check_instance_cast(param_1,uVar4)" (identifier "uVar4") (= "=") (call_expression "g_type_check_instance_cast(param_1,uVar4)" (identifier "g_type_check_instance_cast") (argument_list "(param_1,uVar4)" (( "(") (identifier "param_1") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "iVar2 = gtk_container_get_border_width(uVar4);" (assignment_expression "iVar2 = gtk_container_get_border_width(uVar4)" (identifier "iVar2") (= "=") (call_expression "gtk_container_get_border_width(uVar4)" (identifier "gtk_container_get_border_width") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (return_statement "return local_2c + iVar2 * 2;" (return "return") (binary_expression "local_2c + iVar2 * 2" (identifier "local_2c") (+ "+") (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 __regparm3 function_1(type_2 *cols,type_3 get_width)

{
  type_4 *pcVar1;
  int var_4;
  type_1 var_10;
  type_5 uVar4;
  int var_8;
  type_1 *var_9;
  type_6 *var_2;
  type_7 *var_1;
  type_1 *var_7;
  int var_11;
  int var_5;
  
  var_1 = cols->children;
  if ((var_1 == (type_7 *)0x0) ||
     (var_2 = (type_6 *)var_1->data, var_2 == (type_6 *)0x0)) {
    var_11 = 0;
  }
  else {
    var_7 = function_1::onecol;
    var_11 = 0;
    var_5 = 1;
    do {
      if (var_2->widget == (type_8 *)0x0) {
        var_5 = var_2->ncols;
        var_7 = var_2->percentages;
LAB_00040eb0:
        var_1 = var_1->next;
        var_4 = var_11;
      }
      else {
        var_4 = var_3(var_2->widget);
        if (var_4 == 0) goto LAB_00040eb0;
        var_10 = (*get_width)(var_2);
        var_4 = var_2->colspan;
        if (var_4 == 0) {
          var_4 = var_5 - var_2->colstart;
        }
        if (var_4 < 1) {
                    /* WARNING: Does not return */
          pcVar1 = (type_4 *)var_6();
          (*pcVar1)();
        }
        var_9 = var_7 + var_2->colstart;
        var_8 = 0;
        do {
          var_8 = var_8 + *var_9;
          var_9 = var_9 + 1;
        } while (var_7 + var_4 + var_2->colstart != var_9);
        var_1 = var_1->next;
        var_4 = (var_8 + -1 + (var_10 + cols->spacing) * 100) / var_8 - cols->spacing;
        if (var_4 <= var_11) {
          var_4 = var_11;
        }
      }
      var_11 = var_4;
    } while ((var_1 != (type_7 *)0x0) &&
            (var_2 = (type_6 *)var_1->data, var_2 != (type_6 *)0x0));
  }
  uVar4 = var_12();
  uVar4 = var_13(cols,uVar4);
  var_4 = var_14(uVar4);
  return var_11 + var_4 * 2;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal))))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) right: (number_literal)))) right: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (return_statement (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 MASKED(int param_1,code *param_2)

{
  code *pcVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  int *piVar6;
  int *piVar7;
  int *piVar8;
  undefined *puVar9;
  int local_2c;
  int local_28;
  
  piVar8 = *(int **)(param_1 + 0x14);
  if ((piVar8 == (int *)0x0) || (piVar7 = (int *)*piVar8, piVar7 == (int *)0x0)) {
    local_2c = 0;
  }
  else {
    puVar9 = &DAT_00077768;
    local_2c = 0;
    local_28 = 1;
    do {
      if (*piVar7 == 0) {
        local_28 = piVar7[5];
        puVar9 = (undefined *)piVar7[6];
LAB_00040eb0:
        piVar8 = (int *)piVar8[1];
        iVar2 = local_2c;
      }
      else {
        iVar2 = gtk_widget_get_visible(*piVar7);
        if (iVar2 == 0) goto LAB_00040eb0;
        iVar3 = (*param_2)(piVar7);
        iVar2 = piVar7[2];
        if (iVar2 == 0) {
          iVar2 = local_28 - piVar7[1];
        }
        if (iVar2 < 1) {
                    /* WARNING: Does not return */
          pcVar1 = (code *)invalidInstructionException();
          (*pcVar1)();
        }
        piVar6 = (int *)(puVar9 + piVar7[1] * 4);
        iVar5 = 0;
        do {
          iVar5 = iVar5 + *piVar6;
          piVar6 = piVar6 + 1;
        } while ((int *)(puVar9 + (iVar2 + piVar7[1]) * 4) != piVar6);
        piVar8 = (int *)piVar8[1];
        iVar2 = (iVar5 + -1 + (iVar3 + *(int *)(param_1 + 0x1c)) * 100) / iVar5 -
                *(int *)(param_1 + 0x1c);
        if (iVar2 <= local_2c) {
          iVar2 = local_2c;
        }
      }
      local_2c = iVar2;
    } while ((piVar8 != (int *)0x0) && (piVar7 = (int *)*piVar8, piVar7 != (int *)0x0));
  }
  uVar4 = gtk_container_get_type();
  uVar4 = g_type_check_instance_cast(param_1,uVar4);
  iVar2 = gtk_container_get_border_width(uVar4);
  return local_2c + iVar2 * 2;
}

