
int charset_from_mimeenc(char *name)

{
  byte bVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  undefined4 *puVar5;
  char *pcVar6;
  byte *pbVar7;
  
  iVar4 = 0;
  uVar3 = 0x49;
  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);
  pcVar6 = PTR_DAT_000b5208 + -0x54c;
  pbVar7 = (byte *)name;
  while( true ) {
    while( true ) {
      bVar1 = *pbVar7;
      pcVar6 = pcVar6 + 1;
      if (bVar1 == 0 && uVar3 == 0) {
        return *(int *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);
      }
      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();
      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;
      uVar3 = (uint)*pcVar6;
      pbVar7 = pbVar7 + 1;
    }
    iVar4 = iVar4 + 1;
    if (iVar4 == 0x82) break;
    pcVar6 = (char *)*puVar5;
    puVar5 = puVar5 + 2;
    uVar3 = (uint)*pcVar6;
    pbVar7 = (byte *)name;
  }
  return 0;
}



undefined4 charset_from_mimeenc(byte *param_1)

{
  byte bVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  undefined4 *puVar5;
  char *pcVar6;
  byte *pbVar7;
  
  iVar4 = 0;
  uVar3 = 0x49;
  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);
  pcVar6 = PTR_DAT_000b5208 + -0x54c;
  pbVar7 = param_1;
  while( true ) {
    while( true ) {
      bVar1 = *pbVar7;
      pcVar6 = pcVar6 + 1;
      if (bVar1 == 0 && uVar3 == 0) {
        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);
      }
      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();
      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;
      uVar3 = (uint)*pcVar6;
      pbVar7 = pbVar7 + 1;
    }
    iVar4 = iVar4 + 1;
    if (iVar4 == 0x82) break;
    pcVar6 = (char *)*puVar5;
    puVar5 = puVar5 + 2;
    uVar3 = (uint)*pcVar6;
    pbVar7 = param_1;
  }
  return 0;
}


