
/* WARNING: Unknown calling convention */

void build_upper_buffer(re_string_t *pstr)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  uchar *puVar4;
  int iVar5;
  
  iVar1 = pstr->len;
  if (pstr->bufs_len <= pstr->len) {
    iVar1 = pstr->bufs_len;
  }
  iVar5 = pstr->valid_len;
  if (iVar5 < iVar1) {
    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();
    do {
      uVar3 = (uint)pstr->raw_mbs[pstr->raw_mbs_idx + iVar5];
      if (pstr->trans != (uchar *)0x0) {
        uVar3 = (uint)pstr->trans[uVar3];
      }
      puVar4 = pstr->mbs + iVar5;
      iVar5 = iVar5 + 1;
      *puVar4 = (uchar)*(undefined4 *)(*piVar2 + uVar3 * 4);
    } while (iVar1 != iVar5);
  }
  pstr->valid_len = iVar5;
  pstr->valid_raw_len = iVar5;
  return;
}



void FUN_0047f484(int *param_1)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  undefined1 *puVar4;
  int iVar5;
  
  iVar1 = param_1[0xc];
  if (param_1[9] <= param_1[0xc]) {
    iVar1 = param_1[9];
  }
  iVar5 = param_1[7];
  if (iVar5 < iVar1) {
    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();
    do {
      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);
      if (param_1[0x10] != 0) {
        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);
      }
      puVar4 = (undefined1 *)(param_1[1] + iVar5);
      iVar5 = iVar5 + 1;
      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);
    } while (iVar1 != iVar5);
  }
  param_1[7] = iVar5;
  param_1[8] = iVar5;
  return;
}


