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

{
  controlset *pcVar1;
  size_t n;
  int iVar2;
  control *pcVar3;
  
  if (midsession != 0) {
                    /* WARNING: Subroutine does not return */
    ctrl_settitle(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,
                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);
  }
  pcVar1 = ctrl_getset(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,
                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x2324,
                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x22f4);
  if (0 < pcVar1->ncontrols) {
    iVar2 = 0;
    do {
      pcVar3 = pcVar1->ctrls[iVar2];
      if (((pcVar3->generic).type == 2) &&
         ((pcVar3->generic).handler == (handler_fn)PTR_config_protocolbuttons_handler_000b549c)) {
        n = (pcVar3->editbox).password + 1;
        (pcVar3->fileselect).filter = (char *)((pcVar3->editbox).percentwidth + 1);
                    /* WARNING: Subroutine does not return */
        (pcVar3->editbox).password = n;
        saferealloc((pcVar3->radio).buttons,n,4);
      }
      iVar2 = iVar2 + 1;
    } while (iVar2 < pcVar1->ncontrols);
  }
                    /* WARNING: Subroutine does not return */
  ctrl_settitle(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,
                PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);
}



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

{
  undefined *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  undefined4 *puVar6;
  int iVar7;
  undefined *puVar8;
  int iVar9;
  undefined4 uVar10;
  undefined4 uVar11;
  undefined *puVar12;
  int *piVar13;
  undefined4 local_34 [2];
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_000b60f8;
  puVar12 = PTR_conf_editbox_handler_000b547c;
  puVar8 = PTR_s_XXXXXXXXXX___________000b5214;
  local_2c = *(int *)PTR___stack_chk_guard_000b60f8;
  if (param_2 == 0) {
    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,
                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);
    puVar8 = PTR_config_protocolbuttons_handler_000b549c;
    iVar7 = *(int *)(iVar4 + 0x10);
    if (0 < iVar7) {
      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;
      iVar9 = 0;
      do {
        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);
        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {
          iVar7 = piVar13[9];
          piVar13[8] = piVar13[8] + 1;
          piVar13[9] = iVar7 + 1;
          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);
          iVar5 = piVar13[9];
          piVar13[10] = iVar7;
          uVar10 = dupstr(puVar12);
          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;
          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);
          iVar5 = piVar13[9];
          piVar13[0xc] = iVar7;
          I(local_34,4);
          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];
          if (piVar13[0xb] == 0) {
            iVar7 = *(int *)(iVar4 + 0x10);
          }
          else {
            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);
            piVar13[0xb] = iVar7;
            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;
            iVar7 = *(int *)(iVar4 + 0x10);
          }
        }
        iVar9 = iVar9 + 1;
      } while (iVar9 < iVar7);
    }
    puVar12 = PTR_conf_editbox_handler_000b547c;
    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;
    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,
                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);
    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,
                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);
    P(local_34,0);
    uVar10 = local_34[0];
    I(local_34,0x39);
    uVar11 = local_34[0];
    I(local_34,1);
    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11
                 ,local_34[0]);
  }
  else {
    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,
                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);
  }
  puVar2 = (undefined4 *)
           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,
                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894);
  P(local_34,0);
  uVar10 = local_34[0];
  I(local_34,0x3a);
  uVar11 = local_34[0];
  I(local_34,0xffffffff);
  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,
               local_34[0]);
  P(local_34,0);
  uVar10 = local_34[0];
  I(local_34,0x3b);
  uVar11 = local_34[0];
  I(local_34,0xffffffff);
  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,
               local_34[0]);
  P(local_34,0);
  uVar10 = local_34[0];
  I(local_34,0x3c);
  uVar11 = local_34[0];
  I(local_34,0xfffffffe);
  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,
               local_34[0]);
  P(local_34,0);
  uVar10 = local_34[0];
  I(local_34,param_3);
  ctrl_droplist(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,
                PTR_LAB_000b55b4 + -0x48c8,local_34[0]);
  P(local_34,0);
  uVar10 = local_34[0];
  I(local_34,param_4);
  puVar6 = (undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c);
  ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0]);
  if (local_2c == *(int *)puVar1) {
    return *(int *)puVar1;
  }
  puVar8 = PTR___stack_chk_fail_000b5d9c;
  (*(code *)PTR___stack_chk_fail_000b5d9c)();
  iVar7 = *(int *)(puVar8 + 0x79310);
  uVar10 = *puVar2;
  uVar11 = *puVar6;
  iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100);
  if (iVar4 == 0) {
    iVar4 = -1;
  }
  else {
    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);
    if (iVar4 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0003bf9c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);
      return iVar4;
    }
    iVar4 = 1;
  }
  return iVar4;
}


