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

char * __regparm3 string_extract(char *string,int *sindex,char *charlist,int flags)

{
  int iVar1;
  char cVar2;
  byte bVar3;
  anon_union_4_2_91654ee9_for___value aVar4;
  size_t sVar5;
  char *pcVar6;
  uint uVar7;
  int iVar8;
  int end;
  int in_GS_OFFSET;
  char *in_stack_ffffffb4;
  int *start;
  byte *in_stack_ffffffbc;
  undefined4 *close;
  int in_stack_ffffffc4;
  int local_34;
  mbstate_t state;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  state.__count = 0;
  state.__value.__wch = 0;
  sVar5 = __ctype_get_mb_cur_max();
  if (sVar5 < 2) {
    end = *sindex;
    local_34 = 0;
  }
  else {
    end = *sindex;
    sVar5 = strlen(string + end);
    local_34 = sVar5 + end;
  }
  start = &locale_mb_cur_max;
  close = &is_basic_table;
LAB_00067238:
  do {
    cVar2 = string[end];
joined_r0x00067240:
    iVar8 = (int)cVar2;
    if (iVar8 == 0) {
LAB_000672d3:
      if ((flags & 4U) != 0) {
        *sindex = end;
        pcVar6 = &extract_string_error;
        goto LAB_000672f1;
      }
LAB_000672de:
      pcVar6 = (char *)0x0;
      if ((flags & 1U) == 0) {
        pcVar6 = substring(string,*sindex,end);
      }
      *sindex = end;
LAB_000672f1:
      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
        return pcVar6;
      }
                    /* WARNING: Subroutine does not return */
      __stack_chk_fail_local();
    }
    if (iVar8 == 0x5c) {
      if (string[end + 1] == '\0') goto LAB_000672d3;
      end = end + 1;
    }
    else if (((flags & 2U) == 0) || (iVar8 != 0x5b)) {
      if (((*charlist == cVar2) && (charlist[1] == '\0')) ||
         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)) goto LAB_000672de;
    }
    else {
      iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,
                                in_stack_ffffffc4);
      if (string[iVar8] == ']') {
        end = iVar8;
      }
    }
    aVar4 = state.__value;
    if (*start < 2) goto LAB_000672c2;
    in_stack_ffffffbc = (byte *)(string + end);
    bVar3 = *in_stack_ffffffbc;
    if (((uint)close[bVar3 >> 5] >> (bVar3 & 0x1f) & 1) == 0) {
      if ((locale_utf8locale == 0) || ((char)bVar3 < '\0')) {
        in_stack_ffffffc4 = state.__count;
        uVar7 = mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)
        ;
        if (0xfffffffd < uVar7) {
          end = end + 1;
          state.__count = in_stack_ffffffc4;
          state.__value = aVar4;
          goto LAB_00067238;
        }
      }
      else {
        uVar7 = (uint)(bVar3 != 0);
      }
      if (uVar7 != 0) goto LAB_00067325;
LAB_000672c2:
      end = end + 1;
      cVar2 = string[end];
      goto joined_r0x00067240;
    }
    uVar7 = 1;
LAB_00067325:
    end = end + uVar7;
  } while( true );
}



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

undefined * __regparm3 FUN_000671c0(int param_1,int *param_2,char *param_3,byte param_4)

{
  char cVar1;
  byte bVar2;
  _union_54 _Var3;
  size_t sVar4;
  int iVar5;
  uint uVar6;
  undefined *puVar7;
  int iVar8;
  int in_GS_OFFSET;
  int local_34;
  mbstate_t local_28;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x671cf;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_28.__count = 0;
  local_28.__value.__wch = 0;
  sVar4 = __ctype_get_mb_cur_max();
  if (sVar4 < 2) {
    iVar8 = *param_2;
    local_34 = 0;
  }
  else {
    iVar8 = *param_2;
    sVar4 = strlen((char *)(param_1 + iVar8));
    local_34 = sVar4 + iVar8;
  }
LAB_00067238:
  do {
    cVar1 = *(char *)(param_1 + iVar8);
joined_r0x00067240:
    iVar5 = (int)cVar1;
    if (iVar5 == 0) {
LAB_000672d3:
      if ((param_4 & 4) != 0) {
        *param_2 = iVar8;
        puVar7 = &DAT_0015106d;
        goto LAB_000672f1;
      }
LAB_000672de:
      puVar7 = (undefined *)0x0;
      if ((param_4 & 1) == 0) {
        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);
      }
      *param_2 = iVar8;
LAB_000672f1:
      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
        return puVar7;
      }
                    /* WARNING: Subroutine does not return */
      FUN_000ecc40();
    }
    if (iVar5 == 0x5c) {
      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;
      iVar8 = iVar8 + 1;
    }
    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {
      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||
         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;
    }
    else {
      iVar5 = FUN_00066bf0();
      if (*(char *)(param_1 + iVar5) == ']') {
        iVar8 = iVar5;
      }
    }
    _Var3 = local_28.__value;
    iVar5 = local_28.__count;
    if (locale_mb_cur_max < 2) goto LAB_000672c2;
    bVar2 = *(byte *)(param_1 + iVar8);
    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {
      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {
        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);
        if (0xfffffffd < uVar6) {
          iVar8 = iVar8 + 1;
          local_28.__count = iVar5;
          local_28.__value = _Var3;
          goto LAB_00067238;
        }
      }
      else {
        uVar6 = (uint)(bVar2 != 0);
      }
      if (uVar6 != 0) goto LAB_00067325;
LAB_000672c2:
      iVar8 = iVar8 + 1;
      cVar1 = *(char *)(param_1 + iVar8);
      goto joined_r0x00067240;
    }
    uVar6 = 1;
