
char * assoc_modcase(HASH_TABLE *h,char *pat,int modop,int mflags)

{
  word_list **ppwVar1;
  WORD_LIST *pWVar2;
  char *pcVar3;
  undefined4 uVar4;
  word_list *pwVar5;
  
  if (h == (HASH_TABLE *)0x0) {
    pcVar3 = (char *)0x0;
  }
  else if (h->nentries == 0) {
    pcVar3 = (char *)0x0;
  }
  else {
    pWVar2 = assoc_to_word_list(h);
    pwVar5 = pWVar2;
    if (pWVar2 == (WORD_LIST *)0x0) {
      pcVar3 = (char *)0x0;
    }
    else {
      do {
        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);
        if (pwVar5->word->word != (char *)0x0) {
          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();
          return pcVar3;
        }
        pwVar5->word->word = pcVar3;
        ppwVar1 = &pwVar5->next;
        pwVar5 = *ppwVar1;
      } while (*ppwVar1 != (word_list *)0x0);
      uVar4 = 0x40;
      if ((mflags & 0x80U) != 0) {
        uVar4 = 0x2a;
      }
      pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)
                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f);
      (*(code *)PTR_dispose_words_001565d4)(pWVar2);
    }
  }
  return pcVar3;
}



undefined4 assoc_modcase(int param_1,undefined4 param_2,undefined4 param_3,uint param_4)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  int *piVar4;
  
  if (param_1 == 0) {
    uVar3 = 0;
  }
  else if (*(int *)(param_1 + 8) == 0) {
    uVar3 = 0;
  }
  else {
    piVar1 = (int *)assoc_to_word_list();
    piVar4 = piVar1;
    if (piVar1 == (int *)0x0) {
      uVar3 = 0;
    }
    else {
      do {
        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);
        if (*(int *)piVar4[1] == 0) {
          *(int *)piVar4[1] = iVar2;
        }
        else {
          (*(code *)PTR_free_001585ac)();
          *(int *)piVar4[1] = iVar2;
        }
        piVar4 = (int *)*piVar4;
      } while (piVar4 != (int *)0x0);
      uVar3 = 0x40;
      if ((param_4 & 0x80) != 0) {
        uVar3 = 0x2a;
      }
      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)
      ;
      (*(code *)PTR_dispose_words_001565d4)(piVar1);
    }
  }
  return uVar3;
}


