
void bc_do_insert(buildcmd_control *ctl,buildcmd_state *state,char *arg,size_t arglen,char *prefix,
                 size_t pfxlen,char *linebuf,size_t lblen,int initial_args)

{
  char cVar1;
  char *pcVar2;
  undefined4 uVar3;
  size_t sVar4;
  char *pcVar5;
  char *pcVar6;
  char *pcVar7;
  char *pcVar8;
  char *pcVar9;
  char *local_34;
  
  sVar4 = ctl->arg_max;
  pcVar5 = (char *)(sVar4 - 1);
  local_34 = *(char **)(PTR_DAT_000320c8 + 0x2440);
  pcVar6 = PTR_DAT_000320c8;
  if (local_34 == (char *)0x0) goto LAB_0001595c;
LAB_000157c8:
  pcVar6 = (char *)(lblen + pfxlen);
  pcVar9 = local_34;
  do {
    pcVar2 = mbsstr(arg,ctl->replace_pat);
    if (pcVar2 == (char *)0x0) {
      if (pcVar5 <= arglen) break;
      pcVar2 = arg + arglen;
      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,arglen);
      pcVar5 = pcVar5 + -arglen;
      cVar1 = *pcVar2;
      pcVar9 = pcVar9 + arglen;
      arglen = 0;
      arg = pcVar2;
    }
    else {
      pcVar7 = pcVar2 + -(int)arg;
      if (pcVar5 <= pcVar7) break;
      pcVar5 = pcVar5 + -(int)pcVar7;
      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,pcVar7);
      pcVar9 = pcVar9 + (int)pcVar7;
      arg = pcVar2;
      if (pcVar5 <= pcVar6) break;
      pcVar5 = pcVar5 + -(int)pcVar6;
      pcVar8 = pcVar9;
      if (prefix != (char *)0x0) {
        pcVar8 = pcVar9 + pfxlen;
        (*(code *)PTR_strcpy_000322ec)(pcVar9,prefix);
      }
      pcVar9 = pcVar8 + lblen;
      (*(code *)PTR_strcpy_000322ec)(pcVar8,linebuf);
      cVar1 = pcVar2[ctl->rplen];
      arglen = arglen + (-(int)pcVar7 - ctl->rplen);
      arg = pcVar2 + ctl->rplen;
    }
    if (cVar1 == '\0') goto LAB_000158c0;
  } while( true );
  if (*arg == '\0') {
LAB_000158c0:
    *pcVar9 = '\0';
    bc_push_arg(ctl,state,local_34,(size_t)(pcVar9 + (1 - (int)local_34)),(char *)0x0,0,initial_args
               );
    return;
  }
  uVar3 = (*(code *)PTR_dcgettext_00032318)
                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);
  sVar4 = 1;
  (*(code *)PTR_error_000322d8)(1,0,uVar3);
LAB_0001595c:
  local_34 = (char *)xmalloc(sVar4 + 1);
  *(char **)(pcVar6 + 0x2440) = local_34;
  goto LAB_000157c8;
}



void bc_do_insert(int param_1,undefined4 param_2,char *param_3,char *param_4,int param_5,int param_6
                 ,undefined4 param_7,int param_8)

{
  char cVar1;
  char *pcVar2;
  undefined4 uVar3;
  int iVar4;
  char *pcVar5;
  char *pcVar6;
  char *pcVar7;
  undefined1 *puVar8;
  undefined1 *puVar9;
  undefined1 *local_34;
  
  iVar4 = *(int *)(param_1 + 0xc);
  pcVar5 = (char *)(iVar4 + -1);
  local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440);
  pcVar6 = PTR_DAT_000320c8;
  if (local_34 == (undefined1 *)0x0) goto LAB_0001595c;
LAB_000157c8:
  pcVar6 = (char *)(param_8 + param_6);
  puVar9 = local_34;
  do {
    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));
    if (pcVar2 == (char *)0x0) {
      if (pcVar5 <= param_4) break;
      pcVar2 = param_3 + (int)param_4;
      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);
      pcVar5 = pcVar5 + -(int)param_4;
      cVar1 = *pcVar2;
      puVar9 = puVar9 + (int)param_4;
      param_4 = (char *)0x0;
      param_3 = pcVar2;
    }
    else {
      pcVar7 = pcVar2 + -(int)param_3;
      if (pcVar5 <= pcVar7) break;
      pcVar5 = pcVar5 + -(int)pcVar7;
      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);
      puVar9 = puVar9 + (int)pcVar7;
      param_3 = pcVar2;
      if (pcVar5 <= pcVar6) break;
      pcVar5 = pcVar5 + -(int)pcVar6;
      puVar8 = puVar9;
      if (param_5 != 0) {
        puVar8 = puVar9 + param_6;
        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);
      }
      puVar9 = puVar8 + param_8;
      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);
      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];
      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));
      param_3 = pcVar2 + *(int *)(param_1 + 0x14);
    }
    if (cVar1 == '\0') goto LAB_000158c0;
  } while( true );
  if (*param_3 == '\0') {
LAB_000158c0:
    *puVar9 = 0;
    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));
    return;
  }
  uVar3 = (*(code *)PTR_dcgettext_00032318)
                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);
  iVar4 = 1;
  (*(code *)PTR_error_000322d8)(1,0,uVar3);
LAB_0001595c:
  local_34 = (undefined1 *)xmalloc(iVar4 + 1);
  *(undefined1 **)(pcVar6 + 0x2440) = local_34;
  goto LAB_000157c8;
}


