
void add_cref(char *name,bfd *abfd,asection *section,bfd_vma value)

{
  bfd *pbVar1;
  int iVar2;
  long lVar3;
  long *plVar4;
  char *pcVar5;
  
  if (cref_initialized == 0) {
    iVar2 = bfd_hash_table_init(&cref_table,cref_hash_newfunc,0x28);
    if (iVar2 == 0) {
      pcVar5 = (char *)dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);
      einfo(pcVar5);
    }
    cref_initialized = 1;
  }
  lVar3 = bfd_hash_lookup(&cref_table,name,1,0);
  if (lVar3 == 0) {
    pcVar5 = (char *)dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);
    einfo(pcVar5);
  }
  plVar4 = *(long **)(lVar3 + 0x20);
  if (plVar4 == (long *)0x0) {
LAB_0012ab86:
    plVar4 = (long *)bfd_hash_allocate(&cref_table,0x18);
    if (plVar4 == (long *)0x0) {
      pcVar5 = (char *)dcgettext(0,"%X%P: cref alloc failed: %E\n",5);
      einfo(pcVar5);
    }
    *plVar4 = *(long *)(lVar3 + 0x20);
    *(long **)(lVar3 + 0x20) = plVar4;
    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;
    plVar4[1] = (long)abfd;
  }
  else {
    pbVar1 = (bfd *)plVar4[1];
    while (abfd != pbVar1) {
      plVar4 = (long *)*plVar4;
      if (plVar4 == (long *)0x0) goto LAB_0012ab86;
      pbVar1 = (bfd *)plVar4[1];
    }
  }
  if (section == (asection *)(_bfd_std_section + 0x118)) {
    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;
    return;
  }
  if ((section->flags & 0x1000) == 0) {
    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;
    return;
  }
  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;
  return;
}



void FUN_0012ab20(undefined8 param_1,long param_2,long param_3)

{
  long lVar1;
  int iVar2;
  long lVar3;
  long *plVar4;
  undefined8 uVar5;
  
  if (DAT_002b4fc8 == 0) {
    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);
    if (iVar2 == 0) {
      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);
      FUN_00129380(uVar5);
    }
    DAT_002b4fc8 = 1;
  }
  lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0);
  if (lVar3 == 0) {
    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);
    FUN_00129380(uVar5);
  }
  plVar4 = *(long **)(lVar3 + 0x20);
  if (plVar4 == (long *)0x0) {
LAB_0012ab86:
    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);
    if (plVar4 == (long *)0x0) {
      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);
      FUN_00129380(uVar5);
    }
    *plVar4 = *(long *)(lVar3 + 0x20);
    *(long **)(lVar3 + 0x20) = plVar4;
    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;
    plVar4[1] = param_2;
  }
  else {
    lVar1 = plVar4[1];
    while (param_2 != lVar1) {
      plVar4 = (long *)*plVar4;
      if (plVar4 == (long *)0x0) goto LAB_0012ab86;
      lVar1 = plVar4[1];
    }
  }
  if (param_3 == 0x2b4598) {
    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;
    return;
  }
  if ((*(byte *)(param_3 + 0x21) & 0x10) == 0) {
    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;
    return;
  }
  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;
  return;
}


