
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

fragS * frag_alloc(obstack *ob)

{
  fragS *pfVar1;
  fragS *pfVar2;
  char *pcVar3;
  char *pcVar4;
  uint uVar5;
  _obstack_chunk *p_Var6;
  undefined4 *puVar7;
  byte bVar8;
  uint local_2c;
  uint local_24;
  uint local_20;
  
  bVar8 = 0;
  pcVar4 = ob->chunk_limit;
  if (ob->next_free == ob->object_base) {
    ob->field_0x28 = ob->field_0x28 | 2;
  }
  uVar5 = ob->alignment_mask;
  p_Var6 = ob->chunk;
  pfVar1 = (fragS *)((uint)(ob->next_free + uVar5) & ~uVar5);
  local_2c = (int)pcVar4 - (int)p_Var6;
  ob->next_free = (char *)pfVar1;
  if (local_2c < (uint)((int)pfVar1 - (int)p_Var6)) {
    ob->next_free = pcVar4;
    ob->object_base = pcVar4;
    ob->alignment_mask = 0;
LAB_00024738:
    _obstack_newchunk(ob,0x68);
    local_24 = ob->alignment_mask;
    pcVar4 = ob->chunk_limit;
    p_Var6 = ob->chunk;
    local_20 = ~local_24;
    pfVar1 = (fragS *)ob->object_base;
    pfVar2 = (fragS *)(ob->next_free + 0x68);
    local_2c = (int)pcVar4 - (int)p_Var6;
    ob->next_free = (char *)pfVar2;
    if (pfVar2 != pfVar1) goto LAB_000247af;
  }
  else {
    ob->object_base = (char *)pfVar1;
    ob->alignment_mask = 0;
    if ((uint)((int)pcVar4 - (int)pfVar1) < 0x68) goto LAB_00024738;
    pfVar2 = (fragS *)pfVar1->fr_literal;
    local_20 = 0xffffffff;
    local_24 = 0;
    ob->next_free = (char *)pfVar2;
    if (pfVar2 != pfVar1) goto LAB_000247af;
  }
  ob->field_0x28 = ob->field_0x28 | 2;
LAB_000247af:
  pcVar3 = (char *)((uint)(pfVar2->fr_literal + (local_24 - 0x68)) & local_20);
  if (local_2c < (uint)((int)pcVar3 - (int)p_Var6)) {
    ob->next_free = pcVar4;
  }
  else {
    ob->next_free = pcVar3;
    pcVar4 = pcVar3;
  }
  ob->object_base = pcVar4;
  puVar7 = (undefined4 *)((uint)((int)&pfVar1->fr_address + 4U) & 0xfffffffc);
  ob->alignment_mask = uVar5;
  *(undefined4 *)&pfVar1->fr_address = 0;
  (pfVar1->tc_frag_data).max_bytes = 0;
  uVar5 = (uint)((int)pfVar1 + (0x68 - (int)puVar7)) >> 2;
  for (; uVar5 != 0; uVar5 = uVar5 - 1) {
    *puVar7 = 0;
    puVar7 = puVar7 + (uint)bVar8 * -2 + 1;
  }
  totalfrags = totalfrags + 1;
  return pfVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 * FUN_000246e0(int param_1)

{
  uint uVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  uint uVar4;
  int iVar5;
  byte bVar6;
  uint local_2c;
  uint local_24;
  uint local_20;
  
  bVar6 = 0;
  uVar4 = *(uint *)(param_1 + 0x10);
  if (*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)) {
    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;
  }
  uVar1 = *(uint *)(param_1 + 0x18);
  iVar5 = *(int *)(param_1 + 4);
  puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1);
  local_2c = uVar4 - iVar5;
  *(undefined4 **)(param_1 + 0xc) = puVar2;
  if (local_2c < (uint)((int)puVar2 - iVar5)) {
    *(uint *)(param_1 + 0xc) = uVar4;
    *(uint *)(param_1 + 8) = uVar4;
    *(undefined4 *)(param_1 + 0x18) = 0;
LAB_00024738:
    _obstack_newchunk(param_1,0x68);
    local_24 = *(uint *)(param_1 + 0x18);
    uVar4 = *(uint *)(param_1 + 0x10);
    iVar5 = *(int *)(param_1 + 4);
    local_20 = ~local_24;
    puVar2 = *(undefined4 **)(param_1 + 8);
    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);
    local_2c = uVar4 - iVar5;
    *(undefined4 **)(param_1 + 0xc) = puVar3;
    if (puVar3 != puVar2) goto LAB_000247af;
  }
  else {
    *(undefined4 **)(param_1 + 8) = puVar2;
    *(undefined4 *)(param_1 + 0x18) = 0;
    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;
    puVar3 = puVar2 + 0x1a;
    local_20 = 0xffffffff;
    local_24 = 0;
    *(undefined4 **)(param_1 + 0xc) = puVar3;
    if (puVar3 != puVar2) goto LAB_000247af;
  }
  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;
LAB_000247af:
  local_20 = (int)puVar3 + local_24 & local_20;
  if (local_2c < local_20 - iVar5) {
    *(uint *)(param_1 + 0xc) = uVar4;
  }
  else {
    *(uint *)(param_1 + 0xc) = local_20;
    uVar4 = local_20;
  }
  *(uint *)(param_1 + 8) = uVar4;
  *(uint *)(param_1 + 0x18) = uVar1;
  *puVar2 = 0;
  puVar2[0x19] = 0;
  puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);
  for (uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;
      uVar4 != 0; uVar4 = uVar4 - 1) {
    *puVar3 = 0;
    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;
  }
  DAT_00088a08 = DAT_00088a08 + 1;
  return puVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016000
