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

void __regparm3 setbinfmt(char *s,char **fmtvarptr,char *default_fmt)

{
  char cVar1;
  char cVar2;
  char *pcVar3;
  
  if (s == (char *)0x0) goto LAB_00015d98;
  cVar2 = *s;
  pcVar3 = s;
  cVar1 = cVar2;
  if (utf_mode == 0) {
    if (cVar2 != '\0') goto LAB_00015d61;
    cVar2 = *default_fmt;
joined_r0x00015db9:
    s = default_fmt;
    if (cVar2 != '*') goto LAB_00015d9d;
    cVar2 = default_fmt[1];
    s = default_fmt + 2;
  }
  else {
    do {
      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;
      pcVar3 = pcVar3 + 1;
      cVar1 = *pcVar3;
    } while (cVar1 != '\0');
LAB_00015d61:
    if (cVar2 != '*') {
      pcVar3 = strchr(s,0x6e);
      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;
LAB_00015d98:
      cVar2 = *default_fmt;
      goto joined_r0x00015db9;
    }
    cVar2 = s[1];
    if ((cVar2 == '\0') || (s[2] == '\0')) goto LAB_00015d98;
    s = s + 2;
    pcVar3 = strchr(s,0x6e);
    if (pcVar3 != (char *)0x0) goto LAB_00015d98;
  }
  if (cVar2 == 'k') {
    binattr = 4;
    goto LAB_00015d9d;
  }
  if (cVar2 < 'l') {
    if (cVar2 == 'd') {
      binattr = 2;
      goto LAB_00015d9d;
    }
  }
  else {
    if (cVar2 == 's') {
      binattr = 8;
      goto LAB_00015d9d;
    }
    if (cVar2 == 'u') {
      binattr = 1;
      goto LAB_00015d9d;
    }
  }
  binattr = 0;
LAB_00015d9d:
  *fmtvarptr = s;
  return;
}



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

void __regparm3 FUN_00015d20(char *param_1,undefined4 *param_2,char *param_3)

