
word32 bitsel(word32 *input,int *bitnums,int size)

{
  word32 wVar1;
  uint uVar2;
  uint *puVar3;
  uint uVar4;
  
  wVar1 = 0;
  while( true ) {
    size = size + -1;
    puVar3 = (uint *)bitnums + 1;
    if (size == -1) break;
    uVar2 = *bitnums;
    wVar1 = wVar1 << 1;
    bitnums = (int *)puVar3;
    if (-1 < (int)uVar2) {
      uVar4 = uVar2;
      if ((int)uVar2 < 0) {
        uVar4 = uVar2 + 0x1f;
      }
      wVar1 = wVar1 | input[(int)uVar4 >> 5] >> (uVar2 & 0x1f) & 1;
    }
  }
  return wVar1;
}



uint FUN_000632f0(int param_1,uint *param_2,int param_3)

{
  uint uVar1;
  uint uVar2;
  uint *puVar3;
  uint uVar4;
  
  uVar1 = 0;
  while( true ) {
    param_3 = param_3 + -1;
    puVar3 = param_2 + 1;
    if (param_3 == -1) break;
    uVar2 = *param_2;
    uVar1 = uVar1 << 1;
    param_2 = puVar3;
    if (-1 < (int)uVar2) {
      uVar4 = uVar2;
      if ((int)uVar2 < 0) {
        uVar4 = uVar2 + 0x1f;
      }
      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;
    }
  }
  return uVar1;
}


