
_Bool vbitset_and_or_cmp(bitset_conflict dst,bitset_conflict src1,bitset_conflict src2,
                        bitset_conflict src3)

{
  bitset_bindex n_bits;
  _Bool _Var1;
  uint *puVar2;
  uint *puVar3;
  bitset_word *pbVar4;
  bitset_word *pbVar5;
  bitset_windex bVar6;
  uint uVar7;
  bitset_windex bVar8;
  
  n_bits = (src1->b).n_bits;
  if ((n_bits == (src2->b).n_bits) && (n_bits == (src3->b).n_bits)) {
    vbitset_resize(dst,n_bits);
    bVar8 = (dst->b).csize;
    pbVar4 = (src2->a).b.cdata;
    puVar2 = (dst->a).b.cdata;
    if (bVar8 == 0) {
      _Var1 = false;
    }
    else {
      bVar6 = 0;
      _Var1 = false;
      puVar3 = (src1->a).b.cdata;
      pbVar5 = (src3->a).b.cdata;
      do {
        uVar7 = *pbVar4;
        pbVar4 = pbVar4 + 1;
        uVar7 = *puVar3 & uVar7 | *pbVar5;
        bVar6 = bVar6 + 1;
        if (*puVar2 != uVar7) {
          _Var1 = true;
          *puVar2 = uVar7;
        }
        puVar2 = puVar2 + 1;
        puVar3 = puVar3 + 1;
        pbVar5 = pbVar5 + 1;
      } while (bVar8 != bVar6);
    }
    return _Var1;
  }
  _Var1 = bitset_and_or_cmp_(dst,src1,src2,src3);
  return _Var1;
}



undefined4 FUN_0006316c(int param_1,int param_2,int param_3,int param_4)

{
  int iVar1;
  undefined4 uVar2;
  uint *puVar3;
  uint *puVar4;
  uint *puVar5;
  uint *puVar6;
  int iVar7;
  uint uVar8;
  
  iVar1 = *(int *)(param_2 + 0x10);
  if ((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))) {
    FUN_00062c8c(param_1,iVar1);
    iVar1 = *(int *)(param_1 + 8);
    puVar5 = *(uint **)(param_3 + 0xc);
    puVar3 = *(uint **)(param_1 + 0xc);
    if (iVar1 == 0) {
      uVar2 = 0;
    }
    else {
      iVar7 = 0;
      uVar2 = 0;
      puVar4 = *(uint **)(param_2 + 0xc);
      puVar6 = *(uint **)(param_4 + 0xc);
      do {
        uVar8 = *puVar5;
        puVar5 = puVar5 + 1;
        uVar8 = *puVar4 & uVar8 | *puVar6;
        iVar7 = iVar7 + 1;
        if (*puVar3 != uVar8) {
          uVar2 = 1;
          *puVar3 = uVar8;
        }
        puVar3 = puVar3 + 1;
        puVar4 = puVar4 + 1;
        puVar6 = puVar6 + 1;
      } while (iVar1 != iVar7);
    }
    return uVar2;
  }
  uVar2 = bitset_and_or_cmp_(param_1);
  return uVar2;
}