ADD EBX,0x5b917
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESI + 0x10]
MOV EAX,dword ptr [ESI + 0xc]
CMP EAX,dword ptr [ESI + 0x8]
JZ 0x00024810
MOV EDI,dword ptr [ESI + 0x18]
MOV EBP,dword ptr [ESI + 0x4]
MOV EDX,EDI
ADD EAX,EDI
MOV dword ptr [ESP + 0x4],EDI
NOT EDX
AND EAX,EDX
MOV EDX,ECX
SUB EDX,EBP
MOV dword ptr [ESI + 0xc],EAX
MOV EDI,EDX
MOV dword ptr [ESP],EDX
MOV EDX,EAX
SUB EDX,EBP
CMP EDX,EDI
JBE 0x00024780
MOV dword ptr [ESI + 0xc],ECX
MOV dword ptr [ESI + 0x8],ECX
MOV dword ptr [ESI + 0x18],0x0
SUB ESP,0x8
PUSH 0x68
PUSH ESI
CALL 0x00014190
MOV EDI,dword ptr [ESI + 0x18]
MOV ECX,dword ptr [ESI + 0x10]
MOV EAX,dword ptr [ESI + 0xc]
MOV EBP,dword ptr [ESI + 0x4]
MOV dword ptr [ESP + 0x18],EDI
NOT EDI
MOV EDX,dword ptr [ESI + 0x8]
MOV dword ptr [ESP + 0x1c],EDI
MOV EDI,ECX
ADD EAX,0x68
SUB EDI,EBP
MOV dword ptr [ESI + 0xc],EAX
MOV dword ptr [ESP + 0x10],EDI
ADD ESP,0x10
CMP EAX,EDX
JNZ 0x000247af
OR byte ptr [ESI + 0x28],0x2
JMP 0x000247af
MOV EDX,ECX
MOV dword ptr [ESI + 0x8],EAX
SUB EDX,EAX
MOV dword ptr [ESI + 0x18],0x0
CMP EDX,0x67
JBE 0x00024738
MOV EDX,EAX
ADD EAX,0x68
MOV dword ptr [ESP + 0xc],0xffffffff
MOV dword ptr [ESP + 0x8],0x0
MOV dword ptr [ESI + 0xc],EAX
CMP EAX,EDX
JZ 0x00024771
ADD EAX,dword ptr [ESP + 0x8]
AND EAX,dword ptr [ESP + 0xc]
MOV EDI,EAX
SUB EDI,EBP
CMP EDI,dword ptr [ESP]
JA 0x00024808
MOV dword ptr [ESI + 0xc],EAX
MOV ECX,EAX
LEA EDI,[EDX + 0x4]
MOV dword ptr [ESI + 0x8],ECX
MOV ECX,EDX
MOV EAX,dword ptr [ESP + 0x4]
AND EDI,0xfffffffc
SUB ECX,EDI
MOV dword ptr [ESI + 0x18],EAX
XOR EAX,EAX
ADD ECX,0x68
MOV dword ptr [EDX],0x0
SHR ECX,0x2
MOV dword ptr [EDX + 0x64],0x0
STOSD.REP ES:EDI
MOV EAX,EDX
ADD dword ptr [EBX + 0x8a08],0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESI + 0xc],ECX
JMP 0x000247c5
OR byte ptr [ESI + 0x28],0x2
JMP 0x00024705
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_000246e0(int param_1)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  byte bVar6;\n  uint local_2c;\n  uint local_24;\n  uint local_20;\n  \n  bVar6 = 0;\n  uVar4 = *(uint *)(param_1 + 0x10);\n  if (*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)) {\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }\n  uVar1 = *(uint *)(param_1 + 0x18);\n  iVar5 = *(int *)(param_1 + 4);\n  puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1);\n  local_2c = uVar4 - iVar5;\n  *(undefined4 **)(param_1 + 0xc) = puVar2;\n  if (local_2c < (uint)((int)puVar2 - iVar5)) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\nLAB_000247af:\n  local_20 = (int)puVar3 + local_24 & local_20;\n  if (local_2c < local_20 - iVar5) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }\n  else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }\n  *(uint *)(param_1 + 8) = uVar4;\n  *(uint *)(param_1 + 0x18) = uVar1;\n  *puVar2 = 0;\n  puVar2[0x19] = 0;\n  puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }\n  DAT_00088a08 = DAT_00088a08 + 1;\n  return puVar2;\n}\n\n" comment (function_definition "undefined4 * FUN_000246e0(int param_1)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  byte bVar6;\n  uint local_2c;\n  uint local_24;\n  uint local_20;\n  \n  bVar6 = 0;\n  uVar4 = *(uint *)(param_1 + 0x10);\n  if (*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)) {\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }\n  uVar1 = *(uint *)(param_1 + 0x18);\n  iVar5 = *(int *)(param_1 + 4);\n  puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1);\n  local_2c = uVar4 - iVar5;\n  *(undefined4 **)(param_1 + 0xc) = puVar2;\n  if (local_2c < (uint)((int)puVar2 - iVar5)) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\nLAB_000247af:\n  local_20 = (int)puVar3 + local_24 & local_20;\n  if (local_2c < local_20 - iVar5) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }\n  else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }\n  *(uint *)(param_1 + 8) = uVar4;\n  *(uint *)(param_1 + 0x18) = uVar1;\n  *puVar2 = 0;\n  puVar2[0x19] = 0;\n  puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }\n  DAT_00088a08 = DAT_00088a08 + 1;\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_000246e0(int param_1)" * (function_declarator "FUN_000246e0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  byte bVar6;\n  uint local_2c;\n  uint local_24;\n  uint local_20;\n  \n  bVar6 = 0;\n  uVar4 = *(uint *)(param_1 + 0x10);\n  if (*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)) {\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }\n  uVar1 = *(uint *)(param_1 + 0x18);\n  iVar5 = *(int *)(param_1 + 4);\n  puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1);\n  local_2c = uVar4 - iVar5;\n  *(undefined4 **)(param_1 + 0xc) = puVar2;\n  if (local_2c < (uint)((int)puVar2 - iVar5)) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\nLAB_000247af:\n  local_20 = (int)puVar3 + local_24 & local_20;\n  if (local_2c < local_20 - iVar5) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }\n  else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }\n  *(uint *)(param_1 + 8) = uVar4;\n  *(uint *)(param_1 + 0x18) = uVar1;\n  *puVar2 = 0;\n  puVar2[0x19] = 0;\n  puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }\n  DAT_00088a08 = DAT_00088a08 + 1;\n  return puVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "uint local_20;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar4 = *(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 (*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)) {\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8))" ( (binary_expression "*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)" (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) )))) == (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) ))))) )) (compound_statement "{\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }" { (expression_statement "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;" (assignment_expression "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2" (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) | 2" (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)) ;) })) (expression_statement "uVar1 = *(uint *)(param_1 + 0x18);" (assignment_expression "uVar1 = *(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) ))))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 4);" (assignment_expression "iVar5 = *(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) ))))) ;) (expression_statement "puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1);" (assignment_expression "puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1)" ( (binary_expression "*(int *)(param_1 + 0xc) + uVar1 & ~uVar1" (binary_expression "*(int *)(param_1 + 0xc) + uVar1" (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) & (unary_expression "~uVar1" ~ identifier)) )))) ;) (expression_statement "local_2c = uVar4 - iVar5;" (assignment_expression "local_2c = uVar4 - iVar5" identifier = (binary_expression "uVar4 - iVar5" identifier - identifier)) ;) (expression_statement "*(undefined4 **)(param_1 + 0xc) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0xc) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (local_2c < (uint)((int)puVar2 - iVar5)) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }" if (parenthesized_expression "(local_2c < (uint)((int)puVar2 - iVar5))" ( (binary_expression "local_2c < (uint)((int)puVar2 - iVar5)" identifier < (call_expression "(uint)((int)puVar2 - iVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar2 - iVar5)" ( (binary_expression "(int)puVar2 - iVar5" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }" { (expression_statement "*(uint *)(param_1 + 0xc) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar4" (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 "*(uint *)(param_1 + 8) = uVar4;" (assignment_expression "*(uint *)(param_1 + 8) = uVar4" (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 "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_00024738:\n    _obstack_newchunk(param_1,0x68);" statement_identifier : (expression_statement "_obstack_newchunk(param_1,0x68);" (call_expression "_obstack_newchunk(param_1,0x68)" identifier (argument_list "(param_1,0x68)" ( identifier , number_literal ))) ;)) (expression_statement "local_24 = *(uint *)(param_1 + 0x18);" (assignment_expression "local_24 = *(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) ))))) ;) (expression_statement "uVar4 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar4 = *(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 "iVar5 = *(int *)(param_1 + 4);" (assignment_expression "iVar5 = *(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) ))))) ;) (expression_statement "local_20 = ~local_24;" (assignment_expression "local_20 = ~local_24" identifier = (unary_expression "~local_24" ~ identifier)) ;) (expression_statement "puVar2 = *(undefined4 **)(param_1 + 8);" (assignment_expression "puVar2 = *(undefined4 **)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 0xc) + 0x68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + 0x68)" ( (binary_expression "*(int *)(param_1 + 0xc) + 0x68" (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) )))) + number_literal) )))) ;) (expression_statement "local_2c = uVar4 - iVar5;" (assignment_expression "local_2c = uVar4 - iVar5" identifier = (binary_expression "uVar4 - iVar5" identifier - identifier)) ;) (expression_statement "*(undefined4 **)(param_1 + 0xc) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0xc) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (puVar3 != puVar2) goto LAB_000247af;" if (parenthesized_expression "(puVar3 != puVar2)" ( (binary_expression "puVar3 != puVar2" identifier != identifier) )) (goto_statement "goto LAB_000247af;" goto statement_identifier ;)) }) (else_clause "else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }" else (compound_statement "{\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }" { (expression_statement "*(undefined4 **)(param_1 + 8) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 8) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;" if (parenthesized_expression "(uVar4 - (int)puVar2 < 0x68)" ( (binary_expression "uVar4 - (int)puVar2 < 0x68" (binary_expression "uVar4 - (int)puVar2" identifier - (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) < number_literal) )) (goto_statement "goto LAB_00024738;" goto statement_identifier ;)) (expression_statement "puVar3 = puVar2 + 0x1a;" (assignment_expression "puVar3 = puVar2 + 0x1a" identifier = (binary_expression "puVar2 + 0x1a" identifier + number_literal)) ;) (expression_statement "local_20 = 0xffffffff;" (assignment_expression "local_20 = 0xffffffff" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 **)(param_1 + 0xc) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0xc) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (puVar3 != puVar2) goto LAB_000247af;" if (parenthesized_expression "(puVar3 != puVar2)" ( (binary_expression "puVar3 != puVar2" identifier != identifier) )) (goto_statement "goto LAB_000247af;" goto statement_identifier ;)) }))) (expression_statement "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;" (assignment_expression "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2" (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) | 2" (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)) ;) (labeled_statement "LAB_000247af:\n  local_20 = (int)puVar3 + local_24 & local_20;" statement_identifier : (expression_statement "local_20 = (int)puVar3 + local_24 & local_20;" (assignment_expression "local_20 = (int)puVar3 + local_24 & local_20" identifier = (binary_expression "(int)puVar3 + local_24 & local_20" (binary_expression "(int)puVar3 + local_24" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) & identifier)) ;)) (if_statement "if (local_2c < local_20 - iVar5) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }\n  else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }" if (parenthesized_expression "(local_2c < local_20 - iVar5)" ( (binary_expression "local_2c < local_20 - iVar5" identifier < (binary_expression "local_20 - iVar5" identifier - identifier)) )) (compound_statement "{\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }" { (expression_statement "*(uint *)(param_1 + 0xc) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar4" (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) ;) }) (else_clause "else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }" else (compound_statement "{\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }" { (expression_statement "*(uint *)(param_1 + 0xc) = local_20;" (assignment_expression "*(uint *)(param_1 + 0xc) = local_20" (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 "uVar4 = local_20;" (assignment_expression "uVar4 = local_20" identifier = identifier) ;) }))) (expression_statement "*(uint *)(param_1 + 8) = uVar4;" (assignment_expression "*(uint *)(param_1 + 8) = uVar4" (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 "*(uint *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x18) = uVar1" (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) )))) = identifier) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[0x19] = 0;" (assignment_expression "puVar2[0x19] = 0" (subscript_expression "puVar2[0x19]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);" (assignment_expression "puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }" for ( (assignment_expression "uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" ( (binary_expression "(int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" ( (binary_expression "0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(puVar2 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar4 != 0" identifier != number_literal) ; (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar6 * -2 + 1" (binary_expression "puVar3 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "DAT_00088a08 = DAT_00088a08 + 1;" (assignment_expression "DAT_00088a08 = DAT_00088a08 + 1" identifier = (binary_expression "DAT_00088a08 + 1" identifier + number_literal)) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nfragS * frag_alloc(obstack *ob)\n\n{\n  fragS *pfVar1;\n  fragS *pfVar2;\n  char *pcVar3;\n  char *pcVar4;\n  uint uVar5;\n  _obstack_chunk *p_Var6;\n  undefined4 *puVar7;\n  byte bVar8;\n  uint local_2c;\n  uint local_24;\n  uint local_20;\n  \n  bVar8 = 0;\n  pcVar4 = ob->chunk_limit;\n  if (ob->next_free == ob->object_base) {\n    ob->field_0x28 = ob->field_0x28 | 2;\n  }\n  uVar5 = ob->alignment_mask;\n  p_Var6 = ob->chunk;\n  pfVar1 = (fragS *)((uint)(ob->next_free + uVar5) & ~uVar5);\n  local_2c = (int)pcVar4 - (int)p_Var6;\n  ob->next_free = (char *)pfVar1;\n  if (local_2c < (uint)((int)pfVar1 - (int)p_Var6)) {\n    ob->next_free = pcVar4;\n    ob->object_base = pcVar4;\n    ob->alignment_mask = 0;\nLAB_00024738:\n    _obstack_newchunk(ob,0x68);\n    local_24 = ob->alignment_mask;\n    pcVar4 = ob->chunk_limit;\n    p_Var6 = ob->chunk;\n    local_20 = ~local_24;\n    pfVar1 = (fragS *)ob->object_base;\n    pfVar2 = (fragS *)(ob->next_free + 0x68);\n    local_2c = (int)pcVar4 - (int)p_Var6;\n    ob->next_free = (char *)pfVar2;\n    if (pfVar2 != pfVar1) goto LAB_000247af;\n  }\n  else {\n    ob->object_base = (char *)pfVar1;\n    ob->alignment_mask = 0;\n    if ((uint)((int)pcVar4 - (int)pfVar1) < 0x68) goto LAB_00024738;\n    pfVar2 = (fragS *)pfVar1->fr_literal;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    ob->next_free = (char *)pfVar2;\n    if (pfVar2 != pfVar1) goto LAB_000247af;\n  }\n  ob->field_0x28 = ob->field_0x28 | 2;\nLAB_000247af:\n  pcVar3 = (char *)((uint)(pfVar2->fr_literal + (local_24 - 0x68)) & local_20);\n  if (local_2c < (uint)((int)pcVar3 - (int)p_Var6)) {\n    ob->next_free = pcVar4;\n  }\n  else {\n    ob->next_free = pcVar3;\n    pcVar4 = pcVar3;\n  }\n  ob->object_base = pcVar4;\n  puVar7 = (undefined4 *)((uint)((int)&pfVar1->fr_address + 4U) & 0xfffffffc);\n  ob->alignment_mask = uVar5;\n  *(undefined4 *)&pfVar1->fr_address = 0;\n  (pfVar1->tc_frag_data).max_bytes = 0;\n  uVar5 = (uint)((int)pfVar1 + (0x68 - (int)puVar7)) >> 2;\n  for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar7 = 0;\n    puVar7 = puVar7 + (uint)bVar8 * -2 + 1;\n  }\n  totalfrags = totalfrags + 1;\n  return pfVar1;\n}\n\n" comment (function_definition "fragS * frag_alloc(obstack *ob)\n\n{\n  fragS *pfVar1;\n  fragS *pfVar2;\n  char *pcVar3;\n  char *pcVar4;\n  uint uVar5;\n  _obstack_chunk *p_Var6;\n  undefined4 *puVar7;\n  byte bVar8;\n  uint local_2c;\n  uint local_24;\n  uint local_20;\n  \n  bVar8 = 0;\n  pcVar4 = ob->chunk_limit;\n  if (ob->next_free == ob->object_base) {\n    ob->field_0x28 = ob->field_0x28 | 2;\n  }\n  uVar5 = ob->alignment_mask;\n  p_Var6 = ob->chunk;\n  pfVar1 = (fragS *)((uint)(ob->next_free + uVar5) & ~uVar5);\n  local_2c = (int)pcVar4 - (int)p_Var6;\n  ob->next_free = (char *)pfVar1;\n  if (local_2c < (uint)((int)pfVar1 - (int)p_Var6)) {\n    ob->next_free = pcVar4;\n    ob->object_base = pcVar4;\n    ob->alignment_mask = 0;\nLAB_00024738:\n    _obstack_newchunk(ob,0x68);\n    local_24 = ob->alignment_mask;\n    pcVar4 = ob->chunk_limit;\n    p_Var6 = ob->chunk;\n    local_20 = ~local_24;\n    pfVar1 = (fragS *)ob->object_base;\n    pfVar2 = (fragS *)(ob->next_free + 0x68);\n    local_2c = (int)pcVar4 - (int)p_Var6;\n    ob->next_free = (char *)pfVar2;\n    if (pfVar2 != pfVar1) goto LAB_000247af;\n  }\n  else {\n    ob->object_base = (char *)pfVar1;\n    ob->alignment_mask = 0;\n    if ((uint)((int)pcVar4 - (int)pfVar1) < 0x68) goto LAB_00024738;\n    pfVar2 = (fragS *)pfVar1->fr_literal;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    ob->next_free = (char *)pfVar2;\n    if (pfVar2 != pfVar1) goto LAB_000247af;\n  }\n  ob->field_0x28 = ob->field_0x28 | 2;\nLAB_000247af:\n  pcVar3 = (char *)((uint)(pfVar2->fr_literal + (local_24 - 0x68)) & local_20);\n  if (local_2c < (uint)((int)pcVar3 - (int)p_Var6)) {\n    ob->next_free = pcVar4;\n  }\n  else {\n    ob->next_free = pcVar3;\n    pcVar4 = pcVar3;\n  }\n  ob->object_base = pcVar4;\n  puVar7 = (undefined4 *)((uint)((int)&pfVar1->fr_address + 4U) & 0xfffffffc);\n  ob->alignment_mask = uVar5;\n  *(undefined4 *)&pfVar1->fr_address = 0;\n  (pfVar1->tc_frag_data).max_bytes = 0;\n  uVar5 = (uint)((int)pfVar1 + (0x68 - (int)puVar7)) >> 2;\n  for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar7 = 0;\n    puVar7 = puVar7 + (uint)bVar8 * -2 + 1;\n  }\n  totalfrags = totalfrags + 1;\n  return pfVar1;\n}" type_identifier (pointer_declarator "* frag_alloc(obstack *ob)" * (function_declarator "frag_alloc(obstack *ob)" identifier (parameter_list "(obstack *ob)" ( (parameter_declaration "obstack *ob" type_identifier (pointer_declarator "*ob" * identifier)) )))) (compound_statement "{\n  fragS *pfVar1;\n  fragS *pfVar2;\n  char *pcVar3;\n  char *pcVar4;\n  uint uVar5;\n  _obstack_chunk *p_Var6;\n  undefined4 *puVar7;\n  byte bVar8;\n  uint local_2c;\n  uint local_24;\n  uint local_20;\n  \n  bVar8 = 0;\n  pcVar4 = ob->chunk_limit;\n  if (ob->next_free == ob->object_base) {\n    ob->field_0x28 = ob->field_0x28 | 2;\n  }\n  uVar5 = ob->alignment_mask;\n  p_Var6 = ob->chunk;\n  pfVar1 = (fragS *)((uint)(ob->next_free + uVar5) & ~uVar5);\n  local_2c = (int)pcVar4 - (int)p_Var6;\n  ob->next_free = (char *)pfVar1;\n  if (local_2c < (uint)((int)pfVar1 - (int)p_Var6)) {\n    ob->next_free = pcVar4;\n    ob->object_base = pcVar4;\n    ob->alignment_mask = 0;\nLAB_00024738:\n    _obstack_newchunk(ob,0x68);\n    local_24 = ob->alignment_mask;\n    pcVar4 = ob->chunk_limit;\n    p_Var6 = ob->chunk;\n    local_20 = ~local_24;\n    pfVar1 = (fragS *)ob->object_base;\n    pfVar2 = (fragS *)(ob->next_free + 0x68);\n    local_2c = (int)pcVar4 - (int)p_Var6;\n    ob->next_free = (char *)pfVar2;\n    if (pfVar2 != pfVar1) goto LAB_000247af;\n  }\n  else {\n    ob->object_base = (char *)pfVar1;\n    ob->alignment_mask = 0;\n    if ((uint)((int)pcVar4 - (int)pfVar1) < 0x68) goto LAB_00024738;\n    pfVar2 = (fragS *)pfVar1->fr_literal;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    ob->next_free = (char *)pfVar2;\n    if (pfVar2 != pfVar1) goto LAB_000247af;\n  }\n  ob->field_0x28 = ob->field_0x28 | 2;\nLAB_000247af:\n  pcVar3 = (char *)((uint)(pfVar2->fr_literal + (local_24 - 0x68)) & local_20);\n  if (local_2c < (uint)((int)pcVar3 - (int)p_Var6)) {\n    ob->next_free = pcVar4;\n  }\n  else {\n    ob->next_free = pcVar3;\n    pcVar4 = pcVar3;\n  }\n  ob->object_base = pcVar4;\n  puVar7 = (undefined4 *)((uint)((int)&pfVar1->fr_address + 4U) & 0xfffffffc);\n  ob->alignment_mask = uVar5;\n  *(undefined4 *)&pfVar1->fr_address = 0;\n  (pfVar1->tc_frag_data).max_bytes = 0;\n  uVar5 = (uint)((int)pfVar1 + (0x68 - (int)puVar7)) >> 2;\n  for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar7 = 0;\n    puVar7 = puVar7 + (uint)bVar8 * -2 + 1;\n  }\n  totalfrags = totalfrags + 1;\n  return pfVar1;\n}" { (declaration "fragS *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (declaration "fragS *pfVar2;" type_identifier (pointer_declarator "*pfVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "_obstack_chunk *p_Var6;" type_identifier (pointer_declarator "*p_Var6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "uint local_20;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "pcVar4 = ob->chunk_limit;" (assignment_expression "pcVar4 = ob->chunk_limit" identifier = (field_expression "ob->chunk_limit" identifier -> field_identifier)) ;) (if_statement "if (ob->next_free == ob->object_base) {\n    ob->field_0x28 = ob->field_0x28 | 2;\n  }" if (parenthesized_expression "(ob->next_free == ob->object_base)" ( (binary_expression "ob->next_free == ob->object_base" (field_expression "ob->next_free" identifier -> field_identifier) == (field_expression "ob->object_base" identifier -> field_identifier)) )) (compound_statement "{\n    ob->field_0x28 = ob->field_0x28 | 2;\n  }" { (expression_statement "ob->field_0x28 = ob->field_0x28 | 2;" (assignment_expression "ob->field_0x28 = ob->field_0x28 | 2" (field_expression "ob->field_0x28" identifier -> field_identifier) = (binary_expression "ob->field_0x28 | 2" (field_expression "ob->field_0x28" identifier -> field_identifier) | number_literal)) ;) })) (expression_statement "uVar5 = ob->alignment_mask;" (assignment_expression "uVar5 = ob->alignment_mask" identifier = (field_expression "ob->alignment_mask" identifier -> field_identifier)) ;) (expression_statement "p_Var6 = ob->chunk;" (assignment_expression "p_Var6 = ob->chunk" identifier = (field_expression "ob->chunk" identifier -> field_identifier)) ;) (expression_statement "pfVar1 = (fragS *)((uint)(ob->next_free + uVar5) & ~uVar5);" (assignment_expression "pfVar1 = (fragS *)((uint)(ob->next_free + uVar5) & ~uVar5)" identifier = (cast_expression "(fragS *)((uint)(ob->next_free + uVar5) & ~uVar5)" ( (type_descriptor "fragS *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(ob->next_free + uVar5) & ~uVar5)" ( (binary_expression "(uint)(ob->next_free + uVar5) & ~uVar5" (call_expression "(uint)(ob->next_free + uVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ob->next_free + uVar5)" ( (binary_expression "ob->next_free + uVar5" (field_expression "ob->next_free" identifier -> field_identifier) + identifier) ))) & (unary_expression "~uVar5" ~ identifier)) )))) ;) (expression_statement "local_2c = (int)pcVar4 - (int)p_Var6;" (assignment_expression "local_2c = (int)pcVar4 - (int)p_Var6" identifier = (binary_expression "(int)pcVar4 - (int)p_Var6" (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p_Var6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "ob->next_free = (char *)pfVar1;" (assignment_expression "ob->next_free = (char *)pfVar1" (field_expression "ob->next_free" identifier -> field_identifier) = (cast_expression "(char *)pfVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (local_2c < (uint)((int)pfVar1 - (int)p_Var6)) {\n    ob->next_free = pcVar4;\n    ob->object_base = pcVar4;\n    ob->alignment_mask = 0;\nLAB_00024738:\n    _obstack_newchunk(ob,0x68);\n    local_24 = ob->alignment_mask;\n    pcVar4 = ob->chunk_limit;\n    p_Var6 = ob->chunk;\n    local_20 = ~local_24;\n    pfVar1 = (fragS *)ob->object_base;\n    pfVar2 = (fragS *)(ob->next_free + 0x68);\n    local_2c = (int)pcVar4 - (int)p_Var6;\n    ob->next_free = (char *)pfVar2;\n    if (pfVar2 != pfVar1) goto LAB_000247af;\n  }\n  else {\n    ob->object_base = (char *)pfVar1;\n    ob->alignment_mask = 0;\n    if ((uint)((int)pcVar4 - (int)pfVar1) < 0x68) goto LAB_00024738;\n    pfVar2 = (fragS *)pfVar1->fr_literal;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    ob->next_free = (char *)pfVar2;\n    if (pfVar2 != pfVar1) goto LAB_000247af;\n  }" if (parenthesized_expression "(local_2c < (uint)((int)pfVar1 - (int)p_Var6))" ( (binary_expression "local_2c < (uint)((int)pfVar1 - (int)p_Var6)" identifier < (call_expression "(uint)((int)pfVar1 - (int)p_Var6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pfVar1 - (int)p_Var6)" ( (binary_expression "(int)pfVar1 - (int)p_Var6" (cast_expression "(int)pfVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p_Var6" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n    ob->next_free = pcVar4;\n    ob->object_base = pcVar4;\n    ob->alignment_mask = 0;\nLAB_00024738:\n    _obstack_newchunk(ob,0x68);\n    local_24 = ob->alignment_mask;\n    pcVar4 = ob->chunk_limit;\n    p_Var6 = ob->chunk;\n    local_20 = ~local_24;\n    pfVar1 = (fragS *)ob->object_base;\n    pfVar2 = (fragS *)(ob->next_free + 0x68);\n    local_2c = (int)pcVar4 - (int)p_Var6;\n    ob->next_free = (char *)pfVar2;\n    if (pfVar2 != pfVar1) goto LAB_000247af;\n  }" { (expression_statement "ob->next_free = pcVar4;" (assignment_expression "ob->next_free = pcVar4" (field_expression "ob->next_free" identifier -> field_identifier) = identifier) ;) (expression_statement "ob->object_base = pcVar4;" (assignment_expression "ob->object_base = pcVar4" (field_expression "ob->object_base" identifier -> field_identifier) = identifier) ;) (expression_statement "ob->alignment_mask = 0;" (assignment_expression "ob->alignment_mask = 0" (field_expression "ob->alignment_mask" identifier -> field_identifier) = number_literal) ;) (labeled_statement "LAB_00024738:\n    _obstack_newchunk(ob,0x68);" statement_identifier : (expression_statement "_obstack_newchunk(ob,0x68);" (call_expression "_obstack_newchunk(ob,0x68)" identifier (argument_list "(ob,0x68)" ( identifier , number_literal ))) ;)) (expression_statement "local_24 = ob->alignment_mask;" (assignment_expression "local_24 = ob->alignment_mask" identifier = (field_expression "ob->alignment_mask" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = ob->chunk_limit;" (assignment_expression "pcVar4 = ob->chunk_limit" identifier = (field_expression "ob->chunk_limit" identifier -> field_identifier)) ;) (expression_statement "p_Var6 = ob->chunk;" (assignment_expression "p_Var6 = ob->chunk" identifier = (field_expression "ob->chunk" identifier -> field_identifier)) ;) (expression_statement "local_20 = ~local_24;" (assignment_expression "local_20 = ~local_24" identifier = (unary_expression "~local_24" ~ identifier)) ;) (expression_statement "pfVar1 = (fragS *)ob->object_base;" (assignment_expression "pfVar1 = (fragS *)ob->object_base" identifier = (cast_expression "(fragS *)ob->object_base" ( (type_descriptor "fragS *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "ob->object_base" identifier -> field_identifier))) ;) (expression_statement "pfVar2 = (fragS *)(ob->next_free + 0x68);" (assignment_expression "pfVar2 = (fragS *)(ob->next_free + 0x68)" identifier = (cast_expression "(fragS *)(ob->next_free + 0x68)" ( (type_descriptor "fragS *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ob->next_free + 0x68)" ( (binary_expression "ob->next_free + 0x68" (field_expression "ob->next_free" identifier -> field_identifier) + number_literal) )))) ;) (expression_statement "local_2c = (int)pcVar4 - (int)p_Var6;" (assignment_expression "local_2c = (int)pcVar4 - (int)p_Var6" identifier = (binary_expression "(int)pcVar4 - (int)p_Var6" (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p_Var6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "ob->next_free = (char *)pfVar2;" (assignment_expression "ob->next_free = (char *)pfVar2" (field_expression "ob->next_free" identifier -> field_identifier) = (cast_expression "(char *)pfVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (pfVar2 != pfVar1) goto LAB_000247af;" if (parenthesized_expression "(pfVar2 != pfVar1)" ( (binary_expression "pfVar2 != pfVar1" identifier != identifier) )) (goto_statement "goto LAB_000247af;" goto statement_identifier ;)) }) (else_clause "else {\n    ob->object_base = (char *)pfVar1;\n    ob->alignment_mask = 0;\n    if ((uint)((int)pcVar4 - (int)pfVar1) < 0x68) goto LAB_00024738;\n    pfVar2 = (fragS *)pfVar1->fr_literal;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    ob->next_free = (char *)pfVar2;\n    if (pfVar2 != pfVar1) goto LAB_000247af;\n  }" else (compound_statement "{\n    ob->object_base = (char *)pfVar1;\n    ob->alignment_mask = 0;\n    if ((uint)((int)pcVar4 - (int)pfVar1) < 0x68) goto LAB_00024738;\n    pfVar2 = (fragS *)pfVar1->fr_literal;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    ob->next_free = (char *)pfVar2;\n    if (pfVar2 != pfVar1) goto LAB_000247af;\n  }" { (expression_statement "ob->object_base = (char *)pfVar1;" (assignment_expression "ob->object_base = (char *)pfVar1" (field_expression "ob->object_base" identifier -> field_identifier) = (cast_expression "(char *)pfVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "ob->alignment_mask = 0;" (assignment_expression "ob->alignment_mask = 0" (field_expression "ob->alignment_mask" identifier -> field_identifier) = number_literal) ;) (if_statement "if ((uint)((int)pcVar4 - (int)pfVar1) < 0x68) goto LAB_00024738;" if (parenthesized_expression "((uint)((int)pcVar4 - (int)pfVar1) < 0x68)" ( (binary_expression "(uint)((int)pcVar4 - (int)pfVar1) < 0x68" (call_expression "(uint)((int)pcVar4 - (int)pfVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar4 - (int)pfVar1)" ( (binary_expression "(int)pcVar4 - (int)pfVar1" (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pfVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (goto_statement "goto LAB_00024738;" goto statement_identifier ;)) (expression_statement "pfVar2 = (fragS *)pfVar1->fr_literal;" (assignment_expression "pfVar2 = (fragS *)pfVar1->fr_literal" identifier = (cast_expression "(fragS *)pfVar1->fr_literal" ( (type_descriptor "fragS *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pfVar1->fr_literal" identifier -> field_identifier))) ;) (expression_statement "local_20 = 0xffffffff;" (assignment_expression "local_20 = 0xffffffff" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "ob->next_free = (char *)pfVar2;" (assignment_expression "ob->next_free = (char *)pfVar2" (field_expression "ob->next_free" identifier -> field_identifier) = (cast_expression "(char *)pfVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (pfVar2 != pfVar1) goto LAB_000247af;" if (parenthesized_expression "(pfVar2 != pfVar1)" ( (binary_expression "pfVar2 != pfVar1" identifier != identifier) )) (goto_statement "goto LAB_000247af;" goto statement_identifier ;)) }))) (expression_statement "ob->field_0x28 = ob->field_0x28 | 2;" (assignment_expression "ob->field_0x28 = ob->field_0x28 | 2" (field_expression "ob->field_0x28" identifier -> field_identifier) = (binary_expression "ob->field_0x28 | 2" (field_expression "ob->field_0x28" identifier -> field_identifier) | number_literal)) ;) (labeled_statement "LAB_000247af:\n  pcVar3 = (char *)((uint)(pfVar2->fr_literal + (local_24 - 0x68)) & local_20);" statement_identifier : (expression_statement "pcVar3 = (char *)((uint)(pfVar2->fr_literal + (local_24 - 0x68)) & local_20);" (assignment_expression "pcVar3 = (char *)((uint)(pfVar2->fr_literal + (local_24 - 0x68)) & local_20)" identifier = (cast_expression "(char *)((uint)(pfVar2->fr_literal + (local_24 - 0x68)) & local_20)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(pfVar2->fr_literal + (local_24 - 0x68)) & local_20)" ( (binary_expression "(uint)(pfVar2->fr_literal + (local_24 - 0x68)) & local_20" (call_expression "(uint)(pfVar2->fr_literal + (local_24 - 0x68))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pfVar2->fr_literal + (local_24 - 0x68))" ( (binary_expression "pfVar2->fr_literal + (local_24 - 0x68)" (field_expression "pfVar2->fr_literal" identifier -> field_identifier) + (parenthesized_expression "(local_24 - 0x68)" ( (binary_expression "local_24 - 0x68" identifier - number_literal) ))) ))) & identifier) )))) ;)) (if_statement "if (local_2c < (uint)((int)pcVar3 - (int)p_Var6)) {\n    ob->next_free = pcVar4;\n  }\n  else {\n    ob->next_free = pcVar3;\n    pcVar4 = pcVar3;\n  }" if (parenthesized_expression "(local_2c < (uint)((int)pcVar3 - (int)p_Var6))" ( (binary_expression "local_2c < (uint)((int)pcVar3 - (int)p_Var6)" identifier < (call_expression "(uint)((int)pcVar3 - (int)p_Var6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar3 - (int)p_Var6)" ( (binary_expression "(int)pcVar3 - (int)p_Var6" (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p_Var6" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n    ob->next_free = pcVar4;\n  }" { (expression_statement "ob->next_free = pcVar4;" (assignment_expression "ob->next_free = pcVar4" (field_expression "ob->next_free" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n    ob->next_free = pcVar3;\n    pcVar4 = pcVar3;\n  }" else (compound_statement "{\n    ob->next_free = pcVar3;\n    pcVar4 = pcVar3;\n  }" { (expression_statement "ob->next_free = pcVar3;" (assignment_expression "ob->next_free = pcVar3" (field_expression "ob->next_free" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" identifier = identifier) ;) }))) (expression_statement "ob->object_base = pcVar4;" (assignment_expression "ob->object_base = pcVar4" (field_expression "ob->object_base" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar7 = (undefined4 *)((uint)((int)&pfVar1->fr_address + 4U) & 0xfffffffc);" (assignment_expression "puVar7 = (undefined4 *)((uint)((int)&pfVar1->fr_address + 4U) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)((int)&pfVar1->fr_address + 4U) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)((int)&pfVar1->fr_address + 4U) & 0xfffffffc)" ( (binary_expression "(uint)((int)&pfVar1->fr_address + 4U) & 0xfffffffc" (call_expression "(uint)((int)&pfVar1->fr_address + 4U)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)&pfVar1->fr_address + 4U)" ( (binary_expression "(int)&pfVar1->fr_address + 4U" (cast_expression "(int)&pfVar1->fr_address" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pfVar1->fr_address" & (field_expression "pfVar1->fr_address" identifier -> field_identifier))) + number_literal) ))) & number_literal) )))) ;) (expression_statement "ob->alignment_mask = uVar5;" (assignment_expression "ob->alignment_mask = uVar5" (field_expression "ob->alignment_mask" identifier -> field_identifier) = identifier) ;) (expression_statement "*(undefined4 *)&pfVar1->fr_address = 0;" (assignment_expression "*(undefined4 *)&pfVar1->fr_address = 0" (pointer_expression "*(undefined4 *)&pfVar1->fr_address" * (cast_expression "(undefined4 *)&pfVar1->fr_address" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pfVar1->fr_address" & (field_expression "pfVar1->fr_address" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "(pfVar1->tc_frag_data).max_bytes = 0;" (assignment_expression "(pfVar1->tc_frag_data).max_bytes = 0" (field_expression "(pfVar1->tc_frag_data).max_bytes" (parenthesized_expression "(pfVar1->tc_frag_data)" ( (field_expression "pfVar1->tc_frag_data" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "uVar5 = (uint)((int)pfVar1 + (0x68 - (int)puVar7)) >> 2;" (assignment_expression "uVar5 = (uint)((int)pfVar1 + (0x68 - (int)puVar7)) >> 2" identifier = (binary_expression "(uint)((int)pfVar1 + (0x68 - (int)puVar7)) >> 2" (call_expression "(uint)((int)pfVar1 + (0x68 - (int)puVar7))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pfVar1 + (0x68 - (int)puVar7))" ( (binary_expression "(int)pfVar1 + (0x68 - (int)puVar7)" (cast_expression "(int)pfVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x68 - (int)puVar7)" ( (binary_expression "0x68 - (int)puVar7" number_literal - (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (for_statement "for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar7 = 0;\n    puVar7 = puVar7 + (uint)bVar8 * -2 + 1;\n  }" for ( ; (binary_expression "uVar5 != 0" identifier != number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar7 = 0;\n    puVar7 = puVar7 + (uint)bVar8 * -2 + 1;\n  }" { (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "puVar7 = puVar7 + (uint)bVar8 * -2 + 1;" (assignment_expression "puVar7 = puVar7 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "puVar7 + (uint)bVar8 * -2 + 1" (binary_expression "puVar7 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "totalfrags = totalfrags + 1;" (assignment_expression "totalfrags = totalfrags + 1" identifier = (binary_expression "totalfrags + 1" identifier + number_literal)) ;) (return_statement "return pfVar1;" return identifier ;) })))
(translation_unit "undefined4 * FUN_000246e0(int param_1)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  byte bVar6;\n  uint local_2c;\n  uint local_24;\n  uint local_20;\n  \n  bVar6 = 0;\n  uVar4 = *(uint *)(param_1 + 0x10);\n  if (*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)) {\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }\n  uVar1 = *(uint *)(param_1 + 0x18);\n  iVar5 = *(int *)(param_1 + 4);\n  puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1);\n  local_2c = uVar4 - iVar5;\n  *(undefined4 **)(param_1 + 0xc) = puVar2;\n  if (local_2c < (uint)((int)puVar2 - iVar5)) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\nLAB_000247af:\n  local_20 = (int)puVar3 + local_24 & local_20;\n  if (local_2c < local_20 - iVar5) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }\n  else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }\n  *(uint *)(param_1 + 8) = uVar4;\n  *(uint *)(param_1 + 0x18) = uVar1;\n  *puVar2 = 0;\n  puVar2[0x19] = 0;\n  puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }\n  DAT_00088a08 = DAT_00088a08 + 1;\n  return puVar2;\n}\n\n" (function_definition "undefined4 * FUN_000246e0(int param_1)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  byte bVar6;\n  uint local_2c;\n  uint local_24;\n  uint local_20;\n  \n  bVar6 = 0;\n  uVar4 = *(uint *)(param_1 + 0x10);\n  if (*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)) {\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }\n  uVar1 = *(uint *)(param_1 + 0x18);\n  iVar5 = *(int *)(param_1 + 4);\n  puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1);\n  local_2c = uVar4 - iVar5;\n  *(undefined4 **)(param_1 + 0xc) = puVar2;\n  if (local_2c < (uint)((int)puVar2 - iVar5)) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\nLAB_000247af:\n  local_20 = (int)puVar3 + local_24 & local_20;\n  if (local_2c < local_20 - iVar5) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }\n  else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }\n  *(uint *)(param_1 + 8) = uVar4;\n  *(uint *)(param_1 + 0x18) = uVar1;\n  *puVar2 = 0;\n  puVar2[0x19] = 0;\n  puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }\n  DAT_00088a08 = DAT_00088a08 + 1;\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_000246e0(int param_1)" * (function_declarator "FUN_000246e0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  byte bVar6;\n  uint local_2c;\n  uint local_24;\n  uint local_20;\n  \n  bVar6 = 0;\n  uVar4 = *(uint *)(param_1 + 0x10);\n  if (*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)) {\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }\n  uVar1 = *(uint *)(param_1 + 0x18);\n  iVar5 = *(int *)(param_1 + 4);\n  puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1);\n  local_2c = uVar4 - iVar5;\n  *(undefined4 **)(param_1 + 0xc) = puVar2;\n  if (local_2c < (uint)((int)puVar2 - iVar5)) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\nLAB_000247af:\n  local_20 = (int)puVar3 + local_24 & local_20;\n  if (local_2c < local_20 - iVar5) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }\n  else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }\n  *(uint *)(param_1 + 8) = uVar4;\n  *(uint *)(param_1 + 0x18) = uVar1;\n  *puVar2 = 0;\n  puVar2[0x19] = 0;\n  puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }\n  DAT_00088a08 = DAT_00088a08 + 1;\n  return puVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "uint local_20;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar4 = *(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 (*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)) {\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8))" ( (binary_expression "*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)" (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) )))) == (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) ))))) )) (compound_statement "{\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }" { (expression_statement "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;" (assignment_expression "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2" (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) | 2" (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)) ;) })) (expression_statement "uVar1 = *(uint *)(param_1 + 0x18);" (assignment_expression "uVar1 = *(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) ))))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 4);" (assignment_expression "iVar5 = *(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) ))))) ;) (expression_statement "puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1);" (assignment_expression "puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1)" ( (binary_expression "*(int *)(param_1 + 0xc) + uVar1 & ~uVar1" (binary_expression "*(int *)(param_1 + 0xc) + uVar1" (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) & (unary_expression "~uVar1" ~ identifier)) )))) ;) (expression_statement "local_2c = uVar4 - iVar5;" (assignment_expression "local_2c = uVar4 - iVar5" identifier = (binary_expression "uVar4 - iVar5" identifier - identifier)) ;) (expression_statement "*(undefined4 **)(param_1 + 0xc) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0xc) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (local_2c < (uint)((int)puVar2 - iVar5)) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }" if (parenthesized_expression "(local_2c < (uint)((int)puVar2 - iVar5))" ( (binary_expression "local_2c < (uint)((int)puVar2 - iVar5)" identifier < (call_expression "(uint)((int)puVar2 - iVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar2 - iVar5)" ( (binary_expression "(int)puVar2 - iVar5" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }" { (expression_statement "*(uint *)(param_1 + 0xc) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar4" (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 "*(uint *)(param_1 + 8) = uVar4;" (assignment_expression "*(uint *)(param_1 + 8) = uVar4" (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 "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_00024738:\n    _obstack_newchunk(param_1,0x68);" statement_identifier : (expression_statement "_obstack_newchunk(param_1,0x68);" (call_expression "_obstack_newchunk(param_1,0x68)" identifier (argument_list "(param_1,0x68)" ( identifier , number_literal ))) ;)) (expression_statement "local_24 = *(uint *)(param_1 + 0x18);" (assignment_expression "local_24 = *(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) ))))) ;) (expression_statement "uVar4 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar4 = *(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 "iVar5 = *(int *)(param_1 + 4);" (assignment_expression "iVar5 = *(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) ))))) ;) (expression_statement "local_20 = ~local_24;" (assignment_expression "local_20 = ~local_24" identifier = (unary_expression "~local_24" ~ identifier)) ;) (expression_statement "puVar2 = *(undefined4 **)(param_1 + 8);" (assignment_expression "puVar2 = *(undefined4 **)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 0xc) + 0x68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + 0x68)" ( (binary_expression "*(int *)(param_1 + 0xc) + 0x68" (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) )))) + number_literal) )))) ;) (expression_statement "local_2c = uVar4 - iVar5;" (assignment_expression "local_2c = uVar4 - iVar5" identifier = (binary_expression "uVar4 - iVar5" identifier - identifier)) ;) (expression_statement "*(undefined4 **)(param_1 + 0xc) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0xc) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (puVar3 != puVar2) goto LAB_000247af;" if (parenthesized_expression "(puVar3 != puVar2)" ( (binary_expression "puVar3 != puVar2" identifier != identifier) )) (goto_statement "goto LAB_000247af;" goto statement_identifier ;)) }) (else_clause "else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }" else (compound_statement "{\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }" { (expression_statement "*(undefined4 **)(param_1 + 8) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 8) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;" if (parenthesized_expression "(uVar4 - (int)puVar2 < 0x68)" ( (binary_expression "uVar4 - (int)puVar2 < 0x68" (binary_expression "uVar4 - (int)puVar2" identifier - (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) < number_literal) )) (goto_statement "goto LAB_00024738;" goto statement_identifier ;)) (expression_statement "puVar3 = puVar2 + 0x1a;" (assignment_expression "puVar3 = puVar2 + 0x1a" identifier = (binary_expression "puVar2 + 0x1a" identifier + number_literal)) ;) (expression_statement "local_20 = 0xffffffff;" (assignment_expression "local_20 = 0xffffffff" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 **)(param_1 + 0xc) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0xc) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (puVar3 != puVar2) goto LAB_000247af;" if (parenthesized_expression "(puVar3 != puVar2)" ( (binary_expression "puVar3 != puVar2" identifier != identifier) )) (goto_statement "goto LAB_000247af;" goto statement_identifier ;)) }))) (expression_statement "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;" (assignment_expression "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2" (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) | 2" (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)) ;) (labeled_statement "LAB_000247af:\n  local_20 = (int)puVar3 + local_24 & local_20;" statement_identifier : (expression_statement "local_20 = (int)puVar3 + local_24 & local_20;" (assignment_expression "local_20 = (int)puVar3 + local_24 & local_20" identifier = (binary_expression "(int)puVar3 + local_24 & local_20" (binary_expression "(int)puVar3 + local_24" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) & identifier)) ;)) (if_statement "if (local_2c < local_20 - iVar5) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }\n  else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }" if (parenthesized_expression "(local_2c < local_20 - iVar5)" ( (binary_expression "local_2c < local_20 - iVar5" identifier < (binary_expression "local_20 - iVar5" identifier - identifier)) )) (compound_statement "{\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }" { (expression_statement "*(uint *)(param_1 + 0xc) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar4" (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) ;) }) (else_clause "else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }" else (compound_statement "{\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }" { (expression_statement "*(uint *)(param_1 + 0xc) = local_20;" (assignment_expression "*(uint *)(param_1 + 0xc) = local_20" (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 "uVar4 = local_20;" (assignment_expression "uVar4 = local_20" identifier = identifier) ;) }))) (expression_statement "*(uint *)(param_1 + 8) = uVar4;" (assignment_expression "*(uint *)(param_1 + 8) = uVar4" (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 "*(uint *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x18) = uVar1" (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) )))) = identifier) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[0x19] = 0;" (assignment_expression "puVar2[0x19] = 0" (subscript_expression "puVar2[0x19]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);" (assignment_expression "puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }" for ( (assignment_expression "uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" ( (binary_expression "(int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" ( (binary_expression "0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(puVar2 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar4 != 0" identifier != number_literal) ; (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar6 * -2 + 1" (binary_expression "puVar3 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "DAT_00088a08 = DAT_00088a08 + 1;" (assignment_expression "DAT_00088a08 = DAT_00088a08 + 1" identifier = (binary_expression "DAT_00088a08 + 1" identifier + number_literal)) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 = LIT) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (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) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) & (unary_expression ~ IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) )))) )) (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 (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) )))) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;)) (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 = (unary_expression ~ IDENT)) ;) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) & IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT - IDENT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (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 (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) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ))) ))) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_000246e0(int param_1)\n\n{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  byte bVar6;\n  uint local_2c;\n  uint local_24;\n  uint local_20;\n  \n  bVar6 = 0;\n  uVar4 = *(uint *)(param_1 + 0x10);\n  if (*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)) {\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }\n  uVar1 = *(uint *)(param_1 + 0x18);\n  iVar5 = *(int *)(param_1 + 4);\n  puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1);\n  local_2c = uVar4 - iVar5;\n  *(undefined4 **)(param_1 + 0xc) = puVar2;\n  if (local_2c < (uint)((int)puVar2 - iVar5)) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\nLAB_000247af:\n  local_20 = (int)puVar3 + local_24 & local_20;\n  if (local_2c < local_20 - iVar5) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }\n  else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }\n  *(uint *)(param_1 + 8) = uVar4;\n  *(uint *)(param_1 + 0x18) = uVar1;\n  *puVar2 = 0;\n  puVar2[0x19] = 0;\n  puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }\n  DAT_00088a08 = DAT_00088a08 + 1;\n  return puVar2;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_000246e0(int param_1)" (* "*") (function_declarator "FUN_000246e0(int param_1)" (identifier "FUN_000246e0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  uint uVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  byte bVar6;\n  uint local_2c;\n  uint local_24;\n  uint local_20;\n  \n  bVar6 = 0;\n  uVar4 = *(uint *)(param_1 + 0x10);\n  if (*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)) {\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }\n  uVar1 = *(uint *)(param_1 + 0x18);\n  iVar5 = *(int *)(param_1 + 4);\n  puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1);\n  local_2c = uVar4 - iVar5;\n  *(undefined4 **)(param_1 + 0xc) = puVar2;\n  if (local_2c < (uint)((int)puVar2 - iVar5)) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\nLAB_000247af:\n  local_20 = (int)puVar3 + local_24 & local_20;\n  if (local_2c < local_20 - iVar5) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }\n  else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }\n  *(uint *)(param_1 + 8) = uVar4;\n  *(uint *)(param_1 + 0x18) = uVar1;\n  *puVar2 = 0;\n  puVar2[0x19] = 0;\n  puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }\n  DAT_00088a08 = DAT_00088a08 + 1;\n  return puVar2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (declaration "uint local_2c;" (type_identifier "uint") (identifier "local_2c") (; ";")) (declaration "uint local_24;" (type_identifier "uint") (identifier "local_24") (; ";")) (declaration "uint local_20;" (type_identifier "uint") (identifier "local_20") (; ";")) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" (identifier "bVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x10)" (identifier "uVar4") (= "=") (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 (*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)) {\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8))" (( "(") (binary_expression "*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)" (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")) () ")")))) (== "==") (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")) () ")"))))) () ")")) (compound_statement "{\n    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;\n  }" ({ "{") (expression_statement "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;" (assignment_expression "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2" (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) | 2" (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 "2"))) (; ";")) (} "}"))) (expression_statement "uVar1 = *(uint *)(param_1 + 0x18);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x18)" (identifier "uVar1") (= "=") (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 "iVar5 = *(int *)(param_1 + 4);" (assignment_expression "iVar5 = *(int *)(param_1 + 4)" (identifier "iVar5") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1);" (assignment_expression "puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) + uVar1 & ~uVar1" (binary_expression "*(int *)(param_1 + 0xc) + uVar1" (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 "uVar1")) (& "&") (unary_expression "~uVar1" (~ "~") (identifier "uVar1"))) () ")")))) (; ";")) (expression_statement "local_2c = uVar4 - iVar5;" (assignment_expression "local_2c = uVar4 - iVar5" (identifier "local_2c") (= "=") (binary_expression "uVar4 - iVar5" (identifier "uVar4") (- "-") (identifier "iVar5"))) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0xc) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0xc) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (local_2c < (uint)((int)puVar2 - iVar5)) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }\n  else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }" (if "if") (parenthesized_expression "(local_2c < (uint)((int)puVar2 - iVar5))" (( "(") (binary_expression "local_2c < (uint)((int)puVar2 - iVar5)" (identifier "local_2c") (< "<") (call_expression "(uint)((int)puVar2 - iVar5)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)puVar2 - iVar5)" (( "(") (binary_expression "(int)puVar2 - iVar5" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (- "-") (identifier "iVar5")) () ")")))) () ")")) (compound_statement "{\n    *(uint *)(param_1 + 0xc) = uVar4;\n    *(uint *)(param_1 + 8) = uVar4;\n    *(undefined4 *)(param_1 + 0x18) = 0;\nLAB_00024738:\n    _obstack_newchunk(param_1,0x68);\n    local_24 = *(uint *)(param_1 + 0x18);\n    uVar4 = *(uint *)(param_1 + 0x10);\n    iVar5 = *(int *)(param_1 + 4);\n    local_20 = ~local_24;\n    puVar2 = *(undefined4 **)(param_1 + 8);\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);\n    local_2c = uVar4 - iVar5;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }" ({ "{") (expression_statement "*(uint *)(param_1 + 0xc) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar4" (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 "uVar4")) (; ";")) (expression_statement "*(uint *)(param_1 + 8) = uVar4;" (assignment_expression "*(uint *)(param_1 + 8) = uVar4" (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 "uVar4")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00024738:\n    _obstack_newchunk(param_1,0x68);" (statement_identifier "LAB_00024738") (: ":") (expression_statement "_obstack_newchunk(param_1,0x68);" (call_expression "_obstack_newchunk(param_1,0x68)" (identifier "_obstack_newchunk") (argument_list "(param_1,0x68)" (( "(") (identifier "param_1") (, ",") (number_literal "0x68") () ")"))) (; ";"))) (expression_statement "local_24 = *(uint *)(param_1 + 0x18);" (assignment_expression "local_24 = *(uint *)(param_1 + 0x18)" (identifier "local_24") (= "=") (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 "uVar4 = *(uint *)(param_1 + 0x10);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x10)" (identifier "uVar4") (= "=") (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 "iVar5 = *(int *)(param_1 + 4);" (assignment_expression "iVar5 = *(int *)(param_1 + 4)" (identifier "iVar5") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "local_20 = ~local_24;" (assignment_expression "local_20 = ~local_24" (identifier "local_20") (= "=") (unary_expression "~local_24" (~ "~") (identifier "local_24"))) (; ";")) (expression_statement "puVar2 = *(undefined4 **)(param_1 + 8);" (assignment_expression "puVar2 = *(undefined4 **)(param_1 + 8)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 8)" (* "*") (cast_expression "(undefined4 **)(param_1 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0xc) + 0x68)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0xc) + 0x68)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) + 0x68" (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")) () ")")))) (+ "+") (number_literal "0x68")) () ")")))) (; ";")) (expression_statement "local_2c = uVar4 - iVar5;" (assignment_expression "local_2c = uVar4 - iVar5" (identifier "local_2c") (= "=") (binary_expression "uVar4 - iVar5" (identifier "uVar4") (- "-") (identifier "iVar5"))) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0xc) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0xc) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "puVar3")) (; ";")) (if_statement "if (puVar3 != puVar2) goto LAB_000247af;" (if "if") (parenthesized_expression "(puVar3 != puVar2)" (( "(") (binary_expression "puVar3 != puVar2" (identifier "puVar3") (!= "!=") (identifier "puVar2")) () ")")) (goto_statement "goto LAB_000247af;" (goto "goto") (statement_identifier "LAB_000247af") (; ";"))) (} "}")) (else_clause "else {\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }" (else "else") (compound_statement "{\n    *(undefined4 **)(param_1 + 8) = puVar2;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;\n    puVar3 = puVar2 + 0x1a;\n    local_20 = 0xffffffff;\n    local_24 = 0;\n    *(undefined4 **)(param_1 + 0xc) = puVar3;\n    if (puVar3 != puVar2) goto LAB_000247af;\n  }" ({ "{") (expression_statement "*(undefined4 **)(param_1 + 8) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 8) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 8)" (* "*") (cast_expression "(undefined4 **)(param_1 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;" (if "if") (parenthesized_expression "(uVar4 - (int)puVar2 < 0x68)" (( "(") (binary_expression "uVar4 - (int)puVar2 < 0x68" (binary_expression "uVar4 - (int)puVar2" (identifier "uVar4") (- "-") (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2"))) (< "<") (number_literal "0x68")) () ")")) (goto_statement "goto LAB_00024738;" (goto "goto") (statement_identifier "LAB_00024738") (; ";"))) (expression_statement "puVar3 = puVar2 + 0x1a;" (assignment_expression "puVar3 = puVar2 + 0x1a" (identifier "puVar3") (= "=") (binary_expression "puVar2 + 0x1a" (identifier "puVar2") (+ "+") (number_literal "0x1a"))) (; ";")) (expression_statement "local_20 = 0xffffffff;" (assignment_expression "local_20 = 0xffffffff" (identifier "local_20") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0xc) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0xc) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "puVar3")) (; ";")) (if_statement "if (puVar3 != puVar2) goto LAB_000247af;" (if "if") (parenthesized_expression "(puVar3 != puVar2)" (( "(") (binary_expression "puVar3 != puVar2" (identifier "puVar3") (!= "!=") (identifier "puVar2")) () ")")) (goto_statement "goto LAB_000247af;" (goto "goto") (statement_identifier "LAB_000247af") (; ";"))) (} "}")))) (expression_statement "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;" (assignment_expression "*(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2" (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) | 2" (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 "2"))) (; ";")) (labeled_statement "LAB_000247af:\n  local_20 = (int)puVar3 + local_24 & local_20;" (statement_identifier "LAB_000247af") (: ":") (expression_statement "local_20 = (int)puVar3 + local_24 & local_20;" (assignment_expression "local_20 = (int)puVar3 + local_24 & local_20" (identifier "local_20") (= "=") (binary_expression "(int)puVar3 + local_24 & local_20" (binary_expression "(int)puVar3 + local_24" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (identifier "local_24")) (& "&") (identifier "local_20"))) (; ";"))) (if_statement "if (local_2c < local_20 - iVar5) {\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }\n  else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }" (if "if") (parenthesized_expression "(local_2c < local_20 - iVar5)" (( "(") (binary_expression "local_2c < local_20 - iVar5" (identifier "local_2c") (< "<") (binary_expression "local_20 - iVar5" (identifier "local_20") (- "-") (identifier "iVar5"))) () ")")) (compound_statement "{\n    *(uint *)(param_1 + 0xc) = uVar4;\n  }" ({ "{") (expression_statement "*(uint *)(param_1 + 0xc) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar4" (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 "uVar4")) (; ";")) (} "}")) (else_clause "else {\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }" (else "else") (compound_statement "{\n    *(uint *)(param_1 + 0xc) = local_20;\n    uVar4 = local_20;\n  }" ({ "{") (expression_statement "*(uint *)(param_1 + 0xc) = local_20;" (assignment_expression "*(uint *)(param_1 + 0xc) = local_20" (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 "local_20")) (; ";")) (expression_statement "uVar4 = local_20;" (assignment_expression "uVar4 = local_20" (identifier "uVar4") (= "=") (identifier "local_20")) (; ";")) (} "}")))) (expression_statement "*(uint *)(param_1 + 8) = uVar4;" (assignment_expression "*(uint *)(param_1 + 8) = uVar4" (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 "uVar4")) (; ";")) (expression_statement "*(uint *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x18) = uVar1" (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")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0x19] = 0;" (assignment_expression "puVar2[0x19] = 0" (subscript_expression "puVar2[0x19]" (identifier "puVar2") ([ "[") (number_literal "0x19") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);" (assignment_expression "puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar2 + 1)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" (identifier "uVar4") (= "=") (binary_expression "(uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" (( "(") (binary_expression "(int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (parenthesized_expression "(0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" (( "(") (binary_expression "0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc)" (number_literal "0x68") (- "-") (cast_expression "(int)((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar2 + 1)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar4 = uVar4 - 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = puVar3 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar6 * -2 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + (uint)bVar6 * -2 + 1" (binary_expression "puVar3 + (uint)bVar6 * -2" (identifier "puVar3") (+ "+") (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "DAT_00088a08 = DAT_00088a08 + 1;" (assignment_expression "DAT_00088a08 = DAT_00088a08 + 1" (identifier "DAT_00088a08") (= "=") (binary_expression "DAT_00088a08 + 1" (identifier "DAT_00088a08") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 * function_1(type_2 *ob)

{
  type_1 *var_5;
  type_1 *var_4;
  char *pcVar3;
  char *pcVar4;
  type_3 var_1;
  type_4 *p_Var6;
  type_5 *var_8;
  type_6 bVar8;
  type_3 var_2;
  type_3 var_6;
  type_3 var_7;
  
  bVar8 = 0;
  pcVar4 = ob->chunk_limit;
  if (ob->next_free == ob->object_base) {
    ob->field_0x28 = ob->field_0x28 | 2;
  }
  var_1 = ob->alignment_mask;
  p_Var6 = ob->chunk;
  var_5 = (type_1 *)((type_3)(ob->next_free + var_1) & ~var_1);
  var_2 = (int)pcVar4 - (int)p_Var6;
  ob->next_free = (char *)var_5;
  if (var_2 < (type_3)((int)var_5 - (int)p_Var6)) {
    ob->next_free = pcVar4;
    ob->object_base = pcVar4;
    ob->alignment_mask = 0;
LAB_00024738:
    var_3(ob,0x68);
    var_6 = ob->alignment_mask;
    pcVar4 = ob->chunk_limit;
    p_Var6 = ob->chunk;
    var_7 = ~var_6;
    var_5 = (type_1 *)ob->object_base;
    var_4 = (type_1 *)(ob->next_free + 0x68);
    var_2 = (int)pcVar4 - (int)p_Var6;
    ob->next_free = (char *)var_4;
    if (var_4 != var_5) goto LAB_000247af;
  }
  else {
    ob->object_base = (char *)var_5;
    ob->alignment_mask = 0;
    if ((type_3)((int)pcVar4 - (int)var_5) < 0x68) goto LAB_00024738;
    var_4 = (type_1 *)var_5->fr_literal;
    var_7 = 0xffffffff;
    var_6 = 0;
    ob->next_free = (char *)var_4;
    if (var_4 != var_5) goto LAB_000247af;
  }
  ob->field_0x28 = ob->field_0x28 | 2;
LAB_000247af:
  pcVar3 = (char *)((type_3)(var_4->fr_literal + (var_6 - 0x68)) & var_7);
  if (var_2 < (type_3)((int)pcVar3 - (int)p_Var6)) {
    ob->next_free = pcVar4;
  }
  else {
    ob->next_free = pcVar3;
    pcVar4 = pcVar3;
  }
  ob->object_base = pcVar4;
  var_8 = (type_5 *)((type_3)((int)&var_5->fr_address + 4U) & 0xfffffffc);
  ob->alignment_mask = var_1;
  *(type_5 *)&var_5->fr_address = 0;
  (var_5->tc_frag_data).max_bytes = 0;
  var_1 = (type_3)((int)var_5 + (0x68 - (int)var_8)) >> 2;
  for (; var_1 != 0; var_1 = var_1 - 1) {
    *var_8 = 0;
    var_8 = var_8 + (type_3)bVar8 * -2 + 1;
  }
  var_9 = var_9 + 1;
  return var_5;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (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: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (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)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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: (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)))))) (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: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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)) right: (unary_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_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 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: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))))) 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: (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: (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))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (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: (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: (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: (unary_expression argument: (identifier)))) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_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 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: (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))))) 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: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_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 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: (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)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) 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)))) alternative: (else_clause (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: (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: (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: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))))) (for_statement initializer: (assignment_expression left: (identifier) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))))))))) right: (number_literal))) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 * MASKED(int param_1)