or v0,zero,zero
li t0,-0x1
lui t1,0x8000
addiu t1,t1,0x1f
b 0x00063320
_li t2,-0x20
b 0x00063340
_addiu a3,v1,0x1f
lw a3,0x0(a3)
srlv v1,a3,v1
andi v1,v1,0x1
or v0,v0,v1
addiu a2,a2,-0x1
beq a2,t0,0x00063364
_addiu a1,a1,0x4
lw v1,-0x4(a1)
bltz v1,0x00063320
_sll v0,v0,0x1
bltz v1,0x00063308
_or a3,v1,zero
sra a3,a3,0x5
sll a3,a3,0x2
and v1,v1,t1
bgez v1,0x00063310
_addu a3,a0,a3
addiu v1,v1,-0x1
or v1,v1,t2
b 0x00063310
_addiu v1,v1,0x1
jr ra
_nop
(translation_unit "uint FUN_000632f0(int param_1,uint *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  uVar1 = 0;\n  while( true ) {\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "uint FUN_000632f0(int param_1,uint *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  uVar1 = 0;\n  while( true ) {\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000632f0(int param_1,uint *param_2,int param_3)" identifier (parameter_list "(int param_1,uint *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  uVar1 = 0;\n  while( true ) {\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }" { (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (expression_statement "puVar3 = param_2 + 1;" (assignment_expression "puVar3 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (param_3 == -1) break;" if (parenthesized_expression "(param_3 == -1)" ( (binary_expression "param_3 == -1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar1 = uVar1 << 1;" (assignment_expression "uVar1 = uVar1 << 1" identifier = (binary_expression "uVar1 << 1" identifier << number_literal)) ;) (expression_statement "param_2 = puVar3;" (assignment_expression "param_2 = puVar3" identifier = identifier) ;) (if_statement "if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }" if (parenthesized_expression "(-1 < (int)uVar2)" ( (binary_expression "-1 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }" { (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) (if_statement "if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }" if (parenthesized_expression "((int)uVar2 < 0)" ( (binary_expression "(int)uVar2 < 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        uVar4 = uVar2 + 0x1f;\n      }" { (expression_statement "uVar4 = uVar2 + 0x1f;" (assignment_expression "uVar4 = uVar2 + 0x1f" identifier = (binary_expression "uVar2 + 0x1f" identifier + number_literal)) ;) })) (expression_statement "uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;" (assignment_expression "uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1" identifier = (binary_expression "uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1" identifier | (binary_expression "*(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1" (binary_expression "*(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f)" (pointer_expression "*(uint *)(param_1 + ((int)uVar4 >> 5) * 4)" * (cast_expression "(uint *)(param_1 + ((int)uVar4 >> 5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + ((int)uVar4 >> 5) * 4)" ( (binary_expression "param_1 + ((int)uVar4 >> 5) * 4" identifier + (binary_expression "((int)uVar4 >> 5) * 4" (parenthesized_expression "((int)uVar4 >> 5)" ( (binary_expression "(int)uVar4 >> 5" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) * number_literal)) )))) >> (parenthesized_expression "(uVar2 & 0x1f)" ( (binary_expression "uVar2 & 0x1f" identifier & number_literal) ))) & number_literal))) ;) })) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "word32 bitsel(word32 *input,int *bitnums,int size)\n\n{\n  word32 wVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  wVar1 = 0;\n  while( true ) {\n    size = size + -1;\n    puVar3 = (uint *)bitnums + 1;\n    if (size == -1) break;\n    uVar2 = *bitnums;\n    wVar1 = wVar1 << 1;\n    bitnums = (int *)puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      wVar1 = wVar1 | input[(int)uVar4 >> 5] >> (uVar2 & 0x1f) & 1;\n    }\n  }\n  return wVar1;\n}\n\n" (function_definition "word32 bitsel(word32 *input,int *bitnums,int size)\n\n{\n  word32 wVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  wVar1 = 0;\n  while( true ) {\n    size = size + -1;\n    puVar3 = (uint *)bitnums + 1;\n    if (size == -1) break;\n    uVar2 = *bitnums;\n    wVar1 = wVar1 << 1;\n    bitnums = (int *)puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      wVar1 = wVar1 | input[(int)uVar4 >> 5] >> (uVar2 & 0x1f) & 1;\n    }\n  }\n  return wVar1;\n}" type_identifier (function_declarator "bitsel(word32 *input,int *bitnums,int size)" identifier (parameter_list "(word32 *input,int *bitnums,int size)" ( (parameter_declaration "word32 *input" type_identifier (pointer_declarator "*input" * identifier)) , (parameter_declaration "int *bitnums" primitive_type (pointer_declarator "*bitnums" * identifier)) , (parameter_declaration "int size" primitive_type identifier) ))) (compound_statement "{\n  word32 wVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  wVar1 = 0;\n  while( true ) {\n    size = size + -1;\n    puVar3 = (uint *)bitnums + 1;\n    if (size == -1) break;\n    uVar2 = *bitnums;\n    wVar1 = wVar1 << 1;\n    bitnums = (int *)puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      wVar1 = wVar1 | input[(int)uVar4 >> 5] >> (uVar2 & 0x1f) & 1;\n    }\n  }\n  return wVar1;\n}" { (declaration "word32 wVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "wVar1 = 0;" (assignment_expression "wVar1 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    size = size + -1;\n    puVar3 = (uint *)bitnums + 1;\n    if (size == -1) break;\n    uVar2 = *bitnums;\n    wVar1 = wVar1 << 1;\n    bitnums = (int *)puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      wVar1 = wVar1 | input[(int)uVar4 >> 5] >> (uVar2 & 0x1f) & 1;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    size = size + -1;\n    puVar3 = (uint *)bitnums + 1;\n    if (size == -1) break;\n    uVar2 = *bitnums;\n    wVar1 = wVar1 << 1;\n    bitnums = (int *)puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      wVar1 = wVar1 | input[(int)uVar4 >> 5] >> (uVar2 & 0x1f) & 1;\n    }\n  }" { (expression_statement "size = size + -1;" (assignment_expression "size = size + -1" identifier = (binary_expression "size + -1" identifier + number_literal)) ;) (expression_statement "puVar3 = (uint *)bitnums + 1;" (assignment_expression "puVar3 = (uint *)bitnums + 1" identifier = (binary_expression "(uint *)bitnums + 1" (cast_expression "(uint *)bitnums" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal)) ;) (if_statement "if (size == -1) break;" if (parenthesized_expression "(size == -1)" ( (binary_expression "size == -1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = *bitnums;" (assignment_expression "uVar2 = *bitnums" identifier = (pointer_expression "*bitnums" * identifier)) ;) (expression_statement "wVar1 = wVar1 << 1;" (assignment_expression "wVar1 = wVar1 << 1" identifier = (binary_expression "wVar1 << 1" identifier << number_literal)) ;) (expression_statement "bitnums = (int *)puVar3;" (assignment_expression "bitnums = (int *)puVar3" identifier = (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      wVar1 = wVar1 | input[(int)uVar4 >> 5] >> (uVar2 & 0x1f) & 1;\n    }" if (parenthesized_expression "(-1 < (int)uVar2)" ( (binary_expression "-1 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      wVar1 = wVar1 | input[(int)uVar4 >> 5] >> (uVar2 & 0x1f) & 1;\n    }" { (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) (if_statement "if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }" if (parenthesized_expression "((int)uVar2 < 0)" ( (binary_expression "(int)uVar2 < 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        uVar4 = uVar2 + 0x1f;\n      }" { (expression_statement "uVar4 = uVar2 + 0x1f;" (assignment_expression "uVar4 = uVar2 + 0x1f" identifier = (binary_expression "uVar2 + 0x1f" identifier + number_literal)) ;) })) (expression_statement "wVar1 = wVar1 | input[(int)uVar4 >> 5] >> (uVar2 & 0x1f) & 1;" (assignment_expression "wVar1 = wVar1 | input[(int)uVar4 >> 5] >> (uVar2 & 0x1f) & 1" identifier = (binary_expression "wVar1 | input[(int)uVar4 >> 5] >> (uVar2 & 0x1f) & 1" identifier | (binary_expression "input[(int)uVar4 >> 5] >> (uVar2 & 0x1f) & 1" (binary_expression "input[(int)uVar4 >> 5] >> (uVar2 & 0x1f)" (subscript_expression "input[(int)uVar4 >> 5]" identifier [ (binary_expression "(int)uVar4 >> 5" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ]) >> (parenthesized_expression "(uVar2 & 0x1f)" ( (binary_expression "uVar2 & 0x1f" identifier & number_literal) ))) & number_literal))) ;) })) })) (return_statement "return wVar1;" return identifier ;) })))
(translation_unit "uint FUN_000632f0(int param_1,uint *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  uVar1 = 0;\n  while( true ) {\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "uint FUN_000632f0(int param_1,uint *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  uVar1 = 0;\n  while( true ) {\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000632f0(int param_1,uint *param_2,int param_3)" identifier (parameter_list "(int param_1,uint *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  uVar1 = 0;\n  while( true ) {\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }" { (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (expression_statement "puVar3 = param_2 + 1;" (assignment_expression "puVar3 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (param_3 == -1) break;" if (parenthesized_expression "(param_3 == -1)" ( (binary_expression "param_3 == -1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar1 = uVar1 << 1;" (assignment_expression "uVar1 = uVar1 << 1" identifier = (binary_expression "uVar1 << 1" identifier << number_literal)) ;) (expression_statement "param_2 = puVar3;" (assignment_expression "param_2 = puVar3" identifier = identifier) ;) (if_statement "if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }" if (parenthesized_expression "(-1 < (int)uVar2)" ( (binary_expression "-1 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }" { (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) (if_statement "if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }" if (parenthesized_expression "((int)uVar2 < 0)" ( (binary_expression "(int)uVar2 < 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        uVar4 = uVar2 + 0x1f;\n      }" { (expression_statement "uVar4 = uVar2 + 0x1f;" (assignment_expression "uVar4 = uVar2 + 0x1f" identifier = (binary_expression "uVar2 + 0x1f" identifier + number_literal)) ;) })) (expression_statement "uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;" (assignment_expression "uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1" identifier = (binary_expression "uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1" identifier | (binary_expression "*(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1" (binary_expression "*(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f)" (pointer_expression "*(uint *)(param_1 + ((int)uVar4 >> 5) * 4)" * (cast_expression "(uint *)(param_1 + ((int)uVar4 >> 5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + ((int)uVar4 >> 5) * 4)" ( (binary_expression "param_1 + ((int)uVar4 >> 5) * 4" identifier + (binary_expression "((int)uVar4 >> 5) * 4" (parenthesized_expression "((int)uVar4 >> 5)" ( (binary_expression "(int)uVar4 >> 5" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) * number_literal)) )))) >> (parenthesized_expression "(uVar2 & 0x1f)" ( (binary_expression "uVar2 & 0x1f" identifier & number_literal) ))) & number_literal))) ;) })) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) * LIT)) )))) >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))) & LIT))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_000632f0(int param_1,uint *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  uVar1 = 0;\n  while( true ) {\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "FUN_000632f0(int param_1,uint *param_2,int param_3)" (identifier "FUN_000632f0") (parameter_list "(int param_1,uint *param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint uVar4;\n  \n  uVar1 = 0;\n  while( true ) {\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    param_3 = param_3 + -1;\n    puVar3 = param_2 + 1;\n    if (param_3 == -1) break;\n    uVar2 = *param_2;\n    uVar1 = uVar1 << 1;\n    param_2 = puVar3;\n    if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }\n  }" ({ "{") (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" (identifier "param_3") (= "=") (binary_expression "param_3 + -1" (identifier "param_3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar3 = param_2 + 1;" (assignment_expression "puVar3 = param_2 + 1" (identifier "puVar3") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_3 == -1) break;" (if "if") (parenthesized_expression "(param_3 == -1)" (( "(") (binary_expression "param_3 == -1" (identifier "param_3") (== "==") (number_literal "-1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" (identifier "uVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "uVar1 = uVar1 << 1;" (assignment_expression "uVar1 = uVar1 << 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 << 1" (identifier "uVar1") (<< "<<") (number_literal "1"))) (; ";")) (expression_statement "param_2 = puVar3;" (assignment_expression "param_2 = puVar3" (identifier "param_2") (= "=") (identifier "puVar3")) (; ";")) (if_statement "if (-1 < (int)uVar2) {\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }" (if "if") (parenthesized_expression "(-1 < (int)uVar2)" (( "(") (binary_expression "-1 < (int)uVar2" (number_literal "-1") (< "<") (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2"))) () ")")) (compound_statement "{\n      uVar4 = uVar2;\n      if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }\n      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;\n    }" ({ "{") (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" (identifier "uVar4") (= "=") (identifier "uVar2")) (; ";")) (if_statement "if ((int)uVar2 < 0) {\n        uVar4 = uVar2 + 0x1f;\n      }" (if "if") (parenthesized_expression "((int)uVar2 < 0)" (( "(") (binary_expression "(int)uVar2 < 0" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        uVar4 = uVar2 + 0x1f;\n      }" ({ "{") (expression_statement "uVar4 = uVar2 + 0x1f;" (assignment_expression "uVar4 = uVar2 + 0x1f" (identifier "uVar4") (= "=") (binary_expression "uVar2 + 0x1f" (identifier "uVar2") (+ "+") (number_literal "0x1f"))) (; ";")) (} "}"))) (expression_statement "uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;" (assignment_expression "uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1" (identifier "uVar1") (| "|") (binary_expression "*(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1" (binary_expression "*(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f)" (pointer_expression "*(uint *)(param_1 + ((int)uVar4 >> 5) * 4)" (* "*") (cast_expression "(uint *)(param_1 + ((int)uVar4 >> 5) * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + ((int)uVar4 >> 5) * 4)" (( "(") (binary_expression "param_1 + ((int)uVar4 >> 5) * 4" (identifier "param_1") (+ "+") (binary_expression "((int)uVar4 >> 5) * 4" (parenthesized_expression "((int)uVar4 >> 5)" (( "(") (binary_expression "(int)uVar4 >> 5" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (>> ">>") (number_literal "5")) () ")")) (* "*") (number_literal "4"))) () ")")))) (>> ">>") (parenthesized_expression "(uVar2 & 0x1f)" (( "(") (binary_expression "uVar2 & 0x1f" (identifier "uVar2") (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1")))) (; ";")) (} "}"))) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

type_1 function_1(type_1 *input,int *bitnums,int var_1)

{
  type_1 var_2;
  type_2 var_3;
  type_2 *puVar3;
  type_2 uVar4;
  
  var_2 = 0;
  while( true ) {
    var_1 = var_1 + -1;
    puVar3 = (type_2 *)bitnums + 1;
    if (var_1 == -1) break;
    var_3 = *bitnums;
    var_2 = var_2 << 1;
    bitnums = (int *)puVar3;
    if (-1 < (int)var_3) {
      uVar4 = var_3;
      if ((int)var_3 < 0) {
        uVar4 = var_3 + 0x1f;
      }
      var_2 = var_2 | input[(int)uVar4 >> 5] >> (var_3 & 0x1f) & 1;
    }
  }
  return var_2;
}


(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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (binary_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: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))))))))) (return_statement (identifier)))))

uint MASKED(int param_1,uint *param_2,int param_3)

{
  uint uVar1;
  uint uVar2;
  uint *puVar3;
  uint uVar4;
  
  uVar1 = 0;
  while( true ) {
    param_3 = param_3 + -1;
    puVar3 = param_2 + 1;
    if (param_3 == -1) break;
    uVar2 = *param_2;
    uVar1 = uVar1 << 1;
    param_2 = puVar3;
    if (-1 < (int)uVar2) {
      uVar4 = uVar2;
      if ((int)uVar2 < 0) {
        uVar4 = uVar2 + 0x1f;
      }
      uVar1 = uVar1 | *(uint *)(param_1 + ((int)uVar4 >> 5) * 4) >> (uVar2 & 0x1f) & 1;
    }
  }
  return uVar1;
}