lui gp,0xa
addiu gp,gp,-0x1450
addu gp,gp,t9
addiu sp,sp,-0x40
sw s6,0x34(sp)
sw s3,0x28(sp)
sw s5,0x30(sp)
li s5,0x82
sw s2,0x24(sp)
or s2,zero,zero
sw s1,0x20(sp)
li s1,0x49
sw s4,0x2c(sp)
or s4,a0,zero
sw gp,0x10(sp)
sw ra,0x3c(sp)
sw s7,0x38(sp)
sw s0,0x1c(sp)
lw s3,-0x7fd8(gp)
lw s6,-0x7fc8(gp)
addiu s3,s3,0x3cf4
addiu s6,s6,-0x54c
or s7,s4,zero
lb s0,0x0(s7)
addiu s6,s6,0x1
lw t9,-0x6ffc(gp)
or v0,s0,s1
bne v0,zero,0x0001e6d4
_addiu s7,s7,0x1
lw v0,-0x7fd8(gp)
sll s2,s2,0x3
lw ra,0x3c(sp)
lw s7,0x38(sp)
addiu v0,v0,0x3cec
lw s6,0x34(sp)
lw s5,0x30(sp)
addu s2,v0,s2
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s1,0x20(sp)
lw v0,0x4(s2)
lw s2,0x24(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x40
jalr t9
_andi s1,s1,0xff
lw v0,0x0(v0)
andi s0,s0,0xff
sll s0,s0,0x2
sll s1,s1,0x2
addu s0,v0,s0
addu s1,v0,s1
lw v1,0x0(s0)
lw v0,0x0(s1)
bne v1,v0,0x0001e70c
_lw gp,0x10(sp)
b 0x0001e67c
_lb s1,0x0(s6)
addiu s2,s2,0x1
beq s2,s5,0x0001e728
_lw ra,0x3c(sp)
lw s6,0x0(s3)
addiu s3,s3,0x8
b 0x0001e678
_lb s1,0x0(s6)
or v0,zero,zero
lw s7,0x38(sp)
lw s6,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x40
(translation_unit "undefined4 charset_from_mimeenc(byte *param_1)\n\n{\n  byte bVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  \n  iVar4 = 0;\n  uVar3 = 0x49;\n  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);\n  pcVar6 = PTR_DAT_000b5208 + -0x54c;\n  pbVar7 = param_1;\n  while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 charset_from_mimeenc(byte *param_1)\n\n{\n  byte bVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  \n  iVar4 = 0;\n  uVar3 = 0x49;\n  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);\n  pcVar6 = PTR_DAT_000b5208 + -0x54c;\n  pbVar7 = param_1;\n  while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }\n  return 0;\n}" type_identifier (function_declarator "charset_from_mimeenc(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  \n  iVar4 = 0;\n  uVar3 = 0x49;\n  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);\n  pcVar6 = PTR_DAT_000b5208 + -0x54c;\n  pbVar7 = param_1;\n  while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = 0x49;" (assignment_expression "uVar3 = 0x49" identifier = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);" (assignment_expression "puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b51f8 + 0x3cf4)" ( (binary_expression "PTR_DAT_000b51f8 + 0x3cf4" identifier + number_literal) )))) ;) (expression_statement "pcVar6 = PTR_DAT_000b5208 + -0x54c;" (assignment_expression "pcVar6 = PTR_DAT_000b5208 + -0x54c" identifier = (binary_expression "PTR_DAT_000b5208 + -0x54c" identifier + number_literal)) ;) (expression_statement "pbVar7 = param_1;" (assignment_expression "pbVar7 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }" { (while_statement "while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }" { (expression_statement "bVar1 = *pbVar7;" (assignment_expression "bVar1 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }" if (parenthesized_expression "(bVar1 == 0 && uVar3 == 0)" ( (binary_expression "bVar1 == 0 && uVar3 == 0" (binary_expression "bVar1 == 0" identifier == number_literal) && (binary_expression "uVar3 == 0" identifier == number_literal)) )) (compound_statement "{\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }" { (return_statement "return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);" return (pointer_expression "*(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0)" * (cast_expression "(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0)" ( (binary_expression "PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0" (binary_expression "PTR_DAT_000b51f8 + iVar4 * 8" identifier + (binary_expression "iVar4 * 8" identifier * number_literal)) + number_literal) )))) ;) })) (expression_statement "piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_tolower_loc_000b61d4)()" (parenthesized_expression "(*(code *)PTR___ctype_tolower_loc_000b61d4)" ( (pointer_expression "*(code *)PTR___ctype_tolower_loc_000b61d4" * (cast_expression "(code *)PTR___ctype_tolower_loc_000b61d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;" if (parenthesized_expression "(*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4))" ( (binary_expression "*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)" (pointer_expression "*(int *)(*piVar2 + (uint)bVar1 * 4)" * (cast_expression "(int *)(*piVar2 + (uint)bVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + (uint)bVar1 * 4)" ( (binary_expression "*piVar2 + (uint)bVar1 * 4" (pointer_expression "*piVar2" * identifier) + (binary_expression "(uint)bVar1 * 4" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) != (pointer_expression "*(int *)(*piVar2 + (uVar3 & 0xff) * 4)" * (cast_expression "(int *)(*piVar2 + (uVar3 & 0xff) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + (uVar3 & 0xff) * 4)" ( (binary_expression "*piVar2 + (uVar3 & 0xff) * 4" (pointer_expression "*piVar2" * identifier) + (binary_expression "(uVar3 & 0xff) * 4" (parenthesized_expression "(uVar3 & 0xff)" ( (binary_expression "uVar3 & 0xff" identifier & number_literal) )) * number_literal)) ))))) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = (uint)*pcVar6;" (assignment_expression "uVar3 = (uint)*pcVar6" identifier = (binary_expression "(uint)*pcVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 == 0x82) break;" if (parenthesized_expression "(iVar4 == 0x82)" ( (binary_expression "iVar4 == 0x82" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pcVar6 = (char *)*puVar5;" (assignment_expression "pcVar6 = (char *)*puVar5" identifier = (cast_expression "(char *)*puVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "uVar3 = (uint)*pcVar6;" (assignment_expression "uVar3 = (uint)*pcVar6" identifier = (binary_expression "(uint)*pcVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar7 = param_1;" (assignment_expression "pbVar7 = param_1" identifier = identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int charset_from_mimeenc(char *name)\n\n{\n  byte bVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  \n  iVar4 = 0;\n  uVar3 = 0x49;\n  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);\n  pcVar6 = PTR_DAT_000b5208 + -0x54c;\n  pbVar7 = (byte *)name;\n  while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(int *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = (byte *)name;\n  }\n  return 0;\n}\n\n" (function_definition "int charset_from_mimeenc(char *name)\n\n{\n  byte bVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  \n  iVar4 = 0;\n  uVar3 = 0x49;\n  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);\n  pcVar6 = PTR_DAT_000b5208 + -0x54c;\n  pbVar7 = (byte *)name;\n  while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(int *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = (byte *)name;\n  }\n  return 0;\n}" primitive_type (function_declarator "charset_from_mimeenc(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  \n  iVar4 = 0;\n  uVar3 = 0x49;\n  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);\n  pcVar6 = PTR_DAT_000b5208 + -0x54c;\n  pbVar7 = (byte *)name;\n  while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(int *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = (byte *)name;\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = 0x49;" (assignment_expression "uVar3 = 0x49" identifier = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);" (assignment_expression "puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b51f8 + 0x3cf4)" ( (binary_expression "PTR_DAT_000b51f8 + 0x3cf4" identifier + number_literal) )))) ;) (expression_statement "pcVar6 = PTR_DAT_000b5208 + -0x54c;" (assignment_expression "pcVar6 = PTR_DAT_000b5208 + -0x54c" identifier = (binary_expression "PTR_DAT_000b5208 + -0x54c" identifier + number_literal)) ;) (expression_statement "pbVar7 = (byte *)name;" (assignment_expression "pbVar7 = (byte *)name" identifier = (cast_expression "(byte *)name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(int *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = (byte *)name;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(int *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = (byte *)name;\n  }" { (while_statement "while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(int *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(int *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }" { (expression_statement "bVar1 = *pbVar7;" (assignment_expression "bVar1 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if (bVar1 == 0 && uVar3 == 0) {\n        return *(int *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }" if (parenthesized_expression "(bVar1 == 0 && uVar3 == 0)" ( (binary_expression "bVar1 == 0 && uVar3 == 0" (binary_expression "bVar1 == 0" identifier == number_literal) && (binary_expression "uVar3 == 0" identifier == number_literal)) )) (compound_statement "{\n        return *(int *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }" { (return_statement "return *(int *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);" return (pointer_expression "*(int *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0)" * (cast_expression "(int *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0)" ( (binary_expression "PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0" (binary_expression "PTR_DAT_000b51f8 + iVar4 * 8" identifier + (binary_expression "iVar4 * 8" identifier * number_literal)) + number_literal) )))) ;) })) (expression_statement "piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_tolower_loc_000b61d4)()" (parenthesized_expression "(*(code *)PTR___ctype_tolower_loc_000b61d4)" ( (pointer_expression "*(code *)PTR___ctype_tolower_loc_000b61d4" * (cast_expression "(code *)PTR___ctype_tolower_loc_000b61d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;" if (parenthesized_expression "(*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4))" ( (binary_expression "*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)" (pointer_expression "*(int *)(*piVar2 + (uint)bVar1 * 4)" * (cast_expression "(int *)(*piVar2 + (uint)bVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + (uint)bVar1 * 4)" ( (binary_expression "*piVar2 + (uint)bVar1 * 4" (pointer_expression "*piVar2" * identifier) + (binary_expression "(uint)bVar1 * 4" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) != (pointer_expression "*(int *)(*piVar2 + (uVar3 & 0xff) * 4)" * (cast_expression "(int *)(*piVar2 + (uVar3 & 0xff) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + (uVar3 & 0xff) * 4)" ( (binary_expression "*piVar2 + (uVar3 & 0xff) * 4" (pointer_expression "*piVar2" * identifier) + (binary_expression "(uVar3 & 0xff) * 4" (parenthesized_expression "(uVar3 & 0xff)" ( (binary_expression "uVar3 & 0xff" identifier & number_literal) )) * number_literal)) ))))) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = (uint)*pcVar6;" (assignment_expression "uVar3 = (uint)*pcVar6" identifier = (binary_expression "(uint)*pcVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 == 0x82) break;" if (parenthesized_expression "(iVar4 == 0x82)" ( (binary_expression "iVar4 == 0x82" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pcVar6 = (char *)*puVar5;" (assignment_expression "pcVar6 = (char *)*puVar5" identifier = (cast_expression "(char *)*puVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "uVar3 = (uint)*pcVar6;" (assignment_expression "uVar3 = (uint)*pcVar6" identifier = (binary_expression "(uint)*pcVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar7 = (byte *)name;" (assignment_expression "pbVar7 = (byte *)name" identifier = (cast_expression "(byte *)name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 charset_from_mimeenc(byte *param_1)\n\n{\n  byte bVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  \n  iVar4 = 0;\n  uVar3 = 0x49;\n  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);\n  pcVar6 = PTR_DAT_000b5208 + -0x54c;\n  pbVar7 = param_1;\n  while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 charset_from_mimeenc(byte *param_1)\n\n{\n  byte bVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  \n  iVar4 = 0;\n  uVar3 = 0x49;\n  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);\n  pcVar6 = PTR_DAT_000b5208 + -0x54c;\n  pbVar7 = param_1;\n  while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }\n  return 0;\n}" type_identifier (function_declarator "charset_from_mimeenc(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  \n  iVar4 = 0;\n  uVar3 = 0x49;\n  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);\n  pcVar6 = PTR_DAT_000b5208 + -0x54c;\n  pbVar7 = param_1;\n  while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = 0x49;" (assignment_expression "uVar3 = 0x49" identifier = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);" (assignment_expression "puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b51f8 + 0x3cf4)" ( (binary_expression "PTR_DAT_000b51f8 + 0x3cf4" identifier + number_literal) )))) ;) (expression_statement "pcVar6 = PTR_DAT_000b5208 + -0x54c;" (assignment_expression "pcVar6 = PTR_DAT_000b5208 + -0x54c" identifier = (binary_expression "PTR_DAT_000b5208 + -0x54c" identifier + number_literal)) ;) (expression_statement "pbVar7 = param_1;" (assignment_expression "pbVar7 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }" { (while_statement "while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }" { (expression_statement "bVar1 = *pbVar7;" (assignment_expression "bVar1 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }" if (parenthesized_expression "(bVar1 == 0 && uVar3 == 0)" ( (binary_expression "bVar1 == 0 && uVar3 == 0" (binary_expression "bVar1 == 0" identifier == number_literal) && (binary_expression "uVar3 == 0" identifier == number_literal)) )) (compound_statement "{\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }" { (return_statement "return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);" return (pointer_expression "*(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0)" * (cast_expression "(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0)" ( (binary_expression "PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0" (binary_expression "PTR_DAT_000b51f8 + iVar4 * 8" identifier + (binary_expression "iVar4 * 8" identifier * number_literal)) + number_literal) )))) ;) })) (expression_statement "piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_tolower_loc_000b61d4)()" (parenthesized_expression "(*(code *)PTR___ctype_tolower_loc_000b61d4)" ( (pointer_expression "*(code *)PTR___ctype_tolower_loc_000b61d4" * (cast_expression "(code *)PTR___ctype_tolower_loc_000b61d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;" if (parenthesized_expression "(*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4))" ( (binary_expression "*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)" (pointer_expression "*(int *)(*piVar2 + (uint)bVar1 * 4)" * (cast_expression "(int *)(*piVar2 + (uint)bVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + (uint)bVar1 * 4)" ( (binary_expression "*piVar2 + (uint)bVar1 * 4" (pointer_expression "*piVar2" * identifier) + (binary_expression "(uint)bVar1 * 4" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) != (pointer_expression "*(int *)(*piVar2 + (uVar3 & 0xff) * 4)" * (cast_expression "(int *)(*piVar2 + (uVar3 & 0xff) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + (uVar3 & 0xff) * 4)" ( (binary_expression "*piVar2 + (uVar3 & 0xff) * 4" (pointer_expression "*piVar2" * identifier) + (binary_expression "(uVar3 & 0xff) * 4" (parenthesized_expression "(uVar3 & 0xff)" ( (binary_expression "uVar3 & 0xff" identifier & number_literal) )) * number_literal)) ))))) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = (uint)*pcVar6;" (assignment_expression "uVar3 = (uint)*pcVar6" identifier = (binary_expression "(uint)*pcVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 == 0x82) break;" if (parenthesized_expression "(iVar4 == 0x82)" ( (binary_expression "iVar4 == 0x82" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pcVar6 = (char *)*puVar5;" (assignment_expression "pcVar6 = (char *)*puVar5" identifier = (cast_expression "(char *)*puVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "uVar3 = (uint)*pcVar6;" (assignment_expression "uVar3 = (uint)*pcVar6" identifier = (binary_expression "(uint)*pcVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar7 = param_1;" (assignment_expression "pbVar7 = param_1" identifier = identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (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 (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))) != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) ))))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 charset_from_mimeenc(byte *param_1)\n\n{\n  byte bVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  \n  iVar4 = 0;\n  uVar3 = 0x49;\n  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);\n  pcVar6 = PTR_DAT_000b5208 + -0x54c;\n  pbVar7 = param_1;\n  while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "charset_from_mimeenc(byte *param_1)" (identifier "charset_from_mimeenc") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  \n  iVar4 = 0;\n  uVar3 = 0x49;\n  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);\n  pcVar6 = PTR_DAT_000b5208 + -0x54c;\n  pbVar7 = param_1;\n  while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }\n  return 0;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = 0x49;" (assignment_expression "uVar3 = 0x49" (identifier "uVar3") (= "=") (number_literal "0x49")) (; ";")) (expression_statement "puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);" (assignment_expression "puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b51f8 + 0x3cf4)" (( "(") (binary_expression "PTR_DAT_000b51f8 + 0x3cf4" (identifier "PTR_DAT_000b51f8") (+ "+") (number_literal "0x3cf4")) () ")")))) (; ";")) (expression_statement "pcVar6 = PTR_DAT_000b5208 + -0x54c;" (assignment_expression "pcVar6 = PTR_DAT_000b5208 + -0x54c" (identifier "pcVar6") (= "=") (binary_expression "PTR_DAT_000b5208 + -0x54c" (identifier "PTR_DAT_000b5208") (+ "+") (number_literal "-0x54c"))) (; ";")) (expression_statement "pbVar7 = param_1;" (assignment_expression "pbVar7 = param_1" (identifier "pbVar7") (= "=") (identifier "param_1")) (; ";")) (while_statement "while( true ) {\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }\n    iVar4 = iVar4 + 1;\n    if (iVar4 == 0x82) break;\n    pcVar6 = (char *)*puVar5;\n    puVar5 = puVar5 + 2;\n    uVar3 = (uint)*pcVar6;\n    pbVar7 = param_1;\n  }" ({ "{") (while_statement "while( true ) {\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      bVar1 = *pbVar7;\n      pcVar6 = pcVar6 + 1;\n      if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }\n      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();\n      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;\n      uVar3 = (uint)*pcVar6;\n      pbVar7 = pbVar7 + 1;\n    }" ({ "{") (expression_statement "bVar1 = *pbVar7;" (assignment_expression "bVar1 = *pbVar7" (identifier "bVar1") (= "=") (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7"))) (; ";")) (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" (identifier "pcVar6") (= "=") (binary_expression "pcVar6 + 1" (identifier "pcVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (bVar1 == 0 && uVar3 == 0) {\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }" (if "if") (parenthesized_expression "(bVar1 == 0 && uVar3 == 0)" (( "(") (binary_expression "bVar1 == 0 && uVar3 == 0" (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) (&& "&&") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);\n      }" ({ "{") (return_statement "return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);" (return "return") (pointer_expression "*(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0)" (( "(") (binary_expression "PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0" (binary_expression "PTR_DAT_000b51f8 + iVar4 * 8" (identifier "PTR_DAT_000b51f8") (+ "+") (binary_expression "iVar4 * 8" (identifier "iVar4") (* "*") (number_literal "8"))) (+ "+") (number_literal "0x3cf0")) () ")")))) (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)()" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_tolower_loc_000b61d4)()" (parenthesized_expression "(*(code *)PTR___ctype_tolower_loc_000b61d4)" (( "(") (pointer_expression "*(code *)PTR___ctype_tolower_loc_000b61d4" (* "*") (cast_expression "(code *)PTR___ctype_tolower_loc_000b61d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_tolower_loc_000b61d4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;" (if "if") (parenthesized_expression "(*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4))" (( "(") (binary_expression "*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)" (pointer_expression "*(int *)(*piVar2 + (uint)bVar1 * 4)" (* "*") (cast_expression "(int *)(*piVar2 + (uint)bVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + (uint)bVar1 * 4)" (( "(") (binary_expression "*piVar2 + (uint)bVar1 * 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (binary_expression "(uint)bVar1 * 4" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (* "*") (number_literal "4"))) () ")")))) (!= "!=") (pointer_expression "*(int *)(*piVar2 + (uVar3 & 0xff) * 4)" (* "*") (cast_expression "(int *)(*piVar2 + (uVar3 & 0xff) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + (uVar3 & 0xff) * 4)" (( "(") (binary_expression "*piVar2 + (uVar3 & 0xff) * 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (binary_expression "(uVar3 & 0xff) * 4" (parenthesized_expression "(uVar3 & 0xff)" (( "(") (binary_expression "uVar3 & 0xff" (identifier "uVar3") (& "&") (number_literal "0xff")) () ")")) (* "*") (number_literal "4"))) () ")"))))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar3 = (uint)*pcVar6;" (assignment_expression "uVar3 = (uint)*pcVar6" (identifier "uVar3") (= "=") (binary_expression "(uint)*pcVar6" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pcVar6"))) (; ";")) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar4 == 0x82) break;" (if "if") (parenthesized_expression "(iVar4 == 0x82)" (( "(") (binary_expression "iVar4 == 0x82" (identifier "iVar4") (== "==") (number_literal "0x82")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar6 = (char *)*puVar5;" (assignment_expression "pcVar6 = (char *)*puVar5" (identifier "pcVar6") (= "=") (cast_expression "(char *)*puVar5" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (expression_statement "puVar5 = puVar5 + 2;" (assignment_expression "puVar5 = puVar5 + 2" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar3 = (uint)*pcVar6;" (assignment_expression "uVar3 = (uint)*pcVar6" (identifier "uVar3") (= "=") (binary_expression "(uint)*pcVar6" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pcVar6"))) (; ";")) (expression_statement "pbVar7 = param_1;" (assignment_expression "pbVar7 = param_1" (identifier "pbVar7") (= "=") (identifier "param_1")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (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: (identifier))) (while_statement condition: (parenthesized_expression (true)) 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: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (return_statement (number_literal)))))

undefined4 MASKED(byte *param_1)

{
  byte bVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  undefined4 *puVar5;
  char *pcVar6;
  byte *pbVar7;
  
  iVar4 = 0;
  uVar3 = 0x49;
  puVar5 = (undefined4 *)(PTR_DAT_000b51f8 + 0x3cf4);
  pcVar6 = PTR_DAT_000b5208 + -0x54c;
  pbVar7 = param_1;
  while( true ) {
    while( true ) {
      bVar1 = *pbVar7;
      pcVar6 = pcVar6 + 1;
      if (bVar1 == 0 && uVar3 == 0) {
        return *(undefined4 *)(PTR_DAT_000b51f8 + iVar4 * 8 + 0x3cf0);
      }
      piVar2 = (int *)(*(code *)PTR___ctype_tolower_loc_000b61d4)();
      if (*(int *)(*piVar2 + (uint)bVar1 * 4) != *(int *)(*piVar2 + (uVar3 & 0xff) * 4)) break;
      uVar3 = (uint)*pcVar6;
      pbVar7 = pbVar7 + 1;
    }
    iVar4 = iVar4 + 1;
    if (iVar4 == 0x82) break;
    pcVar6 = (char *)*puVar5;
    puVar5 = puVar5 + 2;
    uVar3 = (uint)*pcVar6;
    pbVar7 = param_1;
  }
  return 0;
}

