
undefined4 zbc_num_shift(BcNum *param_1,uint param_2)

{
  char cVar1;
  uint uVar2;
  BcDig *pBVar3;
  uint uVar4;
  
  if (param_2 == 0) {
    return 0;
  }
  uVar2 = param_1->len;
  if (uVar2 != 0) {
    uVar4 = param_1->rdx;
    if (uVar4 < param_2) {
      bc_num_extend(param_1,param_2 - uVar4);
      param_1->rdx = 0;
      if (param_1->len != 0) {
        pBVar3 = param_1->num;
        uVar4 = param_1->len - 1;
        if (pBVar3[uVar4] != '\0') {
          return 0;
        }
        param_1->len = uVar4;
        if (uVar4 != 0) goto LAB_00020ab4;
      }
LAB_00020a60:
      param_1->neg = false;
    }
    else {
      pBVar3 = param_1->num;
      param_1->rdx = uVar4 - param_2;
      cVar1 = pBVar3[uVar2 - 1];
      uVar4 = uVar2 - 1;
      while (cVar1 == '\0') {
        param_1->len = uVar4;
        if (uVar4 == 0) goto LAB_00020a60;
LAB_00020ab4:
        cVar1 = pBVar3[uVar4 - 1];
        uVar2 = uVar4;
        uVar4 = uVar4 - 1;
      }
      if (uVar2 < param_1->rdx) {
        param_1->len = param_1->rdx;
      }
    }
  }
  return 0;
}



undefined4 FUN_000209f0(int *param_1,uint param_2)

{
  char cVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  
  if (param_2 == 0) {
    return 0;
  }
  uVar2 = param_1[2];
  if (uVar2 != 0) {
    uVar4 = param_1[1];
    if (uVar4 < param_2) {
      FUN_00020910(param_1,param_2 - uVar4);
      param_1[1] = 0;
      if (param_1[2] != 0) {
        iVar3 = *param_1;
        uVar4 = param_1[2] - 1;
        if (*(char *)(iVar3 + uVar4) != '\0') {
          return 0;
        }
        param_1[2] = uVar4;
        if (uVar4 != 0) goto LAB_00020ab4;
      }
LAB_00020a60:
      *(undefined1 *)(param_1 + 4) = 0;
    }
    else {
      iVar3 = *param_1;
      param_1[1] = uVar4 - param_2;
      cVar1 = *(char *)(iVar3 + (uVar2 - 1));
      uVar4 = uVar2 - 1;
      while (cVar1 == '\0') {
        param_1[2] = uVar4;
        if (uVar4 == 0) goto LAB_00020a60;
LAB_00020ab4:
        cVar1 = *(char *)(iVar3 + (uVar4 - 1));
        uVar2 = uVar4;
        uVar4 = uVar4 - 1;
      }
      if (uVar2 < (uint)param_1[1]) {
        param_1[2] = param_1[1];
      }
    }
  }
  return 0;
}