PUSH R13
MOV R13,RDX
PUSH R12
PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
MOV EAX,dword ptr [0x002b4fc8]
TEST EAX,EAX
JZ 0x0012abf0
XOR ECX,ECX
MOV EDX,0x1
MOV RSI,RBX
LEA RDI,[0x2b4fe0]
CALL 0x0010d750
MOV R12,RAX
TEST RAX,RAX
JZ 0x0012ac30
MOV RBX,qword ptr [R12 + 0x20]
TEST RBX,RBX
JZ 0x0012ab86
CMP RBP,qword ptr [RBX + 0x8]
JNZ 0x0012ab7e
JMP 0x0012abb8
CMP qword ptr [RBX + 0x8],RBP
JZ 0x0012abb8
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JNZ 0x0012ab78
MOV ESI,0x18
LEA RDI,[0x2b4fe0]
CALL 0x0010d680
MOV RBX,RAX
TEST RAX,RAX
JZ 0x0012ac77
MOV RAX,qword ptr [R12 + 0x20]
MOV qword ptr [RBX],RAX
MOV qword ptr [R12 + 0x20],RBX
AND byte ptr [RBX + 0x10],0xf8
MOV qword ptr [RBX + 0x8],RBP
LEA RAX,[0x2b4598]
CMP R13,RAX
JZ 0x0012ac20
TEST byte ptr [R13 + 0x21],0x10
JNZ 0x0012abe0
OR byte ptr [RBX + 0x10],0x1
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
OR byte ptr [RBX + 0x10],0x2
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
MOV EDX,0x28
LEA RSI,[0x12a490]
LEA RDI,[0x2b4fe0]
CALL 0x0010dc10
TEST EAX,EAX
JZ 0x0012ac58
MOV dword ptr [0x002b4fc8],0x1
JMP 0x0012ab41
OR byte ptr [RBX + 0x10],0x4
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
XOR EDI,EDI
MOV EDX,0x5
LEA RSI,[0x16f0a8]
CALL 0x0010d300
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00129380
JMP 0x0012ab63
XOR EDI,EDI
MOV EDX,0x5
LEA RSI,[0x16f070]
CALL 0x0010d300
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00129380
JMP 0x0012ac0c
XOR EDI,EDI
MOV EDX,0x5
LEA RSI,[0x16efaf]
CALL 0x0010d300
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00129380
JMP 0x0012aba3
(translation_unit "void FUN_0012ab20(undefined8 param_1,long param_2,long param_3)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long *plVar4;\n  undefined8 uVar5;\n  \n  if (DAT_002b4fc8 == 0) {\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }\n  lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0);\n  if (lVar3 == 0) {\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }\n  plVar4 = *(long **)(lVar3 + 0x20);\n  if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }\n  else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }\n  if (param_3 == 0x2b4598) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x21) & 0x10) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }\n  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;\n  return;\n}\n\n" (function_definition "void FUN_0012ab20(undefined8 param_1,long param_2,long param_3)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long *plVar4;\n  undefined8 uVar5;\n  \n  if (DAT_002b4fc8 == 0) {\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }\n  lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0);\n  if (lVar3 == 0) {\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }\n  plVar4 = *(long **)(lVar3 + 0x20);\n  if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }\n  else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }\n  if (param_3 == 0x2b4598) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x21) & 0x10) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }\n  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;\n  return;\n}" primitive_type (function_declarator "FUN_0012ab20(undefined8 param_1,long param_2,long param_3)" identifier (parameter_list "(undefined8 param_1,long param_2,long param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long *plVar4;\n  undefined8 uVar5;\n  \n  if (DAT_002b4fc8 == 0) {\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }\n  lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0);\n  if (lVar3 == 0) {\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }\n  plVar4 = *(long **)(lVar3 + 0x20);\n  if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }\n  else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }\n  if (param_3 == 0x2b4598) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x21) & 0x10) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }\n  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (if_statement "if (DAT_002b4fc8 == 0) {\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }" if (parenthesized_expression "(DAT_002b4fc8 == 0)" ( (binary_expression "DAT_002b4fc8 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }" { (expression_statement "iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);" (assignment_expression "iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28)" identifier = (call_expression "bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28)" identifier (argument_list "(&DAT_002b4fe0,FUN_0012a490,0x28)" ( (pointer_expression "&DAT_002b4fe0" & identifier) , identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }" { (expression_statement "uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);" (assignment_expression "uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5)" identifier (argument_list "(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5)" ( number_literal , (string_literal ""%X%P: bfd_hash_table_init of cref table failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00129380(uVar5);" (call_expression "FUN_00129380(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) })) (expression_statement "DAT_002b4fc8 = 1;" (assignment_expression "DAT_002b4fc8 = 1" identifier = number_literal) ;) })) (expression_statement "lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0);" (assignment_expression "lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0)" identifier = (call_expression "bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0)" identifier (argument_list "(&DAT_002b4fe0,param_1,1,0)" ( (pointer_expression "&DAT_002b4fe0" & identifier) , identifier , number_literal , number_literal )))) ;) (if_statement "if (lVar3 == 0) {\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }" { (expression_statement "uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);" (assignment_expression "uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5)" identifier (argument_list "(0,"%X%P: cref_hash_lookup failed: %E\n",5)" ( number_literal , (string_literal ""%X%P: cref_hash_lookup failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00129380(uVar5);" (call_expression "FUN_00129380(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) })) (expression_statement "plVar4 = *(long **)(lVar3 + 0x20);" (assignment_expression "plVar4 = *(long **)(lVar3 + 0x20)" identifier = (pointer_expression "*(long **)(lVar3 + 0x20)" * (cast_expression "(long **)(lVar3 + 0x20)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }\n  else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }" { (labeled_statement "LAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);" statement_identifier : (expression_statement "plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);" (assignment_expression "plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18)" identifier = (cast_expression "(long *)bfd_hash_allocate(&DAT_002b4fe0,0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_hash_allocate(&DAT_002b4fe0,0x18)" identifier (argument_list "(&DAT_002b4fe0,0x18)" ( (pointer_expression "&DAT_002b4fe0" & identifier) , number_literal ))))) ;)) (if_statement "if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }" { (expression_statement "uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);" (assignment_expression "uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%X%P: cref alloc failed: %E\n",5)" identifier (argument_list "(0,"%X%P: cref alloc failed: %E\n",5)" ( number_literal , (string_literal ""%X%P: cref alloc failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00129380(uVar5);" (call_expression "FUN_00129380(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) })) (expression_statement "*plVar4 = *(long *)(lVar3 + 0x20);" (assignment_expression "*plVar4 = *(long *)(lVar3 + 0x20)" (pointer_expression "*plVar4" * identifier) = (pointer_expression "*(long *)(lVar3 + 0x20)" * (cast_expression "(long *)(lVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*(long **)(lVar3 + 0x20) = plVar4;" (assignment_expression "*(long **)(lVar3 + 0x20) = plVar4" (pointer_expression "*(long **)(lVar3 + 0x20)" * (cast_expression "(long **)(lVar3 + 0x20)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(plVar4 + 2) & 0xf8" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "plVar4[1] = param_2;" (assignment_expression "plVar4[1] = param_2" (subscript_expression "plVar4[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }" else (compound_statement "{\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }" { (expression_statement "lVar1 = plVar4[1];" (assignment_expression "lVar1 = plVar4[1]" identifier = (subscript_expression "plVar4[1]" identifier [ number_literal ])) ;) (while_statement "while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }" while (parenthesized_expression "(param_2 != lVar1)" ( (binary_expression "param_2 != lVar1" identifier != identifier) )) (compound_statement "{\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }" { (expression_statement "plVar4 = (long *)*plVar4;" (assignment_expression "plVar4 = (long *)*plVar4" identifier = (cast_expression "(long *)*plVar4" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar4" * identifier))) ;) (if_statement "if (plVar4 == (long *)0x0) goto LAB_0012ab86;" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0012ab86;" goto statement_identifier ;)) (expression_statement "lVar1 = plVar4[1];" (assignment_expression "lVar1 = plVar4[1]" identifier = (subscript_expression "plVar4[1]" identifier [ number_literal ])) ;) })) }))) (if_statement "if (param_3 == 0x2b4598) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }" if (parenthesized_expression "(param_3 == 0x2b4598)" ( (binary_expression "param_3 == 0x2b4598" identifier == number_literal) )) (compound_statement "{\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }" { (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(plVar4 + 2) | 4" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if ((*(byte *)(param_3 + 0x21) & 0x10) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }" if (parenthesized_expression "((*(byte *)(param_3 + 0x21) & 0x10) == 0)" ( (binary_expression "(*(byte *)(param_3 + 0x21) & 0x10) == 0" (parenthesized_expression "(*(byte *)(param_3 + 0x21) & 0x10)" ( (binary_expression "*(byte *)(param_3 + 0x21) & 0x10" (pointer_expression "*(byte *)(param_3 + 0x21)" * (cast_expression "(byte *)(param_3 + 0x21)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x21)" ( (binary_expression "param_3 + 0x21" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }" { (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(plVar4 + 2) | 1" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(plVar4 + 2) | 2" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void add_cref(char *name,bfd *abfd,asection *section,bfd_vma value)\n\n{\n  bfd *pbVar1;\n  int iVar2;\n  long lVar3;\n  long *plVar4;\n  char *pcVar5;\n  \n  if (cref_initialized == 0) {\n    iVar2 = bfd_hash_table_init(&cref_table,cref_hash_newfunc,0x28);\n    if (iVar2 == 0) {\n      pcVar5 = (char *)dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      einfo(pcVar5);\n    }\n    cref_initialized = 1;\n  }\n  lVar3 = bfd_hash_lookup(&cref_table,name,1,0);\n  if (lVar3 == 0) {\n    pcVar5 = (char *)dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    einfo(pcVar5);\n  }\n  plVar4 = *(long **)(lVar3 + 0x20);\n  if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&cref_table,0x18);\n    if (plVar4 == (long *)0x0) {\n      pcVar5 = (char *)dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      einfo(pcVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = (long)abfd;\n  }\n  else {\n    pbVar1 = (bfd *)plVar4[1];\n    while (abfd != pbVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      pbVar1 = (bfd *)plVar4[1];\n    }\n  }\n  if (section == (asection *)(_bfd_std_section + 0x118)) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }\n  if ((section->flags & 0x1000) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }\n  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;\n  return;\n}\n\n" (function_definition "void add_cref(char *name,bfd *abfd,asection *section,bfd_vma value)\n\n{\n  bfd *pbVar1;\n  int iVar2;\n  long lVar3;\n  long *plVar4;\n  char *pcVar5;\n  \n  if (cref_initialized == 0) {\n    iVar2 = bfd_hash_table_init(&cref_table,cref_hash_newfunc,0x28);\n    if (iVar2 == 0) {\n      pcVar5 = (char *)dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      einfo(pcVar5);\n    }\n    cref_initialized = 1;\n  }\n  lVar3 = bfd_hash_lookup(&cref_table,name,1,0);\n  if (lVar3 == 0) {\n    pcVar5 = (char *)dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    einfo(pcVar5);\n  }\n  plVar4 = *(long **)(lVar3 + 0x20);\n  if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&cref_table,0x18);\n    if (plVar4 == (long *)0x0) {\n      pcVar5 = (char *)dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      einfo(pcVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = (long)abfd;\n  }\n  else {\n    pbVar1 = (bfd *)plVar4[1];\n    while (abfd != pbVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      pbVar1 = (bfd *)plVar4[1];\n    }\n  }\n  if (section == (asection *)(_bfd_std_section + 0x118)) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }\n  if ((section->flags & 0x1000) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }\n  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;\n  return;\n}" primitive_type (function_declarator "add_cref(char *name,bfd *abfd,asection *section,bfd_vma value)" identifier (parameter_list "(char *name,bfd *abfd,asection *section,bfd_vma value)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "asection *section" type_identifier (pointer_declarator "*section" * identifier)) , (parameter_declaration "bfd_vma value" type_identifier identifier) ))) (compound_statement "{\n  bfd *pbVar1;\n  int iVar2;\n  long lVar3;\n  long *plVar4;\n  char *pcVar5;\n  \n  if (cref_initialized == 0) {\n    iVar2 = bfd_hash_table_init(&cref_table,cref_hash_newfunc,0x28);\n    if (iVar2 == 0) {\n      pcVar5 = (char *)dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      einfo(pcVar5);\n    }\n    cref_initialized = 1;\n  }\n  lVar3 = bfd_hash_lookup(&cref_table,name,1,0);\n  if (lVar3 == 0) {\n    pcVar5 = (char *)dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    einfo(pcVar5);\n  }\n  plVar4 = *(long **)(lVar3 + 0x20);\n  if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&cref_table,0x18);\n    if (plVar4 == (long *)0x0) {\n      pcVar5 = (char *)dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      einfo(pcVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = (long)abfd;\n  }\n  else {\n    pbVar1 = (bfd *)plVar4[1];\n    while (abfd != pbVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      pbVar1 = (bfd *)plVar4[1];\n    }\n  }\n  if (section == (asection *)(_bfd_std_section + 0x118)) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }\n  if ((section->flags & 0x1000) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }\n  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;\n  return;\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (if_statement "if (cref_initialized == 0) {\n    iVar2 = bfd_hash_table_init(&cref_table,cref_hash_newfunc,0x28);\n    if (iVar2 == 0) {\n      pcVar5 = (char *)dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      einfo(pcVar5);\n    }\n    cref_initialized = 1;\n  }" if (parenthesized_expression "(cref_initialized == 0)" ( (binary_expression "cref_initialized == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = bfd_hash_table_init(&cref_table,cref_hash_newfunc,0x28);\n    if (iVar2 == 0) {\n      pcVar5 = (char *)dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      einfo(pcVar5);\n    }\n    cref_initialized = 1;\n  }" { (expression_statement "iVar2 = bfd_hash_table_init(&cref_table,cref_hash_newfunc,0x28);" (assignment_expression "iVar2 = bfd_hash_table_init(&cref_table,cref_hash_newfunc,0x28)" identifier = (call_expression "bfd_hash_table_init(&cref_table,cref_hash_newfunc,0x28)" identifier (argument_list "(&cref_table,cref_hash_newfunc,0x28)" ( (pointer_expression "&cref_table" & identifier) , identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      pcVar5 = (char *)dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      einfo(pcVar5);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar5 = (char *)dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      einfo(pcVar5);\n    }" { (expression_statement "pcVar5 = (char *)dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);" (assignment_expression "pcVar5 = (char *)dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5)" identifier (argument_list "(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5)" ( number_literal , (string_literal ""%X%P: bfd_hash_table_init of cref table failed: %E\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar5);" (call_expression "einfo(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) })) (expression_statement "cref_initialized = 1;" (assignment_expression "cref_initialized = 1" identifier = number_literal) ;) })) (expression_statement "lVar3 = bfd_hash_lookup(&cref_table,name,1,0);" (assignment_expression "lVar3 = bfd_hash_lookup(&cref_table,name,1,0)" identifier = (call_expression "bfd_hash_lookup(&cref_table,name,1,0)" identifier (argument_list "(&cref_table,name,1,0)" ( (pointer_expression "&cref_table" & identifier) , identifier , number_literal , number_literal )))) ;) (if_statement "if (lVar3 == 0) {\n    pcVar5 = (char *)dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    einfo(pcVar5);\n  }" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar5 = (char *)dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    einfo(pcVar5);\n  }" { (expression_statement "pcVar5 = (char *)dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);" (assignment_expression "pcVar5 = (char *)dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5)" identifier (argument_list "(0,"%X%P: cref_hash_lookup failed: %E\n",5)" ( number_literal , (string_literal ""%X%P: cref_hash_lookup failed: %E\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar5);" (call_expression "einfo(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) })) (expression_statement "plVar4 = *(long **)(lVar3 + 0x20);" (assignment_expression "plVar4 = *(long **)(lVar3 + 0x20)" identifier = (pointer_expression "*(long **)(lVar3 + 0x20)" * (cast_expression "(long **)(lVar3 + 0x20)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&cref_table,0x18);\n    if (plVar4 == (long *)0x0) {\n      pcVar5 = (char *)dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      einfo(pcVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = (long)abfd;\n  }\n  else {\n    pbVar1 = (bfd *)plVar4[1];\n    while (abfd != pbVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      pbVar1 = (bfd *)plVar4[1];\n    }\n  }" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&cref_table,0x18);\n    if (plVar4 == (long *)0x0) {\n      pcVar5 = (char *)dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      einfo(pcVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = (long)abfd;\n  }" { (labeled_statement "LAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&cref_table,0x18);" statement_identifier : (expression_statement "plVar4 = (long *)bfd_hash_allocate(&cref_table,0x18);" (assignment_expression "plVar4 = (long *)bfd_hash_allocate(&cref_table,0x18)" identifier = (cast_expression "(long *)bfd_hash_allocate(&cref_table,0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_hash_allocate(&cref_table,0x18)" identifier (argument_list "(&cref_table,0x18)" ( (pointer_expression "&cref_table" & identifier) , number_literal ))))) ;)) (if_statement "if (plVar4 == (long *)0x0) {\n      pcVar5 = (char *)dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      einfo(pcVar5);\n    }" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar5 = (char *)dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      einfo(pcVar5);\n    }" { (expression_statement "pcVar5 = (char *)dcgettext(0,"%X%P: cref alloc failed: %E\n",5);" (assignment_expression "pcVar5 = (char *)dcgettext(0,"%X%P: cref alloc failed: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%X%P: cref alloc failed: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%X%P: cref alloc failed: %E\n",5)" identifier (argument_list "(0,"%X%P: cref alloc failed: %E\n",5)" ( number_literal , (string_literal ""%X%P: cref alloc failed: %E\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar5);" (call_expression "einfo(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) })) (expression_statement "*plVar4 = *(long *)(lVar3 + 0x20);" (assignment_expression "*plVar4 = *(long *)(lVar3 + 0x20)" (pointer_expression "*plVar4" * identifier) = (pointer_expression "*(long *)(lVar3 + 0x20)" * (cast_expression "(long *)(lVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*(long **)(lVar3 + 0x20) = plVar4;" (assignment_expression "*(long **)(lVar3 + 0x20) = plVar4" (pointer_expression "*(long **)(lVar3 + 0x20)" * (cast_expression "(long **)(lVar3 + 0x20)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(plVar4 + 2) & 0xf8" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "plVar4[1] = (long)abfd;" (assignment_expression "plVar4[1] = (long)abfd" (subscript_expression "plVar4[1]" identifier [ number_literal ]) = (cast_expression "(long)abfd" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) }) (else_clause "else {\n    pbVar1 = (bfd *)plVar4[1];\n    while (abfd != pbVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      pbVar1 = (bfd *)plVar4[1];\n    }\n  }" else (compound_statement "{\n    pbVar1 = (bfd *)plVar4[1];\n    while (abfd != pbVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      pbVar1 = (bfd *)plVar4[1];\n    }\n  }" { (expression_statement "pbVar1 = (bfd *)plVar4[1];" (assignment_expression "pbVar1 = (bfd *)plVar4[1]" identifier = (cast_expression "(bfd *)plVar4[1]" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar4[1]" identifier [ number_literal ]))) ;) (while_statement "while (abfd != pbVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      pbVar1 = (bfd *)plVar4[1];\n    }" while (parenthesized_expression "(abfd != pbVar1)" ( (binary_expression "abfd != pbVar1" identifier != identifier) )) (compound_statement "{\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      pbVar1 = (bfd *)plVar4[1];\n    }" { (expression_statement "plVar4 = (long *)*plVar4;" (assignment_expression "plVar4 = (long *)*plVar4" identifier = (cast_expression "(long *)*plVar4" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar4" * identifier))) ;) (if_statement "if (plVar4 == (long *)0x0) goto LAB_0012ab86;" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0012ab86;" goto statement_identifier ;)) (expression_statement "pbVar1 = (bfd *)plVar4[1];" (assignment_expression "pbVar1 = (bfd *)plVar4[1]" identifier = (cast_expression "(bfd *)plVar4[1]" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar4[1]" identifier [ number_literal ]))) ;) })) }))) (if_statement "if (section == (asection *)(_bfd_std_section + 0x118)) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }" if (parenthesized_expression "(section == (asection *)(_bfd_std_section + 0x118))" ( (binary_expression "section == (asection *)(_bfd_std_section + 0x118)" identifier == (cast_expression "(asection *)(_bfd_std_section + 0x118)" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_bfd_std_section + 0x118)" ( (binary_expression "_bfd_std_section + 0x118" identifier + number_literal) )))) )) (compound_statement "{\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }" { (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(plVar4 + 2) | 4" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if ((section->flags & 0x1000) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }" if (parenthesized_expression "((section->flags & 0x1000) == 0)" ( (binary_expression "(section->flags & 0x1000) == 0" (parenthesized_expression "(section->flags & 0x1000)" ( (binary_expression "section->flags & 0x1000" (field_expression "section->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }" { (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(plVar4 + 2) | 1" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(plVar4 + 2) | 2" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0012ab20(undefined8 param_1,long param_2,long param_3)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long *plVar4;\n  undefined8 uVar5;\n  \n  if (DAT_002b4fc8 == 0) {\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }\n  lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0);\n  if (lVar3 == 0) {\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }\n  plVar4 = *(long **)(lVar3 + 0x20);\n  if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }\n  else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }\n  if (param_3 == 0x2b4598) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x21) & 0x10) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }\n  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;\n  return;\n}\n\n" (function_definition "void FUN_0012ab20(undefined8 param_1,long param_2,long param_3)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long *plVar4;\n  undefined8 uVar5;\n  \n  if (DAT_002b4fc8 == 0) {\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }\n  lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0);\n  if (lVar3 == 0) {\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }\n  plVar4 = *(long **)(lVar3 + 0x20);\n  if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }\n  else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }\n  if (param_3 == 0x2b4598) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x21) & 0x10) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }\n  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;\n  return;\n}" primitive_type (function_declarator "FUN_0012ab20(undefined8 param_1,long param_2,long param_3)" identifier (parameter_list "(undefined8 param_1,long param_2,long param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long *plVar4;\n  undefined8 uVar5;\n  \n  if (DAT_002b4fc8 == 0) {\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }\n  lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0);\n  if (lVar3 == 0) {\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }\n  plVar4 = *(long **)(lVar3 + 0x20);\n  if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }\n  else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }\n  if (param_3 == 0x2b4598) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x21) & 0x10) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }\n  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (if_statement "if (DAT_002b4fc8 == 0) {\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }" if (parenthesized_expression "(DAT_002b4fc8 == 0)" ( (binary_expression "DAT_002b4fc8 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }" { (expression_statement "iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);" (assignment_expression "iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28)" identifier = (call_expression "bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28)" identifier (argument_list "(&DAT_002b4fe0,FUN_0012a490,0x28)" ( (pointer_expression "&DAT_002b4fe0" & identifier) , identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }" { (expression_statement "uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);" (assignment_expression "uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5)" identifier (argument_list "(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5)" ( number_literal , (string_literal ""%X%P: bfd_hash_table_init of cref table failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00129380(uVar5);" (call_expression "FUN_00129380(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) })) (expression_statement "DAT_002b4fc8 = 1;" (assignment_expression "DAT_002b4fc8 = 1" identifier = number_literal) ;) })) (expression_statement "lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0);" (assignment_expression "lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0)" identifier = (call_expression "bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0)" identifier (argument_list "(&DAT_002b4fe0,param_1,1,0)" ( (pointer_expression "&DAT_002b4fe0" & identifier) , identifier , number_literal , number_literal )))) ;) (if_statement "if (lVar3 == 0) {\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }" { (expression_statement "uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);" (assignment_expression "uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5)" identifier (argument_list "(0,"%X%P: cref_hash_lookup failed: %E\n",5)" ( number_literal , (string_literal ""%X%P: cref_hash_lookup failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00129380(uVar5);" (call_expression "FUN_00129380(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) })) (expression_statement "plVar4 = *(long **)(lVar3 + 0x20);" (assignment_expression "plVar4 = *(long **)(lVar3 + 0x20)" identifier = (pointer_expression "*(long **)(lVar3 + 0x20)" * (cast_expression "(long **)(lVar3 + 0x20)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }\n  else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }" { (labeled_statement "LAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);" statement_identifier : (expression_statement "plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);" (assignment_expression "plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18)" identifier = (cast_expression "(long *)bfd_hash_allocate(&DAT_002b4fe0,0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_hash_allocate(&DAT_002b4fe0,0x18)" identifier (argument_list "(&DAT_002b4fe0,0x18)" ( (pointer_expression "&DAT_002b4fe0" & identifier) , number_literal ))))) ;)) (if_statement "if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }" { (expression_statement "uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);" (assignment_expression "uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%X%P: cref alloc failed: %E\n",5)" identifier (argument_list "(0,"%X%P: cref alloc failed: %E\n",5)" ( number_literal , (string_literal ""%X%P: cref alloc failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00129380(uVar5);" (call_expression "FUN_00129380(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) })) (expression_statement "*plVar4 = *(long *)(lVar3 + 0x20);" (assignment_expression "*plVar4 = *(long *)(lVar3 + 0x20)" (pointer_expression "*plVar4" * identifier) = (pointer_expression "*(long *)(lVar3 + 0x20)" * (cast_expression "(long *)(lVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*(long **)(lVar3 + 0x20) = plVar4;" (assignment_expression "*(long **)(lVar3 + 0x20) = plVar4" (pointer_expression "*(long **)(lVar3 + 0x20)" * (cast_expression "(long **)(lVar3 + 0x20)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(plVar4 + 2) & 0xf8" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "plVar4[1] = param_2;" (assignment_expression "plVar4[1] = param_2" (subscript_expression "plVar4[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }" else (compound_statement "{\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }" { (expression_statement "lVar1 = plVar4[1];" (assignment_expression "lVar1 = plVar4[1]" identifier = (subscript_expression "plVar4[1]" identifier [ number_literal ])) ;) (while_statement "while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }" while (parenthesized_expression "(param_2 != lVar1)" ( (binary_expression "param_2 != lVar1" identifier != identifier) )) (compound_statement "{\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }" { (expression_statement "plVar4 = (long *)*plVar4;" (assignment_expression "plVar4 = (long *)*plVar4" identifier = (cast_expression "(long *)*plVar4" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar4" * identifier))) ;) (if_statement "if (plVar4 == (long *)0x0) goto LAB_0012ab86;" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0012ab86;" goto statement_identifier ;)) (expression_statement "lVar1 = plVar4[1];" (assignment_expression "lVar1 = plVar4[1]" identifier = (subscript_expression "plVar4[1]" identifier [ number_literal ])) ;) })) }))) (if_statement "if (param_3 == 0x2b4598) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }" if (parenthesized_expression "(param_3 == 0x2b4598)" ( (binary_expression "param_3 == 0x2b4598" identifier == number_literal) )) (compound_statement "{\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }" { (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(plVar4 + 2) | 4" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if ((*(byte *)(param_3 + 0x21) & 0x10) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }" if (parenthesized_expression "((*(byte *)(param_3 + 0x21) & 0x10) == 0)" ( (binary_expression "(*(byte *)(param_3 + 0x21) & 0x10) == 0" (parenthesized_expression "(*(byte *)(param_3 + 0x21) & 0x10)" ( (binary_expression "*(byte *)(param_3 + 0x21) & 0x10" (pointer_expression "*(byte *)(param_3 + 0x21)" * (cast_expression "(byte *)(param_3 + 0x21)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x21)" ( (binary_expression "param_3 + 0x21" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }" { (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(plVar4 + 2) | 1" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(plVar4 + 2) | 2" (pointer_expression "*(byte *)(plVar4 + 2)" * (cast_expression "(byte *)(plVar4 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar4 + 2)" ( (binary_expression "plVar4 + 2" identifier + number_literal) )))) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) }))) (if_statement if (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)) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == 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)) ;) (return_statement return ;) })) (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)) ;) (return_statement return ;) })))
(function_definition "void FUN_0012ab20(undefined8 param_1,long param_2,long param_3)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long *plVar4;\n  undefined8 uVar5;\n  \n  if (DAT_002b4fc8 == 0) {\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }\n  lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0);\n  if (lVar3 == 0) {\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }\n  plVar4 = *(long **)(lVar3 + 0x20);\n  if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }\n  else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }\n  if (param_3 == 0x2b4598) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x21) & 0x10) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }\n  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0012ab20(undefined8 param_1,long param_2,long param_3)" (identifier "FUN_0012ab20") (parameter_list "(undefined8 param_1,long param_2,long param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  long *plVar4;\n  undefined8 uVar5;\n  \n  if (DAT_002b4fc8 == 0) {\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }\n  lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0);\n  if (lVar3 == 0) {\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }\n  plVar4 = *(long **)(lVar3 + 0x20);\n  if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }\n  else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }\n  if (param_3 == 0x2b4598) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }\n  if ((*(byte *)(param_3 + 0x21) & 0x10) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }\n  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long *plVar4;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar4" (* "*") (identifier "plVar4")) (; ";")) (declaration "undefined8 uVar5;" (type_identifier "undefined8") (identifier "uVar5") (; ";")) (if_statement "if (DAT_002b4fc8 == 0) {\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }" (if "if") (parenthesized_expression "(DAT_002b4fc8 == 0)" (( "(") (binary_expression "DAT_002b4fc8 == 0" (identifier "DAT_002b4fc8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);\n    if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    DAT_002b4fc8 = 1;\n  }" ({ "{") (expression_statement "iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);" (assignment_expression "iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28)" (identifier "iVar2") (= "=") (call_expression "bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28)" (identifier "bfd_hash_table_init") (argument_list "(&DAT_002b4fe0,FUN_0012a490,0x28)" (( "(") (pointer_expression "&DAT_002b4fe0" (& "&") (identifier "DAT_002b4fe0")) (, ",") (identifier "FUN_0012a490") (, ",") (number_literal "0x28") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }" ({ "{") (expression_statement "uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);" (assignment_expression "uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5)" (identifier "uVar5") (= "=") (call_expression "dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%X%P: bfd_hash_table_init of cref table failed: %E\n"" (" """) (string_content "%X%P: bfd_hash_table_init of cref table failed: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00129380(uVar5);" (call_expression "FUN_00129380(uVar5)" (identifier "FUN_00129380") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_002b4fc8 = 1;" (assignment_expression "DAT_002b4fc8 = 1" (identifier "DAT_002b4fc8") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0);" (assignment_expression "lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0)" (identifier "lVar3") (= "=") (call_expression "bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0)" (identifier "bfd_hash_lookup") (argument_list "(&DAT_002b4fe0,param_1,1,0)" (( "(") (pointer_expression "&DAT_002b4fe0" (& "&") (identifier "DAT_002b4fe0")) (, ",") (identifier "param_1") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (lVar3 == 0) {\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }" (if "if") (parenthesized_expression "(lVar3 == 0)" (( "(") (binary_expression "lVar3 == 0" (identifier "lVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);\n    FUN_00129380(uVar5);\n  }" ({ "{") (expression_statement "uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);" (assignment_expression "uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5)" (identifier "uVar5") (= "=") (call_expression "dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%X%P: cref_hash_lookup failed: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%X%P: cref_hash_lookup failed: %E\n"" (" """) (string_content "%X%P: cref_hash_lookup failed: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00129380(uVar5);" (call_expression "FUN_00129380(uVar5)" (identifier "FUN_00129380") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (} "}"))) (expression_statement "plVar4 = *(long **)(lVar3 + 0x20);" (assignment_expression "plVar4 = *(long **)(lVar3 + 0x20)" (identifier "plVar4") (= "=") (pointer_expression "*(long **)(lVar3 + 0x20)" (* "*") (cast_expression "(long **)(lVar3 + 0x20)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar3 + 0x20)" (( "(") (binary_expression "lVar3 + 0x20" (identifier "lVar3") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if (plVar4 == (long *)0x0) {\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }\n  else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }" (if "if") (parenthesized_expression "(plVar4 == (long *)0x0)" (( "(") (binary_expression "plVar4 == (long *)0x0" (identifier "plVar4") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);\n    if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }\n    *plVar4 = *(long *)(lVar3 + 0x20);\n    *(long **)(lVar3 + 0x20) = plVar4;\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;\n    plVar4[1] = param_2;\n  }" ({ "{") (labeled_statement "LAB_0012ab86:\n    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);" (statement_identifier "LAB_0012ab86") (: ":") (expression_statement "plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);" (assignment_expression "plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18)" (identifier "plVar4") (= "=") (cast_expression "(long *)bfd_hash_allocate(&DAT_002b4fe0,0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "bfd_hash_allocate(&DAT_002b4fe0,0x18)" (identifier "bfd_hash_allocate") (argument_list "(&DAT_002b4fe0,0x18)" (( "(") (pointer_expression "&DAT_002b4fe0" (& "&") (identifier "DAT_002b4fe0")) (, ",") (number_literal "0x18") () ")"))))) (; ";"))) (if_statement "if (plVar4 == (long *)0x0) {\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }" (if "if") (parenthesized_expression "(plVar4 == (long *)0x0)" (( "(") (binary_expression "plVar4 == (long *)0x0" (identifier "plVar4") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);\n      FUN_00129380(uVar5);\n    }" ({ "{") (expression_statement "uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);" (assignment_expression "uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5)" (identifier "uVar5") (= "=") (call_expression "dcgettext(0,"%X%P: cref alloc failed: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%X%P: cref alloc failed: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%X%P: cref alloc failed: %E\n"" (" """) (string_content "%X%P: cref alloc failed: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00129380(uVar5);" (call_expression "FUN_00129380(uVar5)" (identifier "FUN_00129380") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (} "}"))) (expression_statement "*plVar4 = *(long *)(lVar3 + 0x20);" (assignment_expression "*plVar4 = *(long *)(lVar3 + 0x20)" (pointer_expression "*plVar4" (* "*") (identifier "plVar4")) (= "=") (pointer_expression "*(long *)(lVar3 + 0x20)" (* "*") (cast_expression "(long *)(lVar3 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x20)" (( "(") (binary_expression "lVar3 + 0x20" (identifier "lVar3") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "*(long **)(lVar3 + 0x20) = plVar4;" (assignment_expression "*(long **)(lVar3 + 0x20) = plVar4" (pointer_expression "*(long **)(lVar3 + 0x20)" (* "*") (cast_expression "(long **)(lVar3 + 0x20)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar3 + 0x20)" (( "(") (binary_expression "lVar3 + 0x20" (identifier "lVar3") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "plVar4")) (; ";")) (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8" (pointer_expression "*(byte *)(plVar4 + 2)" (* "*") (cast_expression "(byte *)(plVar4 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar4 + 2)" (( "(") (binary_expression "plVar4 + 2" (identifier "plVar4") (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "*(byte *)(plVar4 + 2) & 0xf8" (pointer_expression "*(byte *)(plVar4 + 2)" (* "*") (cast_expression "(byte *)(plVar4 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar4 + 2)" (( "(") (binary_expression "plVar4 + 2" (identifier "plVar4") (+ "+") (number_literal "2")) () ")")))) (& "&") (number_literal "0xf8"))) (; ";")) (expression_statement "plVar4[1] = param_2;" (assignment_expression "plVar4[1] = param_2" (subscript_expression "plVar4[1]" (identifier "plVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (} "}")) (else_clause "else {\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }" (else "else") (compound_statement "{\n    lVar1 = plVar4[1];\n    while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }\n  }" ({ "{") (expression_statement "lVar1 = plVar4[1];" (assignment_expression "lVar1 = plVar4[1]" (identifier "lVar1") (= "=") (subscript_expression "plVar4[1]" (identifier "plVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (while_statement "while (param_2 != lVar1) {\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }" (while "while") (parenthesized_expression "(param_2 != lVar1)" (( "(") (binary_expression "param_2 != lVar1" (identifier "param_2") (!= "!=") (identifier "lVar1")) () ")")) (compound_statement "{\n      plVar4 = (long *)*plVar4;\n      if (plVar4 == (long *)0x0) goto LAB_0012ab86;\n      lVar1 = plVar4[1];\n    }" ({ "{") (expression_statement "plVar4 = (long *)*plVar4;" (assignment_expression "plVar4 = (long *)*plVar4" (identifier "plVar4") (= "=") (cast_expression "(long *)*plVar4" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar4" (* "*") (identifier "plVar4")))) (; ";")) (if_statement "if (plVar4 == (long *)0x0) goto LAB_0012ab86;" (if "if") (parenthesized_expression "(plVar4 == (long *)0x0)" (( "(") (binary_expression "plVar4 == (long *)0x0" (identifier "plVar4") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0012ab86;" (goto "goto") (statement_identifier "LAB_0012ab86") (; ";"))) (expression_statement "lVar1 = plVar4[1];" (assignment_expression "lVar1 = plVar4[1]" (identifier "lVar1") (= "=") (subscript_expression "plVar4[1]" (identifier "plVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (} "}")))) (if_statement "if (param_3 == 0x2b4598) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 == 0x2b4598)" (( "(") (binary_expression "param_3 == 0x2b4598" (identifier "param_3") (== "==") (number_literal "0x2b4598")) () ")")) (compound_statement "{\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;\n    return;\n  }" ({ "{") (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4" (pointer_expression "*(byte *)(plVar4 + 2)" (* "*") (cast_expression "(byte *)(plVar4 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar4 + 2)" (( "(") (binary_expression "plVar4 + 2" (identifier "plVar4") (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "*(byte *)(plVar4 + 2) | 4" (pointer_expression "*(byte *)(plVar4 + 2)" (* "*") (cast_expression "(byte *)(plVar4 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar4 + 2)" (( "(") (binary_expression "plVar4 + 2" (identifier "plVar4") (+ "+") (number_literal "2")) () ")")))) (| "|") (number_literal "4"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_3 + 0x21) & 0x10) == 0) {\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_3 + 0x21) & 0x10) == 0)" (( "(") (binary_expression "(*(byte *)(param_3 + 0x21) & 0x10) == 0" (parenthesized_expression "(*(byte *)(param_3 + 0x21) & 0x10)" (( "(") (binary_expression "*(byte *)(param_3 + 0x21) & 0x10" (pointer_expression "*(byte *)(param_3 + 0x21)" (* "*") (cast_expression "(byte *)(param_3 + 0x21)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x21)" (( "(") (binary_expression "param_3 + 0x21" (identifier "param_3") (+ "+") (number_literal "0x21")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;\n    return;\n  }" ({ "{") (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1" (pointer_expression "*(byte *)(plVar4 + 2)" (* "*") (cast_expression "(byte *)(plVar4 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar4 + 2)" (( "(") (binary_expression "plVar4 + 2" (identifier "plVar4") (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "*(byte *)(plVar4 + 2) | 1" (pointer_expression "*(byte *)(plVar4 + 2)" (* "*") (cast_expression "(byte *)(plVar4 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar4 + 2)" (( "(") (binary_expression "plVar4 + 2" (identifier "plVar4") (+ "+") (number_literal "2")) () ")")))) (| "|") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;" (assignment_expression "*(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2" (pointer_expression "*(byte *)(plVar4 + 2)" (* "*") (cast_expression "(byte *)(plVar4 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar4 + 2)" (( "(") (binary_expression "plVar4 + 2" (identifier "plVar4") (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "*(byte *)(plVar4 + 2) | 2" (pointer_expression "*(byte *)(plVar4 + 2)" (* "*") (cast_expression "(byte *)(plVar4 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar4 + 2)" (( "(") (binary_expression "plVar4 + 2" (identifier "plVar4") (+ "+") (number_literal "2")) () ")")))) (| "|") (number_literal "2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *name,type_1 *var_10,type_2 *var_12,type_3 value)

{
  type_1 *var_11;
  int var_3;
  long var_7;
  long *var_8;
  char *pcVar5;
  
  if (var_1 == 0) {
    var_3 = var_2(&cref_table,cref_hash_newfunc,0x28);
    if (var_3 == 0) {
      pcVar5 = (char *)var_4(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);
      var_5(pcVar5);
    }
    var_1 = 1;
  }
  var_7 = var_6(&cref_table,name,1,0);
  if (var_7 == 0) {
    pcVar5 = (char *)var_4(0,"%X%P: cref_hash_lookup failed: %E\n",5);
    var_5(pcVar5);
  }
  var_8 = *(long **)(var_7 + 0x20);
  if (var_8 == (long *)0x0) {
LAB_0012ab86:
    var_8 = (long *)var_9(&cref_table,0x18);
    if (var_8 == (long *)0x0) {
      pcVar5 = (char *)var_4(0,"%X%P: cref alloc failed: %E\n",5);
      var_5(pcVar5);
    }
    *var_8 = *(long *)(var_7 + 0x20);
    *(long **)(var_7 + 0x20) = var_8;
    *(type_4 *)(var_8 + 2) = *(type_4 *)(var_8 + 2) & 0xf8;
    var_8[1] = (long)var_10;
  }
  else {
    var_11 = (type_1 *)var_8[1];
    while (var_10 != var_11) {
      var_8 = (long *)*var_8;
      if (var_8 == (long *)0x0) goto LAB_0012ab86;
      var_11 = (type_1 *)var_8[1];
    }
  }
  if (var_12 == (type_2 *)(var_13 + 0x118)) {
    *(type_4 *)(var_8 + 2) = *(type_4 *)(var_8 + 2) | 4;
    return;
  }
  if ((var_12->flags & 0x1000) == 0) {
    *(type_4 *)(var_8 + 2) = *(type_4 *)(var_8 + 2) | 1;
    return;
  }
  *(type_4 *)(var_8 + 2) = *(type_4 *)(var_8 + 2) | 2;
  return;
}


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

void MASKED(undefined8 param_1,long param_2,long param_3)

{
  long lVar1;
  int iVar2;
  long lVar3;
  long *plVar4;
  undefined8 uVar5;
  
  if (DAT_002b4fc8 == 0) {
    iVar2 = bfd_hash_table_init(&DAT_002b4fe0,FUN_0012a490,0x28);
    if (iVar2 == 0) {
      uVar5 = dcgettext(0,"%X%P: bfd_hash_table_init of cref table failed: %E\n",5);
      FUN_00129380(uVar5);
    }
    DAT_002b4fc8 = 1;
  }
  lVar3 = bfd_hash_lookup(&DAT_002b4fe0,param_1,1,0);
  if (lVar3 == 0) {
    uVar5 = dcgettext(0,"%X%P: cref_hash_lookup failed: %E\n",5);
    FUN_00129380(uVar5);
  }
  plVar4 = *(long **)(lVar3 + 0x20);
  if (plVar4 == (long *)0x0) {
LAB_0012ab86:
    plVar4 = (long *)bfd_hash_allocate(&DAT_002b4fe0,0x18);
    if (plVar4 == (long *)0x0) {
      uVar5 = dcgettext(0,"%X%P: cref alloc failed: %E\n",5);
      FUN_00129380(uVar5);
    }
    *plVar4 = *(long *)(lVar3 + 0x20);
    *(long **)(lVar3 + 0x20) = plVar4;
    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) & 0xf8;
    plVar4[1] = param_2;
  }
  else {
    lVar1 = plVar4[1];
    while (param_2 != lVar1) {
      plVar4 = (long *)*plVar4;
      if (plVar4 == (long *)0x0) goto LAB_0012ab86;
      lVar1 = plVar4[1];
    }
  }
  if (param_3 == 0x2b4598) {
    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 4;
    return;
  }
  if ((*(byte *)(param_3 + 0x21) & 0x10) == 0) {
    *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 1;
    return;
  }
  *(byte *)(plVar4 + 2) = *(byte *)(plVar4 + 2) | 2;
  return;
}

