
bitset_conflict bitset_obstack_alloc(obstack *bobstack,bitset_bindex n_bits,bitset_type type)

{
  undefined *puVar1;
  size_t length;
  bitset_conflict pbVar2;
  char *pcVar3;
  char *pcVar4;
  char *pcVar5;
  
  length = bitset_bytes(type,n_bits);
  pcVar4 = bobstack->chunk_limit;
  if ((uint)((int)pcVar4 - (int)bobstack->next_free) < length) {
    _obstack_newchunk(bobstack,length);
    pcVar5 = bobstack->object_base;
    pcVar3 = bobstack->next_free + length;
    pcVar4 = bobstack->chunk_limit;
    bobstack->next_free = pcVar3;
    if (pcVar3 != pcVar5) goto LAB_000575a4;
  }
  else {
    pcVar5 = bobstack->object_base;
    pcVar3 = bobstack->next_free + length;
    bobstack->next_free = pcVar3;
    if (pcVar3 != pcVar5) goto LAB_000575a4;
  }
  bobstack->field_0x28 = bobstack->field_0x28 & 0xbf | 0x40;
LAB_000575a4:
  pcVar3 = (char *)((uint)(pcVar3 + bobstack->alignment_mask) & ~bobstack->alignment_mask);
  bobstack->next_free = pcVar3;
  if ((uint)((int)pcVar4 - (int)bobstack->chunk) < (uint)((int)pcVar3 - (int)bobstack->chunk)) {
    bobstack->next_free = pcVar4;
    pcVar3 = pcVar4;
  }
  puVar1 = PTR_memset_0008dee0;
  bobstack->object_base = pcVar3;
  pbVar2 = (bitset_conflict)(*(code *)puVar1)(pcVar5,0,length);
  pbVar2 = bitset_init(pbVar2,n_bits,type);
  return pbVar2;
}



void FUN_00057540(int param_1,undefined4 param_2,undefined4 param_3)

{
  undefined *puVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  int iVar7;
  
  uVar2 = bitset_bytes(param_3);
  uVar6 = *(uint *)(param_1 + 0x10);
  if (uVar6 - *(int *)(param_1 + 0xc) < uVar2) {
    _obstack_newchunk(param_1,uVar2);
    iVar7 = *(int *)(param_1 + 8);
    iVar4 = *(int *)(param_1 + 0xc) + uVar2;
    uVar6 = *(uint *)(param_1 + 0x10);
    *(int *)(param_1 + 0xc) = iVar4;
    if (iVar4 != iVar7) goto LAB_000575a4;
  }
  else {
    iVar7 = *(int *)(param_1 + 8);
    iVar4 = *(int *)(param_1 + 0xc) + uVar2;
    *(int *)(param_1 + 0xc) = iVar4;
    if (iVar4 != iVar7) goto LAB_000575a4;
  }
  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40;
LAB_000575a4:
  uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);
  *(uint *)(param_1 + 0xc) = uVar5;
  if (uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)) {
    *(uint *)(param_1 + 0xc) = uVar6;
    uVar5 = uVar6;
  }
  puVar1 = PTR_memset_0008dee0;
  *(uint *)(param_1 + 8) = uVar5;
  uVar3 = (*(code *)puVar1)(iVar7,0,uVar2);
  bitset_init(uVar3,param_2,param_3);
  return;
}