lui gp,0x8
addiu gp,gp,0x1838
addu gp,gp,t9
addiu sp,sp,-0x68
sw s2,0x48(sp)
lw s2,-0x70d8(gp)
sw gp,0x20(sp)
sw s5,0x54(sp)
or s5,a3,zero
sw s4,0x50(sp)
or s4,a2,zero
sw s3,0x4c(sp)
or s3,a0,zero
sw ra,0x64(sp)
sw s8,0x60(sp)
sw s7,0x5c(sp)
sw s6,0x58(sp)
sw s1,0x44(sp)
sw s0,0x40(sp)
lw v0,0x0(s2)
sw v0,0x3c(sp)
beq a1,zero,0x0003bca8
_lw s1,-0x7fbc(gp)
addiu s0,sp,0x34
lw a2,-0x7fbc(gp)
lw t9,-0x7d80(gp)
addiu a1,s1,-0x7870
lw s6,-0x7d54(gp)
bal 0x0002e23c
_addiu a2,a2,-0x781c
lw gp,0x20(sp)
lw a3,-0x7fbc(gp)
addiu a1,s1,-0x7870
lw a2,-0x7fbc(gp)
or a0,s3,zero
lw t9,-0x7d90(gp)
addiu a3,a3,-0x7894
bal 0x0002e3b8
_addiu a2,a2,-0x7878
or a1,zero,zero
lw gp,0x20(sp)
or a0,s0,zero
lw t9,-0x7d88(gp)
bal 0x0002e014
_or s1,v0,zero
li a1,0x3a
lw gp,0x20(sp)
or a0,s0,zero
lw t9,-0x7d70(gp)
bal 0x0002e008
_lw s3,0x34(sp)
li a1,-0x1
lw gp,0x20(sp)
or a0,s0,zero
lw t9,-0x7d70(gp)
bal 0x0002e008
_lw s7,0x34(sp)
li a3,0x28
lw gp,0x20(sp)
li a2,0x73
lw v0,0x34(sp)
or a0,s1,zero
sw s7,0x18(sp)
sw s3,0x10(sp)
sw v0,0x1c(sp)
sw s6,0x14(sp)
lw a1,-0x7fbc(gp)
lw t9,-0x7d7c(gp)
bal 0x0002e7f4
_addiu a1,a1,-0x785c
or a1,zero,zero
lw gp,0x20(sp)
lw t9,-0x7d88(gp)
bal 0x0002e014
_or a0,s0,zero
li a1,0x3b
lw gp,0x20(sp)
or a0,s0,zero
lw t9,-0x7d70(gp)
bal 0x0002e008
_lw s3,0x34(sp)
li a1,-0x1
lw gp,0x20(sp)
or a0,s0,zero
lw t9,-0x7d70(gp)
bal 0x0002e008
_lw s7,0x34(sp)
li a3,0x28
lw gp,0x20(sp)
li a2,0x62
lw v0,0x34(sp)
or a0,s1,zero
sw s7,0x18(sp)
sw s3,0x10(sp)
sw v0,0x1c(sp)
sw s6,0x14(sp)
lw a1,-0x7fbc(gp)
lw t9,-0x7d7c(gp)
bal 0x0002e7f4
_addiu a1,a1,-0x784c
or a1,zero,zero
lw gp,0x20(sp)
lw t9,-0x7d88(gp)
bal 0x0002e014
_or a0,s0,zero
li a1,0x3c
lw gp,0x20(sp)
or a0,s0,zero
lw t9,-0x7d70(gp)
bal 0x0002e008
_lw s3,0x34(sp)
li a1,-0x2
lw gp,0x20(sp)
or a0,s0,zero
lw t9,-0x7d70(gp)
bal 0x0002e008
_lw s7,0x34(sp)
li a3,0x28
lw gp,0x20(sp)
li a2,0x74
lw v0,0x34(sp)
or a0,s1,zero
sw s3,0x10(sp)
sw s7,0x18(sp)
sw v0,0x1c(sp)
sw s6,0x14(sp)
lw a1,-0x7fbc(gp)
lw t9,-0x7d7c(gp)
bal 0x0002e7f4
_addiu a1,a1,-0x7840
or a1,zero,zero
lw gp,0x20(sp)
lw t9,-0x7d88(gp)
bal 0x0002e014
_or a0,s0,zero
or a0,s0,zero
lw gp,0x20(sp)
or a1,s4,zero
lw t9,-0x7d70(gp)
bal 0x0002e008
_lw s3,0x34(sp)
li a3,0x28
lw gp,0x20(sp)
li a2,0x70
lw v0,0x34(sp)
or a0,s1,zero
sw s3,0x10(sp)
sw v0,0x18(sp)
lw v0,-0x7c1c(gp)
lw a1,-0x7fbc(gp)
lw t9,-0x7d38(gp)
addiu v0,v0,-0x48c8
addiu a1,a1,-0x7834
bal 0x0002eccc
_sw v0,0x14(sp)
or a1,zero,zero
lw gp,0x20(sp)
lw t9,-0x7d88(gp)
bal 0x0002e014
_or a0,s0,zero
or a0,s0,zero
lw gp,0x20(sp)
or a1,s5,zero
lw t9,-0x7d70(gp)
bal 0x0002e008
_lw s0,0x34(sp)
li a3,0x28
lw gp,0x20(sp)
li a2,0x66
lw v0,0x34(sp)
or a0,s1,zero
sw s0,0x10(sp)
sw v0,0x18(sp)
lw v0,-0x7c1c(gp)
lw a1,-0x7fbc(gp)
lw t9,-0x7d38(gp)
addiu v0,v0,-0x4b20
addiu a1,a1,-0x782c
bal 0x0002eccc
_sw v0,0x14(sp)
lw v1,0x3c(sp)
lw v0,0x0(s2)
bne v1,v0,0x0003bf10
_lw gp,0x20(sp)
lw ra,0x64(sp)
lw s8,0x60(sp)
lw s7,0x5c(sp)
lw s6,0x58(sp)
lw s5,0x54(sp)
lw s4,0x50(sp)
lw s3,0x4c(sp)
lw s2,0x48(sp)
lw s1,0x44(sp)
lw s0,0x40(sp)
jr ra
_addiu sp,sp,0x68
lw a3,-0x7fa0(gp)
or s1,a1,zero
lw a2,-0x7fa0(gp)
addiu s0,sp,0x34
lw a1,-0x7fbc(gp)
lw t9,-0x7d90(gp)
addiu a3,a3,0x22f4
addiu a2,a2,0x2324
bal 0x0002e3b8
_addiu a1,a1,-0x2568
lw a1,0x10(v0)
or a3,v0,zero
blez a1,0x0003be3c
_lw gp,0x20(sp)
lw s7,-0x7fbc(gp)
lui s6,0x3fff
lw t0,-0x7d34(gp)
addiu s0,sp,0x34
ori s6,s6,0xffff
b 0x0003bd0c
_addiu s7,s7,-0x789c
addiu s1,s1,0x1
slt v0,s1,a1
beq v0,zero,0x0003be3c
_nop
lw v1,0x18(a3)
sll v0,s1,0x2
li a0,0x2
addu v0,v1,v0
lw s8,0x0(v0)
lw v0,0x0(s8)
bne v0,a0,0x0003bcfc
_nop
lw v0,0x10(s8)
bne v0,t0,0x0003bcfc
_li a2,0x4
lw v0,0x24(s8)
lw v1,0x20(s8)
lw t9,-0x7ec8(gp)
addiu v0,v0,0x1
lw a0,0x28(s8)
addiu v1,v1,0x1
sw t0,0x30(sp)
sw a3,0x2c(sp)
or a1,v0,zero
sw v1,0x20(s8)
bal 0x0003593c
_sw v0,0x24(s8)
or a0,s7,zero
lw v1,0x24(s8)
lw gp,0x20(sp)
sw v0,0x28(s8)
addu v1,v1,s6
sll v1,v1,0x2
lw t9,-0x7f98(gp)
addu v1,v0,v1
bal 0x0003543c
_sw v1,0x28(sp)
li a2,0x4
lw v1,0x28(sp)
lw gp,0x20(sp)
sw v0,0x0(v1)
lw t9,-0x7ec8(gp)
lw a1,0x24(s8)
bal 0x0003593c
_lw a0,0x30(s8)
li a1,0x4
lw v1,0x24(s8)
or a0,s0,zero
lw gp,0x20(sp)
sw v0,0x30(s8)
addu v1,v1,s6
sll v1,v1,0x2
lw t9,-0x7d70(gp)
addu v1,v0,v1
bal 0x0002e008
_sw v1,0x28(sp)
lw v1,0x28(sp)
lw v0,0x34(sp)
lw gp,0x20(sp)
lw a3,0x2c(sp)
lw t0,0x30(sp)
sw v0,0x0(v1)
lw a0,0x2c(s8)
beq a0,zero,0x0003bf08
_lw t9,-0x7ec8(gp)
li a2,0x1
lw a1,0x24(s8)
sw t0,0x2c(sp)
bal 0x0003593c
_sw a3,0x28(sp)
lw v1,0x24(s8)
lw gp,0x20(sp)
lw a3,0x28(sp)
lw t0,0x2c(sp)
sw v0,0x2c(s8)
addu v0,v0,v1
li v1,0x72
sb v1,-0x1(v0)
b 0x0003bcfc
_lw a1,0x10(a3)
lw s1,-0x7fbc(gp)
or a0,s3,zero
lw a2,-0x7fbc(gp)
lw t9,-0x7d80(gp)
addiu a1,s1,-0x7870
lw s6,-0x7d54(gp)
bal 0x0002e23c
_addiu a2,a2,-0x781c
addiu a1,s1,-0x7870
lw gp,0x20(sp)
or a0,s3,zero
lw a3,-0x7fbc(gp)
lw a2,-0x7fbc(gp)
lw t9,-0x7d90(gp)
addiu a3,a3,-0x77f4
bal 0x0002e3b8
_addiu a2,a2,-0x77dc
or a1,zero,zero
lw gp,0x20(sp)
or a0,s0,zero
lw t9,-0x7d88(gp)
bal 0x0002e014
_sw v0,0x28(sp)
li a1,0x39
lw gp,0x20(sp)
or a0,s0,zero
lw t9,-0x7d70(gp)
bal 0x0002e008
_lw s7,0x34(sp)
li a1,0x1
lw gp,0x20(sp)
or a0,s0,zero
lw t9,-0x7d70(gp)
bal 0x0002e008
_lw s8,0x34(sp)
li a3,0x28
lw gp,0x20(sp)
li a2,0x6c
lw v0,0x28(sp)
sw s8,0x18(sp)
sw s6,0x14(sp)
sw s7,0x10(sp)
or a0,v0,zero
lw a1,-0x7fbc(gp)
lw v0,0x34(sp)
lw t9,-0x7d7c(gp)
addiu a1,a1,-0x77d4
bal 0x0002e7f4
_sw v0,0x1c(sp)
b 0x0003ba14
_lw gp,0x20(sp)
b 0x0003bcfc
_lw a1,0x10(a3)
lw t9,-0x7434(gp)
jalr t9
_nop
nop
lui gp,0x8
addiu gp,gp,0x12b0
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7268(gp)
sw s0,0x18(sp)
sw s1,0x1c(sp)
sw s2,0x20(sp)
sw gp,0x10(sp)
sw ra,0x24(sp)
lw s0,-0x7fa0(gp)
lw s1,0x0(a0)
lw s2,0x0(a1)
addiu a1,s0,0x2100
jalr t9
_or a0,s1,zero
beq v0,zero,0x0003bfc0
_lw gp,0x10(sp)
lw t9,-0x7268(gp)
addiu a1,s0,0x2100
jalr t9
_or a0,s2,zero
beq v0,zero,0x0003bfa4
_lw gp,0x10(sp)
lw ra,0x24(sp)
or a1,s2,zero
lw s0,0x18(sp)
or a0,s1,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw t9,-0x7268(gp)
jr t9
_addiu sp,sp,0x28
li v0,0x1
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
b 0x0003bfa8
_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  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined *puVar8;\n  int iVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  int *piVar13;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  puVar12 = PTR_conf_editbox_handler_000b547c;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n  local_2c = *(int *)PTR___stack_chk_guard_000b60f8;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }\n  puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c);\n  ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0]);\n  if (local_2c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  iVar7 = *(int *)(puVar8 + 0x79310);\n  uVar10 = *puVar2;\n  uVar11 = *puVar6;\n  iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100);\n  if (iVar4 == 0) {\n    iVar4 = -1;\n  }\n  else {\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0003bf9c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }\n  return iVar4;\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  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined *puVar8;\n  int iVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  int *piVar13;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  puVar12 = PTR_conf_editbox_handler_000b547c;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n  local_2c = *(int *)PTR___stack_chk_guard_000b60f8;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }\n  puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c);\n  ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0]);\n  if (local_2c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  iVar7 = *(int *)(puVar8 + 0x79310);\n  uVar10 = *puVar2;\n  uVar11 = *puVar6;\n  iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100);\n  if (iVar4 == 0) {\n    iVar4 = -1;\n  }\n  else {\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0003bf9c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }\n  return iVar4;\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  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined *puVar8;\n  int iVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  int *piVar13;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  puVar12 = PTR_conf_editbox_handler_000b547c;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n  local_2c = *(int *)PTR___stack_chk_guard_000b60f8;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }\n  puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c);\n  ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0]);\n  if (local_2c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  iVar7 = *(int *)(puVar8 + 0x79310);\n  uVar10 = *puVar2;\n  uVar11 = *puVar6;\n  iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100);\n  if (iVar4 == 0) {\n    iVar4 = -1;\n  }\n  else {\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0003bf9c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *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 "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int *piVar13;" primitive_type (pointer_declarator "*piVar13" * 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 "puVar1 = PTR___stack_chk_guard_000b60f8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b60f8" identifier = identifier) ;) (expression_statement "puVar12 = PTR_conf_editbox_handler_000b547c;" (assignment_expression "puVar12 = PTR_conf_editbox_handler_000b547c" identifier = identifier) ;) (expression_statement "puVar8 = PTR_s_XXXXXXXXXX___________000b5214;" (assignment_expression "puVar8 = PTR_s_XXXXXXXXXX___________000b5214" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b60f8;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b60f8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b60f8" * (cast_expression "(int *)PTR___stack_chk_guard_000b60f8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }" { (expression_statement "iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);" (assignment_expression "iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4)" identifier = (call_expression "ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4)" identifier (argument_list "(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4)" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x2568" identifier + number_literal) , (binary_expression "PTR_DAT_000b5230 + 0x2324" identifier + number_literal) , (binary_expression "PTR_DAT_000b5230 + 0x22f4" identifier + number_literal) )))) ;) (expression_statement "puVar8 = PTR_config_protocolbuttons_handler_000b549c;" (assignment_expression "puVar8 = PTR_config_protocolbuttons_handler_000b549c" identifier = identifier) ;) (expression_statement "iVar7 = *(int *)(iVar4 + 0x10);" (assignment_expression "iVar7 = *(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) ))))) ;) (if_statement "if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }" { (expression_statement "puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;" (assignment_expression "puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c" identifier = (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x789c" identifier + number_literal)) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);" do (compound_statement "{\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      }" { (expression_statement "piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);" (assignment_expression "piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4)" * (cast_expression "(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar4 + 0x18) + iVar9 * 4)" ( (binary_expression "*(int *)(iVar4 + 0x18) + iVar9 * 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 "iVar9 * 4" identifier * number_literal)) ))))) ;) (if_statement "if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }" if (parenthesized_expression "((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8))" ( (binary_expression "(*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)" (parenthesized_expression "(*piVar13 == 2)" ( (binary_expression "*piVar13 == 2" (pointer_expression "*piVar13" * identifier) == number_literal) )) && (parenthesized_expression "((undefined *)piVar13[4] == puVar8)" ( (binary_expression "(undefined *)piVar13[4] == puVar8" (cast_expression "(undefined *)piVar13[4]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar13[4]" identifier [ number_literal ])) == identifier) ))) )) (compound_statement "{\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }" { (expression_statement "iVar7 = piVar13[9];" (assignment_expression "iVar7 = piVar13[9]" identifier = (subscript_expression "piVar13[9]" identifier [ number_literal ])) ;) (expression_statement "piVar13[8] = piVar13[8] + 1;" (assignment_expression "piVar13[8] = piVar13[8] + 1" (subscript_expression "piVar13[8]" identifier [ number_literal ]) = (binary_expression "piVar13[8] + 1" (subscript_expression "piVar13[8]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "piVar13[9] = iVar7 + 1;" (assignment_expression "piVar13[9] = iVar7 + 1" (subscript_expression "piVar13[9]" identifier [ number_literal ]) = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);" (assignment_expression "iVar7 = saferealloc(piVar13[10],iVar7 + 1,4)" identifier = (call_expression "saferealloc(piVar13[10],iVar7 + 1,4)" identifier (argument_list "(piVar13[10],iVar7 + 1,4)" ( (subscript_expression "piVar13[10]" identifier [ number_literal ]) , (binary_expression "iVar7 + 1" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar5 = piVar13[9];" (assignment_expression "iVar5 = piVar13[9]" identifier = (subscript_expression "piVar13[9]" identifier [ number_literal ])) ;) (expression_statement "piVar13[10] = iVar7;" (assignment_expression "piVar13[10] = iVar7" (subscript_expression "piVar13[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar10 = dupstr(puVar12);" (assignment_expression "uVar10 = dupstr(puVar12)" identifier = (call_expression "dupstr(puVar12)" identifier (argument_list "(puVar12)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;" (assignment_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10" (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(piVar13[0xc],piVar13[9],4);" (assignment_expression "iVar7 = saferealloc(piVar13[0xc],piVar13[9],4)" identifier = (call_expression "saferealloc(piVar13[0xc],piVar13[9],4)" identifier (argument_list "(piVar13[0xc],piVar13[9],4)" ( (subscript_expression "piVar13[0xc]" identifier [ number_literal ]) , (subscript_expression "piVar13[9]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "iVar5 = piVar13[9];" (assignment_expression "iVar5 = piVar13[9]" identifier = (subscript_expression "piVar13[9]" identifier [ number_literal ])) ;) (expression_statement "piVar13[0xc] = iVar7;" (assignment_expression "piVar13[0xc] = iVar7" (subscript_expression "piVar13[0xc]" identifier [ number_literal ]) = identifier) ;) (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 (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }" if (parenthesized_expression "(piVar13[0xb] == 0)" ( (binary_expression "piVar13[0xb] == 0" (subscript_expression "piVar13[0xb]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }" { (expression_statement "iVar7 = *(int *)(iVar4 + 0x10);" (assignment_expression "iVar7 = *(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) ))))) ;) }) (else_clause "else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }" else (compound_statement "{\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }" { (expression_statement "iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);" (assignment_expression "iVar7 = saferealloc(piVar13[0xb],piVar13[9],1)" identifier = (call_expression "saferealloc(piVar13[0xb],piVar13[9],1)" identifier (argument_list "(piVar13[0xb],piVar13[9],1)" ( (subscript_expression "piVar13[0xb]" identifier [ number_literal ]) , (subscript_expression "piVar13[9]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "piVar13[0xb] = iVar7;" (assignment_expression "piVar13[0xb] = iVar7" (subscript_expression "piVar13[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;" (assignment_expression "*(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72" (pointer_expression "*(undefined1 *)(iVar7 + piVar13[9] + -1)" * (cast_expression "(undefined1 *)(iVar7 + piVar13[9] + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + piVar13[9] + -1)" ( (binary_expression "iVar7 + piVar13[9] + -1" (binary_expression "iVar7 + piVar13[9]" identifier + (subscript_expression "piVar13[9]" identifier [ number_literal ])) + number_literal) )))) = number_literal) ;) (expression_statement "iVar7 = *(int *)(iVar4 + 0x10);" (assignment_expression "iVar7 = *(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 "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar9 < iVar7)" ( (binary_expression "iVar9 < iVar7" identifier < identifier) )) ;) })) (expression_statement "puVar12 = PTR_conf_editbox_handler_000b547c;" (assignment_expression "puVar12 = PTR_conf_editbox_handler_000b547c" identifier = identifier) ;) (expression_statement "puVar8 = PTR_s_XXXXXXXXXX___________000b5214;" (assignment_expression "puVar8 = PTR_s_XXXXXXXXXX___________000b5214" identifier = identifier) ;) (expression_statement "ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);" (call_expression "ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" identifier (argument_list "(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7870" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x781c" identifier + number_literal) ))) ;) (expression_statement "uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);" (assignment_expression "uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4)" identifier = (call_expression "ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4)" identifier (argument_list "(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4)" ( identifier , (binary_expression "puVar8 + -0x7870" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4" 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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = 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_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);" (call_expression "ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0])" identifier (argument_list "(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0])" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4" 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_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }" else (compound_statement "{\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }" { (expression_statement "ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);" (call_expression "ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" identifier (argument_list "(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7870" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x781c" identifier + number_literal) ))) ;) }))) (expression_statement "puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894);" (assignment_expression "puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894)" identifier = (cast_expression "(undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894)" identifier (argument_list "(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894)" ( identifier , (binary_expression "puVar8 + -0x7870" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7878" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7894" 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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = 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 "ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" identifier (argument_list "(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x785c" 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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = 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(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" identifier (argument_list "(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x784c" 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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = 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(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" identifier (argument_list "(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7840" 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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = 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(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0]);" (call_expression "ctrl_droplist(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0])" identifier (argument_list "(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0])" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7834" identifier + number_literal) , number_literal , number_literal , identifier , (binary_expression "PTR_LAB_000b55b4 + -0x48c8" 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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = 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_s_XXXXXXXXXX___________000b5214 + -0x782c);" (assignment_expression "puVar6 = (undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c)" identifier = (cast_expression "(undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x782c" identifier + number_literal) )))) ;) (expression_statement "ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0]);" (call_expression "ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0])" identifier (argument_list "(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0])" ( identifier , identifier , number_literal , number_literal , identifier , (binary_expression "PTR_LAB_000b55b4 + -0x4b20" identifier + number_literal) , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (if_statement "if (local_2c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar1)" ( (binary_expression "local_2c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(int *)puVar1;\n  }" { (return_statement "return *(int *)puVar1;" return (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar8 = PTR___stack_chk_fail_000b5d9c;" (assignment_expression "puVar8 = PTR___stack_chk_fail_000b5d9c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b5d9c)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b5d9c" * (cast_expression "(code *)PTR___stack_chk_fail_000b5d9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar7 = *(int *)(puVar8 + 0x79310);" (assignment_expression "iVar7 = *(int *)(puVar8 + 0x79310)" identifier = (pointer_expression "*(int *)(puVar8 + 0x79310)" * (cast_expression "(int *)(puVar8 + 0x79310)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0x79310)" ( (binary_expression "puVar8 + 0x79310" identifier + number_literal) ))))) ;) (expression_statement "uVar10 = *puVar2;" (assignment_expression "uVar10 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "uVar11 = *puVar6;" (assignment_expression "uVar11 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100);" (assignment_expression "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100)" identifier = (call_expression "(**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100)" (parenthesized_expression "(**(code **)(puVar8 + 0x7a048))" ( (pointer_expression "**(code **)(puVar8 + 0x7a048)" * (pointer_expression "*(code **)(puVar8 + 0x7a048)" * (cast_expression "(code **)(puVar8 + 0x7a048)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x7a048)" ( (binary_expression "puVar8 + 0x7a048" identifier + number_literal) ))))) )) (argument_list "(uVar10,iVar7 + 0x2100)" ( identifier , (binary_expression "iVar7 + 0x2100" identifier + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n    iVar4 = -1;\n  }\n  else {\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0003bf9c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\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 **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0003bf9c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }" else (compound_statement "{\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0003bf9c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }" { (expression_statement "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);" (assignment_expression "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100)" identifier = (call_expression "(**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100)" (parenthesized_expression "(**(code **)(puVar8 + 0x7a048))" ( (pointer_expression "**(code **)(puVar8 + 0x7a048)" * (pointer_expression "*(code **)(puVar8 + 0x7a048)" * (cast_expression "(code **)(puVar8 + 0x7a048)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x7a048)" ( (binary_expression "puVar8 + 0x7a048" identifier + number_literal) ))))) )) (argument_list "(uVar11,iVar7 + 0x2100)" ( identifier , (binary_expression "iVar7 + 0x2100" identifier + number_literal) )))) ;) (if_statement "if (iVar4 != 0) {\n                    /* WARNING: Could not recover jumptable at 0x0003bf9c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0003bf9c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }" { comment comment (expression_statement "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);" (assignment_expression "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11)" identifier = (call_expression "(**(code **)(puVar8 + 0x7a048))(uVar10,uVar11)" (parenthesized_expression "(**(code **)(puVar8 + 0x7a048))" ( (pointer_expression "**(code **)(puVar8 + 0x7a048)" * (pointer_expression "*(code **)(puVar8 + 0x7a048)" * (cast_expression "(code **)(puVar8 + 0x7a048)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x7a048)" ( (binary_expression "puVar8 + 0x7a048" identifier + number_literal) ))))) )) (argument_list "(uVar10,uVar11)" ( identifier , identifier )))) ;) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "void ser_setup_config_box(controlbox *b,int midsession,int parity_mask,int flow_mask)\n\n{\n  controlset *pcVar1;\n  size_t n;\n  int iVar2;\n  control *pcVar3;\n  \n  if (midsession != 0) {\n                    /* WARNING: Subroutine does not return */\n    ctrl_settitle(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }\n  pcVar1 = ctrl_getset(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x2324,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x22f4);\n  if (0 < pcVar1->ncontrols) {\n    iVar2 = 0;\n    do {\n      pcVar3 = pcVar1->ctrls[iVar2];\n      if (((pcVar3->generic).type == 2) &&\n         ((pcVar3->generic).handler == (handler_fn)PTR_config_protocolbuttons_handler_000b549c)) {\n        n = (pcVar3->editbox).password + 1;\n        (pcVar3->fileselect).filter = (char *)((pcVar3->editbox).percentwidth + 1);\n                    /* WARNING: Subroutine does not return */\n        (pcVar3->editbox).password = n;\n        saferealloc((pcVar3->radio).buttons,n,4);\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < pcVar1->ncontrols);\n  }\n                    /* WARNING: Subroutine does not return */\n  ctrl_settitle(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n}\n\n" (function_definition "void ser_setup_config_box(controlbox *b,int midsession,int parity_mask,int flow_mask)\n\n{\n  controlset *pcVar1;\n  size_t n;\n  int iVar2;\n  control *pcVar3;\n  \n  if (midsession != 0) {\n                    /* WARNING: Subroutine does not return */\n    ctrl_settitle(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }\n  pcVar1 = ctrl_getset(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x2324,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x22f4);\n  if (0 < pcVar1->ncontrols) {\n    iVar2 = 0;\n    do {\n      pcVar3 = pcVar1->ctrls[iVar2];\n      if (((pcVar3->generic).type == 2) &&\n         ((pcVar3->generic).handler == (handler_fn)PTR_config_protocolbuttons_handler_000b549c)) {\n        n = (pcVar3->editbox).password + 1;\n        (pcVar3->fileselect).filter = (char *)((pcVar3->editbox).percentwidth + 1);\n                    /* WARNING: Subroutine does not return */\n        (pcVar3->editbox).password = n;\n        saferealloc((pcVar3->radio).buttons,n,4);\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < pcVar1->ncontrols);\n  }\n                    /* WARNING: Subroutine does not return */\n  ctrl_settitle(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\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  controlset *pcVar1;\n  size_t n;\n  int iVar2;\n  control *pcVar3;\n  \n  if (midsession != 0) {\n                    /* WARNING: Subroutine does not return */\n    ctrl_settitle(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }\n  pcVar1 = ctrl_getset(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x2324,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x22f4);\n  if (0 < pcVar1->ncontrols) {\n    iVar2 = 0;\n    do {\n      pcVar3 = pcVar1->ctrls[iVar2];\n      if (((pcVar3->generic).type == 2) &&\n         ((pcVar3->generic).handler == (handler_fn)PTR_config_protocolbuttons_handler_000b549c)) {\n        n = (pcVar3->editbox).password + 1;\n        (pcVar3->fileselect).filter = (char *)((pcVar3->editbox).percentwidth + 1);\n                    /* WARNING: Subroutine does not return */\n        (pcVar3->editbox).password = n;\n        saferealloc((pcVar3->radio).buttons,n,4);\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < pcVar1->ncontrols);\n  }\n                    /* WARNING: Subroutine does not return */\n  ctrl_settitle(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n}" { (declaration "controlset *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t n;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "control *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (midsession != 0) {\n                    /* WARNING: Subroutine does not return */\n    ctrl_settitle(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\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_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }" { comment (expression_statement "ctrl_settitle(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);" (call_expression "ctrl_settitle(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" identifier (argument_list "(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7870" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x781c" identifier + number_literal) ))) ;) })) (expression_statement "pcVar1 = ctrl_getset(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x2324,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x22f4);" (assignment_expression "pcVar1 = ctrl_getset(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x2324,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x22f4)" identifier = (call_expression "ctrl_getset(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x2324,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x22f4)" identifier (argument_list "(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x2324,\n                       PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x22f4)" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x2568" identifier + number_literal) , (binary_expression "PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x2324" identifier + number_literal) , (binary_expression "PTR_data_CS_ISO8859_4_sbcs2ucs_194__000b5230 + 0x22f4" identifier + number_literal) )))) ;) (if_statement "if (0 < pcVar1->ncontrols) {\n    iVar2 = 0;\n    do {\n      pcVar3 = pcVar1->ctrls[iVar2];\n      if (((pcVar3->generic).type == 2) &&\n         ((pcVar3->generic).handler == (handler_fn)PTR_config_protocolbuttons_handler_000b549c)) {\n        n = (pcVar3->editbox).password + 1;\n        (pcVar3->fileselect).filter = (char *)((pcVar3->editbox).percentwidth + 1);\n                    /* WARNING: Subroutine does not return */\n        (pcVar3->editbox).password = n;\n        saferealloc((pcVar3->radio).buttons,n,4);\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < pcVar1->ncontrols);\n  }" if (parenthesized_expression "(0 < pcVar1->ncontrols)" ( (binary_expression "0 < pcVar1->ncontrols" number_literal < (field_expression "pcVar1->ncontrols" identifier -> field_identifier)) )) (compound_statement "{\n    iVar2 = 0;\n    do {\n      pcVar3 = pcVar1->ctrls[iVar2];\n      if (((pcVar3->generic).type == 2) &&\n         ((pcVar3->generic).handler == (handler_fn)PTR_config_protocolbuttons_handler_000b549c)) {\n        n = (pcVar3->editbox).password + 1;\n        (pcVar3->fileselect).filter = (char *)((pcVar3->editbox).percentwidth + 1);\n                    /* WARNING: Subroutine does not return */\n        (pcVar3->editbox).password = n;\n        saferealloc((pcVar3->radio).buttons,n,4);\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < pcVar1->ncontrols);\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      pcVar3 = pcVar1->ctrls[iVar2];\n      if (((pcVar3->generic).type == 2) &&\n         ((pcVar3->generic).handler == (handler_fn)PTR_config_protocolbuttons_handler_000b549c)) {\n        n = (pcVar3->editbox).password + 1;\n        (pcVar3->fileselect).filter = (char *)((pcVar3->editbox).percentwidth + 1);\n                    /* WARNING: Subroutine does not return */\n        (pcVar3->editbox).password = n;\n        saferealloc((pcVar3->radio).buttons,n,4);\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < pcVar1->ncontrols);" do (compound_statement "{\n      pcVar3 = pcVar1->ctrls[iVar2];\n      if (((pcVar3->generic).type == 2) &&\n         ((pcVar3->generic).handler == (handler_fn)PTR_config_protocolbuttons_handler_000b549c)) {\n        n = (pcVar3->editbox).password + 1;\n        (pcVar3->fileselect).filter = (char *)((pcVar3->editbox).percentwidth + 1);\n                    /* WARNING: Subroutine does not return */\n        (pcVar3->editbox).password = n;\n        saferealloc((pcVar3->radio).buttons,n,4);\n      }\n      iVar2 = iVar2 + 1;\n    }" { (expression_statement "pcVar3 = pcVar1->ctrls[iVar2];" (assignment_expression "pcVar3 = pcVar1->ctrls[iVar2]" identifier = (subscript_expression "pcVar1->ctrls[iVar2]" (field_expression "pcVar1->ctrls" identifier -> field_identifier) [ identifier ])) ;) (if_statement "if (((pcVar3->generic).type == 2) &&\n         ((pcVar3->generic).handler == (handler_fn)PTR_config_protocolbuttons_handler_000b549c)) {\n        n = (pcVar3->editbox).password + 1;\n        (pcVar3->fileselect).filter = (char *)((pcVar3->editbox).percentwidth + 1);\n                    /* WARNING: Subroutine does not return */\n        (pcVar3->editbox).password = n;\n        saferealloc((pcVar3->radio).buttons,n,4);\n      }" if (parenthesized_expression "(((pcVar3->generic).type == 2) &&\n         ((pcVar3->generic).handler == (handler_fn)PTR_config_protocolbuttons_handler_000b549c))" ( (binary_expression "((pcVar3->generic).type == 2) &&\n         ((pcVar3->generic).handler == (handler_fn)PTR_config_protocolbuttons_handler_000b549c)" (parenthesized_expression "((pcVar3->generic).type == 2)" ( (binary_expression "(pcVar3->generic).type == 2" (field_expression "(pcVar3->generic).type" (parenthesized_expression "(pcVar3->generic)" ( (field_expression "pcVar3->generic" identifier -> field_identifier) )) . field_identifier) == number_literal) )) && (parenthesized_expression "((pcVar3->generic).handler == (handler_fn)PTR_config_protocolbuttons_handler_000b549c)" ( (binary_expression "(pcVar3->generic).handler == (handler_fn)PTR_config_protocolbuttons_handler_000b549c" (field_expression "(pcVar3->generic).handler" (parenthesized_expression "(pcVar3->generic)" ( (field_expression "pcVar3->generic" identifier -> field_identifier) )) . field_identifier) == (cast_expression "(handler_fn)PTR_config_protocolbuttons_handler_000b549c" ( (type_descriptor "handler_fn" type_identifier) ) identifier)) ))) )) (compound_statement "{\n        n = (pcVar3->editbox).password + 1;\n        (pcVar3->fileselect).filter = (char *)((pcVar3->editbox).percentwidth + 1);\n                    /* WARNING: Subroutine does not return */\n        (pcVar3->editbox).password = n;\n        saferealloc((pcVar3->radio).buttons,n,4);\n      }" { (expression_statement "n = (pcVar3->editbox).password + 1;" (assignment_expression "n = (pcVar3->editbox).password + 1" identifier = (binary_expression "(pcVar3->editbox).password + 1" (field_expression "(pcVar3->editbox).password" (parenthesized_expression "(pcVar3->editbox)" ( (field_expression "pcVar3->editbox" identifier -> field_identifier) )) . field_identifier) + number_literal)) ;) (expression_statement "(pcVar3->fileselect).filter = (char *)((pcVar3->editbox).percentwidth + 1);" (assignment_expression "(pcVar3->fileselect).filter = (char *)((pcVar3->editbox).percentwidth + 1)" (field_expression "(pcVar3->fileselect).filter" (parenthesized_expression "(pcVar3->fileselect)" ( (field_expression "pcVar3->fileselect" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(char *)((pcVar3->editbox).percentwidth + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((pcVar3->editbox).percentwidth + 1)" ( (binary_expression "(pcVar3->editbox).percentwidth + 1" (field_expression "(pcVar3->editbox).percentwidth" (parenthesized_expression "(pcVar3->editbox)" ( (field_expression "pcVar3->editbox" identifier -> field_identifier) )) . field_identifier) + number_literal) )))) ;) comment (expression_statement "(pcVar3->editbox).password = n;" (assignment_expression "(pcVar3->editbox).password = n" (field_expression "(pcVar3->editbox).password" (parenthesized_expression "(pcVar3->editbox)" ( (field_expression "pcVar3->editbox" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "saferealloc((pcVar3->radio).buttons,n,4);" (call_expression "saferealloc((pcVar3->radio).buttons,n,4)" identifier (argument_list "((pcVar3->radio).buttons,n,4)" ( (field_expression "(pcVar3->radio).buttons" (parenthesized_expression "(pcVar3->radio)" ( (field_expression "pcVar3->radio" identifier -> field_identifier) )) . field_identifier) , identifier , number_literal ))) ;) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < pcVar1->ncontrols)" ( (binary_expression "iVar2 < pcVar1->ncontrols" identifier < (field_expression "pcVar1->ncontrols" identifier -> field_identifier)) )) ;) })) comment (expression_statement "ctrl_settitle(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);" (call_expression "ctrl_settitle(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" identifier (argument_list "(b,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7870" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x781c" 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  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined *puVar8;\n  int iVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  int *piVar13;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  puVar12 = PTR_conf_editbox_handler_000b547c;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n  local_2c = *(int *)PTR___stack_chk_guard_000b60f8;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }\n  puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c);\n  ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0]);\n  if (local_2c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  iVar7 = *(int *)(puVar8 + 0x79310);\n  uVar10 = *puVar2;\n  uVar11 = *puVar6;\n  iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100);\n  if (iVar4 == 0) {\n    iVar4 = -1;\n  }\n  else {\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }\n  return iVar4;\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  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined *puVar8;\n  int iVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  int *piVar13;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  puVar12 = PTR_conf_editbox_handler_000b547c;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n  local_2c = *(int *)PTR___stack_chk_guard_000b60f8;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }\n  puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c);\n  ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0]);\n  if (local_2c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  iVar7 = *(int *)(puVar8 + 0x79310);\n  uVar10 = *puVar2;\n  uVar11 = *puVar6;\n  iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100);\n  if (iVar4 == 0) {\n    iVar4 = -1;\n  }\n  else {\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }\n  return iVar4;\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  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined *puVar8;\n  int iVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  int *piVar13;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  puVar12 = PTR_conf_editbox_handler_000b547c;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n  local_2c = *(int *)PTR___stack_chk_guard_000b60f8;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }\n  puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c);\n  ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0]);\n  if (local_2c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  iVar7 = *(int *)(puVar8 + 0x79310);\n  uVar10 = *puVar2;\n  uVar11 = *puVar6;\n  iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100);\n  if (iVar4 == 0) {\n    iVar4 = -1;\n  }\n  else {\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *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 "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int *piVar13;" primitive_type (pointer_declarator "*piVar13" * 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 "puVar1 = PTR___stack_chk_guard_000b60f8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b60f8" identifier = identifier) ;) (expression_statement "puVar12 = PTR_conf_editbox_handler_000b547c;" (assignment_expression "puVar12 = PTR_conf_editbox_handler_000b547c" identifier = identifier) ;) (expression_statement "puVar8 = PTR_s_XXXXXXXXXX___________000b5214;" (assignment_expression "puVar8 = PTR_s_XXXXXXXXXX___________000b5214" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b60f8;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b60f8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b60f8" * (cast_expression "(int *)PTR___stack_chk_guard_000b60f8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }" { (expression_statement "iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);" (assignment_expression "iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4)" identifier = (call_expression "ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4)" identifier (argument_list "(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4)" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x2568" identifier + number_literal) , (binary_expression "PTR_DAT_000b5230 + 0x2324" identifier + number_literal) , (binary_expression "PTR_DAT_000b5230 + 0x22f4" identifier + number_literal) )))) ;) (expression_statement "puVar8 = PTR_config_protocolbuttons_handler_000b549c;" (assignment_expression "puVar8 = PTR_config_protocolbuttons_handler_000b549c" identifier = identifier) ;) (expression_statement "iVar7 = *(int *)(iVar4 + 0x10);" (assignment_expression "iVar7 = *(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) ))))) ;) (if_statement "if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }" { (expression_statement "puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;" (assignment_expression "puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c" identifier = (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x789c" identifier + number_literal)) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);" do (compound_statement "{\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      }" { (expression_statement "piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);" (assignment_expression "piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4)" * (cast_expression "(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar4 + 0x18) + iVar9 * 4)" ( (binary_expression "*(int *)(iVar4 + 0x18) + iVar9 * 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 "iVar9 * 4" identifier * number_literal)) ))))) ;) (if_statement "if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }" if (parenthesized_expression "((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8))" ( (binary_expression "(*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)" (parenthesized_expression "(*piVar13 == 2)" ( (binary_expression "*piVar13 == 2" (pointer_expression "*piVar13" * identifier) == number_literal) )) && (parenthesized_expression "((undefined *)piVar13[4] == puVar8)" ( (binary_expression "(undefined *)piVar13[4] == puVar8" (cast_expression "(undefined *)piVar13[4]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar13[4]" identifier [ number_literal ])) == identifier) ))) )) (compound_statement "{\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }" { (expression_statement "iVar7 = piVar13[9];" (assignment_expression "iVar7 = piVar13[9]" identifier = (subscript_expression "piVar13[9]" identifier [ number_literal ])) ;) (expression_statement "piVar13[8] = piVar13[8] + 1;" (assignment_expression "piVar13[8] = piVar13[8] + 1" (subscript_expression "piVar13[8]" identifier [ number_literal ]) = (binary_expression "piVar13[8] + 1" (subscript_expression "piVar13[8]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "piVar13[9] = iVar7 + 1;" (assignment_expression "piVar13[9] = iVar7 + 1" (subscript_expression "piVar13[9]" identifier [ number_literal ]) = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);" (assignment_expression "iVar7 = saferealloc(piVar13[10],iVar7 + 1,4)" identifier = (call_expression "saferealloc(piVar13[10],iVar7 + 1,4)" identifier (argument_list "(piVar13[10],iVar7 + 1,4)" ( (subscript_expression "piVar13[10]" identifier [ number_literal ]) , (binary_expression "iVar7 + 1" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar5 = piVar13[9];" (assignment_expression "iVar5 = piVar13[9]" identifier = (subscript_expression "piVar13[9]" identifier [ number_literal ])) ;) (expression_statement "piVar13[10] = iVar7;" (assignment_expression "piVar13[10] = iVar7" (subscript_expression "piVar13[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar10 = dupstr(puVar12);" (assignment_expression "uVar10 = dupstr(puVar12)" identifier = (call_expression "dupstr(puVar12)" identifier (argument_list "(puVar12)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;" (assignment_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10" (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(piVar13[0xc],piVar13[9],4);" (assignment_expression "iVar7 = saferealloc(piVar13[0xc],piVar13[9],4)" identifier = (call_expression "saferealloc(piVar13[0xc],piVar13[9],4)" identifier (argument_list "(piVar13[0xc],piVar13[9],4)" ( (subscript_expression "piVar13[0xc]" identifier [ number_literal ]) , (subscript_expression "piVar13[9]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "iVar5 = piVar13[9];" (assignment_expression "iVar5 = piVar13[9]" identifier = (subscript_expression "piVar13[9]" identifier [ number_literal ])) ;) (expression_statement "piVar13[0xc] = iVar7;" (assignment_expression "piVar13[0xc] = iVar7" (subscript_expression "piVar13[0xc]" identifier [ number_literal ]) = identifier) ;) (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 (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }" if (parenthesized_expression "(piVar13[0xb] == 0)" ( (binary_expression "piVar13[0xb] == 0" (subscript_expression "piVar13[0xb]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }" { (expression_statement "iVar7 = *(int *)(iVar4 + 0x10);" (assignment_expression "iVar7 = *(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) ))))) ;) }) (else_clause "else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }" else (compound_statement "{\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }" { (expression_statement "iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);" (assignment_expression "iVar7 = saferealloc(piVar13[0xb],piVar13[9],1)" identifier = (call_expression "saferealloc(piVar13[0xb],piVar13[9],1)" identifier (argument_list "(piVar13[0xb],piVar13[9],1)" ( (subscript_expression "piVar13[0xb]" identifier [ number_literal ]) , (subscript_expression "piVar13[9]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "piVar13[0xb] = iVar7;" (assignment_expression "piVar13[0xb] = iVar7" (subscript_expression "piVar13[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;" (assignment_expression "*(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72" (pointer_expression "*(undefined1 *)(iVar7 + piVar13[9] + -1)" * (cast_expression "(undefined1 *)(iVar7 + piVar13[9] + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + piVar13[9] + -1)" ( (binary_expression "iVar7 + piVar13[9] + -1" (binary_expression "iVar7 + piVar13[9]" identifier + (subscript_expression "piVar13[9]" identifier [ number_literal ])) + number_literal) )))) = number_literal) ;) (expression_statement "iVar7 = *(int *)(iVar4 + 0x10);" (assignment_expression "iVar7 = *(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 "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar9 < iVar7)" ( (binary_expression "iVar9 < iVar7" identifier < identifier) )) ;) })) (expression_statement "puVar12 = PTR_conf_editbox_handler_000b547c;" (assignment_expression "puVar12 = PTR_conf_editbox_handler_000b547c" identifier = identifier) ;) (expression_statement "puVar8 = PTR_s_XXXXXXXXXX___________000b5214;" (assignment_expression "puVar8 = PTR_s_XXXXXXXXXX___________000b5214" identifier = identifier) ;) (expression_statement "ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);" (call_expression "ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" identifier (argument_list "(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7870" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x781c" identifier + number_literal) ))) ;) (expression_statement "uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);" (assignment_expression "uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4)" identifier = (call_expression "ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4)" identifier (argument_list "(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4)" ( identifier , (binary_expression "puVar8 + -0x7870" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4" 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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = 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_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);" (call_expression "ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0])" identifier (argument_list "(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0])" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4" 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_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }" else (compound_statement "{\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }" { (expression_statement "ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);" (call_expression "ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" identifier (argument_list "(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7870" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x781c" identifier + number_literal) ))) ;) }))) (expression_statement "puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894);" (assignment_expression "puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894)" identifier = (cast_expression "(undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894)" identifier (argument_list "(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894)" ( identifier , (binary_expression "puVar8 + -0x7870" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7878" identifier + number_literal) , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7894" 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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = 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 "ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" identifier (argument_list "(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x785c" 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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = 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(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" identifier (argument_list "(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x784c" 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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = 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(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" identifier (argument_list "(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7840" 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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = 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(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0]);" (call_expression "ctrl_droplist(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0])" identifier (argument_list "(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0])" ( identifier , (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7834" identifier + number_literal) , number_literal , number_literal , identifier , (binary_expression "PTR_LAB_000b55b4 + -0x48c8" 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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = 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_s_XXXXXXXXXX___________000b5214 + -0x782c);" (assignment_expression "puVar6 = (undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c)" identifier = (cast_expression "(undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c)" ( (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x782c" identifier + number_literal) )))) ;) (expression_statement "ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0]);" (call_expression "ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0])" identifier (argument_list "(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0])" ( identifier , identifier , number_literal , number_literal , identifier , (binary_expression "PTR_LAB_000b55b4 + -0x4b20" identifier + number_literal) , (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) (if_statement "if (local_2c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar1)" ( (binary_expression "local_2c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(int *)puVar1;\n  }" { (return_statement "return *(int *)puVar1;" return (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar8 = PTR___stack_chk_fail_000b5d9c;" (assignment_expression "puVar8 = PTR___stack_chk_fail_000b5d9c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b5d9c)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b5d9c" * (cast_expression "(code *)PTR___stack_chk_fail_000b5d9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar7 = *(int *)(puVar8 + 0x79310);" (assignment_expression "iVar7 = *(int *)(puVar8 + 0x79310)" identifier = (pointer_expression "*(int *)(puVar8 + 0x79310)" * (cast_expression "(int *)(puVar8 + 0x79310)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0x79310)" ( (binary_expression "puVar8 + 0x79310" identifier + number_literal) ))))) ;) (expression_statement "uVar10 = *puVar2;" (assignment_expression "uVar10 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "uVar11 = *puVar6;" (assignment_expression "uVar11 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100);" (assignment_expression "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100)" identifier = (call_expression "(**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100)" (parenthesized_expression "(**(code **)(puVar8 + 0x7a048))" ( (pointer_expression "**(code **)(puVar8 + 0x7a048)" * (pointer_expression "*(code **)(puVar8 + 0x7a048)" * (cast_expression "(code **)(puVar8 + 0x7a048)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x7a048)" ( (binary_expression "puVar8 + 0x7a048" identifier + number_literal) ))))) )) (argument_list "(uVar10,iVar7 + 0x2100)" ( identifier , (binary_expression "iVar7 + 0x2100" identifier + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n    iVar4 = -1;\n  }\n  else {\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\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 **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }" else (compound_statement "{\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }" { (expression_statement "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);" (assignment_expression "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100)" identifier = (call_expression "(**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100)" (parenthesized_expression "(**(code **)(puVar8 + 0x7a048))" ( (pointer_expression "**(code **)(puVar8 + 0x7a048)" * (pointer_expression "*(code **)(puVar8 + 0x7a048)" * (cast_expression "(code **)(puVar8 + 0x7a048)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x7a048)" ( (binary_expression "puVar8 + 0x7a048" identifier + number_literal) ))))) )) (argument_list "(uVar11,iVar7 + 0x2100)" ( identifier , (binary_expression "iVar7 + 0x2100" identifier + number_literal) )))) ;) (if_statement "if (iVar4 != 0) {\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }" { (expression_statement "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);" (assignment_expression "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11)" identifier = (call_expression "(**(code **)(puVar8 + 0x7a048))(uVar10,uVar11)" (parenthesized_expression "(**(code **)(puVar8 + 0x7a048))" ( (pointer_expression "**(code **)(puVar8 + 0x7a048)" * (pointer_expression "*(code **)(puVar8 + 0x7a048)" * (cast_expression "(code **)(puVar8 + 0x7a048)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x7a048)" ( (binary_expression "puVar8 + 0x7a048" identifier + number_literal) ))))) )) (argument_list "(uVar10,uVar11)" ( identifier , identifier )))) ;) (return_statement "return iVar4;" return identifier ;) })) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }))) (return_statement "return iVar4;" return 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = 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) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (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 (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 (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 { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 IDENT + 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 IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (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 ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int ser_setup_config_box(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined *puVar8;\n  int iVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  int *piVar13;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  puVar12 = PTR_conf_editbox_handler_000b547c;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n  local_2c = *(int *)PTR___stack_chk_guard_000b60f8;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }\n  puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c);\n  ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0]);\n  if (local_2c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  iVar7 = *(int *)(puVar8 + 0x79310);\n  uVar10 = *puVar2;\n  uVar11 = *puVar6;\n  iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100);\n  if (iVar4 == 0) {\n    iVar4 = -1;\n  }\n  else {\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }\n  return iVar4;\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  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined *puVar8;\n  int iVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined *puVar12;\n  int *piVar13;\n  undefined4 local_34 [2];\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  puVar12 = PTR_conf_editbox_handler_000b547c;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n  local_2c = *(int *)PTR___stack_chk_guard_000b60f8;\n  if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }\n  puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3a);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3b);\n  uVar11 = local_34[0];\n  I(local_34,0xffffffff);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,0x3c);\n  uVar11 = local_34[0];\n  I(local_34,0xfffffffe);\n  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_3);\n  ctrl_droplist(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0]);\n  P(local_34,0);\n  uVar10 = local_34[0];\n  I(local_34,param_4);\n  puVar6 = (undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c);\n  ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0]);\n  if (local_2c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }\n  puVar8 = PTR___stack_chk_fail_000b5d9c;\n  (*(code *)PTR___stack_chk_fail_000b5d9c)();\n  iVar7 = *(int *)(puVar8 + 0x79310);\n  uVar10 = *puVar2;\n  uVar11 = *puVar6;\n  iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100);\n  if (iVar4 == 0) {\n    iVar4 = -1;\n  }\n  else {\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }\n  return iVar4;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (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 "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (declaration "undefined4 uVar11;" (type_identifier "undefined4") (identifier "uVar11") (; ";")) (declaration "undefined *puVar12;" (type_identifier "undefined") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "int *piVar13;" (primitive_type "int") (pointer_declarator "*piVar13" (* "*") (identifier "piVar13")) (; ";")) (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 "puVar1 = PTR___stack_chk_guard_000b60f8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b60f8" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_000b60f8")) (; ";")) (expression_statement "puVar12 = PTR_conf_editbox_handler_000b547c;" (assignment_expression "puVar12 = PTR_conf_editbox_handler_000b547c" (identifier "puVar12") (= "=") (identifier "PTR_conf_editbox_handler_000b547c")) (; ";")) (expression_statement "puVar8 = PTR_s_XXXXXXXXXX___________000b5214;" (assignment_expression "puVar8 = PTR_s_XXXXXXXXXX___________000b5214" (identifier "puVar8") (= "=") (identifier "PTR_s_XXXXXXXXXX___________000b5214")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b60f8;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b60f8" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b60f8" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b60f8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b60f8")))) (; ";")) (if_statement "if (param_2 == 0) {\n    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }\n  else {\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\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_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);\n    puVar8 = PTR_config_protocolbuttons_handler_000b549c;\n    iVar7 = *(int *)(iVar4 + 0x10);\n    if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }\n    puVar12 = PTR_conf_editbox_handler_000b547c;\n    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);\n    P(local_34,0);\n    uVar10 = local_34[0];\n    I(local_34,0x39);\n    uVar11 = local_34[0];\n    I(local_34,1);\n    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);\n  }" ({ "{") (expression_statement "iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);" (assignment_expression "iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4)" (identifier "iVar4") (= "=") (call_expression "ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4)" (identifier "ctrl_getset") (argument_list "(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,\n                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x2568" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x2568")) (, ",") (binary_expression "PTR_DAT_000b5230 + 0x2324" (identifier "PTR_DAT_000b5230") (+ "+") (number_literal "0x2324")) (, ",") (binary_expression "PTR_DAT_000b5230 + 0x22f4" (identifier "PTR_DAT_000b5230") (+ "+") (number_literal "0x22f4")) () ")")))) (; ";")) (expression_statement "puVar8 = PTR_config_protocolbuttons_handler_000b549c;" (assignment_expression "puVar8 = PTR_config_protocolbuttons_handler_000b549c" (identifier "puVar8") (= "=") (identifier "PTR_config_protocolbuttons_handler_000b549c")) (; ";")) (expression_statement "iVar7 = *(int *)(iVar4 + 0x10);" (assignment_expression "iVar7 = *(int *)(iVar4 + 0x10)" (identifier "iVar7") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (0 < iVar7) {\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }" (if "if") (parenthesized_expression "(0 < iVar7)" (( "(") (binary_expression "0 < iVar7" (number_literal "0") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;\n      iVar9 = 0;\n      do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);\n    }" ({ "{") (expression_statement "puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;" (assignment_expression "puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c" (identifier "puVar12") (= "=") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x789c" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x789c"))) (; ";")) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 < iVar7);" (do "do") (compound_statement "{\n        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);\n        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }\n        iVar9 = iVar9 + 1;\n      }" ({ "{") (expression_statement "piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);" (assignment_expression "piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4)" (identifier "piVar13") (= "=") (pointer_expression "*(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4)" (* "*") (cast_expression "(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(iVar4 + 0x18) + iVar9 * 4)" (( "(") (binary_expression "*(int *)(iVar4 + 0x18) + iVar9 * 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 "iVar9 * 4" (identifier "iVar9") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }" (if "if") (parenthesized_expression "((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8))" (( "(") (binary_expression "(*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)" (parenthesized_expression "(*piVar13 == 2)" (( "(") (binary_expression "*piVar13 == 2" (pointer_expression "*piVar13" (* "*") (identifier "piVar13")) (== "==") (number_literal "2")) () ")")) (&& "&&") (parenthesized_expression "((undefined *)piVar13[4] == puVar8)" (( "(") (binary_expression "(undefined *)piVar13[4] == puVar8" (cast_expression "(undefined *)piVar13[4]" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar13[4]" (identifier "piVar13") ([ "[") (number_literal "4") (] "]"))) (== "==") (identifier "puVar8")) () ")"))) () ")")) (compound_statement "{\n          iVar7 = piVar13[9];\n          piVar13[8] = piVar13[8] + 1;\n          piVar13[9] = iVar7 + 1;\n          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);\n          iVar5 = piVar13[9];\n          piVar13[10] = iVar7;\n          uVar10 = dupstr(puVar12);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;\n          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);\n          iVar5 = piVar13[9];\n          piVar13[0xc] = iVar7;\n          I(local_34,4);\n          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];\n          if (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n        }" ({ "{") (expression_statement "iVar7 = piVar13[9];" (assignment_expression "iVar7 = piVar13[9]" (identifier "iVar7") (= "=") (subscript_expression "piVar13[9]" (identifier "piVar13") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "piVar13[8] = piVar13[8] + 1;" (assignment_expression "piVar13[8] = piVar13[8] + 1" (subscript_expression "piVar13[8]" (identifier "piVar13") ([ "[") (number_literal "8") (] "]")) (= "=") (binary_expression "piVar13[8] + 1" (subscript_expression "piVar13[8]" (identifier "piVar13") ([ "[") (number_literal "8") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar13[9] = iVar7 + 1;" (assignment_expression "piVar13[9] = iVar7 + 1" (subscript_expression "piVar13[9]" (identifier "piVar13") ([ "[") (number_literal "9") (] "]")) (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);" (assignment_expression "iVar7 = saferealloc(piVar13[10],iVar7 + 1,4)" (identifier "iVar7") (= "=") (call_expression "saferealloc(piVar13[10],iVar7 + 1,4)" (identifier "saferealloc") (argument_list "(piVar13[10],iVar7 + 1,4)" (( "(") (subscript_expression "piVar13[10]" (identifier "piVar13") ([ "[") (number_literal "10") (] "]")) (, ",") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "iVar5 = piVar13[9];" (assignment_expression "iVar5 = piVar13[9]" (identifier "iVar5") (= "=") (subscript_expression "piVar13[9]" (identifier "piVar13") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "piVar13[10] = iVar7;" (assignment_expression "piVar13[10] = iVar7" (subscript_expression "piVar13[10]" (identifier "piVar13") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "uVar10 = dupstr(puVar12);" (assignment_expression "uVar10 = dupstr(puVar12)" (identifier "uVar10") (= "=") (call_expression "dupstr(puVar12)" (identifier "dupstr") (argument_list "(puVar12)" (( "(") (identifier "puVar12") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;" (assignment_expression "*(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10" (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 "uVar10")) (; ";")) (expression_statement "iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);" (assignment_expression "iVar7 = saferealloc(piVar13[0xc],piVar13[9],4)" (identifier "iVar7") (= "=") (call_expression "saferealloc(piVar13[0xc],piVar13[9],4)" (identifier "saferealloc") (argument_list "(piVar13[0xc],piVar13[9],4)" (( "(") (subscript_expression "piVar13[0xc]" (identifier "piVar13") ([ "[") (number_literal "0xc") (] "]")) (, ",") (subscript_expression "piVar13[9]" (identifier "piVar13") ([ "[") (number_literal "9") (] "]")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "iVar5 = piVar13[9];" (assignment_expression "iVar5 = piVar13[9]" (identifier "iVar5") (= "=") (subscript_expression "piVar13[9]" (identifier "piVar13") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "piVar13[0xc] = iVar7;" (assignment_expression "piVar13[0xc] = iVar7" (subscript_expression "piVar13[0xc]" (identifier "piVar13") ([ "[") (number_literal "0xc") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (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 (piVar13[0xb] == 0) {\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }\n          else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }" (if "if") (parenthesized_expression "(piVar13[0xb] == 0)" (( "(") (binary_expression "piVar13[0xb] == 0" (subscript_expression "piVar13[0xb]" (identifier "piVar13") ([ "[") (number_literal "0xb") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }" ({ "{") (expression_statement "iVar7 = *(int *)(iVar4 + 0x10);" (assignment_expression "iVar7 = *(int *)(iVar4 + 0x10)" (identifier "iVar7") (= "=") (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")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }" (else "else") (compound_statement "{\n            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);\n            piVar13[0xb] = iVar7;\n            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;\n            iVar7 = *(int *)(iVar4 + 0x10);\n          }" ({ "{") (expression_statement "iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);" (assignment_expression "iVar7 = saferealloc(piVar13[0xb],piVar13[9],1)" (identifier "iVar7") (= "=") (call_expression "saferealloc(piVar13[0xb],piVar13[9],1)" (identifier "saferealloc") (argument_list "(piVar13[0xb],piVar13[9],1)" (( "(") (subscript_expression "piVar13[0xb]" (identifier "piVar13") ([ "[") (number_literal "0xb") (] "]")) (, ",") (subscript_expression "piVar13[9]" (identifier "piVar13") ([ "[") (number_literal "9") (] "]")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "piVar13[0xb] = iVar7;" (assignment_expression "piVar13[0xb] = iVar7" (subscript_expression "piVar13[0xb]" (identifier "piVar13") ([ "[") (number_literal "0xb") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "*(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;" (assignment_expression "*(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72" (pointer_expression "*(undefined1 *)(iVar7 + piVar13[9] + -1)" (* "*") (cast_expression "(undefined1 *)(iVar7 + piVar13[9] + -1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + piVar13[9] + -1)" (( "(") (binary_expression "iVar7 + piVar13[9] + -1" (binary_expression "iVar7 + piVar13[9]" (identifier "iVar7") (+ "+") (subscript_expression "piVar13[9]" (identifier "piVar13") ([ "[") (number_literal "9") (] "]"))) (+ "+") (number_literal "-1")) () ")")))) (= "=") (number_literal "0x72")) (; ";")) (expression_statement "iVar7 = *(int *)(iVar4 + 0x10);" (assignment_expression "iVar7 = *(int *)(iVar4 + 0x10)" (identifier "iVar7") (= "=") (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 "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar9 < iVar7)" (( "(") (binary_expression "iVar9 < iVar7" (identifier "iVar9") (< "<") (identifier "iVar7")) () ")")) (; ";")) (} "}"))) (expression_statement "puVar12 = PTR_conf_editbox_handler_000b547c;" (assignment_expression "puVar12 = PTR_conf_editbox_handler_000b547c" (identifier "puVar12") (= "=") (identifier "PTR_conf_editbox_handler_000b547c")) (; ";")) (expression_statement "puVar8 = PTR_s_XXXXXXXXXX___________000b5214;" (assignment_expression "puVar8 = PTR_s_XXXXXXXXXX___________000b5214" (identifier "puVar8") (= "=") (identifier "PTR_s_XXXXXXXXXX___________000b5214")) (; ";")) (expression_statement "ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);" (call_expression "ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" (identifier "ctrl_settitle") (argument_list "(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7870" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x7870")) (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x781c" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x781c")) () ")"))) (; ";")) (expression_statement "uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);" (assignment_expression "uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4)" (identifier "uVar3") (= "=") (call_expression "ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4)" (identifier "ctrl_getset") (argument_list "(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,\n                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4)" (( "(") (identifier "param_1") (, ",") (binary_expression "puVar8 + -0x7870" (identifier "puVar8") (+ "+") (number_literal "-0x7870")) (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x77dc")) (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x77f4")) () ")")))) (; ";")) (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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = local_34[0]" (identifier "uVar10") (= "=") (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_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0]);" (call_expression "ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0])" (identifier "ctrl_editbox") (argument_list "(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11\n                 ,local_34[0])" (( "(") (identifier "uVar3") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x77d4")) (, ",") (number_literal "0x6c") (, ",") (number_literal "0x28") (, ",") (identifier "uVar10") (, ",") (identifier "puVar12") (, ",") (identifier "uVar11") (, ",") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }" (else "else") (compound_statement "{\n    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);\n  }" ({ "{") (expression_statement "ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);" (call_expression "ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" (identifier "ctrl_settitle") (argument_list "(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,\n                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7870" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x7870")) (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x781c" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x781c")) () ")"))) (; ";")) (} "}")))) (expression_statement "puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894);" (assignment_expression "puVar2 = (undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)\n           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894)" (identifier "ctrl_getset") (argument_list "(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,\n                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894)" (( "(") (identifier "param_1") (, ",") (binary_expression "puVar8 + -0x7870" (identifier "puVar8") (+ "+") (number_literal "-0x7870")) (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7878" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x7878")) (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7894" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x7894")) () ")"))))) (; ";")) (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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = local_34[0]" (identifier "uVar10") (= "=") (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 "ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" (identifier "ctrl_editbox") (argument_list "(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" (( "(") (identifier "puVar2") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x785c" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x785c")) (, ",") (number_literal "0x73") (, ",") (number_literal "0x28") (, ",") (identifier "uVar10") (, ",") (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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = local_34[0]" (identifier "uVar10") (= "=") (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(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" (identifier "ctrl_editbox") (argument_list "(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" (( "(") (identifier "puVar2") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x784c" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x784c")) (, ",") (number_literal "0x62") (, ",") (number_literal "0x28") (, ",") (identifier "uVar10") (, ",") (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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = local_34[0]" (identifier "uVar10") (= "=") (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(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0]);" (call_expression "ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" (identifier "ctrl_editbox") (argument_list "(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,\n               local_34[0])" (( "(") (identifier "puVar2") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7840" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x7840")) (, ",") (number_literal "0x74") (, ",") (number_literal "0x28") (, ",") (identifier "uVar10") (, ",") (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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = local_34[0]" (identifier "uVar10") (= "=") (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(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0]);" (call_expression "ctrl_droplist(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0])" (identifier "ctrl_droplist") (argument_list "(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,\n                PTR_LAB_000b55b4 + -0x48c8,local_34[0])" (( "(") (identifier "puVar2") (, ",") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x7834" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x7834")) (, ",") (number_literal "0x70") (, ",") (number_literal "0x28") (, ",") (identifier "uVar10") (, ",") (binary_expression "PTR_LAB_000b55b4 + -0x48c8" (identifier "PTR_LAB_000b55b4") (+ "+") (number_literal "-0x48c8")) (, ",") (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 "uVar10 = local_34[0];" (assignment_expression "uVar10 = local_34[0]" (identifier "uVar10") (= "=") (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_s_XXXXXXXXXX___________000b5214 + -0x782c);" (assignment_expression "puVar6 = (undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c)" (( "(") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x782c" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x782c")) () ")")))) (; ";")) (expression_statement "ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0]);" (call_expression "ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0])" (identifier "ctrl_droplist") (argument_list "(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0])" (( "(") (identifier "puVar2") (, ",") (identifier "puVar6") (, ",") (number_literal "0x66") (, ",") (number_literal "0x28") (, ",") (identifier "uVar10") (, ",") (binary_expression "PTR_LAB_000b55b4 + -0x4b20" (identifier "PTR_LAB_000b55b4") (+ "+") (number_literal "-0x4b20")) (, ",") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (if_statement "if (local_2c == *(int *)puVar1) {\n    return *(int *)puVar1;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar1)" (( "(") (binary_expression "local_2c == *(int *)puVar1" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return *(int *)puVar1;\n  }" ({ "{") (return_statement "return *(int *)puVar1;" (return "return") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (; ";")) (} "}"))) (expression_statement "puVar8 = PTR___stack_chk_fail_000b5d9c;" (assignment_expression "puVar8 = PTR___stack_chk_fail_000b5d9c" (identifier "puVar8") (= "=") (identifier "PTR___stack_chk_fail_000b5d9c")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000b5d9c)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b5d9c" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b5d9c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b5d9c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar7 = *(int *)(puVar8 + 0x79310);" (assignment_expression "iVar7 = *(int *)(puVar8 + 0x79310)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(puVar8 + 0x79310)" (* "*") (cast_expression "(int *)(puVar8 + 0x79310)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 0x79310)" (( "(") (binary_expression "puVar8 + 0x79310" (identifier "puVar8") (+ "+") (number_literal "0x79310")) () ")"))))) (; ";")) (expression_statement "uVar10 = *puVar2;" (assignment_expression "uVar10 = *puVar2" (identifier "uVar10") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "uVar11 = *puVar6;" (assignment_expression "uVar11 = *puVar6" (identifier "uVar11") (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100);" (assignment_expression "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100)" (parenthesized_expression "(**(code **)(puVar8 + 0x7a048))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x7a048)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x7a048)" (* "*") (cast_expression "(code **)(puVar8 + 0x7a048)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x7a048)" (( "(") (binary_expression "puVar8 + 0x7a048" (identifier "puVar8") (+ "+") (number_literal "0x7a048")) () ")"))))) () ")")) (argument_list "(uVar10,iVar7 + 0x2100)" (( "(") (identifier "uVar10") (, ",") (binary_expression "iVar7 + 0x2100" (identifier "iVar7") (+ "+") (number_literal "0x2100")) () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n    iVar4 = -1;\n  }\n  else {\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\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 **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }" (else "else") (compound_statement "{\n    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);\n    if (iVar4 != 0) {\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }\n    iVar4 = 1;\n  }" ({ "{") (expression_statement "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);" (assignment_expression "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100)" (parenthesized_expression "(**(code **)(puVar8 + 0x7a048))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x7a048)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x7a048)" (* "*") (cast_expression "(code **)(puVar8 + 0x7a048)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x7a048)" (( "(") (binary_expression "puVar8 + 0x7a048" (identifier "puVar8") (+ "+") (number_literal "0x7a048")) () ")"))))) () ")")) (argument_list "(uVar11,iVar7 + 0x2100)" (( "(") (identifier "uVar11") (, ",") (binary_expression "iVar7 + 0x2100" (identifier "iVar7") (+ "+") (number_literal "0x2100")) () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);\n      return iVar4;\n    }" ({ "{") (expression_statement "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);" (assignment_expression "iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(puVar8 + 0x7a048))(uVar10,uVar11)" (parenthesized_expression "(**(code **)(puVar8 + 0x7a048))" (( "(") (pointer_expression "**(code **)(puVar8 + 0x7a048)" (* "*") (pointer_expression "*(code **)(puVar8 + 0x7a048)" (* "*") (cast_expression "(code **)(puVar8 + 0x7a048)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 0x7a048)" (( "(") (binary_expression "puVar8 + 0x7a048" (identifier "puVar8") (+ "+") (number_literal "0x7a048")) () ")"))))) () ")")) (argument_list "(uVar10,uVar11)" (( "(") (identifier "uVar10") (, ",") (identifier "uVar11") () ")")))) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (} "}")))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

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

{
  type_2 *pcVar1;
  size_t n;
  int var_7;
  type_3 *pcVar3;
  
  if (var_1 != 0) {
                    /* WARNING: Subroutine does not return */
    var_2(b,var_3 + -0x7870,
                  var_3 + -0x781c);
  }
  pcVar1 = var_4(b,var_3 + -0x2568,
                       var_5 + 0x2324,
                       var_5 + 0x22f4);
  if (0 < pcVar1->ncontrols) {
    var_7 = 0;
    do {
      pcVar3 = pcVar1->ctrls[var_7];
      if (((pcVar3->generic).type == 2) &&
         ((pcVar3->generic).handler == (type_4)PTR_config_protocolbuttons_handler_000b549c)) {
        n = (pcVar3->editbox).password + 1;
        (pcVar3->fileselect).filter = (char *)((pcVar3->editbox).percentwidth + 1);
                    /* WARNING: Subroutine does not return */
        (pcVar3->editbox).password = n;
        var_6((pcVar3->radio).buttons,n,4);
      }
      var_7 = var_7 + 1;
    } while (var_7 < pcVar1->ncontrols);
  }
                    /* WARNING: Subroutine does not return */
  var_2(b,var_3 + -0x7870,
                var_3 + -0x781c);
}


(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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) 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: (subscript_expression argument: (identifier) index: (number_literal)) right: (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: (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: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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: (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)))))))) alternative: (else_clause (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: (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: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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 (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 (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (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: (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: (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: (identifier) 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: (identifier) 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: (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)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

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

{
  undefined *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  undefined4 *puVar6;
  int iVar7;
  undefined *puVar8;
  int iVar9;
  undefined4 uVar10;
  undefined4 uVar11;
  undefined *puVar12;
  int *piVar13;
  undefined4 local_34 [2];
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_000b60f8;
  puVar12 = PTR_conf_editbox_handler_000b547c;
  puVar8 = PTR_s_XXXXXXXXXX___________000b5214;
  local_2c = *(int *)PTR___stack_chk_guard_000b60f8;
  if (param_2 == 0) {
    iVar4 = ctrl_getset(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x2568,
                        PTR_DAT_000b5230 + 0x2324,PTR_DAT_000b5230 + 0x22f4);
    puVar8 = PTR_config_protocolbuttons_handler_000b549c;
    iVar7 = *(int *)(iVar4 + 0x10);
    if (0 < iVar7) {
      puVar12 = PTR_s_XXXXXXXXXX___________000b5214 + -0x789c;
      iVar9 = 0;
      do {
        piVar13 = *(int **)(*(int *)(iVar4 + 0x18) + iVar9 * 4);
        if ((*piVar13 == 2) && ((undefined *)piVar13[4] == puVar8)) {
          iVar7 = piVar13[9];
          piVar13[8] = piVar13[8] + 1;
          piVar13[9] = iVar7 + 1;
          iVar7 = saferealloc(piVar13[10],iVar7 + 1,4);
          iVar5 = piVar13[9];
          piVar13[10] = iVar7;
          uVar10 = dupstr(puVar12);
          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = uVar10;
          iVar7 = saferealloc(piVar13[0xc],piVar13[9],4);
          iVar5 = piVar13[9];
          piVar13[0xc] = iVar7;
          I(local_34,4);
          *(undefined4 *)(iVar7 + (iVar5 + 0x3fffffff) * 4) = local_34[0];
          if (piVar13[0xb] == 0) {
            iVar7 = *(int *)(iVar4 + 0x10);
          }
          else {
            iVar7 = saferealloc(piVar13[0xb],piVar13[9],1);
            piVar13[0xb] = iVar7;
            *(undefined1 *)(iVar7 + piVar13[9] + -1) = 0x72;
            iVar7 = *(int *)(iVar4 + 0x10);
          }
        }
        iVar9 = iVar9 + 1;
      } while (iVar9 < iVar7);
    }
    puVar12 = PTR_conf_editbox_handler_000b547c;
    puVar8 = PTR_s_XXXXXXXXXX___________000b5214;
    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,
                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);
    uVar3 = ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x77dc,
                        PTR_s_XXXXXXXXXX___________000b5214 + -0x77f4);
    P(local_34,0);
    uVar10 = local_34[0];
    I(local_34,0x39);
    uVar11 = local_34[0];
    I(local_34,1);
    ctrl_editbox(uVar3,PTR_s_XXXXXXXXXX___________000b5214 + -0x77d4,0x6c,0x28,uVar10,puVar12,uVar11
                 ,local_34[0]);
  }
  else {
    ctrl_settitle(param_1,PTR_s_XXXXXXXXXX___________000b5214 + -0x7870,
                  PTR_s_XXXXXXXXXX___________000b5214 + -0x781c);
  }
  puVar2 = (undefined4 *)
           ctrl_getset(param_1,puVar8 + -0x7870,PTR_s_XXXXXXXXXX___________000b5214 + -0x7878,
                       PTR_s_XXXXXXXXXX___________000b5214 + -0x7894);
  P(local_34,0);
  uVar10 = local_34[0];
  I(local_34,0x3a);
  uVar11 = local_34[0];
  I(local_34,0xffffffff);
  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x785c,0x73,0x28,uVar10,puVar12,uVar11,
               local_34[0]);
  P(local_34,0);
  uVar10 = local_34[0];
  I(local_34,0x3b);
  uVar11 = local_34[0];
  I(local_34,0xffffffff);
  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x784c,0x62,0x28,uVar10,puVar12,uVar11,
               local_34[0]);
  P(local_34,0);
  uVar10 = local_34[0];
  I(local_34,0x3c);
  uVar11 = local_34[0];
  I(local_34,0xfffffffe);
  ctrl_editbox(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7840,0x74,0x28,uVar10,puVar12,uVar11,
               local_34[0]);
  P(local_34,0);
  uVar10 = local_34[0];
  I(local_34,param_3);
  ctrl_droplist(puVar2,PTR_s_XXXXXXXXXX___________000b5214 + -0x7834,0x70,0x28,uVar10,
                PTR_LAB_000b55b4 + -0x48c8,local_34[0]);
  P(local_34,0);
  uVar10 = local_34[0];
  I(local_34,param_4);
  puVar6 = (undefined4 *)(PTR_s_XXXXXXXXXX___________000b5214 + -0x782c);
  ctrl_droplist(puVar2,puVar6,0x66,0x28,uVar10,PTR_LAB_000b55b4 + -0x4b20,local_34[0]);
  if (local_2c == *(int *)puVar1) {
    return *(int *)puVar1;
  }
  puVar8 = PTR___stack_chk_fail_000b5d9c;
  (*(code *)PTR___stack_chk_fail_000b5d9c)();
  iVar7 = *(int *)(puVar8 + 0x79310);
  uVar10 = *puVar2;
  uVar11 = *puVar6;
  iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,iVar7 + 0x2100);
  if (iVar4 == 0) {
    iVar4 = -1;
  }
  else {
    iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar11,iVar7 + 0x2100);
    if (iVar4 != 0) {
                    /* WARNING: Could not recover jumptable at 0x0003bf9c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      iVar4 = (**(code **)(puVar8 + 0x7a048))(uVar10,uVar11);
      return iVar4;
    }
    iVar4 = 1;
  }
  return iVar4;
}

