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

char * __regparm3 create_fullname(char *gecos_name,char *user_name)

{
  char cVar1;
  size_t sVar2;
  char *pcVar3;
  char *pcVar4;
  ushort **ppuVar5;
  __int32_t **pp_Var6;
  uint uVar7;
  byte *pbVar8;
  uint uVar9;
  size_t n;
  uint uVar10;
  char *pcVar11;
  
  sVar2 = strlen(gecos_name);
  n = sVar2 + 1;
  uVar10 = 0;
  pcVar3 = gecos_name;
  do {
    while( true ) {
      cVar1 = *pcVar3;
      pcVar3 = pcVar3 + 1;
      if (cVar1 != '&') break;
      uVar10 = uVar10 + 1;
    }
  } while (cVar1 != '\0');
  if (uVar10 != 0) {
    uVar9 = n - uVar10;
    sVar2 = strlen(user_name);
    uVar7 = sVar2 * uVar10;
    n = uVar9 + uVar7;
    if ((CARRY4(uVar9,uVar7)) ||
       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20) != 0)) {
                    /* WARNING: Subroutine does not return */
      xalloc_die();
    }
  }
  pcVar4 = (char *)xmalloc(n);
  cVar1 = *gecos_name;
  pcVar3 = pcVar4;
  if (cVar1 == '\0') {
    *pcVar4 = '\0';
    return pcVar4;
  }
  do {
    if (cVar1 == '&') {
      ppuVar5 = __ctype_b_loc();
      uVar7 = (uint)(byte)*user_name;
      pbVar8 = (byte *)user_name;
      uVar10 = uVar7;
      pcVar11 = pcVar3;
      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {
        pp_Var6 = __ctype_toupper_loc();
        pcVar11 = pcVar3 + 1;
        pbVar8 = (byte *)(user_name + 1);
        uVar10 = (uint)(byte)user_name[1];
        *pcVar3 = (char)(*pp_Var6)[uVar7];
      }
      if ((char)uVar10 == '\0') goto LAB_00011bc5;
      do {
        pbVar8 = pbVar8 + 1;
        pcVar3 = pcVar11 + 1;
        *pcVar11 = (char)uVar10;
        uVar10 = (uint)*pbVar8;
        pcVar11 = pcVar3;
      } while (*pbVar8 != 0);
      cVar1 = gecos_name[1];
    }
    else {
      *pcVar3 = cVar1;
      pcVar11 = pcVar3 + 1;
LAB_00011bc5:
      cVar1 = gecos_name[1];
      pcVar3 = pcVar11;
    }
    gecos_name = gecos_name + 1;
    if (cVar1 == '\0') {
      *pcVar3 = '\0';
      return pcVar4;
    }
  } while( true );
}



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

char * __regparm3 FUN_00011b10(char *param_1,byte *param_2)

