
/* WARNING: Removing unreachable block (ram,0x000dcdb0) */

int internal_glob_pattern_p(uchar *pattern)

{
  uchar uVar1;
  int iVar2;
  uchar *p;
  int in_t9;
  
  do {
    uVar1 = *pattern;
    pattern = pattern + 1;
    if (uVar1 == '\0') {
      return 0;
    }
  } while (0x3c < (byte)(uVar1 - 0x21));
                    /* WARNING: Could not recover jumptable at 0x000dcd50. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar2 = (*(code *)(*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)
                    + in_t9 + 0x81850))();
  return iVar2;
}



/* WARNING: Removing unreachable block (ram,0x000dcdb0) */

undefined4 FUN_000dccf0(char *param_1)

{
  char cVar1;
  undefined4 uVar2;
  
  do {
    cVar1 = *param_1;
    param_1 = param_1 + 1;
    if (cVar1 == '\0') {
      return 0;
    }
  } while (0x3c < (byte)(cVar1 - 0x21U));
                    /* WARNING: Could not emulate address calculation at 0x000dcd44 */
                    /* WARNING: Treating indirect jump as call */
  uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))
          )();
  return uVar2;
}


lui gp,0x8
addiu gp,gp,0x1850
addu gp,gp,t9
or v0,zero,zero
or t0,zero,zero
lw a2,-0x7f90(gp)
addiu a2,a2,-0x3150
li t2,0x1
b 0x000dcd20
_li t1,0x28
addiu t0,t0,0x1
or a0,a3,zero
lbu v1,0x0(a0)
beq v1,zero,0x000dcd98
_addiu a3,a0,0x1
addiu v1,v1,-0x21
andi a1,v1,0xff
sltiu a1,a1,0x3d
beq a1,zero,0x000dcd1c
_andi v1,v1,0xff
sll v1,v1,0x2
addu v1,a2,v1
lw v1,0x0(v1)
addu v1,v1,gp
jr v1
_nop
beq t0,zero,0x000dcd20
_or a0,a3,zero
jr ra
_li v0,0x1
lbu v1,0x1(a0)
bne v1,t1,0x000dcd20
_or a0,a3,zero
jr ra
_li v0,0x1
lbu v0,0x1(a0)
bne v0,zero,0x000dcd90
_addiu a3,a0,0x2
jr ra
_or v0,zero,zero
b 0x000dcd1c
_or v0,t2,zero
bne v0,zero,0x000dcdb0
_nop
jr ra
_nop
jr ra
_li v0,0x1
jr ra
_li v0,0x2
(translation_unit "/* WARNING: Removing unreachable block (ram,0x000dcdb0) */\n\nundefined4 FUN_000dccf0(char *param_1)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  do {\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(cVar1 - 0x21U));\n                    /* WARNING: Could not emulate address calculation at 0x000dcd44 */\n                    /* WARNING: Treating indirect jump as call */\n  uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )();\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 FUN_000dccf0(char *param_1)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  do {\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(cVar1 - 0x21U));\n                    /* WARNING: Could not emulate address calculation at 0x000dcd44 */\n                    /* WARNING: Treating indirect jump as call */\n  uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )();\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000dccf0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  \n  do {\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(cVar1 - 0x21U));\n                    /* WARNING: Could not emulate address calculation at 0x000dcd44 */\n                    /* WARNING: Treating indirect jump as call */\n  uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )();\n  return uVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (do_statement "do {\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(cVar1 - 0x21U));" do (compound_statement "{\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 == '\0') {\n      return 0;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(0x3c < (byte)(cVar1 - 0x21U))" ( (binary_expression "0x3c < (byte)(cVar1 - 0x21U)" number_literal < (call_expression "(byte)(cVar1 - 0x21U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 - 0x21U)" ( (binary_expression "cVar1 - 0x21U" identifier - number_literal) )))) )) ;) comment comment (expression_statement "uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )();" (assignment_expression "uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )()" identifier = (call_expression "(*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )()" (parenthesized_expression "(*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )" ( (pointer_expression "*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))" * (cast_expression "(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))" ( (binary_expression "&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150)" (pointer_expression "&_gp_1" & identifier) + (pointer_expression "*(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150)" * (cast_expression "(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150)" ( (binary_expression "PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150" (binary_expression "PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4" identifier + (binary_expression "(uint)(byte)(cVar1 - 0x21) * 4" (call_expression "(uint)(byte)(cVar1 - 0x21)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(cVar1 - 0x21)" ( (binary_expression "cVar1 - 0x21" identifier - number_literal) ))) * number_literal)) + number_literal) ))))) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Removing unreachable block (ram,0x000dcdb0) */\n\nint internal_glob_pattern_p(uchar *pattern)\n\n{\n  uchar uVar1;\n  int iVar2;\n  uchar *p;\n  int in_t9;\n  \n  do {\n    uVar1 = *pattern;\n    pattern = pattern + 1;\n    if (uVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(uVar1 - 0x21));\n                    /* WARNING: Could not recover jumptable at 0x000dcd50. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar2 = (*(code *)(*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)\n                    + in_t9 + 0x81850))();\n  return iVar2;\n}\n\n" comment (function_definition "int internal_glob_pattern_p(uchar *pattern)\n\n{\n  uchar uVar1;\n  int iVar2;\n  uchar *p;\n  int in_t9;\n  \n  do {\n    uVar1 = *pattern;\n    pattern = pattern + 1;\n    if (uVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(uVar1 - 0x21));\n                    /* WARNING: Could not recover jumptable at 0x000dcd50. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar2 = (*(code *)(*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)\n                    + in_t9 + 0x81850))();\n  return iVar2;\n}" primitive_type (function_declarator "internal_glob_pattern_p(uchar *pattern)" identifier (parameter_list "(uchar *pattern)" ( (parameter_declaration "uchar *pattern" type_identifier (pointer_declarator "*pattern" * identifier)) ))) (compound_statement "{\n  uchar uVar1;\n  int iVar2;\n  uchar *p;\n  int in_t9;\n  \n  do {\n    uVar1 = *pattern;\n    pattern = pattern + 1;\n    if (uVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(uVar1 - 0x21));\n                    /* WARNING: Could not recover jumptable at 0x000dcd50. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar2 = (*(code *)(*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)\n                    + in_t9 + 0x81850))();\n  return iVar2;\n}" { (declaration "uchar uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uchar *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int in_t9;" primitive_type identifier ;) (do_statement "do {\n    uVar1 = *pattern;\n    pattern = pattern + 1;\n    if (uVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(uVar1 - 0x21));" do (compound_statement "{\n    uVar1 = *pattern;\n    pattern = pattern + 1;\n    if (uVar1 == '\0') {\n      return 0;\n    }\n  }" { (expression_statement "uVar1 = *pattern;" (assignment_expression "uVar1 = *pattern" identifier = (pointer_expression "*pattern" * identifier)) ;) (expression_statement "pattern = pattern + 1;" (assignment_expression "pattern = pattern + 1" identifier = (binary_expression "pattern + 1" identifier + number_literal)) ;) (if_statement "if (uVar1 == '\0') {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 == '\0')" ( (binary_expression "uVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(0x3c < (byte)(uVar1 - 0x21))" ( (binary_expression "0x3c < (byte)(uVar1 - 0x21)" number_literal < (call_expression "(byte)(uVar1 - 0x21)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar1 - 0x21)" ( (binary_expression "uVar1 - 0x21" identifier - number_literal) )))) )) ;) comment comment (expression_statement "iVar2 = (*(code *)(*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)\n                    + in_t9 + 0x81850))();" (assignment_expression "iVar2 = (*(code *)(*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)\n                    + in_t9 + 0x81850))()" identifier = (call_expression "(*(code *)(*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)\n                    + in_t9 + 0x81850))()" (parenthesized_expression "(*(code *)(*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)\n                    + in_t9 + 0x81850))" ( (pointer_expression "*(code *)(*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)\n                    + in_t9 + 0x81850)" * (cast_expression "(code *)(*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)\n                    + in_t9 + 0x81850)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)\n                    + in_t9 + 0x81850)" ( (binary_expression "*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)\n                    + in_t9 + 0x81850" (binary_expression "*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)\n                    + in_t9" (pointer_expression "*(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)" * (cast_expression "(int *)(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4)" ( (binary_expression "*(int *)(in_t9 + 0x798c0) + -0x3150 + (uint)(byte)(uVar1 - 0x21) * 4" (binary_expression "*(int *)(in_t9 + 0x798c0) + -0x3150" (pointer_expression "*(int *)(in_t9 + 0x798c0)" * (cast_expression "(int *)(in_t9 + 0x798c0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x798c0)" ( (binary_expression "in_t9 + 0x798c0" identifier + number_literal) )))) + number_literal) + (binary_expression "(uint)(byte)(uVar1 - 0x21) * 4" (call_expression "(uint)(byte)(uVar1 - 0x21)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(uVar1 - 0x21)" ( (binary_expression "uVar1 - 0x21" identifier - number_literal) ))) * number_literal)) )))) + identifier) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_000dccf0(char *param_1)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  do {\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(cVar1 - 0x21U));\n                    \n                    \n  uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )();\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_000dccf0(char *param_1)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  do {\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(cVar1 - 0x21U));\n                    \n                    \n  uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )();\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000dccf0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  \n  do {\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(cVar1 - 0x21U));\n                    \n                    \n  uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )();\n  return uVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (do_statement "do {\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(cVar1 - 0x21U));" do (compound_statement "{\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 == '\0') {\n      return 0;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(0x3c < (byte)(cVar1 - 0x21U))" ( (binary_expression "0x3c < (byte)(cVar1 - 0x21U)" number_literal < (call_expression "(byte)(cVar1 - 0x21U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 - 0x21U)" ( (binary_expression "cVar1 - 0x21U" identifier - number_literal) )))) )) ;) (expression_statement "uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )();" (assignment_expression "uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )()" identifier = (call_expression "(*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )()" (parenthesized_expression "(*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )" ( (pointer_expression "*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))" * (cast_expression "(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))" ( (binary_expression "&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150)" (pointer_expression "&_gp_1" & identifier) + (pointer_expression "*(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150)" * (cast_expression "(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150)" ( (binary_expression "PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150" (binary_expression "PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4" identifier + (binary_expression "(uint)(byte)(cVar1 - 0x21) * 4" (call_expression "(uint)(byte)(cVar1 - 0x21)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(cVar1 - 0x21)" ( (binary_expression "cVar1 - 0x21" identifier - number_literal) ))) * number_literal)) + number_literal) ))))) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( (binary_expression LIT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) )))) )) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (binary_expression IDENT - LIT) ))) * LIT)) + LIT) ))))) )))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000dccf0(char *param_1)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  do {\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(cVar1 - 0x21U));\n                    \n                    \n  uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )();\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_000dccf0(char *param_1)" (identifier "FUN_000dccf0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  \n  do {\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(cVar1 - 0x21U));\n                    \n                    \n  uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )();\n  return uVar2;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (do_statement "do {\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  } while (0x3c < (byte)(cVar1 - 0x21U));" (do "do") (compound_statement "{\n    cVar1 = *param_1;\n    param_1 = param_1 + 1;\n    if (cVar1 == '\0') {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (cVar1 == '\0') {\n      return 0;\n    }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(0x3c < (byte)(cVar1 - 0x21U))" (( "(") (binary_expression "0x3c < (byte)(cVar1 - 0x21U)" (number_literal "0x3c") (< "<") (call_expression "(byte)(cVar1 - 0x21U)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(cVar1 - 0x21U)" (( "(") (binary_expression "cVar1 - 0x21U" (identifier "cVar1") (- "-") (number_literal "0x21U")) () ")")))) () ")")) (; ";")) (expression_statement "uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )();" (assignment_expression "uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )()" (identifier "uVar2") (= "=") (call_expression "(*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )()" (parenthesized_expression "(*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))\n          )" (( "(") (pointer_expression "*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))" (* "*") (cast_expression "(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))" (( "(") (binary_expression "&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150)" (pointer_expression "&_gp_1" (& "&") (identifier "_gp_1")) (+ "+") (pointer_expression "*(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150)" (* "*") (cast_expression "(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150)" (( "(") (binary_expression "PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150" (binary_expression "PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4" (identifier "PTR_DAT_001565b0") (+ "+") (binary_expression "(uint)(byte)(cVar1 - 0x21) * 4" (call_expression "(uint)(byte)(cVar1 - 0x21)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (argument_list "(cVar1 - 0x21)" (( "(") (binary_expression "cVar1 - 0x21" (identifier "cVar1") (- "-") (number_literal "0x21")) () ")"))) (* "*") (number_literal "4"))) (+ "+") (number_literal "-0x3150")) () ")"))))) () ")")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

/* WARNING: Removing unreachable block (ram,0x000dcdb0) */

int function_1(type_1 *var_1)

{
  type_1 var_2;
  int iVar2;
  type_1 *p;
  int var_3;
  
  do {
    var_2 = *var_1;
    var_1 = var_1 + 1;
    if (var_2 == '\0') {
      return 0;
    }
  } while (0x3c < (byte)(var_2 - 0x21));
                    /* WARNING: Could not recover jumptable at 0x000dcd50. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar2 = (*(type_2 *)(*(int *)(*(int *)(var_3 + 0x798c0) + -0x3150 + (uint)(byte)(var_2 - 0x21) * 4)
                    + var_3 + 0x81850))();
  return iVar2;
}


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

/* WARNING: Removing unreachable block (ram,0x000dcdb0) */

undefined4 MASKED(char *param_1)

{
  char cVar1;
  undefined4 uVar2;
  
  do {
    cVar1 = *param_1;
    param_1 = param_1 + 1;
    if (cVar1 == '\0') {
      return 0;
    }
  } while (0x3c < (byte)(cVar1 - 0x21U));
                    /* WARNING: Could not emulate address calculation at 0x000dcd44 */
                    /* WARNING: Treating indirect jump as call */
  uVar2 = (*(code *)(&_gp_1 + *(int *)(PTR_DAT_001565b0 + (uint)(byte)(cVar1 - 0x21) * 4 + -0x3150))
          )();
  return uVar2;
}

