
void compile_regex(regex_data *regex)

{
  undefined *puVar1;
  size_t length;
  char *pcVar2;
  undefined4 uVar3;
  uchar *puVar4;
  undefined1 *puVar5;
  int iVar6;
  int iVar7;
  char *pcVar8;
  int *piVar9;
  undefined *puVar10;
  
  (regex->pattern).fastmap = regex->fastmap;
  puVar10 = PTR_DAT_00045128;
  pcVar8 = regex->string;
  (regex->pattern).buffer = (re_dfa_t *)0x0;
  (regex->pattern).allocated = 0;
  puVar1 = PTR_strlen_00045330;
  puVar4 = (uchar *)(uint)(byte)puVar10[0x5a18];
  if (puVar4 != (uchar *)0x0) {
    puVar4 = PTR_DAT_00045128 + 0x56c4;
  }
  (regex->pattern).translate = puVar4;
  length = (*(code *)puVar1)(pcVar8);
  pcVar2 = rpl_re_compile_pattern(pcVar8,length,&regex->pattern);
  if (pcVar2 == (char *)0x0) {
    rpl_re_compile_fastmap(&regex->pattern);
    return;
  }
  uVar3 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);
  pcVar8 = quote(pcVar8);
  iVar6 = 1;
  puVar10 = PTR_error_0004535c;
  (*(code *)PTR_error_0004535c)(1,0,uVar3,pcVar2,pcVar8);
  if (0 < iVar6) {
    piVar9 = *(int **)(puVar10 + 0x2fd9c);
    do {
      iVar7 = *piVar9;
      puVar5 = *(undefined1 **)(iVar7 + 0x14);
      if (puVar5 < *(undefined1 **)(iVar7 + 0x18)) {
        *(undefined1 **)(iVar7 + 0x14) = puVar5 + 1;
        *puVar5 = 0x20;
      }
      else {
        (**(code **)(puVar10 + 0x2fd7c))(iVar7,0x20);
      }
      iVar6 = iVar6 + -1;
    } while (iVar6 != 0);
    return;
  }
  return;
}



void FUN_00015474(undefined4 *param_1)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  undefined *puVar4;
  undefined1 *puVar5;
  int iVar6;
  undefined4 uVar7;
  int *piVar8;
  
  param_1[5] = param_1 + 9;
  puVar4 = PTR_DAT_00045128;
  uVar7 = *param_1;
  param_1[1] = 0;
  param_1[2] = 0;
  puVar1 = PTR_strlen_00045330;
  puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18];
  if (puVar4 != (undefined *)0x0) {
    puVar4 = PTR_DAT_00045128 + 0x56c4;
  }
  param_1[6] = puVar4;
  uVar2 = (*(code *)puVar1)(uVar7);
  iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1);
  if (iVar3 == 0) {
    rpl_re_compile_fastmap(param_1 + 1);
    return;
  }
  uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);
  uVar7 = quote(uVar7);
  iVar6 = 1;
  puVar4 = PTR_error_0004535c;
  (*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7);
  if (0 < iVar6) {
    piVar8 = *(int **)(puVar4 + 0x2fd9c);
    do {
      iVar3 = *piVar8;
      puVar5 = *(undefined1 **)(iVar3 + 0x14);
      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {
        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;
        *puVar5 = 0x20;
      }
      else {
        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);
      }
      iVar6 = iVar6 + -1;
    } while (iVar6 != 0);
    return;
  }
  return;
}