LAB_00067325:
    iVar8 = iVar8 + uVar6;
  } while( true );
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EAX
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xe2e31
SUB ESP,0x3c
MOV dword ptr [ESP + 0x1c],EDX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV dword ptr [ESP + 0x24],0x0
MOV dword ptr [ESP + 0x28],0x0
CALL 0x0002f520
CMP EAX,0x1
JBE 0x000673a0
MOV EAX,dword ptr [ESP + 0x1c]
SUB ESP,0xc
MOV ESI,dword ptr [EAX]
LEA EAX,[EDI + ESI*0x1]
PUSH EAX
CALL 0x0002f760
ADD ESP,0x10
ADD EAX,ESI
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[EBX + 0xd4b0]
MOV dword ptr [ESP + 0x4],EAX
LEA EAX,[EBX + 0xfffbb1c0]
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
MOVSX EAX,byte ptr [EDI + ESI*0x1]
MOV EDX,EAX
TEST EAX,EAX
JZ 0x000672d3
CMP EAX,0x5c
JZ 0x00067310
TEST byte ptr [ESP + 0x50],0x2
JZ 0x0006725f
CMP EAX,0x5b
JZ 0x00067380
CMP byte ptr [EBP],DL
JNZ 0x0006726a
CMP byte ptr [EBP + 0x1],0x0
JZ 0x000672de
SUB ESP,0x8
PUSH EAX
PUSH EBP
CALL 0x000c36c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000672de
MOV EAX,dword ptr [ESP + 0x4]
CMP dword ptr [EAX],0x1
JLE 0x000672c2
LEA EAX,[EDI + ESI*0x1]
MOVZX ECX,byte ptr [EAX]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV EDX,ECX
SHR DL,0x5
MOVZX EDX,DL
MOV EDX,dword ptr [EAX + EDX*0x4]
SHR EDX,CL
AND EDX,0x1
JNZ 0x00067320
LEA EDX,[EBX + 0xd4b8]
MOV EAX,dword ptr [EDX]
TEST EAX,EAX
JZ 0x00067330
TEST CL,CL
JS 0x00067330
SETNZ AL
MOVZX EAX,AL
TEST EAX,EAX
JNZ 0x00067325
ADD ESI,0x1
MOVSX EAX,byte ptr [EDI + ESI*0x1]
MOV EDX,EAX
TEST EAX,EAX
JNZ 0x00067246
TEST byte ptr [ESP + 0x50],0x4
JNZ 0x000673d0
XOR EAX,EAX
TEST byte ptr [ESP + 0x50],0x1
JZ 0x000673b0
MOV EBX,dword ptr [ESP + 0x1c]
MOV dword ptr [EBX],ESI
MOV EBX,dword ptr [ESP + 0x2c]
XOR EBX,dword ptr GS:[0x14]
JNZ 0x000673e1
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP byte ptr [EDI + ESI*0x1 + 0x1],0x0
JZ 0x000672d3
ADD ESI,0x1
JMP 0x0006727b
MOV EAX,0x1
ADD ESI,EAX
JMP 0x00067238
MOV EDX,dword ptr [ESP + 0x24]
MOV ECX,dword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0x10],EDX
LEA EDX,[ESP + 0x24]
MOV dword ptr [ESP + 0x14],ECX
PUSH EDX
MOV EAX,dword ptr [ESP + 0x1c]
SUB EAX,ESI
PUSH EAX
PUSH dword ptr [ESP + 0x10]
PUSH 0x0
CALL 0x0002f5b0
ADD ESP,0x10
CMP EAX,-0x2
JC 0x000672be
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x14]
ADD ESI,0x1
MOV dword ptr [ESP + 0x24],EDX
MOV dword ptr [ESP + 0x28],ECX
JMP 0x00067238
XOR ECX,ECX
MOV EDX,ESI
MOV EAX,EDI
CALL 0x00066bf0
CMP byte ptr [EDI + EAX*0x1],0x5d
CMOVZ ESI,EAX
JMP 0x0006727b
MOV ESI,dword ptr [ESI]
MOV dword ptr [ESP + 0x18],0x0
JMP 0x00067221
SUB ESP,0x4
PUSH ESI
MOV EAX,dword ptr [ESP + 0x24]
PUSH dword ptr [EAX]
PUSH EDI
CALL 0x000917f0
ADD ESP,0x10
JMP 0x000672eb
MOV EAX,dword ptr [ESP + 0x1c]
MOV dword ptr [EAX],ESI
LEA EAX,[EBX + 0x706d]
JMP 0x000672f1
CALL 0x000ecc40
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined * __regparm3 FUN_000671c0(int param_1,int *param_2,char *param_3,byte param_4)\n\n{\n  char cVar1;\n  byte bVar2;\n  _union_54 _Var3;\n  size_t sVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  int local_34;\n  mbstate_t local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x671cf;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28.__count = 0;\n  local_28.__value.__wch = 0;\n  sVar4 = __ctype_get_mb_cur_max();\n  if (sVar4 < 2) {\n    iVar8 = *param_2;\n    local_34 = 0;\n  }\n  else {\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }\nLAB_00067238:\n  do {\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  } while( true );\n}\n\n" comment (ERROR "undefined * __regparm3 FUN_000671c0(int param_1,int *param_2,char *param_3,byte param_4)" (binary_expression "undefined * __regparm3 FUN_000671c0(int param_1,int *param_2,char *param_3,byte param_4)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000671c0(int param_1,int *param_2,char *param_3,byte param_4)" identifier (argument_list "(int param_1,int *param_2,char *param_3,byte param_4)" ( (ERROR "int" identifier) identifier , (binary_expression "int *param_2" identifier * identifier) , (binary_expression "char *param_3" identifier * identifier) , (ERROR "byte" identifier) identifier ))))) (compound_statement "{\n  char cVar1;\n  byte bVar2;\n  _union_54 _Var3;\n  size_t sVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  int local_34;\n  mbstate_t local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x671cf;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28.__count = 0;\n  local_28.__value.__wch = 0;\n  sVar4 = __ctype_get_mb_cur_max();\n  if (sVar4 < 2) {\n    iVar8 = *param_2;\n    local_34 = 0;\n  }\n  else {\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }\nLAB_00067238:\n  do {\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "_union_54 _Var3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "mbstate_t local_28;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x671cf;" (assignment_expression "uStack_14 = 0x671cf" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_28.__count = 0;" (assignment_expression "local_28.__count = 0" (field_expression "local_28.__count" identifier . field_identifier) = number_literal) ;) (expression_statement "local_28.__value.__wch = 0;" (assignment_expression "local_28.__value.__wch = 0" (field_expression "local_28.__value.__wch" (field_expression "local_28.__value" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "sVar4 = __ctype_get_mb_cur_max();" (assignment_expression "sVar4 = __ctype_get_mb_cur_max()" identifier = (call_expression "__ctype_get_mb_cur_max()" identifier (argument_list "()" ( )))) ;) (if_statement "if (sVar4 < 2) {\n    iVar8 = *param_2;\n    local_34 = 0;\n  }\n  else {\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }" if (parenthesized_expression "(sVar4 < 2)" ( (binary_expression "sVar4 < 2" identifier < number_literal) )) (compound_statement "{\n    iVar8 = *param_2;\n    local_34 = 0;\n  }" { (expression_statement "iVar8 = *param_2;" (assignment_expression "iVar8 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }" else (compound_statement "{\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }" { (expression_statement "iVar8 = *param_2;" (assignment_expression "iVar8 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "sVar4 = strlen((char *)(param_1 + iVar8));" (assignment_expression "sVar4 = strlen((char *)(param_1 + iVar8))" identifier = (call_expression "strlen((char *)(param_1 + iVar8))" identifier (argument_list "((char *)(param_1 + iVar8))" ( (cast_expression "(char *)(param_1 + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar8)" ( (binary_expression "param_1 + iVar8" identifier + identifier) ))) )))) ;) (expression_statement "local_34 = sVar4 + iVar8;" (assignment_expression "local_34 = sVar4 + iVar8" identifier = (binary_expression "sVar4 + iVar8" identifier + identifier)) ;) }))) (labeled_statement "LAB_00067238:\n  do {\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  } while( true );" statement_identifier : (do_statement "do {\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  } while( true );" do (compound_statement "{\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  }" { (expression_statement "cVar1 = *(char *)(param_1 + iVar8);" (assignment_expression "cVar1 = *(char *)(param_1 + iVar8)" identifier = (pointer_expression "*(char *)(param_1 + iVar8)" * (cast_expression "(char *)(param_1 + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar8)" ( (binary_expression "param_1 + iVar8" identifier + identifier) ))))) ;) (labeled_statement "joined_r0x00067240:\n    iVar5 = (int)cVar1;" statement_identifier : (expression_statement "iVar5 = (int)cVar1;" (assignment_expression "iVar5 = (int)cVar1" identifier = (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) (if_statement "if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_000ecc40();\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    /* WARNING: Subroutine does not return */\n      FUN_000ecc40();\n    }" { (labeled_statement "LAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }" statement_identifier : (if_statement "if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }" if (parenthesized_expression "((param_4 & 4) != 0)" ( (binary_expression "(param_4 & 4) != 0" (parenthesized_expression "(param_4 & 4)" ( (binary_expression "param_4 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }" { (expression_statement "*param_2 = iVar8;" (assignment_expression "*param_2 = iVar8" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "puVar7 = &DAT_0015106d;" (assignment_expression "puVar7 = &DAT_0015106d" identifier = (pointer_expression "&DAT_0015106d" & identifier)) ;) (goto_statement "goto LAB_000672f1;" goto statement_identifier ;) }))) (labeled_statement "LAB_000672de:\n      puVar7 = (undefined *)0x0;" statement_identifier : (expression_statement "puVar7 = (undefined *)0x0;" (assignment_expression "puVar7 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (if_statement "if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }" if (parenthesized_expression "((param_4 & 1) == 0)" ( (binary_expression "(param_4 & 1) == 0" (parenthesized_expression "(param_4 & 1)" ( (binary_expression "param_4 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }" { (expression_statement "puVar7 = (undefined *)substring(param_1,*param_2,iVar8);" (assignment_expression "puVar7 = (undefined *)substring(param_1,*param_2,iVar8)" identifier = (cast_expression "(undefined *)substring(param_1,*param_2,iVar8)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "substring(param_1,*param_2,iVar8)" identifier (argument_list "(param_1,*param_2,iVar8)" ( identifier , (pointer_expression "*param_2" * identifier) , identifier ))))) ;) })) (expression_statement "*param_2 = iVar8;" (assignment_expression "*param_2 = iVar8" (pointer_expression "*param_2" * identifier) = identifier) ;) (labeled_statement "LAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n        return puVar7;\n      }" { (return_statement "return puVar7;" return identifier ;) }))) comment (expression_statement "FUN_000ecc40();" (call_expression "FUN_000ecc40()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" if (parenthesized_expression "(iVar5 == 0x5c)" ( (binary_expression "iVar5 == 0x5c" identifier == number_literal) )) (compound_statement "{\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }" { (if_statement "if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;" if (parenthesized_expression "(*(char *)(param_1 + 1 + iVar8) == '\0')" ( (binary_expression "*(char *)(param_1 + 1 + iVar8) == '\0'" (pointer_expression "*(char *)(param_1 + 1 + iVar8)" * (cast_expression "(char *)(param_1 + 1 + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1 + iVar8)" ( (binary_expression "param_1 + 1 + iVar8" (binary_expression "param_1 + 1" identifier + number_literal) + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000672d3;" goto statement_identifier ;)) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) (else_clause "else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" else (if_statement "if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" if (parenthesized_expression "(((param_4 & 2) == 0) || (iVar5 != 0x5b))" ( (binary_expression "((param_4 & 2) == 0) || (iVar5 != 0x5b)" (parenthesized_expression "((param_4 & 2) == 0)" ( (binary_expression "(param_4 & 2) == 0" (parenthesized_expression "(param_4 & 2)" ( (binary_expression "param_4 & 2" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(iVar5 != 0x5b)" ( (binary_expression "iVar5 != 0x5b" identifier != number_literal) ))) )) (compound_statement "{\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }" { (if_statement "if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;" if (parenthesized_expression "(((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0))" ( (binary_expression "((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)" (parenthesized_expression "((*param_3 == cVar1) && (param_3[1] == '\0'))" ( (binary_expression "(*param_3 == cVar1) && (param_3[1] == '\0')" (parenthesized_expression "(*param_3 == cVar1)" ( (binary_expression "*param_3 == cVar1" (pointer_expression "*param_3" * identifier) == identifier) )) && (parenthesized_expression "(param_3[1] == '\0')" ( (binary_expression "param_3[1] == '\0'" (subscript_expression "param_3[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) || (parenthesized_expression "(iVar5 = mbschr(param_3,iVar5), iVar5 != 0)" ( (comma_expression "iVar5 = mbschr(param_3,iVar5), iVar5 != 0" (assignment_expression "iVar5 = mbschr(param_3,iVar5)" identifier = (call_expression "mbschr(param_3,iVar5)" identifier (argument_list "(param_3,iVar5)" ( identifier , identifier )))) , (binary_expression "iVar5 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000672de;" goto statement_identifier ;)) }) (else_clause "else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" else (compound_statement "{\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" { (expression_statement "iVar5 = FUN_00066bf0();" (assignment_expression "iVar5 = FUN_00066bf0()" identifier = (call_expression "FUN_00066bf0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }" if (parenthesized_expression "(*(char *)(param_1 + iVar5) == ']')" ( (binary_expression "*(char *)(param_1 + iVar5) == ']'" (pointer_expression "*(char *)(param_1 + iVar5)" * (cast_expression "(char *)(param_1 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5)" ( (binary_expression "param_1 + iVar5" identifier + identifier) )))) == (char_literal "']'" ' character ')) )) (compound_statement "{\n        iVar8 = iVar5;\n      }" { (expression_statement "iVar8 = iVar5;" (assignment_expression "iVar8 = iVar5" identifier = identifier) ;) })) }))))) (expression_statement "_Var3 = local_28.__value;" (assignment_expression "_Var3 = local_28.__value" identifier = (field_expression "local_28.__value" identifier . field_identifier)) ;) (expression_statement "iVar5 = local_28.__count;" (assignment_expression "iVar5 = local_28.__count" identifier = (field_expression "local_28.__count" identifier . field_identifier)) ;) (if_statement "if (locale_mb_cur_max < 2) goto LAB_000672c2;" if (parenthesized_expression "(locale_mb_cur_max < 2)" ( (binary_expression "locale_mb_cur_max < 2" identifier < number_literal) )) (goto_statement "goto LAB_000672c2;" goto statement_identifier ;)) (expression_statement "bVar2 = *(byte *)(param_1 + iVar8);" (assignment_expression "bVar2 = *(byte *)(param_1 + iVar8)" identifier = (pointer_expression "*(byte *)(param_1 + iVar8)" * (cast_expression "(byte *)(param_1 + iVar8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar8)" ( (binary_expression "param_1 + iVar8" identifier + identifier) ))))) ;) (if_statement "if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }" if (parenthesized_expression "(((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0)" ( (binary_expression "((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0" (parenthesized_expression "((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1)" ( (binary_expression "(uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1" (binary_expression "(uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f)" (subscript_expression "(uint)(&is_basic_table)[bVar2 >> 5]" (call_expression "(uint)(&is_basic_table)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(&is_basic_table)" ( (pointer_expression "&is_basic_table" & identifier) ))) [ (binary_expression "bVar2 >> 5" identifier >> number_literal) ]) >> (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) ))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }" { (if_statement "if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }" if (parenthesized_expression "((locale_utf8locale == 0) || ((char)bVar2 < '\0'))" ( (binary_expression "(locale_utf8locale == 0) || ((char)bVar2 < '\0')" (parenthesized_expression "(locale_utf8locale == 0)" ( (binary_expression "locale_utf8locale == 0" identifier == number_literal) )) || (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }" { (expression_statement "uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);" (assignment_expression "uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28)" identifier = (call_expression "mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28)" identifier (argument_list "((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28)" ( (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(char *)(param_1 + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar8)" ( (binary_expression "param_1 + iVar8" identifier + identifier) ))) , (binary_expression "local_34 - iVar8" identifier - identifier) , (pointer_expression "&local_28" & identifier) )))) ;) (if_statement "if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }" if (parenthesized_expression "(0xfffffffd < uVar6)" ( (binary_expression "0xfffffffd < uVar6" number_literal < identifier) )) (compound_statement "{\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }" { (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "local_28.__count = iVar5;" (assignment_expression "local_28.__count = iVar5" (field_expression "local_28.__count" identifier . field_identifier) = identifier) ;) (expression_statement "local_28.__value = _Var3;" (assignment_expression "local_28.__value = _Var3" (field_expression "local_28.__value" identifier . field_identifier) = identifier) ;) (goto_statement "goto LAB_00067238;" goto statement_identifier ;) })) }) (else_clause "else {\n        uVar6 = (uint)(bVar2 != 0);\n      }" else (compound_statement "{\n        uVar6 = (uint)(bVar2 != 0);\n      }" { (expression_statement "uVar6 = (uint)(bVar2 != 0);" (assignment_expression "uVar6 = (uint)(bVar2 != 0)" identifier = (call_expression "(uint)(bVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )))) ;) }))) (if_statement "if (uVar6 != 0) goto LAB_00067325;" if (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00067325;" goto statement_identifier ;)) (labeled_statement "LAB_000672c2:\n      iVar8 = iVar8 + 1;" statement_identifier : (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;)) (expression_statement "cVar1 = *(char *)(param_1 + iVar8);" (assignment_expression "cVar1 = *(char *)(param_1 + iVar8)" identifier = (pointer_expression "*(char *)(param_1 + iVar8)" * (cast_expression "(char *)(param_1 + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar8)" ( (binary_expression "param_1 + iVar8" identifier + identifier) ))))) ;) (goto_statement "goto joined_r0x00067240;" goto statement_identifier ;) })) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (labeled_statement "LAB_00067325:\n    iVar8 = iVar8 + uVar6;" statement_identifier : (expression_statement "iVar8 = iVar8 + uVar6;" (assignment_expression "iVar8 = iVar8 + uVar6" identifier = (binary_expression "iVar8 + uVar6" identifier + identifier)) ;)) }) while (parenthesized_expression "( true )" ( true )) ;)) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 string_extract(char *string,int *sindex,char *charlist,int flags)\n\n{\n  int iVar1;\n  char cVar2;\n  byte bVar3;\n  anon_union_4_2_91654ee9_for___value aVar4;\n  size_t sVar5;\n  char *pcVar6;\n  uint uVar7;\n  int iVar8;\n  int end;\n  int in_GS_OFFSET;\n  char *in_stack_ffffffb4;\n  int *start;\n  byte *in_stack_ffffffbc;\n  undefined4 *close;\n  int in_stack_ffffffc4;\n  int local_34;\n  mbstate_t state;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  state.__count = 0;\n  state.__value.__wch = 0;\n  sVar5 = __ctype_get_mb_cur_max();\n  if (sVar5 < 2) {\n    end = *sindex;\n    local_34 = 0;\n  }\n  else {\n    end = *sindex;\n    sVar5 = strlen(string + end);\n    local_34 = sVar5 + end;\n  }\n  start = &locale_mb_cur_max;\n  close = &is_basic_table;\nLAB_00067238:\n  do {\n    cVar2 = string[end];\njoined_r0x00067240:\n    iVar8 = (int)cVar2;\n    if (iVar8 == 0) {\nLAB_000672d3:\n      if ((flags & 4U) != 0) {\n        *sindex = end;\n        pcVar6 = &extract_string_error;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      pcVar6 = (char *)0x0;\n      if ((flags & 1U) == 0) {\n        pcVar6 = substring(string,*sindex,end);\n      }\n      *sindex = end;\nLAB_000672f1:\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return pcVar6;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    if (iVar8 == 0x5c) {\n      if (string[end + 1] == '\0') goto LAB_000672d3;\n      end = end + 1;\n    }\n    else if (((flags & 2U) == 0) || (iVar8 != 0x5b)) {\n      if (((*charlist == cVar2) && (charlist[1] == '\0')) ||\n         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)) goto LAB_000672de;\n    }\n    else {\n      iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4);\n      if (string[iVar8] == ']') {\n        end = iVar8;\n      }\n    }\n    aVar4 = state.__value;\n    if (*start < 2) goto LAB_000672c2;\n    in_stack_ffffffbc = (byte *)(string + end);\n    bVar3 = *in_stack_ffffffbc;\n    if (((uint)close[bVar3 >> 5] >> (bVar3 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar3 < '\0')) {\n        in_stack_ffffffc4 = state.__count;\n        uVar7 = mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)\n        ;\n        if (0xfffffffd < uVar7) {\n          end = end + 1;\n          state.__count = in_stack_ffffffc4;\n          state.__value = aVar4;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar7 = (uint)(bVar3 != 0);\n      }\n      if (uVar7 != 0) goto LAB_00067325;\nLAB_000672c2:\n      end = end + 1;\n      cVar2 = string[end];\n      goto joined_r0x00067240;\n    }\n    uVar7 = 1;\nLAB_00067325:\n    end = end + uVar7;\n  } while( true );\n}\n\n" comment (function_definition "char * __regparm3 string_extract(char *string,int *sindex,char *charlist,int flags)\n\n{\n  int iVar1;\n  char cVar2;\n  byte bVar3;\n  anon_union_4_2_91654ee9_for___value aVar4;\n  size_t sVar5;\n  char *pcVar6;\n  uint uVar7;\n  int iVar8;\n  int end;\n  int in_GS_OFFSET;\n  char *in_stack_ffffffb4;\n  int *start;\n  byte *in_stack_ffffffbc;\n  undefined4 *close;\n  int in_stack_ffffffc4;\n  int local_34;\n  mbstate_t state;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  state.__count = 0;\n  state.__value.__wch = 0;\n  sVar5 = __ctype_get_mb_cur_max();\n  if (sVar5 < 2) {\n    end = *sindex;\n    local_34 = 0;\n  }\n  else {\n    end = *sindex;\n    sVar5 = strlen(string + end);\n    local_34 = sVar5 + end;\n  }\n  start = &locale_mb_cur_max;\n  close = &is_basic_table;\nLAB_00067238:\n  do {\n    cVar2 = string[end];\njoined_r0x00067240:\n    iVar8 = (int)cVar2;\n    if (iVar8 == 0) {\nLAB_000672d3:\n      if ((flags & 4U) != 0) {\n        *sindex = end;\n        pcVar6 = &extract_string_error;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      pcVar6 = (char *)0x0;\n      if ((flags & 1U) == 0) {\n        pcVar6 = substring(string,*sindex,end);\n      }\n      *sindex = end;\nLAB_000672f1:\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return pcVar6;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    if (iVar8 == 0x5c) {\n      if (string[end + 1] == '\0') goto LAB_000672d3;\n      end = end + 1;\n    }\n    else if (((flags & 2U) == 0) || (iVar8 != 0x5b)) {\n      if (((*charlist == cVar2) && (charlist[1] == '\0')) ||\n         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)) goto LAB_000672de;\n    }\n    else {\n      iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4);\n      if (string[iVar8] == ']') {\n        end = iVar8;\n      }\n    }\n    aVar4 = state.__value;\n    if (*start < 2) goto LAB_000672c2;\n    in_stack_ffffffbc = (byte *)(string + end);\n    bVar3 = *in_stack_ffffffbc;\n    if (((uint)close[bVar3 >> 5] >> (bVar3 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar3 < '\0')) {\n        in_stack_ffffffc4 = state.__count;\n        uVar7 = mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)\n        ;\n        if (0xfffffffd < uVar7) {\n          end = end + 1;\n          state.__count = in_stack_ffffffc4;\n          state.__value = aVar4;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar7 = (uint)(bVar3 != 0);\n      }\n      if (uVar7 != 0) goto LAB_00067325;\nLAB_000672c2:\n      end = end + 1;\n      cVar2 = string[end];\n      goto joined_r0x00067240;\n    }\n    uVar7 = 1;\nLAB_00067325:\n    end = end + uVar7;\n  } while( true );\n}" primitive_type (pointer_declarator "* __regparm3 string_extract(char *string,int *sindex,char *charlist,int flags)" * (ERROR "__regparm3" identifier) (function_declarator "string_extract(char *string,int *sindex,char *charlist,int flags)" identifier (parameter_list "(char *string,int *sindex,char *charlist,int flags)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "int *sindex" primitive_type (pointer_declarator "*sindex" * identifier)) , (parameter_declaration "char *charlist" primitive_type (pointer_declarator "*charlist" * identifier)) , (parameter_declaration "int flags" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  byte bVar3;\n  anon_union_4_2_91654ee9_for___value aVar4;\n  size_t sVar5;\n  char *pcVar6;\n  uint uVar7;\n  int iVar8;\n  int end;\n  int in_GS_OFFSET;\n  char *in_stack_ffffffb4;\n  int *start;\n  byte *in_stack_ffffffbc;\n  undefined4 *close;\n  int in_stack_ffffffc4;\n  int local_34;\n  mbstate_t state;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  state.__count = 0;\n  state.__value.__wch = 0;\n  sVar5 = __ctype_get_mb_cur_max();\n  if (sVar5 < 2) {\n    end = *sindex;\n    local_34 = 0;\n  }\n  else {\n    end = *sindex;\n    sVar5 = strlen(string + end);\n    local_34 = sVar5 + end;\n  }\n  start = &locale_mb_cur_max;\n  close = &is_basic_table;\nLAB_00067238:\n  do {\n    cVar2 = string[end];\njoined_r0x00067240:\n    iVar8 = (int)cVar2;\n    if (iVar8 == 0) {\nLAB_000672d3:\n      if ((flags & 4U) != 0) {\n        *sindex = end;\n        pcVar6 = &extract_string_error;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      pcVar6 = (char *)0x0;\n      if ((flags & 1U) == 0) {\n        pcVar6 = substring(string,*sindex,end);\n      }\n      *sindex = end;\nLAB_000672f1:\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return pcVar6;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    if (iVar8 == 0x5c) {\n      if (string[end + 1] == '\0') goto LAB_000672d3;\n      end = end + 1;\n    }\n    else if (((flags & 2U) == 0) || (iVar8 != 0x5b)) {\n      if (((*charlist == cVar2) && (charlist[1] == '\0')) ||\n         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)) goto LAB_000672de;\n    }\n    else {\n      iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4);\n      if (string[iVar8] == ']') {\n        end = iVar8;\n      }\n    }\n    aVar4 = state.__value;\n    if (*start < 2) goto LAB_000672c2;\n    in_stack_ffffffbc = (byte *)(string + end);\n    bVar3 = *in_stack_ffffffbc;\n    if (((uint)close[bVar3 >> 5] >> (bVar3 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar3 < '\0')) {\n        in_stack_ffffffc4 = state.__count;\n        uVar7 = mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)\n        ;\n        if (0xfffffffd < uVar7) {\n          end = end + 1;\n          state.__count = in_stack_ffffffc4;\n          state.__value = aVar4;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar7 = (uint)(bVar3 != 0);\n      }\n      if (uVar7 != 0) goto LAB_00067325;\nLAB_000672c2:\n      end = end + 1;\n      cVar2 = string[end];\n      goto joined_r0x00067240;\n    }\n    uVar7 = 1;\nLAB_00067325:\n    end = end + uVar7;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "anon_union_4_2_91654ee9_for___value aVar4;" type_identifier identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int end;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *in_stack_ffffffb4;" primitive_type (pointer_declarator "*in_stack_ffffffb4" * identifier) ;) (declaration "int *start;" primitive_type (pointer_declarator "*start" * identifier) ;) (declaration "byte *in_stack_ffffffbc;" type_identifier (pointer_declarator "*in_stack_ffffffbc" * identifier) ;) (declaration "undefined4 *close;" type_identifier (pointer_declarator "*close" * identifier) ;) (declaration "int in_stack_ffffffc4;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "mbstate_t state;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "state.__count = 0;" (assignment_expression "state.__count = 0" (field_expression "state.__count" identifier . field_identifier) = number_literal) ;) (expression_statement "state.__value.__wch = 0;" (assignment_expression "state.__value.__wch = 0" (field_expression "state.__value.__wch" (field_expression "state.__value" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "sVar5 = __ctype_get_mb_cur_max();" (assignment_expression "sVar5 = __ctype_get_mb_cur_max()" identifier = (call_expression "__ctype_get_mb_cur_max()" identifier (argument_list "()" ( )))) ;) (if_statement "if (sVar5 < 2) {\n    end = *sindex;\n    local_34 = 0;\n  }\n  else {\n    end = *sindex;\n    sVar5 = strlen(string + end);\n    local_34 = sVar5 + end;\n  }" if (parenthesized_expression "(sVar5 < 2)" ( (binary_expression "sVar5 < 2" identifier < number_literal) )) (compound_statement "{\n    end = *sindex;\n    local_34 = 0;\n  }" { (expression_statement "end = *sindex;" (assignment_expression "end = *sindex" identifier = (pointer_expression "*sindex" * identifier)) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    end = *sindex;\n    sVar5 = strlen(string + end);\n    local_34 = sVar5 + end;\n  }" else (compound_statement "{\n    end = *sindex;\n    sVar5 = strlen(string + end);\n    local_34 = sVar5 + end;\n  }" { (expression_statement "end = *sindex;" (assignment_expression "end = *sindex" identifier = (pointer_expression "*sindex" * identifier)) ;) (expression_statement "sVar5 = strlen(string + end);" (assignment_expression "sVar5 = strlen(string + end)" identifier = (call_expression "strlen(string + end)" identifier (argument_list "(string + end)" ( (binary_expression "string + end" identifier + identifier) )))) ;) (expression_statement "local_34 = sVar5 + end;" (assignment_expression "local_34 = sVar5 + end" identifier = (binary_expression "sVar5 + end" identifier + identifier)) ;) }))) (expression_statement "start = &locale_mb_cur_max;" (assignment_expression "start = &locale_mb_cur_max" identifier = (pointer_expression "&locale_mb_cur_max" & identifier)) ;) (expression_statement "close = &is_basic_table;" (assignment_expression "close = &is_basic_table" identifier = (pointer_expression "&is_basic_table" & identifier)) ;) (labeled_statement "LAB_00067238:\n  do {\n    cVar2 = string[end];\njoined_r0x00067240:\n    iVar8 = (int)cVar2;\n    if (iVar8 == 0) {\nLAB_000672d3:\n      if ((flags & 4U) != 0) {\n        *sindex = end;\n        pcVar6 = &extract_string_error;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      pcVar6 = (char *)0x0;\n      if ((flags & 1U) == 0) {\n        pcVar6 = substring(string,*sindex,end);\n      }\n      *sindex = end;\nLAB_000672f1:\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return pcVar6;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    if (iVar8 == 0x5c) {\n      if (string[end + 1] == '\0') goto LAB_000672d3;\n      end = end + 1;\n    }\n    else if (((flags & 2U) == 0) || (iVar8 != 0x5b)) {\n      if (((*charlist == cVar2) && (charlist[1] == '\0')) ||\n         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)) goto LAB_000672de;\n    }\n    else {\n      iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4);\n      if (string[iVar8] == ']') {\n        end = iVar8;\n      }\n    }\n    aVar4 = state.__value;\n    if (*start < 2) goto LAB_000672c2;\n    in_stack_ffffffbc = (byte *)(string + end);\n    bVar3 = *in_stack_ffffffbc;\n    if (((uint)close[bVar3 >> 5] >> (bVar3 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar3 < '\0')) {\n        in_stack_ffffffc4 = state.__count;\n        uVar7 = mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)\n        ;\n        if (0xfffffffd < uVar7) {\n          end = end + 1;\n          state.__count = in_stack_ffffffc4;\n          state.__value = aVar4;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar7 = (uint)(bVar3 != 0);\n      }\n      if (uVar7 != 0) goto LAB_00067325;\nLAB_000672c2:\n      end = end + 1;\n      cVar2 = string[end];\n      goto joined_r0x00067240;\n    }\n    uVar7 = 1;\nLAB_00067325:\n    end = end + uVar7;\n  } while( true );" statement_identifier : (do_statement "do {\n    cVar2 = string[end];\njoined_r0x00067240:\n    iVar8 = (int)cVar2;\n    if (iVar8 == 0) {\nLAB_000672d3:\n      if ((flags & 4U) != 0) {\n        *sindex = end;\n        pcVar6 = &extract_string_error;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      pcVar6 = (char *)0x0;\n      if ((flags & 1U) == 0) {\n        pcVar6 = substring(string,*sindex,end);\n      }\n      *sindex = end;\nLAB_000672f1:\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return pcVar6;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    if (iVar8 == 0x5c) {\n      if (string[end + 1] == '\0') goto LAB_000672d3;\n      end = end + 1;\n    }\n    else if (((flags & 2U) == 0) || (iVar8 != 0x5b)) {\n      if (((*charlist == cVar2) && (charlist[1] == '\0')) ||\n         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)) goto LAB_000672de;\n    }\n    else {\n      iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4);\n      if (string[iVar8] == ']') {\n        end = iVar8;\n      }\n    }\n    aVar4 = state.__value;\n    if (*start < 2) goto LAB_000672c2;\n    in_stack_ffffffbc = (byte *)(string + end);\n    bVar3 = *in_stack_ffffffbc;\n    if (((uint)close[bVar3 >> 5] >> (bVar3 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar3 < '\0')) {\n        in_stack_ffffffc4 = state.__count;\n        uVar7 = mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)\n        ;\n        if (0xfffffffd < uVar7) {\n          end = end + 1;\n          state.__count = in_stack_ffffffc4;\n          state.__value = aVar4;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar7 = (uint)(bVar3 != 0);\n      }\n      if (uVar7 != 0) goto LAB_00067325;\nLAB_000672c2:\n      end = end + 1;\n      cVar2 = string[end];\n      goto joined_r0x00067240;\n    }\n    uVar7 = 1;\nLAB_00067325:\n    end = end + uVar7;\n  } while( true );" do (compound_statement "{\n    cVar2 = string[end];\njoined_r0x00067240:\n    iVar8 = (int)cVar2;\n    if (iVar8 == 0) {\nLAB_000672d3:\n      if ((flags & 4U) != 0) {\n        *sindex = end;\n        pcVar6 = &extract_string_error;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      pcVar6 = (char *)0x0;\n      if ((flags & 1U) == 0) {\n        pcVar6 = substring(string,*sindex,end);\n      }\n      *sindex = end;\nLAB_000672f1:\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return pcVar6;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }\n    if (iVar8 == 0x5c) {\n      if (string[end + 1] == '\0') goto LAB_000672d3;\n      end = end + 1;\n    }\n    else if (((flags & 2U) == 0) || (iVar8 != 0x5b)) {\n      if (((*charlist == cVar2) && (charlist[1] == '\0')) ||\n         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)) goto LAB_000672de;\n    }\n    else {\n      iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4);\n      if (string[iVar8] == ']') {\n        end = iVar8;\n      }\n    }\n    aVar4 = state.__value;\n    if (*start < 2) goto LAB_000672c2;\n    in_stack_ffffffbc = (byte *)(string + end);\n    bVar3 = *in_stack_ffffffbc;\n    if (((uint)close[bVar3 >> 5] >> (bVar3 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar3 < '\0')) {\n        in_stack_ffffffc4 = state.__count;\n        uVar7 = mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)\n        ;\n        if (0xfffffffd < uVar7) {\n          end = end + 1;\n          state.__count = in_stack_ffffffc4;\n          state.__value = aVar4;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar7 = (uint)(bVar3 != 0);\n      }\n      if (uVar7 != 0) goto LAB_00067325;\nLAB_000672c2:\n      end = end + 1;\n      cVar2 = string[end];\n      goto joined_r0x00067240;\n    }\n    uVar7 = 1;\nLAB_00067325:\n    end = end + uVar7;\n  }" { (expression_statement "cVar2 = string[end];" (assignment_expression "cVar2 = string[end]" identifier = (subscript_expression "string[end]" identifier [ identifier ])) ;) (labeled_statement "joined_r0x00067240:\n    iVar8 = (int)cVar2;" statement_identifier : (expression_statement "iVar8 = (int)cVar2;" (assignment_expression "iVar8 = (int)cVar2" identifier = (cast_expression "(int)cVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) (if_statement "if (iVar8 == 0) {\nLAB_000672d3:\n      if ((flags & 4U) != 0) {\n        *sindex = end;\n        pcVar6 = &extract_string_error;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      pcVar6 = (char *)0x0;\n      if ((flags & 1U) == 0) {\n        pcVar6 = substring(string,*sindex,end);\n      }\n      *sindex = end;\nLAB_000672f1:\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return pcVar6;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000672d3:\n      if ((flags & 4U) != 0) {\n        *sindex = end;\n        pcVar6 = &extract_string_error;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      pcVar6 = (char *)0x0;\n      if ((flags & 1U) == 0) {\n        pcVar6 = substring(string,*sindex,end);\n      }\n      *sindex = end;\nLAB_000672f1:\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return pcVar6;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail_local();\n    }" { (labeled_statement "LAB_000672d3:\n      if ((flags & 4U) != 0) {\n        *sindex = end;\n        pcVar6 = &extract_string_error;\n        goto LAB_000672f1;\n      }" statement_identifier : (if_statement "if ((flags & 4U) != 0) {\n        *sindex = end;\n        pcVar6 = &extract_string_error;\n        goto LAB_000672f1;\n      }" if (parenthesized_expression "((flags & 4U) != 0)" ( (binary_expression "(flags & 4U) != 0" (parenthesized_expression "(flags & 4U)" ( (binary_expression "flags & 4U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        *sindex = end;\n        pcVar6 = &extract_string_error;\n        goto LAB_000672f1;\n      }" { (expression_statement "*sindex = end;" (assignment_expression "*sindex = end" (pointer_expression "*sindex" * identifier) = identifier) ;) (expression_statement "pcVar6 = &extract_string_error;" (assignment_expression "pcVar6 = &extract_string_error" identifier = (pointer_expression "&extract_string_error" & identifier)) ;) (goto_statement "goto LAB_000672f1;" goto statement_identifier ;) }))) (labeled_statement "LAB_000672de:\n      pcVar6 = (char *)0x0;" statement_identifier : (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (if_statement "if ((flags & 1U) == 0) {\n        pcVar6 = substring(string,*sindex,end);\n      }" if (parenthesized_expression "((flags & 1U) == 0)" ( (binary_expression "(flags & 1U) == 0" (parenthesized_expression "(flags & 1U)" ( (binary_expression "flags & 1U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        pcVar6 = substring(string,*sindex,end);\n      }" { (expression_statement "pcVar6 = substring(string,*sindex,end);" (assignment_expression "pcVar6 = substring(string,*sindex,end)" identifier = (call_expression "substring(string,*sindex,end)" identifier (argument_list "(string,*sindex,end)" ( identifier , (pointer_expression "*sindex" * identifier) , identifier )))) ;) })) (expression_statement "*sindex = end;" (assignment_expression "*sindex = end" (pointer_expression "*sindex" * identifier) = identifier) ;) (labeled_statement "LAB_000672f1:\n      if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return pcVar6;\n      }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return pcVar6;\n      }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n        return pcVar6;\n      }" { (return_statement "return pcVar6;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (iVar8 == 0x5c) {\n      if (string[end + 1] == '\0') goto LAB_000672d3;\n      end = end + 1;\n    }\n    else if (((flags & 2U) == 0) || (iVar8 != 0x5b)) {\n      if (((*charlist == cVar2) && (charlist[1] == '\0')) ||\n         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)) goto LAB_000672de;\n    }\n    else {\n      iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4);\n      if (string[iVar8] == ']') {\n        end = iVar8;\n      }\n    }" if (parenthesized_expression "(iVar8 == 0x5c)" ( (binary_expression "iVar8 == 0x5c" identifier == number_literal) )) (compound_statement "{\n      if (string[end + 1] == '\0') goto LAB_000672d3;\n      end = end + 1;\n    }" { (if_statement "if (string[end + 1] == '\0') goto LAB_000672d3;" if (parenthesized_expression "(string[end + 1] == '\0')" ( (binary_expression "string[end + 1] == '\0'" (subscript_expression "string[end + 1]" identifier [ (binary_expression "end + 1" identifier + number_literal) ]) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000672d3;" goto statement_identifier ;)) (expression_statement "end = end + 1;" (assignment_expression "end = end + 1" identifier = (binary_expression "end + 1" identifier + number_literal)) ;) }) (else_clause "else if (((flags & 2U) == 0) || (iVar8 != 0x5b)) {\n      if (((*charlist == cVar2) && (charlist[1] == '\0')) ||\n         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)) goto LAB_000672de;\n    }\n    else {\n      iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4);\n      if (string[iVar8] == ']') {\n        end = iVar8;\n      }\n    }" else (if_statement "if (((flags & 2U) == 0) || (iVar8 != 0x5b)) {\n      if (((*charlist == cVar2) && (charlist[1] == '\0')) ||\n         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)) goto LAB_000672de;\n    }\n    else {\n      iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4);\n      if (string[iVar8] == ']') {\n        end = iVar8;\n      }\n    }" if (parenthesized_expression "(((flags & 2U) == 0) || (iVar8 != 0x5b))" ( (binary_expression "((flags & 2U) == 0) || (iVar8 != 0x5b)" (parenthesized_expression "((flags & 2U) == 0)" ( (binary_expression "(flags & 2U) == 0" (parenthesized_expression "(flags & 2U)" ( (binary_expression "flags & 2U" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(iVar8 != 0x5b)" ( (binary_expression "iVar8 != 0x5b" identifier != number_literal) ))) )) (compound_statement "{\n      if (((*charlist == cVar2) && (charlist[1] == '\0')) ||\n         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)) goto LAB_000672de;\n    }" { (if_statement "if (((*charlist == cVar2) && (charlist[1] == '\0')) ||\n         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)) goto LAB_000672de;" if (parenthesized_expression "(((*charlist == cVar2) && (charlist[1] == '\0')) ||\n         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0))" ( (binary_expression "((*charlist == cVar2) && (charlist[1] == '\0')) ||\n         (pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)" (parenthesized_expression "((*charlist == cVar2) && (charlist[1] == '\0'))" ( (binary_expression "(*charlist == cVar2) && (charlist[1] == '\0')" (parenthesized_expression "(*charlist == cVar2)" ( (binary_expression "*charlist == cVar2" (pointer_expression "*charlist" * identifier) == identifier) )) && (parenthesized_expression "(charlist[1] == '\0')" ( (binary_expression "charlist[1] == '\0'" (subscript_expression "charlist[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) || (parenthesized_expression "(pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0)" ( (comma_expression "pcVar6 = mbschr(charlist,iVar8), pcVar6 != (char *)0x0" (assignment_expression "pcVar6 = mbschr(charlist,iVar8)" identifier = (call_expression "mbschr(charlist,iVar8)" identifier (argument_list "(charlist,iVar8)" ( identifier , identifier )))) , (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_000672de;" goto statement_identifier ;)) }) (else_clause "else {\n      iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4);\n      if (string[iVar8] == ']') {\n        end = iVar8;\n      }\n    }" else (compound_statement "{\n      iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4);\n      if (string[iVar8] == ']') {\n        end = iVar8;\n      }\n    }" { (expression_statement "iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4);" (assignment_expression "iVar8 = skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4)" identifier = (call_expression "skip_matched_pair(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4)" identifier (argument_list "(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,\n                                in_stack_ffffffc4)" ( identifier , (cast_expression "(int)start" ( (type_descriptor "int" primitive_type) ) identifier) , (cast_expression "(int)in_stack_ffffffbc" ( (type_descriptor "int" primitive_type) ) identifier) , (cast_expression "(int)close" ( (type_descriptor "int" primitive_type) ) identifier) , identifier )))) ;) (if_statement "if (string[iVar8] == ']') {\n        end = iVar8;\n      }" if (parenthesized_expression "(string[iVar8] == ']')" ( (binary_expression "string[iVar8] == ']'" (subscript_expression "string[iVar8]" identifier [ identifier ]) == (char_literal "']'" ' character ')) )) (compound_statement "{\n        end = iVar8;\n      }" { (expression_statement "end = iVar8;" (assignment_expression "end = iVar8" identifier = identifier) ;) })) }))))) (expression_statement "aVar4 = state.__value;" (assignment_expression "aVar4 = state.__value" identifier = (field_expression "state.__value" identifier . field_identifier)) ;) (if_statement "if (*start < 2) goto LAB_000672c2;" if (parenthesized_expression "(*start < 2)" ( (binary_expression "*start < 2" (pointer_expression "*start" * identifier) < number_literal) )) (goto_statement "goto LAB_000672c2;" goto statement_identifier ;)) (expression_statement "in_stack_ffffffbc = (byte *)(string + end);" (assignment_expression "in_stack_ffffffbc = (byte *)(string + end)" identifier = (cast_expression "(byte *)(string + end)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(string + end)" ( (binary_expression "string + end" identifier + identifier) )))) ;) (expression_statement "bVar3 = *in_stack_ffffffbc;" (assignment_expression "bVar3 = *in_stack_ffffffbc" identifier = (pointer_expression "*in_stack_ffffffbc" * identifier)) ;) (if_statement "if (((uint)close[bVar3 >> 5] >> (bVar3 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar3 < '\0')) {\n        in_stack_ffffffc4 = state.__count;\n        uVar7 = mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)\n        ;\n        if (0xfffffffd < uVar7) {\n          end = end + 1;\n          state.__count = in_stack_ffffffc4;\n          state.__value = aVar4;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar7 = (uint)(bVar3 != 0);\n      }\n      if (uVar7 != 0) goto LAB_00067325;\nLAB_000672c2:\n      end = end + 1;\n      cVar2 = string[end];\n      goto joined_r0x00067240;\n    }" if (parenthesized_expression "(((uint)close[bVar3 >> 5] >> (bVar3 & 0x1f) & 1) == 0)" ( (binary_expression "((uint)close[bVar3 >> 5] >> (bVar3 & 0x1f) & 1) == 0" (parenthesized_expression "((uint)close[bVar3 >> 5] >> (bVar3 & 0x1f) & 1)" ( (binary_expression "(uint)close[bVar3 >> 5] >> (bVar3 & 0x1f) & 1" (binary_expression "(uint)close[bVar3 >> 5] >> (bVar3 & 0x1f)" (cast_expression "(uint)close[bVar3 >> 5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "close[bVar3 >> 5]" identifier [ (binary_expression "bVar3 >> 5" identifier >> number_literal) ])) >> (parenthesized_expression "(bVar3 & 0x1f)" ( (binary_expression "bVar3 & 0x1f" identifier & number_literal) ))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((locale_utf8locale == 0) || ((char)bVar3 < '\0')) {\n        in_stack_ffffffc4 = state.__count;\n        uVar7 = mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)\n        ;\n        if (0xfffffffd < uVar7) {\n          end = end + 1;\n          state.__count = in_stack_ffffffc4;\n          state.__value = aVar4;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar7 = (uint)(bVar3 != 0);\n      }\n      if (uVar7 != 0) goto LAB_00067325;\nLAB_000672c2:\n      end = end + 1;\n      cVar2 = string[end];\n      goto joined_r0x00067240;\n    }" { (if_statement "if ((locale_utf8locale == 0) || ((char)bVar3 < '\0')) {\n        in_stack_ffffffc4 = state.__count;\n        uVar7 = mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)\n        ;\n        if (0xfffffffd < uVar7) {\n          end = end + 1;\n          state.__count = in_stack_ffffffc4;\n          state.__value = aVar4;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar7 = (uint)(bVar3 != 0);\n      }" if (parenthesized_expression "((locale_utf8locale == 0) || ((char)bVar3 < '\0'))" ( (binary_expression "(locale_utf8locale == 0) || ((char)bVar3 < '\0')" (parenthesized_expression "(locale_utf8locale == 0)" ( (binary_expression "locale_utf8locale == 0" identifier == number_literal) )) || (parenthesized_expression "((char)bVar3 < '\0')" ( (binary_expression "(char)bVar3 < '\0'" (cast_expression "(char)bVar3" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        in_stack_ffffffc4 = state.__count;\n        uVar7 = mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)\n        ;\n        if (0xfffffffd < uVar7) {\n          end = end + 1;\n          state.__count = in_stack_ffffffc4;\n          state.__value = aVar4;\n          goto LAB_00067238;\n        }\n      }" { (expression_statement "in_stack_ffffffc4 = state.__count;" (assignment_expression "in_stack_ffffffc4 = state.__count" identifier = (field_expression "state.__count" identifier . field_identifier)) ;) (expression_statement "uVar7 = mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)\n        ;" (assignment_expression "uVar7 = mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)" identifier = (call_expression "mbrtowc((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)" identifier (argument_list "((wchar_t *)0x0,(char *)in_stack_ffffffbc,local_34 - end,(mbstate_t *)&state)" ( (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(char *)in_stack_ffffffbc" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "local_34 - end" identifier - identifier) , (cast_expression "(mbstate_t *)&state" ( (type_descriptor "mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&state" & identifier)) )))) ;) (if_statement "if (0xfffffffd < uVar7) {\n          end = end + 1;\n          state.__count = in_stack_ffffffc4;\n          state.__value = aVar4;\n          goto LAB_00067238;\n        }" if (parenthesized_expression "(0xfffffffd < uVar7)" ( (binary_expression "0xfffffffd < uVar7" number_literal < identifier) )) (compound_statement "{\n          end = end + 1;\n          state.__count = in_stack_ffffffc4;\n          state.__value = aVar4;\n          goto LAB_00067238;\n        }" { (expression_statement "end = end + 1;" (assignment_expression "end = end + 1" identifier = (binary_expression "end + 1" identifier + number_literal)) ;) (expression_statement "state.__count = in_stack_ffffffc4;" (assignment_expression "state.__count = in_stack_ffffffc4" (field_expression "state.__count" identifier . field_identifier) = identifier) ;) (expression_statement "state.__value = aVar4;" (assignment_expression "state.__value = aVar4" (field_expression "state.__value" identifier . field_identifier) = identifier) ;) (goto_statement "goto LAB_00067238;" goto statement_identifier ;) })) }) (else_clause "else {\n        uVar7 = (uint)(bVar3 != 0);\n      }" else (compound_statement "{\n        uVar7 = (uint)(bVar3 != 0);\n      }" { (expression_statement "uVar7 = (uint)(bVar3 != 0);" (assignment_expression "uVar7 = (uint)(bVar3 != 0)" identifier = (call_expression "(uint)(bVar3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )))) ;) }))) (if_statement "if (uVar7 != 0) goto LAB_00067325;" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00067325;" goto statement_identifier ;)) (labeled_statement "LAB_000672c2:\n      end = end + 1;" statement_identifier : (expression_statement "end = end + 1;" (assignment_expression "end = end + 1" identifier = (binary_expression "end + 1" identifier + number_literal)) ;)) (expression_statement "cVar2 = string[end];" (assignment_expression "cVar2 = string[end]" identifier = (subscript_expression "string[end]" identifier [ identifier ])) ;) (goto_statement "goto joined_r0x00067240;" goto statement_identifier ;) })) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (labeled_statement "LAB_00067325:\n    end = end + uVar7;" statement_identifier : (expression_statement "end = end + uVar7;" (assignment_expression "end = end + uVar7" identifier = (binary_expression "end + uVar7" identifier + identifier)) ;)) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit "undefined * __regparm3 FUN_000671c0(int param_1,int *param_2,char *param_3,byte param_4)\n\n{\n  char cVar1;\n  byte bVar2;\n  _union_54 _Var3;\n  size_t sVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  int local_34;\n  mbstate_t local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x671cf;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28.__count = 0;\n  local_28.__value.__wch = 0;\n  sVar4 = __ctype_get_mb_cur_max();\n  if (sVar4 < 2) {\n    iVar8 = *param_2;\n    local_34 = 0;\n  }\n  else {\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }\nLAB_00067238:\n  do {\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    \n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  } while( true );\n}\n\n" (ERROR "undefined * __regparm3 FUN_000671c0(int param_1,int *param_2,char *param_3,byte param_4)" (binary_expression "undefined * __regparm3 FUN_000671c0(int param_1,int *param_2,char *param_3,byte param_4)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000671c0(int param_1,int *param_2,char *param_3,byte param_4)" identifier (argument_list "(int param_1,int *param_2,char *param_3,byte param_4)" ( (ERROR "int" identifier) identifier , (binary_expression "int *param_2" identifier * identifier) , (binary_expression "char *param_3" identifier * identifier) , (ERROR "byte" identifier) identifier ))))) (compound_statement "{\n  char cVar1;\n  byte bVar2;\n  _union_54 _Var3;\n  size_t sVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  int local_34;\n  mbstate_t local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x671cf;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28.__count = 0;\n  local_28.__value.__wch = 0;\n  sVar4 = __ctype_get_mb_cur_max();\n  if (sVar4 < 2) {\n    iVar8 = *param_2;\n    local_34 = 0;\n  }\n  else {\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }\nLAB_00067238:\n  do {\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    \n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "_union_54 _Var3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "mbstate_t local_28;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x671cf;" (assignment_expression "uStack_14 = 0x671cf" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_28.__count = 0;" (assignment_expression "local_28.__count = 0" (field_expression "local_28.__count" identifier . field_identifier) = number_literal) ;) (expression_statement "local_28.__value.__wch = 0;" (assignment_expression "local_28.__value.__wch = 0" (field_expression "local_28.__value.__wch" (field_expression "local_28.__value" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "sVar4 = __ctype_get_mb_cur_max();" (assignment_expression "sVar4 = __ctype_get_mb_cur_max()" identifier = (call_expression "__ctype_get_mb_cur_max()" identifier (argument_list "()" ( )))) ;) (if_statement "if (sVar4 < 2) {\n    iVar8 = *param_2;\n    local_34 = 0;\n  }\n  else {\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }" if (parenthesized_expression "(sVar4 < 2)" ( (binary_expression "sVar4 < 2" identifier < number_literal) )) (compound_statement "{\n    iVar8 = *param_2;\n    local_34 = 0;\n  }" { (expression_statement "iVar8 = *param_2;" (assignment_expression "iVar8 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }" else (compound_statement "{\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }" { (expression_statement "iVar8 = *param_2;" (assignment_expression "iVar8 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "sVar4 = strlen((char *)(param_1 + iVar8));" (assignment_expression "sVar4 = strlen((char *)(param_1 + iVar8))" identifier = (call_expression "strlen((char *)(param_1 + iVar8))" identifier (argument_list "((char *)(param_1 + iVar8))" ( (cast_expression "(char *)(param_1 + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar8)" ( (binary_expression "param_1 + iVar8" identifier + identifier) ))) )))) ;) (expression_statement "local_34 = sVar4 + iVar8;" (assignment_expression "local_34 = sVar4 + iVar8" identifier = (binary_expression "sVar4 + iVar8" identifier + identifier)) ;) }))) (labeled_statement "LAB_00067238:\n  do {\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    \n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  } while( true );" statement_identifier : (do_statement "do {\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    \n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  } while( true );" do (compound_statement "{\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    \n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  }" { (expression_statement "cVar1 = *(char *)(param_1 + iVar8);" (assignment_expression "cVar1 = *(char *)(param_1 + iVar8)" identifier = (pointer_expression "*(char *)(param_1 + iVar8)" * (cast_expression "(char *)(param_1 + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar8)" ( (binary_expression "param_1 + iVar8" identifier + identifier) ))))) ;) (labeled_statement "joined_r0x00067240:\n    iVar5 = (int)cVar1;" statement_identifier : (expression_statement "iVar5 = (int)cVar1;" (assignment_expression "iVar5 = (int)cVar1" identifier = (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) (if_statement "if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    \n      FUN_000ecc40();\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    \n      FUN_000ecc40();\n    }" { (labeled_statement "LAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }" statement_identifier : (if_statement "if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }" if (parenthesized_expression "((param_4 & 4) != 0)" ( (binary_expression "(param_4 & 4) != 0" (parenthesized_expression "(param_4 & 4)" ( (binary_expression "param_4 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }" { (expression_statement "*param_2 = iVar8;" (assignment_expression "*param_2 = iVar8" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "puVar7 = &DAT_0015106d;" (assignment_expression "puVar7 = &DAT_0015106d" identifier = (pointer_expression "&DAT_0015106d" & identifier)) ;) (goto_statement "goto LAB_000672f1;" goto statement_identifier ;) }))) (labeled_statement "LAB_000672de:\n      puVar7 = (undefined *)0x0;" statement_identifier : (expression_statement "puVar7 = (undefined *)0x0;" (assignment_expression "puVar7 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (if_statement "if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }" if (parenthesized_expression "((param_4 & 1) == 0)" ( (binary_expression "(param_4 & 1) == 0" (parenthesized_expression "(param_4 & 1)" ( (binary_expression "param_4 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }" { (expression_statement "puVar7 = (undefined *)substring(param_1,*param_2,iVar8);" (assignment_expression "puVar7 = (undefined *)substring(param_1,*param_2,iVar8)" identifier = (cast_expression "(undefined *)substring(param_1,*param_2,iVar8)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "substring(param_1,*param_2,iVar8)" identifier (argument_list "(param_1,*param_2,iVar8)" ( identifier , (pointer_expression "*param_2" * identifier) , identifier ))))) ;) })) (expression_statement "*param_2 = iVar8;" (assignment_expression "*param_2 = iVar8" (pointer_expression "*param_2" * identifier) = identifier) ;) (labeled_statement "LAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n        return puVar7;\n      }" { (return_statement "return puVar7;" return identifier ;) }))) (expression_statement "FUN_000ecc40();" (call_expression "FUN_000ecc40()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" if (parenthesized_expression "(iVar5 == 0x5c)" ( (binary_expression "iVar5 == 0x5c" identifier == number_literal) )) (compound_statement "{\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }" { (if_statement "if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;" if (parenthesized_expression "(*(char *)(param_1 + 1 + iVar8) == '\0')" ( (binary_expression "*(char *)(param_1 + 1 + iVar8) == '\0'" (pointer_expression "*(char *)(param_1 + 1 + iVar8)" * (cast_expression "(char *)(param_1 + 1 + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1 + iVar8)" ( (binary_expression "param_1 + 1 + iVar8" (binary_expression "param_1 + 1" identifier + number_literal) + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000672d3;" goto statement_identifier ;)) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) (else_clause "else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" else (if_statement "if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" if (parenthesized_expression "(((param_4 & 2) == 0) || (iVar5 != 0x5b))" ( (binary_expression "((param_4 & 2) == 0) || (iVar5 != 0x5b)" (parenthesized_expression "((param_4 & 2) == 0)" ( (binary_expression "(param_4 & 2) == 0" (parenthesized_expression "(param_4 & 2)" ( (binary_expression "param_4 & 2" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(iVar5 != 0x5b)" ( (binary_expression "iVar5 != 0x5b" identifier != number_literal) ))) )) (compound_statement "{\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }" { (if_statement "if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;" if (parenthesized_expression "(((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0))" ( (binary_expression "((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)" (parenthesized_expression "((*param_3 == cVar1) && (param_3[1] == '\0'))" ( (binary_expression "(*param_3 == cVar1) && (param_3[1] == '\0')" (parenthesized_expression "(*param_3 == cVar1)" ( (binary_expression "*param_3 == cVar1" (pointer_expression "*param_3" * identifier) == identifier) )) && (parenthesized_expression "(param_3[1] == '\0')" ( (binary_expression "param_3[1] == '\0'" (subscript_expression "param_3[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) || (parenthesized_expression "(iVar5 = mbschr(param_3,iVar5), iVar5 != 0)" ( (comma_expression "iVar5 = mbschr(param_3,iVar5), iVar5 != 0" (assignment_expression "iVar5 = mbschr(param_3,iVar5)" identifier = (call_expression "mbschr(param_3,iVar5)" identifier (argument_list "(param_3,iVar5)" ( identifier , identifier )))) , (binary_expression "iVar5 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000672de;" goto statement_identifier ;)) }) (else_clause "else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" else (compound_statement "{\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" { (expression_statement "iVar5 = FUN_00066bf0();" (assignment_expression "iVar5 = FUN_00066bf0()" identifier = (call_expression "FUN_00066bf0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }" if (parenthesized_expression "(*(char *)(param_1 + iVar5) == ']')" ( (binary_expression "*(char *)(param_1 + iVar5) == ']'" (pointer_expression "*(char *)(param_1 + iVar5)" * (cast_expression "(char *)(param_1 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5)" ( (binary_expression "param_1 + iVar5" identifier + identifier) )))) == (char_literal "']'" ' character ')) )) (compound_statement "{\n        iVar8 = iVar5;\n      }" { (expression_statement "iVar8 = iVar5;" (assignment_expression "iVar8 = iVar5" identifier = identifier) ;) })) }))))) (expression_statement "_Var3 = local_28.__value;" (assignment_expression "_Var3 = local_28.__value" identifier = (field_expression "local_28.__value" identifier . field_identifier)) ;) (expression_statement "iVar5 = local_28.__count;" (assignment_expression "iVar5 = local_28.__count" identifier = (field_expression "local_28.__count" identifier . field_identifier)) ;) (if_statement "if (locale_mb_cur_max < 2) goto LAB_000672c2;" if (parenthesized_expression "(locale_mb_cur_max < 2)" ( (binary_expression "locale_mb_cur_max < 2" identifier < number_literal) )) (goto_statement "goto LAB_000672c2;" goto statement_identifier ;)) (expression_statement "bVar2 = *(byte *)(param_1 + iVar8);" (assignment_expression "bVar2 = *(byte *)(param_1 + iVar8)" identifier = (pointer_expression "*(byte *)(param_1 + iVar8)" * (cast_expression "(byte *)(param_1 + iVar8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar8)" ( (binary_expression "param_1 + iVar8" identifier + identifier) ))))) ;) (if_statement "if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }" if (parenthesized_expression "(((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0)" ( (binary_expression "((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0" (parenthesized_expression "((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1)" ( (binary_expression "(uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1" (binary_expression "(uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f)" (subscript_expression "(uint)(&is_basic_table)[bVar2 >> 5]" (call_expression "(uint)(&is_basic_table)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(&is_basic_table)" ( (pointer_expression "&is_basic_table" & identifier) ))) [ (binary_expression "bVar2 >> 5" identifier >> number_literal) ]) >> (parenthesized_expression "(bVar2 & 0x1f)" ( (binary_expression "bVar2 & 0x1f" identifier & number_literal) ))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }" { (if_statement "if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }" if (parenthesized_expression "((locale_utf8locale == 0) || ((char)bVar2 < '\0'))" ( (binary_expression "(locale_utf8locale == 0) || ((char)bVar2 < '\0')" (parenthesized_expression "(locale_utf8locale == 0)" ( (binary_expression "locale_utf8locale == 0" identifier == number_literal) )) || (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }" { (expression_statement "uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);" (assignment_expression "uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28)" identifier = (call_expression "mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28)" identifier (argument_list "((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28)" ( (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(char *)(param_1 + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar8)" ( (binary_expression "param_1 + iVar8" identifier + identifier) ))) , (binary_expression "local_34 - iVar8" identifier - identifier) , (pointer_expression "&local_28" & identifier) )))) ;) (if_statement "if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }" if (parenthesized_expression "(0xfffffffd < uVar6)" ( (binary_expression "0xfffffffd < uVar6" number_literal < identifier) )) (compound_statement "{\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }" { (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "local_28.__count = iVar5;" (assignment_expression "local_28.__count = iVar5" (field_expression "local_28.__count" identifier . field_identifier) = identifier) ;) (expression_statement "local_28.__value = _Var3;" (assignment_expression "local_28.__value = _Var3" (field_expression "local_28.__value" identifier . field_identifier) = identifier) ;) (goto_statement "goto LAB_00067238;" goto statement_identifier ;) })) }) (else_clause "else {\n        uVar6 = (uint)(bVar2 != 0);\n      }" else (compound_statement "{\n        uVar6 = (uint)(bVar2 != 0);\n      }" { (expression_statement "uVar6 = (uint)(bVar2 != 0);" (assignment_expression "uVar6 = (uint)(bVar2 != 0)" identifier = (call_expression "(uint)(bVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )))) ;) }))) (if_statement "if (uVar6 != 0) goto LAB_00067325;" if (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00067325;" goto statement_identifier ;)) (labeled_statement "LAB_000672c2:\n      iVar8 = iVar8 + 1;" statement_identifier : (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;)) (expression_statement "cVar1 = *(char *)(param_1 + iVar8);" (assignment_expression "cVar1 = *(char *)(param_1 + iVar8)" identifier = (pointer_expression "*(char *)(param_1 + iVar8)" * (cast_expression "(char *)(param_1 + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar8)" ( (binary_expression "param_1 + iVar8" identifier + identifier) ))))) ;) (goto_statement "goto joined_r0x00067240;" goto statement_identifier ;) })) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (labeled_statement "LAB_00067325:\n    iVar8 = iVar8 + uVar6;" statement_identifier : (expression_statement "iVar8 = iVar8 + uVar6;" (assignment_expression "iVar8 = iVar8 + uVar6" identifier = (binary_expression "iVar8 + uVar6" identifier + identifier)) ;)) }) while (parenthesized_expression "( true )" ( true )) ;)) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (ERROR IDENT) IDENT , (binary_expression IDENT * IDENT) , (binary_expression IDENT * IDENT) , (ERROR IDENT) IDENT ))))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (goto_statement goto statement_identifier ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , IDENT ))))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }))))) (expression_statement (assignment_expression IDENT = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT . field_identifier)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (pointer_expression & IDENT) ))) [ (binary_expression IDENT >> LIT) ]) >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) , (binary_expression IDENT - IDENT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = IDENT) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = IDENT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;)) }) while (parenthesized_expression ( BOOL )) ;)) }))
(ERROR "undefined * __regparm3 FUN_000671c0(int param_1,int *param_2,char *param_3,byte param_4)" (binary_expression "undefined * __regparm3 FUN_000671c0(int param_1,int *param_2,char *param_3,byte param_4)" (identifier "undefined") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_000671c0(int param_1,int *param_2,char *param_3,byte param_4)" (identifier "FUN_000671c0") (argument_list "(int param_1,int *param_2,char *param_3,byte param_4)" (( "(") (ERROR "int" (identifier "int")) (identifier "param_1") (, ",") (binary_expression "int *param_2" (identifier "int") (* "*") (identifier "param_2")) (, ",") (binary_expression "char *param_3" (identifier "char") (* "*") (identifier "param_3")) (, ",") (ERROR "byte" (identifier "byte")) (identifier "param_4") () ")"))))) (compound_statement "{\n  char cVar1;\n  byte bVar2;\n  _union_54 _Var3;\n  size_t sVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  int in_GS_OFFSET;\n  int local_34;\n  mbstate_t local_28;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x671cf;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_28.__count = 0;\n  local_28.__value.__wch = 0;\n  sVar4 = __ctype_get_mb_cur_max();\n  if (sVar4 < 2) {\n    iVar8 = *param_2;\n    local_34 = 0;\n  }\n  else {\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }\nLAB_00067238:\n  do {\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    \n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  } while( true );\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "_union_54 _Var3;" (type_identifier "_union_54") (identifier "_Var3") (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "mbstate_t local_28;" (type_identifier "mbstate_t") (identifier "local_28") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x671cf;" (assignment_expression "uStack_14 = 0x671cf" (identifier "uStack_14") (= "=") (number_literal "0x671cf")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_28.__count = 0;" (assignment_expression "local_28.__count = 0" (field_expression "local_28.__count" (identifier "local_28") (. ".") (field_identifier "__count")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28.__value.__wch = 0;" (assignment_expression "local_28.__value.__wch = 0" (field_expression "local_28.__value.__wch" (field_expression "local_28.__value" (identifier "local_28") (. ".") (field_identifier "__value")) (. ".") (field_identifier "__wch")) (= "=") (number_literal "0")) (; ";")) (expression_statement "sVar4 = __ctype_get_mb_cur_max();" (assignment_expression "sVar4 = __ctype_get_mb_cur_max()" (identifier "sVar4") (= "=") (call_expression "__ctype_get_mb_cur_max()" (identifier "__ctype_get_mb_cur_max") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (sVar4 < 2) {\n    iVar8 = *param_2;\n    local_34 = 0;\n  }\n  else {\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }" (if "if") (parenthesized_expression "(sVar4 < 2)" (( "(") (binary_expression "sVar4 < 2" (identifier "sVar4") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    iVar8 = *param_2;\n    local_34 = 0;\n  }" ({ "{") (expression_statement "iVar8 = *param_2;" (assignment_expression "iVar8 = *param_2" (identifier "iVar8") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }" (else "else") (compound_statement "{\n    iVar8 = *param_2;\n    sVar4 = strlen((char *)(param_1 + iVar8));\n    local_34 = sVar4 + iVar8;\n  }" ({ "{") (expression_statement "iVar8 = *param_2;" (assignment_expression "iVar8 = *param_2" (identifier "iVar8") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "sVar4 = strlen((char *)(param_1 + iVar8));" (assignment_expression "sVar4 = strlen((char *)(param_1 + iVar8))" (identifier "sVar4") (= "=") (call_expression "strlen((char *)(param_1 + iVar8))" (identifier "strlen") (argument_list "((char *)(param_1 + iVar8))" (( "(") (cast_expression "(char *)(param_1 + iVar8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar8)" (( "(") (binary_expression "param_1 + iVar8" (identifier "param_1") (+ "+") (identifier "iVar8")) () ")"))) () ")")))) (; ";")) (expression_statement "local_34 = sVar4 + iVar8;" (assignment_expression "local_34 = sVar4 + iVar8" (identifier "local_34") (= "=") (binary_expression "sVar4 + iVar8" (identifier "sVar4") (+ "+") (identifier "iVar8"))) (; ";")) (} "}")))) (labeled_statement "LAB_00067238:\n  do {\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    \n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  } while( true );" (statement_identifier "LAB_00067238") (: ":") (do_statement "do {\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    \n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  } while( true );" (do "do") (compound_statement "{\n    cVar1 = *(char *)(param_1 + iVar8);\njoined_r0x00067240:\n    iVar5 = (int)cVar1;\n    if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    \n      FUN_000ecc40();\n    }\n    if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }\n    _Var3 = local_28.__value;\n    iVar5 = local_28.__count;\n    if (locale_mb_cur_max < 2) goto LAB_000672c2;\n    bVar2 = *(byte *)(param_1 + iVar8);\n    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }\n    uVar6 = 1;\nLAB_00067325:\n    iVar8 = iVar8 + uVar6;\n  }" ({ "{") (expression_statement "cVar1 = *(char *)(param_1 + iVar8);" (assignment_expression "cVar1 = *(char *)(param_1 + iVar8)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + iVar8)" (* "*") (cast_expression "(char *)(param_1 + iVar8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar8)" (( "(") (binary_expression "param_1 + iVar8" (identifier "param_1") (+ "+") (identifier "iVar8")) () ")"))))) (; ";")) (labeled_statement "joined_r0x00067240:\n    iVar5 = (int)cVar1;" (statement_identifier "joined_r0x00067240") (: ":") (expression_statement "iVar5 = (int)cVar1;" (assignment_expression "iVar5 = (int)cVar1" (identifier "iVar5") (= "=") (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1"))) (; ";"))) (if_statement "if (iVar5 == 0) {\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    \n      FUN_000ecc40();\n    }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }\nLAB_000672de:\n      puVar7 = (undefined *)0x0;\n      if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }\n      *param_2 = iVar8;\nLAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }\n                    \n      FUN_000ecc40();\n    }" ({ "{") (labeled_statement "LAB_000672d3:\n      if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }" (statement_identifier "LAB_000672d3") (: ":") (if_statement "if ((param_4 & 4) != 0) {\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }" (if "if") (parenthesized_expression "((param_4 & 4) != 0)" (( "(") (binary_expression "(param_4 & 4) != 0" (parenthesized_expression "(param_4 & 4)" (( "(") (binary_expression "param_4 & 4" (identifier "param_4") (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *param_2 = iVar8;\n        puVar7 = &DAT_0015106d;\n        goto LAB_000672f1;\n      }" ({ "{") (expression_statement "*param_2 = iVar8;" (assignment_expression "*param_2 = iVar8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "puVar7 = &DAT_0015106d;" (assignment_expression "puVar7 = &DAT_0015106d" (identifier "puVar7") (= "=") (pointer_expression "&DAT_0015106d" (& "&") (identifier "DAT_0015106d"))) (; ";")) (goto_statement "goto LAB_000672f1;" (goto "goto") (statement_identifier "LAB_000672f1") (; ";")) (} "}")))) (labeled_statement "LAB_000672de:\n      puVar7 = (undefined *)0x0;" (statement_identifier "LAB_000672de") (: ":") (expression_statement "puVar7 = (undefined *)0x0;" (assignment_expression "puVar7 = (undefined *)0x0" (identifier "puVar7") (= "=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";"))) (if_statement "if ((param_4 & 1) == 0) {\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }" (if "if") (parenthesized_expression "((param_4 & 1) == 0)" (( "(") (binary_expression "(param_4 & 1) == 0" (parenthesized_expression "(param_4 & 1)" (( "(") (binary_expression "param_4 & 1" (identifier "param_4") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);\n      }" ({ "{") (expression_statement "puVar7 = (undefined *)substring(param_1,*param_2,iVar8);" (assignment_expression "puVar7 = (undefined *)substring(param_1,*param_2,iVar8)" (identifier "puVar7") (= "=") (cast_expression "(undefined *)substring(param_1,*param_2,iVar8)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "substring(param_1,*param_2,iVar8)" (identifier "substring") (argument_list "(param_1,*param_2,iVar8)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "iVar8") () ")"))))) (; ";")) (} "}"))) (expression_statement "*param_2 = iVar8;" (assignment_expression "*param_2 = iVar8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar8")) (; ";")) (labeled_statement "LAB_000672f1:\n      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }" (statement_identifier "LAB_000672f1") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n        return puVar7;\n      }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n        return puVar7;\n      }" ({ "{") (return_statement "return puVar7;" (return "return") (identifier "puVar7") (; ";")) (} "}")))) (expression_statement "FUN_000ecc40();" (call_expression "FUN_000ecc40()" (identifier "FUN_000ecc40") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar5 == 0x5c) {\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }\n    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" (if "if") (parenthesized_expression "(iVar5 == 0x5c)" (( "(") (binary_expression "iVar5 == 0x5c" (identifier "iVar5") (== "==") (number_literal "0x5c")) () ")")) (compound_statement "{\n      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;\n      iVar8 = iVar8 + 1;\n    }" ({ "{") (if_statement "if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;" (if "if") (parenthesized_expression "(*(char *)(param_1 + 1 + iVar8) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 1 + iVar8) == '\0'" (pointer_expression "*(char *)(param_1 + 1 + iVar8)" (* "*") (cast_expression "(char *)(param_1 + 1 + iVar8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1 + iVar8)" (( "(") (binary_expression "param_1 + 1 + iVar8" (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) (+ "+") (identifier "iVar8")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000672d3;" (goto "goto") (statement_identifier "LAB_000672d3") (; ";"))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" (else "else") (if_statement "if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }\n    else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" (if "if") (parenthesized_expression "(((param_4 & 2) == 0) || (iVar5 != 0x5b))" (( "(") (binary_expression "((param_4 & 2) == 0) || (iVar5 != 0x5b)" (parenthesized_expression "((param_4 & 2) == 0)" (( "(") (binary_expression "(param_4 & 2) == 0" (parenthesized_expression "(param_4 & 2)" (( "(") (binary_expression "param_4 & 2" (identifier "param_4") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar5 != 0x5b)" (( "(") (binary_expression "iVar5 != 0x5b" (identifier "iVar5") (!= "!=") (number_literal "0x5b")) () ")"))) () ")")) (compound_statement "{\n      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;\n    }" ({ "{") (if_statement "if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;" (if "if") (parenthesized_expression "(((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0))" (( "(") (binary_expression "((*param_3 == cVar1) && (param_3[1] == '\0')) ||\n         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)" (parenthesized_expression "((*param_3 == cVar1) && (param_3[1] == '\0'))" (( "(") (binary_expression "(*param_3 == cVar1) && (param_3[1] == '\0')" (parenthesized_expression "(*param_3 == cVar1)" (( "(") (binary_expression "*param_3 == cVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (identifier "cVar1")) () ")")) (&& "&&") (parenthesized_expression "(param_3[1] == '\0')" (( "(") (binary_expression "param_3[1] == '\0'" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar5 = mbschr(param_3,iVar5), iVar5 != 0)" (( "(") (comma_expression "iVar5 = mbschr(param_3,iVar5), iVar5 != 0" (assignment_expression "iVar5 = mbschr(param_3,iVar5)" (identifier "iVar5") (= "=") (call_expression "mbschr(param_3,iVar5)" (identifier "mbschr") (argument_list "(param_3,iVar5)" (( "(") (identifier "param_3") (, ",") (identifier "iVar5") () ")")))) (, ",") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_000672de;" (goto "goto") (statement_identifier "LAB_000672de") (; ";"))) (} "}")) (else_clause "else {\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" (else "else") (compound_statement "{\n      iVar5 = FUN_00066bf0();\n      if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }\n    }" ({ "{") (expression_statement "iVar5 = FUN_00066bf0();" (assignment_expression "iVar5 = FUN_00066bf0()" (identifier "iVar5") (= "=") (call_expression "FUN_00066bf0()" (identifier "FUN_00066bf0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*(char *)(param_1 + iVar5) == ']') {\n        iVar8 = iVar5;\n      }" (if "if") (parenthesized_expression "(*(char *)(param_1 + iVar5) == ']')" (( "(") (binary_expression "*(char *)(param_1 + iVar5) == ']'" (pointer_expression "*(char *)(param_1 + iVar5)" (* "*") (cast_expression "(char *)(param_1 + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar5)" (( "(") (binary_expression "param_1 + iVar5" (identifier "param_1") (+ "+") (identifier "iVar5")) () ")")))) (== "==") (char_literal "']'" (' "'") (character "]") (' "'"))) () ")")) (compound_statement "{\n        iVar8 = iVar5;\n      }" ({ "{") (expression_statement "iVar8 = iVar5;" (assignment_expression "iVar8 = iVar5" (identifier "iVar8") (= "=") (identifier "iVar5")) (; ";")) (} "}"))) (} "}")))))) (expression_statement "_Var3 = local_28.__value;" (assignment_expression "_Var3 = local_28.__value" (identifier "_Var3") (= "=") (field_expression "local_28.__value" (identifier "local_28") (. ".") (field_identifier "__value"))) (; ";")) (expression_statement "iVar5 = local_28.__count;" (assignment_expression "iVar5 = local_28.__count" (identifier "iVar5") (= "=") (field_expression "local_28.__count" (identifier "local_28") (. ".") (field_identifier "__count"))) (; ";")) (if_statement "if (locale_mb_cur_max < 2) goto LAB_000672c2;" (if "if") (parenthesized_expression "(locale_mb_cur_max < 2)" (( "(") (binary_expression "locale_mb_cur_max < 2" (identifier "locale_mb_cur_max") (< "<") (number_literal "2")) () ")")) (goto_statement "goto LAB_000672c2;" (goto "goto") (statement_identifier "LAB_000672c2") (; ";"))) (expression_statement "bVar2 = *(byte *)(param_1 + iVar8);" (assignment_expression "bVar2 = *(byte *)(param_1 + iVar8)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(param_1 + iVar8)" (* "*") (cast_expression "(byte *)(param_1 + iVar8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar8)" (( "(") (binary_expression "param_1 + iVar8" (identifier "param_1") (+ "+") (identifier "iVar8")) () ")"))))) (; ";")) (if_statement "if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }" (if "if") (parenthesized_expression "(((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0)" (( "(") (binary_expression "((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0" (parenthesized_expression "((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1)" (( "(") (binary_expression "(uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1" (binary_expression "(uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f)" (subscript_expression "(uint)(&is_basic_table)[bVar2 >> 5]" (call_expression "(uint)(&is_basic_table)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(&is_basic_table)" (( "(") (pointer_expression "&is_basic_table" (& "&") (identifier "is_basic_table")) () ")"))) ([ "[") (binary_expression "bVar2 >> 5" (identifier "bVar2") (>> ">>") (number_literal "5")) (] "]")) (>> ">>") (parenthesized_expression "(bVar2 & 0x1f)" (( "(") (binary_expression "bVar2 & 0x1f" (identifier "bVar2") (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }\n      if (uVar6 != 0) goto LAB_00067325;\nLAB_000672c2:\n      iVar8 = iVar8 + 1;\n      cVar1 = *(char *)(param_1 + iVar8);\n      goto joined_r0x00067240;\n    }" ({ "{") (if_statement "if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }\n      else {\n        uVar6 = (uint)(bVar2 != 0);\n      }" (if "if") (parenthesized_expression "((locale_utf8locale == 0) || ((char)bVar2 < '\0'))" (( "(") (binary_expression "(locale_utf8locale == 0) || ((char)bVar2 < '\0')" (parenthesized_expression "(locale_utf8locale == 0)" (( "(") (binary_expression "locale_utf8locale == 0" (identifier "locale_utf8locale") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((char)bVar2 < '\0')" (( "(") (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar2")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);\n        if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }\n      }" ({ "{") (expression_statement "uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);" (assignment_expression "uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28)" (identifier "uVar6") (= "=") (call_expression "mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28)" (identifier "mbrtowc") (argument_list "((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28)" (( "(") (cast_expression "(wchar_t *)0x0" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (cast_expression "(char *)(param_1 + iVar8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar8)" (( "(") (binary_expression "param_1 + iVar8" (identifier "param_1") (+ "+") (identifier "iVar8")) () ")"))) (, ",") (binary_expression "local_34 - iVar8" (identifier "local_34") (- "-") (identifier "iVar8")) (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")")))) (; ";")) (if_statement "if (0xfffffffd < uVar6) {\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }" (if "if") (parenthesized_expression "(0xfffffffd < uVar6)" (( "(") (binary_expression "0xfffffffd < uVar6" (number_literal "0xfffffffd") (< "<") (identifier "uVar6")) () ")")) (compound_statement "{\n          iVar8 = iVar8 + 1;\n          local_28.__count = iVar5;\n          local_28.__value = _Var3;\n          goto LAB_00067238;\n        }" ({ "{") (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_28.__count = iVar5;" (assignment_expression "local_28.__count = iVar5" (field_expression "local_28.__count" (identifier "local_28") (. ".") (field_identifier "__count")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "local_28.__value = _Var3;" (assignment_expression "local_28.__value = _Var3" (field_expression "local_28.__value" (identifier "local_28") (. ".") (field_identifier "__value")) (= "=") (identifier "_Var3")) (; ";")) (goto_statement "goto LAB_00067238;" (goto "goto") (statement_identifier "LAB_00067238") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        uVar6 = (uint)(bVar2 != 0);\n      }" (else "else") (compound_statement "{\n        uVar6 = (uint)(bVar2 != 0);\n      }" ({ "{") (expression_statement "uVar6 = (uint)(bVar2 != 0);" (assignment_expression "uVar6 = (uint)(bVar2 != 0)" (identifier "uVar6") (= "=") (call_expression "(uint)(bVar2 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(bVar2 != 0)" (( "(") (binary_expression "bVar2 != 0" (identifier "bVar2") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (} "}")))) (if_statement "if (uVar6 != 0) goto LAB_00067325;" (if "if") (parenthesized_expression "(uVar6 != 0)" (( "(") (binary_expression "uVar6 != 0" (identifier "uVar6") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00067325;" (goto "goto") (statement_identifier "LAB_00067325") (; ";"))) (labeled_statement "LAB_000672c2:\n      iVar8 = iVar8 + 1;" (statement_identifier "LAB_000672c2") (: ":") (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "cVar1 = *(char *)(param_1 + iVar8);" (assignment_expression "cVar1 = *(char *)(param_1 + iVar8)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + iVar8)" (* "*") (cast_expression "(char *)(param_1 + iVar8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar8)" (( "(") (binary_expression "param_1 + iVar8" (identifier "param_1") (+ "+") (identifier "iVar8")) () ")"))))) (; ";")) (goto_statement "goto joined_r0x00067240;" (goto "goto") (statement_identifier "joined_r0x00067240") (; ";")) (} "}"))) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" (identifier "uVar6") (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_00067325:\n    iVar8 = iVar8 + uVar6;" (statement_identifier "LAB_00067325") (: ":") (expression_statement "iVar8 = iVar8 + uVar6;" (assignment_expression "iVar8 = iVar8 + uVar6" (identifier "iVar8") (= "=") (binary_expression "iVar8 + uVar6" (identifier "iVar8") (+ "+") (identifier "uVar6"))) (; ";"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";"))) (} "}"))

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

char * __regparm3 function_1(char *var_5,int *sindex,char *charlist,int var_8)

{
  int var_10;
  char var_12;
  type_1 var_16;
  type_2 aVar4;
  size_t var_3;
  char *var_14;
  type_3 var_20;
  int var_7;
  int var_6;
  int var_1;
  char *in_stack_ffffffb4;
  int *start;
  type_1 *in_stack_ffffffbc;
  type_4 *close;
  int in_stack_ffffffc4;
  int var_19;
  type_5 state;
  
  var_10 = *(int *)(var_1 + 0x14);
  state.__count = 0;
  state.__value.__wch = 0;
  var_3 = var_2();
  if (var_3 < 2) {
    var_6 = *sindex;
    var_19 = 0;
  }
  else {
    var_6 = *sindex;
    var_3 = var_4(var_5 + var_6);
    var_19 = var_3 + var_6;
  }
  start = &locale_mb_cur_max;
  close = &is_basic_table;
LAB_00067238:
  do {
    var_12 = var_5[var_6];
joined_r0x00067240:
    var_7 = (int)var_12;
    if (var_7 == 0) {
LAB_000672d3:
      if ((var_8 & 4U) != 0) {
        *sindex = var_6;
        var_14 = &extract_string_error;
        goto LAB_000672f1;
      }
LAB_000672de:
      var_14 = (char *)0x0;
      if ((var_8 & 1U) == 0) {
        var_14 = var_9(var_5,*sindex,var_6);
      }
      *sindex = var_6;
LAB_000672f1:
      if (var_10 == *(int *)(var_1 + 0x14)) {
        return var_14;
      }
                    /* WARNING: Subroutine does not return */
      var_11();
    }
    if (var_7 == 0x5c) {
      if (var_5[var_6 + 1] == '\0') goto LAB_000672d3;
      var_6 = var_6 + 1;
    }
    else if (((var_8 & 2U) == 0) || (var_7 != 0x5b)) {
      if (((*charlist == var_12) && (charlist[1] == '\0')) ||
         (var_14 = var_13(charlist,var_7), var_14 != (char *)0x0)) goto LAB_000672de;
    }
    else {
      var_7 = var_15(in_stack_ffffffb4,(int)start,(int)in_stack_ffffffbc,(int)close,
                                in_stack_ffffffc4);
      if (var_5[var_7] == ']') {
        var_6 = var_7;
      }
    }
    aVar4 = state.__value;
    if (*start < 2) goto LAB_000672c2;
    in_stack_ffffffbc = (type_1 *)(var_5 + var_6);
    var_16 = *in_stack_ffffffbc;
    if (((type_3)close[var_16 >> 5] >> (var_16 & 0x1f) & 1) == 0) {
      if ((var_17 == 0) || ((char)var_16 < '\0')) {
        in_stack_ffffffc4 = state.__count;
        var_20 = var_18((type_6 *)0x0,(char *)in_stack_ffffffbc,var_19 - var_6,(type_5 *)&state)
        ;
        if (0xfffffffd < var_20) {
          var_6 = var_6 + 1;
          state.__count = in_stack_ffffffc4;
          state.__value = aVar4;
          goto LAB_00067238;
        }
      }
      else {
        var_20 = (type_3)(var_16 != 0);
      }
      if (var_20 != 0) goto LAB_00067325;
LAB_000672c2:
      var_6 = var_6 + 1;
      var_12 = var_5[var_6];
      goto joined_r0x00067240;
    }
    var_20 = 1;
LAB_00067325:
    var_6 = var_6 + var_20;
  } while( true );
}


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

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

undefined * __regparm3 MASKED(int param_1,int *param_2,char *param_3,byte param_4)

{
  char cVar1;
  byte bVar2;
  _union_54 _Var3;
  size_t sVar4;
  int iVar5;
  uint uVar6;
  undefined *puVar7;
  int iVar8;
  int in_GS_OFFSET;
  int local_34;
  mbstate_t local_28;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x671cf;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_28.__count = 0;
  local_28.__value.__wch = 0;
  sVar4 = __ctype_get_mb_cur_max();
  if (sVar4 < 2) {
    iVar8 = *param_2;
    local_34 = 0;
  }
  else {
    iVar8 = *param_2;
    sVar4 = strlen((char *)(param_1 + iVar8));
    local_34 = sVar4 + iVar8;
  }
LAB_00067238:
  do {
    cVar1 = *(char *)(param_1 + iVar8);
joined_r0x00067240:
    iVar5 = (int)cVar1;
    if (iVar5 == 0) {
LAB_000672d3:
      if ((param_4 & 4) != 0) {
        *param_2 = iVar8;
        puVar7 = &DAT_0015106d;
        goto LAB_000672f1;
      }
LAB_000672de:
      puVar7 = (undefined *)0x0;
      if ((param_4 & 1) == 0) {
        puVar7 = (undefined *)substring(param_1,*param_2,iVar8);
      }
      *param_2 = iVar8;
LAB_000672f1:
      if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
        return puVar7;
      }
                    /* WARNING: Subroutine does not return */
      FUN_000ecc40();
    }
    if (iVar5 == 0x5c) {
      if (*(char *)(param_1 + 1 + iVar8) == '\0') goto LAB_000672d3;
      iVar8 = iVar8 + 1;
    }
    else if (((param_4 & 2) == 0) || (iVar5 != 0x5b)) {
      if (((*param_3 == cVar1) && (param_3[1] == '\0')) ||
         (iVar5 = mbschr(param_3,iVar5), iVar5 != 0)) goto LAB_000672de;
    }
    else {
      iVar5 = FUN_00066bf0();
      if (*(char *)(param_1 + iVar5) == ']') {
        iVar8 = iVar5;
      }
    }
    _Var3 = local_28.__value;
    iVar5 = local_28.__count;
    if (locale_mb_cur_max < 2) goto LAB_000672c2;
    bVar2 = *(byte *)(param_1 + iVar8);
    if (((uint)(&is_basic_table)[bVar2 >> 5] >> (bVar2 & 0x1f) & 1) == 0) {
      if ((locale_utf8locale == 0) || ((char)bVar2 < '\0')) {
        uVar6 = mbrtowc((wchar_t *)0x0,(char *)(param_1 + iVar8),local_34 - iVar8,&local_28);
        if (0xfffffffd < uVar6) {
          iVar8 = iVar8 + 1;
          local_28.__count = iVar5;
          local_28.__value = _Var3;
          goto LAB_00067238;
        }
      }
      else {
        uVar6 = (uint)(bVar2 != 0);
      }
      if (uVar6 != 0) goto LAB_00067325;
LAB_000672c2:
      iVar8 = iVar8 + 1;
      cVar1 = *(char *)(param_1 + iVar8);
      goto joined_r0x00067240;
    }
    uVar6 = 1;
LAB_00067325:
    iVar8 = iVar8 + uVar6;
  } while( true );
}

