
void ser_setup_config_box(controlbox *b,int midsession,int parity_mask,int flow_mask)

{
  if (midsession != 0) {
                    /* WARNING: Subroutine does not return */
    ctrl_settitle(b,PTR_shapetypes_57__type_000bd268 + 0xe40,
                  PTR_shapetypes_57__type_000bd268 + 0xe94);
  }
                    /* WARNING: Subroutine does not return */
  ctrl_getset(b,PTR_shapetypes_57__type_000bd268 + 0x6178,PTR_shapetypes_57__type_000bd268 + -0x56a0
              ,PTR_shapetypes_57__type_000bd268 + -0x56d0);
}



int ser_setup_config_box(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  undefined4 *puVar6;
  int iVar7;
  int iVar8;
  undefined4 uVar9;
  int *piVar10;
  undefined4 uVar11;
  undefined *puVar12;
  undefined4 local_34 [2];
  int local_2c;
  
  local_2c = *(int *)PTR___stack_chk_guard_000be114;
  if (param_2 == 0) {
    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,
                        PTR_shapetypes_456__000bd268 + -0x56a0,
                        PTR_shapetypes_456__000bd268 + -0x56d0);
    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;
    if (0 < *(int *)(iVar4 + 0x10)) {
      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;
      iVar8 = 0;
      do {
        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);
        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {
          iVar7 = piVar10[9];
          piVar10[9] = iVar7 + 1;
          piVar10[8] = piVar10[8] + 1;
          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);
          piVar10[10] = iVar7;
          iVar5 = piVar10[9];
          uVar9 = dupstr(puVar2);
          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;
          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);
          piVar10[0xc] = iVar7;
          iVar5 = piVar10[9];
          I(local_34,4);
          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];
          if (piVar10[0xb] != 0) {
            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);
            piVar10[0xb] = iVar7;
            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;
          }
        }
        iVar8 = iVar8 + 1;
      } while (iVar8 < *(int *)(iVar4 + 0x10));
    }
    puVar12 = PTR_shapetypes_456__000bd268;
    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)
    ;
    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,
                        PTR_shapetypes_456__000bd268 + 0xebc);
    P(local_34,0);
    uVar9 = local_34[0];
    I(local_34,0x39);
    uVar11 = local_34[0];
    I(local_34,1);
    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,
                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);
  }
  else {
    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)
    ;
  }
  puVar1 = (undefined4 *)
           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,
                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c);
  P(local_34,0);
  uVar9 = local_34[0];
  I(local_34,0x3a);
  uVar11 = local_34[0];
  I(local_34,0xffffffff);
  puVar12 = PTR_conf_editbox_handler_000bd430;
  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,
               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);
  P(local_34,0);
  uVar9 = local_34[0];
  I(local_34,0x3b);
  uVar11 = local_34[0];
  I(local_34,0xffffffff);
  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,
               local_34[0]);
  P(local_34,0);
  uVar9 = local_34[0];
  I(local_34,0x3c);
  uVar11 = local_34[0];
  I(local_34,0xfffffffe);
  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,
               local_34[0]);
  P(local_34,0);
  uVar9 = local_34[0];
  I(local_34,param_3);
  ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,
                PTR_LAB_000bd500 + -0x1dac,local_34[0]);
  P(local_34,0);
  uVar9 = local_34[0];
  I(local_34,param_4);
  puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84);
  ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0]);
  if (local_2c != *(int *)PTR___stack_chk_guard_000be114) {
    puVar12 = PTR___stack_chk_fail_000bddb4;
    (*(code *)PTR___stack_chk_fail_000bddb4)();
    uVar9 = *puVar1;
    uVar11 = *puVar6;
    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);
    if (iVar4 == 0) {
      iVar4 = -1;
    }
    else {
      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);
      if (iVar4 == 0) {
        iVar4 = 1;
      }
      else {
        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);
      }
    }
    return iVar4;
  }
  return *(int *)PTR___stack_chk_guard_000be114;
}