{
  char cVar1;
  char cVar2;
  char *pcVar3;
  
  if (param_1 == (char *)0x0) goto LAB_00015d98;
  cVar2 = *param_1;
  pcVar3 = param_1;
  cVar1 = cVar2;
  if (DAT_0003e140 == 0) {
    if (cVar2 != '\0') goto LAB_00015d61;
    cVar2 = *param_3;
joined_r0x00015db9:
    param_1 = param_3;
    if (cVar2 != '*') goto LAB_00015d9d;
    cVar2 = param_3[1];
    param_1 = param_3 + 2;
  }
  else {
    do {
      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;
      pcVar3 = pcVar3 + 1;
      cVar1 = *pcVar3;
    } while (cVar1 != '\0');
LAB_00015d61:
    if (cVar2 != '*') {
      pcVar3 = strchr(param_1,0x6e);
      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;
LAB_00015d98:
      cVar2 = *param_3;
      goto joined_r0x00015db9;
    }
    cVar2 = param_1[1];
    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;
    param_1 = param_1 + 2;
    pcVar3 = strchr(param_1,0x6e);
    if (pcVar3 != (char *)0x0) goto LAB_00015d98;
  }
  if (cVar2 == 'k') {
    DAT_0003cdb0 = 4;
    goto LAB_00015d9d;
  }
  if (cVar2 < 'l') {
    if (cVar2 == 'd') {
      DAT_0003cdb0 = 2;
      goto LAB_00015d9d;
    }
  }
  else {
    if (cVar2 == 's') {
      DAT_0003cdb0 = 8;
      goto LAB_00015d9d;
    }
    if (cVar2 == 'u') {
      DAT_0003cdb0 = 1;
      goto LAB_00015d9d;
    }
  }
  DAT_0003cdb0 = 0;
LAB_00015d9d:
  *param_2 = param_1;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000129a0
ADD EBX,0x2616f
SUB ESP,0x1c
TEST EAX,EAX
JZ 0x00015d98
MOV ESI,EAX
MOVZX EBP,byte ptr [EAX]
MOV EAX,dword ptr [EBX + 0x22a8]
TEST EAX,EAX
JZ 0x00015db0
LEA EAX,[EBP + -0x20]
MOV EDI,ESI
CMP AL,0x5e
JBE 0x00015d57
JMP 0x00015d98
SUB EAX,0x20
CMP AL,0x5e
JA 0x00015d98
ADD EDI,0x1
MOVZX EAX,byte ptr [EDI]
TEST AL,AL
JNZ 0x00015d50
MOV EAX,EBP
CMP AL,0x2a
JZ 0x00015e00
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0x8
MOV dword ptr [ESP + 0x10],EDX
PUSH 0x6e
PUSH ESI
CALL 0x00012280
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x00015e70
LEA ESI,[ESI]
CMP byte ptr [ECX],0x2a
JZ 0x00015dbb
MOV dword ptr [EDX],ECX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,EBP
TEST AL,AL
JNZ 0x00015d61
CMP byte ptr [ECX],0x2a
JNZ 0x00015d9d
MOVZX EDI,byte ptr [ECX + 0x1]
ADD ECX,0x2
MOV EAX,EDI
CMP AL,0x6b
JZ 0x00015e60
JLE 0x00015de8
CMP AL,0x73
JZ 0x00015e50
CMP AL,0x75
JNZ 0x00015e40
MOV dword ptr [EBX + 0xf18],0x1
JMP 0x00015d9d
CMP AL,0x64
JNZ 0x00015e40
MOV dword ptr [EBX + 0xf18],0x2
JMP 0x00015d9d
MOVZX EDI,byte ptr [ESI + 0x1]
MOV EAX,EDI
TEST AL,AL
JZ 0x00015d98
CMP byte ptr [ESI + 0x2],0x0
JZ 0x00015d98
MOV dword ptr [ESP + 0xc],ECX
ADD ESI,0x2
SUB ESP,0x8
MOV dword ptr [ESP + 0x10],EDX
PUSH 0x6e
PUSH ESI
CALL 0x00012280
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x00015d98
MOV ECX,ESI
JMP 0x00015dc2
MOV dword ptr [EBX + 0xf18],0x0
JMP 0x00015d9d
MOV dword ptr [EBX + 0xf18],0x8
JMP 0x00015d9d
MOV dword ptr [EBX + 0xf18],0x4
JMP 0x00015d9d
MOV ECX,ESI
JMP 0x00015d9d
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00015d20(char *param_1,undefined4 *param_2,char *param_3)\n\n{\n  char cVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (param_1 == (char *)0x0) goto LAB_00015d98;\n  cVar2 = *param_1;\n  pcVar3 = param_1;\n  cVar1 = cVar2;\n  if (DAT_0003e140 == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }\n  if (cVar2 == 'k') {\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }\n  if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }\n  DAT_0003cdb0 = 0;\nLAB_00015d9d:\n  *param_2 = param_1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00015d20(char *param_1,undefined4 *param_2,char *param_3)\n\n{\n  char cVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (param_1 == (char *)0x0) goto LAB_00015d98;\n  cVar2 = *param_1;\n  pcVar3 = param_1;\n  cVar1 = cVar2;\n  if (DAT_0003e140 == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }\n  if (cVar2 == 'k') {\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }\n  if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }\n  DAT_0003cdb0 = 0;\nLAB_00015d9d:\n  *param_2 = param_1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00015d20(char *param_1,undefined4 *param_2,char *param_3)" identifier (parameter_list "(char *param_1,undefined4 *param_2,char *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (param_1 == (char *)0x0) goto LAB_00015d98;\n  cVar2 = *param_1;\n  pcVar3 = param_1;\n  cVar1 = cVar2;\n  if (DAT_0003e140 == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }\n  if (cVar2 == 'k') {\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }\n  if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }\n  DAT_0003cdb0 = 0;\nLAB_00015d9d:\n  *param_2 = param_1;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (param_1 == (char *)0x0) goto LAB_00015d98;" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00015d98;" goto statement_identifier ;)) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (expression_statement "cVar1 = cVar2;" (assignment_expression "cVar1 = cVar2" identifier = identifier) ;) (if_statement "if (DAT_0003e140 == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }" if (parenthesized_expression "(DAT_0003e140 == 0)" ( (binary_expression "DAT_0003e140 == 0" identifier == number_literal) )) (compound_statement "{\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }" { (if_statement "if (cVar2 != '\0') goto LAB_00015d61;" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00015d61;" goto statement_identifier ;)) (expression_statement "cVar2 = *param_3;" (assignment_expression "cVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (labeled_statement "joined_r0x00015db9:\n    param_1 = param_3;" statement_identifier : (expression_statement "param_1 = param_3;" (assignment_expression "param_1 = param_3" identifier = identifier) ;)) (if_statement "if (cVar2 != '*') goto LAB_00015d9d;" if (parenthesized_expression "(cVar2 != '*')" ( (binary_expression "cVar2 != '*'" identifier != (char_literal "'*'" ' character ')) )) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;)) (expression_statement "cVar2 = param_3[1];" (assignment_expression "cVar2 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "param_1 = param_3 + 2;" (assignment_expression "param_1 = param_3 + 2" identifier = (binary_expression "param_3 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }" else (compound_statement "{\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }" { (do_statement "do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }" { (if_statement "if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;" if (parenthesized_expression "(0x5e < (byte)(cVar1 - 0x20U))" ( (binary_expression "0x5e < (byte)(cVar1 - 0x20U)" number_literal < (call_expression "(byte)(cVar1 - 0x20U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 - 0x20U)" ( (binary_expression "cVar1 - 0x20U" identifier - number_literal) )))) )) (goto_statement "goto LAB_00015d98;" goto statement_identifier ;)) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (labeled_statement "LAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }" statement_identifier : (if_statement "if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }" if (parenthesized_expression "(cVar2 != '*')" ( (binary_expression "cVar2 != '*'" identifier != (char_literal "'*'" ' character ')) )) (compound_statement "{\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }" { (expression_statement "pcVar3 = strchr(param_1,0x6e);" (assignment_expression "pcVar3 = strchr(param_1,0x6e)" identifier = (call_expression "strchr(param_1,0x6e)" identifier (argument_list "(param_1,0x6e)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 == (char *)0x0) goto LAB_00015d9d;" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;)) (labeled_statement "LAB_00015d98:\n      cVar2 = *param_3;" statement_identifier : (expression_statement "cVar2 = *param_3;" (assignment_expression "cVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;)) (goto_statement "goto joined_r0x00015db9;" goto statement_identifier ;) }))) (expression_statement "cVar2 = param_1[1];" (assignment_expression "cVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;" if (parenthesized_expression "((cVar2 == '\0') || (param_1[2] == '\0'))" ( (binary_expression "(cVar2 == '\0') || (param_1[2] == '\0')" (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(param_1[2] == '\0')" ( (binary_expression "param_1[2] == '\0'" (subscript_expression "param_1[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_00015d98;" goto statement_identifier ;)) (expression_statement "param_1 = param_1 + 2;" (assignment_expression "param_1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "pcVar3 = strchr(param_1,0x6e);" (assignment_expression "pcVar3 = strchr(param_1,0x6e)" identifier = (call_expression "strchr(param_1,0x6e)" identifier (argument_list "(param_1,0x6e)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_00015d98;" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00015d98;" goto statement_identifier ;)) }))) (if_statement "if (cVar2 == 'k') {\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }" if (parenthesized_expression "(cVar2 == 'k')" ( (binary_expression "cVar2 == 'k'" identifier == (char_literal "'k'" ' character ')) )) (compound_statement "{\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }" { (expression_statement "DAT_0003cdb0 = 4;" (assignment_expression "DAT_0003cdb0 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;) })) (if_statement "if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }" if (parenthesized_expression "(cVar2 < 'l')" ( (binary_expression "cVar2 < 'l'" identifier < (char_literal "'l'" ' character ')) )) (compound_statement "{\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }" { (if_statement "if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }" if (parenthesized_expression "(cVar2 == 'd')" ( (binary_expression "cVar2 == 'd'" identifier == (char_literal "'d'" ' character ')) )) (compound_statement "{\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }" { (expression_statement "DAT_0003cdb0 = 2;" (assignment_expression "DAT_0003cdb0 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }" else (compound_statement "{\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }" { (if_statement "if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }" if (parenthesized_expression "(cVar2 == 's')" ( (binary_expression "cVar2 == 's'" identifier == (char_literal "'s'" ' character ')) )) (compound_statement "{\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }" { (expression_statement "DAT_0003cdb0 = 8;" (assignment_expression "DAT_0003cdb0 = 8" identifier = number_literal) ;) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;) })) (if_statement "if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }" if (parenthesized_expression "(cVar2 == 'u')" ( (binary_expression "cVar2 == 'u'" identifier == (char_literal "'u'" ' character ')) )) (compound_statement "{\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }" { (expression_statement "DAT_0003cdb0 = 1;" (assignment_expression "DAT_0003cdb0 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;) })) }))) (expression_statement "DAT_0003cdb0 = 0;" (assignment_expression "DAT_0003cdb0 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00015d9d:\n  *param_2 = param_1;" statement_identifier : (expression_statement "*param_2 = param_1;" (assignment_expression "*param_2 = param_1" (pointer_expression "*param_2" * identifier) = identifier) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 setbinfmt(char *s,char **fmtvarptr,char *default_fmt)\n\n{\n  char cVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (s == (char *)0x0) goto LAB_00015d98;\n  cVar2 = *s;\n  pcVar3 = s;\n  cVar1 = cVar2;\n  if (utf_mode == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *default_fmt;\njoined_r0x00015db9:\n    s = default_fmt;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = default_fmt[1];\n    s = default_fmt + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(s,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *default_fmt;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = s[1];\n    if ((cVar2 == '\0') || (s[2] == '\0')) goto LAB_00015d98;\n    s = s + 2;\n    pcVar3 = strchr(s,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }\n  if (cVar2 == 'k') {\n    binattr = 4;\n    goto LAB_00015d9d;\n  }\n  if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      binattr = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      binattr = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      binattr = 1;\n      goto LAB_00015d9d;\n    }\n  }\n  binattr = 0;\nLAB_00015d9d:\n  *fmtvarptr = s;\n  return;\n}\n\n" comment (function_definition "void __regparm3 setbinfmt(char *s,char **fmtvarptr,char *default_fmt)\n\n{\n  char cVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (s == (char *)0x0) goto LAB_00015d98;\n  cVar2 = *s;\n  pcVar3 = s;\n  cVar1 = cVar2;\n  if (utf_mode == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *default_fmt;\njoined_r0x00015db9:\n    s = default_fmt;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = default_fmt[1];\n    s = default_fmt + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(s,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *default_fmt;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = s[1];\n    if ((cVar2 == '\0') || (s[2] == '\0')) goto LAB_00015d98;\n    s = s + 2;\n    pcVar3 = strchr(s,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }\n  if (cVar2 == 'k') {\n    binattr = 4;\n    goto LAB_00015d9d;\n  }\n  if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      binattr = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      binattr = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      binattr = 1;\n      goto LAB_00015d9d;\n    }\n  }\n  binattr = 0;\nLAB_00015d9d:\n  *fmtvarptr = s;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "setbinfmt(char *s,char **fmtvarptr,char *default_fmt)" identifier (parameter_list "(char *s,char **fmtvarptr,char *default_fmt)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "char **fmtvarptr" primitive_type (pointer_declarator "**fmtvarptr" * (pointer_declarator "*fmtvarptr" * identifier))) , (parameter_declaration "char *default_fmt" primitive_type (pointer_declarator "*default_fmt" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (s == (char *)0x0) goto LAB_00015d98;\n  cVar2 = *s;\n  pcVar3 = s;\n  cVar1 = cVar2;\n  if (utf_mode == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *default_fmt;\njoined_r0x00015db9:\n    s = default_fmt;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = default_fmt[1];\n    s = default_fmt + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(s,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *default_fmt;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = s[1];\n    if ((cVar2 == '\0') || (s[2] == '\0')) goto LAB_00015d98;\n    s = s + 2;\n    pcVar3 = strchr(s,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }\n  if (cVar2 == 'k') {\n    binattr = 4;\n    goto LAB_00015d9d;\n  }\n  if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      binattr = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      binattr = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      binattr = 1;\n      goto LAB_00015d9d;\n    }\n  }\n  binattr = 0;\nLAB_00015d9d:\n  *fmtvarptr = s;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (s == (char *)0x0) goto LAB_00015d98;" if (parenthesized_expression "(s == (char *)0x0)" ( (binary_expression "s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00015d98;" goto statement_identifier ;)) (expression_statement "cVar2 = *s;" (assignment_expression "cVar2 = *s" identifier = (pointer_expression "*s" * identifier)) ;) (expression_statement "pcVar3 = s;" (assignment_expression "pcVar3 = s" identifier = identifier) ;) (expression_statement "cVar1 = cVar2;" (assignment_expression "cVar1 = cVar2" identifier = identifier) ;) (if_statement "if (utf_mode == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *default_fmt;\njoined_r0x00015db9:\n    s = default_fmt;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = default_fmt[1];\n    s = default_fmt + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(s,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *default_fmt;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = s[1];\n    if ((cVar2 == '\0') || (s[2] == '\0')) goto LAB_00015d98;\n    s = s + 2;\n    pcVar3 = strchr(s,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }" if (parenthesized_expression "(utf_mode == 0)" ( (binary_expression "utf_mode == 0" identifier == number_literal) )) (compound_statement "{\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *default_fmt;\njoined_r0x00015db9:\n    s = default_fmt;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = default_fmt[1];\n    s = default_fmt + 2;\n  }" { (if_statement "if (cVar2 != '\0') goto LAB_00015d61;" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00015d61;" goto statement_identifier ;)) (expression_statement "cVar2 = *default_fmt;" (assignment_expression "cVar2 = *default_fmt" identifier = (pointer_expression "*default_fmt" * identifier)) ;) (labeled_statement "joined_r0x00015db9:\n    s = default_fmt;" statement_identifier : (expression_statement "s = default_fmt;" (assignment_expression "s = default_fmt" identifier = identifier) ;)) (if_statement "if (cVar2 != '*') goto LAB_00015d9d;" if (parenthesized_expression "(cVar2 != '*')" ( (binary_expression "cVar2 != '*'" identifier != (char_literal "'*'" ' character ')) )) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;)) (expression_statement "cVar2 = default_fmt[1];" (assignment_expression "cVar2 = default_fmt[1]" identifier = (subscript_expression "default_fmt[1]" identifier [ number_literal ])) ;) (expression_statement "s = default_fmt + 2;" (assignment_expression "s = default_fmt + 2" identifier = (binary_expression "default_fmt + 2" identifier + number_literal)) ;) }) (else_clause "else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(s,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *default_fmt;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = s[1];\n    if ((cVar2 == '\0') || (s[2] == '\0')) goto LAB_00015d98;\n    s = s + 2;\n    pcVar3 = strchr(s,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }" else (compound_statement "{\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(s,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *default_fmt;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = s[1];\n    if ((cVar2 == '\0') || (s[2] == '\0')) goto LAB_00015d98;\n    s = s + 2;\n    pcVar3 = strchr(s,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }" { (do_statement "do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }" { (if_statement "if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;" if (parenthesized_expression "(0x5e < (byte)(cVar1 - 0x20U))" ( (binary_expression "0x5e < (byte)(cVar1 - 0x20U)" number_literal < (call_expression "(byte)(cVar1 - 0x20U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 - 0x20U)" ( (binary_expression "cVar1 - 0x20U" identifier - number_literal) )))) )) (goto_statement "goto LAB_00015d98;" goto statement_identifier ;)) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (labeled_statement "LAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(s,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *default_fmt;\n      goto joined_r0x00015db9;\n    }" statement_identifier : (if_statement "if (cVar2 != '*') {\n      pcVar3 = strchr(s,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *default_fmt;\n      goto joined_r0x00015db9;\n    }" if (parenthesized_expression "(cVar2 != '*')" ( (binary_expression "cVar2 != '*'" identifier != (char_literal "'*'" ' character ')) )) (compound_statement "{\n      pcVar3 = strchr(s,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *default_fmt;\n      goto joined_r0x00015db9;\n    }" { (expression_statement "pcVar3 = strchr(s,0x6e);" (assignment_expression "pcVar3 = strchr(s,0x6e)" identifier = (call_expression "strchr(s,0x6e)" identifier (argument_list "(s,0x6e)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 == (char *)0x0) goto LAB_00015d9d;" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;)) (labeled_statement "LAB_00015d98:\n      cVar2 = *default_fmt;" statement_identifier : (expression_statement "cVar2 = *default_fmt;" (assignment_expression "cVar2 = *default_fmt" identifier = (pointer_expression "*default_fmt" * identifier)) ;)) (goto_statement "goto joined_r0x00015db9;" goto statement_identifier ;) }))) (expression_statement "cVar2 = s[1];" (assignment_expression "cVar2 = s[1]" identifier = (subscript_expression "s[1]" identifier [ number_literal ])) ;) (if_statement "if ((cVar2 == '\0') || (s[2] == '\0')) goto LAB_00015d98;" if (parenthesized_expression "((cVar2 == '\0') || (s[2] == '\0'))" ( (binary_expression "(cVar2 == '\0') || (s[2] == '\0')" (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(s[2] == '\0')" ( (binary_expression "s[2] == '\0'" (subscript_expression "s[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_00015d98;" goto statement_identifier ;)) (expression_statement "s = s + 2;" (assignment_expression "s = s + 2" identifier = (binary_expression "s + 2" identifier + number_literal)) ;) (expression_statement "pcVar3 = strchr(s,0x6e);" (assignment_expression "pcVar3 = strchr(s,0x6e)" identifier = (call_expression "strchr(s,0x6e)" identifier (argument_list "(s,0x6e)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_00015d98;" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00015d98;" goto statement_identifier ;)) }))) (if_statement "if (cVar2 == 'k') {\n    binattr = 4;\n    goto LAB_00015d9d;\n  }" if (parenthesized_expression "(cVar2 == 'k')" ( (binary_expression "cVar2 == 'k'" identifier == (char_literal "'k'" ' character ')) )) (compound_statement "{\n    binattr = 4;\n    goto LAB_00015d9d;\n  }" { (expression_statement "binattr = 4;" (assignment_expression "binattr = 4" identifier = number_literal) ;) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;) })) (if_statement "if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      binattr = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      binattr = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      binattr = 1;\n      goto LAB_00015d9d;\n    }\n  }" if (parenthesized_expression "(cVar2 < 'l')" ( (binary_expression "cVar2 < 'l'" identifier < (char_literal "'l'" ' character ')) )) (compound_statement "{\n    if (cVar2 == 'd') {\n      binattr = 2;\n      goto LAB_00015d9d;\n    }\n  }" { (if_statement "if (cVar2 == 'd') {\n      binattr = 2;\n      goto LAB_00015d9d;\n    }" if (parenthesized_expression "(cVar2 == 'd')" ( (binary_expression "cVar2 == 'd'" identifier == (char_literal "'d'" ' character ')) )) (compound_statement "{\n      binattr = 2;\n      goto LAB_00015d9d;\n    }" { (expression_statement "binattr = 2;" (assignment_expression "binattr = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (cVar2 == 's') {\n      binattr = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      binattr = 1;\n      goto LAB_00015d9d;\n    }\n  }" else (compound_statement "{\n    if (cVar2 == 's') {\n      binattr = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      binattr = 1;\n      goto LAB_00015d9d;\n    }\n  }" { (if_statement "if (cVar2 == 's') {\n      binattr = 8;\n      goto LAB_00015d9d;\n    }" if (parenthesized_expression "(cVar2 == 's')" ( (binary_expression "cVar2 == 's'" identifier == (char_literal "'s'" ' character ')) )) (compound_statement "{\n      binattr = 8;\n      goto LAB_00015d9d;\n    }" { (expression_statement "binattr = 8;" (assignment_expression "binattr = 8" identifier = number_literal) ;) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;) })) (if_statement "if (cVar2 == 'u') {\n      binattr = 1;\n      goto LAB_00015d9d;\n    }" if (parenthesized_expression "(cVar2 == 'u')" ( (binary_expression "cVar2 == 'u'" identifier == (char_literal "'u'" ' character ')) )) (compound_statement "{\n      binattr = 1;\n      goto LAB_00015d9d;\n    }" { (expression_statement "binattr = 1;" (assignment_expression "binattr = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;) })) }))) (expression_statement "binattr = 0;" (assignment_expression "binattr = 0" identifier = number_literal) ;) (labeled_statement "LAB_00015d9d:\n  *fmtvarptr = s;" statement_identifier : (expression_statement "*fmtvarptr = s;" (assignment_expression "*fmtvarptr = s" (pointer_expression "*fmtvarptr" * identifier) = identifier) ;)) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00015d20(char *param_1,undefined4 *param_2,char *param_3)\n\n{\n  char cVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (param_1 == (char *)0x0) goto LAB_00015d98;\n  cVar2 = *param_1;\n  pcVar3 = param_1;\n  cVar1 = cVar2;\n  if (DAT_0003e140 == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }\n  if (cVar2 == 'k') {\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }\n  if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }\n  DAT_0003cdb0 = 0;\nLAB_00015d9d:\n  *param_2 = param_1;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00015d20(char *param_1,undefined4 *param_2,char *param_3)\n\n{\n  char cVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (param_1 == (char *)0x0) goto LAB_00015d98;\n  cVar2 = *param_1;\n  pcVar3 = param_1;\n  cVar1 = cVar2;\n  if (DAT_0003e140 == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }\n  if (cVar2 == 'k') {\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }\n  if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }\n  DAT_0003cdb0 = 0;\nLAB_00015d9d:\n  *param_2 = param_1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00015d20(char *param_1,undefined4 *param_2,char *param_3)" identifier (parameter_list "(char *param_1,undefined4 *param_2,char *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (param_1 == (char *)0x0) goto LAB_00015d98;\n  cVar2 = *param_1;\n  pcVar3 = param_1;\n  cVar1 = cVar2;\n  if (DAT_0003e140 == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }\n  if (cVar2 == 'k') {\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }\n  if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }\n  DAT_0003cdb0 = 0;\nLAB_00015d9d:\n  *param_2 = param_1;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (param_1 == (char *)0x0) goto LAB_00015d98;" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00015d98;" goto statement_identifier ;)) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" identifier = identifier) ;) (expression_statement "cVar1 = cVar2;" (assignment_expression "cVar1 = cVar2" identifier = identifier) ;) (if_statement "if (DAT_0003e140 == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }" if (parenthesized_expression "(DAT_0003e140 == 0)" ( (binary_expression "DAT_0003e140 == 0" identifier == number_literal) )) (compound_statement "{\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }" { (if_statement "if (cVar2 != '\0') goto LAB_00015d61;" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00015d61;" goto statement_identifier ;)) (expression_statement "cVar2 = *param_3;" (assignment_expression "cVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (labeled_statement "joined_r0x00015db9:\n    param_1 = param_3;" statement_identifier : (expression_statement "param_1 = param_3;" (assignment_expression "param_1 = param_3" identifier = identifier) ;)) (if_statement "if (cVar2 != '*') goto LAB_00015d9d;" if (parenthesized_expression "(cVar2 != '*')" ( (binary_expression "cVar2 != '*'" identifier != (char_literal "'*'" ' character ')) )) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;)) (expression_statement "cVar2 = param_3[1];" (assignment_expression "cVar2 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "param_1 = param_3 + 2;" (assignment_expression "param_1 = param_3 + 2" identifier = (binary_expression "param_3 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }" else (compound_statement "{\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }" { (do_statement "do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }" { (if_statement "if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;" if (parenthesized_expression "(0x5e < (byte)(cVar1 - 0x20U))" ( (binary_expression "0x5e < (byte)(cVar1 - 0x20U)" number_literal < (call_expression "(byte)(cVar1 - 0x20U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 - 0x20U)" ( (binary_expression "cVar1 - 0x20U" identifier - number_literal) )))) )) (goto_statement "goto LAB_00015d98;" goto statement_identifier ;)) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (labeled_statement "LAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }" statement_identifier : (if_statement "if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }" if (parenthesized_expression "(cVar2 != '*')" ( (binary_expression "cVar2 != '*'" identifier != (char_literal "'*'" ' character ')) )) (compound_statement "{\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }" { (expression_statement "pcVar3 = strchr(param_1,0x6e);" (assignment_expression "pcVar3 = strchr(param_1,0x6e)" identifier = (call_expression "strchr(param_1,0x6e)" identifier (argument_list "(param_1,0x6e)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 == (char *)0x0) goto LAB_00015d9d;" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;)) (labeled_statement "LAB_00015d98:\n      cVar2 = *param_3;" statement_identifier : (expression_statement "cVar2 = *param_3;" (assignment_expression "cVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;)) (goto_statement "goto joined_r0x00015db9;" goto statement_identifier ;) }))) (expression_statement "cVar2 = param_1[1];" (assignment_expression "cVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;" if (parenthesized_expression "((cVar2 == '\0') || (param_1[2] == '\0'))" ( (binary_expression "(cVar2 == '\0') || (param_1[2] == '\0')" (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(param_1[2] == '\0')" ( (binary_expression "param_1[2] == '\0'" (subscript_expression "param_1[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_00015d98;" goto statement_identifier ;)) (expression_statement "param_1 = param_1 + 2;" (assignment_expression "param_1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "pcVar3 = strchr(param_1,0x6e);" (assignment_expression "pcVar3 = strchr(param_1,0x6e)" identifier = (call_expression "strchr(param_1,0x6e)" identifier (argument_list "(param_1,0x6e)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_00015d98;" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00015d98;" goto statement_identifier ;)) }))) (if_statement "if (cVar2 == 'k') {\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }" if (parenthesized_expression "(cVar2 == 'k')" ( (binary_expression "cVar2 == 'k'" identifier == (char_literal "'k'" ' character ')) )) (compound_statement "{\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }" { (expression_statement "DAT_0003cdb0 = 4;" (assignment_expression "DAT_0003cdb0 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;) })) (if_statement "if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }" if (parenthesized_expression "(cVar2 < 'l')" ( (binary_expression "cVar2 < 'l'" identifier < (char_literal "'l'" ' character ')) )) (compound_statement "{\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }" { (if_statement "if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }" if (parenthesized_expression "(cVar2 == 'd')" ( (binary_expression "cVar2 == 'd'" identifier == (char_literal "'d'" ' character ')) )) (compound_statement "{\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }" { (expression_statement "DAT_0003cdb0 = 2;" (assignment_expression "DAT_0003cdb0 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }" else (compound_statement "{\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }" { (if_statement "if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }" if (parenthesized_expression "(cVar2 == 's')" ( (binary_expression "cVar2 == 's'" identifier == (char_literal "'s'" ' character ')) )) (compound_statement "{\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }" { (expression_statement "DAT_0003cdb0 = 8;" (assignment_expression "DAT_0003cdb0 = 8" identifier = number_literal) ;) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;) })) (if_statement "if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }" if (parenthesized_expression "(cVar2 == 'u')" ( (binary_expression "cVar2 == 'u'" identifier == (char_literal "'u'" ' character ')) )) (compound_statement "{\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }" { (expression_statement "DAT_0003cdb0 = 1;" (assignment_expression "DAT_0003cdb0 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00015d9d;" goto statement_identifier ;) })) }))) (expression_statement "DAT_0003cdb0 = 0;" (assignment_expression "DAT_0003cdb0 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00015d9d:\n  *param_2 = param_1;" statement_identifier : (expression_statement "*param_2 = param_1;" (assignment_expression "*param_2 = param_1" (pointer_expression "*param_2" * identifier) = identifier) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) )))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;)) (goto_statement goto statement_identifier ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00015d20(char *param_1,undefined4 *param_2,char *param_3)\n\n{\n  char cVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (param_1 == (char *)0x0) goto LAB_00015d98;\n  cVar2 = *param_1;\n  pcVar3 = param_1;\n  cVar1 = cVar2;\n  if (DAT_0003e140 == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }\n  if (cVar2 == 'k') {\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }\n  if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }\n  DAT_0003cdb0 = 0;\nLAB_00015d9d:\n  *param_2 = param_1;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00015d20(char *param_1,undefined4 *param_2,char *param_3)" (identifier "FUN_00015d20") (parameter_list "(char *param_1,undefined4 *param_2,char *param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char cVar1;\n  char cVar2;\n  char *pcVar3;\n  \n  if (param_1 == (char *)0x0) goto LAB_00015d98;\n  cVar2 = *param_1;\n  pcVar3 = param_1;\n  cVar1 = cVar2;\n  if (DAT_0003e140 == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }\n  if (cVar2 == 'k') {\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }\n  if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }\n  DAT_0003cdb0 = 0;\nLAB_00015d9d:\n  *param_2 = param_1;\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (if_statement "if (param_1 == (char *)0x0) goto LAB_00015d98;" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00015d98;" (goto "goto") (statement_identifier "LAB_00015d98") (; ";"))) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" (identifier "cVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar3 = param_1;" (assignment_expression "pcVar3 = param_1" (identifier "pcVar3") (= "=") (identifier "param_1")) (; ";")) (expression_statement "cVar1 = cVar2;" (assignment_expression "cVar1 = cVar2" (identifier "cVar1") (= "=") (identifier "cVar2")) (; ";")) (if_statement "if (DAT_0003e140 == 0) {\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }\n  else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }" (if "if") (parenthesized_expression "(DAT_0003e140 == 0)" (( "(") (binary_expression "DAT_0003e140 == 0" (identifier "DAT_0003e140") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (cVar2 != '\0') goto LAB_00015d61;\n    cVar2 = *param_3;\njoined_r0x00015db9:\n    param_1 = param_3;\n    if (cVar2 != '*') goto LAB_00015d9d;\n    cVar2 = param_3[1];\n    param_1 = param_3 + 2;\n  }" ({ "{") (if_statement "if (cVar2 != '\0') goto LAB_00015d61;" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00015d61;" (goto "goto") (statement_identifier "LAB_00015d61") (; ";"))) (expression_statement "cVar2 = *param_3;" (assignment_expression "cVar2 = *param_3" (identifier "cVar2") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (labeled_statement "joined_r0x00015db9:\n    param_1 = param_3;" (statement_identifier "joined_r0x00015db9") (: ":") (expression_statement "param_1 = param_3;" (assignment_expression "param_1 = param_3" (identifier "param_1") (= "=") (identifier "param_3")) (; ";"))) (if_statement "if (cVar2 != '*') goto LAB_00015d9d;" (if "if") (parenthesized_expression "(cVar2 != '*')" (( "(") (binary_expression "cVar2 != '*'" (identifier "cVar2") (!= "!=") (char_literal "'*'" (' "'") (character "*") (' "'"))) () ")")) (goto_statement "goto LAB_00015d9d;" (goto "goto") (statement_identifier "LAB_00015d9d") (; ";"))) (expression_statement "cVar2 = param_3[1];" (assignment_expression "cVar2 = param_3[1]" (identifier "cVar2") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1 = param_3 + 2;" (assignment_expression "param_1 = param_3 + 2" (identifier "param_1") (= "=") (binary_expression "param_3 + 2" (identifier "param_3") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else {\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }" (else "else") (compound_statement "{\n    do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');\nLAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }\n    cVar2 = param_1[1];\n    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;\n    param_1 = param_1 + 2;\n    pcVar3 = strchr(param_1,0x6e);\n    if (pcVar3 != (char *)0x0) goto LAB_00015d98;\n  }" ({ "{") (do_statement "do {\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    } while (cVar1 != '\0');" (do "do") (compound_statement "{\n      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;\n      pcVar3 = pcVar3 + 1;\n      cVar1 = *pcVar3;\n    }" ({ "{") (if_statement "if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;" (if "if") (parenthesized_expression "(0x5e < (byte)(cVar1 - 0x20U))" (( "(") (binary_expression "0x5e < (byte)(cVar1 - 0x20U)" (number_literal "0x5e") (< "<") (call_expression "(byte)(cVar1 - 0x20U)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(cVar1 - 0x20U)" (( "(") (binary_expression "cVar1 - 0x20U" (identifier "cVar1") (- "-") (number_literal "0x20U")) () ")")))) () ")")) (goto_statement "goto LAB_00015d98;" (goto "goto") (statement_identifier "LAB_00015d98") (; ";"))) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" (identifier "cVar1") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (labeled_statement "LAB_00015d61:\n    if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }" (statement_identifier "LAB_00015d61") (: ":") (if_statement "if (cVar2 != '*') {\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }" (if "if") (parenthesized_expression "(cVar2 != '*')" (( "(") (binary_expression "cVar2 != '*'" (identifier "cVar2") (!= "!=") (char_literal "'*'" (' "'") (character "*") (' "'"))) () ")")) (compound_statement "{\n      pcVar3 = strchr(param_1,0x6e);\n      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;\nLAB_00015d98:\n      cVar2 = *param_3;\n      goto joined_r0x00015db9;\n    }" ({ "{") (expression_statement "pcVar3 = strchr(param_1,0x6e);" (assignment_expression "pcVar3 = strchr(param_1,0x6e)" (identifier "pcVar3") (= "=") (call_expression "strchr(param_1,0x6e)" (identifier "strchr") (argument_list "(param_1,0x6e)" (( "(") (identifier "param_1") (, ",") (number_literal "0x6e") () ")")))) (; ";")) (if_statement "if (pcVar3 == (char *)0x0) goto LAB_00015d9d;" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00015d9d;" (goto "goto") (statement_identifier "LAB_00015d9d") (; ";"))) (labeled_statement "LAB_00015d98:\n      cVar2 = *param_3;" (statement_identifier "LAB_00015d98") (: ":") (expression_statement "cVar2 = *param_3;" (assignment_expression "cVar2 = *param_3" (identifier "cVar2") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";"))) (goto_statement "goto joined_r0x00015db9;" (goto "goto") (statement_identifier "joined_r0x00015db9") (; ";")) (} "}")))) (expression_statement "cVar2 = param_1[1];" (assignment_expression "cVar2 = param_1[1]" (identifier "cVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;" (if "if") (parenthesized_expression "((cVar2 == '\0') || (param_1[2] == '\0'))" (( "(") (binary_expression "(cVar2 == '\0') || (param_1[2] == '\0')" (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(param_1[2] == '\0')" (( "(") (binary_expression "param_1[2] == '\0'" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (goto_statement "goto LAB_00015d98;" (goto "goto") (statement_identifier "LAB_00015d98") (; ";"))) (expression_statement "param_1 = param_1 + 2;" (assignment_expression "param_1 = param_1 + 2" (identifier "param_1") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "pcVar3 = strchr(param_1,0x6e);" (assignment_expression "pcVar3 = strchr(param_1,0x6e)" (identifier "pcVar3") (= "=") (call_expression "strchr(param_1,0x6e)" (identifier "strchr") (argument_list "(param_1,0x6e)" (( "(") (identifier "param_1") (, ",") (number_literal "0x6e") () ")")))) (; ";")) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_00015d98;" (if "if") (parenthesized_expression "(pcVar3 != (char *)0x0)" (( "(") (binary_expression "pcVar3 != (char *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00015d98;" (goto "goto") (statement_identifier "LAB_00015d98") (; ";"))) (} "}")))) (if_statement "if (cVar2 == 'k') {\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }" (if "if") (parenthesized_expression "(cVar2 == 'k')" (( "(") (binary_expression "cVar2 == 'k'" (identifier "cVar2") (== "==") (char_literal "'k'" (' "'") (character "k") (' "'"))) () ")")) (compound_statement "{\n    DAT_0003cdb0 = 4;\n    goto LAB_00015d9d;\n  }" ({ "{") (expression_statement "DAT_0003cdb0 = 4;" (assignment_expression "DAT_0003cdb0 = 4" (identifier "DAT_0003cdb0") (= "=") (number_literal "4")) (; ";")) (goto_statement "goto LAB_00015d9d;" (goto "goto") (statement_identifier "LAB_00015d9d") (; ";")) (} "}"))) (if_statement "if (cVar2 < 'l') {\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }\n  else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }" (if "if") (parenthesized_expression "(cVar2 < 'l')" (( "(") (binary_expression "cVar2 < 'l'" (identifier "cVar2") (< "<") (char_literal "'l'" (' "'") (character "l") (' "'"))) () ")")) (compound_statement "{\n    if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }\n  }" ({ "{") (if_statement "if (cVar2 == 'd') {\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }" (if "if") (parenthesized_expression "(cVar2 == 'd')" (( "(") (binary_expression "cVar2 == 'd'" (identifier "cVar2") (== "==") (char_literal "'d'" (' "'") (character "d") (' "'"))) () ")")) (compound_statement "{\n      DAT_0003cdb0 = 2;\n      goto LAB_00015d9d;\n    }" ({ "{") (expression_statement "DAT_0003cdb0 = 2;" (assignment_expression "DAT_0003cdb0 = 2" (identifier "DAT_0003cdb0") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00015d9d;" (goto "goto") (statement_identifier "LAB_00015d9d") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }" (else "else") (compound_statement "{\n    if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }\n    if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }\n  }" ({ "{") (if_statement "if (cVar2 == 's') {\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }" (if "if") (parenthesized_expression "(cVar2 == 's')" (( "(") (binary_expression "cVar2 == 's'" (identifier "cVar2") (== "==") (char_literal "'s'" (' "'") (character "s") (' "'"))) () ")")) (compound_statement "{\n      DAT_0003cdb0 = 8;\n      goto LAB_00015d9d;\n    }" ({ "{") (expression_statement "DAT_0003cdb0 = 8;" (assignment_expression "DAT_0003cdb0 = 8" (identifier "DAT_0003cdb0") (= "=") (number_literal "8")) (; ";")) (goto_statement "goto LAB_00015d9d;" (goto "goto") (statement_identifier "LAB_00015d9d") (; ";")) (} "}"))) (if_statement "if (cVar2 == 'u') {\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }" (if "if") (parenthesized_expression "(cVar2 == 'u')" (( "(") (binary_expression "cVar2 == 'u'" (identifier "cVar2") (== "==") (char_literal "'u'" (' "'") (character "u") (' "'"))) () ")")) (compound_statement "{\n      DAT_0003cdb0 = 1;\n      goto LAB_00015d9d;\n    }" ({ "{") (expression_statement "DAT_0003cdb0 = 1;" (assignment_expression "DAT_0003cdb0 = 1" (identifier "DAT_0003cdb0") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_00015d9d;" (goto "goto") (statement_identifier "LAB_00015d9d") (; ";")) (} "}"))) (} "}")))) (expression_statement "DAT_0003cdb0 = 0;" (assignment_expression "DAT_0003cdb0 = 0" (identifier "DAT_0003cdb0") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00015d9d:\n  *param_2 = param_1;" (statement_identifier "LAB_00015d9d") (: ":") (expression_statement "*param_2 = param_1;" (assignment_expression "*param_2 = param_1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "param_1")) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *var_1,char **fmtvarptr,char *var_4)

{
  char var_5;
  char var_3;
  char *var_6;
  
  if (var_1 == (char *)0x0) goto LAB_00015d98;
  var_3 = *var_1;
  var_6 = var_1;
  var_5 = var_3;
  if (var_2 == 0) {
    if (var_3 != '\0') goto LAB_00015d61;
    var_3 = *var_4;
joined_r0x00015db9:
    var_1 = var_4;
    if (var_3 != '*') goto LAB_00015d9d;
    var_3 = var_4[1];
    var_1 = var_4 + 2;
  }
  else {
    do {
      if (0x5e < (byte)(var_5 - 0x20U)) goto LAB_00015d98;
      var_6 = var_6 + 1;
      var_5 = *var_6;
    } while (var_5 != '\0');
LAB_00015d61:
    if (var_3 != '*') {
      var_6 = var_7(var_1,0x6e);
      if (var_6 == (char *)0x0) goto LAB_00015d9d;
LAB_00015d98:
      var_3 = *var_4;
      goto joined_r0x00015db9;
    }
    var_3 = var_1[1];
    if ((var_3 == '\0') || (var_1[2] == '\0')) goto LAB_00015d98;
    var_1 = var_1 + 2;
    var_6 = var_7(var_1,0x6e);
    if (var_6 != (char *)0x0) goto LAB_00015d98;
  }
  if (var_3 == 'k') {
    binattr = 4;
    goto LAB_00015d9d;
  }
  if (var_3 < 'l') {
    if (var_3 == 'd') {
      binattr = 2;
      goto LAB_00015d9d;
    }
  }
  else {
    if (var_3 == 's') {
      binattr = 8;
      goto LAB_00015d9d;
    }
    if (var_3 == 'u') {
      binattr = 1;
      goto LAB_00015d9d;
    }
  }
  binattr = 0;
LAB_00015d9d:
  *fmtvarptr = var_1;
  return;
}


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

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

void __regparm3 MASKED(char *param_1,undefined4 *param_2,char *param_3)

{
  char cVar1;
  char cVar2;
  char *pcVar3;
  
  if (param_1 == (char *)0x0) goto LAB_00015d98;
  cVar2 = *param_1;
  pcVar3 = param_1;
  cVar1 = cVar2;
  if (DAT_0003e140 == 0) {
    if (cVar2 != '\0') goto LAB_00015d61;
    cVar2 = *param_3;
joined_r0x00015db9:
    param_1 = param_3;
    if (cVar2 != '*') goto LAB_00015d9d;
    cVar2 = param_3[1];
    param_1 = param_3 + 2;
  }
  else {
    do {
      if (0x5e < (byte)(cVar1 - 0x20U)) goto LAB_00015d98;
      pcVar3 = pcVar3 + 1;
      cVar1 = *pcVar3;
    } while (cVar1 != '\0');
LAB_00015d61:
    if (cVar2 != '*') {
      pcVar3 = strchr(param_1,0x6e);
      if (pcVar3 == (char *)0x0) goto LAB_00015d9d;
LAB_00015d98:
      cVar2 = *param_3;
      goto joined_r0x00015db9;
    }
    cVar2 = param_1[1];
    if ((cVar2 == '\0') || (param_1[2] == '\0')) goto LAB_00015d98;
    param_1 = param_1 + 2;
    pcVar3 = strchr(param_1,0x6e);
    if (pcVar3 != (char *)0x0) goto LAB_00015d98;
  }
  if (cVar2 == 'k') {
    DAT_0003cdb0 = 4;
    goto LAB_00015d9d;
  }
  if (cVar2 < 'l') {
    if (cVar2 == 'd') {
      DAT_0003cdb0 = 2;
      goto LAB_00015d9d;
    }
  }
  else {
    if (cVar2 == 's') {
      DAT_0003cdb0 = 8;
      goto LAB_00015d9d;
    }
    if (cVar2 == 'u') {
      DAT_0003cdb0 = 1;
      goto LAB_00015d9d;
    }
  }
  DAT_0003cdb0 = 0;
LAB_00015d9d:
  *param_2 = param_1;
  return;
}