lui gp,0xc
addiu gp,gp,-0xb0
addu gp,gp,t9
addiu sp,sp,-0x38
sw ra,0x34(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
beq a0,zero,0x0009e720
_nop
lw v0,0x8(a0)
beq v0,zero,0x0009e728
_or s4,a3,zero
or s3,a2,zero
or s2,a1,zero
lw t9,-0x7198(gp)
bal 0x0009e224
_nop
lw gp,0x10(sp)
beq v0,zero,0x0009e730
_or s5,v0,zero
b 0x0009e67c
_or s0,v0,zero
jalr t9
_nop
lw gp,0x10(sp)
lw v0,0x4(s0)
sw s1,0x0(v0)
lw s0,0x0(s0)
beq s0,zero,0x0009e6b8
_andi a0,s4,0x80
lw v0,0x4(s0)
or a2,s3,zero
or a1,s2,zero
lw a0,0x0(v0)
lw t9,-0x7558(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s1,v0,zero
lw v0,0x4(s0)
lw a0,0x0(v0)
bne a0,zero,0x0009e65c
_lw t9,-0x5f94(gp)
b 0x0009e670
_sw s1,0x0(v0)
ext a2,s4,0x5,0x1
or a1,s5,zero
li v1,0x2a
li v0,0x40
movn v0,v1,a0
or a0,v0,zero
lw t9,-0x724c(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s0,v0,zero
or a0,s5,zero
lw t9,-0x7f6c(gp)
jalr t9
_nop
lw gp,0x10(sp)
or v0,s0,zero
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
b 0x0009e6f8
_or s0,a0,zero
b 0x0009e6f8
_or s0,zero,zero
b 0x0009e6f8
_or s0,v0,zero
(translation_unit "undefined4 assoc_modcase(int param_1,undefined4 param_2,undefined4 param_3,uint param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  if (param_1 == 0) {\n    uVar3 = 0;\n  }\n  else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 assoc_modcase(int param_1,undefined4 param_2,undefined4 param_3,uint param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  if (param_1 == 0) {\n    uVar3 = 0;\n  }\n  else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }\n  return uVar3;\n}" type_identifier (function_declarator "assoc_modcase(int param_1,undefined4 param_2,undefined4 param_3,uint param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,uint param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  if (param_1 == 0) {\n    uVar3 = 0;\n  }\n  else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }\n  return uVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (if_statement "if (param_1 == 0) {\n    uVar3 = 0;\n  }\n  else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" else (if_statement "if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" ( (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" else (compound_statement "{\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" { (expression_statement "piVar1 = (int *)assoc_to_word_list();" (assignment_expression "piVar1 = (int *)assoc_to_word_list()" identifier = (cast_expression "(int *)assoc_to_word_list()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "assoc_to_word_list()" identifier (argument_list "()" ( ))))) ;) (expression_statement "piVar4 = piVar1;" (assignment_expression "piVar4 = piVar1" identifier = identifier) ;) (if_statement "if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar3 = 0;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }" else (compound_statement "{\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }" { (do_statement "do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);" do (compound_statement "{\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      }" { (expression_statement "iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);" (assignment_expression "iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3)" identifier = (call_expression "(*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3)" (parenthesized_expression "(*(code *)PTR_sh_modcase_00156fe8)" ( (pointer_expression "*(code *)PTR_sh_modcase_00156fe8" * (cast_expression "(code *)PTR_sh_modcase_00156fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)piVar4[1],param_2,param_3)" ( (pointer_expression "*(undefined4 *)piVar4[1]" * (cast_expression "(undefined4 *)piVar4[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[1]" identifier [ number_literal ]))) , identifier , identifier )))) ;) (if_statement "if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }" if (parenthesized_expression "(*(int *)piVar4[1] == 0)" ( (binary_expression "*(int *)piVar4[1] == 0" (pointer_expression "*(int *)piVar4[1]" * (cast_expression "(int *)piVar4[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[1]" identifier [ number_literal ]))) == number_literal) )) (compound_statement "{\n          *(int *)piVar4[1] = iVar2;\n        }" { (expression_statement "*(int *)piVar4[1] = iVar2;" (assignment_expression "*(int *)piVar4[1] = iVar2" (pointer_expression "*(int *)piVar4[1]" * (cast_expression "(int *)piVar4[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[1]" identifier [ number_literal ]))) = identifier) ;) }) (else_clause "else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }" else (compound_statement "{\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }" { (expression_statement "(*(code *)PTR_free_001585ac)();" (call_expression "(*(code *)PTR_free_001585ac)()" (parenthesized_expression "(*(code *)PTR_free_001585ac)" ( (pointer_expression "*(code *)PTR_free_001585ac" * (cast_expression "(code *)PTR_free_001585ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(int *)piVar4[1] = iVar2;" (assignment_expression "*(int *)piVar4[1] = iVar2" (pointer_expression "*(int *)piVar4[1]" * (cast_expression "(int *)piVar4[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[1]" identifier [ number_literal ]))) = identifier) ;) }))) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "uVar3 = 0x40;" (assignment_expression "uVar3 = 0x40" identifier = number_literal) ;) (if_statement "if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }" if (parenthesized_expression "((param_4 & 0x80) != 0)" ( (binary_expression "(param_4 & 0x80) != 0" (parenthesized_expression "(param_4 & 0x80)" ( (binary_expression "param_4 & 0x80" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        uVar3 = 0x2a;\n      }" { (expression_statement "uVar3 = 0x2a;" (assignment_expression "uVar3 = 0x2a" identifier = number_literal) ;) })) (expression_statement "uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;" (assignment_expression "uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)" identifier = (call_expression "(*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_string_list_pos_params_001572f4)" ( (pointer_expression "*(code *)PTR_string_list_pos_params_001572f4" * (cast_expression "(code *)PTR_string_list_pos_params_001572f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)" ( identifier , identifier , (binary_expression "(param_4 << 0x1a) >> 0x1f" (parenthesized_expression "(param_4 << 0x1a)" ( (binary_expression "param_4 << 0x1a" identifier << number_literal) )) >> number_literal) )))) ;) (expression_statement "(*(code *)PTR_dispose_words_001565d4)(piVar1);" (call_expression "(*(code *)PTR_dispose_words_001565d4)(piVar1)" (parenthesized_expression "(*(code *)PTR_dispose_words_001565d4)" ( (pointer_expression "*(code *)PTR_dispose_words_001565d4" * (cast_expression "(code *)PTR_dispose_words_001565d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar1)" ( identifier ))) ;) }))) }))))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "char * assoc_modcase(HASH_TABLE *h,char *pat,int modop,int mflags)\n\n{\n  word_list **ppwVar1;\n  WORD_LIST *pWVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  word_list *pwVar5;\n  \n  if (h == (HASH_TABLE *)0x0) {\n    pcVar3 = (char *)0x0;\n  }\n  else if (h->nentries == 0) {\n    pcVar3 = (char *)0x0;\n  }\n  else {\n    pWVar2 = assoc_to_word_list(h);\n    pwVar5 = pWVar2;\n    if (pWVar2 == (WORD_LIST *)0x0) {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      do {\n        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);\n        if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }\n        pwVar5->word->word = pcVar3;\n        ppwVar1 = &pwVar5->next;\n        pwVar5 = *ppwVar1;\n      } while (*ppwVar1 != (word_list *)0x0);\n      uVar4 = 0x40;\n      if ((mflags & 0x80U) != 0) {\n        uVar4 = 0x2a;\n      }\n      pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f);\n      (*(code *)PTR_dispose_words_001565d4)(pWVar2);\n    }\n  }\n  return pcVar3;\n}\n\n" (function_definition "char * assoc_modcase(HASH_TABLE *h,char *pat,int modop,int mflags)\n\n{\n  word_list **ppwVar1;\n  WORD_LIST *pWVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  word_list *pwVar5;\n  \n  if (h == (HASH_TABLE *)0x0) {\n    pcVar3 = (char *)0x0;\n  }\n  else if (h->nentries == 0) {\n    pcVar3 = (char *)0x0;\n  }\n  else {\n    pWVar2 = assoc_to_word_list(h);\n    pwVar5 = pWVar2;\n    if (pWVar2 == (WORD_LIST *)0x0) {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      do {\n        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);\n        if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }\n        pwVar5->word->word = pcVar3;\n        ppwVar1 = &pwVar5->next;\n        pwVar5 = *ppwVar1;\n      } while (*ppwVar1 != (word_list *)0x0);\n      uVar4 = 0x40;\n      if ((mflags & 0x80U) != 0) {\n        uVar4 = 0x2a;\n      }\n      pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f);\n      (*(code *)PTR_dispose_words_001565d4)(pWVar2);\n    }\n  }\n  return pcVar3;\n}" primitive_type (pointer_declarator "* assoc_modcase(HASH_TABLE *h,char *pat,int modop,int mflags)" * (function_declarator "assoc_modcase(HASH_TABLE *h,char *pat,int modop,int mflags)" identifier (parameter_list "(HASH_TABLE *h,char *pat,int modop,int mflags)" ( (parameter_declaration "HASH_TABLE *h" type_identifier (pointer_declarator "*h" * identifier)) , (parameter_declaration "char *pat" primitive_type (pointer_declarator "*pat" * identifier)) , (parameter_declaration "int modop" primitive_type identifier) , (parameter_declaration "int mflags" primitive_type identifier) )))) (compound_statement "{\n  word_list **ppwVar1;\n  WORD_LIST *pWVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  word_list *pwVar5;\n  \n  if (h == (HASH_TABLE *)0x0) {\n    pcVar3 = (char *)0x0;\n  }\n  else if (h->nentries == 0) {\n    pcVar3 = (char *)0x0;\n  }\n  else {\n    pWVar2 = assoc_to_word_list(h);\n    pwVar5 = pWVar2;\n    if (pWVar2 == (WORD_LIST *)0x0) {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      do {\n        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);\n        if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }\n        pwVar5->word->word = pcVar3;\n        ppwVar1 = &pwVar5->next;\n        pwVar5 = *ppwVar1;\n      } while (*ppwVar1 != (word_list *)0x0);\n      uVar4 = 0x40;\n      if ((mflags & 0x80U) != 0) {\n        uVar4 = 0x2a;\n      }\n      pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f);\n      (*(code *)PTR_dispose_words_001565d4)(pWVar2);\n    }\n  }\n  return pcVar3;\n}" { (declaration "word_list **ppwVar1;" type_identifier (pointer_declarator "**ppwVar1" * (pointer_declarator "*ppwVar1" * identifier)) ;) (declaration "WORD_LIST *pWVar2;" type_identifier (pointer_declarator "*pWVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "word_list *pwVar5;" type_identifier (pointer_declarator "*pwVar5" * identifier) ;) (if_statement "if (h == (HASH_TABLE *)0x0) {\n    pcVar3 = (char *)0x0;\n  }\n  else if (h->nentries == 0) {\n    pcVar3 = (char *)0x0;\n  }\n  else {\n    pWVar2 = assoc_to_word_list(h);\n    pwVar5 = pWVar2;\n    if (pWVar2 == (WORD_LIST *)0x0) {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      do {\n        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);\n        if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }\n        pwVar5->word->word = pcVar3;\n        ppwVar1 = &pwVar5->next;\n        pwVar5 = *ppwVar1;\n      } while (*ppwVar1 != (word_list *)0x0);\n      uVar4 = 0x40;\n      if ((mflags & 0x80U) != 0) {\n        uVar4 = 0x2a;\n      }\n      pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f);\n      (*(code *)PTR_dispose_words_001565d4)(pWVar2);\n    }\n  }" if (parenthesized_expression "(h == (HASH_TABLE *)0x0)" ( (binary_expression "h == (HASH_TABLE *)0x0" identifier == (cast_expression "(HASH_TABLE *)0x0" ( (type_descriptor "HASH_TABLE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = (char *)0x0;\n  }" { (expression_statement "pcVar3 = (char *)0x0;" (assignment_expression "pcVar3 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else if (h->nentries == 0) {\n    pcVar3 = (char *)0x0;\n  }\n  else {\n    pWVar2 = assoc_to_word_list(h);\n    pwVar5 = pWVar2;\n    if (pWVar2 == (WORD_LIST *)0x0) {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      do {\n        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);\n        if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }\n        pwVar5->word->word = pcVar3;\n        ppwVar1 = &pwVar5->next;\n        pwVar5 = *ppwVar1;\n      } while (*ppwVar1 != (word_list *)0x0);\n      uVar4 = 0x40;\n      if ((mflags & 0x80U) != 0) {\n        uVar4 = 0x2a;\n      }\n      pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f);\n      (*(code *)PTR_dispose_words_001565d4)(pWVar2);\n    }\n  }" else (if_statement "if (h->nentries == 0) {\n    pcVar3 = (char *)0x0;\n  }\n  else {\n    pWVar2 = assoc_to_word_list(h);\n    pwVar5 = pWVar2;\n    if (pWVar2 == (WORD_LIST *)0x0) {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      do {\n        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);\n        if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }\n        pwVar5->word->word = pcVar3;\n        ppwVar1 = &pwVar5->next;\n        pwVar5 = *ppwVar1;\n      } while (*ppwVar1 != (word_list *)0x0);\n      uVar4 = 0x40;\n      if ((mflags & 0x80U) != 0) {\n        uVar4 = 0x2a;\n      }\n      pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f);\n      (*(code *)PTR_dispose_words_001565d4)(pWVar2);\n    }\n  }" if (parenthesized_expression "(h->nentries == 0)" ( (binary_expression "h->nentries == 0" (field_expression "h->nentries" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    pcVar3 = (char *)0x0;\n  }" { (expression_statement "pcVar3 = (char *)0x0;" (assignment_expression "pcVar3 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    pWVar2 = assoc_to_word_list(h);\n    pwVar5 = pWVar2;\n    if (pWVar2 == (WORD_LIST *)0x0) {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      do {\n        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);\n        if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }\n        pwVar5->word->word = pcVar3;\n        ppwVar1 = &pwVar5->next;\n        pwVar5 = *ppwVar1;\n      } while (*ppwVar1 != (word_list *)0x0);\n      uVar4 = 0x40;\n      if ((mflags & 0x80U) != 0) {\n        uVar4 = 0x2a;\n      }\n      pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f);\n      (*(code *)PTR_dispose_words_001565d4)(pWVar2);\n    }\n  }" else (compound_statement "{\n    pWVar2 = assoc_to_word_list(h);\n    pwVar5 = pWVar2;\n    if (pWVar2 == (WORD_LIST *)0x0) {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      do {\n        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);\n        if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }\n        pwVar5->word->word = pcVar3;\n        ppwVar1 = &pwVar5->next;\n        pwVar5 = *ppwVar1;\n      } while (*ppwVar1 != (word_list *)0x0);\n      uVar4 = 0x40;\n      if ((mflags & 0x80U) != 0) {\n        uVar4 = 0x2a;\n      }\n      pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f);\n      (*(code *)PTR_dispose_words_001565d4)(pWVar2);\n    }\n  }" { (expression_statement "pWVar2 = assoc_to_word_list(h);" (assignment_expression "pWVar2 = assoc_to_word_list(h)" identifier = (call_expression "assoc_to_word_list(h)" identifier (argument_list "(h)" ( identifier )))) ;) (expression_statement "pwVar5 = pWVar2;" (assignment_expression "pwVar5 = pWVar2" identifier = identifier) ;) (if_statement "if (pWVar2 == (WORD_LIST *)0x0) {\n      pcVar3 = (char *)0x0;\n    }\n    else {\n      do {\n        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);\n        if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }\n        pwVar5->word->word = pcVar3;\n        ppwVar1 = &pwVar5->next;\n        pwVar5 = *ppwVar1;\n      } while (*ppwVar1 != (word_list *)0x0);\n      uVar4 = 0x40;\n      if ((mflags & 0x80U) != 0) {\n        uVar4 = 0x2a;\n      }\n      pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f);\n      (*(code *)PTR_dispose_words_001565d4)(pWVar2);\n    }" if (parenthesized_expression "(pWVar2 == (WORD_LIST *)0x0)" ( (binary_expression "pWVar2 == (WORD_LIST *)0x0" identifier == (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar3 = (char *)0x0;\n    }" { (expression_statement "pcVar3 = (char *)0x0;" (assignment_expression "pcVar3 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      do {\n        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);\n        if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }\n        pwVar5->word->word = pcVar3;\n        ppwVar1 = &pwVar5->next;\n        pwVar5 = *ppwVar1;\n      } while (*ppwVar1 != (word_list *)0x0);\n      uVar4 = 0x40;\n      if ((mflags & 0x80U) != 0) {\n        uVar4 = 0x2a;\n      }\n      pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f);\n      (*(code *)PTR_dispose_words_001565d4)(pWVar2);\n    }" else (compound_statement "{\n      do {\n        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);\n        if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }\n        pwVar5->word->word = pcVar3;\n        ppwVar1 = &pwVar5->next;\n        pwVar5 = *ppwVar1;\n      } while (*ppwVar1 != (word_list *)0x0);\n      uVar4 = 0x40;\n      if ((mflags & 0x80U) != 0) {\n        uVar4 = 0x2a;\n      }\n      pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f);\n      (*(code *)PTR_dispose_words_001565d4)(pWVar2);\n    }" { (do_statement "do {\n        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);\n        if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }\n        pwVar5->word->word = pcVar3;\n        ppwVar1 = &pwVar5->next;\n        pwVar5 = *ppwVar1;\n      } while (*ppwVar1 != (word_list *)0x0);" do (compound_statement "{\n        pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);\n        if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }\n        pwVar5->word->word = pcVar3;\n        ppwVar1 = &pwVar5->next;\n        pwVar5 = *ppwVar1;\n      }" { (expression_statement "pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop)" identifier = (cast_expression "(char *)(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sh_modcase_00156fe8)(pwVar5->word->word,pat,modop)" (parenthesized_expression "(*(code *)PTR_sh_modcase_00156fe8)" ( (pointer_expression "*(code *)PTR_sh_modcase_00156fe8" * (cast_expression "(code *)PTR_sh_modcase_00156fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pwVar5->word->word,pat,modop)" ( (field_expression "pwVar5->word->word" (field_expression "pwVar5->word" identifier -> field_identifier) -> field_identifier) , identifier , identifier ))))) ;) (if_statement "if (pwVar5->word->word != (char *)0x0) {\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }" if (parenthesized_expression "(pwVar5->word->word != (char *)0x0)" ( (binary_expression "pwVar5->word->word != (char *)0x0" (field_expression "pwVar5->word->word" (field_expression "pwVar5->word" identifier -> field_identifier) -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar3 = (char *)(*(code *)PTR_free_001585ac)();\n          return pcVar3;\n        }" { (expression_statement "pcVar3 = (char *)(*(code *)PTR_free_001585ac)();" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_free_001585ac)()" identifier = (cast_expression "(char *)(*(code *)PTR_free_001585ac)()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_free_001585ac)()" (parenthesized_expression "(*(code *)PTR_free_001585ac)" ( (pointer_expression "*(code *)PTR_free_001585ac" * (cast_expression "(code *)PTR_free_001585ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "pwVar5->word->word = pcVar3;" (assignment_expression "pwVar5->word->word = pcVar3" (field_expression "pwVar5->word->word" (field_expression "pwVar5->word" identifier -> field_identifier) -> field_identifier) = identifier) ;) (expression_statement "ppwVar1 = &pwVar5->next;" (assignment_expression "ppwVar1 = &pwVar5->next" identifier = (pointer_expression "&pwVar5->next" & (field_expression "pwVar5->next" identifier -> field_identifier))) ;) (expression_statement "pwVar5 = *ppwVar1;" (assignment_expression "pwVar5 = *ppwVar1" identifier = (pointer_expression "*ppwVar1" * identifier)) ;) }) while (parenthesized_expression "(*ppwVar1 != (word_list *)0x0)" ( (binary_expression "*ppwVar1 != (word_list *)0x0" (pointer_expression "*ppwVar1" * identifier) != (cast_expression "(word_list *)0x0" ( (type_descriptor "word_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "uVar4 = 0x40;" (assignment_expression "uVar4 = 0x40" identifier = number_literal) ;) (if_statement "if ((mflags & 0x80U) != 0) {\n        uVar4 = 0x2a;\n      }" if (parenthesized_expression "((mflags & 0x80U) != 0)" ( (binary_expression "(mflags & 0x80U) != 0" (parenthesized_expression "(mflags & 0x80U)" ( (binary_expression "mflags & 0x80U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        uVar4 = 0x2a;\n      }" { (expression_statement "uVar4 = 0x2a;" (assignment_expression "uVar4 = 0x2a" identifier = number_literal) ;) })) (expression_statement "pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f)" identifier = (cast_expression "(char *)(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_string_list_pos_params_001572f4)\n                                 (uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_string_list_pos_params_001572f4)" ( (pointer_expression "*(code *)PTR_string_list_pos_params_001572f4" * (cast_expression "(code *)PTR_string_list_pos_params_001572f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,pWVar2,(uint)(mflags << 0x1a) >> 0x1f)" ( identifier , identifier , (binary_expression "(uint)(mflags << 0x1a) >> 0x1f" (call_expression "(uint)(mflags << 0x1a)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(mflags << 0x1a)" ( (binary_expression "mflags << 0x1a" identifier << number_literal) ))) >> number_literal) ))))) ;) (expression_statement "(*(code *)PTR_dispose_words_001565d4)(pWVar2);" (call_expression "(*(code *)PTR_dispose_words_001565d4)(pWVar2)" (parenthesized_expression "(*(code *)PTR_dispose_words_001565d4)" ( (pointer_expression "*(code *)PTR_dispose_words_001565d4" * (cast_expression "(code *)PTR_dispose_words_001565d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pWVar2)" ( identifier ))) ;) }))) }))))) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "undefined4 assoc_modcase(int param_1,undefined4 param_2,undefined4 param_3,uint param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  if (param_1 == 0) {\n    uVar3 = 0;\n  }\n  else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 assoc_modcase(int param_1,undefined4 param_2,undefined4 param_3,uint param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  if (param_1 == 0) {\n    uVar3 = 0;\n  }\n  else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }\n  return uVar3;\n}" type_identifier (function_declarator "assoc_modcase(int param_1,undefined4 param_2,undefined4 param_3,uint param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,uint param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  if (param_1 == 0) {\n    uVar3 = 0;\n  }\n  else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }\n  return uVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (if_statement "if (param_1 == 0) {\n    uVar3 = 0;\n  }\n  else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" else (if_statement "if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" ( (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" else (compound_statement "{\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" { (expression_statement "piVar1 = (int *)assoc_to_word_list();" (assignment_expression "piVar1 = (int *)assoc_to_word_list()" identifier = (cast_expression "(int *)assoc_to_word_list()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "assoc_to_word_list()" identifier (argument_list "()" ( ))))) ;) (expression_statement "piVar4 = piVar1;" (assignment_expression "piVar4 = piVar1" identifier = identifier) ;) (if_statement "if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar3 = 0;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }" else (compound_statement "{\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }" { (do_statement "do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);" do (compound_statement "{\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      }" { (expression_statement "iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);" (assignment_expression "iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3)" identifier = (call_expression "(*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3)" (parenthesized_expression "(*(code *)PTR_sh_modcase_00156fe8)" ( (pointer_expression "*(code *)PTR_sh_modcase_00156fe8" * (cast_expression "(code *)PTR_sh_modcase_00156fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)piVar4[1],param_2,param_3)" ( (pointer_expression "*(undefined4 *)piVar4[1]" * (cast_expression "(undefined4 *)piVar4[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[1]" identifier [ number_literal ]))) , identifier , identifier )))) ;) (if_statement "if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }" if (parenthesized_expression "(*(int *)piVar4[1] == 0)" ( (binary_expression "*(int *)piVar4[1] == 0" (pointer_expression "*(int *)piVar4[1]" * (cast_expression "(int *)piVar4[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[1]" identifier [ number_literal ]))) == number_literal) )) (compound_statement "{\n          *(int *)piVar4[1] = iVar2;\n        }" { (expression_statement "*(int *)piVar4[1] = iVar2;" (assignment_expression "*(int *)piVar4[1] = iVar2" (pointer_expression "*(int *)piVar4[1]" * (cast_expression "(int *)piVar4[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[1]" identifier [ number_literal ]))) = identifier) ;) }) (else_clause "else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }" else (compound_statement "{\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }" { (expression_statement "(*(code *)PTR_free_001585ac)();" (call_expression "(*(code *)PTR_free_001585ac)()" (parenthesized_expression "(*(code *)PTR_free_001585ac)" ( (pointer_expression "*(code *)PTR_free_001585ac" * (cast_expression "(code *)PTR_free_001585ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(int *)piVar4[1] = iVar2;" (assignment_expression "*(int *)piVar4[1] = iVar2" (pointer_expression "*(int *)piVar4[1]" * (cast_expression "(int *)piVar4[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[1]" identifier [ number_literal ]))) = identifier) ;) }))) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "uVar3 = 0x40;" (assignment_expression "uVar3 = 0x40" identifier = number_literal) ;) (if_statement "if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }" if (parenthesized_expression "((param_4 & 0x80) != 0)" ( (binary_expression "(param_4 & 0x80) != 0" (parenthesized_expression "(param_4 & 0x80)" ( (binary_expression "param_4 & 0x80" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        uVar3 = 0x2a;\n      }" { (expression_statement "uVar3 = 0x2a;" (assignment_expression "uVar3 = 0x2a" identifier = number_literal) ;) })) (expression_statement "uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;" (assignment_expression "uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)" identifier = (call_expression "(*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_string_list_pos_params_001572f4)" ( (pointer_expression "*(code *)PTR_string_list_pos_params_001572f4" * (cast_expression "(code *)PTR_string_list_pos_params_001572f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)" ( identifier , identifier , (binary_expression "(param_4 << 0x1a) >> 0x1f" (parenthesized_expression "(param_4 << 0x1a)" ( (binary_expression "param_4 << 0x1a" identifier << number_literal) )) >> number_literal) )))) ;) (expression_statement "(*(code *)PTR_dispose_words_001565d4)(piVar1);" (call_expression "(*(code *)PTR_dispose_words_001565d4)(piVar1)" (parenthesized_expression "(*(code *)PTR_dispose_words_001565d4)" ( (pointer_expression "*(code *)PTR_dispose_words_001565d4" * (cast_expression "(code *)PTR_dispose_words_001565d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar1)" ( identifier ))) ;) }))) }))))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }))) }))))) (return_statement return IDENT ;) })))
(function_definition "undefined4 assoc_modcase(int param_1,undefined4 param_2,undefined4 param_3,uint param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  if (param_1 == 0) {\n    uVar3 = 0;\n  }\n  else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "assoc_modcase(int param_1,undefined4 param_2,undefined4 param_3,uint param_4)" (identifier "assoc_modcase") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,uint param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  if (param_1 == 0) {\n    uVar3 = 0;\n  }\n  else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }\n  return uVar3;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (if_statement "if (param_1 == 0) {\n    uVar3 = 0;\n  }\n  else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" (else "else") (if_statement "if (*(int *)(param_1 + 8) == 0) {\n    uVar3 = 0;\n  }\n  else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" (else "else") (compound_statement "{\n    piVar1 = (int *)assoc_to_word_list();\n    piVar4 = piVar1;\n    if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }\n  }" ({ "{") (expression_statement "piVar1 = (int *)assoc_to_word_list();" (assignment_expression "piVar1 = (int *)assoc_to_word_list()" (identifier "piVar1") (= "=") (cast_expression "(int *)assoc_to_word_list()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "assoc_to_word_list()" (identifier "assoc_to_word_list") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "piVar4 = piVar1;" (assignment_expression "piVar4 = piVar1" (identifier "piVar4") (= "=") (identifier "piVar1")) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n      uVar3 = 0;\n    }\n    else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar3 = 0;\n    }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }" (else "else") (compound_statement "{\n      do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);\n      uVar3 = 0x40;\n      if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }\n      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;\n      (*(code *)PTR_dispose_words_001565d4)(piVar1);\n    }" ({ "{") (do_statement "do {\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      } while (piVar4 != (int *)0x0);" (do "do") (compound_statement "{\n        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);\n        if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }\n        piVar4 = (int *)*piVar4;\n      }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);" (assignment_expression "iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3)" (parenthesized_expression "(*(code *)PTR_sh_modcase_00156fe8)" (( "(") (pointer_expression "*(code *)PTR_sh_modcase_00156fe8" (* "*") (cast_expression "(code *)PTR_sh_modcase_00156fe8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sh_modcase_00156fe8"))) () ")")) (argument_list "(*(undefined4 *)piVar4[1],param_2,param_3)" (( "(") (pointer_expression "*(undefined4 *)piVar4[1]" (* "*") (cast_expression "(undefined4 *)piVar4[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")))) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (*(int *)piVar4[1] == 0) {\n          *(int *)piVar4[1] = iVar2;\n        }\n        else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }" (if "if") (parenthesized_expression "(*(int *)piVar4[1] == 0)" (( "(") (binary_expression "*(int *)piVar4[1] == 0" (pointer_expression "*(int *)piVar4[1]" (* "*") (cast_expression "(int *)piVar4[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          *(int *)piVar4[1] = iVar2;\n        }" ({ "{") (expression_statement "*(int *)piVar4[1] = iVar2;" (assignment_expression "*(int *)piVar4[1] = iVar2" (pointer_expression "*(int *)piVar4[1]" (* "*") (cast_expression "(int *)piVar4[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")))) (= "=") (identifier "iVar2")) (; ";")) (} "}")) (else_clause "else {\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }" (else "else") (compound_statement "{\n          (*(code *)PTR_free_001585ac)();\n          *(int *)piVar4[1] = iVar2;\n        }" ({ "{") (expression_statement "(*(code *)PTR_free_001585ac)();" (call_expression "(*(code *)PTR_free_001585ac)()" (parenthesized_expression "(*(code *)PTR_free_001585ac)" (( "(") (pointer_expression "*(code *)PTR_free_001585ac" (* "*") (cast_expression "(code *)PTR_free_001585ac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001585ac"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)piVar4[1] = iVar2;" (assignment_expression "*(int *)piVar4[1] = iVar2" (pointer_expression "*(int *)piVar4[1]" (* "*") (cast_expression "(int *)piVar4[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")))) (= "=") (identifier "iVar2")) (; ";")) (} "}")))) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" (identifier "piVar4") (= "=") (cast_expression "(int *)*piVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar4 != (int *)0x0)" (( "(") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "uVar3 = 0x40;" (assignment_expression "uVar3 = 0x40" (identifier "uVar3") (= "=") (number_literal "0x40")) (; ";")) (if_statement "if ((param_4 & 0x80) != 0) {\n        uVar3 = 0x2a;\n      }" (if "if") (parenthesized_expression "((param_4 & 0x80) != 0)" (( "(") (binary_expression "(param_4 & 0x80) != 0" (parenthesized_expression "(param_4 & 0x80)" (( "(") (binary_expression "param_4 & 0x80" (identifier "param_4") (& "&") (number_literal "0x80")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar3 = 0x2a;\n      }" ({ "{") (expression_statement "uVar3 = 0x2a;" (assignment_expression "uVar3 = 0x2a" (identifier "uVar3") (= "=") (number_literal "0x2a")) (; ";")) (} "}"))) (expression_statement "uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)\n      ;" (assignment_expression "uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_string_list_pos_params_001572f4)" (( "(") (pointer_expression "*(code *)PTR_string_list_pos_params_001572f4" (* "*") (cast_expression "(code *)PTR_string_list_pos_params_001572f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_string_list_pos_params_001572f4"))) () ")")) (argument_list "(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)" (( "(") (identifier "uVar3") (, ",") (identifier "piVar1") (, ",") (binary_expression "(param_4 << 0x1a) >> 0x1f" (parenthesized_expression "(param_4 << 0x1a)" (( "(") (binary_expression "param_4 << 0x1a" (identifier "param_4") (<< "<<") (number_literal "0x1a")) () ")")) (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_dispose_words_001565d4)(piVar1);" (call_expression "(*(code *)PTR_dispose_words_001565d4)(piVar1)" (parenthesized_expression "(*(code *)PTR_dispose_words_001565d4)" (( "(") (pointer_expression "*(code *)PTR_dispose_words_001565d4" (* "*") (cast_expression "(code *)PTR_dispose_words_001565d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dispose_words_001565d4"))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (} "}")))) (} "}")))))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (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: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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: (identifier)))) arguments: (argument_list (identifier) (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))))))))))) (return_statement (identifier)))))

undefined4 MASKED(int param_1,undefined4 param_2,undefined4 param_3,uint param_4)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  int *piVar4;
  
  if (param_1 == 0) {
    uVar3 = 0;
  }
  else if (*(int *)(param_1 + 8) == 0) {
    uVar3 = 0;
  }
  else {
    piVar1 = (int *)assoc_to_word_list();
    piVar4 = piVar1;
    if (piVar1 == (int *)0x0) {
      uVar3 = 0;
    }
    else {
      do {
        iVar2 = (*(code *)PTR_sh_modcase_00156fe8)(*(undefined4 *)piVar4[1],param_2,param_3);
        if (*(int *)piVar4[1] == 0) {
          *(int *)piVar4[1] = iVar2;
        }
        else {
          (*(code *)PTR_free_001585ac)();
          *(int *)piVar4[1] = iVar2;
        }
        piVar4 = (int *)*piVar4;
      } while (piVar4 != (int *)0x0);
      uVar3 = 0x40;
      if ((param_4 & 0x80) != 0) {
        uVar3 = 0x2a;
      }
      uVar3 = (*(code *)PTR_string_list_pos_params_001572f4)(uVar3,piVar1,(param_4 << 0x1a) >> 0x1f)
      ;
      (*(code *)PTR_dispose_words_001565d4)(piVar1);
    }
  }
  return uVar3;
}