addiu sp,sp,-0x28
lw v0,0x30(a0)
lw v1,0x24(a0)
lui gp,0x4c
sw s2,0x20(sp)
addiu gp,gp,-0x64e0
slt s2,v0,v1
sw s0,0x18(sp)
movz v0,v1,s2
sw s1,0x1c(sp)
sw ra,0x24(sp)
sw gp,0x10(sp)
or s2,v0,zero
lw s0,0x1c(a0)
slt v0,s0,v0
beq v0,zero,0x0047f514
_or s1,a0,zero
lw t9,-0x7724(gp)
jalr t9
_nop
lw v1,0x0(s1)
lw a1,0x18(s1)
lw a0,0x40(s1)
addu v1,v1,s0
addu v1,v1,a1
bne a0,zero,0x0047f534
_lbu v1,0x0(v1)
lw a1,0x0(v0)
sll v1,v1,0x2
lw a0,0x4(s1)
addu v1,a1,v1
addu a0,a0,s0
addiu s0,s0,0x1
lw v1,0x0(v1)
bne s2,s0,0x0047f4d4
_sb v1,0x0(a0)
lw ra,0x24(sp)
lw s2,0x20(sp)
sw s0,0x1c(s1)
sw s0,0x20(s1)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
addu v1,a0,v1
b 0x0047f4f0
_lbu v1,0x0(v1)
(translation_unit "void FUN_0047f484(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  \n  iVar1 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar1 = param_1[9];\n  }\n  iVar5 = param_1[7];\n  if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }\n  param_1[7] = iVar5;\n  param_1[8] = iVar5;\n  return;\n}\n\n" (function_definition "void FUN_0047f484(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  \n  iVar1 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar1 = param_1[9];\n  }\n  iVar5 = param_1[7];\n  if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }\n  param_1[7] = iVar5;\n  param_1[8] = iVar5;\n  return;\n}" primitive_type (function_declarator "FUN_0047f484(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  \n  iVar1 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar1 = param_1[9];\n  }\n  iVar5 = param_1[7];\n  if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }\n  param_1[7] = iVar5;\n  param_1[8] = iVar5;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar1 = param_1[0xc];" (assignment_expression "iVar1 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) (if_statement "if (param_1[9] <= param_1[0xc]) {\n    iVar1 = param_1[9];\n  }" if (parenthesized_expression "(param_1[9] <= param_1[0xc])" ( (binary_expression "param_1[9] <= param_1[0xc]" (subscript_expression "param_1[9]" identifier [ number_literal ]) <= (subscript_expression "param_1[0xc]" identifier [ number_literal ])) )) (compound_statement "{\n    iVar1 = param_1[9];\n  }" { (expression_statement "iVar1 = param_1[9];" (assignment_expression "iVar1 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) })) (expression_statement "iVar5 = param_1[7];" (assignment_expression "iVar5 = param_1[7]" identifier = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (if_statement "if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }" if (parenthesized_expression "(iVar5 < iVar1)" ( (binary_expression "iVar5 < iVar1" identifier < identifier) )) (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }" { (expression_statement "piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_toupper_loc_004b23fc)()" (parenthesized_expression "(*(code *)PTR___ctype_toupper_loc_004b23fc)" ( (pointer_expression "*(code *)PTR___ctype_toupper_loc_004b23fc" * (cast_expression "(code *)PTR___ctype_toupper_loc_004b23fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (do_statement "do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);" do (compound_statement "{\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    }" { (expression_statement "uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);" (assignment_expression "uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6])" identifier = (binary_expression "(uint)*(byte *)(*param_1 + iVar5 + param_1[6])" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + iVar5 + param_1[6])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar5 + param_1[6])" ( (binary_expression "*param_1 + iVar5 + param_1[6]" (binary_expression "*param_1 + iVar5" (pointer_expression "*param_1" * identifier) + identifier) + (subscript_expression "param_1[6]" identifier [ number_literal ])) ))))) ;) (if_statement "if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }" if (parenthesized_expression "(param_1[0x10] != 0)" ( (binary_expression "param_1[0x10] != 0" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }" { (expression_statement "uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);" (assignment_expression "uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3)" identifier = (binary_expression "(uint)*(byte *)(param_1[0x10] + uVar3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1[0x10] + uVar3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x10] + uVar3)" ( (binary_expression "param_1[0x10] + uVar3" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) + identifier) ))))) ;) })) (expression_statement "puVar4 = (undefined1 *)(param_1[1] + iVar5);" (assignment_expression "puVar4 = (undefined1 *)(param_1[1] + iVar5)" identifier = (cast_expression "(undefined1 *)(param_1[1] + iVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[1] + iVar5)" ( (binary_expression "param_1[1] + iVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);" (assignment_expression "*puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4)" (pointer_expression "*puVar4" * identifier) = (cast_expression "(char)*(undefined4 *)(*piVar2 + uVar3 * 4)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(undefined4 *)(*piVar2 + uVar3 * 4)" * (cast_expression "(undefined4 *)(*piVar2 + uVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + uVar3 * 4)" ( (binary_expression "*piVar2 + uVar3 * 4" (pointer_expression "*piVar2" * identifier) + (binary_expression "uVar3 * 4" identifier * number_literal)) )))))) ;) }) while (parenthesized_expression "(iVar1 != iVar5)" ( (binary_expression "iVar1 != iVar5" identifier != identifier) )) ;) })) (expression_statement "param_1[7] = iVar5;" (assignment_expression "param_1[7] = iVar5" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[8] = iVar5;" (assignment_expression "param_1[8] = iVar5" (subscript_expression "param_1[8]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid build_upper_buffer(re_string_t *pstr)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  uchar *puVar4;\n  int iVar5;\n  \n  iVar1 = pstr->len;\n  if (pstr->bufs_len <= pstr->len) {\n    iVar1 = pstr->bufs_len;\n  }\n  iVar5 = pstr->valid_len;\n  if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)pstr->raw_mbs[pstr->raw_mbs_idx + iVar5];\n      if (pstr->trans != (uchar *)0x0) {\n        uVar3 = (uint)pstr->trans[uVar3];\n      }\n      puVar4 = pstr->mbs + iVar5;\n      iVar5 = iVar5 + 1;\n      *puVar4 = (uchar)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }\n  pstr->valid_len = iVar5;\n  pstr->valid_raw_len = iVar5;\n  return;\n}\n\n" comment (function_definition "void build_upper_buffer(re_string_t *pstr)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  uchar *puVar4;\n  int iVar5;\n  \n  iVar1 = pstr->len;\n  if (pstr->bufs_len <= pstr->len) {\n    iVar1 = pstr->bufs_len;\n  }\n  iVar5 = pstr->valid_len;\n  if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)pstr->raw_mbs[pstr->raw_mbs_idx + iVar5];\n      if (pstr->trans != (uchar *)0x0) {\n        uVar3 = (uint)pstr->trans[uVar3];\n      }\n      puVar4 = pstr->mbs + iVar5;\n      iVar5 = iVar5 + 1;\n      *puVar4 = (uchar)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }\n  pstr->valid_len = iVar5;\n  pstr->valid_raw_len = iVar5;\n  return;\n}" primitive_type (function_declarator "build_upper_buffer(re_string_t *pstr)" identifier (parameter_list "(re_string_t *pstr)" ( (parameter_declaration "re_string_t *pstr" type_identifier (pointer_declarator "*pstr" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  uchar *puVar4;\n  int iVar5;\n  \n  iVar1 = pstr->len;\n  if (pstr->bufs_len <= pstr->len) {\n    iVar1 = pstr->bufs_len;\n  }\n  iVar5 = pstr->valid_len;\n  if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)pstr->raw_mbs[pstr->raw_mbs_idx + iVar5];\n      if (pstr->trans != (uchar *)0x0) {\n        uVar3 = (uint)pstr->trans[uVar3];\n      }\n      puVar4 = pstr->mbs + iVar5;\n      iVar5 = iVar5 + 1;\n      *puVar4 = (uchar)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }\n  pstr->valid_len = iVar5;\n  pstr->valid_raw_len = iVar5;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uchar *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar1 = pstr->len;" (assignment_expression "iVar1 = pstr->len" identifier = (field_expression "pstr->len" identifier -> field_identifier)) ;) (if_statement "if (pstr->bufs_len <= pstr->len) {\n    iVar1 = pstr->bufs_len;\n  }" if (parenthesized_expression "(pstr->bufs_len <= pstr->len)" ( (binary_expression "pstr->bufs_len <= pstr->len" (field_expression "pstr->bufs_len" identifier -> field_identifier) <= (field_expression "pstr->len" identifier -> field_identifier)) )) (compound_statement "{\n    iVar1 = pstr->bufs_len;\n  }" { (expression_statement "iVar1 = pstr->bufs_len;" (assignment_expression "iVar1 = pstr->bufs_len" identifier = (field_expression "pstr->bufs_len" identifier -> field_identifier)) ;) })) (expression_statement "iVar5 = pstr->valid_len;" (assignment_expression "iVar5 = pstr->valid_len" identifier = (field_expression "pstr->valid_len" identifier -> field_identifier)) ;) (if_statement "if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)pstr->raw_mbs[pstr->raw_mbs_idx + iVar5];\n      if (pstr->trans != (uchar *)0x0) {\n        uVar3 = (uint)pstr->trans[uVar3];\n      }\n      puVar4 = pstr->mbs + iVar5;\n      iVar5 = iVar5 + 1;\n      *puVar4 = (uchar)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }" if (parenthesized_expression "(iVar5 < iVar1)" ( (binary_expression "iVar5 < iVar1" identifier < identifier) )) (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)pstr->raw_mbs[pstr->raw_mbs_idx + iVar5];\n      if (pstr->trans != (uchar *)0x0) {\n        uVar3 = (uint)pstr->trans[uVar3];\n      }\n      puVar4 = pstr->mbs + iVar5;\n      iVar5 = iVar5 + 1;\n      *puVar4 = (uchar)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }" { (expression_statement "piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_toupper_loc_004b23fc)()" (parenthesized_expression "(*(code *)PTR___ctype_toupper_loc_004b23fc)" ( (pointer_expression "*(code *)PTR___ctype_toupper_loc_004b23fc" * (cast_expression "(code *)PTR___ctype_toupper_loc_004b23fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (do_statement "do {\n      uVar3 = (uint)pstr->raw_mbs[pstr->raw_mbs_idx + iVar5];\n      if (pstr->trans != (uchar *)0x0) {\n        uVar3 = (uint)pstr->trans[uVar3];\n      }\n      puVar4 = pstr->mbs + iVar5;\n      iVar5 = iVar5 + 1;\n      *puVar4 = (uchar)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);" do (compound_statement "{\n      uVar3 = (uint)pstr->raw_mbs[pstr->raw_mbs_idx + iVar5];\n      if (pstr->trans != (uchar *)0x0) {\n        uVar3 = (uint)pstr->trans[uVar3];\n      }\n      puVar4 = pstr->mbs + iVar5;\n      iVar5 = iVar5 + 1;\n      *puVar4 = (uchar)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    }" { (expression_statement "uVar3 = (uint)pstr->raw_mbs[pstr->raw_mbs_idx + iVar5];" (assignment_expression "uVar3 = (uint)pstr->raw_mbs[pstr->raw_mbs_idx + iVar5]" identifier = (cast_expression "(uint)pstr->raw_mbs[pstr->raw_mbs_idx + iVar5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pstr->raw_mbs[pstr->raw_mbs_idx + iVar5]" (field_expression "pstr->raw_mbs" identifier -> field_identifier) [ (binary_expression "pstr->raw_mbs_idx + iVar5" (field_expression "pstr->raw_mbs_idx" identifier -> field_identifier) + identifier) ]))) ;) (if_statement "if (pstr->trans != (uchar *)0x0) {\n        uVar3 = (uint)pstr->trans[uVar3];\n      }" if (parenthesized_expression "(pstr->trans != (uchar *)0x0)" ( (binary_expression "pstr->trans != (uchar *)0x0" (field_expression "pstr->trans" identifier -> field_identifier) != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar3 = (uint)pstr->trans[uVar3];\n      }" { (expression_statement "uVar3 = (uint)pstr->trans[uVar3];" (assignment_expression "uVar3 = (uint)pstr->trans[uVar3]" identifier = (cast_expression "(uint)pstr->trans[uVar3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pstr->trans[uVar3]" (field_expression "pstr->trans" identifier -> field_identifier) [ identifier ]))) ;) })) (expression_statement "puVar4 = pstr->mbs + iVar5;" (assignment_expression "puVar4 = pstr->mbs + iVar5" identifier = (binary_expression "pstr->mbs + iVar5" (field_expression "pstr->mbs" identifier -> field_identifier) + identifier)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar4 = (uchar)*(undefined4 *)(*piVar2 + uVar3 * 4);" (assignment_expression "*puVar4 = (uchar)*(undefined4 *)(*piVar2 + uVar3 * 4)" (pointer_expression "*puVar4" * identifier) = (binary_expression "(uchar)*(undefined4 *)(*piVar2 + uVar3 * 4)" (parenthesized_expression "(uchar)" ( identifier )) * (cast_expression "(undefined4 *)(*piVar2 + uVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + uVar3 * 4)" ( (binary_expression "*piVar2 + uVar3 * 4" (pointer_expression "*piVar2" * identifier) + (binary_expression "uVar3 * 4" identifier * number_literal)) ))))) ;) }) while (parenthesized_expression "(iVar1 != iVar5)" ( (binary_expression "iVar1 != iVar5" identifier != identifier) )) ;) })) (expression_statement "pstr->valid_len = iVar5;" (assignment_expression "pstr->valid_len = iVar5" (field_expression "pstr->valid_len" identifier -> field_identifier) = identifier) ;) (expression_statement "pstr->valid_raw_len = iVar5;" (assignment_expression "pstr->valid_raw_len = iVar5" (field_expression "pstr->valid_raw_len" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0047f484(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  \n  iVar1 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar1 = param_1[9];\n  }\n  iVar5 = param_1[7];\n  if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }\n  param_1[7] = iVar5;\n  param_1[8] = iVar5;\n  return;\n}\n\n" (function_definition "void FUN_0047f484(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  \n  iVar1 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar1 = param_1[9];\n  }\n  iVar5 = param_1[7];\n  if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }\n  param_1[7] = iVar5;\n  param_1[8] = iVar5;\n  return;\n}" primitive_type (function_declarator "FUN_0047f484(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  \n  iVar1 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar1 = param_1[9];\n  }\n  iVar5 = param_1[7];\n  if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }\n  param_1[7] = iVar5;\n  param_1[8] = iVar5;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar1 = param_1[0xc];" (assignment_expression "iVar1 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) (if_statement "if (param_1[9] <= param_1[0xc]) {\n    iVar1 = param_1[9];\n  }" if (parenthesized_expression "(param_1[9] <= param_1[0xc])" ( (binary_expression "param_1[9] <= param_1[0xc]" (subscript_expression "param_1[9]" identifier [ number_literal ]) <= (subscript_expression "param_1[0xc]" identifier [ number_literal ])) )) (compound_statement "{\n    iVar1 = param_1[9];\n  }" { (expression_statement "iVar1 = param_1[9];" (assignment_expression "iVar1 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) })) (expression_statement "iVar5 = param_1[7];" (assignment_expression "iVar5 = param_1[7]" identifier = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (if_statement "if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }" if (parenthesized_expression "(iVar5 < iVar1)" ( (binary_expression "iVar5 < iVar1" identifier < identifier) )) (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }" { (expression_statement "piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_toupper_loc_004b23fc)()" (parenthesized_expression "(*(code *)PTR___ctype_toupper_loc_004b23fc)" ( (pointer_expression "*(code *)PTR___ctype_toupper_loc_004b23fc" * (cast_expression "(code *)PTR___ctype_toupper_loc_004b23fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (do_statement "do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);" do (compound_statement "{\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    }" { (expression_statement "uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);" (assignment_expression "uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6])" identifier = (binary_expression "(uint)*(byte *)(*param_1 + iVar5 + param_1[6])" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + iVar5 + param_1[6])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar5 + param_1[6])" ( (binary_expression "*param_1 + iVar5 + param_1[6]" (binary_expression "*param_1 + iVar5" (pointer_expression "*param_1" * identifier) + identifier) + (subscript_expression "param_1[6]" identifier [ number_literal ])) ))))) ;) (if_statement "if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }" if (parenthesized_expression "(param_1[0x10] != 0)" ( (binary_expression "param_1[0x10] != 0" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }" { (expression_statement "uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);" (assignment_expression "uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3)" identifier = (binary_expression "(uint)*(byte *)(param_1[0x10] + uVar3)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1[0x10] + uVar3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x10] + uVar3)" ( (binary_expression "param_1[0x10] + uVar3" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) + identifier) ))))) ;) })) (expression_statement "puVar4 = (undefined1 *)(param_1[1] + iVar5);" (assignment_expression "puVar4 = (undefined1 *)(param_1[1] + iVar5)" identifier = (cast_expression "(undefined1 *)(param_1[1] + iVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[1] + iVar5)" ( (binary_expression "param_1[1] + iVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);" (assignment_expression "*puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4)" (pointer_expression "*puVar4" * identifier) = (cast_expression "(char)*(undefined4 *)(*piVar2 + uVar3 * 4)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(undefined4 *)(*piVar2 + uVar3 * 4)" * (cast_expression "(undefined4 *)(*piVar2 + uVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + uVar3 * 4)" ( (binary_expression "*piVar2 + uVar3 * 4" (pointer_expression "*piVar2" * identifier) + (binary_expression "uVar3 * 4" identifier * number_literal)) )))))) ;) }) while (parenthesized_expression "(iVar1 != iVar5)" ( (binary_expression "iVar1 != iVar5" identifier != identifier) )) ;) })) (expression_statement "param_1[7] = iVar5;" (assignment_expression "param_1[7] = iVar5" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[8] = iVar5;" (assignment_expression "param_1[8] = iVar5" (subscript_expression "param_1[8]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (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 ( ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + IDENT) + (subscript_expression IDENT [ LIT ])) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0047f484(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  \n  iVar1 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar1 = param_1[9];\n  }\n  iVar5 = param_1[7];\n  if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }\n  param_1[7] = iVar5;\n  param_1[8] = iVar5;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0047f484(int *param_1)" (identifier "FUN_0047f484") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  \n  iVar1 = param_1[0xc];\n  if (param_1[9] <= param_1[0xc]) {\n    iVar1 = param_1[9];\n  }\n  iVar5 = param_1[7];\n  if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }\n  param_1[7] = iVar5;\n  param_1[8] = iVar5;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "iVar1 = param_1[0xc];" (assignment_expression "iVar1 = param_1[0xc]" (identifier "iVar1") (= "=") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) (; ";")) (if_statement "if (param_1[9] <= param_1[0xc]) {\n    iVar1 = param_1[9];\n  }" (if "if") (parenthesized_expression "(param_1[9] <= param_1[0xc])" (( "(") (binary_expression "param_1[9] <= param_1[0xc]" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (<= "<=") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) () ")")) (compound_statement "{\n    iVar1 = param_1[9];\n  }" ({ "{") (expression_statement "iVar1 = param_1[9];" (assignment_expression "iVar1 = param_1[9]" (identifier "iVar1") (= "=") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (; ";")) (} "}"))) (expression_statement "iVar5 = param_1[7];" (assignment_expression "iVar5 = param_1[7]" (identifier "iVar5") (= "=") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))) (; ";")) (if_statement "if (iVar5 < iVar1) {\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }" (if "if") (parenthesized_expression "(iVar5 < iVar1)" (( "(") (binary_expression "iVar5 < iVar1" (identifier "iVar5") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();\n    do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);\n  }" ({ "{") (expression_statement "piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)()" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_toupper_loc_004b23fc)()" (parenthesized_expression "(*(code *)PTR___ctype_toupper_loc_004b23fc)" (( "(") (pointer_expression "*(code *)PTR___ctype_toupper_loc_004b23fc" (* "*") (cast_expression "(code *)PTR___ctype_toupper_loc_004b23fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_toupper_loc_004b23fc"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (do_statement "do {\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    } while (iVar1 != iVar5);" (do "do") (compound_statement "{\n      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);\n      if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }\n      puVar4 = (undefined1 *)(param_1[1] + iVar5);\n      iVar5 = iVar5 + 1;\n      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);\n    }" ({ "{") (expression_statement "uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);" (assignment_expression "uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6])" (identifier "uVar3") (= "=") (binary_expression "(uint)*(byte *)(*param_1 + iVar5 + param_1[6])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(*param_1 + iVar5 + param_1[6])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar5 + param_1[6])" (( "(") (binary_expression "*param_1 + iVar5 + param_1[6]" (binary_expression "*param_1 + iVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "iVar5")) (+ "+") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) () ")"))))) (; ";")) (if_statement "if (param_1[0x10] != 0) {\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }" (if "if") (parenthesized_expression "(param_1[0x10] != 0)" (( "(") (binary_expression "param_1[0x10] != 0" (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);\n      }" ({ "{") (expression_statement "uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);" (assignment_expression "uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3)" (identifier "uVar3") (= "=") (binary_expression "(uint)*(byte *)(param_1[0x10] + uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_1[0x10] + uVar3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[0x10] + uVar3)" (( "(") (binary_expression "param_1[0x10] + uVar3" (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]")) (+ "+") (identifier "uVar3")) () ")"))))) (; ";")) (} "}"))) (expression_statement "puVar4 = (undefined1 *)(param_1[1] + iVar5);" (assignment_expression "puVar4 = (undefined1 *)(param_1[1] + iVar5)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)(param_1[1] + iVar5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[1] + iVar5)" (( "(") (binary_expression "param_1[1] + iVar5" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "iVar5")) () ")")))) (; ";")) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);" (assignment_expression "*puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4)" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (cast_expression "(char)*(undefined4 *)(*piVar2 + uVar3 * 4)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*(undefined4 *)(*piVar2 + uVar3 * 4)" (* "*") (cast_expression "(undefined4 *)(*piVar2 + uVar3 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + uVar3 * 4)" (( "(") (binary_expression "*piVar2 + uVar3 * 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (binary_expression "uVar3 * 4" (identifier "uVar3") (* "*") (number_literal "4"))) () ")")))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != iVar5)" (( "(") (binary_expression "iVar1 != iVar5" (identifier "iVar1") (!= "!=") (identifier "iVar5")) () ")")) (; ";")) (} "}"))) (expression_statement "param_1[7] = iVar5;" (assignment_expression "param_1[7] = iVar5" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "param_1[8] = iVar5;" (assignment_expression "param_1[8] = iVar5" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))))))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))))

void MASKED(int *param_1)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  undefined1 *puVar4;
  int iVar5;
  
  iVar1 = param_1[0xc];
  if (param_1[9] <= param_1[0xc]) {
    iVar1 = param_1[9];
  }
  iVar5 = param_1[7];
  if (iVar5 < iVar1) {
    piVar2 = (int *)(*(code *)PTR___ctype_toupper_loc_004b23fc)();
    do {
      uVar3 = (uint)*(byte *)(*param_1 + iVar5 + param_1[6]);
      if (param_1[0x10] != 0) {
        uVar3 = (uint)*(byte *)(param_1[0x10] + uVar3);
      }
      puVar4 = (undefined1 *)(param_1[1] + iVar5);
      iVar5 = iVar5 + 1;
      *puVar4 = (char)*(undefined4 *)(*piVar2 + uVar3 * 4);
    } while (iVar1 != iVar5);
  }
  param_1[7] = iVar5;
  param_1[8] = iVar5;
  return;
}