lui gp,0x4
addiu gp,gp,-0x1f50
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x78c8(gp)
sw s0,0x20(sp)
or s0,a0,zero
sw gp,0x10(sp)
or a0,a2,zero
sw s2,0x28(sp)
or s2,a1,zero
sw s1,0x24(sp)
sw ra,0x2c(sp)
bal 0x00057310
_or s1,a2,zero
lw a2,0x10(s0)
lw v1,0xc(s0)
subu a0,a2,v1
sltu a0,a0,v0
bne a0,zero,0x00057618
_lw gp,0x10(sp)
lw a3,0x8(s0)
addu v1,v1,v0
beq v1,a3,0x0005764c
_sw v1,0xc(s0)
lw a1,0x18(s0)
lw a0,0x4(s0)
addu v1,v1,a1
nor a1,zero,a1
and v1,v1,a1
subu a1,v1,a0
subu a0,a2,a0
sltu a0,a0,a1
beq a0,zero,0x000575d4
_sw v1,0xc(s0)
sw a2,0xc(s0)
or v1,a2,zero
lw t9,-0x7710(gp)
or a1,zero,zero
or a2,v0,zero
sw v1,0x8(s0)
jalr t9
_or a0,a3,zero
or a2,s1,zero
lw gp,0x10(sp)
or a1,s2,zero
lw ra,0x2c(sp)
or a0,v0,zero
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
lw t9,-0x78c4(gp)
b 0x000573b8
_addiu sp,sp,0x30
lw t9,-0x7ea8(gp)
or a1,v0,zero
sw v0,0x1c(sp)
bal 0x0006d1a8
_or a0,s0,zero
lw v1,0xc(s0)
lw v0,0x1c(sp)
lw a3,0x8(s0)
lw gp,0x10(sp)
addu v1,v1,v0
lw a2,0x10(s0)
bne v1,a3,0x000575a4
_sw v1,0xc(s0)
lbu a0,0x28(s0)
li a1,0x1
ins a0,a1,0x6,0x1
b 0x000575a4
_sb a0,0x28(s0)
(translation_unit "void FUN_00057540(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  \n  uVar2 = bitset_bytes(param_3);\n  uVar6 = *(uint *)(param_1 + 0x10);\n  if (uVar6 - *(int *)(param_1 + 0xc) < uVar2) {\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40;\nLAB_000575a4:\n  uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);\n  *(uint *)(param_1 + 0xc) = uVar5;\n  if (uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)) {\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }\n  puVar1 = PTR_memset_0008dee0;\n  *(uint *)(param_1 + 8) = uVar5;\n  uVar3 = (*(code *)puVar1)(iVar7,0,uVar2);\n  bitset_init(uVar3,param_2,param_3);\n  return;\n}\n\n" (function_definition "void FUN_00057540(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  \n  uVar2 = bitset_bytes(param_3);\n  uVar6 = *(uint *)(param_1 + 0x10);\n  if (uVar6 - *(int *)(param_1 + 0xc) < uVar2) {\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40;\nLAB_000575a4:\n  uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);\n  *(uint *)(param_1 + 0xc) = uVar5;\n  if (uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)) {\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }\n  puVar1 = PTR_memset_0008dee0;\n  *(uint *)(param_1 + 8) = uVar5;\n  uVar3 = (*(code *)puVar1)(iVar7,0,uVar2);\n  bitset_init(uVar3,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "FUN_00057540(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  \n  uVar2 = bitset_bytes(param_3);\n  uVar6 = *(uint *)(param_1 + 0x10);\n  if (uVar6 - *(int *)(param_1 + 0xc) < uVar2) {\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40;\nLAB_000575a4:\n  uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);\n  *(uint *)(param_1 + 0xc) = uVar5;\n  if (uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)) {\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }\n  puVar1 = PTR_memset_0008dee0;\n  *(uint *)(param_1 + 8) = uVar5;\n  uVar3 = (*(code *)puVar1)(iVar7,0,uVar2);\n  bitset_init(uVar3,param_2,param_3);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "uVar2 = bitset_bytes(param_3);" (assignment_expression "uVar2 = bitset_bytes(param_3)" identifier = (call_expression "bitset_bytes(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "uVar6 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar6 = *(uint *)(param_1 + 0x10)" identifier = (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (uVar6 - *(int *)(param_1 + 0xc) < uVar2) {\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }" if (parenthesized_expression "(uVar6 - *(int *)(param_1 + 0xc) < uVar2)" ( (binary_expression "uVar6 - *(int *)(param_1 + 0xc) < uVar2" (binary_expression "uVar6 - *(int *)(param_1 + 0xc)" identifier - (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) < identifier) )) (compound_statement "{\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }" { (expression_statement "_obstack_newchunk(param_1,uVar2);" (call_expression "_obstack_newchunk(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier ))) ;) (expression_statement "iVar7 = *(int *)(param_1 + 8);" (assignment_expression "iVar7 = *(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 "iVar4 = *(int *)(param_1 + 0xc) + uVar2;" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc) + uVar2" identifier = (binary_expression "*(int *)(param_1 + 0xc) + uVar2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + identifier)) ;) (expression_statement "uVar6 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar6 = *(uint *)(param_1 + 0x10)" identifier = (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar4;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar4 != iVar7) goto LAB_000575a4;" if (parenthesized_expression "(iVar4 != iVar7)" ( (binary_expression "iVar4 != iVar7" identifier != identifier) )) (goto_statement "goto LAB_000575a4;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }" else (compound_statement "{\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }" { (expression_statement "iVar7 = *(int *)(param_1 + 8);" (assignment_expression "iVar7 = *(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 "iVar4 = *(int *)(param_1 + 0xc) + uVar2;" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc) + uVar2" identifier = (binary_expression "*(int *)(param_1 + 0xc) + uVar2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + identifier)) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar4;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar4 != iVar7) goto LAB_000575a4;" if (parenthesized_expression "(iVar4 != iVar7)" ( (binary_expression "iVar4 != iVar7" identifier != identifier) )) (goto_statement "goto LAB_000575a4;" goto statement_identifier ;)) }))) (expression_statement "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40;" (assignment_expression "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40" (pointer_expression "*(byte *)(param_1 + 0x28)" * (cast_expression "(byte *)(param_1 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0x28) & 0xbf | 0x40" (binary_expression "*(byte *)(param_1 + 0x28) & 0xbf" (pointer_expression "*(byte *)(param_1 + 0x28)" * (cast_expression "(byte *)(param_1 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (labeled_statement "LAB_000575a4:\n  uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);" statement_identifier : (expression_statement "uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);" (assignment_expression "uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18)" identifier = (binary_expression "iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18)" (binary_expression "iVar4 + *(uint *)(param_1 + 0x18)" identifier + (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) & (unary_expression "~*(uint *)(param_1 + 0x18)" ~ (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))))) ;)) (expression_statement "*(uint *)(param_1 + 0xc) = uVar5;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar5" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)) {\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }" if (parenthesized_expression "(uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4))" ( (binary_expression "uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)" (binary_expression "uVar6 - *(int *)(param_1 + 4)" identifier - (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) < (binary_expression "uVar5 - *(int *)(param_1 + 4)" identifier - (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }" { (expression_statement "*(uint *)(param_1 + 0xc) = uVar6;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar6" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) })) (expression_statement "puVar1 = PTR_memset_0008dee0;" (assignment_expression "puVar1 = PTR_memset_0008dee0" identifier = identifier) ;) (expression_statement "*(uint *)(param_1 + 8) = uVar5;" (assignment_expression "*(uint *)(param_1 + 8) = uVar5" (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = (*(code *)puVar1)(iVar7,0,uVar2);" (assignment_expression "uVar3 = (*(code *)puVar1)(iVar7,0,uVar2)" identifier = (call_expression "(*(code *)puVar1)(iVar7,0,uVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,0,uVar2)" ( identifier , number_literal , identifier )))) ;) (expression_statement "bitset_init(uVar3,param_2,param_3);" (call_expression "bitset_init(uVar3,param_2,param_3)" identifier (argument_list "(uVar3,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "bitset_conflict bitset_obstack_alloc(obstack *bobstack,bitset_bindex n_bits,bitset_type type)\n\n{\n  undefined *puVar1;\n  size_t length;\n  bitset_conflict pbVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  length = bitset_bytes(type,n_bits);\n  pcVar4 = bobstack->chunk_limit;\n  if ((uint)((int)pcVar4 - (int)bobstack->next_free) < length) {\n    _obstack_newchunk(bobstack,length);\n    pcVar5 = bobstack->object_base;\n    pcVar3 = bobstack->next_free + length;\n    pcVar4 = bobstack->chunk_limit;\n    bobstack->next_free = pcVar3;\n    if (pcVar3 != pcVar5) goto LAB_000575a4;\n  }\n  else {\n    pcVar5 = bobstack->object_base;\n    pcVar3 = bobstack->next_free + length;\n    bobstack->next_free = pcVar3;\n    if (pcVar3 != pcVar5) goto LAB_000575a4;\n  }\n  bobstack->field_0x28 = bobstack->field_0x28 & 0xbf | 0x40;\nLAB_000575a4:\n  pcVar3 = (char *)((uint)(pcVar3 + bobstack->alignment_mask) & ~bobstack->alignment_mask);\n  bobstack->next_free = pcVar3;\n  if ((uint)((int)pcVar4 - (int)bobstack->chunk) < (uint)((int)pcVar3 - (int)bobstack->chunk)) {\n    bobstack->next_free = pcVar4;\n    pcVar3 = pcVar4;\n  }\n  puVar1 = PTR_memset_0008dee0;\n  bobstack->object_base = pcVar3;\n  pbVar2 = (bitset_conflict)(*(code *)puVar1)(pcVar5,0,length);\n  pbVar2 = bitset_init(pbVar2,n_bits,type);\n  return pbVar2;\n}\n\n" (function_definition "bitset_conflict bitset_obstack_alloc(obstack *bobstack,bitset_bindex n_bits,bitset_type type)\n\n{\n  undefined *puVar1;\n  size_t length;\n  bitset_conflict pbVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  length = bitset_bytes(type,n_bits);\n  pcVar4 = bobstack->chunk_limit;\n  if ((uint)((int)pcVar4 - (int)bobstack->next_free) < length) {\n    _obstack_newchunk(bobstack,length);\n    pcVar5 = bobstack->object_base;\n    pcVar3 = bobstack->next_free + length;\n    pcVar4 = bobstack->chunk_limit;\n    bobstack->next_free = pcVar3;\n    if (pcVar3 != pcVar5) goto LAB_000575a4;\n  }\n  else {\n    pcVar5 = bobstack->object_base;\n    pcVar3 = bobstack->next_free + length;\n    bobstack->next_free = pcVar3;\n    if (pcVar3 != pcVar5) goto LAB_000575a4;\n  }\n  bobstack->field_0x28 = bobstack->field_0x28 & 0xbf | 0x40;\nLAB_000575a4:\n  pcVar3 = (char *)((uint)(pcVar3 + bobstack->alignment_mask) & ~bobstack->alignment_mask);\n  bobstack->next_free = pcVar3;\n  if ((uint)((int)pcVar4 - (int)bobstack->chunk) < (uint)((int)pcVar3 - (int)bobstack->chunk)) {\n    bobstack->next_free = pcVar4;\n    pcVar3 = pcVar4;\n  }\n  puVar1 = PTR_memset_0008dee0;\n  bobstack->object_base = pcVar3;\n  pbVar2 = (bitset_conflict)(*(code *)puVar1)(pcVar5,0,length);\n  pbVar2 = bitset_init(pbVar2,n_bits,type);\n  return pbVar2;\n}" type_identifier (function_declarator "bitset_obstack_alloc(obstack *bobstack,bitset_bindex n_bits,bitset_type type)" identifier (parameter_list "(obstack *bobstack,bitset_bindex n_bits,bitset_type type)" ( (parameter_declaration "obstack *bobstack" type_identifier (pointer_declarator "*bobstack" * identifier)) , (parameter_declaration "bitset_bindex n_bits" type_identifier identifier) , (parameter_declaration "bitset_type type" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  size_t length;\n  bitset_conflict pbVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  length = bitset_bytes(type,n_bits);\n  pcVar4 = bobstack->chunk_limit;\n  if ((uint)((int)pcVar4 - (int)bobstack->next_free) < length) {\n    _obstack_newchunk(bobstack,length);\n    pcVar5 = bobstack->object_base;\n    pcVar3 = bobstack->next_free + length;\n    pcVar4 = bobstack->chunk_limit;\n    bobstack->next_free = pcVar3;\n    if (pcVar3 != pcVar5) goto LAB_000575a4;\n  }\n  else {\n    pcVar5 = bobstack->object_base;\n    pcVar3 = bobstack->next_free + length;\n    bobstack->next_free = pcVar3;\n    if (pcVar3 != pcVar5) goto LAB_000575a4;\n  }\n  bobstack->field_0x28 = bobstack->field_0x28 & 0xbf | 0x40;\nLAB_000575a4:\n  pcVar3 = (char *)((uint)(pcVar3 + bobstack->alignment_mask) & ~bobstack->alignment_mask);\n  bobstack->next_free = pcVar3;\n  if ((uint)((int)pcVar4 - (int)bobstack->chunk) < (uint)((int)pcVar3 - (int)bobstack->chunk)) {\n    bobstack->next_free = pcVar4;\n    pcVar3 = pcVar4;\n  }\n  puVar1 = PTR_memset_0008dee0;\n  bobstack->object_base = pcVar3;\n  pbVar2 = (bitset_conflict)(*(code *)puVar1)(pcVar5,0,length);\n  pbVar2 = bitset_init(pbVar2,n_bits,type);\n  return pbVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t length;" primitive_type identifier ;) (declaration "bitset_conflict pbVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "length = bitset_bytes(type,n_bits);" (assignment_expression "length = bitset_bytes(type,n_bits)" identifier = (call_expression "bitset_bytes(type,n_bits)" identifier (argument_list "(type,n_bits)" ( identifier , identifier )))) ;) (expression_statement "pcVar4 = bobstack->chunk_limit;" (assignment_expression "pcVar4 = bobstack->chunk_limit" identifier = (field_expression "bobstack->chunk_limit" identifier -> field_identifier)) ;) (if_statement "if ((uint)((int)pcVar4 - (int)bobstack->next_free) < length) {\n    _obstack_newchunk(bobstack,length);\n    pcVar5 = bobstack->object_base;\n    pcVar3 = bobstack->next_free + length;\n    pcVar4 = bobstack->chunk_limit;\n    bobstack->next_free = pcVar3;\n    if (pcVar3 != pcVar5) goto LAB_000575a4;\n  }\n  else {\n    pcVar5 = bobstack->object_base;\n    pcVar3 = bobstack->next_free + length;\n    bobstack->next_free = pcVar3;\n    if (pcVar3 != pcVar5) goto LAB_000575a4;\n  }" if (parenthesized_expression "((uint)((int)pcVar4 - (int)bobstack->next_free) < length)" ( (binary_expression "(uint)((int)pcVar4 - (int)bobstack->next_free) < length" (call_expression "(uint)((int)pcVar4 - (int)bobstack->next_free)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar4 - (int)bobstack->next_free)" ( (binary_expression "(int)pcVar4 - (int)bobstack->next_free" (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)bobstack->next_free" ( (type_descriptor "int" primitive_type) ) (field_expression "bobstack->next_free" identifier -> field_identifier))) ))) < identifier) )) (compound_statement "{\n    _obstack_newchunk(bobstack,length);\n    pcVar5 = bobstack->object_base;\n    pcVar3 = bobstack->next_free + length;\n    pcVar4 = bobstack->chunk_limit;\n    bobstack->next_free = pcVar3;\n    if (pcVar3 != pcVar5) goto LAB_000575a4;\n  }" { (expression_statement "_obstack_newchunk(bobstack,length);" (call_expression "_obstack_newchunk(bobstack,length)" identifier (argument_list "(bobstack,length)" ( identifier , identifier ))) ;) (expression_statement "pcVar5 = bobstack->object_base;" (assignment_expression "pcVar5 = bobstack->object_base" identifier = (field_expression "bobstack->object_base" identifier -> field_identifier)) ;) (expression_statement "pcVar3 = bobstack->next_free + length;" (assignment_expression "pcVar3 = bobstack->next_free + length" identifier = (binary_expression "bobstack->next_free + length" (field_expression "bobstack->next_free" identifier -> field_identifier) + identifier)) ;) (expression_statement "pcVar4 = bobstack->chunk_limit;" (assignment_expression "pcVar4 = bobstack->chunk_limit" identifier = (field_expression "bobstack->chunk_limit" identifier -> field_identifier)) ;) (expression_statement "bobstack->next_free = pcVar3;" (assignment_expression "bobstack->next_free = pcVar3" (field_expression "bobstack->next_free" identifier -> field_identifier) = identifier) ;) (if_statement "if (pcVar3 != pcVar5) goto LAB_000575a4;" if (parenthesized_expression "(pcVar3 != pcVar5)" ( (binary_expression "pcVar3 != pcVar5" identifier != identifier) )) (goto_statement "goto LAB_000575a4;" goto statement_identifier ;)) }) (else_clause "else {\n    pcVar5 = bobstack->object_base;\n    pcVar3 = bobstack->next_free + length;\n    bobstack->next_free = pcVar3;\n    if (pcVar3 != pcVar5) goto LAB_000575a4;\n  }" else (compound_statement "{\n    pcVar5 = bobstack->object_base;\n    pcVar3 = bobstack->next_free + length;\n    bobstack->next_free = pcVar3;\n    if (pcVar3 != pcVar5) goto LAB_000575a4;\n  }" { (expression_statement "pcVar5 = bobstack->object_base;" (assignment_expression "pcVar5 = bobstack->object_base" identifier = (field_expression "bobstack->object_base" identifier -> field_identifier)) ;) (expression_statement "pcVar3 = bobstack->next_free + length;" (assignment_expression "pcVar3 = bobstack->next_free + length" identifier = (binary_expression "bobstack->next_free + length" (field_expression "bobstack->next_free" identifier -> field_identifier) + identifier)) ;) (expression_statement "bobstack->next_free = pcVar3;" (assignment_expression "bobstack->next_free = pcVar3" (field_expression "bobstack->next_free" identifier -> field_identifier) = identifier) ;) (if_statement "if (pcVar3 != pcVar5) goto LAB_000575a4;" if (parenthesized_expression "(pcVar3 != pcVar5)" ( (binary_expression "pcVar3 != pcVar5" identifier != identifier) )) (goto_statement "goto LAB_000575a4;" goto statement_identifier ;)) }))) (expression_statement "bobstack->field_0x28 = bobstack->field_0x28 & 0xbf | 0x40;" (assignment_expression "bobstack->field_0x28 = bobstack->field_0x28 & 0xbf | 0x40" (field_expression "bobstack->field_0x28" identifier -> field_identifier) = (binary_expression "bobstack->field_0x28 & 0xbf | 0x40" (binary_expression "bobstack->field_0x28 & 0xbf" (field_expression "bobstack->field_0x28" identifier -> field_identifier) & number_literal) | number_literal)) ;) (labeled_statement "LAB_000575a4:\n  pcVar3 = (char *)((uint)(pcVar3 + bobstack->alignment_mask) & ~bobstack->alignment_mask);" statement_identifier : (expression_statement "pcVar3 = (char *)((uint)(pcVar3 + bobstack->alignment_mask) & ~bobstack->alignment_mask);" (assignment_expression "pcVar3 = (char *)((uint)(pcVar3 + bobstack->alignment_mask) & ~bobstack->alignment_mask)" identifier = (cast_expression "(char *)((uint)(pcVar3 + bobstack->alignment_mask) & ~bobstack->alignment_mask)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(pcVar3 + bobstack->alignment_mask) & ~bobstack->alignment_mask)" ( (binary_expression "(uint)(pcVar3 + bobstack->alignment_mask) & ~bobstack->alignment_mask" (call_expression "(uint)(pcVar3 + bobstack->alignment_mask)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pcVar3 + bobstack->alignment_mask)" ( (binary_expression "pcVar3 + bobstack->alignment_mask" identifier + (field_expression "bobstack->alignment_mask" identifier -> field_identifier)) ))) & (unary_expression "~bobstack->alignment_mask" ~ (field_expression "bobstack->alignment_mask" identifier -> field_identifier))) )))) ;)) (expression_statement "bobstack->next_free = pcVar3;" (assignment_expression "bobstack->next_free = pcVar3" (field_expression "bobstack->next_free" identifier -> field_identifier) = identifier) ;) (if_statement "if ((uint)((int)pcVar4 - (int)bobstack->chunk) < (uint)((int)pcVar3 - (int)bobstack->chunk)) {\n    bobstack->next_free = pcVar4;\n    pcVar3 = pcVar4;\n  }" if (parenthesized_expression "((uint)((int)pcVar4 - (int)bobstack->chunk) < (uint)((int)pcVar3 - (int)bobstack->chunk))" ( (binary_expression "(uint)((int)pcVar4 - (int)bobstack->chunk) < (uint)((int)pcVar3 - (int)bobstack->chunk)" (call_expression "(uint)((int)pcVar4 - (int)bobstack->chunk)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar4 - (int)bobstack->chunk)" ( (binary_expression "(int)pcVar4 - (int)bobstack->chunk" (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)bobstack->chunk" ( (type_descriptor "int" primitive_type) ) (field_expression "bobstack->chunk" identifier -> field_identifier))) ))) < (call_expression "(uint)((int)pcVar3 - (int)bobstack->chunk)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar3 - (int)bobstack->chunk)" ( (binary_expression "(int)pcVar3 - (int)bobstack->chunk" (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)bobstack->chunk" ( (type_descriptor "int" primitive_type) ) (field_expression "bobstack->chunk" identifier -> field_identifier))) )))) )) (compound_statement "{\n    bobstack->next_free = pcVar4;\n    pcVar3 = pcVar4;\n  }" { (expression_statement "bobstack->next_free = pcVar4;" (assignment_expression "bobstack->next_free = pcVar4" (field_expression "bobstack->next_free" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar3 = pcVar4;" (assignment_expression "pcVar3 = pcVar4" identifier = identifier) ;) })) (expression_statement "puVar1 = PTR_memset_0008dee0;" (assignment_expression "puVar1 = PTR_memset_0008dee0" identifier = identifier) ;) (expression_statement "bobstack->object_base = pcVar3;" (assignment_expression "bobstack->object_base = pcVar3" (field_expression "bobstack->object_base" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar2 = (bitset_conflict)(*(code *)puVar1)(pcVar5,0,length);" (assignment_expression "pbVar2 = (bitset_conflict)(*(code *)puVar1)(pcVar5,0,length)" identifier = (call_expression "(bitset_conflict)(*(code *)puVar1)(pcVar5,0,length)" (call_expression "(bitset_conflict)(*(code *)puVar1)" (parenthesized_expression "(bitset_conflict)" ( identifier )) (argument_list "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(pcVar5,0,length)" ( identifier , number_literal , identifier )))) ;) (expression_statement "pbVar2 = bitset_init(pbVar2,n_bits,type);" (assignment_expression "pbVar2 = bitset_init(pbVar2,n_bits,type)" identifier = (call_expression "bitset_init(pbVar2,n_bits,type)" identifier (argument_list "(pbVar2,n_bits,type)" ( identifier , identifier , identifier )))) ;) (return_statement "return pbVar2;" return identifier ;) })))
(translation_unit "void FUN_00057540(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  \n  uVar2 = bitset_bytes(param_3);\n  uVar6 = *(uint *)(param_1 + 0x10);\n  if (uVar6 - *(int *)(param_1 + 0xc) < uVar2) {\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40;\nLAB_000575a4:\n  uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);\n  *(uint *)(param_1 + 0xc) = uVar5;\n  if (uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)) {\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }\n  puVar1 = PTR_memset_0008dee0;\n  *(uint *)(param_1 + 8) = uVar5;\n  uVar3 = (*(code *)puVar1)(iVar7,0,uVar2);\n  bitset_init(uVar3,param_2,param_3);\n  return;\n}\n\n" (function_definition "void FUN_00057540(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  \n  uVar2 = bitset_bytes(param_3);\n  uVar6 = *(uint *)(param_1 + 0x10);\n  if (uVar6 - *(int *)(param_1 + 0xc) < uVar2) {\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40;\nLAB_000575a4:\n  uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);\n  *(uint *)(param_1 + 0xc) = uVar5;\n  if (uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)) {\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }\n  puVar1 = PTR_memset_0008dee0;\n  *(uint *)(param_1 + 8) = uVar5;\n  uVar3 = (*(code *)puVar1)(iVar7,0,uVar2);\n  bitset_init(uVar3,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "FUN_00057540(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  \n  uVar2 = bitset_bytes(param_3);\n  uVar6 = *(uint *)(param_1 + 0x10);\n  if (uVar6 - *(int *)(param_1 + 0xc) < uVar2) {\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40;\nLAB_000575a4:\n  uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);\n  *(uint *)(param_1 + 0xc) = uVar5;\n  if (uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)) {\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }\n  puVar1 = PTR_memset_0008dee0;\n  *(uint *)(param_1 + 8) = uVar5;\n  uVar3 = (*(code *)puVar1)(iVar7,0,uVar2);\n  bitset_init(uVar3,param_2,param_3);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "uVar2 = bitset_bytes(param_3);" (assignment_expression "uVar2 = bitset_bytes(param_3)" identifier = (call_expression "bitset_bytes(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "uVar6 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar6 = *(uint *)(param_1 + 0x10)" identifier = (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (uVar6 - *(int *)(param_1 + 0xc) < uVar2) {\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }" if (parenthesized_expression "(uVar6 - *(int *)(param_1 + 0xc) < uVar2)" ( (binary_expression "uVar6 - *(int *)(param_1 + 0xc) < uVar2" (binary_expression "uVar6 - *(int *)(param_1 + 0xc)" identifier - (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) < identifier) )) (compound_statement "{\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }" { (expression_statement "_obstack_newchunk(param_1,uVar2);" (call_expression "_obstack_newchunk(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier ))) ;) (expression_statement "iVar7 = *(int *)(param_1 + 8);" (assignment_expression "iVar7 = *(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 "iVar4 = *(int *)(param_1 + 0xc) + uVar2;" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc) + uVar2" identifier = (binary_expression "*(int *)(param_1 + 0xc) + uVar2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + identifier)) ;) (expression_statement "uVar6 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar6 = *(uint *)(param_1 + 0x10)" identifier = (pointer_expression "*(uint *)(param_1 + 0x10)" * (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar4;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar4 != iVar7) goto LAB_000575a4;" if (parenthesized_expression "(iVar4 != iVar7)" ( (binary_expression "iVar4 != iVar7" identifier != identifier) )) (goto_statement "goto LAB_000575a4;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }" else (compound_statement "{\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }" { (expression_statement "iVar7 = *(int *)(param_1 + 8);" (assignment_expression "iVar7 = *(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 "iVar4 = *(int *)(param_1 + 0xc) + uVar2;" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc) + uVar2" identifier = (binary_expression "*(int *)(param_1 + 0xc) + uVar2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + identifier)) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar4;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar4 != iVar7) goto LAB_000575a4;" if (parenthesized_expression "(iVar4 != iVar7)" ( (binary_expression "iVar4 != iVar7" identifier != identifier) )) (goto_statement "goto LAB_000575a4;" goto statement_identifier ;)) }))) (expression_statement "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40;" (assignment_expression "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40" (pointer_expression "*(byte *)(param_1 + 0x28)" * (cast_expression "(byte *)(param_1 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0x28) & 0xbf | 0x40" (binary_expression "*(byte *)(param_1 + 0x28) & 0xbf" (pointer_expression "*(byte *)(param_1 + 0x28)" * (cast_expression "(byte *)(param_1 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (labeled_statement "LAB_000575a4:\n  uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);" statement_identifier : (expression_statement "uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);" (assignment_expression "uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18)" identifier = (binary_expression "iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18)" (binary_expression "iVar4 + *(uint *)(param_1 + 0x18)" identifier + (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) & (unary_expression "~*(uint *)(param_1 + 0x18)" ~ (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))))) ;)) (expression_statement "*(uint *)(param_1 + 0xc) = uVar5;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar5" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)) {\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }" if (parenthesized_expression "(uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4))" ( (binary_expression "uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)" (binary_expression "uVar6 - *(int *)(param_1 + 4)" identifier - (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) < (binary_expression "uVar5 - *(int *)(param_1 + 4)" identifier - (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }" { (expression_statement "*(uint *)(param_1 + 0xc) = uVar6;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar6" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) })) (expression_statement "puVar1 = PTR_memset_0008dee0;" (assignment_expression "puVar1 = PTR_memset_0008dee0" identifier = identifier) ;) (expression_statement "*(uint *)(param_1 + 8) = uVar5;" (assignment_expression "*(uint *)(param_1 + 8) = uVar5" (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = (*(code *)puVar1)(iVar7,0,uVar2);" (assignment_expression "uVar3 = (*(code *)puVar1)(iVar7,0,uVar2)" identifier = (call_expression "(*(code *)puVar1)(iVar7,0,uVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,0,uVar2)" ( identifier , number_literal , identifier )))) ;) (expression_statement "bitset_init(uVar3,param_2,param_3);" (call_expression "bitset_init(uVar3,param_2,param_3)" identifier (argument_list "(uVar3,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) < IDENT) )) (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 = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (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 = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) & (unary_expression ~ (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) < (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00057540(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  \n  uVar2 = bitset_bytes(param_3);\n  uVar6 = *(uint *)(param_1 + 0x10);\n  if (uVar6 - *(int *)(param_1 + 0xc) < uVar2) {\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40;\nLAB_000575a4:\n  uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);\n  *(uint *)(param_1 + 0xc) = uVar5;\n  if (uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)) {\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }\n  puVar1 = PTR_memset_0008dee0;\n  *(uint *)(param_1 + 8) = uVar5;\n  uVar3 = (*(code *)puVar1)(iVar7,0,uVar2);\n  bitset_init(uVar3,param_2,param_3);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00057540(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00057540") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int iVar7;\n  \n  uVar2 = bitset_bytes(param_3);\n  uVar6 = *(uint *)(param_1 + 0x10);\n  if (uVar6 - *(int *)(param_1 + 0xc) < uVar2) {\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40;\nLAB_000575a4:\n  uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);\n  *(uint *)(param_1 + 0xc) = uVar5;\n  if (uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)) {\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }\n  puVar1 = PTR_memset_0008dee0;\n  *(uint *)(param_1 + 8) = uVar5;\n  uVar3 = (*(code *)puVar1)(iVar7,0,uVar2);\n  bitset_init(uVar3,param_2,param_3);\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (expression_statement "uVar2 = bitset_bytes(param_3);" (assignment_expression "uVar2 = bitset_bytes(param_3)" (identifier "uVar2") (= "=") (call_expression "bitset_bytes(param_3)" (identifier "bitset_bytes") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "uVar6 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar6 = *(uint *)(param_1 + 0x10)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(param_1 + 0x10)" (* "*") (cast_expression "(uint *)(param_1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (uVar6 - *(int *)(param_1 + 0xc) < uVar2) {\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }\n  else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }" (if "if") (parenthesized_expression "(uVar6 - *(int *)(param_1 + 0xc) < uVar2)" (( "(") (binary_expression "uVar6 - *(int *)(param_1 + 0xc) < uVar2" (binary_expression "uVar6 - *(int *)(param_1 + 0xc)" (identifier "uVar6") (- "-") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n    _obstack_newchunk(param_1,uVar2);\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    uVar6 = *(uint *)(param_1 + 0x10);\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }" ({ "{") (expression_statement "_obstack_newchunk(param_1,uVar2);" (call_expression "_obstack_newchunk(param_1,uVar2)" (identifier "_obstack_newchunk") (argument_list "(param_1,uVar2)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "iVar7 = *(int *)(param_1 + 8);" (assignment_expression "iVar7 = *(int *)(param_1 + 8)" (identifier "iVar7") (= "=") (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 "iVar4 = *(int *)(param_1 + 0xc) + uVar2;" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc) + uVar2" (identifier "iVar4") (= "=") (binary_expression "*(int *)(param_1 + 0xc) + uVar2" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (identifier "uVar2"))) (; ";")) (expression_statement "uVar6 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar6 = *(uint *)(param_1 + 0x10)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(param_1 + 0x10)" (* "*") (cast_expression "(uint *)(param_1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0xc) = iVar4;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 != iVar7) goto LAB_000575a4;" (if "if") (parenthesized_expression "(iVar4 != iVar7)" (( "(") (binary_expression "iVar4 != iVar7" (identifier "iVar4") (!= "!=") (identifier "iVar7")) () ")")) (goto_statement "goto LAB_000575a4;" (goto "goto") (statement_identifier "LAB_000575a4") (; ";"))) (} "}")) (else_clause "else {\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }" (else "else") (compound_statement "{\n    iVar7 = *(int *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + uVar2;\n    *(int *)(param_1 + 0xc) = iVar4;\n    if (iVar4 != iVar7) goto LAB_000575a4;\n  }" ({ "{") (expression_statement "iVar7 = *(int *)(param_1 + 8);" (assignment_expression "iVar7 = *(int *)(param_1 + 8)" (identifier "iVar7") (= "=") (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 "iVar4 = *(int *)(param_1 + 0xc) + uVar2;" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc) + uVar2" (identifier "iVar4") (= "=") (binary_expression "*(int *)(param_1 + 0xc) + uVar2" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (identifier "uVar2"))) (; ";")) (expression_statement "*(int *)(param_1 + 0xc) = iVar4;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 != iVar7) goto LAB_000575a4;" (if "if") (parenthesized_expression "(iVar4 != iVar7)" (( "(") (binary_expression "iVar4 != iVar7" (identifier "iVar4") (!= "!=") (identifier "iVar7")) () ")")) (goto_statement "goto LAB_000575a4;" (goto "goto") (statement_identifier "LAB_000575a4") (; ";"))) (} "}")))) (expression_statement "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40;" (assignment_expression "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40" (pointer_expression "*(byte *)(param_1 + 0x28)" (* "*") (cast_expression "(byte *)(param_1 + 0x28)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (binary_expression "*(byte *)(param_1 + 0x28) & 0xbf | 0x40" (binary_expression "*(byte *)(param_1 + 0x28) & 0xbf" (pointer_expression "*(byte *)(param_1 + 0x28)" (* "*") (cast_expression "(byte *)(param_1 + 0x28)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (& "&") (number_literal "0xbf")) (| "|") (number_literal "0x40"))) (; ";")) (labeled_statement "LAB_000575a4:\n  uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);" (statement_identifier "LAB_000575a4") (: ":") (expression_statement "uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);" (assignment_expression "uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18)" (identifier "uVar5") (= "=") (binary_expression "iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18)" (binary_expression "iVar4 + *(uint *)(param_1 + 0x18)" (identifier "iVar4") (+ "+") (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (& "&") (unary_expression "~*(uint *)(param_1 + 0x18)" (~ "~") (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))))) (; ";"))) (expression_statement "*(uint *)(param_1 + 0xc) = uVar5;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar5" (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (if_statement "if (uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)) {\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }" (if "if") (parenthesized_expression "(uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4))" (( "(") (binary_expression "uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)" (binary_expression "uVar6 - *(int *)(param_1 + 4)" (identifier "uVar6") (- "-") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (< "<") (binary_expression "uVar5 - *(int *)(param_1 + 4)" (identifier "uVar5") (- "-") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))))) () ")")) (compound_statement "{\n    *(uint *)(param_1 + 0xc) = uVar6;\n    uVar5 = uVar6;\n  }" ({ "{") (expression_statement "*(uint *)(param_1 + 0xc) = uVar6;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar6" (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" (identifier "uVar5") (= "=") (identifier "uVar6")) (; ";")) (} "}"))) (expression_statement "puVar1 = PTR_memset_0008dee0;" (assignment_expression "puVar1 = PTR_memset_0008dee0" (identifier "puVar1") (= "=") (identifier "PTR_memset_0008dee0")) (; ";")) (expression_statement "*(uint *)(param_1 + 8) = uVar5;" (assignment_expression "*(uint *)(param_1 + 8) = uVar5" (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "uVar3 = (*(code *)puVar1)(iVar7,0,uVar2);" (assignment_expression "uVar3 = (*(code *)puVar1)(iVar7,0,uVar2)" (identifier "uVar3") (= "=") (call_expression "(*(code *)puVar1)(iVar7,0,uVar2)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar7,0,uVar2)" (( "(") (identifier "iVar7") (, ",") (number_literal "0") (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "bitset_init(uVar3,param_2,param_3);" (call_expression "bitset_init(uVar3,param_2,param_3)" (identifier "bitset_init") (argument_list "(uVar3,param_2,param_3)" (( "(") (identifier "uVar3") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (identifier))) 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: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (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: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (number_literal))))) right: (number_literal)) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (unary_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (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 (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))))

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

{
  undefined *puVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  int iVar7;
  
  uVar2 = bitset_bytes(param_3);
  uVar6 = *(uint *)(param_1 + 0x10);
  if (uVar6 - *(int *)(param_1 + 0xc) < uVar2) {
    _obstack_newchunk(param_1,uVar2);
    iVar7 = *(int *)(param_1 + 8);
    iVar4 = *(int *)(param_1 + 0xc) + uVar2;
    uVar6 = *(uint *)(param_1 + 0x10);
    *(int *)(param_1 + 0xc) = iVar4;
    if (iVar4 != iVar7) goto LAB_000575a4;
  }
  else {
    iVar7 = *(int *)(param_1 + 8);
    iVar4 = *(int *)(param_1 + 0xc) + uVar2;
    *(int *)(param_1 + 0xc) = iVar4;
    if (iVar4 != iVar7) goto LAB_000575a4;
  }
  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) & 0xbf | 0x40;
LAB_000575a4:
  uVar5 = iVar4 + *(uint *)(param_1 + 0x18) & ~*(uint *)(param_1 + 0x18);
  *(uint *)(param_1 + 0xc) = uVar5;
  if (uVar6 - *(int *)(param_1 + 4) < uVar5 - *(int *)(param_1 + 4)) {
    *(uint *)(param_1 + 0xc) = uVar6;
    uVar5 = uVar6;
  }
  puVar1 = PTR_memset_0008dee0;
  *(uint *)(param_1 + 8) = uVar5;
  uVar3 = (*(code *)puVar1)(iVar7,0,uVar2);
  bitset_init(uVar3,param_2,param_3);
  return;
}