lui gp,0x2
addiu gp,gp,0x4960
addu gp,gp,t9
addiu sp,sp,-0x58
lw v1,0x70(sp)
lw v0,0x6c(sp)
sw s3,0x3c(sp)
sw v1,0x1c(sp)
sw s2,0x38(sp)
or s2,a0,zero
sw v0,0x20(sp)
lw s3,-0x7fd8(gp)
lw v1,0x74(sp)
lw a0,0xc(a0)
sw gp,0x10(sp)
sw v1,0x18(sp)
sw s7,0x4c(sp)
or s7,a2,zero
sw s4,0x40(sp)
sw s1,0x34(sp)
or s1,a3,zero
sw s0,0x30(sp)
addiu s0,a0,-0x1
sw ra,0x54(sp)
sw s8,0x50(sp)
sw s6,0x48(sp)
sw s5,0x44(sp)
sw a1,0x28(sp)
lw v0,0x2440(s3)
lw v1,0x78(sp)
lw s4,0x68(sp)
sw v0,0x24(sp)
beq v0,zero,0x0001595c
_sw v1,0x2c(sp)
lw v0,0x18(sp)
lw v1,0x20(sp)
lw s8,0x24(sp)
b 0x00015868
_addu s3,v0,v1
subu s5,v0,s7
sltu v0,s5,s0
beq v0,zero,0x00015920
_lw t9,-0x7e14(gp)
subu s0,s0,s5
or a0,s8,zero
or a2,s5,zero
jalr t9
_or a1,s7,zero
sltu v0,s3,s0
lw gp,0x10(sp)
beq v0,zero,0x0001591c
_addu s8,s8,s5
beq s4,zero,0x00015834
_subu s0,s0,s3
lw t9,-0x7db4(gp)
or a0,s8,zero
lw v0,0x20(sp)
or a1,s4,zero
jalr t9
_addu s8,s8,v0
lw gp,0x10(sp)
lw t9,-0x7db4(gp)
or a0,s8,zero
lw v0,0x18(sp)
lw a1,0x1c(sp)
jalr t9
_addu s8,s8,v0
lw v1,0x14(s2)
lw gp,0x10(sp)
addu s7,s6,v1
subu s1,s1,v1
lb v0,0x0(s7)
beq v0,zero,0x000158bc
_subu s1,s1,s5
lw t9,-0x7f54(gp)
or a0,s7,zero
bal 0x000181b8
_lw a1,0x18(s2)
lw gp,0x10(sp)
bne v0,zero,0x000157dc
_or s6,v0,zero
sltu v0,s1,s0
beq v0,zero,0x00015920
_lw t9,-0x7e14(gp)
or a1,s7,zero
addu s7,s7,s1
or a2,s1,zero
jalr t9
_or a0,s8,zero
subu s0,s0,s1
lb v0,0x0(s7)
addu s8,s8,s1
lw gp,0x10(sp)
bne v0,zero,0x00015868
_or s1,zero,zero
lw v0,0x24(sp)
addiu a3,s8,0x1
lw a1,0x28(sp)
or a0,s2,zero
lw t9,-0x7fac(gp)
or a2,v0,zero
sb zero,0x0(s8)
subu a3,a3,v0
sw zero,0x6c(sp)
sw zero,0x68(sp)
lw v0,0x2c(sp)
lw ra,0x54(sp)
lw s8,0x50(sp)
lw s7,0x4c(sp)
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
sw v0,0x70(sp)
b 0x00015400
_addiu sp,sp,0x58
or s7,s6,zero
lb v0,0x0(s7)
beq v0,zero,0x000158c0
_lw v0,0x24(sp)
lw a1,-0x7fc8(gp)
li a2,0x5
lw t9,-0x7d88(gp)
or a0,zero,zero
jalr t9
_addiu a1,a1,0x768
or a1,zero,zero
lw gp,0x10(sp)
li a0,0x1
lw t9,-0x7dc8(gp)
jalr t9
_or a2,v0,zero
lw t9,-0x7f68(gp)
bal 0x0001bee0
_addiu a0,a0,0x1
lw gp,0x10(sp)
sw v0,0x24(sp)
b 0x000157c8
_sw v0,0x2440(s3)
(translation_unit "void bc_do_insert(int param_1,undefined4 param_2,char *param_3,char *param_4,int param_5,int param_6\n                 ,undefined4 param_7,int param_8)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  undefined1 *local_34;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  pcVar5 = (char *)(iVar4 + -1);\n  local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440);\n  pcVar6 = PTR_DAT_000320c8;\n  if (local_34 == (undefined1 *)0x0) goto LAB_0001595c;\nLAB_000157c8:\n  pcVar6 = (char *)(param_8 + param_6);\n  puVar9 = local_34;\n  do {\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );\n  if (*param_3 == '\0') {\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);\n  iVar4 = 1;\n  (*(code *)PTR_error_000322d8)(1,0,uVar3);\nLAB_0001595c:\n  local_34 = (undefined1 *)xmalloc(iVar4 + 1);\n  *(undefined1 **)(pcVar6 + 0x2440) = local_34;\n  goto LAB_000157c8;\n}\n\n" (function_definition "void bc_do_insert(int param_1,undefined4 param_2,char *param_3,char *param_4,int param_5,int param_6\n                 ,undefined4 param_7,int param_8)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  undefined1 *local_34;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  pcVar5 = (char *)(iVar4 + -1);\n  local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440);\n  pcVar6 = PTR_DAT_000320c8;\n  if (local_34 == (undefined1 *)0x0) goto LAB_0001595c;\nLAB_000157c8:\n  pcVar6 = (char *)(param_8 + param_6);\n  puVar9 = local_34;\n  do {\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );\n  if (*param_3 == '\0') {\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);\n  iVar4 = 1;\n  (*(code *)PTR_error_000322d8)(1,0,uVar3);\nLAB_0001595c:\n  local_34 = (undefined1 *)xmalloc(iVar4 + 1);\n  *(undefined1 **)(pcVar6 + 0x2440) = local_34;\n  goto LAB_000157c8;\n}" primitive_type (function_declarator "bc_do_insert(int param_1,undefined4 param_2,char *param_3,char *param_4,int param_5,int param_6\n                 ,undefined4 param_7,int param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,char *param_3,char *param_4,int param_5,int param_6\n                 ,undefined4 param_7,int param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "int param_8" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  undefined1 *local_34;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  pcVar5 = (char *)(iVar4 + -1);\n  local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440);\n  pcVar6 = PTR_DAT_000320c8;\n  if (local_34 == (undefined1 *)0x0) goto LAB_0001595c;\nLAB_000157c8:\n  pcVar6 = (char *)(param_8 + param_6);\n  puVar9 = local_34;\n  do {\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );\n  if (*param_3 == '\0') {\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);\n  iVar4 = 1;\n  (*(code *)PTR_error_000322d8)(1,0,uVar3);\nLAB_0001595c:\n  local_34 = (undefined1 *)xmalloc(iVar4 + 1);\n  *(undefined1 **)(pcVar6 + 0x2440) = local_34;\n  goto LAB_000157c8;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined1 *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = (char *)(iVar4 + -1);" (assignment_expression "pcVar5 = (char *)(iVar4 + -1)" identifier = (cast_expression "(char *)(iVar4 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -1)" ( (binary_expression "iVar4 + -1" identifier + number_literal) )))) ;) (expression_statement "local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440);" (assignment_expression "local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440)" identifier = (pointer_expression "*(undefined1 **)(PTR_DAT_000320c8 + 0x2440)" * (cast_expression "(undefined1 **)(PTR_DAT_000320c8 + 0x2440)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000320c8 + 0x2440)" ( (binary_expression "PTR_DAT_000320c8 + 0x2440" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = PTR_DAT_000320c8;" (assignment_expression "pcVar6 = PTR_DAT_000320c8" identifier = identifier) ;) (if_statement "if (local_34 == (undefined1 *)0x0) goto LAB_0001595c;" if (parenthesized_expression "(local_34 == (undefined1 *)0x0)" ( (binary_expression "local_34 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001595c;" goto statement_identifier ;)) (labeled_statement "LAB_000157c8:\n  pcVar6 = (char *)(param_8 + param_6);" statement_identifier : (expression_statement "pcVar6 = (char *)(param_8 + param_6);" (assignment_expression "pcVar6 = (char *)(param_8 + param_6)" identifier = (cast_expression "(char *)(param_8 + param_6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_8 + param_6)" ( (binary_expression "param_8 + param_6" identifier + identifier) )))) ;)) (expression_statement "puVar9 = local_34;" (assignment_expression "puVar9 = local_34" identifier = identifier) ;) (do_statement "do {\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );" do (compound_statement "{\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  }" { (expression_statement "pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));" (assignment_expression "pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18))" identifier = (cast_expression "(char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "mbsstr(param_3,*(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x18))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }" { (if_statement "if (pcVar5 <= param_4) break;" if (parenthesized_expression "(pcVar5 <= param_4)" ( (binary_expression "pcVar5 <= param_4" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "pcVar2 = param_3 + (int)param_4;" (assignment_expression "pcVar2 = param_3 + (int)param_4" identifier = (binary_expression "param_3 + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "(*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);" (call_expression "(*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4)" (parenthesized_expression "(*(code *)PTR_strncpy_0003228c)" ( (pointer_expression "*(code *)PTR_strncpy_0003228c" * (cast_expression "(code *)PTR_strncpy_0003228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (expression_statement "pcVar5 = pcVar5 + -(int)param_4;" (assignment_expression "pcVar5 = pcVar5 + -(int)param_4" identifier = (binary_expression "pcVar5 + -(int)param_4" identifier + (unary_expression "-(int)param_4" - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)))) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "puVar9 = puVar9 + (int)param_4;" (assignment_expression "puVar9 = puVar9 + (int)param_4" identifier = (binary_expression "puVar9 + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_4 = (char *)0x0;" (assignment_expression "param_4 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "param_3 = pcVar2;" (assignment_expression "param_3 = pcVar2" identifier = identifier) ;) }) (else_clause "else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }" else (compound_statement "{\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }" { (expression_statement "pcVar7 = pcVar2 + -(int)param_3;" (assignment_expression "pcVar7 = pcVar2 + -(int)param_3" identifier = (binary_expression "pcVar2 + -(int)param_3" identifier + (unary_expression "-(int)param_3" - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)))) ;) (if_statement "if (pcVar5 <= pcVar7) break;" if (parenthesized_expression "(pcVar5 <= pcVar7)" ( (binary_expression "pcVar5 <= pcVar7" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = pcVar5 + -(int)pcVar7;" (assignment_expression "pcVar5 = pcVar5 + -(int)pcVar7" identifier = (binary_expression "pcVar5 + -(int)pcVar7" identifier + (unary_expression "-(int)pcVar7" - (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier)))) ;) (expression_statement "(*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);" (call_expression "(*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7)" (parenthesized_expression "(*(code *)PTR_strncpy_0003228c)" ( (pointer_expression "*(code *)PTR_strncpy_0003228c" * (cast_expression "(code *)PTR_strncpy_0003228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,param_3,pcVar7)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar9 = puVar9 + (int)pcVar7;" (assignment_expression "puVar9 = puVar9 + (int)pcVar7" identifier = (binary_expression "puVar9 + (int)pcVar7" identifier + (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_3 = pcVar2;" (assignment_expression "param_3 = pcVar2" identifier = identifier) ;) (if_statement "if (pcVar5 <= pcVar6) break;" if (parenthesized_expression "(pcVar5 <= pcVar6)" ( (binary_expression "pcVar5 <= pcVar6" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = pcVar5 + -(int)pcVar6;" (assignment_expression "pcVar5 = pcVar5 + -(int)pcVar6" identifier = (binary_expression "pcVar5 + -(int)pcVar6" identifier + (unary_expression "-(int)pcVar6" - (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier)))) ;) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) (if_statement "if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }" { (expression_statement "puVar8 = puVar9 + param_6;" (assignment_expression "puVar8 = puVar9 + param_6" identifier = (binary_expression "puVar9 + param_6" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_strcpy_000322ec)(puVar9,param_5);" (call_expression "(*(code *)PTR_strcpy_000322ec)(puVar9,param_5)" (parenthesized_expression "(*(code *)PTR_strcpy_000322ec)" ( (pointer_expression "*(code *)PTR_strcpy_000322ec" * (cast_expression "(code *)PTR_strcpy_000322ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,param_5)" ( identifier , identifier ))) ;) })) (expression_statement "puVar9 = puVar8 + param_8;" (assignment_expression "puVar9 = puVar8 + param_8" identifier = (binary_expression "puVar8 + param_8" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_strcpy_000322ec)(puVar8,param_7);" (call_expression "(*(code *)PTR_strcpy_000322ec)(puVar8,param_7)" (parenthesized_expression "(*(code *)PTR_strcpy_000322ec)" ( (pointer_expression "*(code *)PTR_strcpy_000322ec" * (cast_expression "(code *)PTR_strcpy_000322ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar8,param_7)" ( identifier , identifier ))) ;) (expression_statement "cVar1 = pcVar2[*(int *)(param_1 + 0x14)];" (assignment_expression "cVar1 = pcVar2[*(int *)(param_1 + 0x14)]" identifier = (subscript_expression "pcVar2[*(int *)(param_1 + 0x14)]" identifier [ (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ])) ;) (expression_statement "param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));" (assignment_expression "param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14))" identifier = (binary_expression "param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14))" identifier + (parenthesized_expression "(-(int)pcVar7 - *(int *)(param_1 + 0x14))" ( (binary_expression "-(int)pcVar7 - *(int *)(param_1 + 0x14)" (unary_expression "-(int)pcVar7" - (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier)) - (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )))) ;) (expression_statement "param_3 = pcVar2 + *(int *)(param_1 + 0x14);" (assignment_expression "param_3 = pcVar2 + *(int *)(param_1 + 0x14)" identifier = (binary_expression "pcVar2 + *(int *)(param_1 + 0x14)" identifier + (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))))) ;) }))) (if_statement "if (cVar1 == '\0') goto LAB_000158c0;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000158c0;" goto statement_identifier ;)) }) while (parenthesized_expression "( true )" ( true )) ;) (if_statement "if (*param_3 == '\0') {\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }" if (parenthesized_expression "(*param_3 == '\0')" ( (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }" { (labeled_statement "LAB_000158c0:\n    *puVar9 = 0;" statement_identifier : (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;)) (expression_statement "bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));" (call_expression "bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34))" identifier (argument_list "(param_1,param_2,local_34,puVar9 + (1 - (int)local_34))" ( identifier , identifier , identifier , (binary_expression "puVar9 + (1 - (int)local_34)" identifier + (parenthesized_expression "(1 - (int)local_34)" ( (binary_expression "1 - (int)local_34" number_literal - (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00032318)" ( (pointer_expression "*(code *)PTR_dcgettext_00032318" * (cast_expression "(code *)PTR_dcgettext_00032318" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5)" ( number_literal , (binary_expression "PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_error_000322d8)(1,0,uVar3);" (call_expression "(*(code *)PTR_error_000322d8)(1,0,uVar3)" (parenthesized_expression "(*(code *)PTR_error_000322d8)" ( (pointer_expression "*(code *)PTR_error_000322d8" * (cast_expression "(code *)PTR_error_000322d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0,uVar3)" ( number_literal , number_literal , identifier ))) ;) (labeled_statement "LAB_0001595c:\n  local_34 = (undefined1 *)xmalloc(iVar4 + 1);" statement_identifier : (expression_statement "local_34 = (undefined1 *)xmalloc(iVar4 + 1);" (assignment_expression "local_34 = (undefined1 *)xmalloc(iVar4 + 1)" identifier = (cast_expression "(undefined1 *)xmalloc(iVar4 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar4 + 1)" identifier (argument_list "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) ))))) ;)) (expression_statement "*(undefined1 **)(pcVar6 + 0x2440) = local_34;" (assignment_expression "*(undefined1 **)(pcVar6 + 0x2440) = local_34" (pointer_expression "*(undefined1 **)(pcVar6 + 0x2440)" * (cast_expression "(undefined1 **)(pcVar6 + 0x2440)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar6 + 0x2440)" ( (binary_expression "pcVar6 + 0x2440" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_000157c8;" goto statement_identifier ;) })))
(translation_unit "void bc_do_insert(buildcmd_control *ctl,buildcmd_state *state,char *arg,size_t arglen,char *prefix,\n                 size_t pfxlen,char *linebuf,size_t lblen,int initial_args)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *local_34;\n  \n  sVar4 = ctl->arg_max;\n  pcVar5 = (char *)(sVar4 - 1);\n  local_34 = *(char **)(PTR_DAT_000320c8 + 0x2440);\n  pcVar6 = PTR_DAT_000320c8;\n  if (local_34 == (char *)0x0) goto LAB_0001595c;\nLAB_000157c8:\n  pcVar6 = (char *)(lblen + pfxlen);\n  pcVar9 = local_34;\n  do {\n    pcVar2 = mbsstr(arg,ctl->replace_pat);\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= arglen) break;\n      pcVar2 = arg + arglen;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,arglen);\n      pcVar5 = pcVar5 + -arglen;\n      cVar1 = *pcVar2;\n      pcVar9 = pcVar9 + arglen;\n      arglen = 0;\n      arg = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)arg;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,pcVar7);\n      pcVar9 = pcVar9 + (int)pcVar7;\n      arg = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      pcVar8 = pcVar9;\n      if (prefix != (char *)0x0) {\n        pcVar8 = pcVar9 + pfxlen;\n        (*(code *)PTR_strcpy_000322ec)(pcVar9,prefix);\n      }\n      pcVar9 = pcVar8 + lblen;\n      (*(code *)PTR_strcpy_000322ec)(pcVar8,linebuf);\n      cVar1 = pcVar2[ctl->rplen];\n      arglen = arglen + (-(int)pcVar7 - ctl->rplen);\n      arg = pcVar2 + ctl->rplen;\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );\n  if (*arg == '\0') {\nLAB_000158c0:\n    *pcVar9 = '\0';\n    bc_push_arg(ctl,state,local_34,(size_t)(pcVar9 + (1 - (int)local_34)),(char *)0x0,0,initial_args\n               );\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);\n  sVar4 = 1;\n  (*(code *)PTR_error_000322d8)(1,0,uVar3);\nLAB_0001595c:\n  local_34 = (char *)xmalloc(sVar4 + 1);\n  *(char **)(pcVar6 + 0x2440) = local_34;\n  goto LAB_000157c8;\n}\n\n" (function_definition "void bc_do_insert(buildcmd_control *ctl,buildcmd_state *state,char *arg,size_t arglen,char *prefix,\n                 size_t pfxlen,char *linebuf,size_t lblen,int initial_args)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *local_34;\n  \n  sVar4 = ctl->arg_max;\n  pcVar5 = (char *)(sVar4 - 1);\n  local_34 = *(char **)(PTR_DAT_000320c8 + 0x2440);\n  pcVar6 = PTR_DAT_000320c8;\n  if (local_34 == (char *)0x0) goto LAB_0001595c;\nLAB_000157c8:\n  pcVar6 = (char *)(lblen + pfxlen);\n  pcVar9 = local_34;\n  do {\n    pcVar2 = mbsstr(arg,ctl->replace_pat);\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= arglen) break;\n      pcVar2 = arg + arglen;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,arglen);\n      pcVar5 = pcVar5 + -arglen;\n      cVar1 = *pcVar2;\n      pcVar9 = pcVar9 + arglen;\n      arglen = 0;\n      arg = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)arg;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,pcVar7);\n      pcVar9 = pcVar9 + (int)pcVar7;\n      arg = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      pcVar8 = pcVar9;\n      if (prefix != (char *)0x0) {\n        pcVar8 = pcVar9 + pfxlen;\n        (*(code *)PTR_strcpy_000322ec)(pcVar9,prefix);\n      }\n      pcVar9 = pcVar8 + lblen;\n      (*(code *)PTR_strcpy_000322ec)(pcVar8,linebuf);\n      cVar1 = pcVar2[ctl->rplen];\n      arglen = arglen + (-(int)pcVar7 - ctl->rplen);\n      arg = pcVar2 + ctl->rplen;\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );\n  if (*arg == '\0') {\nLAB_000158c0:\n    *pcVar9 = '\0';\n    bc_push_arg(ctl,state,local_34,(size_t)(pcVar9 + (1 - (int)local_34)),(char *)0x0,0,initial_args\n               );\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);\n  sVar4 = 1;\n  (*(code *)PTR_error_000322d8)(1,0,uVar3);\nLAB_0001595c:\n  local_34 = (char *)xmalloc(sVar4 + 1);\n  *(char **)(pcVar6 + 0x2440) = local_34;\n  goto LAB_000157c8;\n}" primitive_type (function_declarator "bc_do_insert(buildcmd_control *ctl,buildcmd_state *state,char *arg,size_t arglen,char *prefix,\n                 size_t pfxlen,char *linebuf,size_t lblen,int initial_args)" identifier (parameter_list "(buildcmd_control *ctl,buildcmd_state *state,char *arg,size_t arglen,char *prefix,\n                 size_t pfxlen,char *linebuf,size_t lblen,int initial_args)" ( (parameter_declaration "buildcmd_control *ctl" type_identifier (pointer_declarator "*ctl" * identifier)) , (parameter_declaration "buildcmd_state *state" type_identifier (pointer_declarator "*state" * identifier)) , (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) , (parameter_declaration "size_t arglen" primitive_type identifier) , (parameter_declaration "char *prefix" primitive_type (pointer_declarator "*prefix" * identifier)) , (parameter_declaration "size_t pfxlen" primitive_type identifier) , (parameter_declaration "char *linebuf" primitive_type (pointer_declarator "*linebuf" * identifier)) , (parameter_declaration "size_t lblen" primitive_type identifier) , (parameter_declaration "int initial_args" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *local_34;\n  \n  sVar4 = ctl->arg_max;\n  pcVar5 = (char *)(sVar4 - 1);\n  local_34 = *(char **)(PTR_DAT_000320c8 + 0x2440);\n  pcVar6 = PTR_DAT_000320c8;\n  if (local_34 == (char *)0x0) goto LAB_0001595c;\nLAB_000157c8:\n  pcVar6 = (char *)(lblen + pfxlen);\n  pcVar9 = local_34;\n  do {\n    pcVar2 = mbsstr(arg,ctl->replace_pat);\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= arglen) break;\n      pcVar2 = arg + arglen;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,arglen);\n      pcVar5 = pcVar5 + -arglen;\n      cVar1 = *pcVar2;\n      pcVar9 = pcVar9 + arglen;\n      arglen = 0;\n      arg = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)arg;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,pcVar7);\n      pcVar9 = pcVar9 + (int)pcVar7;\n      arg = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      pcVar8 = pcVar9;\n      if (prefix != (char *)0x0) {\n        pcVar8 = pcVar9 + pfxlen;\n        (*(code *)PTR_strcpy_000322ec)(pcVar9,prefix);\n      }\n      pcVar9 = pcVar8 + lblen;\n      (*(code *)PTR_strcpy_000322ec)(pcVar8,linebuf);\n      cVar1 = pcVar2[ctl->rplen];\n      arglen = arglen + (-(int)pcVar7 - ctl->rplen);\n      arg = pcVar2 + ctl->rplen;\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );\n  if (*arg == '\0') {\nLAB_000158c0:\n    *pcVar9 = '\0';\n    bc_push_arg(ctl,state,local_34,(size_t)(pcVar9 + (1 - (int)local_34)),(char *)0x0,0,initial_args\n               );\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);\n  sVar4 = 1;\n  (*(code *)PTR_error_000322d8)(1,0,uVar3);\nLAB_0001595c:\n  local_34 = (char *)xmalloc(sVar4 + 1);\n  *(char **)(pcVar6 + 0x2440) = local_34;\n  goto LAB_000157c8;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (expression_statement "sVar4 = ctl->arg_max;" (assignment_expression "sVar4 = ctl->arg_max" identifier = (field_expression "ctl->arg_max" identifier -> field_identifier)) ;) (expression_statement "pcVar5 = (char *)(sVar4 - 1);" (assignment_expression "pcVar5 = (char *)(sVar4 - 1)" identifier = (cast_expression "(char *)(sVar4 - 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(sVar4 - 1)" ( (binary_expression "sVar4 - 1" identifier - number_literal) )))) ;) (expression_statement "local_34 = *(char **)(PTR_DAT_000320c8 + 0x2440);" (assignment_expression "local_34 = *(char **)(PTR_DAT_000320c8 + 0x2440)" identifier = (pointer_expression "*(char **)(PTR_DAT_000320c8 + 0x2440)" * (cast_expression "(char **)(PTR_DAT_000320c8 + 0x2440)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000320c8 + 0x2440)" ( (binary_expression "PTR_DAT_000320c8 + 0x2440" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = PTR_DAT_000320c8;" (assignment_expression "pcVar6 = PTR_DAT_000320c8" identifier = identifier) ;) (if_statement "if (local_34 == (char *)0x0) goto LAB_0001595c;" if (parenthesized_expression "(local_34 == (char *)0x0)" ( (binary_expression "local_34 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001595c;" goto statement_identifier ;)) (labeled_statement "LAB_000157c8:\n  pcVar6 = (char *)(lblen + pfxlen);" statement_identifier : (expression_statement "pcVar6 = (char *)(lblen + pfxlen);" (assignment_expression "pcVar6 = (char *)(lblen + pfxlen)" identifier = (cast_expression "(char *)(lblen + pfxlen)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lblen + pfxlen)" ( (binary_expression "lblen + pfxlen" identifier + identifier) )))) ;)) (expression_statement "pcVar9 = local_34;" (assignment_expression "pcVar9 = local_34" identifier = identifier) ;) (do_statement "do {\n    pcVar2 = mbsstr(arg,ctl->replace_pat);\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= arglen) break;\n      pcVar2 = arg + arglen;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,arglen);\n      pcVar5 = pcVar5 + -arglen;\n      cVar1 = *pcVar2;\n      pcVar9 = pcVar9 + arglen;\n      arglen = 0;\n      arg = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)arg;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,pcVar7);\n      pcVar9 = pcVar9 + (int)pcVar7;\n      arg = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      pcVar8 = pcVar9;\n      if (prefix != (char *)0x0) {\n        pcVar8 = pcVar9 + pfxlen;\n        (*(code *)PTR_strcpy_000322ec)(pcVar9,prefix);\n      }\n      pcVar9 = pcVar8 + lblen;\n      (*(code *)PTR_strcpy_000322ec)(pcVar8,linebuf);\n      cVar1 = pcVar2[ctl->rplen];\n      arglen = arglen + (-(int)pcVar7 - ctl->rplen);\n      arg = pcVar2 + ctl->rplen;\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );" do (compound_statement "{\n    pcVar2 = mbsstr(arg,ctl->replace_pat);\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= arglen) break;\n      pcVar2 = arg + arglen;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,arglen);\n      pcVar5 = pcVar5 + -arglen;\n      cVar1 = *pcVar2;\n      pcVar9 = pcVar9 + arglen;\n      arglen = 0;\n      arg = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)arg;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,pcVar7);\n      pcVar9 = pcVar9 + (int)pcVar7;\n      arg = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      pcVar8 = pcVar9;\n      if (prefix != (char *)0x0) {\n        pcVar8 = pcVar9 + pfxlen;\n        (*(code *)PTR_strcpy_000322ec)(pcVar9,prefix);\n      }\n      pcVar9 = pcVar8 + lblen;\n      (*(code *)PTR_strcpy_000322ec)(pcVar8,linebuf);\n      cVar1 = pcVar2[ctl->rplen];\n      arglen = arglen + (-(int)pcVar7 - ctl->rplen);\n      arg = pcVar2 + ctl->rplen;\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  }" { (expression_statement "pcVar2 = mbsstr(arg,ctl->replace_pat);" (assignment_expression "pcVar2 = mbsstr(arg,ctl->replace_pat)" identifier = (call_expression "mbsstr(arg,ctl->replace_pat)" identifier (argument_list "(arg,ctl->replace_pat)" ( identifier , (field_expression "ctl->replace_pat" identifier -> field_identifier) )))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= arglen) break;\n      pcVar2 = arg + arglen;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,arglen);\n      pcVar5 = pcVar5 + -arglen;\n      cVar1 = *pcVar2;\n      pcVar9 = pcVar9 + arglen;\n      arglen = 0;\n      arg = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)arg;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,pcVar7);\n      pcVar9 = pcVar9 + (int)pcVar7;\n      arg = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      pcVar8 = pcVar9;\n      if (prefix != (char *)0x0) {\n        pcVar8 = pcVar9 + pfxlen;\n        (*(code *)PTR_strcpy_000322ec)(pcVar9,prefix);\n      }\n      pcVar9 = pcVar8 + lblen;\n      (*(code *)PTR_strcpy_000322ec)(pcVar8,linebuf);\n      cVar1 = pcVar2[ctl->rplen];\n      arglen = arglen + (-(int)pcVar7 - ctl->rplen);\n      arg = pcVar2 + ctl->rplen;\n    }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (pcVar5 <= arglen) break;\n      pcVar2 = arg + arglen;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,arglen);\n      pcVar5 = pcVar5 + -arglen;\n      cVar1 = *pcVar2;\n      pcVar9 = pcVar9 + arglen;\n      arglen = 0;\n      arg = pcVar2;\n    }" { (if_statement "if (pcVar5 <= arglen) break;" if (parenthesized_expression "(pcVar5 <= arglen)" ( (binary_expression "pcVar5 <= arglen" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "pcVar2 = arg + arglen;" (assignment_expression "pcVar2 = arg + arglen" identifier = (binary_expression "arg + arglen" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_strncpy_0003228c)(pcVar9,arg,arglen);" (call_expression "(*(code *)PTR_strncpy_0003228c)(pcVar9,arg,arglen)" (parenthesized_expression "(*(code *)PTR_strncpy_0003228c)" ( (pointer_expression "*(code *)PTR_strncpy_0003228c" * (cast_expression "(code *)PTR_strncpy_0003228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar9,arg,arglen)" ( identifier , identifier , identifier ))) ;) (expression_statement "pcVar5 = pcVar5 + -arglen;" (assignment_expression "pcVar5 = pcVar5 + -arglen" identifier = (binary_expression "pcVar5 + -arglen" identifier + (unary_expression "-arglen" - identifier))) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar9 = pcVar9 + arglen;" (assignment_expression "pcVar9 = pcVar9 + arglen" identifier = (binary_expression "pcVar9 + arglen" identifier + identifier)) ;) (expression_statement "arglen = 0;" (assignment_expression "arglen = 0" identifier = number_literal) ;) (expression_statement "arg = pcVar2;" (assignment_expression "arg = pcVar2" identifier = identifier) ;) }) (else_clause "else {\n      pcVar7 = pcVar2 + -(int)arg;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,pcVar7);\n      pcVar9 = pcVar9 + (int)pcVar7;\n      arg = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      pcVar8 = pcVar9;\n      if (prefix != (char *)0x0) {\n        pcVar8 = pcVar9 + pfxlen;\n        (*(code *)PTR_strcpy_000322ec)(pcVar9,prefix);\n      }\n      pcVar9 = pcVar8 + lblen;\n      (*(code *)PTR_strcpy_000322ec)(pcVar8,linebuf);\n      cVar1 = pcVar2[ctl->rplen];\n      arglen = arglen + (-(int)pcVar7 - ctl->rplen);\n      arg = pcVar2 + ctl->rplen;\n    }" else (compound_statement "{\n      pcVar7 = pcVar2 + -(int)arg;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(pcVar9,arg,pcVar7);\n      pcVar9 = pcVar9 + (int)pcVar7;\n      arg = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      pcVar8 = pcVar9;\n      if (prefix != (char *)0x0) {\n        pcVar8 = pcVar9 + pfxlen;\n        (*(code *)PTR_strcpy_000322ec)(pcVar9,prefix);\n      }\n      pcVar9 = pcVar8 + lblen;\n      (*(code *)PTR_strcpy_000322ec)(pcVar8,linebuf);\n      cVar1 = pcVar2[ctl->rplen];\n      arglen = arglen + (-(int)pcVar7 - ctl->rplen);\n      arg = pcVar2 + ctl->rplen;\n    }" { (expression_statement "pcVar7 = pcVar2 + -(int)arg;" (assignment_expression "pcVar7 = pcVar2 + -(int)arg" identifier = (binary_expression "pcVar2 + -(int)arg" identifier + (unary_expression "-(int)arg" - (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier)))) ;) (if_statement "if (pcVar5 <= pcVar7) break;" if (parenthesized_expression "(pcVar5 <= pcVar7)" ( (binary_expression "pcVar5 <= pcVar7" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = pcVar5 + -(int)pcVar7;" (assignment_expression "pcVar5 = pcVar5 + -(int)pcVar7" identifier = (binary_expression "pcVar5 + -(int)pcVar7" identifier + (unary_expression "-(int)pcVar7" - (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier)))) ;) (expression_statement "(*(code *)PTR_strncpy_0003228c)(pcVar9,arg,pcVar7);" (call_expression "(*(code *)PTR_strncpy_0003228c)(pcVar9,arg,pcVar7)" (parenthesized_expression "(*(code *)PTR_strncpy_0003228c)" ( (pointer_expression "*(code *)PTR_strncpy_0003228c" * (cast_expression "(code *)PTR_strncpy_0003228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar9,arg,pcVar7)" ( identifier , identifier , identifier ))) ;) (expression_statement "pcVar9 = pcVar9 + (int)pcVar7;" (assignment_expression "pcVar9 = pcVar9 + (int)pcVar7" identifier = (binary_expression "pcVar9 + (int)pcVar7" identifier + (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "arg = pcVar2;" (assignment_expression "arg = pcVar2" identifier = identifier) ;) (if_statement "if (pcVar5 <= pcVar6) break;" if (parenthesized_expression "(pcVar5 <= pcVar6)" ( (binary_expression "pcVar5 <= pcVar6" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = pcVar5 + -(int)pcVar6;" (assignment_expression "pcVar5 = pcVar5 + -(int)pcVar6" identifier = (binary_expression "pcVar5 + -(int)pcVar6" identifier + (unary_expression "-(int)pcVar6" - (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier)))) ;) (expression_statement "pcVar8 = pcVar9;" (assignment_expression "pcVar8 = pcVar9" identifier = identifier) ;) (if_statement "if (prefix != (char *)0x0) {\n        pcVar8 = pcVar9 + pfxlen;\n        (*(code *)PTR_strcpy_000322ec)(pcVar9,prefix);\n      }" if (parenthesized_expression "(prefix != (char *)0x0)" ( (binary_expression "prefix != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar8 = pcVar9 + pfxlen;\n        (*(code *)PTR_strcpy_000322ec)(pcVar9,prefix);\n      }" { (expression_statement "pcVar8 = pcVar9 + pfxlen;" (assignment_expression "pcVar8 = pcVar9 + pfxlen" identifier = (binary_expression "pcVar9 + pfxlen" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_strcpy_000322ec)(pcVar9,prefix);" (call_expression "(*(code *)PTR_strcpy_000322ec)(pcVar9,prefix)" (parenthesized_expression "(*(code *)PTR_strcpy_000322ec)" ( (pointer_expression "*(code *)PTR_strcpy_000322ec" * (cast_expression "(code *)PTR_strcpy_000322ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar9,prefix)" ( identifier , identifier ))) ;) })) (expression_statement "pcVar9 = pcVar8 + lblen;" (assignment_expression "pcVar9 = pcVar8 + lblen" identifier = (binary_expression "pcVar8 + lblen" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_strcpy_000322ec)(pcVar8,linebuf);" (call_expression "(*(code *)PTR_strcpy_000322ec)(pcVar8,linebuf)" (parenthesized_expression "(*(code *)PTR_strcpy_000322ec)" ( (pointer_expression "*(code *)PTR_strcpy_000322ec" * (cast_expression "(code *)PTR_strcpy_000322ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8,linebuf)" ( identifier , identifier ))) ;) (expression_statement "cVar1 = pcVar2[ctl->rplen];" (assignment_expression "cVar1 = pcVar2[ctl->rplen]" identifier = (subscript_expression "pcVar2[ctl->rplen]" identifier [ (field_expression "ctl->rplen" identifier -> field_identifier) ])) ;) (expression_statement "arglen = arglen + (-(int)pcVar7 - ctl->rplen);" (assignment_expression "arglen = arglen + (-(int)pcVar7 - ctl->rplen)" identifier = (binary_expression "arglen + (-(int)pcVar7 - ctl->rplen)" identifier + (parenthesized_expression "(-(int)pcVar7 - ctl->rplen)" ( (binary_expression "-(int)pcVar7 - ctl->rplen" (unary_expression "-(int)pcVar7" - (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier)) - (field_expression "ctl->rplen" identifier -> field_identifier)) )))) ;) (expression_statement "arg = pcVar2 + ctl->rplen;" (assignment_expression "arg = pcVar2 + ctl->rplen" identifier = (binary_expression "pcVar2 + ctl->rplen" identifier + (field_expression "ctl->rplen" identifier -> field_identifier))) ;) }))) (if_statement "if (cVar1 == '\0') goto LAB_000158c0;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000158c0;" goto statement_identifier ;)) }) while (parenthesized_expression "( true )" ( true )) ;) (if_statement "if (*arg == '\0') {\nLAB_000158c0:\n    *pcVar9 = '\0';\n    bc_push_arg(ctl,state,local_34,(size_t)(pcVar9 + (1 - (int)local_34)),(char *)0x0,0,initial_args\n               );\n    return;\n  }" if (parenthesized_expression "(*arg == '\0')" ( (binary_expression "*arg == '\0'" (pointer_expression "*arg" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000158c0:\n    *pcVar9 = '\0';\n    bc_push_arg(ctl,state,local_34,(size_t)(pcVar9 + (1 - (int)local_34)),(char *)0x0,0,initial_args\n               );\n    return;\n  }" { (labeled_statement "LAB_000158c0:\n    *pcVar9 = '\0';" statement_identifier : (expression_statement "*pcVar9 = '\0';" (assignment_expression "*pcVar9 = '\0'" (pointer_expression "*pcVar9" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (expression_statement "bc_push_arg(ctl,state,local_34,(size_t)(pcVar9 + (1 - (int)local_34)),(char *)0x0,0,initial_args\n               );" (call_expression "bc_push_arg(ctl,state,local_34,(size_t)(pcVar9 + (1 - (int)local_34)),(char *)0x0,0,initial_args\n               )" identifier (argument_list "(ctl,state,local_34,(size_t)(pcVar9 + (1 - (int)local_34)),(char *)0x0,0,initial_args\n               )" ( identifier , identifier , identifier , (cast_expression "(size_t)(pcVar9 + (1 - (int)local_34))" ( (type_descriptor "size_t" primitive_type) ) (parenthesized_expression "(pcVar9 + (1 - (int)local_34))" ( (binary_expression "pcVar9 + (1 - (int)local_34)" identifier + (parenthesized_expression "(1 - (int)local_34)" ( (binary_expression "1 - (int)local_34" number_literal - (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00032318)" ( (pointer_expression "*(code *)PTR_dcgettext_00032318" * (cast_expression "(code *)PTR_dcgettext_00032318" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5)" ( number_literal , (binary_expression "PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768" identifier + number_literal) , number_literal )))) ;) (expression_statement "sVar4 = 1;" (assignment_expression "sVar4 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_error_000322d8)(1,0,uVar3);" (call_expression "(*(code *)PTR_error_000322d8)(1,0,uVar3)" (parenthesized_expression "(*(code *)PTR_error_000322d8)" ( (pointer_expression "*(code *)PTR_error_000322d8" * (cast_expression "(code *)PTR_error_000322d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0,uVar3)" ( number_literal , number_literal , identifier ))) ;) (labeled_statement "LAB_0001595c:\n  local_34 = (char *)xmalloc(sVar4 + 1);" statement_identifier : (expression_statement "local_34 = (char *)xmalloc(sVar4 + 1);" (assignment_expression "local_34 = (char *)xmalloc(sVar4 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar4 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar4 + 1)" identifier (argument_list "(sVar4 + 1)" ( (binary_expression "sVar4 + 1" identifier + number_literal) ))))) ;)) (expression_statement "*(char **)(pcVar6 + 0x2440) = local_34;" (assignment_expression "*(char **)(pcVar6 + 0x2440) = local_34" (pointer_expression "*(char **)(pcVar6 + 0x2440)" * (cast_expression "(char **)(pcVar6 + 0x2440)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar6 + 0x2440)" ( (binary_expression "pcVar6 + 0x2440" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_000157c8;" goto statement_identifier ;) })))
(translation_unit "void bc_do_insert(int param_1,undefined4 param_2,char *param_3,char *param_4,int param_5,int param_6\n                 ,undefined4 param_7,int param_8)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  undefined1 *local_34;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  pcVar5 = (char *)(iVar4 + -1);\n  local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440);\n  pcVar6 = PTR_DAT_000320c8;\n  if (local_34 == (undefined1 *)0x0) goto LAB_0001595c;\nLAB_000157c8:\n  pcVar6 = (char *)(param_8 + param_6);\n  puVar9 = local_34;\n  do {\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );\n  if (*param_3 == '\0') {\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);\n  iVar4 = 1;\n  (*(code *)PTR_error_000322d8)(1,0,uVar3);\nLAB_0001595c:\n  local_34 = (undefined1 *)xmalloc(iVar4 + 1);\n  *(undefined1 **)(pcVar6 + 0x2440) = local_34;\n  goto LAB_000157c8;\n}\n\n" (function_definition "void bc_do_insert(int param_1,undefined4 param_2,char *param_3,char *param_4,int param_5,int param_6\n                 ,undefined4 param_7,int param_8)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  undefined1 *local_34;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  pcVar5 = (char *)(iVar4 + -1);\n  local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440);\n  pcVar6 = PTR_DAT_000320c8;\n  if (local_34 == (undefined1 *)0x0) goto LAB_0001595c;\nLAB_000157c8:\n  pcVar6 = (char *)(param_8 + param_6);\n  puVar9 = local_34;\n  do {\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );\n  if (*param_3 == '\0') {\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);\n  iVar4 = 1;\n  (*(code *)PTR_error_000322d8)(1,0,uVar3);\nLAB_0001595c:\n  local_34 = (undefined1 *)xmalloc(iVar4 + 1);\n  *(undefined1 **)(pcVar6 + 0x2440) = local_34;\n  goto LAB_000157c8;\n}" primitive_type (function_declarator "bc_do_insert(int param_1,undefined4 param_2,char *param_3,char *param_4,int param_5,int param_6\n                 ,undefined4 param_7,int param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,char *param_3,char *param_4,int param_5,int param_6\n                 ,undefined4 param_7,int param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "int param_8" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  undefined1 *local_34;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  pcVar5 = (char *)(iVar4 + -1);\n  local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440);\n  pcVar6 = PTR_DAT_000320c8;\n  if (local_34 == (undefined1 *)0x0) goto LAB_0001595c;\nLAB_000157c8:\n  pcVar6 = (char *)(param_8 + param_6);\n  puVar9 = local_34;\n  do {\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );\n  if (*param_3 == '\0') {\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);\n  iVar4 = 1;\n  (*(code *)PTR_error_000322d8)(1,0,uVar3);\nLAB_0001595c:\n  local_34 = (undefined1 *)xmalloc(iVar4 + 1);\n  *(undefined1 **)(pcVar6 + 0x2440) = local_34;\n  goto LAB_000157c8;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined1 *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = (char *)(iVar4 + -1);" (assignment_expression "pcVar5 = (char *)(iVar4 + -1)" identifier = (cast_expression "(char *)(iVar4 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -1)" ( (binary_expression "iVar4 + -1" identifier + number_literal) )))) ;) (expression_statement "local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440);" (assignment_expression "local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440)" identifier = (pointer_expression "*(undefined1 **)(PTR_DAT_000320c8 + 0x2440)" * (cast_expression "(undefined1 **)(PTR_DAT_000320c8 + 0x2440)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000320c8 + 0x2440)" ( (binary_expression "PTR_DAT_000320c8 + 0x2440" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = PTR_DAT_000320c8;" (assignment_expression "pcVar6 = PTR_DAT_000320c8" identifier = identifier) ;) (if_statement "if (local_34 == (undefined1 *)0x0) goto LAB_0001595c;" if (parenthesized_expression "(local_34 == (undefined1 *)0x0)" ( (binary_expression "local_34 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001595c;" goto statement_identifier ;)) (labeled_statement "LAB_000157c8:\n  pcVar6 = (char *)(param_8 + param_6);" statement_identifier : (expression_statement "pcVar6 = (char *)(param_8 + param_6);" (assignment_expression "pcVar6 = (char *)(param_8 + param_6)" identifier = (cast_expression "(char *)(param_8 + param_6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_8 + param_6)" ( (binary_expression "param_8 + param_6" identifier + identifier) )))) ;)) (expression_statement "puVar9 = local_34;" (assignment_expression "puVar9 = local_34" identifier = identifier) ;) (do_statement "do {\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );" do (compound_statement "{\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  }" { (expression_statement "pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));" (assignment_expression "pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18))" identifier = (cast_expression "(char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "mbsstr(param_3,*(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(param_3,*(undefined4 *)(param_1 + 0x18))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }" { (if_statement "if (pcVar5 <= param_4) break;" if (parenthesized_expression "(pcVar5 <= param_4)" ( (binary_expression "pcVar5 <= param_4" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "pcVar2 = param_3 + (int)param_4;" (assignment_expression "pcVar2 = param_3 + (int)param_4" identifier = (binary_expression "param_3 + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "(*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);" (call_expression "(*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4)" (parenthesized_expression "(*(code *)PTR_strncpy_0003228c)" ( (pointer_expression "*(code *)PTR_strncpy_0003228c" * (cast_expression "(code *)PTR_strncpy_0003228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (expression_statement "pcVar5 = pcVar5 + -(int)param_4;" (assignment_expression "pcVar5 = pcVar5 + -(int)param_4" identifier = (binary_expression "pcVar5 + -(int)param_4" identifier + (unary_expression "-(int)param_4" - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)))) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "puVar9 = puVar9 + (int)param_4;" (assignment_expression "puVar9 = puVar9 + (int)param_4" identifier = (binary_expression "puVar9 + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_4 = (char *)0x0;" (assignment_expression "param_4 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "param_3 = pcVar2;" (assignment_expression "param_3 = pcVar2" identifier = identifier) ;) }) (else_clause "else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }" else (compound_statement "{\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }" { (expression_statement "pcVar7 = pcVar2 + -(int)param_3;" (assignment_expression "pcVar7 = pcVar2 + -(int)param_3" identifier = (binary_expression "pcVar2 + -(int)param_3" identifier + (unary_expression "-(int)param_3" - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)))) ;) (if_statement "if (pcVar5 <= pcVar7) break;" if (parenthesized_expression "(pcVar5 <= pcVar7)" ( (binary_expression "pcVar5 <= pcVar7" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = pcVar5 + -(int)pcVar7;" (assignment_expression "pcVar5 = pcVar5 + -(int)pcVar7" identifier = (binary_expression "pcVar5 + -(int)pcVar7" identifier + (unary_expression "-(int)pcVar7" - (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier)))) ;) (expression_statement "(*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);" (call_expression "(*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7)" (parenthesized_expression "(*(code *)PTR_strncpy_0003228c)" ( (pointer_expression "*(code *)PTR_strncpy_0003228c" * (cast_expression "(code *)PTR_strncpy_0003228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,param_3,pcVar7)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar9 = puVar9 + (int)pcVar7;" (assignment_expression "puVar9 = puVar9 + (int)pcVar7" identifier = (binary_expression "puVar9 + (int)pcVar7" identifier + (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_3 = pcVar2;" (assignment_expression "param_3 = pcVar2" identifier = identifier) ;) (if_statement "if (pcVar5 <= pcVar6) break;" if (parenthesized_expression "(pcVar5 <= pcVar6)" ( (binary_expression "pcVar5 <= pcVar6" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = pcVar5 + -(int)pcVar6;" (assignment_expression "pcVar5 = pcVar5 + -(int)pcVar6" identifier = (binary_expression "pcVar5 + -(int)pcVar6" identifier + (unary_expression "-(int)pcVar6" - (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier)))) ;) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) (if_statement "if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }" { (expression_statement "puVar8 = puVar9 + param_6;" (assignment_expression "puVar8 = puVar9 + param_6" identifier = (binary_expression "puVar9 + param_6" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_strcpy_000322ec)(puVar9,param_5);" (call_expression "(*(code *)PTR_strcpy_000322ec)(puVar9,param_5)" (parenthesized_expression "(*(code *)PTR_strcpy_000322ec)" ( (pointer_expression "*(code *)PTR_strcpy_000322ec" * (cast_expression "(code *)PTR_strcpy_000322ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,param_5)" ( identifier , identifier ))) ;) })) (expression_statement "puVar9 = puVar8 + param_8;" (assignment_expression "puVar9 = puVar8 + param_8" identifier = (binary_expression "puVar8 + param_8" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_strcpy_000322ec)(puVar8,param_7);" (call_expression "(*(code *)PTR_strcpy_000322ec)(puVar8,param_7)" (parenthesized_expression "(*(code *)PTR_strcpy_000322ec)" ( (pointer_expression "*(code *)PTR_strcpy_000322ec" * (cast_expression "(code *)PTR_strcpy_000322ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar8,param_7)" ( identifier , identifier ))) ;) (expression_statement "cVar1 = pcVar2[*(int *)(param_1 + 0x14)];" (assignment_expression "cVar1 = pcVar2[*(int *)(param_1 + 0x14)]" identifier = (subscript_expression "pcVar2[*(int *)(param_1 + 0x14)]" identifier [ (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ])) ;) (expression_statement "param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));" (assignment_expression "param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14))" identifier = (binary_expression "param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14))" identifier + (parenthesized_expression "(-(int)pcVar7 - *(int *)(param_1 + 0x14))" ( (binary_expression "-(int)pcVar7 - *(int *)(param_1 + 0x14)" (unary_expression "-(int)pcVar7" - (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier)) - (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )))) ;) (expression_statement "param_3 = pcVar2 + *(int *)(param_1 + 0x14);" (assignment_expression "param_3 = pcVar2 + *(int *)(param_1 + 0x14)" identifier = (binary_expression "pcVar2 + *(int *)(param_1 + 0x14)" identifier + (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))))) ;) }))) (if_statement "if (cVar1 == '\0') goto LAB_000158c0;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000158c0;" goto statement_identifier ;)) }) while (parenthesized_expression "( true )" ( true )) ;) (if_statement "if (*param_3 == '\0') {\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }" if (parenthesized_expression "(*param_3 == '\0')" ( (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }" { (labeled_statement "LAB_000158c0:\n    *puVar9 = 0;" statement_identifier : (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;)) (expression_statement "bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));" (call_expression "bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34))" identifier (argument_list "(param_1,param_2,local_34,puVar9 + (1 - (int)local_34))" ( identifier , identifier , identifier , (binary_expression "puVar9 + (1 - (int)local_34)" identifier + (parenthesized_expression "(1 - (int)local_34)" ( (binary_expression "1 - (int)local_34" number_literal - (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00032318)" ( (pointer_expression "*(code *)PTR_dcgettext_00032318" * (cast_expression "(code *)PTR_dcgettext_00032318" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5)" ( number_literal , (binary_expression "PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_error_000322d8)(1,0,uVar3);" (call_expression "(*(code *)PTR_error_000322d8)(1,0,uVar3)" (parenthesized_expression "(*(code *)PTR_error_000322d8)" ( (pointer_expression "*(code *)PTR_error_000322d8" * (cast_expression "(code *)PTR_error_000322d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0,uVar3)" ( number_literal , number_literal , identifier ))) ;) (labeled_statement "LAB_0001595c:\n  local_34 = (undefined1 *)xmalloc(iVar4 + 1);" statement_identifier : (expression_statement "local_34 = (undefined1 *)xmalloc(iVar4 + 1);" (assignment_expression "local_34 = (undefined1 *)xmalloc(iVar4 + 1)" identifier = (cast_expression "(undefined1 *)xmalloc(iVar4 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar4 + 1)" identifier (argument_list "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) ))))) ;)) (expression_statement "*(undefined1 **)(pcVar6 + 0x2440) = local_34;" (assignment_expression "*(undefined1 **)(pcVar6 + 0x2440) = local_34" (pointer_expression "*(undefined1 **)(pcVar6 + 0x2440)" * (cast_expression "(undefined1 **)(pcVar6 + 0x2440)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar6 + 0x2440)" ( (binary_expression "pcVar6 + 0x2440" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_000157c8;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (unary_expression - (cast_expression ( (type_descriptor TYPE) ) IDENT)))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (unary_expression - (cast_expression ( (type_descriptor TYPE) ) IDENT)))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (unary_expression - (cast_expression ( (type_descriptor TYPE) ) IDENT)))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (unary_expression - (cast_expression ( (type_descriptor TYPE) ) IDENT)))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_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 + (parenthesized_expression ( (binary_expression (unary_expression - (cast_expression ( (type_descriptor TYPE) ) 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 + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( BOOL )) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT , IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (goto_statement goto statement_identifier ;) })))
(function_definition "void bc_do_insert(int param_1,undefined4 param_2,char *param_3,char *param_4,int param_5,int param_6\n                 ,undefined4 param_7,int param_8)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  undefined1 *local_34;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  pcVar5 = (char *)(iVar4 + -1);\n  local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440);\n  pcVar6 = PTR_DAT_000320c8;\n  if (local_34 == (undefined1 *)0x0) goto LAB_0001595c;\nLAB_000157c8:\n  pcVar6 = (char *)(param_8 + param_6);\n  puVar9 = local_34;\n  do {\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );\n  if (*param_3 == '\0') {\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);\n  iVar4 = 1;\n  (*(code *)PTR_error_000322d8)(1,0,uVar3);\nLAB_0001595c:\n  local_34 = (undefined1 *)xmalloc(iVar4 + 1);\n  *(undefined1 **)(pcVar6 + 0x2440) = local_34;\n  goto LAB_000157c8;\n}" (primitive_type "void") (function_declarator "bc_do_insert(int param_1,undefined4 param_2,char *param_3,char *param_4,int param_5,int param_6\n                 ,undefined4 param_7,int param_8)" (identifier "bc_do_insert") (parameter_list "(int param_1,undefined4 param_2,char *param_3,char *param_4,int param_5,int param_6\n                 ,undefined4 param_7,int param_8)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "char *param_4" (primitive_type "char") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "int param_8" (primitive_type "int") (identifier "param_8")) () ")"))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  char *pcVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  undefined1 *local_34;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  pcVar5 = (char *)(iVar4 + -1);\n  local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440);\n  pcVar6 = PTR_DAT_000320c8;\n  if (local_34 == (undefined1 *)0x0) goto LAB_0001595c;\nLAB_000157c8:\n  pcVar6 = (char *)(param_8 + param_6);\n  puVar9 = local_34;\n  do {\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );\n  if (*param_3 == '\0') {\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);\n  iVar4 = 1;\n  (*(code *)PTR_error_000322d8)(1,0,uVar3);\nLAB_0001595c:\n  local_34 = (undefined1 *)xmalloc(iVar4 + 1);\n  *(undefined1 **)(pcVar6 + 0x2440) = local_34;\n  goto LAB_000157c8;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "undefined1 *puVar8;" (type_identifier "undefined1") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined1 *puVar9;" (type_identifier "undefined1") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "undefined1 *local_34;" (type_identifier "undefined1") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "pcVar5 = (char *)(iVar4 + -1);" (assignment_expression "pcVar5 = (char *)(iVar4 + -1)" (identifier "pcVar5") (= "=") (cast_expression "(char *)(iVar4 + -1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -1)" (( "(") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1")) () ")")))) (; ";")) (expression_statement "local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440);" (assignment_expression "local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440)" (identifier "local_34") (= "=") (pointer_expression "*(undefined1 **)(PTR_DAT_000320c8 + 0x2440)" (* "*") (cast_expression "(undefined1 **)(PTR_DAT_000320c8 + 0x2440)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_000320c8 + 0x2440)" (( "(") (binary_expression "PTR_DAT_000320c8 + 0x2440" (identifier "PTR_DAT_000320c8") (+ "+") (number_literal "0x2440")) () ")"))))) (; ";")) (expression_statement "pcVar6 = PTR_DAT_000320c8;" (assignment_expression "pcVar6 = PTR_DAT_000320c8" (identifier "pcVar6") (= "=") (identifier "PTR_DAT_000320c8")) (; ";")) (if_statement "if (local_34 == (undefined1 *)0x0) goto LAB_0001595c;" (if "if") (parenthesized_expression "(local_34 == (undefined1 *)0x0)" (( "(") (binary_expression "local_34 == (undefined1 *)0x0" (identifier "local_34") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0001595c;" (goto "goto") (statement_identifier "LAB_0001595c") (; ";"))) (labeled_statement "LAB_000157c8:\n  pcVar6 = (char *)(param_8 + param_6);" (statement_identifier "LAB_000157c8") (: ":") (expression_statement "pcVar6 = (char *)(param_8 + param_6);" (assignment_expression "pcVar6 = (char *)(param_8 + param_6)" (identifier "pcVar6") (= "=") (cast_expression "(char *)(param_8 + param_6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_8 + param_6)" (( "(") (binary_expression "param_8 + param_6" (identifier "param_8") (+ "+") (identifier "param_6")) () ")")))) (; ";"))) (expression_statement "puVar9 = local_34;" (assignment_expression "puVar9 = local_34" (identifier "puVar9") (= "=") (identifier "local_34")) (; ";")) (do_statement "do {\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  } while( true );" (do "do") (compound_statement "{\n    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));\n    if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }\n    if (cVar1 == '\0') goto LAB_000158c0;\n  }" ({ "{") (expression_statement "pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));" (assignment_expression "pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18))" (identifier "pcVar2") (= "=") (cast_expression "(char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "mbsstr(param_3,*(undefined4 *)(param_1 + 0x18))" (identifier "mbsstr") (argument_list "(param_3,*(undefined4 *)(param_1 + 0x18))" (( "(") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) () ")"))))) (; ";")) (if_statement "if (pcVar2 == (char *)0x0) {\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }\n    else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }" (if "if") (parenthesized_expression "(pcVar2 == (char *)0x0)" (( "(") (binary_expression "pcVar2 == (char *)0x0" (identifier "pcVar2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (pcVar5 <= param_4) break;\n      pcVar2 = param_3 + (int)param_4;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);\n      pcVar5 = pcVar5 + -(int)param_4;\n      cVar1 = *pcVar2;\n      puVar9 = puVar9 + (int)param_4;\n      param_4 = (char *)0x0;\n      param_3 = pcVar2;\n    }" ({ "{") (if_statement "if (pcVar5 <= param_4) break;" (if "if") (parenthesized_expression "(pcVar5 <= param_4)" (( "(") (binary_expression "pcVar5 <= param_4" (identifier "pcVar5") (<= "<=") (identifier "param_4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar2 = param_3 + (int)param_4;" (assignment_expression "pcVar2 = param_3 + (int)param_4" (identifier "pcVar2") (= "=") (binary_expression "param_3 + (int)param_4" (identifier "param_3") (+ "+") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")))) (; ";")) (expression_statement "(*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);" (call_expression "(*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4)" (parenthesized_expression "(*(code *)PTR_strncpy_0003228c)" (( "(") (pointer_expression "*(code *)PTR_strncpy_0003228c" (* "*") (cast_expression "(code *)PTR_strncpy_0003228c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncpy_0003228c"))) () ")")) (argument_list "(puVar9,param_3,param_4)" (( "(") (identifier "puVar9") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "pcVar5 = pcVar5 + -(int)param_4;" (assignment_expression "pcVar5 = pcVar5 + -(int)param_4" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + -(int)param_4" (identifier "pcVar5") (+ "+") (unary_expression "-(int)param_4" (- "-") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))))) (; ";")) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" (identifier "cVar1") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (expression_statement "puVar9 = puVar9 + (int)param_4;" (assignment_expression "puVar9 = puVar9 + (int)param_4" (identifier "puVar9") (= "=") (binary_expression "puVar9 + (int)param_4" (identifier "puVar9") (+ "+") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")))) (; ";")) (expression_statement "param_4 = (char *)0x0;" (assignment_expression "param_4 = (char *)0x0" (identifier "param_4") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "param_3 = pcVar2;" (assignment_expression "param_3 = pcVar2" (identifier "param_3") (= "=") (identifier "pcVar2")) (; ";")) (} "}")) (else_clause "else {\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }" (else "else") (compound_statement "{\n      pcVar7 = pcVar2 + -(int)param_3;\n      if (pcVar5 <= pcVar7) break;\n      pcVar5 = pcVar5 + -(int)pcVar7;\n      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);\n      puVar9 = puVar9 + (int)pcVar7;\n      param_3 = pcVar2;\n      if (pcVar5 <= pcVar6) break;\n      pcVar5 = pcVar5 + -(int)pcVar6;\n      puVar8 = puVar9;\n      if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }\n      puVar9 = puVar8 + param_8;\n      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);\n      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];\n      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));\n      param_3 = pcVar2 + *(int *)(param_1 + 0x14);\n    }" ({ "{") (expression_statement "pcVar7 = pcVar2 + -(int)param_3;" (assignment_expression "pcVar7 = pcVar2 + -(int)param_3" (identifier "pcVar7") (= "=") (binary_expression "pcVar2 + -(int)param_3" (identifier "pcVar2") (+ "+") (unary_expression "-(int)param_3" (- "-") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))))) (; ";")) (if_statement "if (pcVar5 <= pcVar7) break;" (if "if") (parenthesized_expression "(pcVar5 <= pcVar7)" (( "(") (binary_expression "pcVar5 <= pcVar7" (identifier "pcVar5") (<= "<=") (identifier "pcVar7")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar5 = pcVar5 + -(int)pcVar7;" (assignment_expression "pcVar5 = pcVar5 + -(int)pcVar7" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + -(int)pcVar7" (identifier "pcVar5") (+ "+") (unary_expression "-(int)pcVar7" (- "-") (cast_expression "(int)pcVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar7"))))) (; ";")) (expression_statement "(*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);" (call_expression "(*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7)" (parenthesized_expression "(*(code *)PTR_strncpy_0003228c)" (( "(") (pointer_expression "*(code *)PTR_strncpy_0003228c" (* "*") (cast_expression "(code *)PTR_strncpy_0003228c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncpy_0003228c"))) () ")")) (argument_list "(puVar9,param_3,pcVar7)" (( "(") (identifier "puVar9") (, ",") (identifier "param_3") (, ",") (identifier "pcVar7") () ")"))) (; ";")) (expression_statement "puVar9 = puVar9 + (int)pcVar7;" (assignment_expression "puVar9 = puVar9 + (int)pcVar7" (identifier "puVar9") (= "=") (binary_expression "puVar9 + (int)pcVar7" (identifier "puVar9") (+ "+") (cast_expression "(int)pcVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar7")))) (; ";")) (expression_statement "param_3 = pcVar2;" (assignment_expression "param_3 = pcVar2" (identifier "param_3") (= "=") (identifier "pcVar2")) (; ";")) (if_statement "if (pcVar5 <= pcVar6) break;" (if "if") (parenthesized_expression "(pcVar5 <= pcVar6)" (( "(") (binary_expression "pcVar5 <= pcVar6" (identifier "pcVar5") (<= "<=") (identifier "pcVar6")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar5 = pcVar5 + -(int)pcVar6;" (assignment_expression "pcVar5 = pcVar5 + -(int)pcVar6" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + -(int)pcVar6" (identifier "pcVar5") (+ "+") (unary_expression "-(int)pcVar6" (- "-") (cast_expression "(int)pcVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar6"))))) (; ";")) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" (identifier "puVar8") (= "=") (identifier "puVar9")) (; ";")) (if_statement "if (param_5 != 0) {\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }" (if "if") (parenthesized_expression "(param_5 != 0)" (( "(") (binary_expression "param_5 != 0" (identifier "param_5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        puVar8 = puVar9 + param_6;\n        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);\n      }" ({ "{") (expression_statement "puVar8 = puVar9 + param_6;" (assignment_expression "puVar8 = puVar9 + param_6" (identifier "puVar8") (= "=") (binary_expression "puVar9 + param_6" (identifier "puVar9") (+ "+") (identifier "param_6"))) (; ";")) (expression_statement "(*(code *)PTR_strcpy_000322ec)(puVar9,param_5);" (call_expression "(*(code *)PTR_strcpy_000322ec)(puVar9,param_5)" (parenthesized_expression "(*(code *)PTR_strcpy_000322ec)" (( "(") (pointer_expression "*(code *)PTR_strcpy_000322ec" (* "*") (cast_expression "(code *)PTR_strcpy_000322ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_000322ec"))) () ")")) (argument_list "(puVar9,param_5)" (( "(") (identifier "puVar9") (, ",") (identifier "param_5") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar9 = puVar8 + param_8;" (assignment_expression "puVar9 = puVar8 + param_8" (identifier "puVar9") (= "=") (binary_expression "puVar8 + param_8" (identifier "puVar8") (+ "+") (identifier "param_8"))) (; ";")) (expression_statement "(*(code *)PTR_strcpy_000322ec)(puVar8,param_7);" (call_expression "(*(code *)PTR_strcpy_000322ec)(puVar8,param_7)" (parenthesized_expression "(*(code *)PTR_strcpy_000322ec)" (( "(") (pointer_expression "*(code *)PTR_strcpy_000322ec" (* "*") (cast_expression "(code *)PTR_strcpy_000322ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_000322ec"))) () ")")) (argument_list "(puVar8,param_7)" (( "(") (identifier "puVar8") (, ",") (identifier "param_7") () ")"))) (; ";")) (expression_statement "cVar1 = pcVar2[*(int *)(param_1 + 0x14)];" (assignment_expression "cVar1 = pcVar2[*(int *)(param_1 + 0x14)]" (identifier "cVar1") (= "=") (subscript_expression "pcVar2[*(int *)(param_1 + 0x14)]" (identifier "pcVar2") ([ "[") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (] "]"))) (; ";")) (expression_statement "param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));" (assignment_expression "param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14))" (identifier "param_4") (= "=") (binary_expression "param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14))" (identifier "param_4") (+ "+") (parenthesized_expression "(-(int)pcVar7 - *(int *)(param_1 + 0x14))" (( "(") (binary_expression "-(int)pcVar7 - *(int *)(param_1 + 0x14)" (unary_expression "-(int)pcVar7" (- "-") (cast_expression "(int)pcVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar7"))) (- "-") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) () ")")))) (; ";")) (expression_statement "param_3 = pcVar2 + *(int *)(param_1 + 0x14);" (assignment_expression "param_3 = pcVar2 + *(int *)(param_1 + 0x14)" (identifier "param_3") (= "=") (binary_expression "pcVar2 + *(int *)(param_1 + 0x14)" (identifier "pcVar2") (+ "+") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))))) (; ";")) (} "}")))) (if_statement "if (cVar1 == '\0') goto LAB_000158c0;" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000158c0;" (goto "goto") (statement_identifier "LAB_000158c0") (; ";"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (if_statement "if (*param_3 == '\0') {\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }" (if "if") (parenthesized_expression "(*param_3 == '\0')" (( "(") (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_000158c0:\n    *puVar9 = 0;\n    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));\n    return;\n  }" ({ "{") (labeled_statement "LAB_000158c0:\n    *puVar9 = 0;" (statement_identifier "LAB_000158c0") (: ":") (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (number_literal "0")) (; ";"))) (expression_statement "bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));" (call_expression "bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34))" (identifier "bc_push_arg") (argument_list "(param_1,param_2,local_34,puVar9 + (1 - (int)local_34))" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "local_34") (, ",") (binary_expression "puVar9 + (1 - (int)local_34)" (identifier "puVar9") (+ "+") (parenthesized_expression "(1 - (int)local_34)" (( "(") (binary_expression "1 - (int)local_34" (number_literal "1") (- "-") (cast_expression "(int)local_34" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_34"))) () ")"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_00032318)\n                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00032318)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_00032318" (* "*") (cast_expression "(code *)PTR_dcgettext_00032318" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_00032318"))) () ")")) (argument_list "(0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768" (identifier "PTR_s_value__ld_for__s_option_is_too_l_000320d8") (+ "+") (number_literal "0x768")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "(*(code *)PTR_error_000322d8)(1,0,uVar3);" (call_expression "(*(code *)PTR_error_000322d8)(1,0,uVar3)" (parenthesized_expression "(*(code *)PTR_error_000322d8)" (( "(") (pointer_expression "*(code *)PTR_error_000322d8" (* "*") (cast_expression "(code *)PTR_error_000322d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_error_000322d8"))) () ")")) (argument_list "(1,0,uVar3)" (( "(") (number_literal "1") (, ",") (number_literal "0") (, ",") (identifier "uVar3") () ")"))) (; ";")) (labeled_statement "LAB_0001595c:\n  local_34 = (undefined1 *)xmalloc(iVar4 + 1);" (statement_identifier "LAB_0001595c") (: ":") (expression_statement "local_34 = (undefined1 *)xmalloc(iVar4 + 1);" (assignment_expression "local_34 = (undefined1 *)xmalloc(iVar4 + 1)" (identifier "local_34") (= "=") (cast_expression "(undefined1 *)xmalloc(iVar4 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(iVar4 + 1)" (identifier "xmalloc") (argument_list "(iVar4 + 1)" (( "(") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) () ")"))))) (; ";"))) (expression_statement "*(undefined1 **)(pcVar6 + 0x2440) = local_34;" (assignment_expression "*(undefined1 **)(pcVar6 + 0x2440) = local_34" (pointer_expression "*(undefined1 **)(pcVar6 + 0x2440)" (* "*") (cast_expression "(undefined1 **)(pcVar6 + 0x2440)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar6 + 0x2440)" (( "(") (binary_expression "pcVar6 + 0x2440" (identifier "pcVar6") (+ "+") (number_literal "0x2440")) () ")")))) (= "=") (identifier "local_34")) (; ";")) (goto_statement "goto LAB_000157c8;" (goto "goto") (statement_identifier "LAB_000157c8") (; ";")) (} "}")))

void function_1(type_1 *ctl,type_2 *state,char *var_10,size_t var_9,char *var_14,
                 size_t var_5,char *linebuf,size_t var_4,int initial_args)

{
  char var_16;
  char *var_7;
  type_3 uVar3;
  size_t var_1;
  char *var_8;
  char *var_13;
  char *var_12;
  char *var_15;
  char *var_11;
  char *var_3;
  
  var_1 = ctl->arg_max;
  var_8 = (char *)(var_1 - 1);
  var_3 = *(char **)(var_2 + 0x2440);
  var_13 = var_2;
  if (var_3 == (char *)0x0) goto LAB_0001595c;
LAB_000157c8:
  var_13 = (char *)(var_4 + var_5);
  var_11 = var_3;
  do {
    var_7 = var_6(var_10,ctl->replace_pat);
    if (var_7 == (char *)0x0) {
      if (var_8 <= var_9) break;
      var_7 = var_10 + var_9;
      (*(type_4 *)PTR_strncpy_0003228c)(var_11,var_10,var_9);
      var_8 = var_8 + -var_9;
      var_16 = *var_7;
      var_11 = var_11 + var_9;
      var_9 = 0;
      var_10 = var_7;
    }
    else {
      var_12 = var_7 + -(int)var_10;
      if (var_8 <= var_12) break;
      var_8 = var_8 + -(int)var_12;
      (*(type_4 *)PTR_strncpy_0003228c)(var_11,var_10,var_12);
      var_11 = var_11 + (int)var_12;
      var_10 = var_7;
      if (var_8 <= var_13) break;
      var_8 = var_8 + -(int)var_13;
      var_15 = var_11;
      if (var_14 != (char *)0x0) {
        var_15 = var_11 + var_5;
        (*(type_4 *)PTR_strcpy_000322ec)(var_11,var_14);
      }
      var_11 = var_15 + var_4;
      (*(type_4 *)PTR_strcpy_000322ec)(var_15,linebuf);
      var_16 = var_7[ctl->rplen];
      var_9 = var_9 + (-(int)var_12 - ctl->rplen);
      var_10 = var_7 + ctl->rplen;
    }
    if (var_16 == '\0') goto LAB_000158c0;
  } while( true );
  if (*var_10 == '\0') {
LAB_000158c0:
    *var_11 = '\0';
    var_17(ctl,state,var_3,(size_t)(var_11 + (1 - (int)var_3)),(char *)0x0,0,initial_args
               );
    return;
  }
  uVar3 = (*(type_4 *)PTR_dcgettext_00032318)
                    (0,var_18 + 0x768,5);
  var_1 = 1;
  (*(type_4 *)PTR_error_000322d8)(1,0,uVar3);
LAB_0001595c:
  var_3 = (char *)var_19(var_1 + 1);
  *(char **)(var_13 + 0x2440) = var_3;
  goto LAB_000157c8;
}


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

void MASKED(int param_1,undefined4 param_2,char *param_3,char *param_4,int param_5,int param_6
                 ,undefined4 param_7,int param_8)

{
  char cVar1;
  char *pcVar2;
  undefined4 uVar3;
  int iVar4;
  char *pcVar5;
  char *pcVar6;
  char *pcVar7;
  undefined1 *puVar8;
  undefined1 *puVar9;
  undefined1 *local_34;
  
  iVar4 = *(int *)(param_1 + 0xc);
  pcVar5 = (char *)(iVar4 + -1);
  local_34 = *(undefined1 **)(PTR_DAT_000320c8 + 0x2440);
  pcVar6 = PTR_DAT_000320c8;
  if (local_34 == (undefined1 *)0x0) goto LAB_0001595c;
LAB_000157c8:
  pcVar6 = (char *)(param_8 + param_6);
  puVar9 = local_34;
  do {
    pcVar2 = (char *)mbsstr(param_3,*(undefined4 *)(param_1 + 0x18));
    if (pcVar2 == (char *)0x0) {
      if (pcVar5 <= param_4) break;
      pcVar2 = param_3 + (int)param_4;
      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,param_4);
      pcVar5 = pcVar5 + -(int)param_4;
      cVar1 = *pcVar2;
      puVar9 = puVar9 + (int)param_4;
      param_4 = (char *)0x0;
      param_3 = pcVar2;
    }
    else {
      pcVar7 = pcVar2 + -(int)param_3;
      if (pcVar5 <= pcVar7) break;
      pcVar5 = pcVar5 + -(int)pcVar7;
      (*(code *)PTR_strncpy_0003228c)(puVar9,param_3,pcVar7);
      puVar9 = puVar9 + (int)pcVar7;
      param_3 = pcVar2;
      if (pcVar5 <= pcVar6) break;
      pcVar5 = pcVar5 + -(int)pcVar6;
      puVar8 = puVar9;
      if (param_5 != 0) {
        puVar8 = puVar9 + param_6;
        (*(code *)PTR_strcpy_000322ec)(puVar9,param_5);
      }
      puVar9 = puVar8 + param_8;
      (*(code *)PTR_strcpy_000322ec)(puVar8,param_7);
      cVar1 = pcVar2[*(int *)(param_1 + 0x14)];
      param_4 = param_4 + (-(int)pcVar7 - *(int *)(param_1 + 0x14));
      param_3 = pcVar2 + *(int *)(param_1 + 0x14);
    }
    if (cVar1 == '\0') goto LAB_000158c0;
  } while( true );
  if (*param_3 == '\0') {
LAB_000158c0:
    *puVar9 = 0;
    bc_push_arg(param_1,param_2,local_34,puVar9 + (1 - (int)local_34));
    return;
  }
  uVar3 = (*(code *)PTR_dcgettext_00032318)
                    (0,PTR_s_value__ld_for__s_option_is_too_l_000320d8 + 0x768,5);
  iVar4 = 1;
  (*(code *)PTR_error_000322d8)(1,0,uVar3);
LAB_0001595c:
  local_34 = (undefined1 *)xmalloc(iVar4 + 1);
  *(undefined1 **)(pcVar6 + 0x2440) = local_34;
  goto LAB_000157c8;
}