{
  uint uVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  uint uVar4;
  int iVar5;
  byte bVar6;
  uint local_2c;
  uint local_24;
  uint local_20;
  
  bVar6 = 0;
  uVar4 = *(uint *)(param_1 + 0x10);
  if (*(int *)(param_1 + 0xc) == *(int *)(param_1 + 8)) {
    *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;
  }
  uVar1 = *(uint *)(param_1 + 0x18);
  iVar5 = *(int *)(param_1 + 4);
  puVar2 = (undefined4 *)(*(int *)(param_1 + 0xc) + uVar1 & ~uVar1);
  local_2c = uVar4 - iVar5;
  *(undefined4 **)(param_1 + 0xc) = puVar2;
  if (local_2c < (uint)((int)puVar2 - iVar5)) {
    *(uint *)(param_1 + 0xc) = uVar4;
    *(uint *)(param_1 + 8) = uVar4;
    *(undefined4 *)(param_1 + 0x18) = 0;
LAB_00024738:
    _obstack_newchunk(param_1,0x68);
    local_24 = *(uint *)(param_1 + 0x18);
    uVar4 = *(uint *)(param_1 + 0x10);
    iVar5 = *(int *)(param_1 + 4);
    local_20 = ~local_24;
    puVar2 = *(undefined4 **)(param_1 + 8);
    puVar3 = (undefined4 *)(*(int *)(param_1 + 0xc) + 0x68);
    local_2c = uVar4 - iVar5;
    *(undefined4 **)(param_1 + 0xc) = puVar3;
    if (puVar3 != puVar2) goto LAB_000247af;
  }
  else {
    *(undefined4 **)(param_1 + 8) = puVar2;
    *(undefined4 *)(param_1 + 0x18) = 0;
    if (uVar4 - (int)puVar2 < 0x68) goto LAB_00024738;
    puVar3 = puVar2 + 0x1a;
    local_20 = 0xffffffff;
    local_24 = 0;
    *(undefined4 **)(param_1 + 0xc) = puVar3;
    if (puVar3 != puVar2) goto LAB_000247af;
  }
  *(byte *)(param_1 + 0x28) = *(byte *)(param_1 + 0x28) | 2;
LAB_000247af:
  local_20 = (int)puVar3 + local_24 & local_20;
  if (local_2c < local_20 - iVar5) {
    *(uint *)(param_1 + 0xc) = uVar4;
  }
  else {
    *(uint *)(param_1 + 0xc) = local_20;
    uVar4 = local_20;
  }
  *(uint *)(param_1 + 8) = uVar4;
  *(uint *)(param_1 + 0x18) = uVar1;
  *puVar2 = 0;
  puVar2[0x19] = 0;
  puVar3 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);
  for (uVar4 = (uint)((int)puVar2 + (0x68 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;
      uVar4 != 0; uVar4 = uVar4 - 1) {
    *puVar3 = 0;
    puVar3 = puVar3 + (uint)bVar6 * -2 + 1;
  }
  DAT_00088a08 = DAT_00088a08 + 1;
  return puVar2;
}