lui gp,0x3
addiu gp,gp,0x2484
addu gp,gp,t9
addiu sp,sp,-0x30
lw v0,0x10(a1)
lw t0,0x10(a2)
sw gp,0x10(sp)
sw s3,0x28(sp)
or s3,a0,zero
sw ra,0x2c(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
bne v0,t0,0x000631b0
_sw s0,0x1c(sp)
lw t0,0x10(a3)
beq v0,t0,0x000631d4
_lw t9,-0x78a4(gp)
lw ra,0x2c(sp)
or a0,s3,zero
lw s2,0x24(sp)
lw s3,0x28(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x787c(gp)
b 0x00057f6c
_addiu sp,sp,0x30
or s1,a1,zero
or a1,v0,zero
or s2,a3,zero
addiu t9,t9,0x2c8c
bal 0x00062c8c
_or s0,a2,zero
lw t4,0x8(s3)
lw a1,0xc(s1)
lw a2,0xc(s0)
lw a3,0xc(s2)
beq t4,zero,0x00063264
_lw a0,0xc(s3)
or t0,zero,zero
or v0,zero,zero
addiu a1,a1,0x4
lw t3,0x0(a2)
addiu a3,a3,0x4
lw v1,-0x4(a1)
lw t2,-0x4(a3)
addiu a2,a2,0x4
lw t1,0x0(a0)
and v1,v1,t3
or v1,v1,t2
beq t1,v1,0x00063240
_addiu t0,t0,0x1
li v0,0x1
sw v1,0x0(a0)
bne t4,t0,0x0006320c
_addiu a0,a0,0x4
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
b 0x00063248
_or v0,zero,zero
(translation_unit "undefined4 FUN_0006316c(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  \n  iVar1 = *(int *)(param_2 + 0x10);\n  if ((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))) {\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }\n  uVar2 = bitset_and_or_cmp_(param_1);\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0006316c(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  \n  iVar1 = *(int *)(param_2 + 0x10);\n  if ((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))) {\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }\n  uVar2 = bitset_and_or_cmp_(param_1);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0006316c(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  \n  iVar1 = *(int *)(param_2 + 0x10);\n  if ((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))) {\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }\n  uVar2 = bitset_and_or_cmp_(param_1);\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if ((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))) {\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }" if (parenthesized_expression "((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10)))" ( (binary_expression "(iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))" (parenthesized_expression "(iVar1 == *(int *)(param_3 + 0x10))" ( (binary_expression "iVar1 == *(int *)(param_3 + 0x10)" identifier == (pointer_expression "*(int *)(param_3 + 0x10)" * (cast_expression "(int *)(param_3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) ))))) )) && (parenthesized_expression "(iVar1 == *(int *)(param_4 + 0x10))" ( (binary_expression "iVar1 == *(int *)(param_4 + 0x10)" identifier == (pointer_expression "*(int *)(param_4 + 0x10)" * (cast_expression "(int *)(param_4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x10)" ( (binary_expression "param_4 + 0x10" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }" { (expression_statement "FUN_00062c8c(param_1,iVar1);" (call_expression "FUN_00062c8c(param_1,iVar1)" identifier (argument_list "(param_1,iVar1)" ( identifier , identifier ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" identifier = (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) ))))) ;) (expression_statement "puVar5 = *(uint **)(param_3 + 0xc);" (assignment_expression "puVar5 = *(uint **)(param_3 + 0xc)" identifier = (pointer_expression "*(uint **)(param_3 + 0xc)" * (cast_expression "(uint **)(param_3 + 0xc)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = *(uint **)(param_1 + 0xc);" (assignment_expression "puVar3 = *(uint **)(param_1 + 0xc)" identifier = (pointer_expression "*(uint **)(param_1 + 0xc)" * (cast_expression "(uint **)(param_1 + 0xc)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = 0;\n    }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }" else (compound_statement "{\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = *(uint **)(param_2 + 0xc);" (assignment_expression "puVar4 = *(uint **)(param_2 + 0xc)" identifier = (pointer_expression "*(uint **)(param_2 + 0xc)" * (cast_expression "(uint **)(param_2 + 0xc)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar6 = *(uint **)(param_4 + 0xc);" (assignment_expression "puVar6 = *(uint **)(param_4 + 0xc)" identifier = (pointer_expression "*(uint **)(param_4 + 0xc)" * (cast_expression "(uint **)(param_4 + 0xc)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) ))))) ;) (do_statement "do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);" do (compound_statement "{\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      }" { (expression_statement "uVar8 = *puVar5;" (assignment_expression "uVar8 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = *puVar4 & uVar8 | *puVar6;" (assignment_expression "uVar8 = *puVar4 & uVar8 | *puVar6" identifier = (binary_expression "*puVar4 & uVar8 | *puVar6" (binary_expression "*puVar4 & uVar8" (pointer_expression "*puVar4" * identifier) & identifier) | (pointer_expression "*puVar6" * identifier))) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }" if (parenthesized_expression "(*puVar3 != uVar8)" ( (binary_expression "*puVar3 != uVar8" (pointer_expression "*puVar3" * identifier) != identifier) )) (compound_statement "{\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "*puVar3 = uVar8;" (assignment_expression "*puVar3 = uVar8" (pointer_expression "*puVar3" * identifier) = identifier) ;) })) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != iVar7)" ( (binary_expression "iVar1 != iVar7" identifier != identifier) )) ;) }))) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = bitset_and_or_cmp_(param_1);" (assignment_expression "uVar2 = bitset_and_or_cmp_(param_1)" identifier = (call_expression "bitset_and_or_cmp_(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "_Bool vbitset_and_or_cmp(bitset_conflict dst,bitset_conflict src1,bitset_conflict src2,\n                        bitset_conflict src3)\n\n{\n  bitset_bindex n_bits;\n  _Bool _Var1;\n  uint *puVar2;\n  uint *puVar3;\n  bitset_word *pbVar4;\n  bitset_word *pbVar5;\n  bitset_windex bVar6;\n  uint uVar7;\n  bitset_windex bVar8;\n  \n  n_bits = (src1->b).n_bits;\n  if ((n_bits == (src2->b).n_bits) && (n_bits == (src3->b).n_bits)) {\n    vbitset_resize(dst,n_bits);\n    bVar8 = (dst->b).csize;\n    pbVar4 = (src2->a).b.cdata;\n    puVar2 = (dst->a).b.cdata;\n    if (bVar8 == 0) {\n      _Var1 = false;\n    }\n    else {\n      bVar6 = 0;\n      _Var1 = false;\n      puVar3 = (src1->a).b.cdata;\n      pbVar5 = (src3->a).b.cdata;\n      do {\n        uVar7 = *pbVar4;\n        pbVar4 = pbVar4 + 1;\n        uVar7 = *puVar3 & uVar7 | *pbVar5;\n        bVar6 = bVar6 + 1;\n        if (*puVar2 != uVar7) {\n          _Var1 = true;\n          *puVar2 = uVar7;\n        }\n        puVar2 = puVar2 + 1;\n        puVar3 = puVar3 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar8 != bVar6);\n    }\n    return _Var1;\n  }\n  _Var1 = bitset_and_or_cmp_(dst,src1,src2,src3);\n  return _Var1;\n}\n\n" (function_definition "_Bool vbitset_and_or_cmp(bitset_conflict dst,bitset_conflict src1,bitset_conflict src2,\n                        bitset_conflict src3)\n\n{\n  bitset_bindex n_bits;\n  _Bool _Var1;\n  uint *puVar2;\n  uint *puVar3;\n  bitset_word *pbVar4;\n  bitset_word *pbVar5;\n  bitset_windex bVar6;\n  uint uVar7;\n  bitset_windex bVar8;\n  \n  n_bits = (src1->b).n_bits;\n  if ((n_bits == (src2->b).n_bits) && (n_bits == (src3->b).n_bits)) {\n    vbitset_resize(dst,n_bits);\n    bVar8 = (dst->b).csize;\n    pbVar4 = (src2->a).b.cdata;\n    puVar2 = (dst->a).b.cdata;\n    if (bVar8 == 0) {\n      _Var1 = false;\n    }\n    else {\n      bVar6 = 0;\n      _Var1 = false;\n      puVar3 = (src1->a).b.cdata;\n      pbVar5 = (src3->a).b.cdata;\n      do {\n        uVar7 = *pbVar4;\n        pbVar4 = pbVar4 + 1;\n        uVar7 = *puVar3 & uVar7 | *pbVar5;\n        bVar6 = bVar6 + 1;\n        if (*puVar2 != uVar7) {\n          _Var1 = true;\n          *puVar2 = uVar7;\n        }\n        puVar2 = puVar2 + 1;\n        puVar3 = puVar3 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar8 != bVar6);\n    }\n    return _Var1;\n  }\n  _Var1 = bitset_and_or_cmp_(dst,src1,src2,src3);\n  return _Var1;\n}" type_identifier (function_declarator "vbitset_and_or_cmp(bitset_conflict dst,bitset_conflict src1,bitset_conflict src2,\n                        bitset_conflict src3)" identifier (parameter_list "(bitset_conflict dst,bitset_conflict src1,bitset_conflict src2,\n                        bitset_conflict src3)" ( (parameter_declaration "bitset_conflict dst" type_identifier identifier) , (parameter_declaration "bitset_conflict src1" type_identifier identifier) , (parameter_declaration "bitset_conflict src2" type_identifier identifier) , (parameter_declaration "bitset_conflict src3" type_identifier identifier) ))) (compound_statement "{\n  bitset_bindex n_bits;\n  _Bool _Var1;\n  uint *puVar2;\n  uint *puVar3;\n  bitset_word *pbVar4;\n  bitset_word *pbVar5;\n  bitset_windex bVar6;\n  uint uVar7;\n  bitset_windex bVar8;\n  \n  n_bits = (src1->b).n_bits;\n  if ((n_bits == (src2->b).n_bits) && (n_bits == (src3->b).n_bits)) {\n    vbitset_resize(dst,n_bits);\n    bVar8 = (dst->b).csize;\n    pbVar4 = (src2->a).b.cdata;\n    puVar2 = (dst->a).b.cdata;\n    if (bVar8 == 0) {\n      _Var1 = false;\n    }\n    else {\n      bVar6 = 0;\n      _Var1 = false;\n      puVar3 = (src1->a).b.cdata;\n      pbVar5 = (src3->a).b.cdata;\n      do {\n        uVar7 = *pbVar4;\n        pbVar4 = pbVar4 + 1;\n        uVar7 = *puVar3 & uVar7 | *pbVar5;\n        bVar6 = bVar6 + 1;\n        if (*puVar2 != uVar7) {\n          _Var1 = true;\n          *puVar2 = uVar7;\n        }\n        puVar2 = puVar2 + 1;\n        puVar3 = puVar3 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar8 != bVar6);\n    }\n    return _Var1;\n  }\n  _Var1 = bitset_and_or_cmp_(dst,src1,src2,src3);\n  return _Var1;\n}" { (declaration "bitset_bindex n_bits;" type_identifier identifier ;) (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "bitset_word *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "bitset_word *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bitset_windex bVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "bitset_windex bVar8;" type_identifier identifier ;) (expression_statement "n_bits = (src1->b).n_bits;" (assignment_expression "n_bits = (src1->b).n_bits" identifier = (field_expression "(src1->b).n_bits" (parenthesized_expression "(src1->b)" ( (field_expression "src1->b" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if ((n_bits == (src2->b).n_bits) && (n_bits == (src3->b).n_bits)) {\n    vbitset_resize(dst,n_bits);\n    bVar8 = (dst->b).csize;\n    pbVar4 = (src2->a).b.cdata;\n    puVar2 = (dst->a).b.cdata;\n    if (bVar8 == 0) {\n      _Var1 = false;\n    }\n    else {\n      bVar6 = 0;\n      _Var1 = false;\n      puVar3 = (src1->a).b.cdata;\n      pbVar5 = (src3->a).b.cdata;\n      do {\n        uVar7 = *pbVar4;\n        pbVar4 = pbVar4 + 1;\n        uVar7 = *puVar3 & uVar7 | *pbVar5;\n        bVar6 = bVar6 + 1;\n        if (*puVar2 != uVar7) {\n          _Var1 = true;\n          *puVar2 = uVar7;\n        }\n        puVar2 = puVar2 + 1;\n        puVar3 = puVar3 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar8 != bVar6);\n    }\n    return _Var1;\n  }" if (parenthesized_expression "((n_bits == (src2->b).n_bits) && (n_bits == (src3->b).n_bits))" ( (binary_expression "(n_bits == (src2->b).n_bits) && (n_bits == (src3->b).n_bits)" (parenthesized_expression "(n_bits == (src2->b).n_bits)" ( (binary_expression "n_bits == (src2->b).n_bits" identifier == (field_expression "(src2->b).n_bits" (parenthesized_expression "(src2->b)" ( (field_expression "src2->b" identifier -> field_identifier) )) . field_identifier)) )) && (parenthesized_expression "(n_bits == (src3->b).n_bits)" ( (binary_expression "n_bits == (src3->b).n_bits" identifier == (field_expression "(src3->b).n_bits" (parenthesized_expression "(src3->b)" ( (field_expression "src3->b" identifier -> field_identifier) )) . field_identifier)) ))) )) (compound_statement "{\n    vbitset_resize(dst,n_bits);\n    bVar8 = (dst->b).csize;\n    pbVar4 = (src2->a).b.cdata;\n    puVar2 = (dst->a).b.cdata;\n    if (bVar8 == 0) {\n      _Var1 = false;\n    }\n    else {\n      bVar6 = 0;\n      _Var1 = false;\n      puVar3 = (src1->a).b.cdata;\n      pbVar5 = (src3->a).b.cdata;\n      do {\n        uVar7 = *pbVar4;\n        pbVar4 = pbVar4 + 1;\n        uVar7 = *puVar3 & uVar7 | *pbVar5;\n        bVar6 = bVar6 + 1;\n        if (*puVar2 != uVar7) {\n          _Var1 = true;\n          *puVar2 = uVar7;\n        }\n        puVar2 = puVar2 + 1;\n        puVar3 = puVar3 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar8 != bVar6);\n    }\n    return _Var1;\n  }" { (expression_statement "vbitset_resize(dst,n_bits);" (call_expression "vbitset_resize(dst,n_bits)" identifier (argument_list "(dst,n_bits)" ( identifier , identifier ))) ;) (expression_statement "bVar8 = (dst->b).csize;" (assignment_expression "bVar8 = (dst->b).csize" identifier = (field_expression "(dst->b).csize" (parenthesized_expression "(dst->b)" ( (field_expression "dst->b" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pbVar4 = (src2->a).b.cdata;" (assignment_expression "pbVar4 = (src2->a).b.cdata" identifier = (field_expression "(src2->a).b.cdata" (field_expression "(src2->a).b" (parenthesized_expression "(src2->a)" ( (field_expression "src2->a" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "puVar2 = (dst->a).b.cdata;" (assignment_expression "puVar2 = (dst->a).b.cdata" identifier = (field_expression "(dst->a).b.cdata" (field_expression "(dst->a).b" (parenthesized_expression "(dst->a)" ( (field_expression "dst->a" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (bVar8 == 0) {\n      _Var1 = false;\n    }\n    else {\n      bVar6 = 0;\n      _Var1 = false;\n      puVar3 = (src1->a).b.cdata;\n      pbVar5 = (src3->a).b.cdata;\n      do {\n        uVar7 = *pbVar4;\n        pbVar4 = pbVar4 + 1;\n        uVar7 = *puVar3 & uVar7 | *pbVar5;\n        bVar6 = bVar6 + 1;\n        if (*puVar2 != uVar7) {\n          _Var1 = true;\n          *puVar2 = uVar7;\n        }\n        puVar2 = puVar2 + 1;\n        puVar3 = puVar3 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar8 != bVar6);\n    }" if (parenthesized_expression "(bVar8 == 0)" ( (binary_expression "bVar8 == 0" identifier == number_literal) )) (compound_statement "{\n      _Var1 = false;\n    }" { (expression_statement "_Var1 = false;" (assignment_expression "_Var1 = false" identifier = false) ;) }) (else_clause "else {\n      bVar6 = 0;\n      _Var1 = false;\n      puVar3 = (src1->a).b.cdata;\n      pbVar5 = (src3->a).b.cdata;\n      do {\n        uVar7 = *pbVar4;\n        pbVar4 = pbVar4 + 1;\n        uVar7 = *puVar3 & uVar7 | *pbVar5;\n        bVar6 = bVar6 + 1;\n        if (*puVar2 != uVar7) {\n          _Var1 = true;\n          *puVar2 = uVar7;\n        }\n        puVar2 = puVar2 + 1;\n        puVar3 = puVar3 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar8 != bVar6);\n    }" else (compound_statement "{\n      bVar6 = 0;\n      _Var1 = false;\n      puVar3 = (src1->a).b.cdata;\n      pbVar5 = (src3->a).b.cdata;\n      do {\n        uVar7 = *pbVar4;\n        pbVar4 = pbVar4 + 1;\n        uVar7 = *puVar3 & uVar7 | *pbVar5;\n        bVar6 = bVar6 + 1;\n        if (*puVar2 != uVar7) {\n          _Var1 = true;\n          *puVar2 = uVar7;\n        }\n        puVar2 = puVar2 + 1;\n        puVar3 = puVar3 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar8 != bVar6);\n    }" { (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "_Var1 = false;" (assignment_expression "_Var1 = false" identifier = false) ;) (expression_statement "puVar3 = (src1->a).b.cdata;" (assignment_expression "puVar3 = (src1->a).b.cdata" identifier = (field_expression "(src1->a).b.cdata" (field_expression "(src1->a).b" (parenthesized_expression "(src1->a)" ( (field_expression "src1->a" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "pbVar5 = (src3->a).b.cdata;" (assignment_expression "pbVar5 = (src3->a).b.cdata" identifier = (field_expression "(src3->a).b.cdata" (field_expression "(src3->a).b" (parenthesized_expression "(src3->a)" ( (field_expression "src3->a" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (do_statement "do {\n        uVar7 = *pbVar4;\n        pbVar4 = pbVar4 + 1;\n        uVar7 = *puVar3 & uVar7 | *pbVar5;\n        bVar6 = bVar6 + 1;\n        if (*puVar2 != uVar7) {\n          _Var1 = true;\n          *puVar2 = uVar7;\n        }\n        puVar2 = puVar2 + 1;\n        puVar3 = puVar3 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar8 != bVar6);" do (compound_statement "{\n        uVar7 = *pbVar4;\n        pbVar4 = pbVar4 + 1;\n        uVar7 = *puVar3 & uVar7 | *pbVar5;\n        bVar6 = bVar6 + 1;\n        if (*puVar2 != uVar7) {\n          _Var1 = true;\n          *puVar2 = uVar7;\n        }\n        puVar2 = puVar2 + 1;\n        puVar3 = puVar3 + 1;\n        pbVar5 = pbVar5 + 1;\n      }" { (expression_statement "uVar7 = *pbVar4;" (assignment_expression "uVar7 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = *puVar3 & uVar7 | *pbVar5;" (assignment_expression "uVar7 = *puVar3 & uVar7 | *pbVar5" identifier = (binary_expression "*puVar3 & uVar7 | *pbVar5" (binary_expression "*puVar3 & uVar7" (pointer_expression "*puVar3" * identifier) & identifier) | (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar6 = bVar6 + 1;" (assignment_expression "bVar6 = bVar6 + 1" identifier = (binary_expression "bVar6 + 1" identifier + number_literal)) ;) (if_statement "if (*puVar2 != uVar7) {\n          _Var1 = true;\n          *puVar2 = uVar7;\n        }" if (parenthesized_expression "(*puVar2 != uVar7)" ( (binary_expression "*puVar2 != uVar7" (pointer_expression "*puVar2" * identifier) != identifier) )) (compound_statement "{\n          _Var1 = true;\n          *puVar2 = uVar7;\n        }" { (expression_statement "_Var1 = true;" (assignment_expression "_Var1 = true" identifier = true) ;) (expression_statement "*puVar2 = uVar7;" (assignment_expression "*puVar2 = uVar7" (pointer_expression "*puVar2" * identifier) = identifier) ;) })) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar8 != bVar6)" ( (binary_expression "bVar8 != bVar6" identifier != identifier) )) ;) }))) (return_statement "return _Var1;" return identifier ;) })) (expression_statement "_Var1 = bitset_and_or_cmp_(dst,src1,src2,src3);" (assignment_expression "_Var1 = bitset_and_or_cmp_(dst,src1,src2,src3)" identifier = (call_expression "bitset_and_or_cmp_(dst,src1,src2,src3)" identifier (argument_list "(dst,src1,src2,src3)" ( identifier , identifier , identifier , identifier )))) ;) (return_statement "return _Var1;" return identifier ;) })))
(translation_unit "undefined4 FUN_0006316c(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  \n  iVar1 = *(int *)(param_2 + 0x10);\n  if ((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))) {\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }\n  uVar2 = bitset_and_or_cmp_(param_1);\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0006316c(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  \n  iVar1 = *(int *)(param_2 + 0x10);\n  if ((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))) {\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }\n  uVar2 = bitset_and_or_cmp_(param_1);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0006316c(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  \n  iVar1 = *(int *)(param_2 + 0x10);\n  if ((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))) {\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }\n  uVar2 = bitset_and_or_cmp_(param_1);\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if ((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))) {\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }" if (parenthesized_expression "((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10)))" ( (binary_expression "(iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))" (parenthesized_expression "(iVar1 == *(int *)(param_3 + 0x10))" ( (binary_expression "iVar1 == *(int *)(param_3 + 0x10)" identifier == (pointer_expression "*(int *)(param_3 + 0x10)" * (cast_expression "(int *)(param_3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) ))))) )) && (parenthesized_expression "(iVar1 == *(int *)(param_4 + 0x10))" ( (binary_expression "iVar1 == *(int *)(param_4 + 0x10)" identifier == (pointer_expression "*(int *)(param_4 + 0x10)" * (cast_expression "(int *)(param_4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x10)" ( (binary_expression "param_4 + 0x10" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }" { (expression_statement "FUN_00062c8c(param_1,iVar1);" (call_expression "FUN_00062c8c(param_1,iVar1)" identifier (argument_list "(param_1,iVar1)" ( identifier , identifier ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" identifier = (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) ))))) ;) (expression_statement "puVar5 = *(uint **)(param_3 + 0xc);" (assignment_expression "puVar5 = *(uint **)(param_3 + 0xc)" identifier = (pointer_expression "*(uint **)(param_3 + 0xc)" * (cast_expression "(uint **)(param_3 + 0xc)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = *(uint **)(param_1 + 0xc);" (assignment_expression "puVar3 = *(uint **)(param_1 + 0xc)" identifier = (pointer_expression "*(uint **)(param_1 + 0xc)" * (cast_expression "(uint **)(param_1 + 0xc)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = 0;\n    }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }" else (compound_statement "{\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = *(uint **)(param_2 + 0xc);" (assignment_expression "puVar4 = *(uint **)(param_2 + 0xc)" identifier = (pointer_expression "*(uint **)(param_2 + 0xc)" * (cast_expression "(uint **)(param_2 + 0xc)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar6 = *(uint **)(param_4 + 0xc);" (assignment_expression "puVar6 = *(uint **)(param_4 + 0xc)" identifier = (pointer_expression "*(uint **)(param_4 + 0xc)" * (cast_expression "(uint **)(param_4 + 0xc)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) ))))) ;) (do_statement "do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);" do (compound_statement "{\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      }" { (expression_statement "uVar8 = *puVar5;" (assignment_expression "uVar8 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = *puVar4 & uVar8 | *puVar6;" (assignment_expression "uVar8 = *puVar4 & uVar8 | *puVar6" identifier = (binary_expression "*puVar4 & uVar8 | *puVar6" (binary_expression "*puVar4 & uVar8" (pointer_expression "*puVar4" * identifier) & identifier) | (pointer_expression "*puVar6" * identifier))) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }" if (parenthesized_expression "(*puVar3 != uVar8)" ( (binary_expression "*puVar3 != uVar8" (pointer_expression "*puVar3" * identifier) != identifier) )) (compound_statement "{\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (expression_statement "*puVar3 = uVar8;" (assignment_expression "*puVar3 = uVar8" (pointer_expression "*puVar3" * identifier) = identifier) ;) })) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != iVar7)" ( (binary_expression "iVar1 != iVar7" identifier != identifier) )) ;) }))) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = bitset_and_or_cmp_(param_1);" (assignment_expression "uVar2 = bitset_and_or_cmp_(param_1)" identifier = (call_expression "bitset_and_or_cmp_(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (return_statement "return uVar2;" 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) && (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * IDENT) & IDENT) | (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) }))) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0006316c(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  \n  iVar1 = *(int *)(param_2 + 0x10);\n  if ((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))) {\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }\n  uVar2 = bitset_and_or_cmp_(param_1);\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0006316c(int param_1,int param_2,int param_3,int param_4)" (identifier "FUN_0006316c") (parameter_list "(int param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  \n  iVar1 = *(int *)(param_2 + 0x10);\n  if ((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))) {\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }\n  uVar2 = bitset_and_or_cmp_(param_1);\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint *puVar6;" (type_identifier "uint") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (expression_statement "iVar1 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x10)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if ((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))) {\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }" (if "if") (parenthesized_expression "((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10)))" (( "(") (binary_expression "(iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))" (parenthesized_expression "(iVar1 == *(int *)(param_3 + 0x10))" (( "(") (binary_expression "iVar1 == *(int *)(param_3 + 0x10)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(param_3 + 0x10)" (* "*") (cast_expression "(int *)(param_3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x10)" (( "(") (binary_expression "param_3 + 0x10" (identifier "param_3") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 == *(int *)(param_4 + 0x10))" (( "(") (binary_expression "iVar1 == *(int *)(param_4 + 0x10)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(param_4 + 0x10)" (* "*") (cast_expression "(int *)(param_4 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x10)" (( "(") (binary_expression "param_4 + 0x10" (identifier "param_4") (+ "+") (number_literal "0x10")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    FUN_00062c8c(param_1,iVar1);\n    iVar1 = *(int *)(param_1 + 8);\n    puVar5 = *(uint **)(param_3 + 0xc);\n    puVar3 = *(uint **)(param_1 + 0xc);\n    if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }\n    return uVar2;\n  }" ({ "{") (expression_statement "FUN_00062c8c(param_1,iVar1);" (call_expression "FUN_00062c8c(param_1,iVar1)" (identifier "FUN_00062c8c") (argument_list "(param_1,iVar1)" (( "(") (identifier "param_1") (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "puVar5 = *(uint **)(param_3 + 0xc);" (assignment_expression "puVar5 = *(uint **)(param_3 + 0xc)" (identifier "puVar5") (= "=") (pointer_expression "*(uint **)(param_3 + 0xc)" (* "*") (cast_expression "(uint **)(param_3 + 0xc)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_3 + 0xc)" (( "(") (binary_expression "param_3 + 0xc" (identifier "param_3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "puVar3 = *(uint **)(param_1 + 0xc);" (assignment_expression "puVar3 = *(uint **)(param_1 + 0xc)" (identifier "puVar3") (= "=") (pointer_expression "*(uint **)(param_1 + 0xc)" (* "*") (cast_expression "(uint **)(param_1 + 0xc)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar1 == 0) {\n      uVar2 = 0;\n    }\n    else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = 0;\n    }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }" (else "else") (compound_statement "{\n      iVar7 = 0;\n      uVar2 = 0;\n      puVar4 = *(uint **)(param_2 + 0xc);\n      puVar6 = *(uint **)(param_4 + 0xc);\n      do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);\n    }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = *(uint **)(param_2 + 0xc);" (assignment_expression "puVar4 = *(uint **)(param_2 + 0xc)" (identifier "puVar4") (= "=") (pointer_expression "*(uint **)(param_2 + 0xc)" (* "*") (cast_expression "(uint **)(param_2 + 0xc)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "puVar6 = *(uint **)(param_4 + 0xc);" (assignment_expression "puVar6 = *(uint **)(param_4 + 0xc)" (identifier "puVar6") (= "=") (pointer_expression "*(uint **)(param_4 + 0xc)" (* "*") (cast_expression "(uint **)(param_4 + 0xc)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (do_statement "do {\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      } while (iVar1 != iVar7);" (do "do") (compound_statement "{\n        uVar8 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar8 = *puVar4 & uVar8 | *puVar6;\n        iVar7 = iVar7 + 1;\n        if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }\n        puVar3 = puVar3 + 1;\n        puVar4 = puVar4 + 1;\n        puVar6 = puVar6 + 1;\n      }" ({ "{") (expression_statement "uVar8 = *puVar5;" (assignment_expression "uVar8 = *puVar5" (identifier "uVar8") (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar8 = *puVar4 & uVar8 | *puVar6;" (assignment_expression "uVar8 = *puVar4 & uVar8 | *puVar6" (identifier "uVar8") (= "=") (binary_expression "*puVar4 & uVar8 | *puVar6" (binary_expression "*puVar4 & uVar8" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (& "&") (identifier "uVar8")) (| "|") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")))) (; ";")) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*puVar3 != uVar8) {\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }" (if "if") (parenthesized_expression "(*puVar3 != uVar8)" (( "(") (binary_expression "*puVar3 != uVar8" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (!= "!=") (identifier "uVar8")) () ")")) (compound_statement "{\n          uVar2 = 1;\n          *puVar3 = uVar8;\n        }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (expression_statement "*puVar3 = uVar8;" (assignment_expression "*puVar3 = uVar8" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar8")) (; ";")) (} "}"))) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != iVar7)" (( "(") (binary_expression "iVar1 != iVar7" (identifier "iVar1") (!= "!=") (identifier "iVar7")) () ")")) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "uVar2 = bitset_and_or_cmp_(param_1);" (assignment_expression "uVar2 = bitset_and_or_cmp_(param_1)" (identifier "uVar2") (= "=") (call_expression "bitset_and_or_cmp_(param_1)" (identifier "bitset_and_or_cmp_") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (return_statement (identifier)))))

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

{
  int iVar1;
  undefined4 uVar2;
  uint *puVar3;
  uint *puVar4;
  uint *puVar5;
  uint *puVar6;
  int iVar7;
  uint uVar8;
  
  iVar1 = *(int *)(param_2 + 0x10);
  if ((iVar1 == *(int *)(param_3 + 0x10)) && (iVar1 == *(int *)(param_4 + 0x10))) {
    FUN_00062c8c(param_1,iVar1);
    iVar1 = *(int *)(param_1 + 8);
    puVar5 = *(uint **)(param_3 + 0xc);
    puVar3 = *(uint **)(param_1 + 0xc);
    if (iVar1 == 0) {
      uVar2 = 0;
    }
    else {
      iVar7 = 0;
      uVar2 = 0;
      puVar4 = *(uint **)(param_2 + 0xc);
      puVar6 = *(uint **)(param_4 + 0xc);
      do {
        uVar8 = *puVar5;
        puVar5 = puVar5 + 1;
        uVar8 = *puVar4 & uVar8 | *puVar6;
        iVar7 = iVar7 + 1;
        if (*puVar3 != uVar8) {
          uVar2 = 1;
          *puVar3 = uVar8;
        }
        puVar3 = puVar3 + 1;
        puVar4 = puVar4 + 1;
        puVar6 = puVar6 + 1;
      } while (iVar1 != iVar7);
    }
    return uVar2;
  }
  uVar2 = bitset_and_or_cmp_(param_1);
  return uVar2;
}