lui gp,0x3
addiu gp,gp,0x7c8c
addu gp,gp,t9
addiu sp,sp,-0x30
addiu v1,a0,0x24
or v0,a0,zero
sw gp,0x18(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
sw ra,0x2c(sp)
sw s2,0x28(sp)
sw v1,0x14(a0)
lw v1,-0x7fd8(gp)
lw s0,0x0(a0)
sw zero,0x4(a0)
sw zero,0x8(a0)
lbu v1,0x5a18(v1)
beq v1,zero,0x000154c8
_addiu s1,a0,0x4
lw v1,-0x7fd8(gp)
addiu v1,v1,0x56c4
lw t9,-0x7dd0(gp)
or a0,s0,zero
jalr t9
_sw v1,0x18(v0)
or a2,s1,zero
lw gp,0x18(sp)
or a1,v0,zero
lw t9,-0x7fc0(gp)
bal 0x0002e10c
_or a0,s0,zero
lw gp,0x18(sp)
bne v0,zero,0x0001551c
_or s2,v0,zero
lw ra,0x2c(sp)
or a0,s1,zero
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
lw t9,-0x7fbc(gp)
b 0x0002e1c8
_addiu sp,sp,0x30
lw a1,-0x7fc8(gp)
li a2,0x5
lw t9,-0x7d6c(gp)
or a0,zero,zero
jalr t9
_addiu a1,a1,0x2768
or a0,s0,zero
lw gp,0x18(sp)
lw t9,-0x7fb8(gp)
bal 0x0001a3f0
_or s0,v0,zero
or a1,zero,zero
lw gp,0x18(sp)
li a0,0x1
sw v0,0x10(sp)
or a3,s2,zero
lw t9,-0x7da4(gp)
jalr t9
_or a2,s0,zero
(translation_unit "void FUN_00015474(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  \n  param_1[5] = param_1 + 9;\n  puVar4 = PTR_DAT_00045128;\n  uVar7 = *param_1;\n  param_1[1] = 0;\n  param_1[2] = 0;\n  puVar1 = PTR_strlen_00045330;\n  puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18];\n  if (puVar4 != (undefined *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }\n  param_1[6] = puVar4;\n  uVar2 = (*(code *)puVar1)(uVar7);\n  iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1);\n  if (iVar3 == 0) {\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }\n  uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);\n  uVar7 = quote(uVar7);\n  iVar6 = 1;\n  puVar4 = PTR_error_0004535c;\n  (*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7);\n  if (0 < iVar6) {\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00015474(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  \n  param_1[5] = param_1 + 9;\n  puVar4 = PTR_DAT_00045128;\n  uVar7 = *param_1;\n  param_1[1] = 0;\n  param_1[2] = 0;\n  puVar1 = PTR_strlen_00045330;\n  puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18];\n  if (puVar4 != (undefined *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }\n  param_1[6] = puVar4;\n  uVar2 = (*(code *)puVar1)(uVar7);\n  iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1);\n  if (iVar3 == 0) {\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }\n  uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);\n  uVar7 = quote(uVar7);\n  iVar6 = 1;\n  puVar4 = PTR_error_0004535c;\n  (*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7);\n  if (0 < iVar6) {\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00015474(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  \n  param_1[5] = param_1 + 9;\n  puVar4 = PTR_DAT_00045128;\n  uVar7 = *param_1;\n  param_1[1] = 0;\n  param_1[2] = 0;\n  puVar1 = PTR_strlen_00045330;\n  puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18];\n  if (puVar4 != (undefined *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }\n  param_1[6] = puVar4;\n  uVar2 = (*(code *)puVar1)(uVar7);\n  iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1);\n  if (iVar3 == 0) {\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }\n  uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);\n  uVar7 = quote(uVar7);\n  iVar6 = 1;\n  puVar4 = PTR_error_0004535c;\n  (*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7);\n  if (0 < iVar6) {\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (expression_statement "param_1[5] = param_1 + 9;" (assignment_expression "param_1[5] = param_1 + 9" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (binary_expression "param_1 + 9" identifier + number_literal)) ;) (expression_statement "puVar4 = PTR_DAT_00045128;" (assignment_expression "puVar4 = PTR_DAT_00045128" identifier = identifier) ;) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = PTR_strlen_00045330;" (assignment_expression "puVar1 = PTR_strlen_00045330" identifier = identifier) ;) (expression_statement "puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18];" (assignment_expression "puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18]" identifier = (cast_expression "(undefined *)(uint)(byte)puVar4[0x5a18]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(uint)(byte)puVar4[0x5a18]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar4[0x5a18]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar4[0x5a18]" identifier [ number_literal ]))))) ;) (if_statement "if (puVar4 != (undefined *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }" if (parenthesized_expression "(puVar4 != (undefined *)0x0)" ( (binary_expression "puVar4 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }" { (expression_statement "puVar4 = PTR_DAT_00045128 + 0x56c4;" (assignment_expression "puVar4 = PTR_DAT_00045128 + 0x56c4" identifier = (binary_expression "PTR_DAT_00045128 + 0x56c4" identifier + number_literal)) ;) })) (expression_statement "param_1[6] = puVar4;" (assignment_expression "param_1[6] = puVar4" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = (*(code *)puVar1)(uVar7);" (assignment_expression "uVar2 = (*(code *)puVar1)(uVar7)" identifier = (call_expression "(*(code *)puVar1)(uVar7)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7)" ( identifier )))) ;) (expression_statement "iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1);" (assignment_expression "iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1)" identifier = (call_expression "rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1)" identifier (argument_list "(uVar7,uVar2,param_1 + 1)" ( identifier , identifier , (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }" { (expression_statement "rpl_re_compile_fastmap(param_1 + 1);" (call_expression "rpl_re_compile_fastmap(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00045394)" ( (pointer_expression "*(code *)PTR_dcgettext_00045394" * (cast_expression "(code *)PTR_dcgettext_00045394" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00045138 + 0x2768,5)" ( number_literal , (binary_expression "PTR_LAB_00045138 + 0x2768" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar7 = quote(uVar7);" (assignment_expression "uVar7 = quote(uVar7)" identifier = (call_expression "quote(uVar7)" identifier (argument_list "(uVar7)" ( identifier )))) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "puVar4 = PTR_error_0004535c;" (assignment_expression "puVar4 = PTR_error_0004535c" identifier = identifier) ;) (expression_statement "(*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7);" (call_expression "(*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_error_0004535c)" ( (pointer_expression "*(code *)PTR_error_0004535c" * (cast_expression "(code *)PTR_error_0004535c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0,uVar2,iVar3,uVar7)" ( number_literal , number_literal , identifier , identifier , identifier ))) ;) (if_statement "if (0 < iVar6) {\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }" { (expression_statement "piVar8 = *(int **)(puVar4 + 0x2fd9c);" (assignment_expression "piVar8 = *(int **)(puVar4 + 0x2fd9c)" identifier = (pointer_expression "*(int **)(puVar4 + 0x2fd9c)" * (cast_expression "(int **)(puVar4 + 0x2fd9c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x2fd9c)" ( (binary_expression "puVar4 + 0x2fd9c" identifier + number_literal) ))))) ;) (do_statement "do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);" do (compound_statement "{\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    }" { (expression_statement "iVar3 = *piVar8;" (assignment_expression "iVar3 = *piVar8" identifier = (pointer_expression "*piVar8" * identifier)) ;) (expression_statement "puVar5 = *(undefined1 **)(iVar3 + 0x14);" (assignment_expression "puVar5 = *(undefined1 **)(iVar3 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar3 + 0x14)" * (cast_expression "(undefined1 **)(iVar3 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }" if (parenthesized_expression "(puVar5 < *(undefined1 **)(iVar3 + 0x18))" ( (binary_expression "puVar5 < *(undefined1 **)(iVar3 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar3 + 0x18)" * (cast_expression "(undefined1 **)(iVar3 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }" { (expression_statement "*(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;" (assignment_expression "*(undefined1 **)(iVar3 + 0x14) = puVar5 + 1" (pointer_expression "*(undefined1 **)(iVar3 + 0x14)" * (cast_expression "(undefined1 **)(iVar3 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar5 = 0x20;" (assignment_expression "*puVar5 = 0x20" (pointer_expression "*puVar5" * identifier) = number_literal) ;) }) (else_clause "else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }" else (compound_statement "{\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }" { (expression_statement "(**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);" (call_expression "(**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20)" (parenthesized_expression "(**(code **)(puVar4 + 0x2fd7c))" ( (pointer_expression "**(code **)(puVar4 + 0x2fd7c)" * (pointer_expression "*(code **)(puVar4 + 0x2fd7c)" * (cast_expression "(code **)(puVar4 + 0x2fd7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x2fd7c)" ( (binary_expression "puVar4 + 0x2fd7c" identifier + number_literal) ))))) )) (argument_list "(iVar3,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void compile_regex(regex_data *regex)\n\n{\n  undefined *puVar1;\n  size_t length;\n  char *pcVar2;\n  undefined4 uVar3;\n  uchar *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  int iVar7;\n  char *pcVar8;\n  int *piVar9;\n  undefined *puVar10;\n  \n  (regex->pattern).fastmap = regex->fastmap;\n  puVar10 = PTR_DAT_00045128;\n  pcVar8 = regex->string;\n  (regex->pattern).buffer = (re_dfa_t *)0x0;\n  (regex->pattern).allocated = 0;\n  puVar1 = PTR_strlen_00045330;\n  puVar4 = (uchar *)(uint)(byte)puVar10[0x5a18];\n  if (puVar4 != (uchar *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }\n  (regex->pattern).translate = puVar4;\n  length = (*(code *)puVar1)(pcVar8);\n  pcVar2 = rpl_re_compile_pattern(pcVar8,length,&regex->pattern);\n  if (pcVar2 == (char *)0x0) {\n    rpl_re_compile_fastmap(&regex->pattern);\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);\n  pcVar8 = quote(pcVar8);\n  iVar6 = 1;\n  puVar10 = PTR_error_0004535c;\n  (*(code *)PTR_error_0004535c)(1,0,uVar3,pcVar2,pcVar8);\n  if (0 < iVar6) {\n    piVar9 = *(int **)(puVar10 + 0x2fd9c);\n    do {\n      iVar7 = *piVar9;\n      puVar5 = *(undefined1 **)(iVar7 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar7 + 0x18)) {\n        *(undefined1 **)(iVar7 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar10 + 0x2fd7c))(iVar7,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void compile_regex(regex_data *regex)\n\n{\n  undefined *puVar1;\n  size_t length;\n  char *pcVar2;\n  undefined4 uVar3;\n  uchar *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  int iVar7;\n  char *pcVar8;\n  int *piVar9;\n  undefined *puVar10;\n  \n  (regex->pattern).fastmap = regex->fastmap;\n  puVar10 = PTR_DAT_00045128;\n  pcVar8 = regex->string;\n  (regex->pattern).buffer = (re_dfa_t *)0x0;\n  (regex->pattern).allocated = 0;\n  puVar1 = PTR_strlen_00045330;\n  puVar4 = (uchar *)(uint)(byte)puVar10[0x5a18];\n  if (puVar4 != (uchar *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }\n  (regex->pattern).translate = puVar4;\n  length = (*(code *)puVar1)(pcVar8);\n  pcVar2 = rpl_re_compile_pattern(pcVar8,length,&regex->pattern);\n  if (pcVar2 == (char *)0x0) {\n    rpl_re_compile_fastmap(&regex->pattern);\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);\n  pcVar8 = quote(pcVar8);\n  iVar6 = 1;\n  puVar10 = PTR_error_0004535c;\n  (*(code *)PTR_error_0004535c)(1,0,uVar3,pcVar2,pcVar8);\n  if (0 < iVar6) {\n    piVar9 = *(int **)(puVar10 + 0x2fd9c);\n    do {\n      iVar7 = *piVar9;\n      puVar5 = *(undefined1 **)(iVar7 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar7 + 0x18)) {\n        *(undefined1 **)(iVar7 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar10 + 0x2fd7c))(iVar7,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "compile_regex(regex_data *regex)" identifier (parameter_list "(regex_data *regex)" ( (parameter_declaration "regex_data *regex" type_identifier (pointer_declarator "*regex" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  size_t length;\n  char *pcVar2;\n  undefined4 uVar3;\n  uchar *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  int iVar7;\n  char *pcVar8;\n  int *piVar9;\n  undefined *puVar10;\n  \n  (regex->pattern).fastmap = regex->fastmap;\n  puVar10 = PTR_DAT_00045128;\n  pcVar8 = regex->string;\n  (regex->pattern).buffer = (re_dfa_t *)0x0;\n  (regex->pattern).allocated = 0;\n  puVar1 = PTR_strlen_00045330;\n  puVar4 = (uchar *)(uint)(byte)puVar10[0x5a18];\n  if (puVar4 != (uchar *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }\n  (regex->pattern).translate = puVar4;\n  length = (*(code *)puVar1)(pcVar8);\n  pcVar2 = rpl_re_compile_pattern(pcVar8,length,&regex->pattern);\n  if (pcVar2 == (char *)0x0) {\n    rpl_re_compile_fastmap(&regex->pattern);\n    return;\n  }\n  uVar3 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);\n  pcVar8 = quote(pcVar8);\n  iVar6 = 1;\n  puVar10 = PTR_error_0004535c;\n  (*(code *)PTR_error_0004535c)(1,0,uVar3,pcVar2,pcVar8);\n  if (0 < iVar6) {\n    piVar9 = *(int **)(puVar10 + 0x2fd9c);\n    do {\n      iVar7 = *piVar9;\n      puVar5 = *(undefined1 **)(iVar7 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar7 + 0x18)) {\n        *(undefined1 **)(iVar7 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar10 + 0x2fd7c))(iVar7,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t length;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uchar *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (expression_statement "(regex->pattern).fastmap = regex->fastmap;" (assignment_expression "(regex->pattern).fastmap = regex->fastmap" (field_expression "(regex->pattern).fastmap" (parenthesized_expression "(regex->pattern)" ( (field_expression "regex->pattern" identifier -> field_identifier) )) . field_identifier) = (field_expression "regex->fastmap" identifier -> field_identifier)) ;) (expression_statement "puVar10 = PTR_DAT_00045128;" (assignment_expression "puVar10 = PTR_DAT_00045128" identifier = identifier) ;) (expression_statement "pcVar8 = regex->string;" (assignment_expression "pcVar8 = regex->string" identifier = (field_expression "regex->string" identifier -> field_identifier)) ;) (expression_statement "(regex->pattern).buffer = (re_dfa_t *)0x0;" (assignment_expression "(regex->pattern).buffer = (re_dfa_t *)0x0" (field_expression "(regex->pattern).buffer" (parenthesized_expression "(regex->pattern)" ( (field_expression "regex->pattern" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(re_dfa_t *)0x0" ( (type_descriptor "re_dfa_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(regex->pattern).allocated = 0;" (assignment_expression "(regex->pattern).allocated = 0" (field_expression "(regex->pattern).allocated" (parenthesized_expression "(regex->pattern)" ( (field_expression "regex->pattern" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "puVar1 = PTR_strlen_00045330;" (assignment_expression "puVar1 = PTR_strlen_00045330" identifier = identifier) ;) (expression_statement "puVar4 = (uchar *)(uint)(byte)puVar10[0x5a18];" (assignment_expression "puVar4 = (uchar *)(uint)(byte)puVar10[0x5a18]" identifier = (cast_expression "(uchar *)(uint)(byte)puVar10[0x5a18]" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(uint)(byte)puVar10[0x5a18]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar10[0x5a18]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar10[0x5a18]" identifier [ number_literal ]))))) ;) (if_statement "if (puVar4 != (uchar *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }" if (parenthesized_expression "(puVar4 != (uchar *)0x0)" ( (binary_expression "puVar4 != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }" { (expression_statement "puVar4 = PTR_DAT_00045128 + 0x56c4;" (assignment_expression "puVar4 = PTR_DAT_00045128 + 0x56c4" identifier = (binary_expression "PTR_DAT_00045128 + 0x56c4" identifier + number_literal)) ;) })) (expression_statement "(regex->pattern).translate = puVar4;" (assignment_expression "(regex->pattern).translate = puVar4" (field_expression "(regex->pattern).translate" (parenthesized_expression "(regex->pattern)" ( (field_expression "regex->pattern" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "length = (*(code *)puVar1)(pcVar8);" (assignment_expression "length = (*(code *)puVar1)(pcVar8)" identifier = (call_expression "(*(code *)puVar1)(pcVar8)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8)" ( identifier )))) ;) (expression_statement "pcVar2 = rpl_re_compile_pattern(pcVar8,length,&regex->pattern);" (assignment_expression "pcVar2 = rpl_re_compile_pattern(pcVar8,length,&regex->pattern)" identifier = (call_expression "rpl_re_compile_pattern(pcVar8,length,&regex->pattern)" identifier (argument_list "(pcVar8,length,&regex->pattern)" ( identifier , identifier , (pointer_expression "&regex->pattern" & (field_expression "regex->pattern" identifier -> field_identifier)) )))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n    rpl_re_compile_fastmap(&regex->pattern);\n    return;\n  }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    rpl_re_compile_fastmap(&regex->pattern);\n    return;\n  }" { (expression_statement "rpl_re_compile_fastmap(&regex->pattern);" (call_expression "rpl_re_compile_fastmap(&regex->pattern)" identifier (argument_list "(&regex->pattern)" ( (pointer_expression "&regex->pattern" & (field_expression "regex->pattern" identifier -> field_identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00045394)" ( (pointer_expression "*(code *)PTR_dcgettext_00045394" * (cast_expression "(code *)PTR_dcgettext_00045394" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00045138 + 0x2768,5)" ( number_literal , (binary_expression "PTR_LAB_00045138 + 0x2768" identifier + number_literal) , number_literal )))) ;) (expression_statement "pcVar8 = quote(pcVar8);" (assignment_expression "pcVar8 = quote(pcVar8)" identifier = (call_expression "quote(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier )))) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "puVar10 = PTR_error_0004535c;" (assignment_expression "puVar10 = PTR_error_0004535c" identifier = identifier) ;) (expression_statement "(*(code *)PTR_error_0004535c)(1,0,uVar3,pcVar2,pcVar8);" (call_expression "(*(code *)PTR_error_0004535c)(1,0,uVar3,pcVar2,pcVar8)" (parenthesized_expression "(*(code *)PTR_error_0004535c)" ( (pointer_expression "*(code *)PTR_error_0004535c" * (cast_expression "(code *)PTR_error_0004535c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0,uVar3,pcVar2,pcVar8)" ( number_literal , number_literal , identifier , identifier , identifier ))) ;) (if_statement "if (0 < iVar6) {\n    piVar9 = *(int **)(puVar10 + 0x2fd9c);\n    do {\n      iVar7 = *piVar9;\n      puVar5 = *(undefined1 **)(iVar7 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar7 + 0x18)) {\n        *(undefined1 **)(iVar7 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar10 + 0x2fd7c))(iVar7,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n    piVar9 = *(int **)(puVar10 + 0x2fd9c);\n    do {\n      iVar7 = *piVar9;\n      puVar5 = *(undefined1 **)(iVar7 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar7 + 0x18)) {\n        *(undefined1 **)(iVar7 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar10 + 0x2fd7c))(iVar7,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }" { (expression_statement "piVar9 = *(int **)(puVar10 + 0x2fd9c);" (assignment_expression "piVar9 = *(int **)(puVar10 + 0x2fd9c)" identifier = (pointer_expression "*(int **)(puVar10 + 0x2fd9c)" * (cast_expression "(int **)(puVar10 + 0x2fd9c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x2fd9c)" ( (binary_expression "puVar10 + 0x2fd9c" identifier + number_literal) ))))) ;) (do_statement "do {\n      iVar7 = *piVar9;\n      puVar5 = *(undefined1 **)(iVar7 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar7 + 0x18)) {\n        *(undefined1 **)(iVar7 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar10 + 0x2fd7c))(iVar7,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);" do (compound_statement "{\n      iVar7 = *piVar9;\n      puVar5 = *(undefined1 **)(iVar7 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar7 + 0x18)) {\n        *(undefined1 **)(iVar7 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar10 + 0x2fd7c))(iVar7,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    }" { (expression_statement "iVar7 = *piVar9;" (assignment_expression "iVar7 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (expression_statement "puVar5 = *(undefined1 **)(iVar7 + 0x14);" (assignment_expression "puVar5 = *(undefined1 **)(iVar7 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar7 + 0x14)" * (cast_expression "(undefined1 **)(iVar7 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar5 < *(undefined1 **)(iVar7 + 0x18)) {\n        *(undefined1 **)(iVar7 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar10 + 0x2fd7c))(iVar7,0x20);\n      }" if (parenthesized_expression "(puVar5 < *(undefined1 **)(iVar7 + 0x18))" ( (binary_expression "puVar5 < *(undefined1 **)(iVar7 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar7 + 0x18)" * (cast_expression "(undefined1 **)(iVar7 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        *(undefined1 **)(iVar7 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }" { (expression_statement "*(undefined1 **)(iVar7 + 0x14) = puVar5 + 1;" (assignment_expression "*(undefined1 **)(iVar7 + 0x14) = puVar5 + 1" (pointer_expression "*(undefined1 **)(iVar7 + 0x14)" * (cast_expression "(undefined1 **)(iVar7 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar5 = 0x20;" (assignment_expression "*puVar5 = 0x20" (pointer_expression "*puVar5" * identifier) = number_literal) ;) }) (else_clause "else {\n        (**(code **)(puVar10 + 0x2fd7c))(iVar7,0x20);\n      }" else (compound_statement "{\n        (**(code **)(puVar10 + 0x2fd7c))(iVar7,0x20);\n      }" { (expression_statement "(**(code **)(puVar10 + 0x2fd7c))(iVar7,0x20);" (call_expression "(**(code **)(puVar10 + 0x2fd7c))(iVar7,0x20)" (parenthesized_expression "(**(code **)(puVar10 + 0x2fd7c))" ( (pointer_expression "**(code **)(puVar10 + 0x2fd7c)" * (pointer_expression "*(code **)(puVar10 + 0x2fd7c)" * (cast_expression "(code **)(puVar10 + 0x2fd7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0x2fd7c)" ( (binary_expression "puVar10 + 0x2fd7c" identifier + number_literal) ))))) )) (argument_list "(iVar7,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00015474(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  \n  param_1[5] = param_1 + 9;\n  puVar4 = PTR_DAT_00045128;\n  uVar7 = *param_1;\n  param_1[1] = 0;\n  param_1[2] = 0;\n  puVar1 = PTR_strlen_00045330;\n  puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18];\n  if (puVar4 != (undefined *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }\n  param_1[6] = puVar4;\n  uVar2 = (*(code *)puVar1)(uVar7);\n  iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1);\n  if (iVar3 == 0) {\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }\n  uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);\n  uVar7 = quote(uVar7);\n  iVar6 = 1;\n  puVar4 = PTR_error_0004535c;\n  (*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7);\n  if (0 < iVar6) {\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00015474(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  \n  param_1[5] = param_1 + 9;\n  puVar4 = PTR_DAT_00045128;\n  uVar7 = *param_1;\n  param_1[1] = 0;\n  param_1[2] = 0;\n  puVar1 = PTR_strlen_00045330;\n  puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18];\n  if (puVar4 != (undefined *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }\n  param_1[6] = puVar4;\n  uVar2 = (*(code *)puVar1)(uVar7);\n  iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1);\n  if (iVar3 == 0) {\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }\n  uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);\n  uVar7 = quote(uVar7);\n  iVar6 = 1;\n  puVar4 = PTR_error_0004535c;\n  (*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7);\n  if (0 < iVar6) {\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00015474(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  \n  param_1[5] = param_1 + 9;\n  puVar4 = PTR_DAT_00045128;\n  uVar7 = *param_1;\n  param_1[1] = 0;\n  param_1[2] = 0;\n  puVar1 = PTR_strlen_00045330;\n  puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18];\n  if (puVar4 != (undefined *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }\n  param_1[6] = puVar4;\n  uVar2 = (*(code *)puVar1)(uVar7);\n  iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1);\n  if (iVar3 == 0) {\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }\n  uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);\n  uVar7 = quote(uVar7);\n  iVar6 = 1;\n  puVar4 = PTR_error_0004535c;\n  (*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7);\n  if (0 < iVar6) {\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (expression_statement "param_1[5] = param_1 + 9;" (assignment_expression "param_1[5] = param_1 + 9" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (binary_expression "param_1 + 9" identifier + number_literal)) ;) (expression_statement "puVar4 = PTR_DAT_00045128;" (assignment_expression "puVar4 = PTR_DAT_00045128" identifier = identifier) ;) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = PTR_strlen_00045330;" (assignment_expression "puVar1 = PTR_strlen_00045330" identifier = identifier) ;) (expression_statement "puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18];" (assignment_expression "puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18]" identifier = (cast_expression "(undefined *)(uint)(byte)puVar4[0x5a18]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(uint)(byte)puVar4[0x5a18]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar4[0x5a18]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar4[0x5a18]" identifier [ number_literal ]))))) ;) (if_statement "if (puVar4 != (undefined *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }" if (parenthesized_expression "(puVar4 != (undefined *)0x0)" ( (binary_expression "puVar4 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }" { (expression_statement "puVar4 = PTR_DAT_00045128 + 0x56c4;" (assignment_expression "puVar4 = PTR_DAT_00045128 + 0x56c4" identifier = (binary_expression "PTR_DAT_00045128 + 0x56c4" identifier + number_literal)) ;) })) (expression_statement "param_1[6] = puVar4;" (assignment_expression "param_1[6] = puVar4" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = (*(code *)puVar1)(uVar7);" (assignment_expression "uVar2 = (*(code *)puVar1)(uVar7)" identifier = (call_expression "(*(code *)puVar1)(uVar7)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7)" ( identifier )))) ;) (expression_statement "iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1);" (assignment_expression "iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1)" identifier = (call_expression "rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1)" identifier (argument_list "(uVar7,uVar2,param_1 + 1)" ( identifier , identifier , (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }" { (expression_statement "rpl_re_compile_fastmap(param_1 + 1);" (call_expression "rpl_re_compile_fastmap(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00045394)" ( (pointer_expression "*(code *)PTR_dcgettext_00045394" * (cast_expression "(code *)PTR_dcgettext_00045394" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_LAB_00045138 + 0x2768,5)" ( number_literal , (binary_expression "PTR_LAB_00045138 + 0x2768" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar7 = quote(uVar7);" (assignment_expression "uVar7 = quote(uVar7)" identifier = (call_expression "quote(uVar7)" identifier (argument_list "(uVar7)" ( identifier )))) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "puVar4 = PTR_error_0004535c;" (assignment_expression "puVar4 = PTR_error_0004535c" identifier = identifier) ;) (expression_statement "(*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7);" (call_expression "(*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_error_0004535c)" ( (pointer_expression "*(code *)PTR_error_0004535c" * (cast_expression "(code *)PTR_error_0004535c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0,uVar2,iVar3,uVar7)" ( number_literal , number_literal , identifier , identifier , identifier ))) ;) (if_statement "if (0 < iVar6) {\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }" { (expression_statement "piVar8 = *(int **)(puVar4 + 0x2fd9c);" (assignment_expression "piVar8 = *(int **)(puVar4 + 0x2fd9c)" identifier = (pointer_expression "*(int **)(puVar4 + 0x2fd9c)" * (cast_expression "(int **)(puVar4 + 0x2fd9c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x2fd9c)" ( (binary_expression "puVar4 + 0x2fd9c" identifier + number_literal) ))))) ;) (do_statement "do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);" do (compound_statement "{\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    }" { (expression_statement "iVar3 = *piVar8;" (assignment_expression "iVar3 = *piVar8" identifier = (pointer_expression "*piVar8" * identifier)) ;) (expression_statement "puVar5 = *(undefined1 **)(iVar3 + 0x14);" (assignment_expression "puVar5 = *(undefined1 **)(iVar3 + 0x14)" identifier = (pointer_expression "*(undefined1 **)(iVar3 + 0x14)" * (cast_expression "(undefined1 **)(iVar3 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }" if (parenthesized_expression "(puVar5 < *(undefined1 **)(iVar3 + 0x18))" ( (binary_expression "puVar5 < *(undefined1 **)(iVar3 + 0x18)" identifier < (pointer_expression "*(undefined1 **)(iVar3 + 0x18)" * (cast_expression "(undefined1 **)(iVar3 + 0x18)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }" { (expression_statement "*(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;" (assignment_expression "*(undefined1 **)(iVar3 + 0x14) = puVar5 + 1" (pointer_expression "*(undefined1 **)(iVar3 + 0x14)" * (cast_expression "(undefined1 **)(iVar3 + 0x14)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar5 = 0x20;" (assignment_expression "*puVar5 = 0x20" (pointer_expression "*puVar5" * identifier) = number_literal) ;) }) (else_clause "else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }" else (compound_statement "{\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }" { (expression_statement "(**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);" (call_expression "(**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20)" (parenthesized_expression "(**(code **)(puVar4 + 0x2fd7c))" ( (pointer_expression "**(code **)(puVar4 + 0x2fd7c)" * (pointer_expression "*(code **)(puVar4 + 0x2fd7c)" * (cast_expression "(code **)(puVar4 + 0x2fd7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x2fd7c)" ( (binary_expression "puVar4 + 0x2fd7c" identifier + number_literal) ))))) )) (argument_list "(iVar3,0x20)" ( identifier , number_literal ))) ;) }))) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT , IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , LIT ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_00015474(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  \n  param_1[5] = param_1 + 9;\n  puVar4 = PTR_DAT_00045128;\n  uVar7 = *param_1;\n  param_1[1] = 0;\n  param_1[2] = 0;\n  puVar1 = PTR_strlen_00045330;\n  puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18];\n  if (puVar4 != (undefined *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }\n  param_1[6] = puVar4;\n  uVar2 = (*(code *)puVar1)(uVar7);\n  iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1);\n  if (iVar3 == 0) {\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }\n  uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);\n  uVar7 = quote(uVar7);\n  iVar6 = 1;\n  puVar4 = PTR_error_0004535c;\n  (*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7);\n  if (0 < iVar6) {\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00015474(undefined4 *param_1)" (identifier "FUN_00015474") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  \n  param_1[5] = param_1 + 9;\n  puVar4 = PTR_DAT_00045128;\n  uVar7 = *param_1;\n  param_1[1] = 0;\n  param_1[2] = 0;\n  puVar1 = PTR_strlen_00045330;\n  puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18];\n  if (puVar4 != (undefined *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }\n  param_1[6] = puVar4;\n  uVar2 = (*(code *)puVar1)(uVar7);\n  iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1);\n  if (iVar3 == 0) {\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }\n  uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);\n  uVar7 = quote(uVar7);\n  iVar6 = 1;\n  puVar4 = PTR_error_0004535c;\n  (*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7);\n  if (0 < iVar6) {\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (expression_statement "param_1[5] = param_1 + 9;" (assignment_expression "param_1[5] = param_1 + 9" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9"))) (; ";")) (expression_statement "puVar4 = PTR_DAT_00045128;" (assignment_expression "puVar4 = PTR_DAT_00045128" (identifier "puVar4") (= "=") (identifier "PTR_DAT_00045128")) (; ";")) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" (identifier "uVar7") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = PTR_strlen_00045330;" (assignment_expression "puVar1 = PTR_strlen_00045330" (identifier "puVar1") (= "=") (identifier "PTR_strlen_00045330")) (; ";")) (expression_statement "puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18];" (assignment_expression "puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18]" (identifier "puVar4") (= "=") (cast_expression "(undefined *)(uint)(byte)puVar4[0x5a18]" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (cast_expression "(uint)(byte)puVar4[0x5a18]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar4[0x5a18]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar4[0x5a18]" (identifier "puVar4") ([ "[") (number_literal "0x5a18") (] "]")))))) (; ";")) (if_statement "if (puVar4 != (undefined *)0x0) {\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }" (if "if") (parenthesized_expression "(puVar4 != (undefined *)0x0)" (( "(") (binary_expression "puVar4 != (undefined *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar4 = PTR_DAT_00045128 + 0x56c4;\n  }" ({ "{") (expression_statement "puVar4 = PTR_DAT_00045128 + 0x56c4;" (assignment_expression "puVar4 = PTR_DAT_00045128 + 0x56c4" (identifier "puVar4") (= "=") (binary_expression "PTR_DAT_00045128 + 0x56c4" (identifier "PTR_DAT_00045128") (+ "+") (number_literal "0x56c4"))) (; ";")) (} "}"))) (expression_statement "param_1[6] = puVar4;" (assignment_expression "param_1[6] = puVar4" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "puVar4")) (; ";")) (expression_statement "uVar2 = (*(code *)puVar1)(uVar7);" (assignment_expression "uVar2 = (*(code *)puVar1)(uVar7)" (identifier "uVar2") (= "=") (call_expression "(*(code *)puVar1)(uVar7)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")")))) (; ";")) (expression_statement "iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1);" (assignment_expression "iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1)" (identifier "iVar3") (= "=") (call_expression "rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1)" (identifier "rpl_re_compile_pattern") (argument_list "(uVar7,uVar2,param_1 + 1)" (( "(") (identifier "uVar7") (, ",") (identifier "uVar2") (, ",") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    rpl_re_compile_fastmap(param_1 + 1);\n    return;\n  }" ({ "{") (expression_statement "rpl_re_compile_fastmap(param_1 + 1);" (call_expression "rpl_re_compile_fastmap(param_1 + 1)" (identifier "rpl_re_compile_fastmap") (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00045394)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_00045394" (* "*") (cast_expression "(code *)PTR_dcgettext_00045394" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_00045394"))) () ")")) (argument_list "(0,PTR_LAB_00045138 + 0x2768,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_LAB_00045138 + 0x2768" (identifier "PTR_LAB_00045138") (+ "+") (number_literal "0x2768")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "uVar7 = quote(uVar7);" (assignment_expression "uVar7 = quote(uVar7)" (identifier "uVar7") (= "=") (call_expression "quote(uVar7)" (identifier "quote") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")")))) (; ";")) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" (identifier "iVar6") (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar4 = PTR_error_0004535c;" (assignment_expression "puVar4 = PTR_error_0004535c" (identifier "puVar4") (= "=") (identifier "PTR_error_0004535c")) (; ";")) (expression_statement "(*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7);" (call_expression "(*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_error_0004535c)" (( "(") (pointer_expression "*(code *)PTR_error_0004535c" (* "*") (cast_expression "(code *)PTR_error_0004535c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_error_0004535c"))) () ")")) (argument_list "(1,0,uVar2,iVar3,uVar7)" (( "(") (number_literal "1") (, ",") (number_literal "0") (, ",") (identifier "uVar2") (, ",") (identifier "iVar3") (, ",") (identifier "uVar7") () ")"))) (; ";")) (if_statement "if (0 < iVar6) {\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }" (if "if") (parenthesized_expression "(0 < iVar6)" (( "(") (binary_expression "0 < iVar6" (number_literal "0") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n    piVar8 = *(int **)(puVar4 + 0x2fd9c);\n    do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    return;\n  }" ({ "{") (expression_statement "piVar8 = *(int **)(puVar4 + 0x2fd9c);" (assignment_expression "piVar8 = *(int **)(puVar4 + 0x2fd9c)" (identifier "piVar8") (= "=") (pointer_expression "*(int **)(puVar4 + 0x2fd9c)" (* "*") (cast_expression "(int **)(puVar4 + 0x2fd9c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x2fd9c)" (( "(") (binary_expression "puVar4 + 0x2fd9c" (identifier "puVar4") (+ "+") (number_literal "0x2fd9c")) () ")"))))) (; ";")) (do_statement "do {\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);" (do "do") (compound_statement "{\n      iVar3 = *piVar8;\n      puVar5 = *(undefined1 **)(iVar3 + 0x14);\n      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }\n      iVar6 = iVar6 + -1;\n    }" ({ "{") (expression_statement "iVar3 = *piVar8;" (assignment_expression "iVar3 = *piVar8" (identifier "iVar3") (= "=") (pointer_expression "*piVar8" (* "*") (identifier "piVar8"))) (; ";")) (expression_statement "puVar5 = *(undefined1 **)(iVar3 + 0x14);" (assignment_expression "puVar5 = *(undefined1 **)(iVar3 + 0x14)" (identifier "puVar5") (= "=") (pointer_expression "*(undefined1 **)(iVar3 + 0x14)" (* "*") (cast_expression "(undefined1 **)(iVar3 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }\n      else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }" (if "if") (parenthesized_expression "(puVar5 < *(undefined1 **)(iVar3 + 0x18))" (( "(") (binary_expression "puVar5 < *(undefined1 **)(iVar3 + 0x18)" (identifier "puVar5") (< "<") (pointer_expression "*(undefined1 **)(iVar3 + 0x18)" (* "*") (cast_expression "(undefined1 **)(iVar3 + 0x18)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;\n        *puVar5 = 0x20;\n      }" ({ "{") (expression_statement "*(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;" (assignment_expression "*(undefined1 **)(iVar3 + 0x14) = puVar5 + 1" (pointer_expression "*(undefined1 **)(iVar3 + 0x14)" (* "*") (cast_expression "(undefined1 **)(iVar3 + 0x14)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar5 = 0x20;" (assignment_expression "*puVar5 = 0x20" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0x20")) (; ";")) (} "}")) (else_clause "else {\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }" (else "else") (compound_statement "{\n        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);\n      }" ({ "{") (expression_statement "(**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);" (call_expression "(**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20)" (parenthesized_expression "(**(code **)(puVar4 + 0x2fd7c))" (( "(") (pointer_expression "**(code **)(puVar4 + 0x2fd7c)" (* "*") (pointer_expression "*(code **)(puVar4 + 0x2fd7c)" (* "*") (cast_expression "(code **)(puVar4 + 0x2fd7c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x2fd7c)" (( "(") (binary_expression "puVar4 + 0x2fd7c" (identifier "puVar4") (+ "+") (number_literal "0x2fd7c")) () ")"))))) () ")")) (argument_list "(iVar3,0x20)" (( "(") (identifier "iVar3") (, ",") (number_literal "0x20") () ")"))) (; ";")) (} "}")))) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *regex)

{
  type_2 *puVar1;
  size_t length;
  char *var_4;
  type_3 uVar3;
  type_4 *var_1;
  type_5 *var_11;
  int var_8;
  int var_10;
  char *pcVar8;
  int *piVar9;
  type_2 *var_9;
  
  (regex->pattern).fastmap = regex->fastmap;
  var_9 = var_2;
  pcVar8 = regex->string;
  (regex->pattern).buffer = (type_6 *)0x0;
  (regex->pattern).allocated = 0;
  puVar1 = PTR_strlen_00045330;
  var_1 = (type_4 *)(type_7)(type_8)var_9[0x5a18];
  if (var_1 != (type_4 *)0x0) {
    var_1 = var_2 + 0x56c4;
  }
  (regex->pattern).translate = var_1;
  length = (*(type_9 *)puVar1)(pcVar8);
  var_4 = var_3(pcVar8,length,&regex->pattern);
  if (var_4 == (char *)0x0) {
    var_5(&regex->pattern);
    return;
  }
  uVar3 = (*(type_9 *)PTR_dcgettext_00045394)(0,var_6 + 0x2768,5);
  pcVar8 = var_7(pcVar8);
  var_8 = 1;
  var_9 = PTR_error_0004535c;
  (*(type_9 *)PTR_error_0004535c)(1,0,uVar3,var_4,pcVar8);
  if (0 < var_8) {
    piVar9 = *(int **)(var_9 + 0x2fd9c);
    do {
      var_10 = *piVar9;
      var_11 = *(type_5 **)(var_10 + 0x14);
      if (var_11 < *(type_5 **)(var_10 + 0x18)) {
        *(type_5 **)(var_10 + 0x14) = var_11 + 1;
        *var_11 = 0x20;
      }
      else {
        (**(type_9 **)(var_9 + 0x2fd7c))(var_10,0x20);
      }
      var_8 = var_8 + -1;
    } while (var_8 != 0);
    return;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) 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: (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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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 (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (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 (number_literal) (number_literal) (identifier) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (return_statement))) (return_statement))))

void MASKED(undefined4 *param_1)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  undefined *puVar4;
  undefined1 *puVar5;
  int iVar6;
  undefined4 uVar7;
  int *piVar8;
  
  param_1[5] = param_1 + 9;
  puVar4 = PTR_DAT_00045128;
  uVar7 = *param_1;
  param_1[1] = 0;
  param_1[2] = 0;
  puVar1 = PTR_strlen_00045330;
  puVar4 = (undefined *)(uint)(byte)puVar4[0x5a18];
  if (puVar4 != (undefined *)0x0) {
    puVar4 = PTR_DAT_00045128 + 0x56c4;
  }
  param_1[6] = puVar4;
  uVar2 = (*(code *)puVar1)(uVar7);
  iVar3 = rpl_re_compile_pattern(uVar7,uVar2,param_1 + 1);
  if (iVar3 == 0) {
    rpl_re_compile_fastmap(param_1 + 1);
    return;
  }
  uVar2 = (*(code *)PTR_dcgettext_00045394)(0,PTR_LAB_00045138 + 0x2768,5);
  uVar7 = quote(uVar7);
  iVar6 = 1;
  puVar4 = PTR_error_0004535c;
  (*(code *)PTR_error_0004535c)(1,0,uVar2,iVar3,uVar7);
  if (0 < iVar6) {
    piVar8 = *(int **)(puVar4 + 0x2fd9c);
    do {
      iVar3 = *piVar8;
      puVar5 = *(undefined1 **)(iVar3 + 0x14);
      if (puVar5 < *(undefined1 **)(iVar3 + 0x18)) {
        *(undefined1 **)(iVar3 + 0x14) = puVar5 + 1;
        *puVar5 = 0x20;
      }
      else {
        (**(code **)(puVar4 + 0x2fd7c))(iVar3,0x20);
      }
      iVar6 = iVar6 + -1;
    } while (iVar6 != 0);
    return;
  }
  return;
}