lui gp,0x8
addiu gp,gp,0x6d28
addu gp,gp,t9
addiu sp,sp,-0x60
sw ra,0x5c(sp)
sw s8,0x58(sp)
sw s7,0x54(sp)
sw s6,0x50(sp)
sw s5,0x4c(sp)
sw s4,0x48(sp)
sw s3,0x44(sp)
sw s2,0x40(sp)
sw s1,0x3c(sp)
sw s0,0x38(sp)
sw gp,0x20(sp)
or s3,a0,zero
or s4,a2,zero
or s5,a3,zero
lw v0,-0x70bc(gp)
lw v0,0x0(v0)
sw v0,0x34(sp)
beq a1,zero,0x0003e810
_lw a2,-0x7f68(gp)
addiu a2,a2,0xe94
lw a1,-0x7f68(gp)
addiu a1,a1,0xe40
lw t9,-0x7dd8(gp)
bal 0x0003052c
_nop
lw gp,0x20(sp)
lw a3,-0x7f68(gp)
addiu a3,a3,0xe1c
lw a2,-0x7f68(gp)
addiu a2,a2,0xe38
lw a1,-0x7f68(gp)
addiu a1,a1,0xe40
or a0,s3,zero
lw t9,-0x7dec(gp)
bal 0x000306a4
_nop
lw gp,0x20(sp)
or s1,v0,zero
or a1,zero,zero
addiu s0,sp,0x2c
or a0,s0,zero
lw t9,-0x7de4(gp)
bal 0x0003026c
_nop
lw gp,0x20(sp)
lw s3,0x2c(sp)
li a1,0x3a
or a0,s0,zero
lw t9,-0x7dcc(gp)
bal 0x00030260
_nop
lw gp,0x20(sp)
lw s2,0x2c(sp)
li a1,-0x1
or a0,s0,zero
lw t9,-0x7dcc(gp)
bal 0x00030260
_nop
lw gp,0x20(sp)
lw v0,0x2c(sp)
sw v0,0x1c(sp)
sw s2,0x18(sp)
lw s2,-0x7da0(gp)
sw s2,0x14(sp)
sw s3,0x10(sp)
li a3,0x28
li a2,0x73
lw a1,-0x7f68(gp)
addiu a1,a1,0xe54
or a0,s1,zero
lw t9,-0x7dd4(gp)
bal 0x00030b48
_nop
lw gp,0x20(sp)
or a1,zero,zero
or a0,s0,zero
lw t9,-0x7de4(gp)
bal 0x0003026c
_nop
lw gp,0x20(sp)
lw s3,0x2c(sp)
li a1,0x3b
or a0,s0,zero
lw t9,-0x7dcc(gp)
bal 0x00030260
_nop
lw gp,0x20(sp)
lw s6,0x2c(sp)
li a1,-0x1
or a0,s0,zero
lw t9,-0x7dcc(gp)
bal 0x00030260
_nop
lw gp,0x20(sp)
lw v0,0x2c(sp)
sw v0,0x1c(sp)
sw s6,0x18(sp)
sw s2,0x14(sp)
sw s3,0x10(sp)
li a3,0x28
li a2,0x62
lw a1,-0x7f68(gp)
addiu a1,a1,0xe64
or a0,s1,zero
lw t9,-0x7dd4(gp)
bal 0x00030b48
_nop
lw gp,0x20(sp)
or a1,zero,zero
or a0,s0,zero
lw t9,-0x7de4(gp)
bal 0x0003026c
_nop
lw gp,0x20(sp)
lw s3,0x2c(sp)
li a1,0x3c
or a0,s0,zero
lw t9,-0x7dcc(gp)
bal 0x00030260
_nop
lw gp,0x20(sp)
lw s6,0x2c(sp)
li a1,-0x2
or a0,s0,zero
lw t9,-0x7dcc(gp)
bal 0x00030260
_nop
lw gp,0x20(sp)
lw v0,0x2c(sp)
sw v0,0x1c(sp)
sw s6,0x18(sp)
sw s2,0x14(sp)
sw s3,0x10(sp)
li a3,0x28
li a2,0x74
lw a1,-0x7f68(gp)
addiu a1,a1,0xe70
or a0,s1,zero
lw t9,-0x7dd4(gp)
bal 0x00030b48
_nop
lw gp,0x20(sp)
or a1,zero,zero
or a0,s0,zero
lw t9,-0x7de4(gp)
bal 0x0003026c
_nop
lw gp,0x20(sp)
lw s2,0x2c(sp)
or a1,s4,zero
or a0,s0,zero
lw t9,-0x7dcc(gp)
bal 0x00030260
_nop
lw gp,0x20(sp)
lw v0,0x2c(sp)
sw v0,0x18(sp)
lw v0,-0x7cd0(gp)
addiu v0,v0,-0x1dac
sw v0,0x14(sp)
sw s2,0x10(sp)
li a3,0x28
li a2,0x70
lw a1,-0x7f68(gp)
addiu a1,a1,0xe7c
or a0,s1,zero
lw t9,-0x7d84(gp)
bal 0x00031040
_nop
lw gp,0x20(sp)
or a1,zero,zero
or a0,s0,zero
lw t9,-0x7de4(gp)
bal 0x0003026c
_nop
lw gp,0x20(sp)
lw s2,0x2c(sp)
or a1,s5,zero
or a0,s0,zero
lw t9,-0x7dcc(gp)
bal 0x00030260
_nop
lw gp,0x20(sp)
lw v0,0x2c(sp)
sw v0,0x18(sp)
lw v0,-0x7cd0(gp)
addiu v0,v0,-0x2000
sw v0,0x14(sp)
sw s2,0x10(sp)
li a3,0x28
li a2,0x66
lw a1,-0x7f68(gp)
addiu a1,a1,0xe84
or a0,s1,zero
lw t9,-0x7d84(gp)
bal 0x00031040
_nop
lw gp,0x20(sp)
lw v1,0x34(sp)
lw v0,-0x70bc(gp)
lw v0,0x0(v0)
bne v1,v0,0x0003ea6c
_lw ra,0x5c(sp)
lw s8,0x58(sp)
lw s7,0x54(sp)
lw s6,0x50(sp)
lw s5,0x4c(sp)
lw s4,0x48(sp)
lw s3,0x44(sp)
lw s2,0x40(sp)
lw s1,0x3c(sp)
lw s0,0x38(sp)
jr ra
_addiu sp,sp,0x60
or s0,a1,zero
lw a3,-0x7f68(gp)
addiu a3,a3,-0x56d0
lw a2,-0x7f68(gp)
addiu a2,a2,-0x56a0
lw a1,-0x7f68(gp)
addiu a1,a1,0x6178
lw t9,-0x7dec(gp)
bal 0x000306a4
_nop
lw gp,0x20(sp)
or s2,v0,zero
lw v0,0x10(v0)
blez v0,0x0003e984
_lw s6,-0x7da4(gp)
lui s7,0x3fff
ori s7,s7,0xffff
lw v0,-0x7f68(gp)
addiu v0,v0,0xe14
b 0x0003e878
_sw v0,0x28(sp)
addiu s0,s0,0x1
lw v0,0x10(s2)
slt v0,s0,v0
beq v0,zero,0x0003e988
_lw a2,-0x7f68(gp)
lw v0,0x18(s2)
sll v1,s0,0x2
addu v0,v0,v1
lw s1,0x0(v0)
lw v1,0x0(s1)
li v0,0x2
bne v1,v0,0x0003e864
_nop
lw v0,0x10(s1)
bne v0,s6,0x0003e864
_li a2,0x4
lw a1,0x24(s1)
addiu a1,a1,0x1
sw a1,0x24(s1)
lw v0,0x20(s1)
addiu v0,v0,0x1
sw v0,0x20(s1)
lw a0,0x28(s1)
lw t9,-0x7f5c(gp)
bal 0x00037748
_nop
lw gp,0x20(sp)
sw v0,0x28(s1)
lw v1,0x24(s1)
addu v1,v1,s7
sll v1,v1,0x2
addu s8,v0,v1
lw a0,0x28(sp)
lw t9,-0x7f60(gp)
bal 0x000373a4
_nop
lw gp,0x20(sp)
sw v0,0x0(s8)
li a2,0x4
lw a1,0x24(s1)
lw a0,0x30(s1)
lw t9,-0x7f5c(gp)
bal 0x00037748
_nop
lw gp,0x20(sp)
sw v0,0x30(s1)
lw s8,0x24(s1)
addu s8,s8,s7
sll s8,s8,0x2
addu s8,v0,s8
li a1,0x4
addiu a0,sp,0x2c
lw t9,-0x7dcc(gp)
bal 0x00030260
_nop
lw gp,0x20(sp)
lw v0,0x2c(sp)
sw v0,0x0(s8)
lw a0,0x2c(s1)
beq a0,zero,0x0003e864
_li a2,0x1
lw a1,0x24(s1)
lw t9,-0x7f5c(gp)
bal 0x00037748
_nop
lw gp,0x20(sp)
sw v0,0x2c(s1)
lw v1,0x24(s1)
addu v0,v0,v1
li v1,0x72
b 0x0003e864
_sb v1,-0x1(v0)
lw a2,-0x7f68(gp)
addiu a2,a2,0xe94
lw s0,-0x7f68(gp)
addiu a1,s0,0xe40
or a0,s3,zero
lw t9,-0x7dd8(gp)
bal 0x0003052c
_nop
lw gp,0x20(sp)
lw a3,-0x7f68(gp)
addiu a3,a3,0xebc
lw a2,-0x7f68(gp)
addiu a2,a2,0xed4
addiu a1,s0,0xe40
or a0,s3,zero
lw t9,-0x7dec(gp)
bal 0x000306a4
_nop
lw gp,0x20(sp)
or s1,v0,zero
or a1,zero,zero
addiu s0,sp,0x2c
or a0,s0,zero
lw t9,-0x7de4(gp)
bal 0x0003026c
_nop
lw gp,0x20(sp)
lw s2,0x2c(sp)
li a1,0x39
or a0,s0,zero
lw t9,-0x7dcc(gp)
bal 0x00030260
_nop
lw gp,0x20(sp)
lw s6,0x2c(sp)
li a1,0x1
or a0,s0,zero
lw t9,-0x7dcc(gp)
bal 0x00030260
_nop
lw gp,0x20(sp)
lw v0,0x2c(sp)
sw v0,0x1c(sp)
sw s6,0x18(sp)
lw v0,-0x7da0(gp)
sw v0,0x14(sp)
sw s2,0x10(sp)
li a3,0x28
li a2,0x6c
lw a1,-0x7f68(gp)
addiu a1,a1,0xedc
or a0,s1,zero
lw t9,-0x7dd4(gp)
bal 0x00030b48
_nop
lw gp,0x20(sp)
b 0x0003e524
_lw a3,-0x7f68(gp)
lw t9,-0x741c(gp)
jalr t9
_nop
nop
nop
lui gp,0x8
addiu gp,gp,0x6750
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
lw s0,0x0(a0)
lw s1,0x0(a1)
lw a1,-0x7f68(gp)
addiu a1,a1,-0x57ec
or a0,s0,zero
lw t9,-0x724c(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0003eb14
_lw a1,-0x7f68(gp)
addiu a1,a1,-0x57ec
or a0,s1,zero
lw t9,-0x724c(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0003eb1c
_or a1,s1,zero
or a0,s0,zero
lw t9,-0x724c(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
b 0x0003eb00
_li v0,-0x1
b 0x0003eb00
_li v0,0x1
(translation_unit "int ser_setup_config_box(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int *piVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_000be114;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }\n  puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  puVar12 = PTR_conf_editbox_handler_000bd430;\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84);\n  ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0]);\n  if (local_2c != *(int *)PTR___stack_chk_guard_000be114) {\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }\n  return *(int *)PTR___stack_chk_guard_000be114;\n}\n\n" (function_definition "int ser_setup_config_box(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int *piVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_000be114;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }\n  puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  puVar12 = PTR_conf_editbox_handler_000bd430;\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84);\n  ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0]);\n  if (local_2c != *(int *)PTR___stack_chk_guard_000be114) {\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }\n  return *(int *)PTR___stack_chk_guard_000be114;\n}" primitive_type (function_declarator "ser_setup_config_box(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int *piVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_000be114;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }\n  puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  puVar12 = PTR_conf_editbox_handler_000bd430;\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84);\n  ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0]);\n  if (local_2c != *(int *)PTR___stack_chk_guard_000be114) {\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }\n  return *(int *)PTR___stack_chk_guard_000be114;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "undefined4 local_34 [2];" type_identifier (array_declarator "local_34 [2]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000be114;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000be114" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000be114" * (cast_expression "(int *)PTR___stack_chk_guard_000be114" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }" { (expression_statement "iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);" (assignment_expression "iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0)" identifier = (call_expression "ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0)" identifier (argument_list "(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0)" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0x6178" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + -0x56a0" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + -0x56d0" identifier + number_literal) )))) ;) (expression_statement "puVar12 = PTR_config_protocolbuttons_handler_000bd42c;" (assignment_expression "puVar12 = PTR_config_protocolbuttons_handler_000bd42c" identifier = identifier) ;) (if_statement "if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }" if (parenthesized_expression "(0 < *(int *)(iVar4 + 0x10))" ( (binary_expression "0 < *(int *)(iVar4 + 0x10)" number_literal < (pointer_expression "*(int *)(iVar4 + 0x10)" * (cast_expression "(int *)(iVar4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }" { (expression_statement "puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;" (assignment_expression "puVar2 = PTR_shapetypes_456__000bd268 + 0xe14" identifier = (binary_expression "PTR_shapetypes_456__000bd268 + 0xe14" identifier + number_literal)) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));" do (compound_statement "{\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      }" { (expression_statement "piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);" (assignment_expression "piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4)" * (cast_expression "(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar4 + 0x18) + iVar8 * 4)" ( (binary_expression "*(int *)(iVar4 + 0x18) + iVar8 * 4" (pointer_expression "*(int *)(iVar4 + 0x18)" * (cast_expression "(int *)(iVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (if_statement "if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }" if (parenthesized_expression "((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12))" ( (binary_expression "(*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)" (parenthesized_expression "(*piVar10 == 2)" ( (binary_expression "*piVar10 == 2" (pointer_expression "*piVar10" * identifier) == number_literal) )) && (parenthesized_expression "((undefined *)piVar10[4] == puVar12)" ( (binary_expression "(undefined *)piVar10[4] == puVar12" (cast_expression "(undefined *)piVar10[4]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar10[4]" identifier [ number_literal ])) == identifier) ))) )) (compound_statement "{\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }" { (expression_statement "iVar7 = piVar10[9];" (assignment_expression "iVar7 = piVar10[9]" identifier = (subscript_expression "piVar10[9]" identifier [ number_literal ])) ;) (expression_statement "piVar10[9] = iVar7 + 1;" (assignment_expression "piVar10[9] = iVar7 + 1" (subscript_expression "piVar10[9]" identifier [ number_literal ]) = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "piVar10[8] = piVar10[8] + 1;" (assignment_expression "piVar10[8] = piVar10[8] + 1" (subscript_expression "piVar10[8]" identifier [ number_literal ]) = (binary_expression "piVar10[8] + 1" (subscript_expression "piVar10[8]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);" (assignment_expression "iVar7 = saferealloc(piVar10[10],iVar7 + 1,4)" identifier = (call_expression "saferealloc(piVar10[10],iVar7 + 1,4)" identifier (argument_list "(piVar10[10],iVar7 + 1,4)" ( (subscript_expression "piVar10[10]" identifier [ number_literal ]) , (binary_expression "iVar7 + 1" identifier + number_literal) , number_literal )))) ;) (expression_statement "piVar10[10] = iVar7;" (assignment_expression "piVar10[10] = iVar7" (subscript_expression "piVar10[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar5 = piVar10[9];" (assignment_expression "iVar5 = piVar10[9]" identifier = (subscript_expression "piVar10[9]" identifier [ number_literal ])) ;) (expression_statement "uVar9 = dupstr(puVar2);" (assignment_expression "uVar9 = dupstr(puVar2)" identifier = (call_expression "dupstr(puVar2)" identifier (argument_list "(puVar2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;" (assignment_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9" (pointer_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4)" * (cast_expression "(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + (iVar5 + 0x3fffffff) * 4)" ( (binary_expression "iVar7 + (iVar5 + 0x3fffffff) * 4" identifier + (binary_expression "(iVar5 + 0x3fffffff) * 4" (parenthesized_expression "(iVar5 + 0x3fffffff)" ( (binary_expression "iVar5 + 0x3fffffff" identifier + number_literal) )) * number_literal)) )))) = identifier) ;) (expression_statement "iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);" (assignment_expression "iVar7 = saferealloc(piVar10[0xc],piVar10[9],4)" identifier = (call_expression "saferealloc(piVar10[0xc],piVar10[9],4)" identifier (argument_list "(piVar10[0xc],piVar10[9],4)" ( (subscript_expression "piVar10[0xc]" identifier [ number_literal ]) , (subscript_expression "piVar10[9]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "piVar10[0xc] = iVar7;" (assignment_expression "piVar10[0xc] = iVar7" (subscript_expression "piVar10[0xc]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar5 = piVar10[9];" (assignment_expression "iVar5 = piVar10[9]" identifier = (subscript_expression "piVar10[9]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,4);" (call_expression "I(local_34,4)" identifier (argument_list "(local_34,4)" ( identifier , number_literal ))) ;) (expression_statement "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];" (assignment_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0]" (pointer_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4)" * (cast_expression "(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + (iVar5 + 0x3fffffff) * 4)" ( (binary_expression "iVar7 + (iVar5 + 0x3fffffff) * 4" identifier + (binary_expression "(iVar5 + 0x3fffffff) * 4" (parenthesized_expression "(iVar5 + 0x3fffffff)" ( (binary_expression "iVar5 + 0x3fffffff" identifier + number_literal) )) * number_literal)) )))) = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (if_statement "if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }" if (parenthesized_expression "(piVar10[0xb] != 0)" ( (binary_expression "piVar10[0xb] != 0" (subscript_expression "piVar10[0xb]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }" { (expression_statement "iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);" (assignment_expression "iVar7 = saferealloc(piVar10[0xb],piVar10[9],1)" identifier = (call_expression "saferealloc(piVar10[0xb],piVar10[9],1)" identifier (argument_list "(piVar10[0xb],piVar10[9],1)" ( (subscript_expression "piVar10[0xb]" identifier [ number_literal ]) , (subscript_expression "piVar10[9]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "piVar10[0xb] = iVar7;" (assignment_expression "piVar10[0xb] = iVar7" (subscript_expression "piVar10[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;" (assignment_expression "*(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72" (pointer_expression "*(undefined1 *)(iVar7 + piVar10[9] + -1)" * (cast_expression "(undefined1 *)(iVar7 + piVar10[9] + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + piVar10[9] + -1)" ( (binary_expression "iVar7 + piVar10[9] + -1" (binary_expression "iVar7 + piVar10[9]" identifier + (subscript_expression "piVar10[9]" identifier [ number_literal ])) + number_literal) )))) = number_literal) ;) })) })) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 < *(int *)(iVar4 + 0x10))" ( (binary_expression "iVar8 < *(int *)(iVar4 + 0x10)" identifier < (pointer_expression "*(int *)(iVar4 + 0x10)" * (cast_expression "(int *)(iVar4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) ))))) )) ;) })) (expression_statement "puVar12 = PTR_shapetypes_456__000bd268;" (assignment_expression "puVar12 = PTR_shapetypes_456__000bd268" identifier = identifier) ;) (expression_statement "ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;" (call_expression "ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)" identifier (argument_list "(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe40" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe94" identifier + number_literal) ))) ;) (expression_statement "uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);" (assignment_expression "uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc)" identifier = (call_expression "ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc)" identifier (argument_list "(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc)" ( identifier , (binary_expression "puVar12 + 0xe40" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + 0xed4" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + 0xebc" identifier + number_literal) )))) ;) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" identifier (argument_list "(local_34,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0x39);" (call_expression "I(local_34,0x39)" identifier (argument_list "(local_34,0x39)" ( identifier , number_literal ))) ;) (expression_statement "uVar11 = local_34[0];" (assignment_expression "uVar11 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,1);" (call_expression "I(local_34,1)" identifier (argument_list "(local_34,1)" ( identifier , number_literal ))) ;) (expression_statement "ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);" (call_expression "ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0])" identifier (argument_list "(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0])" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xedc" identifier + number_literal) , number_literal , number_literal , identifier , identifier , identifier , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) }) (else_clause "else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }" else (compound_statement "{\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }" { (expression_statement "ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;" (call_expression "ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)" identifier (argument_list "(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe40" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe94" identifier + number_literal) ))) ;) }))) (expression_statement "puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c);" (assignment_expression "puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c)" identifier = (cast_expression "(undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c)" identifier (argument_list "(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c)" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe40" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe38" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe1c" identifier + number_literal) ))))) ;) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" identifier (argument_list "(local_34,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0x3a);" (call_expression "I(local_34,0x3a)" identifier (argument_list "(local_34,0x3a)" ( identifier , number_literal ))) ;) (expression_statement "uVar11 = local_34[0];" (assignment_expression "uVar11 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0xffffffff);" (call_expression "I(local_34,0xffffffff)" identifier (argument_list "(local_34,0xffffffff)" ( identifier , number_literal ))) ;) (expression_statement "puVar12 = PTR_conf_editbox_handler_000bd430;" (assignment_expression "puVar12 = PTR_conf_editbox_handler_000bd430" identifier = identifier) ;) (expression_statement "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);" (call_expression "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0])" identifier (argument_list "(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0])" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe54" identifier + number_literal) , number_literal , number_literal , identifier , identifier , identifier , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" identifier (argument_list "(local_34,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0x3b);" (call_expression "I(local_34,0x3b)" identifier (argument_list "(local_34,0x3b)" ( identifier , number_literal ))) ;) (expression_statement "uVar11 = local_34[0];" (assignment_expression "uVar11 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0xffffffff);" (call_expression "I(local_34,0xffffffff)" identifier (argument_list "(local_34,0xffffffff)" ( identifier , number_literal ))) ;) (expression_statement "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0])" identifier (argument_list "(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0])" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe64" identifier + number_literal) , number_literal , number_literal , identifier , identifier , identifier , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" identifier (argument_list "(local_34,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0x3c);" (call_expression "I(local_34,0x3c)" identifier (argument_list "(local_34,0x3c)" ( identifier , number_literal ))) ;) (expression_statement "uVar11 = local_34[0];" (assignment_expression "uVar11 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0xfffffffe);" (call_expression "I(local_34,0xfffffffe)" identifier (argument_list "(local_34,0xfffffffe)" ( identifier , number_literal ))) ;) (expression_statement "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0])" identifier (argument_list "(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0])" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe70" identifier + number_literal) , number_literal , number_literal , identifier , identifier , identifier , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" identifier (argument_list "(local_34,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,param_3);" (call_expression "I(local_34,param_3)" identifier (argument_list "(local_34,param_3)" ( identifier , identifier ))) ;) (expression_statement "ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0]);" (call_expression "ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0])" identifier (argument_list "(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0])" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe7c" identifier + number_literal) , number_literal , number_literal , identifier , (binary_expression "PTR_LAB_000bd500 + -0x1dac" identifier + number_literal) , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" identifier (argument_list "(local_34,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,param_4);" (call_expression "I(local_34,param_4)" identifier (argument_list "(local_34,param_4)" ( identifier , identifier ))) ;) (expression_statement "puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84);" (assignment_expression "puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84)" identifier = (cast_expression "(undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_shapetypes_456__000bd268 + 0xe84)" ( (binary_expression "PTR_shapetypes_456__000bd268 + 0xe84" identifier + number_literal) )))) ;) (expression_statement "ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0]);" (call_expression "ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0])" identifier (argument_list "(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0])" ( identifier , identifier , number_literal , number_literal , identifier , (binary_expression "PTR_LAB_000bd500 + -0x2000" identifier + number_literal) , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (if_statement "if (local_2c != *(int *)PTR___stack_chk_guard_000be114) {\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }" if (parenthesized_expression "(local_2c != *(int *)PTR___stack_chk_guard_000be114)" ( (binary_expression "local_2c != *(int *)PTR___stack_chk_guard_000be114" identifier != (pointer_expression "*(int *)PTR___stack_chk_guard_000be114" * (cast_expression "(int *)PTR___stack_chk_guard_000be114" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }" { (expression_statement "puVar12 = PTR___stack_chk_fail_000bddb4;" (assignment_expression "puVar12 = PTR___stack_chk_fail_000bddb4" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000bddb4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000bddb4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000bddb4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000bddb4" * (cast_expression "(code *)PTR___stack_chk_fail_000bddb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar9 = *puVar1;" (assignment_expression "uVar9 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "uVar11 = *puVar6;" (assignment_expression "uVar11 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);" (assignment_expression "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" identifier = (call_expression "(**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" (parenthesized_expression "(**(code **)(puVar12 + 0x7f504))" ( (pointer_expression "**(code **)(puVar12 + 0x7f504)" * (pointer_expression "*(code **)(puVar12 + 0x7f504)" * (cast_expression "(code **)(puVar12 + 0x7f504)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x7f504)" ( (binary_expression "puVar12 + 0x7f504" identifier + number_literal) ))))) )) (argument_list "(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" ( identifier , (binary_expression "*(int *)(puVar12 + 0x7e7e8) + -0x57ec" (pointer_expression "*(int *)(puVar12 + 0x7e7e8)" * (cast_expression "(int *)(puVar12 + 0x7e7e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x7e7e8)" ( (binary_expression "puVar12 + 0x7e7e8" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = -1;\n    }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }" else (compound_statement "{\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }" { (expression_statement "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);" (assignment_expression "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" identifier = (call_expression "(**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" (parenthesized_expression "(**(code **)(puVar12 + 0x7f504))" ( (pointer_expression "**(code **)(puVar12 + 0x7f504)" * (pointer_expression "*(code **)(puVar12 + 0x7f504)" * (cast_expression "(code **)(puVar12 + 0x7f504)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x7f504)" ( (binary_expression "puVar12 + 0x7f504" identifier + number_literal) ))))) )) (argument_list "(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" ( identifier , (binary_expression "*(int *)(puVar12 + 0x7e7e8) + -0x57ec" (pointer_expression "*(int *)(puVar12 + 0x7e7e8)" * (cast_expression "(int *)(puVar12 + 0x7e7e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x7e7e8)" ( (binary_expression "puVar12 + 0x7e7e8" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = 1;\n      }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }" { (expression_statement "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);" (assignment_expression "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11)" identifier = (call_expression "(**(code **)(puVar12 + 0x7f504))(uVar9,uVar11)" (parenthesized_expression "(**(code **)(puVar12 + 0x7f504))" ( (pointer_expression "**(code **)(puVar12 + 0x7f504)" * (pointer_expression "*(code **)(puVar12 + 0x7f504)" * (cast_expression "(code **)(puVar12 + 0x7f504)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x7f504)" ( (binary_expression "puVar12 + 0x7f504" identifier + number_literal) ))))) )) (argument_list "(uVar9,uVar11)" ( identifier , identifier )))) ;) }))) }))) (return_statement "return iVar4;" return identifier ;) })) (return_statement "return *(int *)PTR___stack_chk_guard_000be114;" return (pointer_expression "*(int *)PTR___stack_chk_guard_000be114" * (cast_expression "(int *)PTR___stack_chk_guard_000be114" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })))
(translation_unit "void ser_setup_config_box(controlbox *b,int midsession,int parity_mask,int flow_mask)\n\n{\n  if (midsession != 0) {\n                    /* WARNING: Subroutine does not return */\n    ctrl_settitle(b,PTR_shapetypes_57__type_000bd268 + 0xe40,\n                  PTR_shapetypes_57__type_000bd268 + 0xe94);\n  }\n                    /* WARNING: Subroutine does not return */\n  ctrl_getset(b,PTR_shapetypes_57__type_000bd268 + 0x6178,PTR_shapetypes_57__type_000bd268 + -0x56a0\n              ,PTR_shapetypes_57__type_000bd268 + -0x56d0);\n}\n\n" (function_definition "void ser_setup_config_box(controlbox *b,int midsession,int parity_mask,int flow_mask)\n\n{\n  if (midsession != 0) {\n                    /* WARNING: Subroutine does not return */\n    ctrl_settitle(b,PTR_shapetypes_57__type_000bd268 + 0xe40,\n                  PTR_shapetypes_57__type_000bd268 + 0xe94);\n  }\n                    /* WARNING: Subroutine does not return */\n  ctrl_getset(b,PTR_shapetypes_57__type_000bd268 + 0x6178,PTR_shapetypes_57__type_000bd268 + -0x56a0\n              ,PTR_shapetypes_57__type_000bd268 + -0x56d0);\n}" primitive_type (function_declarator "ser_setup_config_box(controlbox *b,int midsession,int parity_mask,int flow_mask)" identifier (parameter_list "(controlbox *b,int midsession,int parity_mask,int flow_mask)" ( (parameter_declaration "controlbox *b" type_identifier (pointer_declarator "*b" * identifier)) , (parameter_declaration "int midsession" primitive_type identifier) , (parameter_declaration "int parity_mask" primitive_type identifier) , (parameter_declaration "int flow_mask" primitive_type identifier) ))) (compound_statement "{\n  if (midsession != 0) {\n                    /* WARNING: Subroutine does not return */\n    ctrl_settitle(b,PTR_shapetypes_57__type_000bd268 + 0xe40,\n                  PTR_shapetypes_57__type_000bd268 + 0xe94);\n  }\n                    /* WARNING: Subroutine does not return */\n  ctrl_getset(b,PTR_shapetypes_57__type_000bd268 + 0x6178,PTR_shapetypes_57__type_000bd268 + -0x56a0\n              ,PTR_shapetypes_57__type_000bd268 + -0x56d0);\n}" { (if_statement "if (midsession != 0) {\n                    /* WARNING: Subroutine does not return */\n    ctrl_settitle(b,PTR_shapetypes_57__type_000bd268 + 0xe40,\n                  PTR_shapetypes_57__type_000bd268 + 0xe94);\n  }" if (parenthesized_expression "(midsession != 0)" ( (binary_expression "midsession != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    ctrl_settitle(b,PTR_shapetypes_57__type_000bd268 + 0xe40,\n                  PTR_shapetypes_57__type_000bd268 + 0xe94);\n  }" { comment (expression_statement "ctrl_settitle(b,PTR_shapetypes_57__type_000bd268 + 0xe40,\n                  PTR_shapetypes_57__type_000bd268 + 0xe94);" (call_expression "ctrl_settitle(b,PTR_shapetypes_57__type_000bd268 + 0xe40,\n                  PTR_shapetypes_57__type_000bd268 + 0xe94)" identifier (argument_list "(b,PTR_shapetypes_57__type_000bd268 + 0xe40,\n                  PTR_shapetypes_57__type_000bd268 + 0xe94)" ( identifier , (binary_expression "PTR_shapetypes_57__type_000bd268 + 0xe40" identifier + number_literal) , (binary_expression "PTR_shapetypes_57__type_000bd268 + 0xe94" identifier + number_literal) ))) ;) })) comment (expression_statement "ctrl_getset(b,PTR_shapetypes_57__type_000bd268 + 0x6178,PTR_shapetypes_57__type_000bd268 + -0x56a0\n              ,PTR_shapetypes_57__type_000bd268 + -0x56d0);" (call_expression "ctrl_getset(b,PTR_shapetypes_57__type_000bd268 + 0x6178,PTR_shapetypes_57__type_000bd268 + -0x56a0\n              ,PTR_shapetypes_57__type_000bd268 + -0x56d0)" identifier (argument_list "(b,PTR_shapetypes_57__type_000bd268 + 0x6178,PTR_shapetypes_57__type_000bd268 + -0x56a0\n              ,PTR_shapetypes_57__type_000bd268 + -0x56d0)" ( identifier , (binary_expression "PTR_shapetypes_57__type_000bd268 + 0x6178" identifier + number_literal) , (binary_expression "PTR_shapetypes_57__type_000bd268 + -0x56a0" identifier + number_literal) , (binary_expression "PTR_shapetypes_57__type_000bd268 + -0x56d0" identifier + number_literal) ))) ;) })))
(translation_unit "int ser_setup_config_box(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int *piVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_000be114;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }\n  puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  puVar12 = PTR_conf_editbox_handler_000bd430;\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84);\n  ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0]);\n  if (local_2c != *(int *)PTR___stack_chk_guard_000be114) {\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }\n  return *(int *)PTR___stack_chk_guard_000be114;\n}\n\n" (function_definition "int ser_setup_config_box(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int *piVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_000be114;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }\n  puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  puVar12 = PTR_conf_editbox_handler_000bd430;\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84);\n  ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0]);\n  if (local_2c != *(int *)PTR___stack_chk_guard_000be114) {\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }\n  return *(int *)PTR___stack_chk_guard_000be114;\n}" primitive_type (function_declarator "ser_setup_config_box(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int *piVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_000be114;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }\n  puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  puVar12 = PTR_conf_editbox_handler_000bd430;\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84);\n  ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0]);\n  if (local_2c != *(int *)PTR___stack_chk_guard_000be114) {\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }\n  return *(int *)PTR___stack_chk_guard_000be114;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "undefined4 local_34 [2];" type_identifier (array_declarator "local_34 [2]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000be114;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000be114" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000be114" * (cast_expression "(int *)PTR___stack_chk_guard_000be114" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }" { (expression_statement "iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);" (assignment_expression "iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0)" identifier = (call_expression "ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0)" identifier (argument_list "(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0)" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0x6178" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + -0x56a0" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + -0x56d0" identifier + number_literal) )))) ;) (expression_statement "puVar12 = PTR_config_protocolbuttons_handler_000bd42c;" (assignment_expression "puVar12 = PTR_config_protocolbuttons_handler_000bd42c" identifier = identifier) ;) (if_statement "if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }" if (parenthesized_expression "(0 < *(int *)(iVar4 + 0x10))" ( (binary_expression "0 < *(int *)(iVar4 + 0x10)" number_literal < (pointer_expression "*(int *)(iVar4 + 0x10)" * (cast_expression "(int *)(iVar4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }" { (expression_statement "puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;" (assignment_expression "puVar2 = PTR_shapetypes_456__000bd268 + 0xe14" identifier = (binary_expression "PTR_shapetypes_456__000bd268 + 0xe14" identifier + number_literal)) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));" do (compound_statement "{\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      }" { (expression_statement "piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);" (assignment_expression "piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4)" * (cast_expression "(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar4 + 0x18) + iVar8 * 4)" ( (binary_expression "*(int *)(iVar4 + 0x18) + iVar8 * 4" (pointer_expression "*(int *)(iVar4 + 0x18)" * (cast_expression "(int *)(iVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (if_statement "if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }" if (parenthesized_expression "((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12))" ( (binary_expression "(*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)" (parenthesized_expression "(*piVar10 == 2)" ( (binary_expression "*piVar10 == 2" (pointer_expression "*piVar10" * identifier) == number_literal) )) && (parenthesized_expression "((undefined *)piVar10[4] == puVar12)" ( (binary_expression "(undefined *)piVar10[4] == puVar12" (cast_expression "(undefined *)piVar10[4]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar10[4]" identifier [ number_literal ])) == identifier) ))) )) (compound_statement "{\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }" { (expression_statement "iVar7 = piVar10[9];" (assignment_expression "iVar7 = piVar10[9]" identifier = (subscript_expression "piVar10[9]" identifier [ number_literal ])) ;) (expression_statement "piVar10[9] = iVar7 + 1;" (assignment_expression "piVar10[9] = iVar7 + 1" (subscript_expression "piVar10[9]" identifier [ number_literal ]) = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "piVar10[8] = piVar10[8] + 1;" (assignment_expression "piVar10[8] = piVar10[8] + 1" (subscript_expression "piVar10[8]" identifier [ number_literal ]) = (binary_expression "piVar10[8] + 1" (subscript_expression "piVar10[8]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);" (assignment_expression "iVar7 = saferealloc(piVar10[10],iVar7 + 1,4)" identifier = (call_expression "saferealloc(piVar10[10],iVar7 + 1,4)" identifier (argument_list "(piVar10[10],iVar7 + 1,4)" ( (subscript_expression "piVar10[10]" identifier [ number_literal ]) , (binary_expression "iVar7 + 1" identifier + number_literal) , number_literal )))) ;) (expression_statement "piVar10[10] = iVar7;" (assignment_expression "piVar10[10] = iVar7" (subscript_expression "piVar10[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar5 = piVar10[9];" (assignment_expression "iVar5 = piVar10[9]" identifier = (subscript_expression "piVar10[9]" identifier [ number_literal ])) ;) (expression_statement "uVar9 = dupstr(puVar2);" (assignment_expression "uVar9 = dupstr(puVar2)" identifier = (call_expression "dupstr(puVar2)" identifier (argument_list "(puVar2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;" (assignment_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9" (pointer_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4)" * (cast_expression "(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + (iVar5 + 0x3fffffff) * 4)" ( (binary_expression "iVar7 + (iVar5 + 0x3fffffff) * 4" identifier + (binary_expression "(iVar5 + 0x3fffffff) * 4" (parenthesized_expression "(iVar5 + 0x3fffffff)" ( (binary_expression "iVar5 + 0x3fffffff" identifier + number_literal) )) * number_literal)) )))) = identifier) ;) (expression_statement "iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);" (assignment_expression "iVar7 = saferealloc(piVar10[0xc],piVar10[9],4)" identifier = (call_expression "saferealloc(piVar10[0xc],piVar10[9],4)" identifier (argument_list "(piVar10[0xc],piVar10[9],4)" ( (subscript_expression "piVar10[0xc]" identifier [ number_literal ]) , (subscript_expression "piVar10[9]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "piVar10[0xc] = iVar7;" (assignment_expression "piVar10[0xc] = iVar7" (subscript_expression "piVar10[0xc]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar5 = piVar10[9];" (assignment_expression "iVar5 = piVar10[9]" identifier = (subscript_expression "piVar10[9]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,4);" (call_expression "I(local_34,4)" identifier (argument_list "(local_34,4)" ( identifier , number_literal ))) ;) (expression_statement "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];" (assignment_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0]" (pointer_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4)" * (cast_expression "(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + (iVar5 + 0x3fffffff) * 4)" ( (binary_expression "iVar7 + (iVar5 + 0x3fffffff) * 4" identifier + (binary_expression "(iVar5 + 0x3fffffff) * 4" (parenthesized_expression "(iVar5 + 0x3fffffff)" ( (binary_expression "iVar5 + 0x3fffffff" identifier + number_literal) )) * number_literal)) )))) = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (if_statement "if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }" if (parenthesized_expression "(piVar10[0xb] != 0)" ( (binary_expression "piVar10[0xb] != 0" (subscript_expression "piVar10[0xb]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }" { (expression_statement "iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);" (assignment_expression "iVar7 = saferealloc(piVar10[0xb],piVar10[9],1)" identifier = (call_expression "saferealloc(piVar10[0xb],piVar10[9],1)" identifier (argument_list "(piVar10[0xb],piVar10[9],1)" ( (subscript_expression "piVar10[0xb]" identifier [ number_literal ]) , (subscript_expression "piVar10[9]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "piVar10[0xb] = iVar7;" (assignment_expression "piVar10[0xb] = iVar7" (subscript_expression "piVar10[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;" (assignment_expression "*(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72" (pointer_expression "*(undefined1 *)(iVar7 + piVar10[9] + -1)" * (cast_expression "(undefined1 *)(iVar7 + piVar10[9] + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + piVar10[9] + -1)" ( (binary_expression "iVar7 + piVar10[9] + -1" (binary_expression "iVar7 + piVar10[9]" identifier + (subscript_expression "piVar10[9]" identifier [ number_literal ])) + number_literal) )))) = number_literal) ;) })) })) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 < *(int *)(iVar4 + 0x10))" ( (binary_expression "iVar8 < *(int *)(iVar4 + 0x10)" identifier < (pointer_expression "*(int *)(iVar4 + 0x10)" * (cast_expression "(int *)(iVar4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) ))))) )) ;) })) (expression_statement "puVar12 = PTR_shapetypes_456__000bd268;" (assignment_expression "puVar12 = PTR_shapetypes_456__000bd268" identifier = identifier) ;) (expression_statement "ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;" (call_expression "ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)" identifier (argument_list "(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe40" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe94" identifier + number_literal) ))) ;) (expression_statement "uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);" (assignment_expression "uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc)" identifier = (call_expression "ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc)" identifier (argument_list "(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc)" ( identifier , (binary_expression "puVar12 + 0xe40" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + 0xed4" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + 0xebc" identifier + number_literal) )))) ;) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" identifier (argument_list "(local_34,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0x39);" (call_expression "I(local_34,0x39)" identifier (argument_list "(local_34,0x39)" ( identifier , number_literal ))) ;) (expression_statement "uVar11 = local_34[0];" (assignment_expression "uVar11 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,1);" (call_expression "I(local_34,1)" identifier (argument_list "(local_34,1)" ( identifier , number_literal ))) ;) (expression_statement "ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);" (call_expression "ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0])" identifier (argument_list "(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0])" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xedc" identifier + number_literal) , number_literal , number_literal , identifier , identifier , identifier , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) }) (else_clause "else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }" else (compound_statement "{\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }" { (expression_statement "ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;" (call_expression "ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)" identifier (argument_list "(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe40" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe94" identifier + number_literal) ))) ;) }))) (expression_statement "puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c);" (assignment_expression "puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c)" identifier = (cast_expression "(undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c)" identifier (argument_list "(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c)" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe40" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe38" identifier + number_literal) , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe1c" identifier + number_literal) ))))) ;) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" identifier (argument_list "(local_34,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0x3a);" (call_expression "I(local_34,0x3a)" identifier (argument_list "(local_34,0x3a)" ( identifier , number_literal ))) ;) (expression_statement "uVar11 = local_34[0];" (assignment_expression "uVar11 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0xffffffff);" (call_expression "I(local_34,0xffffffff)" identifier (argument_list "(local_34,0xffffffff)" ( identifier , number_literal ))) ;) (expression_statement "puVar12 = PTR_conf_editbox_handler_000bd430;" (assignment_expression "puVar12 = PTR_conf_editbox_handler_000bd430" identifier = identifier) ;) (expression_statement "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);" (call_expression "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0])" identifier (argument_list "(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0])" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe54" identifier + number_literal) , number_literal , number_literal , identifier , identifier , identifier , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" identifier (argument_list "(local_34,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0x3b);" (call_expression "I(local_34,0x3b)" identifier (argument_list "(local_34,0x3b)" ( identifier , number_literal ))) ;) (expression_statement "uVar11 = local_34[0];" (assignment_expression "uVar11 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0xffffffff);" (call_expression "I(local_34,0xffffffff)" identifier (argument_list "(local_34,0xffffffff)" ( identifier , number_literal ))) ;) (expression_statement "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0])" identifier (argument_list "(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0])" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe64" identifier + number_literal) , number_literal , number_literal , identifier , identifier , identifier , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" identifier (argument_list "(local_34,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0x3c);" (call_expression "I(local_34,0x3c)" identifier (argument_list "(local_34,0x3c)" ( identifier , number_literal ))) ;) (expression_statement "uVar11 = local_34[0];" (assignment_expression "uVar11 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,0xfffffffe);" (call_expression "I(local_34,0xfffffffe)" identifier (argument_list "(local_34,0xfffffffe)" ( identifier , number_literal ))) ;) (expression_statement "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0])" identifier (argument_list "(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0])" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe70" identifier + number_literal) , number_literal , number_literal , identifier , identifier , identifier , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" identifier (argument_list "(local_34,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,param_3);" (call_expression "I(local_34,param_3)" identifier (argument_list "(local_34,param_3)" ( identifier , identifier ))) ;) (expression_statement "ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0]);" (call_expression "ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0])" identifier (argument_list "(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0])" ( identifier , (binary_expression "PTR_shapetypes_456__000bd268 + 0xe7c" identifier + number_literal) , number_literal , number_literal , identifier , (binary_expression "PTR_LAB_000bd500 + -0x1dac" identifier + number_literal) , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" identifier (argument_list "(local_34,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" identifier = (subscript_expression "local_34[0]" identifier [ number_literal ])) ;) (expression_statement "I(local_34,param_4);" (call_expression "I(local_34,param_4)" identifier (argument_list "(local_34,param_4)" ( identifier , identifier ))) ;) (expression_statement "puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84);" (assignment_expression "puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84)" identifier = (cast_expression "(undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_shapetypes_456__000bd268 + 0xe84)" ( (binary_expression "PTR_shapetypes_456__000bd268 + 0xe84" identifier + number_literal) )))) ;) (expression_statement "ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0]);" (call_expression "ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0])" identifier (argument_list "(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0])" ( identifier , identifier , number_literal , number_literal , identifier , (binary_expression "PTR_LAB_000bd500 + -0x2000" identifier + number_literal) , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (if_statement "if (local_2c != *(int *)PTR___stack_chk_guard_000be114) {\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }" if (parenthesized_expression "(local_2c != *(int *)PTR___stack_chk_guard_000be114)" ( (binary_expression "local_2c != *(int *)PTR___stack_chk_guard_000be114" identifier != (pointer_expression "*(int *)PTR___stack_chk_guard_000be114" * (cast_expression "(int *)PTR___stack_chk_guard_000be114" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }" { (expression_statement "puVar12 = PTR___stack_chk_fail_000bddb4;" (assignment_expression "puVar12 = PTR___stack_chk_fail_000bddb4" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000bddb4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000bddb4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000bddb4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000bddb4" * (cast_expression "(code *)PTR___stack_chk_fail_000bddb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar9 = *puVar1;" (assignment_expression "uVar9 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "uVar11 = *puVar6;" (assignment_expression "uVar11 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);" (assignment_expression "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" identifier = (call_expression "(**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" (parenthesized_expression "(**(code **)(puVar12 + 0x7f504))" ( (pointer_expression "**(code **)(puVar12 + 0x7f504)" * (pointer_expression "*(code **)(puVar12 + 0x7f504)" * (cast_expression "(code **)(puVar12 + 0x7f504)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x7f504)" ( (binary_expression "puVar12 + 0x7f504" identifier + number_literal) ))))) )) (argument_list "(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" ( identifier , (binary_expression "*(int *)(puVar12 + 0x7e7e8) + -0x57ec" (pointer_expression "*(int *)(puVar12 + 0x7e7e8)" * (cast_expression "(int *)(puVar12 + 0x7e7e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x7e7e8)" ( (binary_expression "puVar12 + 0x7e7e8" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = -1;\n    }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }" else (compound_statement "{\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }" { (expression_statement "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);" (assignment_expression "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" identifier = (call_expression "(**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" (parenthesized_expression "(**(code **)(puVar12 + 0x7f504))" ( (pointer_expression "**(code **)(puVar12 + 0x7f504)" * (pointer_expression "*(code **)(puVar12 + 0x7f504)" * (cast_expression "(code **)(puVar12 + 0x7f504)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x7f504)" ( (binary_expression "puVar12 + 0x7f504" identifier + number_literal) ))))) )) (argument_list "(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" ( identifier , (binary_expression "*(int *)(puVar12 + 0x7e7e8) + -0x57ec" (pointer_expression "*(int *)(puVar12 + 0x7e7e8)" * (cast_expression "(int *)(puVar12 + 0x7e7e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x7e7e8)" ( (binary_expression "puVar12 + 0x7e7e8" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = 1;\n      }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }" else (compound_statement "{\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }" { (expression_statement "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);" (assignment_expression "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11)" identifier = (call_expression "(**(code **)(puVar12 + 0x7f504))(uVar9,uVar11)" (parenthesized_expression "(**(code **)(puVar12 + 0x7f504))" ( (pointer_expression "**(code **)(puVar12 + 0x7f504)" * (pointer_expression "*(code **)(puVar12 + 0x7f504)" * (cast_expression "(code **)(puVar12 + 0x7f504)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x7f504)" ( (binary_expression "puVar12 + 0x7f504" identifier + number_literal) ))))) )) (argument_list "(uVar9,uVar11)" ( identifier , identifier )))) ;) }))) }))) (return_statement "return iVar4;" return identifier ;) })) (return_statement "return *(int *)PTR___stack_chk_guard_000be114;" return (pointer_expression "*(int *)PTR___stack_chk_guard_000be114" * (cast_expression "(int *)PTR___stack_chk_guard_000be114" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) )))) = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (subscript_expression IDENT [ LIT ])) + LIT) )))) = LIT) ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , LIT , IDENT , IDENT , IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , LIT , IDENT , IDENT , IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , LIT , IDENT , IDENT , IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , LIT , IDENT , IDENT , IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , LIT , IDENT , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , IDENT , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) }))) }))) (return_statement return IDENT ;) })) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })))
(function_definition "int ser_setup_config_box(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int *piVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_000be114;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }\n  puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  puVar12 = PTR_conf_editbox_handler_000bd430;\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84);\n  ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0]);\n  if (local_2c != *(int *)PTR___stack_chk_guard_000be114) {\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }\n  return *(int *)PTR___stack_chk_guard_000be114;\n}" (primitive_type "int") (function_declarator "ser_setup_config_box(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" (identifier "ser_setup_config_box") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  int *piVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_000be114;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }\n  puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  puVar12 = PTR_conf_editbox_handler_000bd430;\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0]);\n  P(local_34,0);\n  uVar9 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84);\n  ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0]);\n  if (local_2c != *(int *)PTR___stack_chk_guard_000be114) {\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }\n  return *(int *)PTR___stack_chk_guard_000be114;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "int *piVar10;" (primitive_type "int") (pointer_declarator "*piVar10" (* "*") (identifier "piVar10")) (; ";")) (declaration "undefined4 uVar11;" (type_identifier "undefined4") (identifier "uVar11") (; ";")) (declaration "undefined *puVar12;" (type_identifier "undefined") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "undefined4 local_34 [2];" (type_identifier "undefined4") (array_declarator "local_34 [2]" (identifier "local_34") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000be114;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000be114" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000be114" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000be114" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000be114")))) (; ";")) (if_statement "if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);\n    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;\n    if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }\n    puVar12 = PTR_shapetypes_456__000bd268;\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);\n    P(local_34,0);\n    uVar9 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);\n  }" ({ "{") (expression_statement "iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0);" (assignment_expression "iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0)" (identifier "iVar4") (= "=") (call_expression "ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0)" (identifier "ctrl_getset") (argument_list "(param_1,PTR_shapetypes_456__000bd268 + 0x6178,\n                        PTR_shapetypes_456__000bd268 + -0x56a0,\n                        PTR_shapetypes_456__000bd268 + -0x56d0)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0x6178" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0x6178")) (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + -0x56a0" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "-0x56a0")) (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + -0x56d0" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "-0x56d0")) () ")")))) (; ";")) (expression_statement "puVar12 = PTR_config_protocolbuttons_handler_000bd42c;" (assignment_expression "puVar12 = PTR_config_protocolbuttons_handler_000bd42c" (identifier "puVar12") (= "=") (identifier "PTR_config_protocolbuttons_handler_000bd42c")) (; ";")) (if_statement "if (0 < *(int *)(iVar4 + 0x10)) {\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }" (if "if") (parenthesized_expression "(0 < *(int *)(iVar4 + 0x10))" (( "(") (binary_expression "0 < *(int *)(iVar4 + 0x10)" (number_literal "0") (< "<") (pointer_expression "*(int *)(iVar4 + 0x10)" (* "*") (cast_expression "(int *)(iVar4 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (compound_statement "{\n      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;\n      iVar8 = 0;\n      do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));\n    }" ({ "{") (expression_statement "puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;" (assignment_expression "puVar2 = PTR_shapetypes_456__000bd268 + 0xe14" (identifier "puVar2") (= "=") (binary_expression "PTR_shapetypes_456__000bd268 + 0xe14" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xe14"))) (; ";")) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      } while (iVar8 < *(int *)(iVar4 + 0x10));" (do "do") (compound_statement "{\n        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);\n        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }\n        iVar8 = iVar8 + 1;\n      }" ({ "{") (expression_statement "piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);" (assignment_expression "piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4)" (identifier "piVar10") (= "=") (pointer_expression "*(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4)" (* "*") (cast_expression "(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(iVar4 + 0x18) + iVar8 * 4)" (( "(") (binary_expression "*(int *)(iVar4 + 0x18) + iVar8 * 4" (pointer_expression "*(int *)(iVar4 + 0x18)" (* "*") (cast_expression "(int *)(iVar4 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x18)" (( "(") (binary_expression "iVar4 + 0x18" (identifier "iVar4") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }" (if "if") (parenthesized_expression "((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12))" (( "(") (binary_expression "(*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)" (parenthesized_expression "(*piVar10 == 2)" (( "(") (binary_expression "*piVar10 == 2" (pointer_expression "*piVar10" (* "*") (identifier "piVar10")) (== "==") (number_literal "2")) () ")")) (&& "&&") (parenthesized_expression "((undefined *)piVar10[4] == puVar12)" (( "(") (binary_expression "(undefined *)piVar10[4] == puVar12" (cast_expression "(undefined *)piVar10[4]" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar10[4]" (identifier "piVar10") ([ "[") (number_literal "4") (] "]"))) (== "==") (identifier "puVar12")) () ")"))) () ")")) (compound_statement "{\n          iVar7 = piVar10[9];\n          piVar10[9] = iVar7 + 1;\n          piVar10[8] = piVar10[8] + 1;\n          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);\n          piVar10[10] = iVar7;\n          iVar5 = piVar10[9];\n          uVar9 = dupstr(puVar2);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;\n          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);\n          piVar10[0xc] = iVar7;\n          iVar5 = piVar10[9];\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }\n        }" ({ "{") (expression_statement "iVar7 = piVar10[9];" (assignment_expression "iVar7 = piVar10[9]" (identifier "iVar7") (= "=") (subscript_expression "piVar10[9]" (identifier "piVar10") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "piVar10[9] = iVar7 + 1;" (assignment_expression "piVar10[9] = iVar7 + 1" (subscript_expression "piVar10[9]" (identifier "piVar10") ([ "[") (number_literal "9") (] "]")) (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar10[8] = piVar10[8] + 1;" (assignment_expression "piVar10[8] = piVar10[8] + 1" (subscript_expression "piVar10[8]" (identifier "piVar10") ([ "[") (number_literal "8") (] "]")) (= "=") (binary_expression "piVar10[8] + 1" (subscript_expression "piVar10[8]" (identifier "piVar10") ([ "[") (number_literal "8") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);" (assignment_expression "iVar7 = saferealloc(piVar10[10],iVar7 + 1,4)" (identifier "iVar7") (= "=") (call_expression "saferealloc(piVar10[10],iVar7 + 1,4)" (identifier "saferealloc") (argument_list "(piVar10[10],iVar7 + 1,4)" (( "(") (subscript_expression "piVar10[10]" (identifier "piVar10") ([ "[") (number_literal "10") (] "]")) (, ",") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "piVar10[10] = iVar7;" (assignment_expression "piVar10[10] = iVar7" (subscript_expression "piVar10[10]" (identifier "piVar10") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "iVar5 = piVar10[9];" (assignment_expression "iVar5 = piVar10[9]" (identifier "iVar5") (= "=") (subscript_expression "piVar10[9]" (identifier "piVar10") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "uVar9 = dupstr(puVar2);" (assignment_expression "uVar9 = dupstr(puVar2)" (identifier "uVar9") (= "=") (call_expression "dupstr(puVar2)" (identifier "dupstr") (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;" (assignment_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9" (pointer_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4)" (* "*") (cast_expression "(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + (iVar5 + 0x3fffffff) * 4)" (( "(") (binary_expression "iVar7 + (iVar5 + 0x3fffffff) * 4" (identifier "iVar7") (+ "+") (binary_expression "(iVar5 + 0x3fffffff) * 4" (parenthesized_expression "(iVar5 + 0x3fffffff)" (( "(") (binary_expression "iVar5 + 0x3fffffff" (identifier "iVar5") (+ "+") (number_literal "0x3fffffff")) () ")")) (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);" (assignment_expression "iVar7 = saferealloc(piVar10[0xc],piVar10[9],4)" (identifier "iVar7") (= "=") (call_expression "saferealloc(piVar10[0xc],piVar10[9],4)" (identifier "saferealloc") (argument_list "(piVar10[0xc],piVar10[9],4)" (( "(") (subscript_expression "piVar10[0xc]" (identifier "piVar10") ([ "[") (number_literal "0xc") (] "]")) (, ",") (subscript_expression "piVar10[9]" (identifier "piVar10") ([ "[") (number_literal "9") (] "]")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "piVar10[0xc] = iVar7;" (assignment_expression "piVar10[0xc] = iVar7" (subscript_expression "piVar10[0xc]" (identifier "piVar10") ([ "[") (number_literal "0xc") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "iVar5 = piVar10[9];" (assignment_expression "iVar5 = piVar10[9]" (identifier "iVar5") (= "=") (subscript_expression "piVar10[9]" (identifier "piVar10") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "I(local_34,4);" (call_expression "I(local_34,4)" (identifier "I") (argument_list "(local_34,4)" (( "(") (identifier "local_34") (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];" (assignment_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0]" (pointer_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4)" (* "*") (cast_expression "(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + (iVar5 + 0x3fffffff) * 4)" (( "(") (binary_expression "iVar7 + (iVar5 + 0x3fffffff) * 4" (identifier "iVar7") (+ "+") (binary_expression "(iVar5 + 0x3fffffff) * 4" (parenthesized_expression "(iVar5 + 0x3fffffff)" (( "(") (binary_expression "iVar5 + 0x3fffffff" (identifier "iVar5") (+ "+") (number_literal "0x3fffffff")) () ")")) (* "*") (number_literal "4"))) () ")")))) (= "=") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]"))) (; ";")) (if_statement "if (piVar10[0xb] != 0) {\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }" (if "if") (parenthesized_expression "(piVar10[0xb] != 0)" (( "(") (binary_expression "piVar10[0xb] != 0" (subscript_expression "piVar10[0xb]" (identifier "piVar10") ([ "[") (number_literal "0xb") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);\n            piVar10[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;\n          }" ({ "{") (expression_statement "iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);" (assignment_expression "iVar7 = saferealloc(piVar10[0xb],piVar10[9],1)" (identifier "iVar7") (= "=") (call_expression "saferealloc(piVar10[0xb],piVar10[9],1)" (identifier "saferealloc") (argument_list "(piVar10[0xb],piVar10[9],1)" (( "(") (subscript_expression "piVar10[0xb]" (identifier "piVar10") ([ "[") (number_literal "0xb") (] "]")) (, ",") (subscript_expression "piVar10[9]" (identifier "piVar10") ([ "[") (number_literal "9") (] "]")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "piVar10[0xb] = iVar7;" (assignment_expression "piVar10[0xb] = iVar7" (subscript_expression "piVar10[0xb]" (identifier "piVar10") ([ "[") (number_literal "0xb") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "*(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;" (assignment_expression "*(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72" (pointer_expression "*(undefined1 *)(iVar7 + piVar10[9] + -1)" (* "*") (cast_expression "(undefined1 *)(iVar7 + piVar10[9] + -1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + piVar10[9] + -1)" (( "(") (binary_expression "iVar7 + piVar10[9] + -1" (binary_expression "iVar7 + piVar10[9]" (identifier "iVar7") (+ "+") (subscript_expression "piVar10[9]" (identifier "piVar10") ([ "[") (number_literal "9") (] "]"))) (+ "+") (number_literal "-1")) () ")")))) (= "=") (number_literal "0x72")) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 < *(int *)(iVar4 + 0x10))" (( "(") (binary_expression "iVar8 < *(int *)(iVar4 + 0x10)" (identifier "iVar8") (< "<") (pointer_expression "*(int *)(iVar4 + 0x10)" (* "*") (cast_expression "(int *)(iVar4 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "puVar12 = PTR_shapetypes_456__000bd268;" (assignment_expression "puVar12 = PTR_shapetypes_456__000bd268" (identifier "puVar12") (= "=") (identifier "PTR_shapetypes_456__000bd268")) (; ";")) (expression_statement "ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;" (call_expression "ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)" (identifier "ctrl_settitle") (argument_list "(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xe40" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xe40")) (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xe94" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xe94")) () ")"))) (; ";")) (expression_statement "uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc);" (assignment_expression "uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc)" (identifier "uVar3") (= "=") (call_expression "ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc)" (identifier "ctrl_getset") (argument_list "(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,\n                        PTR_shapetypes_456__000bd268 + 0xebc)" (( "(") (identifier "param_1") (, ",") (binary_expression "puVar12 + 0xe40" (identifier "puVar12") (+ "+") (number_literal "0xe40")) (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xed4" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xed4")) (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xebc" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xebc")) () ")")))) (; ";")) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" (identifier "P") (argument_list "(local_34,0)" (( "(") (identifier "local_34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" (identifier "uVar9") (= "=") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "I(local_34,0x39);" (call_expression "I(local_34,0x39)" (identifier "I") (argument_list "(local_34,0x39)" (( "(") (identifier "local_34") (, ",") (number_literal "0x39") () ")"))) (; ";")) (expression_statement "uVar11 = local_34[0];" (assignment_expression "uVar11 = local_34[0]" (identifier "uVar11") (= "=") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "I(local_34,1);" (call_expression "I(local_34,1)" (identifier "I") (argument_list "(local_34,1)" (( "(") (identifier "local_34") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);" (call_expression "ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0])" (identifier "ctrl_editbox") (argument_list "(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,\n                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0])" (( "(") (identifier "uVar3") (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xedc" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xedc")) (, ",") (number_literal "0x6c") (, ",") (number_literal "0x28") (, ",") (identifier "uVar9") (, ",") (identifier "PTR_conf_editbox_handler_000bd430") (, ",") (identifier "uVar11") (, ",") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }" (else "else") (compound_statement "{\n    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;\n  }" ({ "{") (expression_statement "ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)\n    ;" (call_expression "ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)" (identifier "ctrl_settitle") (argument_list "(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xe40" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xe40")) (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xe94" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xe94")) () ")"))) (; ";")) (} "}")))) (expression_statement "puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c);" (assignment_expression "puVar1 = (undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)\n           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c)" (identifier "ctrl_getset") (argument_list "(param_1,PTR_shapetypes_456__000bd268 + 0xe40,\n                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xe40" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xe40")) (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xe38" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xe38")) (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xe1c" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xe1c")) () ")"))))) (; ";")) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" (identifier "P") (argument_list "(local_34,0)" (( "(") (identifier "local_34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" (identifier "uVar9") (= "=") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "I(local_34,0x3a);" (call_expression "I(local_34,0x3a)" (identifier "I") (argument_list "(local_34,0x3a)" (( "(") (identifier "local_34") (, ",") (number_literal "0x3a") () ")"))) (; ";")) (expression_statement "uVar11 = local_34[0];" (assignment_expression "uVar11 = local_34[0]" (identifier "uVar11") (= "=") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "I(local_34,0xffffffff);" (call_expression "I(local_34,0xffffffff)" (identifier "I") (argument_list "(local_34,0xffffffff)" (( "(") (identifier "local_34") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (expression_statement "puVar12 = PTR_conf_editbox_handler_000bd430;" (assignment_expression "puVar12 = PTR_conf_editbox_handler_000bd430" (identifier "puVar12") (= "=") (identifier "PTR_conf_editbox_handler_000bd430")) (; ";")) (expression_statement "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);" (call_expression "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0])" (identifier "ctrl_editbox") (argument_list "(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,\n               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0])" (( "(") (identifier "puVar1") (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xe54" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xe54")) (, ",") (number_literal "0x73") (, ",") (number_literal "0x28") (, ",") (identifier "uVar9") (, ",") (identifier "PTR_conf_editbox_handler_000bd430") (, ",") (identifier "uVar11") (, ",") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" (identifier "P") (argument_list "(local_34,0)" (( "(") (identifier "local_34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" (identifier "uVar9") (= "=") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "I(local_34,0x3b);" (call_expression "I(local_34,0x3b)" (identifier "I") (argument_list "(local_34,0x3b)" (( "(") (identifier "local_34") (, ",") (number_literal "0x3b") () ")"))) (; ";")) (expression_statement "uVar11 = local_34[0];" (assignment_expression "uVar11 = local_34[0]" (identifier "uVar11") (= "=") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "I(local_34,0xffffffff);" (call_expression "I(local_34,0xffffffff)" (identifier "I") (argument_list "(local_34,0xffffffff)" (( "(") (identifier "local_34") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (expression_statement "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0])" (identifier "ctrl_editbox") (argument_list "(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,\n               local_34[0])" (( "(") (identifier "puVar1") (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xe64" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xe64")) (, ",") (number_literal "0x62") (, ",") (number_literal "0x28") (, ",") (identifier "uVar9") (, ",") (identifier "puVar12") (, ",") (identifier "uVar11") (, ",") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" (identifier "P") (argument_list "(local_34,0)" (( "(") (identifier "local_34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" (identifier "uVar9") (= "=") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "I(local_34,0x3c);" (call_expression "I(local_34,0x3c)" (identifier "I") (argument_list "(local_34,0x3c)" (( "(") (identifier "local_34") (, ",") (number_literal "0x3c") () ")"))) (; ";")) (expression_statement "uVar11 = local_34[0];" (assignment_expression "uVar11 = local_34[0]" (identifier "uVar11") (= "=") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "I(local_34,0xfffffffe);" (call_expression "I(local_34,0xfffffffe)" (identifier "I") (argument_list "(local_34,0xfffffffe)" (( "(") (identifier "local_34") (, ",") (number_literal "0xfffffffe") () ")"))) (; ";")) (expression_statement "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0])" (identifier "ctrl_editbox") (argument_list "(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,\n               local_34[0])" (( "(") (identifier "puVar1") (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xe70" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xe70")) (, ",") (number_literal "0x74") (, ",") (number_literal "0x28") (, ",") (identifier "uVar9") (, ",") (identifier "puVar12") (, ",") (identifier "uVar11") (, ",") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" (identifier "P") (argument_list "(local_34,0)" (( "(") (identifier "local_34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" (identifier "uVar9") (= "=") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "I(local_34,param_3);" (call_expression "I(local_34,param_3)" (identifier "I") (argument_list "(local_34,param_3)" (( "(") (identifier "local_34") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0]);" (call_expression "ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0])" (identifier "ctrl_droplist") (argument_list "(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,\n                PTR_LAB_000bd500 + -0x1dac,local_34[0])" (( "(") (identifier "puVar1") (, ",") (binary_expression "PTR_shapetypes_456__000bd268 + 0xe7c" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xe7c")) (, ",") (number_literal "0x70") (, ",") (number_literal "0x28") (, ",") (identifier "uVar9") (, ",") (binary_expression "PTR_LAB_000bd500 + -0x1dac" (identifier "PTR_LAB_000bd500") (+ "+") (number_literal "-0x1dac")) (, ",") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (expression_statement "P(local_34,0);" (call_expression "P(local_34,0)" (identifier "P") (argument_list "(local_34,0)" (( "(") (identifier "local_34") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar9 = local_34[0];" (assignment_expression "uVar9 = local_34[0]" (identifier "uVar9") (= "=") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "I(local_34,param_4);" (call_expression "I(local_34,param_4)" (identifier "I") (argument_list "(local_34,param_4)" (( "(") (identifier "local_34") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84);" (assignment_expression "puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_shapetypes_456__000bd268 + 0xe84)" (( "(") (binary_expression "PTR_shapetypes_456__000bd268 + 0xe84" (identifier "PTR_shapetypes_456__000bd268") (+ "+") (number_literal "0xe84")) () ")")))) (; ";")) (expression_statement "ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0]);" (call_expression "ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0])" (identifier "ctrl_droplist") (argument_list "(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0])" (( "(") (identifier "puVar1") (, ",") (identifier "puVar6") (, ",") (number_literal "0x66") (, ",") (number_literal "0x28") (, ",") (identifier "uVar9") (, ",") (binary_expression "PTR_LAB_000bd500 + -0x2000" (identifier "PTR_LAB_000bd500") (+ "+") (number_literal "-0x2000")) (, ",") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (if_statement "if (local_2c != *(int *)PTR___stack_chk_guard_000be114) {\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }" (if "if") (parenthesized_expression "(local_2c != *(int *)PTR___stack_chk_guard_000be114)" (( "(") (binary_expression "local_2c != *(int *)PTR___stack_chk_guard_000be114" (identifier "local_2c") (!= "!=") (pointer_expression "*(int *)PTR___stack_chk_guard_000be114" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000be114" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000be114")))) () ")")) (compound_statement "{\n    puVar12 = PTR___stack_chk_fail_000bddb4;\n    (*(code *)PTR___stack_chk_fail_000bddb4)();\n    uVar9 = *puVar1;\n    uVar11 = *puVar6;\n    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n    if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }\n    return iVar4;\n  }" ({ "{") (expression_statement "puVar12 = PTR___stack_chk_fail_000bddb4;" (assignment_expression "puVar12 = PTR___stack_chk_fail_000bddb4" (identifier "puVar12") (= "=") (identifier "PTR___stack_chk_fail_000bddb4")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000bddb4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000bddb4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000bddb4)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000bddb4" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000bddb4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000bddb4"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar9 = *puVar1;" (assignment_expression "uVar9 = *puVar1" (identifier "uVar9") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "uVar11 = *puVar6;" (assignment_expression "uVar11 = *puVar6" (identifier "uVar11") (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);" (assignment_expression "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" (parenthesized_expression "(**(code **)(puVar12 + 0x7f504))" (( "(") (pointer_expression "**(code **)(puVar12 + 0x7f504)" (* "*") (pointer_expression "*(code **)(puVar12 + 0x7f504)" (* "*") (cast_expression "(code **)(puVar12 + 0x7f504)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x7f504)" (( "(") (binary_expression "puVar12 + 0x7f504" (identifier "puVar12") (+ "+") (number_literal "0x7f504")) () ")"))))) () ")")) (argument_list "(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" (( "(") (identifier "uVar9") (, ",") (binary_expression "*(int *)(puVar12 + 0x7e7e8) + -0x57ec" (pointer_expression "*(int *)(puVar12 + 0x7e7e8)" (* "*") (cast_expression "(int *)(puVar12 + 0x7e7e8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + 0x7e7e8)" (( "(") (binary_expression "puVar12 + 0x7e7e8" (identifier "puVar12") (+ "+") (number_literal "0x7e7e8")) () ")")))) (+ "+") (number_literal "-0x57ec")) () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n      iVar4 = -1;\n    }\n    else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = -1;\n    }" ({ "{") (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }" (else "else") (compound_statement "{\n      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);\n      if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }\n    }" ({ "{") (expression_statement "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);" (assignment_expression "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" (parenthesized_expression "(**(code **)(puVar12 + 0x7f504))" (( "(") (pointer_expression "**(code **)(puVar12 + 0x7f504)" (* "*") (pointer_expression "*(code **)(puVar12 + 0x7f504)" (* "*") (cast_expression "(code **)(puVar12 + 0x7f504)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x7f504)" (( "(") (binary_expression "puVar12 + 0x7f504" (identifier "puVar12") (+ "+") (number_literal "0x7f504")) () ")"))))) () ")")) (argument_list "(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec)" (( "(") (identifier "uVar11") (, ",") (binary_expression "*(int *)(puVar12 + 0x7e7e8) + -0x57ec" (pointer_expression "*(int *)(puVar12 + 0x7e7e8)" (* "*") (cast_expression "(int *)(puVar12 + 0x7e7e8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + 0x7e7e8)" (( "(") (binary_expression "puVar12 + 0x7e7e8" (identifier "puVar12") (+ "+") (number_literal "0x7e7e8")) () ")")))) (+ "+") (number_literal "-0x57ec")) () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n        iVar4 = 1;\n      }\n      else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = 1;\n      }" ({ "{") (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }" (else "else") (compound_statement "{\n        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);\n      }" ({ "{") (expression_statement "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);" (assignment_expression "iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(puVar12 + 0x7f504))(uVar9,uVar11)" (parenthesized_expression "(**(code **)(puVar12 + 0x7f504))" (( "(") (pointer_expression "**(code **)(puVar12 + 0x7f504)" (* "*") (pointer_expression "*(code **)(puVar12 + 0x7f504)" (* "*") (cast_expression "(code **)(puVar12 + 0x7f504)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x7f504)" (( "(") (binary_expression "puVar12 + 0x7f504" (identifier "puVar12") (+ "+") (number_literal "0x7f504")) () ")"))))) () ")")) (argument_list "(uVar9,uVar11)" (( "(") (identifier "uVar9") (, ",") (identifier "uVar11") () ")")))) (; ";")) (} "}")))) (} "}")))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (return_statement "return *(int *)PTR___stack_chk_guard_000be114;" (return "return") (pointer_expression "*(int *)PTR___stack_chk_guard_000be114" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000be114" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000be114"))) (; ";")) (} "}")))

void function_1(type_1 *b,int var_1,int parity_mask,int flow_mask)

{
  if (var_1 != 0) {
                    /* WARNING: Subroutine does not return */
    var_2(b,var_3 + 0xe40,
                  var_3 + 0xe94);
  }
                    /* WARNING: Subroutine does not return */
  var_4(b,var_3 + 0x6178,var_3 + -0x56a0
              ,var_3 + -0x56d0);
}


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

int MASKED(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  undefined4 *puVar6;
  int iVar7;
  int iVar8;
  undefined4 uVar9;
  int *piVar10;
  undefined4 uVar11;
  undefined *puVar12;
  undefined4 local_34 [2];
  int local_2c;
  
  local_2c = *(int *)PTR___stack_chk_guard_000be114;
  if (param_2 == 0) {
    iVar4 = ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0x6178,
                        PTR_shapetypes_456__000bd268 + -0x56a0,
                        PTR_shapetypes_456__000bd268 + -0x56d0);
    puVar12 = PTR_config_protocolbuttons_handler_000bd42c;
    if (0 < *(int *)(iVar4 + 0x10)) {
      puVar2 = PTR_shapetypes_456__000bd268 + 0xe14;
      iVar8 = 0;
      do {
        piVar10 = *(int **)(*(int *)(iVar4 + 0x18) + iVar8 * 4);
        if ((*piVar10 == 2) && ((undefined *)piVar10[4] == puVar12)) {
          iVar7 = piVar10[9];
          piVar10[9] = iVar7 + 1;
          piVar10[8] = piVar10[8] + 1;
          iVar7 = saferealloc(piVar10[10],iVar7 + 1,4);
          piVar10[10] = iVar7;
          iVar5 = piVar10[9];
          uVar9 = dupstr(puVar2);
          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar9;
          iVar7 = saferealloc(piVar10[0xc],piVar10[9],4);
          piVar10[0xc] = iVar7;
          iVar5 = piVar10[9];
          I(local_34,4);
          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];
          if (piVar10[0xb] != 0) {
            iVar7 = saferealloc(piVar10[0xb],piVar10[9],1);
            piVar10[0xb] = iVar7;
            *(undefined1 *)(iVar7 + piVar10[9] + -1) = 0x72;
          }
        }
        iVar8 = iVar8 + 1;
      } while (iVar8 < *(int *)(iVar4 + 0x10));
    }
    puVar12 = PTR_shapetypes_456__000bd268;
    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)
    ;
    uVar3 = ctrl_getset(param_1,puVar12 + 0xe40,PTR_shapetypes_456__000bd268 + 0xed4,
                        PTR_shapetypes_456__000bd268 + 0xebc);
    P(local_34,0);
    uVar9 = local_34[0];
    I(local_34,0x39);
    uVar11 = local_34[0];
    I(local_34,1);
    ctrl_editbox(uVar3,PTR_shapetypes_456__000bd268 + 0xedc,0x6c,0x28,uVar9,
                 PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);
  }
  else {
    ctrl_settitle(param_1,PTR_shapetypes_456__000bd268 + 0xe40,PTR_shapetypes_456__000bd268 + 0xe94)
    ;
  }
  puVar1 = (undefined4 *)
           ctrl_getset(param_1,PTR_shapetypes_456__000bd268 + 0xe40,
                       PTR_shapetypes_456__000bd268 + 0xe38,PTR_shapetypes_456__000bd268 + 0xe1c);
  P(local_34,0);
  uVar9 = local_34[0];
  I(local_34,0x3a);
  uVar11 = local_34[0];
  I(local_34,0xffffffff);
  puVar12 = PTR_conf_editbox_handler_000bd430;
  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe54,0x73,0x28,uVar9,
               PTR_conf_editbox_handler_000bd430,uVar11,local_34[0]);
  P(local_34,0);
  uVar9 = local_34[0];
  I(local_34,0x3b);
  uVar11 = local_34[0];
  I(local_34,0xffffffff);
  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe64,0x62,0x28,uVar9,puVar12,uVar11,
               local_34[0]);
  P(local_34,0);
  uVar9 = local_34[0];
  I(local_34,0x3c);
  uVar11 = local_34[0];
  I(local_34,0xfffffffe);
  ctrl_editbox(puVar1,PTR_shapetypes_456__000bd268 + 0xe70,0x74,0x28,uVar9,puVar12,uVar11,
               local_34[0]);
  P(local_34,0);
  uVar9 = local_34[0];
  I(local_34,param_3);
  ctrl_droplist(puVar1,PTR_shapetypes_456__000bd268 + 0xe7c,0x70,0x28,uVar9,
                PTR_LAB_000bd500 + -0x1dac,local_34[0]);
  P(local_34,0);
  uVar9 = local_34[0];
  I(local_34,param_4);
  puVar6 = (undefined4 *)(PTR_shapetypes_456__000bd268 + 0xe84);
  ctrl_droplist(puVar1,puVar6,0x66,0x28,uVar9,PTR_LAB_000bd500 + -0x2000,local_34[0]);
  if (local_2c != *(int *)PTR___stack_chk_guard_000be114) {
    puVar12 = PTR___stack_chk_fail_000bddb4;
    (*(code *)PTR___stack_chk_fail_000bddb4)();
    uVar9 = *puVar1;
    uVar11 = *puVar6;
    iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);
    if (iVar4 == 0) {
      iVar4 = -1;
    }
    else {
      iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar11,*(int *)(puVar12 + 0x7e7e8) + -0x57ec);
      if (iVar4 == 0) {
        iVar4 = 1;
      }
      else {
        iVar4 = (**(code **)(puVar12 + 0x7f504))(uVar9,uVar11);
      }
    }
    return iVar4;
  }
  return *(int *)PTR___stack_chk_guard_000be114;
}