{
  char cVar1;
  size_t sVar2;
  char *pcVar3;
  char *pcVar4;
  ushort **ppuVar5;
  __int32_t **pp_Var6;
  uint uVar7;
  byte *pbVar8;
  uint uVar9;
  int iVar10;
  uint uVar11;
  char *pcVar12;
  
  sVar2 = strlen(param_1);
  iVar10 = sVar2 + 1;
  uVar11 = 0;
  pcVar3 = param_1;
  do {
    while( true ) {
      cVar1 = *pcVar3;
      pcVar3 = pcVar3 + 1;
      if (cVar1 != '&') break;
      uVar11 = uVar11 + 1;
    }
  } while (cVar1 != '\0');
  if (uVar11 != 0) {
    uVar9 = iVar10 - uVar11;
    sVar2 = strlen((char *)param_2);
    uVar7 = sVar2 * uVar11;
    iVar10 = uVar9 + uVar7;
    if ((CARRY4(uVar9,uVar7)) ||
       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {
                    /* WARNING: Subroutine does not return */
      FUN_00015780();
    }
  }
  pcVar4 = (char *)FUN_00015480(iVar10);
  cVar1 = *param_1;
  pcVar3 = pcVar4;
  if (cVar1 == '\0') {
    *pcVar4 = '\0';
    return pcVar4;
  }
  do {
    if (cVar1 == '&') {
      ppuVar5 = __ctype_b_loc();
      uVar7 = (uint)*param_2;
      pbVar8 = param_2;
      uVar11 = uVar7;
      pcVar12 = pcVar3;
      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {
        pp_Var6 = __ctype_toupper_loc();
        pcVar12 = pcVar3 + 1;
        pbVar8 = param_2 + 1;
        uVar11 = (uint)param_2[1];
        *pcVar3 = (char)(*pp_Var6)[uVar7];
      }
      if ((char)uVar11 == '\0') goto LAB_00011bc5;
      do {
        pbVar8 = pbVar8 + 1;
        pcVar3 = pcVar12 + 1;
        *pcVar12 = (char)uVar11;
        uVar11 = (uint)*pbVar8;
        pcVar12 = pcVar3;
      } while (*pbVar8 != 0);
      cVar1 = param_1[1];
    }
    else {
      *pcVar3 = cVar1;
      pcVar12 = pcVar3 + 1;
LAB_00011bc5:
      cVar1 = param_1[1];
      pcVar3 = pcVar12;
    }
    param_1 = param_1 + 1;
    if (cVar1 == '\0') {
      *pcVar3 = '\0';
      return pcVar4;
    }
  } while( true );
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
XOR ESI,ESI
PUSH EBX
CALL 0x000119d0
ADD EBX,0xb4e3
SUB ESP,0x28
MOV dword ptr [ESP + 0x14],EDX
PUSH EAX
CALL 0x000112a0
ADD ESP,0x10
LEA EBP,[EAX + 0x1]
MOV EAX,EDI
LEA ESI,[ESI]
NOP
MOVZX EDX,byte ptr [EAX]
ADD EAX,0x1
CMP DL,0x26
JZ 0x00011c40
TEST DL,DL
JNZ 0x00011b40
TEST ESI,ESI
JZ 0x00011b9e
SUB ESP,0xc
SUB EBP,ESI
PUSH dword ptr [ESP + 0x14]
CALL 0x000112a0
ADD ESP,0x10
XOR EDX,EDX
MOV ECX,EAX
IMUL ECX,ESI
ADD EBP,ECX
SETC DL
MOV dword ptr [ESP + 0xc],EDX
MUL ESI
MOV EDX,0x1
SETO AL
TEST ECX,ECX
MOVZX EAX,AL
CMOVS EAX,EDX
MOV EDX,dword ptr [ESP + 0xc]
TEST EDX,EDX
JNZ 0x00011c5b
TEST EAX,EAX
JNZ 0x00011c5b
SUB ESP,0xc
PUSH EBP
CALL 0x00015480
MOV dword ptr [ESP + 0x1c],EAX
MOV ESI,EAX
MOVZX EAX,byte ptr [EDI]
ADD ESP,0x10
TEST AL,AL
JNZ 0x00011bcf
JMP 0x00011c48
MOV byte ptr [ESI],AL
ADD ESI,0x1
ADD EDI,0x1
MOVZX EAX,byte ptr [EDI]
TEST AL,AL
JZ 0x00011c2a
CMP AL,0x26
JNZ 0x00011bc0
CALL 0x00011430
MOV ECX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX]
MOVZX EBP,byte ptr [ECX]
MOV EDX,EBP
TEST byte ptr [EAX + EBP*0x2 + 0x1],0x2
JZ 0x00011c05
CALL 0x00011040
MOV EDX,dword ptr [ESP + 0x8]
ADD ESI,0x1
MOV EAX,dword ptr [EAX]
LEA ECX,[EDX + 0x1]
MOVZX EDX,byte ptr [EDX + 0x1]
MOV EAX,dword ptr [EAX + EBP*0x4]
MOV byte ptr [ESI + -0x1],AL
TEST DL,DL
JZ 0x00011bc5
LEA ESI,[ESI]
ADD ECX,0x1
ADD ESI,0x1
MOV byte ptr [ESI + -0x1],DL
MOVZX EDX,byte ptr [ECX]
TEST DL,DL
JNZ 0x00011c10
ADD EDI,0x1
MOVZX EAX,byte ptr [EDI]
TEST AL,AL
JNZ 0x00011bcf
MOV byte ptr [ESI],0x0
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESI,0x1
JMP 0x00011b40
MOV ESI,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [ESP + 0xc]
MOV byte ptr [ESI],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00015780
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 FUN_00011b10(char *param_1,byte *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ushort **ppuVar5;\n  __int32_t **pp_Var6;\n  uint uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint uVar11;\n  char *pcVar12;\n  \n  sVar2 = strlen(param_1);\n  iVar10 = sVar2 + 1;\n  uVar11 = 0;\n  pcVar3 = param_1;\n  do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  } while (cVar1 != '\0');\n  if (uVar11 != 0) {\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00015780();\n    }\n  }\n  pcVar4 = (char *)FUN_00015480(iVar10);\n  cVar1 = *param_1;\n  pcVar3 = pcVar4;\n  if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }\n  do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );\n}\n\n" comment (function_definition "char * __regparm3 FUN_00011b10(char *param_1,byte *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ushort **ppuVar5;\n  __int32_t **pp_Var6;\n  uint uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint uVar11;\n  char *pcVar12;\n  \n  sVar2 = strlen(param_1);\n  iVar10 = sVar2 + 1;\n  uVar11 = 0;\n  pcVar3 = param_1;\n  do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  } while (cVar1 != '\0');\n  if (uVar11 != 0) {\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00015780();\n    }\n  }\n  pcVar4 = (char *)FUN_00015480(iVar10);\n  cVar1 = *param_1;\n  pcVar3 = pcVar4;\n  if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }\n  do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00011b10(char *param_1,byte *param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00011b10(char *param_1,byte *param_2)" identifier (parameter_list "(char *param_1,byte *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ushort **ppuVar5;\n  __int32_t **pp_Var6;\n  uint uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint uVar11;\n  char *pcVar12;\n  \n  sVar2 = strlen(param_1);\n  iVar10 = sVar2 + 1;\n  uVar11 = 0;\n  pcVar3 = param_1;\n  do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  } while (cVar1 != '\0');\n  if (uVar11 != 0) {\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00015780();\n    }\n  }\n  pcVar4 = (char *)FUN_00015480(iVar10);\n  cVar1 = *param_1;\n  pcVar3 = pcVar4;\n  if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }\n  do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "ushort **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "__int32_t **pp_Var6;" type_identifier (pointer_declarator "**pp_Var6" * (pointer_declarator "*pp_Var6" * identifier)) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "char *pcVar12;" primitive_type (pointer_declarator "*pcVar12" * identifier) ;) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar10 = sVar2 + 1;" (assignment_expression "iVar10 = sVar2 + 1" identifier = (binary_expression "sVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (do_statement "do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  } while (cVar1 != '\0');" do (compound_statement "{\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  }" { (while_statement "while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }" { (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 != '&') break;" if (parenthesized_expression "(cVar1 != '&')" ( (binary_expression "cVar1 != '&'" identifier != (char_literal "'&'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "uVar11 = uVar11 + 1;" (assignment_expression "uVar11 = uVar11 + 1" identifier = (binary_expression "uVar11 + 1" identifier + number_literal)) ;) })) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if (uVar11 != 0) {\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00015780();\n    }\n  }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00015780();\n    }\n  }" { (expression_statement "uVar9 = iVar10 - uVar11;" (assignment_expression "uVar9 = iVar10 - uVar11" identifier = (binary_expression "iVar10 - uVar11" identifier - identifier)) ;) (expression_statement "sVar2 = strlen((char *)param_2);" (assignment_expression "sVar2 = strlen((char *)param_2)" identifier = (call_expression "strlen((char *)param_2)" identifier (argument_list "((char *)param_2)" ( (cast_expression "(char *)param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "uVar7 = sVar2 * uVar11;" (assignment_expression "uVar7 = sVar2 * uVar11" identifier = (binary_expression "sVar2 * uVar11" identifier * identifier)) ;) (expression_statement "iVar10 = uVar9 + uVar7;" (assignment_expression "iVar10 = uVar9 + uVar7" identifier = (binary_expression "uVar9 + uVar7" identifier + identifier)) ;) (if_statement "if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00015780();\n    }" if (parenthesized_expression "((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0))" ( (binary_expression "(CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)" (parenthesized_expression "(CARRY4(uVar9,uVar7))" ( (call_expression "CARRY4(uVar9,uVar7)" identifier (argument_list "(uVar9,uVar7)" ( identifier , identifier ))) )) || (parenthesized_expression "((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)" ( (binary_expression "(int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0" (binary_expression "(int)uVar7 < 0" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) || (binary_expression "(int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0" (cast_expression "(int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20)" ( (binary_expression "(ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20" (binary_expression "(ulonglong)sVar2 * (ulonglong)uVar11" (cast_expression "(ulonglong)sVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar11" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) != number_literal)) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_00015780();\n    }" { comment (expression_statement "FUN_00015780();" (call_expression "FUN_00015780()" identifier (argument_list "()" ( ))) ;) })) })) (expression_statement "pcVar4 = (char *)FUN_00015480(iVar10);" (assignment_expression "pcVar4 = (char *)FUN_00015480(iVar10)" identifier = (cast_expression "(char *)FUN_00015480(iVar10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00015480(iVar10)" identifier (argument_list "(iVar10)" ( identifier ))))) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar3 = pcVar4;" (assignment_expression "pcVar3 = pcVar4" identifier = identifier) ;) (if_statement "if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *pcVar4 = '\0';\n    return pcVar4;\n  }" { (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar4;" return identifier ;) })) (do_statement "do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );" do (compound_statement "{\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  }" { (if_statement "if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }" if (parenthesized_expression "(cVar1 == '&')" ( (binary_expression "cVar1 == '&'" identifier == (char_literal "'&'" ' character ')) )) (compound_statement "{\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }" { (expression_statement "ppuVar5 = __ctype_b_loc();" (assignment_expression "ppuVar5 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = (uint)*param_2;" (assignment_expression "uVar7 = (uint)*param_2" identifier = (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar8 = param_2;" (assignment_expression "pbVar8 = param_2" identifier = identifier) ;) (expression_statement "uVar11 = uVar7;" (assignment_expression "uVar11 = uVar7" identifier = identifier) ;) (expression_statement "pcVar12 = pcVar3;" (assignment_expression "pcVar12 = pcVar3" identifier = identifier) ;) (if_statement "if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }" if (parenthesized_expression "((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0)" ( (binary_expression "(*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2)" ( (binary_expression "*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2" (pointer_expression "*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar5 + uVar7 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar5 + uVar7 * 2 + 1)" ( (binary_expression "(int)*ppuVar5 + uVar7 * 2 + 1" (binary_expression "(int)*ppuVar5 + uVar7 * 2" (cast_expression "(int)*ppuVar5" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar5" * identifier)) + (binary_expression "uVar7 * 2" identifier * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }" { (expression_statement "pp_Var6 = __ctype_toupper_loc();" (assignment_expression "pp_Var6 = __ctype_toupper_loc()" identifier = (call_expression "__ctype_toupper_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar12 = pcVar3 + 1;" (assignment_expression "pcVar12 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = param_2 + 1;" (assignment_expression "pbVar8 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "uVar11 = (uint)param_2[1];" (assignment_expression "uVar11 = (uint)param_2[1]" identifier = (cast_expression "(uint)param_2[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "*pcVar3 = (char)(*pp_Var6)[uVar7];" (assignment_expression "*pcVar3 = (char)(*pp_Var6)[uVar7]" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)(*pp_Var6)[uVar7]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "(*pp_Var6)[uVar7]" (parenthesized_expression "(*pp_Var6)" ( (pointer_expression "*pp_Var6" * identifier) )) [ identifier ]))) ;) })) (if_statement "if ((char)uVar11 == '\0') goto LAB_00011bc5;" if (parenthesized_expression "((char)uVar11 == '\0')" ( (binary_expression "(char)uVar11 == '\0'" (cast_expression "(char)uVar11" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00011bc5;" goto statement_identifier ;)) (do_statement "do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);" do (compound_statement "{\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      }" { (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar12 + 1;" (assignment_expression "pcVar3 = pcVar12 + 1" identifier = (binary_expression "pcVar12 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar12 = (char)uVar11;" (assignment_expression "*pcVar12 = (char)uVar11" (pointer_expression "*pcVar12" * identifier) = (cast_expression "(char)uVar11" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar11 = (uint)*pbVar8;" (assignment_expression "uVar11 = (uint)*pbVar8" identifier = (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pcVar12 = pcVar3;" (assignment_expression "pcVar12 = pcVar3" identifier = identifier) ;) }) while (parenthesized_expression "(*pbVar8 != 0)" ( (binary_expression "*pbVar8 != 0" (pointer_expression "*pbVar8" * identifier) != number_literal) )) ;) (expression_statement "cVar1 = param_1[1];" (assignment_expression "cVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }" else (compound_statement "{\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }" { (expression_statement "*pcVar3 = cVar1;" (assignment_expression "*pcVar3 = cVar1" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "pcVar12 = pcVar3 + 1;" (assignment_expression "pcVar12 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (labeled_statement "LAB_00011bc5:\n      cVar1 = param_1[1];" statement_identifier : (expression_statement "cVar1 = param_1[1];" (assignment_expression "cVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) (expression_statement "pcVar3 = pcVar12;" (assignment_expression "pcVar3 = pcVar12" identifier = identifier) ;) }))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *pcVar3 = '\0';\n      return pcVar4;\n    }" { (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar4;" return 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 create_fullname(char *gecos_name,char *user_name)\n\n{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ushort **ppuVar5;\n  __int32_t **pp_Var6;\n  uint uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  size_t n;\n  uint uVar10;\n  char *pcVar11;\n  \n  sVar2 = strlen(gecos_name);\n  n = sVar2 + 1;\n  uVar10 = 0;\n  pcVar3 = gecos_name;\n  do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar10 = uVar10 + 1;\n    }\n  } while (cVar1 != '\0');\n  if (uVar10 != 0) {\n    uVar9 = n - uVar10;\n    sVar2 = strlen(user_name);\n    uVar7 = sVar2 * uVar10;\n    n = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n  }\n  pcVar4 = (char *)xmalloc(n);\n  cVar1 = *gecos_name;\n  pcVar3 = pcVar4;\n  if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }\n  do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)(byte)*user_name;\n      pbVar8 = (byte *)user_name;\n      uVar10 = uVar7;\n      pcVar11 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar11 = pcVar3 + 1;\n        pbVar8 = (byte *)(user_name + 1);\n        uVar10 = (uint)(byte)user_name[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar10 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar11 + 1;\n        *pcVar11 = (char)uVar10;\n        uVar10 = (uint)*pbVar8;\n        pcVar11 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = gecos_name[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar11 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = gecos_name[1];\n      pcVar3 = pcVar11;\n    }\n    gecos_name = gecos_name + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );\n}\n\n" comment (function_definition "char * __regparm3 create_fullname(char *gecos_name,char *user_name)\n\n{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ushort **ppuVar5;\n  __int32_t **pp_Var6;\n  uint uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  size_t n;\n  uint uVar10;\n  char *pcVar11;\n  \n  sVar2 = strlen(gecos_name);\n  n = sVar2 + 1;\n  uVar10 = 0;\n  pcVar3 = gecos_name;\n  do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar10 = uVar10 + 1;\n    }\n  } while (cVar1 != '\0');\n  if (uVar10 != 0) {\n    uVar9 = n - uVar10;\n    sVar2 = strlen(user_name);\n    uVar7 = sVar2 * uVar10;\n    n = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n  }\n  pcVar4 = (char *)xmalloc(n);\n  cVar1 = *gecos_name;\n  pcVar3 = pcVar4;\n  if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }\n  do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)(byte)*user_name;\n      pbVar8 = (byte *)user_name;\n      uVar10 = uVar7;\n      pcVar11 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar11 = pcVar3 + 1;\n        pbVar8 = (byte *)(user_name + 1);\n        uVar10 = (uint)(byte)user_name[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar10 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar11 + 1;\n        *pcVar11 = (char)uVar10;\n        uVar10 = (uint)*pbVar8;\n        pcVar11 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = gecos_name[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar11 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = gecos_name[1];\n      pcVar3 = pcVar11;\n    }\n    gecos_name = gecos_name + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );\n}" primitive_type (pointer_declarator "* __regparm3 create_fullname(char *gecos_name,char *user_name)" * (ERROR "__regparm3" identifier) (function_declarator "create_fullname(char *gecos_name,char *user_name)" identifier (parameter_list "(char *gecos_name,char *user_name)" ( (parameter_declaration "char *gecos_name" primitive_type (pointer_declarator "*gecos_name" * identifier)) , (parameter_declaration "char *user_name" primitive_type (pointer_declarator "*user_name" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ushort **ppuVar5;\n  __int32_t **pp_Var6;\n  uint uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  size_t n;\n  uint uVar10;\n  char *pcVar11;\n  \n  sVar2 = strlen(gecos_name);\n  n = sVar2 + 1;\n  uVar10 = 0;\n  pcVar3 = gecos_name;\n  do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar10 = uVar10 + 1;\n    }\n  } while (cVar1 != '\0');\n  if (uVar10 != 0) {\n    uVar9 = n - uVar10;\n    sVar2 = strlen(user_name);\n    uVar7 = sVar2 * uVar10;\n    n = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n  }\n  pcVar4 = (char *)xmalloc(n);\n  cVar1 = *gecos_name;\n  pcVar3 = pcVar4;\n  if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }\n  do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)(byte)*user_name;\n      pbVar8 = (byte *)user_name;\n      uVar10 = uVar7;\n      pcVar11 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar11 = pcVar3 + 1;\n        pbVar8 = (byte *)(user_name + 1);\n        uVar10 = (uint)(byte)user_name[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar10 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar11 + 1;\n        *pcVar11 = (char)uVar10;\n        uVar10 = (uint)*pbVar8;\n        pcVar11 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = gecos_name[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar11 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = gecos_name[1];\n      pcVar3 = pcVar11;\n    }\n    gecos_name = gecos_name + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "ushort **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "__int32_t **pp_Var6;" type_identifier (pointer_declarator "**pp_Var6" * (pointer_declarator "*pp_Var6" * identifier)) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "size_t n;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (expression_statement "sVar2 = strlen(gecos_name);" (assignment_expression "sVar2 = strlen(gecos_name)" identifier = (call_expression "strlen(gecos_name)" identifier (argument_list "(gecos_name)" ( identifier )))) ;) (expression_statement "n = sVar2 + 1;" (assignment_expression "n = sVar2 + 1" identifier = (binary_expression "sVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "pcVar3 = gecos_name;" (assignment_expression "pcVar3 = gecos_name" identifier = identifier) ;) (do_statement "do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar10 = uVar10 + 1;\n    }\n  } while (cVar1 != '\0');" do (compound_statement "{\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar10 = uVar10 + 1;\n    }\n  }" { (while_statement "while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar10 = uVar10 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar10 = uVar10 + 1;\n    }" { (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 != '&') break;" if (parenthesized_expression "(cVar1 != '&')" ( (binary_expression "cVar1 != '&'" identifier != (char_literal "'&'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "uVar10 = uVar10 + 1;" (assignment_expression "uVar10 = uVar10 + 1" identifier = (binary_expression "uVar10 + 1" identifier + number_literal)) ;) })) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if (uVar10 != 0) {\n    uVar9 = n - uVar10;\n    sVar2 = strlen(user_name);\n    uVar7 = sVar2 * uVar10;\n    n = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n  }" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar9 = n - uVar10;\n    sVar2 = strlen(user_name);\n    uVar7 = sVar2 * uVar10;\n    n = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }\n  }" { (expression_statement "uVar9 = n - uVar10;" (assignment_expression "uVar9 = n - uVar10" identifier = (binary_expression "n - uVar10" identifier - identifier)) ;) (expression_statement "sVar2 = strlen(user_name);" (assignment_expression "sVar2 = strlen(user_name)" identifier = (call_expression "strlen(user_name)" identifier (argument_list "(user_name)" ( identifier )))) ;) (expression_statement "uVar7 = sVar2 * uVar10;" (assignment_expression "uVar7 = sVar2 * uVar10" identifier = (binary_expression "sVar2 * uVar10" identifier * identifier)) ;) (expression_statement "n = uVar9 + uVar7;" (assignment_expression "n = uVar9 + uVar7" identifier = (binary_expression "uVar9 + uVar7" identifier + identifier)) ;) (if_statement "if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }" if (parenthesized_expression "((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20) != 0))" ( (binary_expression "(CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20) != 0)" (parenthesized_expression "(CARRY4(uVar9,uVar7))" ( (call_expression "CARRY4(uVar9,uVar7)" identifier (argument_list "(uVar9,uVar7)" ( identifier , identifier ))) )) || (parenthesized_expression "((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20) != 0)" ( (binary_expression "(int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20) != 0" (binary_expression "(int)uVar7 < 0" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) || (binary_expression "(int)((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20) != 0" (cast_expression "(int)((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)sVar2 * (ulonglong)uVar10 >> 0x20" (binary_expression "(ulonglong)sVar2 * (ulonglong)uVar10" (cast_expression "(ulonglong)sVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) != number_literal)) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      xalloc_die();\n    }" { comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })) })) (expression_statement "pcVar4 = (char *)xmalloc(n);" (assignment_expression "pcVar4 = (char *)xmalloc(n)" identifier = (cast_expression "(char *)xmalloc(n)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(n)" identifier (argument_list "(n)" ( identifier ))))) ;) (expression_statement "cVar1 = *gecos_name;" (assignment_expression "cVar1 = *gecos_name" identifier = (pointer_expression "*gecos_name" * identifier)) ;) (expression_statement "pcVar3 = pcVar4;" (assignment_expression "pcVar3 = pcVar4" identifier = identifier) ;) (if_statement "if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *pcVar4 = '\0';\n    return pcVar4;\n  }" { (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar4;" return identifier ;) })) (do_statement "do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)(byte)*user_name;\n      pbVar8 = (byte *)user_name;\n      uVar10 = uVar7;\n      pcVar11 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar11 = pcVar3 + 1;\n        pbVar8 = (byte *)(user_name + 1);\n        uVar10 = (uint)(byte)user_name[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar10 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar11 + 1;\n        *pcVar11 = (char)uVar10;\n        uVar10 = (uint)*pbVar8;\n        pcVar11 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = gecos_name[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar11 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = gecos_name[1];\n      pcVar3 = pcVar11;\n    }\n    gecos_name = gecos_name + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );" do (compound_statement "{\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)(byte)*user_name;\n      pbVar8 = (byte *)user_name;\n      uVar10 = uVar7;\n      pcVar11 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar11 = pcVar3 + 1;\n        pbVar8 = (byte *)(user_name + 1);\n        uVar10 = (uint)(byte)user_name[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar10 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar11 + 1;\n        *pcVar11 = (char)uVar10;\n        uVar10 = (uint)*pbVar8;\n        pcVar11 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = gecos_name[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar11 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = gecos_name[1];\n      pcVar3 = pcVar11;\n    }\n    gecos_name = gecos_name + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  }" { (if_statement "if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)(byte)*user_name;\n      pbVar8 = (byte *)user_name;\n      uVar10 = uVar7;\n      pcVar11 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar11 = pcVar3 + 1;\n        pbVar8 = (byte *)(user_name + 1);\n        uVar10 = (uint)(byte)user_name[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar10 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar11 + 1;\n        *pcVar11 = (char)uVar10;\n        uVar10 = (uint)*pbVar8;\n        pcVar11 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = gecos_name[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar11 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = gecos_name[1];\n      pcVar3 = pcVar11;\n    }" if (parenthesized_expression "(cVar1 == '&')" ( (binary_expression "cVar1 == '&'" identifier == (char_literal "'&'" ' character ')) )) (compound_statement "{\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)(byte)*user_name;\n      pbVar8 = (byte *)user_name;\n      uVar10 = uVar7;\n      pcVar11 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar11 = pcVar3 + 1;\n        pbVar8 = (byte *)(user_name + 1);\n        uVar10 = (uint)(byte)user_name[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar10 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar11 + 1;\n        *pcVar11 = (char)uVar10;\n        uVar10 = (uint)*pbVar8;\n        pcVar11 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = gecos_name[1];\n    }" { (expression_statement "ppuVar5 = __ctype_b_loc();" (assignment_expression "ppuVar5 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = (uint)(byte)*user_name;" (assignment_expression "uVar7 = (uint)(byte)*user_name" identifier = (binary_expression "(uint)(byte)*user_name" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier)) ;) (expression_statement "pbVar8 = (byte *)user_name;" (assignment_expression "pbVar8 = (byte *)user_name" identifier = (cast_expression "(byte *)user_name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "uVar10 = uVar7;" (assignment_expression "uVar10 = uVar7" identifier = identifier) ;) (expression_statement "pcVar11 = pcVar3;" (assignment_expression "pcVar11 = pcVar3" identifier = identifier) ;) (if_statement "if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar11 = pcVar3 + 1;\n        pbVar8 = (byte *)(user_name + 1);\n        uVar10 = (uint)(byte)user_name[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }" if (parenthesized_expression "((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0)" ( (binary_expression "(*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2)" ( (binary_expression "*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2" (pointer_expression "*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar5 + uVar7 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar5 + uVar7 * 2 + 1)" ( (binary_expression "(int)*ppuVar5 + uVar7 * 2 + 1" (binary_expression "(int)*ppuVar5 + uVar7 * 2" (cast_expression "(int)*ppuVar5" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar5" * identifier)) + (binary_expression "uVar7 * 2" identifier * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar11 = pcVar3 + 1;\n        pbVar8 = (byte *)(user_name + 1);\n        uVar10 = (uint)(byte)user_name[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }" { (expression_statement "pp_Var6 = __ctype_toupper_loc();" (assignment_expression "pp_Var6 = __ctype_toupper_loc()" identifier = (call_expression "__ctype_toupper_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar11 = pcVar3 + 1;" (assignment_expression "pcVar11 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = (byte *)(user_name + 1);" (assignment_expression "pbVar8 = (byte *)(user_name + 1)" identifier = (cast_expression "(byte *)(user_name + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(user_name + 1)" ( (binary_expression "user_name + 1" identifier + number_literal) )))) ;) (expression_statement "uVar10 = (uint)(byte)user_name[1];" (assignment_expression "uVar10 = (uint)(byte)user_name[1]" identifier = (cast_expression "(uint)(byte)user_name[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)user_name[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "user_name[1]" identifier [ number_literal ])))) ;) (expression_statement "*pcVar3 = (char)(*pp_Var6)[uVar7];" (assignment_expression "*pcVar3 = (char)(*pp_Var6)[uVar7]" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)(*pp_Var6)[uVar7]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "(*pp_Var6)[uVar7]" (parenthesized_expression "(*pp_Var6)" ( (pointer_expression "*pp_Var6" * identifier) )) [ identifier ]))) ;) })) (if_statement "if ((char)uVar10 == '\0') goto LAB_00011bc5;" if (parenthesized_expression "((char)uVar10 == '\0')" ( (binary_expression "(char)uVar10 == '\0'" (cast_expression "(char)uVar10" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00011bc5;" goto statement_identifier ;)) (do_statement "do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar11 + 1;\n        *pcVar11 = (char)uVar10;\n        uVar10 = (uint)*pbVar8;\n        pcVar11 = pcVar3;\n      } while (*pbVar8 != 0);" do (compound_statement "{\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar11 + 1;\n        *pcVar11 = (char)uVar10;\n        uVar10 = (uint)*pbVar8;\n        pcVar11 = pcVar3;\n      }" { (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar11 + 1;" (assignment_expression "pcVar3 = pcVar11 + 1" identifier = (binary_expression "pcVar11 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar11 = (char)uVar10;" (assignment_expression "*pcVar11 = (char)uVar10" (pointer_expression "*pcVar11" * identifier) = (cast_expression "(char)uVar10" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar10 = (uint)*pbVar8;" (assignment_expression "uVar10 = (uint)*pbVar8" identifier = (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pcVar11 = pcVar3;" (assignment_expression "pcVar11 = pcVar3" identifier = identifier) ;) }) while (parenthesized_expression "(*pbVar8 != 0)" ( (binary_expression "*pbVar8 != 0" (pointer_expression "*pbVar8" * identifier) != number_literal) )) ;) (expression_statement "cVar1 = gecos_name[1];" (assignment_expression "cVar1 = gecos_name[1]" identifier = (subscript_expression "gecos_name[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *pcVar3 = cVar1;\n      pcVar11 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = gecos_name[1];\n      pcVar3 = pcVar11;\n    }" else (compound_statement "{\n      *pcVar3 = cVar1;\n      pcVar11 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = gecos_name[1];\n      pcVar3 = pcVar11;\n    }" { (expression_statement "*pcVar3 = cVar1;" (assignment_expression "*pcVar3 = cVar1" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "pcVar11 = pcVar3 + 1;" (assignment_expression "pcVar11 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (labeled_statement "LAB_00011bc5:\n      cVar1 = gecos_name[1];" statement_identifier : (expression_statement "cVar1 = gecos_name[1];" (assignment_expression "cVar1 = gecos_name[1]" identifier = (subscript_expression "gecos_name[1]" identifier [ number_literal ])) ;)) (expression_statement "pcVar3 = pcVar11;" (assignment_expression "pcVar3 = pcVar11" identifier = identifier) ;) }))) (expression_statement "gecos_name = gecos_name + 1;" (assignment_expression "gecos_name = gecos_name + 1" identifier = (binary_expression "gecos_name + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *pcVar3 = '\0';\n      return pcVar4;\n    }" { (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar4;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "char * __regparm3 FUN_00011b10(char *param_1,byte *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ushort **ppuVar5;\n  __int32_t **pp_Var6;\n  uint uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint uVar11;\n  char *pcVar12;\n  \n  sVar2 = strlen(param_1);\n  iVar10 = sVar2 + 1;\n  uVar11 = 0;\n  pcVar3 = param_1;\n  do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  } while (cVar1 != '\0');\n  if (uVar11 != 0) {\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    \n      FUN_00015780();\n    }\n  }\n  pcVar4 = (char *)FUN_00015480(iVar10);\n  cVar1 = *param_1;\n  pcVar3 = pcVar4;\n  if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }\n  do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );\n}\n\n" (function_definition "char * __regparm3 FUN_00011b10(char *param_1,byte *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ushort **ppuVar5;\n  __int32_t **pp_Var6;\n  uint uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint uVar11;\n  char *pcVar12;\n  \n  sVar2 = strlen(param_1);\n  iVar10 = sVar2 + 1;\n  uVar11 = 0;\n  pcVar3 = param_1;\n  do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  } while (cVar1 != '\0');\n  if (uVar11 != 0) {\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    \n      FUN_00015780();\n    }\n  }\n  pcVar4 = (char *)FUN_00015480(iVar10);\n  cVar1 = *param_1;\n  pcVar3 = pcVar4;\n  if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }\n  do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00011b10(char *param_1,byte *param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00011b10(char *param_1,byte *param_2)" identifier (parameter_list "(char *param_1,byte *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ushort **ppuVar5;\n  __int32_t **pp_Var6;\n  uint uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint uVar11;\n  char *pcVar12;\n  \n  sVar2 = strlen(param_1);\n  iVar10 = sVar2 + 1;\n  uVar11 = 0;\n  pcVar3 = param_1;\n  do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  } while (cVar1 != '\0');\n  if (uVar11 != 0) {\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    \n      FUN_00015780();\n    }\n  }\n  pcVar4 = (char *)FUN_00015480(iVar10);\n  cVar1 = *param_1;\n  pcVar3 = pcVar4;\n  if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }\n  do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "ushort **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "__int32_t **pp_Var6;" type_identifier (pointer_declarator "**pp_Var6" * (pointer_declarator "*pp_Var6" * identifier)) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "char *pcVar12;" primitive_type (pointer_declarator "*pcVar12" * identifier) ;) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar10 = sVar2 + 1;" (assignment_expression "iVar10 = sVar2 + 1" identifier = (binary_expression "sVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (do_statement "do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  } while (cVar1 != '\0');" do (compound_statement "{\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  }" { (while_statement "while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }" { (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 != '&') break;" if (parenthesized_expression "(cVar1 != '&')" ( (binary_expression "cVar1 != '&'" identifier != (char_literal "'&'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "uVar11 = uVar11 + 1;" (assignment_expression "uVar11 = uVar11 + 1" identifier = (binary_expression "uVar11 + 1" identifier + number_literal)) ;) })) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if (uVar11 != 0) {\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    \n      FUN_00015780();\n    }\n  }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    \n      FUN_00015780();\n    }\n  }" { (expression_statement "uVar9 = iVar10 - uVar11;" (assignment_expression "uVar9 = iVar10 - uVar11" identifier = (binary_expression "iVar10 - uVar11" identifier - identifier)) ;) (expression_statement "sVar2 = strlen((char *)param_2);" (assignment_expression "sVar2 = strlen((char *)param_2)" identifier = (call_expression "strlen((char *)param_2)" identifier (argument_list "((char *)param_2)" ( (cast_expression "(char *)param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "uVar7 = sVar2 * uVar11;" (assignment_expression "uVar7 = sVar2 * uVar11" identifier = (binary_expression "sVar2 * uVar11" identifier * identifier)) ;) (expression_statement "iVar10 = uVar9 + uVar7;" (assignment_expression "iVar10 = uVar9 + uVar7" identifier = (binary_expression "uVar9 + uVar7" identifier + identifier)) ;) (if_statement "if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    \n      FUN_00015780();\n    }" if (parenthesized_expression "((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0))" ( (binary_expression "(CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)" (parenthesized_expression "(CARRY4(uVar9,uVar7))" ( (call_expression "CARRY4(uVar9,uVar7)" identifier (argument_list "(uVar9,uVar7)" ( identifier , identifier ))) )) || (parenthesized_expression "((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)" ( (binary_expression "(int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0" (binary_expression "(int)uVar7 < 0" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) || (binary_expression "(int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0" (cast_expression "(int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20)" ( (binary_expression "(ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20" (binary_expression "(ulonglong)sVar2 * (ulonglong)uVar11" (cast_expression "(ulonglong)sVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar11" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) != number_literal)) ))) )) (compound_statement "{\n                    \n      FUN_00015780();\n    }" { (expression_statement "FUN_00015780();" (call_expression "FUN_00015780()" identifier (argument_list "()" ( ))) ;) })) })) (expression_statement "pcVar4 = (char *)FUN_00015480(iVar10);" (assignment_expression "pcVar4 = (char *)FUN_00015480(iVar10)" identifier = (cast_expression "(char *)FUN_00015480(iVar10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00015480(iVar10)" identifier (argument_list "(iVar10)" ( identifier ))))) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar3 = pcVar4;" (assignment_expression "pcVar3 = pcVar4" identifier = identifier) ;) (if_statement "if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *pcVar4 = '\0';\n    return pcVar4;\n  }" { (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar4;" return identifier ;) })) (do_statement "do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );" do (compound_statement "{\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  }" { (if_statement "if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }" if (parenthesized_expression "(cVar1 == '&')" ( (binary_expression "cVar1 == '&'" identifier == (char_literal "'&'" ' character ')) )) (compound_statement "{\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }" { (expression_statement "ppuVar5 = __ctype_b_loc();" (assignment_expression "ppuVar5 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar7 = (uint)*param_2;" (assignment_expression "uVar7 = (uint)*param_2" identifier = (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar8 = param_2;" (assignment_expression "pbVar8 = param_2" identifier = identifier) ;) (expression_statement "uVar11 = uVar7;" (assignment_expression "uVar11 = uVar7" identifier = identifier) ;) (expression_statement "pcVar12 = pcVar3;" (assignment_expression "pcVar12 = pcVar3" identifier = identifier) ;) (if_statement "if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }" if (parenthesized_expression "((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0)" ( (binary_expression "(*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2)" ( (binary_expression "*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2" (pointer_expression "*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar5 + uVar7 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar5 + uVar7 * 2 + 1)" ( (binary_expression "(int)*ppuVar5 + uVar7 * 2 + 1" (binary_expression "(int)*ppuVar5 + uVar7 * 2" (cast_expression "(int)*ppuVar5" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar5" * identifier)) + (binary_expression "uVar7 * 2" identifier * number_literal)) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }" { (expression_statement "pp_Var6 = __ctype_toupper_loc();" (assignment_expression "pp_Var6 = __ctype_toupper_loc()" identifier = (call_expression "__ctype_toupper_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar12 = pcVar3 + 1;" (assignment_expression "pcVar12 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = param_2 + 1;" (assignment_expression "pbVar8 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "uVar11 = (uint)param_2[1];" (assignment_expression "uVar11 = (uint)param_2[1]" identifier = (cast_expression "(uint)param_2[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "*pcVar3 = (char)(*pp_Var6)[uVar7];" (assignment_expression "*pcVar3 = (char)(*pp_Var6)[uVar7]" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)(*pp_Var6)[uVar7]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "(*pp_Var6)[uVar7]" (parenthesized_expression "(*pp_Var6)" ( (pointer_expression "*pp_Var6" * identifier) )) [ identifier ]))) ;) })) (if_statement "if ((char)uVar11 == '\0') goto LAB_00011bc5;" if (parenthesized_expression "((char)uVar11 == '\0')" ( (binary_expression "(char)uVar11 == '\0'" (cast_expression "(char)uVar11" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00011bc5;" goto statement_identifier ;)) (do_statement "do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);" do (compound_statement "{\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      }" { (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar12 + 1;" (assignment_expression "pcVar3 = pcVar12 + 1" identifier = (binary_expression "pcVar12 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar12 = (char)uVar11;" (assignment_expression "*pcVar12 = (char)uVar11" (pointer_expression "*pcVar12" * identifier) = (cast_expression "(char)uVar11" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar11 = (uint)*pbVar8;" (assignment_expression "uVar11 = (uint)*pbVar8" identifier = (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pcVar12 = pcVar3;" (assignment_expression "pcVar12 = pcVar3" identifier = identifier) ;) }) while (parenthesized_expression "(*pbVar8 != 0)" ( (binary_expression "*pbVar8 != 0" (pointer_expression "*pbVar8" * identifier) != number_literal) )) ;) (expression_statement "cVar1 = param_1[1];" (assignment_expression "cVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }" else (compound_statement "{\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }" { (expression_statement "*pcVar3 = cVar1;" (assignment_expression "*pcVar3 = cVar1" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "pcVar12 = pcVar3 + 1;" (assignment_expression "pcVar12 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (labeled_statement "LAB_00011bc5:\n      cVar1 = param_1[1];" statement_identifier : (expression_statement "cVar1 = param_1[1];" (assignment_expression "cVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) (expression_statement "pcVar3 = pcVar12;" (assignment_expression "pcVar3 = pcVar12" identifier = identifier) ;) }))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *pcVar3 = '\0';\n      return pcVar4;\n    }" { (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar4;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (call_expression IDENT (argument_list ( IDENT , IDENT ))) )) || (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) || (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT) ))) != LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (return_statement return IDENT ;) })) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) + (binary_expression IDENT * LIT)) + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression (parenthesized_expression ( (pointer_expression * IDENT) )) [ IDENT ]))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (return_statement return IDENT ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "char * __regparm3 FUN_00011b10(char *param_1,byte *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ushort **ppuVar5;\n  __int32_t **pp_Var6;\n  uint uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint uVar11;\n  char *pcVar12;\n  \n  sVar2 = strlen(param_1);\n  iVar10 = sVar2 + 1;\n  uVar11 = 0;\n  pcVar3 = param_1;\n  do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  } while (cVar1 != '\0');\n  if (uVar11 != 0) {\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    \n      FUN_00015780();\n    }\n  }\n  pcVar4 = (char *)FUN_00015480(iVar10);\n  cVar1 = *param_1;\n  pcVar3 = pcVar4;\n  if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }\n  do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );\n}" (primitive_type "char") (pointer_declarator "* __regparm3 FUN_00011b10(char *param_1,byte *param_2)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00011b10(char *param_1,byte *param_2)" (identifier "FUN_00011b10") (parameter_list "(char *param_1,byte *param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ushort **ppuVar5;\n  __int32_t **pp_Var6;\n  uint uVar7;\n  byte *pbVar8;\n  uint uVar9;\n  int iVar10;\n  uint uVar11;\n  char *pcVar12;\n  \n  sVar2 = strlen(param_1);\n  iVar10 = sVar2 + 1;\n  uVar11 = 0;\n  pcVar3 = param_1;\n  do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  } while (cVar1 != '\0');\n  if (uVar11 != 0) {\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    \n      FUN_00015780();\n    }\n  }\n  pcVar4 = (char *)FUN_00015480(iVar10);\n  cVar1 = *param_1;\n  pcVar3 = pcVar4;\n  if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }\n  do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "ushort **ppuVar5;" (type_identifier "ushort") (pointer_declarator "**ppuVar5" (* "*") (pointer_declarator "*ppuVar5" (* "*") (identifier "ppuVar5"))) (; ";")) (declaration "__int32_t **pp_Var6;" (type_identifier "__int32_t") (pointer_declarator "**pp_Var6" (* "*") (pointer_declarator "*pp_Var6" (* "*") (identifier "pp_Var6"))) (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "char *pcVar12;" (primitive_type "char") (pointer_declarator "*pcVar12" (* "*") (identifier "pcVar12")) (; ";")) (expression_statement "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" (identifier "sVar2") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar10 = sVar2 + 1;" (assignment_expression "iVar10 = sVar2 + 1" (identifier "iVar10") (= "=") (binary_expression "sVar2 + 1" (identifier "sVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" (identifier "pcVar3") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  } while (cVar1 != '\0');" (do "do") (compound_statement "{\n    while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      cVar1 = *pcVar3;\n      pcVar3 = pcVar3 + 1;\n      if (cVar1 != '&') break;\n      uVar11 = uVar11 + 1;\n    }" ({ "{") (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" (identifier "cVar1") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (cVar1 != '&') break;" (if "if") (parenthesized_expression "(cVar1 != '&')" (( "(") (binary_expression "cVar1 != '&'" (identifier "cVar1") (!= "!=") (char_literal "'&'" (' "'") (character "&") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar11 = uVar11 + 1;" (assignment_expression "uVar11 = uVar11 + 1" (identifier "uVar11") (= "=") (binary_expression "uVar11 + 1" (identifier "uVar11") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (if_statement "if (uVar11 != 0) {\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    \n      FUN_00015780();\n    }\n  }" (if "if") (parenthesized_expression "(uVar11 != 0)" (( "(") (binary_expression "uVar11 != 0" (identifier "uVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar9 = iVar10 - uVar11;\n    sVar2 = strlen((char *)param_2);\n    uVar7 = sVar2 * uVar11;\n    iVar10 = uVar9 + uVar7;\n    if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    \n      FUN_00015780();\n    }\n  }" ({ "{") (expression_statement "uVar9 = iVar10 - uVar11;" (assignment_expression "uVar9 = iVar10 - uVar11" (identifier "uVar9") (= "=") (binary_expression "iVar10 - uVar11" (identifier "iVar10") (- "-") (identifier "uVar11"))) (; ";")) (expression_statement "sVar2 = strlen((char *)param_2);" (assignment_expression "sVar2 = strlen((char *)param_2)" (identifier "sVar2") (= "=") (call_expression "strlen((char *)param_2)" (identifier "strlen") (argument_list "((char *)param_2)" (( "(") (cast_expression "(char *)param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2")) () ")")))) (; ";")) (expression_statement "uVar7 = sVar2 * uVar11;" (assignment_expression "uVar7 = sVar2 * uVar11" (identifier "uVar7") (= "=") (binary_expression "sVar2 * uVar11" (identifier "sVar2") (* "*") (identifier "uVar11"))) (; ";")) (expression_statement "iVar10 = uVar9 + uVar7;" (assignment_expression "iVar10 = uVar9 + uVar7" (identifier "iVar10") (= "=") (binary_expression "uVar9 + uVar7" (identifier "uVar9") (+ "+") (identifier "uVar7"))) (; ";")) (if_statement "if ((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {\n                    \n      FUN_00015780();\n    }" (if "if") (parenthesized_expression "((CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0))" (( "(") (binary_expression "(CARRY4(uVar9,uVar7)) ||\n       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)" (parenthesized_expression "(CARRY4(uVar9,uVar7))" (( "(") (call_expression "CARRY4(uVar9,uVar7)" (identifier "CARRY4") (argument_list "(uVar9,uVar7)" (( "(") (identifier "uVar9") (, ",") (identifier "uVar7") () ")"))) () ")")) (|| "||") (parenthesized_expression "((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)" (( "(") (binary_expression "(int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0" (binary_expression "(int)uVar7 < 0" (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7")) (< "<") (number_literal "0")) (|| "||") (binary_expression "(int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0" (cast_expression "(int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20)" (( "(") (binary_expression "(ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20" (binary_expression "(ulonglong)sVar2 * (ulonglong)uVar11" (cast_expression "(ulonglong)sVar2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "sVar2")) (* "*") (cast_expression "(ulonglong)uVar11" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar11"))) (>> ">>") (number_literal "0x20")) () ")"))) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n                    \n      FUN_00015780();\n    }" ({ "{") (expression_statement "FUN_00015780();" (call_expression "FUN_00015780()" (identifier "FUN_00015780") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "pcVar4 = (char *)FUN_00015480(iVar10);" (assignment_expression "pcVar4 = (char *)FUN_00015480(iVar10)" (identifier "pcVar4") (= "=") (cast_expression "(char *)FUN_00015480(iVar10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00015480(iVar10)" (identifier "FUN_00015480") (argument_list "(iVar10)" (( "(") (identifier "iVar10") () ")"))))) (; ";")) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar3 = pcVar4;" (assignment_expression "pcVar3 = pcVar4" (identifier "pcVar3") (= "=") (identifier "pcVar4")) (; ";")) (if_statement "if (cVar1 == '\0') {\n    *pcVar4 = '\0';\n    return pcVar4;\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *pcVar4 = '\0';\n    return pcVar4;\n  }" ({ "{") (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return pcVar4;" (return "return") (identifier "pcVar4") (; ";")) (} "}"))) (do_statement "do {\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }\n  }" ({ "{") (if_statement "if (cVar1 == '&') {\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }\n    else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }" (if "if") (parenthesized_expression "(cVar1 == '&')" (( "(") (binary_expression "cVar1 == '&'" (identifier "cVar1") (== "==") (char_literal "'&'" (' "'") (character "&") (' "'"))) () ")")) (compound_statement "{\n      ppuVar5 = __ctype_b_loc();\n      uVar7 = (uint)*param_2;\n      pbVar8 = param_2;\n      uVar11 = uVar7;\n      pcVar12 = pcVar3;\n      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }\n      if ((char)uVar11 == '\0') goto LAB_00011bc5;\n      do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);\n      cVar1 = param_1[1];\n    }" ({ "{") (expression_statement "ppuVar5 = __ctype_b_loc();" (assignment_expression "ppuVar5 = __ctype_b_loc()" (identifier "ppuVar5") (= "=") (call_expression "__ctype_b_loc()" (identifier "__ctype_b_loc") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar7 = (uint)*param_2;" (assignment_expression "uVar7 = (uint)*param_2" (identifier "uVar7") (= "=") (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_2"))) (; ";")) (expression_statement "pbVar8 = param_2;" (assignment_expression "pbVar8 = param_2" (identifier "pbVar8") (= "=") (identifier "param_2")) (; ";")) (expression_statement "uVar11 = uVar7;" (assignment_expression "uVar11 = uVar7" (identifier "uVar11") (= "=") (identifier "uVar7")) (; ";")) (expression_statement "pcVar12 = pcVar3;" (assignment_expression "pcVar12 = pcVar3" (identifier "pcVar12") (= "=") (identifier "pcVar3")) (; ";")) (if_statement "if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }" (if "if") (parenthesized_expression "((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0)" (( "(") (binary_expression "(*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2)" (( "(") (binary_expression "*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2" (pointer_expression "*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1)" (* "*") (cast_expression "(byte *)((int)*ppuVar5 + uVar7 * 2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)*ppuVar5 + uVar7 * 2 + 1)" (( "(") (binary_expression "(int)*ppuVar5 + uVar7 * 2 + 1" (binary_expression "(int)*ppuVar5 + uVar7 * 2" (cast_expression "(int)*ppuVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*ppuVar5" (* "*") (identifier "ppuVar5"))) (+ "+") (binary_expression "uVar7 * 2" (identifier "uVar7") (* "*") (number_literal "2"))) (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pp_Var6 = __ctype_toupper_loc();\n        pcVar12 = pcVar3 + 1;\n        pbVar8 = param_2 + 1;\n        uVar11 = (uint)param_2[1];\n        *pcVar3 = (char)(*pp_Var6)[uVar7];\n      }" ({ "{") (expression_statement "pp_Var6 = __ctype_toupper_loc();" (assignment_expression "pp_Var6 = __ctype_toupper_loc()" (identifier "pp_Var6") (= "=") (call_expression "__ctype_toupper_loc()" (identifier "__ctype_toupper_loc") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar12 = pcVar3 + 1;" (assignment_expression "pcVar12 = pcVar3 + 1" (identifier "pcVar12") (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar8 = param_2 + 1;" (assignment_expression "pbVar8 = param_2 + 1" (identifier "pbVar8") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar11 = (uint)param_2[1];" (assignment_expression "uVar11 = (uint)param_2[1]" (identifier "uVar11") (= "=") (cast_expression "(uint)param_2[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "*pcVar3 = (char)(*pp_Var6)[uVar7];" (assignment_expression "*pcVar3 = (char)(*pp_Var6)[uVar7]" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (cast_expression "(char)(*pp_Var6)[uVar7]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "(*pp_Var6)[uVar7]" (parenthesized_expression "(*pp_Var6)" (( "(") (pointer_expression "*pp_Var6" (* "*") (identifier "pp_Var6")) () ")")) ([ "[") (identifier "uVar7") (] "]")))) (; ";")) (} "}"))) (if_statement "if ((char)uVar11 == '\0') goto LAB_00011bc5;" (if "if") (parenthesized_expression "((char)uVar11 == '\0')" (( "(") (binary_expression "(char)uVar11 == '\0'" (cast_expression "(char)uVar11" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar11")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00011bc5;" (goto "goto") (statement_identifier "LAB_00011bc5") (; ";"))) (do_statement "do {\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      } while (*pbVar8 != 0);" (do "do") (compound_statement "{\n        pbVar8 = pbVar8 + 1;\n        pcVar3 = pcVar12 + 1;\n        *pcVar12 = (char)uVar11;\n        uVar11 = (uint)*pbVar8;\n        pcVar12 = pcVar3;\n      }" ({ "{") (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + 1" (identifier "pbVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar3 = pcVar12 + 1;" (assignment_expression "pcVar3 = pcVar12 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar12 + 1" (identifier "pcVar12") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar12 = (char)uVar11;" (assignment_expression "*pcVar12 = (char)uVar11" (pointer_expression "*pcVar12" (* "*") (identifier "pcVar12")) (= "=") (cast_expression "(char)uVar11" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar11"))) (; ";")) (expression_statement "uVar11 = (uint)*pbVar8;" (assignment_expression "uVar11 = (uint)*pbVar8" (identifier "uVar11") (= "=") (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar8"))) (; ";")) (expression_statement "pcVar12 = pcVar3;" (assignment_expression "pcVar12 = pcVar3" (identifier "pcVar12") (= "=") (identifier "pcVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*pbVar8 != 0)" (( "(") (binary_expression "*pbVar8 != 0" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "cVar1 = param_1[1];" (assignment_expression "cVar1 = param_1[1]" (identifier "cVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }" (else "else") (compound_statement "{\n      *pcVar3 = cVar1;\n      pcVar12 = pcVar3 + 1;\nLAB_00011bc5:\n      cVar1 = param_1[1];\n      pcVar3 = pcVar12;\n    }" ({ "{") (expression_statement "*pcVar3 = cVar1;" (assignment_expression "*pcVar3 = cVar1" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (identifier "cVar1")) (; ";")) (expression_statement "pcVar12 = pcVar3 + 1;" (assignment_expression "pcVar12 = pcVar3 + 1" (identifier "pcVar12") (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (labeled_statement "LAB_00011bc5:\n      cVar1 = param_1[1];" (statement_identifier "LAB_00011bc5") (: ":") (expression_statement "cVar1 = param_1[1];" (assignment_expression "cVar1 = param_1[1]" (identifier "cVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (expression_statement "pcVar3 = pcVar12;" (assignment_expression "pcVar3 = pcVar12" (identifier "pcVar3") (= "=") (identifier "pcVar12")) (; ";")) (} "}")))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (cVar1 == '\0') {\n      *pcVar3 = '\0';\n      return pcVar4;\n    }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *pcVar3 = '\0';\n      return pcVar4;\n    }" ({ "{") (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return pcVar4;" (return "return") (identifier "pcVar4") (; ";")) (} "}"))) (} "}")) (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_17,char *var_13)

{
  char var_4;
  size_t var_2;
  char *var_3;
  char *pcVar4;
  type_1 **ppuVar5;
  type_2 **pp_Var6;
  type_3 var_8;
  type_4 *var_15;
  type_3 var_7;
  size_t var_6;
  type_3 var_5;
  char *var_16;
  
  var_2 = var_1(var_17);
  var_6 = var_2 + 1;
  var_5 = 0;
  var_3 = var_17;
  do {
    while( true ) {
      var_4 = *var_3;
      var_3 = var_3 + 1;
      if (var_4 != '&') break;
      var_5 = var_5 + 1;
    }
  } while (var_4 != '\0');
  if (var_5 != 0) {
    var_7 = var_6 - var_5;
    var_2 = var_1(var_13);
    var_8 = var_2 * var_5;
    var_6 = var_7 + var_8;
    if ((var_9(var_7,var_8)) ||
       ((int)var_8 < 0 || (int)((type_5)var_2 * (type_5)var_5 >> 0x20) != 0)) {
                    /* WARNING: Subroutine does not return */
      var_10();
    }
  }
  pcVar4 = (char *)var_11(var_6);
  var_4 = *var_17;
  var_3 = pcVar4;
  if (var_4 == '\0') {
    *pcVar4 = '\0';
    return pcVar4;
  }
  do {
    if (var_4 == '&') {
      ppuVar5 = var_12();
      var_8 = (type_3)(type_4)*var_13;
      var_15 = (type_4 *)var_13;
      var_5 = var_8;
      var_16 = var_3;
      if ((*(type_4 *)((int)*ppuVar5 + var_8 * 2 + 1) & 2) != 0) {
        pp_Var6 = var_14();
        var_16 = var_3 + 1;
        var_15 = (type_4 *)(var_13 + 1);
        var_5 = (type_3)(type_4)var_13[1];
        *var_3 = (char)(*pp_Var6)[var_8];
      }
      if ((char)var_5 == '\0') goto LAB_00011bc5;
      do {
        var_15 = var_15 + 1;
        var_3 = var_16 + 1;
        *var_16 = (char)var_5;
        var_5 = (type_3)*var_15;
        var_16 = var_3;
      } while (*var_15 != 0);
      var_4 = var_17[1];
    }
    else {
      *var_3 = var_4;
      var_16 = var_3 + 1;
LAB_00011bc5:
      var_4 = var_17[1];
      var_3 = var_16;
    }
    var_17 = var_17 + 1;
    if (var_4 == '\0') {
      *var_3 = '\0';
      return pcVar4;
    }
  } while( true );
}


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

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

char * __regparm3 MASKED(char *param_1,byte *param_2)

{
  char cVar1;
  size_t sVar2;
  char *pcVar3;
  char *pcVar4;
  ushort **ppuVar5;
  __int32_t **pp_Var6;
  uint uVar7;
  byte *pbVar8;
  uint uVar9;
  int iVar10;
  uint uVar11;
  char *pcVar12;
  
  sVar2 = strlen(param_1);
  iVar10 = sVar2 + 1;
  uVar11 = 0;
  pcVar3 = param_1;
  do {
    while( true ) {
      cVar1 = *pcVar3;
      pcVar3 = pcVar3 + 1;
      if (cVar1 != '&') break;
      uVar11 = uVar11 + 1;
    }
  } while (cVar1 != '\0');
  if (uVar11 != 0) {
    uVar9 = iVar10 - uVar11;
    sVar2 = strlen((char *)param_2);
    uVar7 = sVar2 * uVar11;
    iVar10 = uVar9 + uVar7;
    if ((CARRY4(uVar9,uVar7)) ||
       ((int)uVar7 < 0 || (int)((ulonglong)sVar2 * (ulonglong)uVar11 >> 0x20) != 0)) {
                    /* WARNING: Subroutine does not return */
      FUN_00015780();
    }
  }
  pcVar4 = (char *)FUN_00015480(iVar10);
  cVar1 = *param_1;
  pcVar3 = pcVar4;
  if (cVar1 == '\0') {
    *pcVar4 = '\0';
    return pcVar4;
  }
  do {
    if (cVar1 == '&') {
      ppuVar5 = __ctype_b_loc();
      uVar7 = (uint)*param_2;
      pbVar8 = param_2;
      uVar11 = uVar7;
      pcVar12 = pcVar3;
      if ((*(byte *)((int)*ppuVar5 + uVar7 * 2 + 1) & 2) != 0) {
        pp_Var6 = __ctype_toupper_loc();
        pcVar12 = pcVar3 + 1;
        pbVar8 = param_2 + 1;
        uVar11 = (uint)param_2[1];
        *pcVar3 = (char)(*pp_Var6)[uVar7];
      }
      if ((char)uVar11 == '\0') goto LAB_00011bc5;
      do {
        pbVar8 = pbVar8 + 1;
        pcVar3 = pcVar12 + 1;
        *pcVar12 = (char)uVar11;
        uVar11 = (uint)*pbVar8;
        pcVar12 = pcVar3;
      } while (*pbVar8 != 0);
      cVar1 = param_1[1];
    }
    else {
      *pcVar3 = cVar1;
      pcVar12 = pcVar3 + 1;
LAB_00011bc5:
      cVar1 = param_1[1];
      pcVar3 = pcVar12;
    }
    param_1 = param_1 + 1;
    if (cVar1 == '\0') {
      *pcVar3 = '\0';
      return pcVar4;
    }
  } while( true );
}