lui gp,0x11
addiu gp,gp,0x1760
addu gp,gp,t9
bne a1,zero,0x00020a0c
_or v0,zero,zero
jr ra
_nop
(translation_unit "undefined4 FUN_000209f0(int *param_1,uint param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  uVar2 = param_1[2];\n  if (uVar2 != 0) {\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000209f0(int *param_1,uint param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  uVar2 = param_1[2];\n  if (uVar2 != 0) {\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000209f0(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  uVar2 = param_1[2];\n  if (uVar2 != 0) {\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (uVar2 != 0) {\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }" { (expression_statement "uVar4 = param_1[1];" (assignment_expression "uVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }" if (parenthesized_expression "(uVar4 < param_2)" ( (binary_expression "uVar4 < param_2" identifier < identifier) )) (compound_statement "{\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }" { (expression_statement "FUN_00020910(param_1,param_2 - uVar4);" (call_expression "FUN_00020910(param_1,param_2 - uVar4)" identifier (argument_list "(param_1,param_2 - uVar4)" ( identifier , (binary_expression "param_2 - uVar4" identifier - identifier) ))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }" if (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }" { (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = param_1[2] - 1;" (assignment_expression "uVar4 = param_1[2] - 1" identifier = (binary_expression "param_1[2] - 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) - number_literal)) ;) (if_statement "if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }" if (parenthesized_expression "(*(char *)(iVar3 + uVar4) != '\0')" ( (binary_expression "*(char *)(iVar3 + uVar4) != '\0'" (pointer_expression "*(char *)(iVar3 + uVar4)" * (cast_expression "(char *)(iVar3 + uVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + uVar4)" ( (binary_expression "iVar3 + uVar4" identifier + identifier) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1[2] = uVar4;" (assignment_expression "param_1[2] = uVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar4 != 0) goto LAB_00020ab4;" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020ab4;" goto statement_identifier ;)) })) (labeled_statement "LAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;" statement_identifier : (expression_statement "*(undefined1 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 4) = 0" (pointer_expression "*(undefined1 *)(param_1 + 4)" * (cast_expression "(undefined1 *)(param_1 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;)) }) (else_clause "else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }" else (compound_statement "{\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }" { (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1[1] = uVar4 - param_2;" (assignment_expression "param_1[1] = uVar4 - param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "uVar4 - param_2" identifier - identifier)) ;) (expression_statement "cVar1 = *(char *)(iVar3 + (uVar2 - 1));" (assignment_expression "cVar1 = *(char *)(iVar3 + (uVar2 - 1))" identifier = (pointer_expression "*(char *)(iVar3 + (uVar2 - 1))" * (cast_expression "(char *)(iVar3 + (uVar2 - 1))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (uVar2 - 1))" ( (binary_expression "iVar3 + (uVar2 - 1)" identifier + (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) ))) ))))) ;) (expression_statement "uVar4 = uVar2 - 1;" (assignment_expression "uVar4 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) (while_statement "while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }" while (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }" { (expression_statement "param_1[2] = uVar4;" (assignment_expression "param_1[2] = uVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar4 == 0) goto LAB_00020a60;" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00020a60;" goto statement_identifier ;)) (labeled_statement "LAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));" statement_identifier : (expression_statement "cVar1 = *(char *)(iVar3 + (uVar4 - 1));" (assignment_expression "cVar1 = *(char *)(iVar3 + (uVar4 - 1))" identifier = (pointer_expression "*(char *)(iVar3 + (uVar4 - 1))" * (cast_expression "(char *)(iVar3 + (uVar4 - 1))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (uVar4 - 1))" ( (binary_expression "iVar3 + (uVar4 - 1)" identifier + (parenthesized_expression "(uVar4 - 1)" ( (binary_expression "uVar4 - 1" identifier - number_literal) ))) ))))) ;)) (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" identifier = identifier) ;) (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) })) (if_statement "if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }" if (parenthesized_expression "(uVar2 < (uint)param_1[1])" ( (binary_expression "uVar2 < (uint)param_1[1]" identifier < (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n        param_1[2] = param_1[1];\n      }" { (expression_statement "param_1[2] = param_1[1];" (assignment_expression "param_1[2] = param_1[1]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 zbc_num_shift(BcNum *param_1,uint param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  BcDig *pBVar3;\n  uint uVar4;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  uVar2 = param_1->len;\n  if (uVar2 != 0) {\n    uVar4 = param_1->rdx;\n    if (uVar4 < param_2) {\n      bc_num_extend(param_1,param_2 - uVar4);\n      param_1->rdx = 0;\n      if (param_1->len != 0) {\n        pBVar3 = param_1->num;\n        uVar4 = param_1->len - 1;\n        if (pBVar3[uVar4] != '\0') {\n          return 0;\n        }\n        param_1->len = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      param_1->neg = false;\n    }\n    else {\n      pBVar3 = param_1->num;\n      param_1->rdx = uVar4 - param_2;\n      cVar1 = pBVar3[uVar2 - 1];\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1->len = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = pBVar3[uVar4 - 1];\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < param_1->rdx) {\n        param_1->len = param_1->rdx;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 zbc_num_shift(BcNum *param_1,uint param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  BcDig *pBVar3;\n  uint uVar4;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  uVar2 = param_1->len;\n  if (uVar2 != 0) {\n    uVar4 = param_1->rdx;\n    if (uVar4 < param_2) {\n      bc_num_extend(param_1,param_2 - uVar4);\n      param_1->rdx = 0;\n      if (param_1->len != 0) {\n        pBVar3 = param_1->num;\n        uVar4 = param_1->len - 1;\n        if (pBVar3[uVar4] != '\0') {\n          return 0;\n        }\n        param_1->len = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      param_1->neg = false;\n    }\n    else {\n      pBVar3 = param_1->num;\n      param_1->rdx = uVar4 - param_2;\n      cVar1 = pBVar3[uVar2 - 1];\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1->len = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = pBVar3[uVar4 - 1];\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < param_1->rdx) {\n        param_1->len = param_1->rdx;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "zbc_num_shift(BcNum *param_1,uint param_2)" identifier (parameter_list "(BcNum *param_1,uint param_2)" ( (parameter_declaration "BcNum *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  BcDig *pBVar3;\n  uint uVar4;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  uVar2 = param_1->len;\n  if (uVar2 != 0) {\n    uVar4 = param_1->rdx;\n    if (uVar4 < param_2) {\n      bc_num_extend(param_1,param_2 - uVar4);\n      param_1->rdx = 0;\n      if (param_1->len != 0) {\n        pBVar3 = param_1->num;\n        uVar4 = param_1->len - 1;\n        if (pBVar3[uVar4] != '\0') {\n          return 0;\n        }\n        param_1->len = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      param_1->neg = false;\n    }\n    else {\n      pBVar3 = param_1->num;\n      param_1->rdx = uVar4 - param_2;\n      cVar1 = pBVar3[uVar2 - 1];\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1->len = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = pBVar3[uVar4 - 1];\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < param_1->rdx) {\n        param_1->len = param_1->rdx;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "BcDig *pBVar3;" type_identifier (pointer_declarator "*pBVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = param_1->len;" (assignment_expression "uVar2 = param_1->len" identifier = (field_expression "param_1->len" identifier -> field_identifier)) ;) (if_statement "if (uVar2 != 0) {\n    uVar4 = param_1->rdx;\n    if (uVar4 < param_2) {\n      bc_num_extend(param_1,param_2 - uVar4);\n      param_1->rdx = 0;\n      if (param_1->len != 0) {\n        pBVar3 = param_1->num;\n        uVar4 = param_1->len - 1;\n        if (pBVar3[uVar4] != '\0') {\n          return 0;\n        }\n        param_1->len = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      param_1->neg = false;\n    }\n    else {\n      pBVar3 = param_1->num;\n      param_1->rdx = uVar4 - param_2;\n      cVar1 = pBVar3[uVar2 - 1];\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1->len = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = pBVar3[uVar4 - 1];\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < param_1->rdx) {\n        param_1->len = param_1->rdx;\n      }\n    }\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = param_1->rdx;\n    if (uVar4 < param_2) {\n      bc_num_extend(param_1,param_2 - uVar4);\n      param_1->rdx = 0;\n      if (param_1->len != 0) {\n        pBVar3 = param_1->num;\n        uVar4 = param_1->len - 1;\n        if (pBVar3[uVar4] != '\0') {\n          return 0;\n        }\n        param_1->len = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      param_1->neg = false;\n    }\n    else {\n      pBVar3 = param_1->num;\n      param_1->rdx = uVar4 - param_2;\n      cVar1 = pBVar3[uVar2 - 1];\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1->len = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = pBVar3[uVar4 - 1];\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < param_1->rdx) {\n        param_1->len = param_1->rdx;\n      }\n    }\n  }" { (expression_statement "uVar4 = param_1->rdx;" (assignment_expression "uVar4 = param_1->rdx" identifier = (field_expression "param_1->rdx" identifier -> field_identifier)) ;) (if_statement "if (uVar4 < param_2) {\n      bc_num_extend(param_1,param_2 - uVar4);\n      param_1->rdx = 0;\n      if (param_1->len != 0) {\n        pBVar3 = param_1->num;\n        uVar4 = param_1->len - 1;\n        if (pBVar3[uVar4] != '\0') {\n          return 0;\n        }\n        param_1->len = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      param_1->neg = false;\n    }\n    else {\n      pBVar3 = param_1->num;\n      param_1->rdx = uVar4 - param_2;\n      cVar1 = pBVar3[uVar2 - 1];\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1->len = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = pBVar3[uVar4 - 1];\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < param_1->rdx) {\n        param_1->len = param_1->rdx;\n      }\n    }" if (parenthesized_expression "(uVar4 < param_2)" ( (binary_expression "uVar4 < param_2" identifier < identifier) )) (compound_statement "{\n      bc_num_extend(param_1,param_2 - uVar4);\n      param_1->rdx = 0;\n      if (param_1->len != 0) {\n        pBVar3 = param_1->num;\n        uVar4 = param_1->len - 1;\n        if (pBVar3[uVar4] != '\0') {\n          return 0;\n        }\n        param_1->len = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      param_1->neg = false;\n    }" { (expression_statement "bc_num_extend(param_1,param_2 - uVar4);" (call_expression "bc_num_extend(param_1,param_2 - uVar4)" identifier (argument_list "(param_1,param_2 - uVar4)" ( identifier , (binary_expression "param_2 - uVar4" identifier - identifier) ))) ;) (expression_statement "param_1->rdx = 0;" (assignment_expression "param_1->rdx = 0" (field_expression "param_1->rdx" identifier -> field_identifier) = number_literal) ;) (if_statement "if (param_1->len != 0) {\n        pBVar3 = param_1->num;\n        uVar4 = param_1->len - 1;\n        if (pBVar3[uVar4] != '\0') {\n          return 0;\n        }\n        param_1->len = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }" if (parenthesized_expression "(param_1->len != 0)" ( (binary_expression "param_1->len != 0" (field_expression "param_1->len" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n        pBVar3 = param_1->num;\n        uVar4 = param_1->len - 1;\n        if (pBVar3[uVar4] != '\0') {\n          return 0;\n        }\n        param_1->len = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }" { (expression_statement "pBVar3 = param_1->num;" (assignment_expression "pBVar3 = param_1->num" identifier = (field_expression "param_1->num" identifier -> field_identifier)) ;) (expression_statement "uVar4 = param_1->len - 1;" (assignment_expression "uVar4 = param_1->len - 1" identifier = (binary_expression "param_1->len - 1" (field_expression "param_1->len" identifier -> field_identifier) - number_literal)) ;) (if_statement "if (pBVar3[uVar4] != '\0') {\n          return 0;\n        }" if (parenthesized_expression "(pBVar3[uVar4] != '\0')" ( (binary_expression "pBVar3[uVar4] != '\0'" (subscript_expression "pBVar3[uVar4]" identifier [ identifier ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1->len = uVar4;" (assignment_expression "param_1->len = uVar4" (field_expression "param_1->len" identifier -> field_identifier) = identifier) ;) (if_statement "if (uVar4 != 0) goto LAB_00020ab4;" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020ab4;" goto statement_identifier ;)) })) (labeled_statement "LAB_00020a60:\n      param_1->neg = false;" statement_identifier : (expression_statement "param_1->neg = false;" (assignment_expression "param_1->neg = false" (field_expression "param_1->neg" identifier -> field_identifier) = false) ;)) }) (else_clause "else {\n      pBVar3 = param_1->num;\n      param_1->rdx = uVar4 - param_2;\n      cVar1 = pBVar3[uVar2 - 1];\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1->len = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = pBVar3[uVar4 - 1];\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < param_1->rdx) {\n        param_1->len = param_1->rdx;\n      }\n    }" else (compound_statement "{\n      pBVar3 = param_1->num;\n      param_1->rdx = uVar4 - param_2;\n      cVar1 = pBVar3[uVar2 - 1];\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1->len = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = pBVar3[uVar4 - 1];\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < param_1->rdx) {\n        param_1->len = param_1->rdx;\n      }\n    }" { (expression_statement "pBVar3 = param_1->num;" (assignment_expression "pBVar3 = param_1->num" identifier = (field_expression "param_1->num" identifier -> field_identifier)) ;) (expression_statement "param_1->rdx = uVar4 - param_2;" (assignment_expression "param_1->rdx = uVar4 - param_2" (field_expression "param_1->rdx" identifier -> field_identifier) = (binary_expression "uVar4 - param_2" identifier - identifier)) ;) (expression_statement "cVar1 = pBVar3[uVar2 - 1];" (assignment_expression "cVar1 = pBVar3[uVar2 - 1]" identifier = (subscript_expression "pBVar3[uVar2 - 1]" identifier [ (binary_expression "uVar2 - 1" identifier - number_literal) ])) ;) (expression_statement "uVar4 = uVar2 - 1;" (assignment_expression "uVar4 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) (while_statement "while (cVar1 == '\0') {\n        param_1->len = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = pBVar3[uVar4 - 1];\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }" while (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        param_1->len = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = pBVar3[uVar4 - 1];\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }" { (expression_statement "param_1->len = uVar4;" (assignment_expression "param_1->len = uVar4" (field_expression "param_1->len" identifier -> field_identifier) = identifier) ;) (if_statement "if (uVar4 == 0) goto LAB_00020a60;" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00020a60;" goto statement_identifier ;)) (labeled_statement "LAB_00020ab4:\n        cVar1 = pBVar3[uVar4 - 1];" statement_identifier : (expression_statement "cVar1 = pBVar3[uVar4 - 1];" (assignment_expression "cVar1 = pBVar3[uVar4 - 1]" identifier = (subscript_expression "pBVar3[uVar4 - 1]" identifier [ (binary_expression "uVar4 - 1" identifier - number_literal) ])) ;)) (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" identifier = identifier) ;) (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) })) (if_statement "if (uVar2 < param_1->rdx) {\n        param_1->len = param_1->rdx;\n      }" if (parenthesized_expression "(uVar2 < param_1->rdx)" ( (binary_expression "uVar2 < param_1->rdx" identifier < (field_expression "param_1->rdx" identifier -> field_identifier)) )) (compound_statement "{\n        param_1->len = param_1->rdx;\n      }" { (expression_statement "param_1->len = param_1->rdx;" (assignment_expression "param_1->len = param_1->rdx" (field_expression "param_1->len" identifier -> field_identifier) = (field_expression "param_1->rdx" identifier -> field_identifier)) ;) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000209f0(int *param_1,uint param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  uVar2 = param_1[2];\n  if (uVar2 != 0) {\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000209f0(int *param_1,uint param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  uVar2 = param_1[2];\n  if (uVar2 != 0) {\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000209f0(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  uVar2 = param_1[2];\n  if (uVar2 != 0) {\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (uVar2 != 0) {\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }" { (expression_statement "uVar4 = param_1[1];" (assignment_expression "uVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }" if (parenthesized_expression "(uVar4 < param_2)" ( (binary_expression "uVar4 < param_2" identifier < identifier) )) (compound_statement "{\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }" { (expression_statement "FUN_00020910(param_1,param_2 - uVar4);" (call_expression "FUN_00020910(param_1,param_2 - uVar4)" identifier (argument_list "(param_1,param_2 - uVar4)" ( identifier , (binary_expression "param_2 - uVar4" identifier - identifier) ))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }" if (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }" { (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = param_1[2] - 1;" (assignment_expression "uVar4 = param_1[2] - 1" identifier = (binary_expression "param_1[2] - 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) - number_literal)) ;) (if_statement "if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }" if (parenthesized_expression "(*(char *)(iVar3 + uVar4) != '\0')" ( (binary_expression "*(char *)(iVar3 + uVar4) != '\0'" (pointer_expression "*(char *)(iVar3 + uVar4)" * (cast_expression "(char *)(iVar3 + uVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + uVar4)" ( (binary_expression "iVar3 + uVar4" identifier + identifier) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1[2] = uVar4;" (assignment_expression "param_1[2] = uVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar4 != 0) goto LAB_00020ab4;" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00020ab4;" goto statement_identifier ;)) })) (labeled_statement "LAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;" statement_identifier : (expression_statement "*(undefined1 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 4) = 0" (pointer_expression "*(undefined1 *)(param_1 + 4)" * (cast_expression "(undefined1 *)(param_1 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;)) }) (else_clause "else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }" else (compound_statement "{\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }" { (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1[1] = uVar4 - param_2;" (assignment_expression "param_1[1] = uVar4 - param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "uVar4 - param_2" identifier - identifier)) ;) (expression_statement "cVar1 = *(char *)(iVar3 + (uVar2 - 1));" (assignment_expression "cVar1 = *(char *)(iVar3 + (uVar2 - 1))" identifier = (pointer_expression "*(char *)(iVar3 + (uVar2 - 1))" * (cast_expression "(char *)(iVar3 + (uVar2 - 1))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (uVar2 - 1))" ( (binary_expression "iVar3 + (uVar2 - 1)" identifier + (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) ))) ))))) ;) (expression_statement "uVar4 = uVar2 - 1;" (assignment_expression "uVar4 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) (while_statement "while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }" while (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }" { (expression_statement "param_1[2] = uVar4;" (assignment_expression "param_1[2] = uVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar4 == 0) goto LAB_00020a60;" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00020a60;" goto statement_identifier ;)) (labeled_statement "LAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));" statement_identifier : (expression_statement "cVar1 = *(char *)(iVar3 + (uVar4 - 1));" (assignment_expression "cVar1 = *(char *)(iVar3 + (uVar4 - 1))" identifier = (pointer_expression "*(char *)(iVar3 + (uVar4 - 1))" * (cast_expression "(char *)(iVar3 + (uVar4 - 1))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (uVar4 - 1))" ( (binary_expression "iVar3 + (uVar4 - 1)" identifier + (parenthesized_expression "(uVar4 - 1)" ( (binary_expression "uVar4 - 1" identifier - number_literal) ))) ))))) ;)) (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" identifier = identifier) ;) (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) })) (if_statement "if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }" if (parenthesized_expression "(uVar2 < (uint)param_1[1])" ( (binary_expression "uVar2 < (uint)param_1[1]" identifier < (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n        param_1[2] = param_1[1];\n      }" { (expression_statement "param_1[2] = param_1[1];" (assignment_expression "param_1[2] = param_1[1]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT - IDENT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) ))) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) ))) ))))) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) })) }))) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000209f0(int *param_1,uint param_2)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  uVar2 = param_1[2];\n  if (uVar2 != 0) {\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000209f0(int *param_1,uint param_2)" (identifier "FUN_000209f0") (parameter_list "(int *param_1,uint param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  uVar2 = param_1[2];\n  if (uVar2 != 0) {\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" (identifier "uVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (uVar2 != 0) {\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }" (if "if") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = param_1[1];\n    if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }\n  }" ({ "{") (expression_statement "uVar4 = param_1[1];" (assignment_expression "uVar4 = param_1[1]" (identifier "uVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (uVar4 < param_2) {\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }\n    else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }" (if "if") (parenthesized_expression "(uVar4 < param_2)" (( "(") (binary_expression "uVar4 < param_2" (identifier "uVar4") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n      FUN_00020910(param_1,param_2 - uVar4);\n      param_1[1] = 0;\n      if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }\nLAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;\n    }" ({ "{") (expression_statement "FUN_00020910(param_1,param_2 - uVar4);" (call_expression "FUN_00020910(param_1,param_2 - uVar4)" (identifier "FUN_00020910") (argument_list "(param_1,param_2 - uVar4)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_2 - uVar4" (identifier "param_2") (- "-") (identifier "uVar4")) () ")"))) (; ";")) (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")) (; ";")) (if_statement "if (param_1[2] != 0) {\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }" (if "if") (parenthesized_expression "(param_1[2] != 0)" (( "(") (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = *param_1;\n        uVar4 = param_1[2] - 1;\n        if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }\n        param_1[2] = uVar4;\n        if (uVar4 != 0) goto LAB_00020ab4;\n      }" ({ "{") (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" (identifier "iVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar4 = param_1[2] - 1;" (assignment_expression "uVar4 = param_1[2] - 1" (identifier "uVar4") (= "=") (binary_expression "param_1[2] - 1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (- "-") (number_literal "1"))) (; ";")) (if_statement "if (*(char *)(iVar3 + uVar4) != '\0') {\n          return 0;\n        }" (if "if") (parenthesized_expression "(*(char *)(iVar3 + uVar4) != '\0')" (( "(") (binary_expression "*(char *)(iVar3 + uVar4) != '\0'" (pointer_expression "*(char *)(iVar3 + uVar4)" (* "*") (cast_expression "(char *)(iVar3 + uVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + uVar4)" (( "(") (binary_expression "iVar3 + uVar4" (identifier "iVar3") (+ "+") (identifier "uVar4")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "param_1[2] = uVar4;" (assignment_expression "param_1[2] = uVar4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (uVar4 != 0) goto LAB_00020ab4;" (if "if") (parenthesized_expression "(uVar4 != 0)" (( "(") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00020ab4;" (goto "goto") (statement_identifier "LAB_00020ab4") (; ";"))) (} "}"))) (labeled_statement "LAB_00020a60:\n      *(undefined1 *)(param_1 + 4) = 0;" (statement_identifier "LAB_00020a60") (: ":") (expression_statement "*(undefined1 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 4) = 0" (pointer_expression "*(undefined1 *)(param_1 + 4)" (* "*") (cast_expression "(undefined1 *)(param_1 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (} "}")) (else_clause "else {\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }" (else "else") (compound_statement "{\n      iVar3 = *param_1;\n      param_1[1] = uVar4 - param_2;\n      cVar1 = *(char *)(iVar3 + (uVar2 - 1));\n      uVar4 = uVar2 - 1;\n      while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }\n      if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }\n    }" ({ "{") (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" (identifier "iVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_1[1] = uVar4 - param_2;" (assignment_expression "param_1[1] = uVar4 - param_2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar4 - param_2" (identifier "uVar4") (- "-") (identifier "param_2"))) (; ";")) (expression_statement "cVar1 = *(char *)(iVar3 + (uVar2 - 1));" (assignment_expression "cVar1 = *(char *)(iVar3 + (uVar2 - 1))" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(iVar3 + (uVar2 - 1))" (* "*") (cast_expression "(char *)(iVar3 + (uVar2 - 1))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + (uVar2 - 1))" (( "(") (binary_expression "iVar3 + (uVar2 - 1)" (identifier "iVar3") (+ "+") (parenthesized_expression "(uVar2 - 1)" (( "(") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1")) () ")"))) () ")"))))) (; ";")) (expression_statement "uVar4 = uVar2 - 1;" (assignment_expression "uVar4 = uVar2 - 1" (identifier "uVar4") (= "=") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1"))) (; ";")) (while_statement "while (cVar1 == '\0') {\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }" (while "while") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        param_1[2] = uVar4;\n        if (uVar4 == 0) goto LAB_00020a60;\nLAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));\n        uVar2 = uVar4;\n        uVar4 = uVar4 - 1;\n      }" ({ "{") (expression_statement "param_1[2] = uVar4;" (assignment_expression "param_1[2] = uVar4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (uVar4 == 0) goto LAB_00020a60;" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00020a60;" (goto "goto") (statement_identifier "LAB_00020a60") (; ";"))) (labeled_statement "LAB_00020ab4:\n        cVar1 = *(char *)(iVar3 + (uVar4 - 1));" (statement_identifier "LAB_00020ab4") (: ":") (expression_statement "cVar1 = *(char *)(iVar3 + (uVar4 - 1));" (assignment_expression "cVar1 = *(char *)(iVar3 + (uVar4 - 1))" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(iVar3 + (uVar4 - 1))" (* "*") (cast_expression "(char *)(iVar3 + (uVar4 - 1))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + (uVar4 - 1))" (( "(") (binary_expression "iVar3 + (uVar4 - 1)" (identifier "iVar3") (+ "+") (parenthesized_expression "(uVar4 - 1)" (( "(") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1")) () ")"))) () ")"))))) (; ";"))) (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" (identifier "uVar2") (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (uVar2 < (uint)param_1[1]) {\n        param_1[2] = param_1[1];\n      }" (if "if") (parenthesized_expression "(uVar2 < (uint)param_1[1])" (( "(") (binary_expression "uVar2 < (uint)param_1[1]" (identifier "uVar2") (< "<") (cast_expression "(uint)param_1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n        param_1[2] = param_1[1];\n      }" ({ "{") (expression_statement "param_1[2] = param_1[1];" (assignment_expression "param_1[2] = param_1[1]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (} "}")))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) body: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))))))))) (return_statement (number_literal)))))

undefined4 MASKED(int *param_1,uint param_2)

{
  char cVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  
  if (param_2 == 0) {
    return 0;
  }
  uVar2 = param_1[2];
  if (uVar2 != 0) {
    uVar4 = param_1[1];
    if (uVar4 < param_2) {
      FUN_00020910(param_1,param_2 - uVar4);
      param_1[1] = 0;
      if (param_1[2] != 0) {
        iVar3 = *param_1;
        uVar4 = param_1[2] - 1;
        if (*(char *)(iVar3 + uVar4) != '\0') {
          return 0;
        }
        param_1[2] = uVar4;
        if (uVar4 != 0) goto LAB_00020ab4;
      }
LAB_00020a60:
      *(undefined1 *)(param_1 + 4) = 0;
    }
    else {
      iVar3 = *param_1;
      param_1[1] = uVar4 - param_2;
      cVar1 = *(char *)(iVar3 + (uVar2 - 1));
      uVar4 = uVar2 - 1;
      while (cVar1 == '\0') {
        param_1[2] = uVar4;
        if (uVar4 == 0) goto LAB_00020a60;
LAB_00020ab4:
        cVar1 = *(char *)(iVar3 + (uVar4 - 1));
        uVar2 = uVar4;
        uVar4 = uVar4 - 1;
      }
      if (uVar2 < (uint)param_1[1]) {
        param_1[2] = param_1[1];
      }
    }
  }
  return 0;
}

