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

int md_estimate_size_before_relax(fragS *fragP,segT segment)

{
  fragS *pfVar1;
  valueT vVar2;
  segT paVar3;
  int iVar4;
  fragS *pfVar5;
  uint uVar6;
  
  uVar6 = fragP->fr_subtype;
  switch(uVar6) {
  case 3:
  case 7:
  case 0xb:
  case 0x2b:
    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);
    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&
       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) {
LAB_0004afcc:
      uVar6 = fragP->fr_subtype & 0xfffffffc;
      fragP->fr_subtype = uVar6;
    }
    else {
LAB_0004b080:
      uVar6 = fragP->fr_subtype & 0xfffffffc;
      if (flag_short_refs != 0) goto LAB_0004b094;
      uVar6 = uVar6 + 2;
      fragP->fr_subtype = uVar6;
    }
    break;
  case 0xf:
    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);
    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&
       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) goto LAB_0004afcc;
    uVar6 = (fragP->fr_subtype & 0xfffffffc) + 1;
    fragP->fr_subtype = uVar6;
    break;
  case 0x13:
  case 0x17:
  case 0x1b:
  case 0x1f:
    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);
    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||
       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) goto LAB_0004b080;
    uVar6 = fragP->fr_subtype & 0xfffffffc;
LAB_0004b094:
    uVar6 = uVar6 + 1;
    fragP->fr_subtype = uVar6;
    break;
  case 0x23:
    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);
    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||
       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {
      fragP->fr_subtype = 0x22;
      return (uint)md_relax_table[0x228];
    }
    fragP->fr_subtype = 0x20;
    uVar6 = 0x20;
    goto LAB_0004afeb;
  case 0x27:
    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);
    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||
       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {
      fragP->fr_subtype = 0x26;
      return (uint)md_relax_table[0x268];
    }
    fragP->fr_subtype = 0x25;
    uVar6 = 0x25;
    goto LAB_0004afeb;
  }
  if (((uVar6 < 0xd) && ((1 << ((byte)uVar6 & 0x1f) & 0x1111U) != 0)) &&
     (fragP->fr_symbol != (symbolS *)0x0)) {
    pfVar1 = symbol_get_frag(fragP->fr_symbol);
    vVar2 = S_GET_VALUE(fragP->fr_symbol);
    if (vVar2 == pfVar1->fr_address) {
      pfVar5 = fragP->fr_next;
      uVar6 = fragP->fr_subtype;
      if ((pfVar1 != pfVar5) && (pfVar5 != (fragS *)0x0)) {
        do {
          if (pfVar5->fr_fix != 0) goto LAB_0004afeb;
          pfVar5 = pfVar5->fr_next;
        } while ((pfVar5 != (frag *)0x0) && (pfVar1 != pfVar5));
      }
      if (pfVar1 == pfVar5) {
        uVar6 = (uVar6 & 0xfffffffc) + 1;
        fragP->fr_subtype = uVar6;
      }
    }
    else {
      uVar6 = fragP->fr_subtype;
    }
  }
LAB_0004afeb:
  return (uint)(byte)md_relax_table[uVar6 * 0x10 + 8];
}



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

undefined1 FUN_0004af70(int param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  
  uVar4 = *(uint *)(param_1 + 0x34);
  switch(uVar4) {
  case 3:
  case 7:
  case 0xb:
  case 0x2b:
    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));
    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))
       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {
code_r0x0004afcc:
      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;
      *(uint *)(param_1 + 0x34) = uVar4;
    }
    else {
code_r0x0004b080:
      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;
      if (DAT_000814ec != 0) goto code_r0x0004b094;
      uVar4 = uVar4 + 2;
      *(uint *)(param_1 + 0x34) = uVar4;
    }
    break;
  case 0xf:
    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));
    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))
       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))
    goto code_r0x0004afcc;
    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;
    *(uint *)(param_1 + 0x34) = uVar4;
    break;
  case 0x13:
  case 0x17:
  case 0x1b:
  case 0x1f:
    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));
    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))
       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))
    goto code_r0x0004b080;
    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;
code_r0x0004b094:
    uVar4 = uVar4 + 1;
    *(uint *)(param_1 + 0x34) = uVar4;
    break;
  case 0x23:
    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));
    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))
       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {
      *(undefined4 *)(param_1 + 0x34) = 0x22;
      return uRam00078728;
    }
    *(undefined4 *)(param_1 + 0x34) = 0x20;
    uVar4 = 0x20;
    goto LAB_0004afeb;
  case 0x27:
    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));
    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))
       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {
      *(undefined4 *)(param_1 + 0x34) = 0x26;
      return uRam00078768;
    }
    *(undefined4 *)(param_1 + 0x34) = 0x25;
    uVar4 = 0x25;
    goto LAB_0004afeb;
  }
  if (((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&
     (*(int *)(param_1 + 0x14) != 0)) {
    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));
    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));
    if (iVar2 == *piVar1) {
      piVar3 = *(int **)(param_1 + 0x1c);
      uVar4 = *(uint *)(param_1 + 0x34);
      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {
        do {
          if (piVar3[2] != 0) goto LAB_0004afeb;
          piVar3 = (int *)piVar3[7];
        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));
      }
      if (piVar1 == piVar3) {
        uVar4 = (uVar4 & 0xfffffffc) + 1;
        *(uint *)(param_1 + 0x34) = uVar4;
      }
    }
    else {
      uVar4 = *(uint *)(param_1 + 0x34);
    }
  }
LAB_0004afeb:
  return (&DAT_00078508)[uVar4 * 0x10];
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00017010
ADD EBX,0x2d084
MOV ECX,dword ptr [ESI + 0x34]
LEA EAX,[ECX + -0x3]
CMP EAX,0x28
JA 0x0004afd8
MOV EDX,dword ptr [EBX + EAX*0x4 + 0xfffe5448]
ADD EDX,EBX
JMP EDX
CMP ECX,0xc
JA 0x0004afeb
MOV EAX,0x1
SHL EAX,CL
TEST EAX,0x1111
JNZ 0x0004b000
SHL ECX,0x4
MOVZX EAX,byte ptr [EBX + ECX*0x1 + 0x508]
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [ESI + 0x14]
TEST EAX,EAX
JZ 0x0004afeb
SUB ESP,0xc
PUSH EAX
CALL 0x0003b530
POP ECX
PUSH dword ptr [ESI + 0x14]
MOV EDI,EAX
CALL 0x0003a030
ADD ESP,0x10
CMP EAX,dword ptr [EDI]
JZ 0x0004b168
MOV ECX,dword ptr [ESI + 0x34]
JMP 0x0004afeb
MOV EAX,dword ptr [ESI + 0x1c]
MOV ECX,dword ptr [ESI + 0x34]
CMP EDI,EAX
JZ 0x0004b258
TEST EAX,EAX
JNZ 0x0004b193
JMP 0x0004b258
MOV EAX,dword ptr [EAX + 0x1c]
TEST EAX,EAX
JZ 0x0004b258
CMP EDI,EAX
JZ 0x0004b258
MOV EDX,dword ptr [EAX + 0x8]
TEST EDX,EDX
JZ 0x0004b180
JMP 0x0004afeb
CMP EDI,EAX
JNZ 0x0004afeb
AND ECX,0xfffffffc
ADD ECX,0x1
MOV dword ptr [ESI + 0x34],ECX
JMP 0x0004afeb
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined1 FUN_0004af70(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = *(uint *)(param_1 + 0x34);\n  switch(uVar4) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }\n  if (((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)) {\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }\nLAB_0004afeb:\n  return (&DAT_00078508)[uVar4 * 0x10];\n}\n\n" comment (function_definition "undefined1 FUN_0004af70(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = *(uint *)(param_1 + 0x34);\n  switch(uVar4) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }\n  if (((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)) {\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }\nLAB_0004afeb:\n  return (&DAT_00078508)[uVar4 * 0x10];\n}" type_identifier (function_declarator "FUN_0004af70(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = *(uint *)(param_1 + 0x34);\n  switch(uVar4) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }\n  if (((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)) {\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }\nLAB_0004afeb:\n  return (&DAT_00078508)[uVar4 * 0x10];\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar4 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34)" identifier = (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (switch_statement "switch(uVar4) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }" switch (parenthesized_expression "(uVar4)" ( identifier )) (compound_statement "{\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }" { (case_statement "case 3:" case number_literal :) (case_statement "case 7:" case number_literal :) (case_statement "case 0xb:" case number_literal :) (case_statement "case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;" case number_literal : (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }" if (parenthesized_expression "(((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))" ( (binary_expression "((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (parenthesized_expression "((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))" ( (binary_expression "(iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (parenthesized_expression "(iVar2 == param_2)" ( (binary_expression "iVar2 == param_2" identifier == identifier) )) && (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }" { (labeled_statement "code_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" statement_identifier : (expression_statement "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc" identifier = (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal)) ;)) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }" else (compound_statement "{\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }" { (labeled_statement "code_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" statement_identifier : (expression_statement "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc" identifier = (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal)) ;)) (if_statement "if (DAT_000814ec != 0) goto code_r0x0004b094;" if (parenthesized_expression "(DAT_000814ec != 0)" ( (binary_expression "DAT_000814ec != 0" identifier != number_literal) )) (goto_statement "goto code_r0x0004b094;" goto statement_identifier ;)) (expression_statement "uVar4 = uVar4 + 2;" (assignment_expression "uVar4 = uVar4 + 2" identifier = (binary_expression "uVar4 + 2" identifier + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = identifier) ;) }))) (break_statement "break;" break ;)) (case_statement "case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;" case number_literal : (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;" if (parenthesized_expression "(((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))" ( (binary_expression "((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (parenthesized_expression "((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))" ( (binary_expression "(iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (parenthesized_expression "(iVar2 == param_2)" ( (binary_expression "iVar2 == param_2" identifier == identifier) )) && (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (goto_statement "goto code_r0x0004afcc;" goto statement_identifier ;)) (expression_statement "uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;" (assignment_expression "uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1" identifier = (binary_expression "(*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1" (parenthesized_expression "(*(uint *)(param_1 + 0x34) & 0xfffffffc)" ( (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal) )) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x13:" case number_literal :) (case_statement "case 0x17:" case number_literal :) (case_statement "case 0x1b:" case number_literal :) (case_statement "case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;" case number_literal : (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;" if (parenthesized_expression "(((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" ( (binary_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" ( (binary_expression "(iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "(iVar2 != param_2)" ( (binary_expression "iVar2 != param_2" identifier != identifier) )) || (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (goto_statement "goto code_r0x0004b080;" goto statement_identifier ;)) (expression_statement "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc" identifier = (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal)) ;) (labeled_statement "code_r0x0004b094:\n    uVar4 = uVar4 + 1;" statement_identifier : (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;)) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;" case number_literal : (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }" if (parenthesized_expression "(((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" ( (binary_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" ( (binary_expression "(iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "(iVar2 != param_2)" ( (binary_expression "iVar2 != param_2" identifier != identifier) )) || (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x34) = 0x22;" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = 0x22" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" * (cast_expression "(undefined4 *)(param_1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uRam00078728;" return identifier ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x34) = 0x20;" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = 0x20" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" * (cast_expression "(undefined4 *)(param_1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar4 = 0x20;" (assignment_expression "uVar4 = 0x20" identifier = number_literal) ;) (goto_statement "goto LAB_0004afeb;" goto statement_identifier ;)) (case_statement "case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;" case number_literal : (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }" if (parenthesized_expression "(((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" ( (binary_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" ( (binary_expression "(iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "(iVar2 != param_2)" ( (binary_expression "iVar2 != param_2" identifier != identifier) )) || (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x34) = 0x26;" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = 0x26" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" * (cast_expression "(undefined4 *)(param_1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uRam00078768;" return identifier ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x34) = 0x25;" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = 0x25" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" * (cast_expression "(undefined4 *)(param_1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar4 = 0x25;" (assignment_expression "uVar4 = 0x25" identifier = number_literal) ;) (goto_statement "goto LAB_0004afeb;" goto statement_identifier ;)) })) (if_statement "if (((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)) {\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }" if (parenthesized_expression "(((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0))" ( (binary_expression "((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)" (parenthesized_expression "((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0))" ( (binary_expression "(uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)" (parenthesized_expression "(uVar4 < 0xd)" ( (binary_expression "uVar4 < 0xd" identifier < number_literal) )) && (parenthesized_expression "((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)" ( (binary_expression "(1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0" (parenthesized_expression "(1 << ((byte)uVar4 & 0x1f) & 0x1111U)" ( (binary_expression "1 << ((byte)uVar4 & 0x1f) & 0x1111U" (binary_expression "1 << ((byte)uVar4 & 0x1f)" number_literal << (parenthesized_expression "((byte)uVar4 & 0x1f)" ( (binary_expression "(byte)uVar4 & 0x1f" (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" ( (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }" { (expression_statement "piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));" (assignment_expression "piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14))" identifier = (cast_expression "(int *)FUN_0003b530(*(int *)(param_1 + 0x14))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003b530(*(int *)(param_1 + 0x14))" identifier (argument_list "(*(int *)(param_1 + 0x14))" ( (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))))) ;) (expression_statement "iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_0003a030(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }" if (parenthesized_expression "(iVar2 == *piVar1)" ( (binary_expression "iVar2 == *piVar1" identifier == (pointer_expression "*piVar1" * identifier)) )) (compound_statement "{\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }" { (expression_statement "piVar3 = *(int **)(param_1 + 0x1c);" (assignment_expression "piVar3 = *(int **)(param_1 + 0x1c)" identifier = (pointer_expression "*(int **)(param_1 + 0x1c)" * (cast_expression "(int **)(param_1 + 0x1c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34)" identifier = (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (if_statement "if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }" if (parenthesized_expression "((piVar1 != piVar3) && (piVar3 != (int *)0x0))" ( (binary_expression "(piVar1 != piVar3) && (piVar3 != (int *)0x0)" (parenthesized_expression "(piVar1 != piVar3)" ( (binary_expression "piVar1 != piVar3" identifier != identifier) )) && (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }" { (do_statement "do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));" do (compound_statement "{\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        }" { (if_statement "if (piVar3[2] != 0) goto LAB_0004afeb;" if (parenthesized_expression "(piVar3[2] != 0)" ( (binary_expression "piVar3[2] != 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_0004afeb;" goto statement_identifier ;)) (expression_statement "piVar3 = (int *)piVar3[7];" (assignment_expression "piVar3 = (int *)piVar3[7]" identifier = (cast_expression "(int *)piVar3[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[7]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "((piVar3 != (int *)0x0) && (piVar1 != piVar3))" ( (binary_expression "(piVar3 != (int *)0x0) && (piVar1 != piVar3)" (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(piVar1 != piVar3)" ( (binary_expression "piVar1 != piVar3" identifier != identifier) ))) )) ;) })) (if_statement "if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }" if (parenthesized_expression "(piVar1 == piVar3)" ( (binary_expression "piVar1 == piVar3" identifier == identifier) )) (compound_statement "{\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }" { (expression_statement "uVar4 = (uVar4 & 0xfffffffc) + 1;" (assignment_expression "uVar4 = (uVar4 & 0xfffffffc) + 1" identifier = (binary_expression "(uVar4 & 0xfffffffc) + 1" (parenthesized_expression "(uVar4 & 0xfffffffc)" ( (binary_expression "uVar4 & 0xfffffffc" identifier & number_literal) )) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = identifier) ;) })) }) (else_clause "else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }" else (compound_statement "{\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }" { (expression_statement "uVar4 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34)" identifier = (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) }))) })) (labeled_statement "LAB_0004afeb:\n  return (&DAT_00078508)[uVar4 * 0x10];" statement_identifier : (return_statement "return (&DAT_00078508)[uVar4 * 0x10];" return (subscript_expression "(&DAT_00078508)[uVar4 * 0x10]" (parenthesized_expression "(&DAT_00078508)" ( (pointer_expression "&DAT_00078508" & identifier) )) [ (binary_expression "uVar4 * 0x10" identifier * number_literal) ]) ;)) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint md_estimate_size_before_relax(fragS *fragP,segT segment)\n\n{\n  fragS *pfVar1;\n  valueT vVar2;\n  segT paVar3;\n  int iVar4;\n  fragS *pfVar5;\n  uint uVar6;\n  \n  uVar6 = fragP->fr_subtype;\n  switch(uVar6) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) {\nLAB_0004afcc:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      fragP->fr_subtype = uVar6;\n    }\n    else {\nLAB_0004b080:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      if (flag_short_refs != 0) goto LAB_0004b094;\n      uVar6 = uVar6 + 2;\n      fragP->fr_subtype = uVar6;\n    }\n    break;\n  case 0xf:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) goto LAB_0004afcc;\n    uVar6 = (fragP->fr_subtype & 0xfffffffc) + 1;\n    fragP->fr_subtype = uVar6;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) goto LAB_0004b080;\n    uVar6 = fragP->fr_subtype & 0xfffffffc;\nLAB_0004b094:\n    uVar6 = uVar6 + 1;\n    fragP->fr_subtype = uVar6;\n    break;\n  case 0x23:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x22;\n      return (uint)md_relax_table[0x228];\n    }\n    fragP->fr_subtype = 0x20;\n    uVar6 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x26;\n      return (uint)md_relax_table[0x268];\n    }\n    fragP->fr_subtype = 0x25;\n    uVar6 = 0x25;\n    goto LAB_0004afeb;\n  }\n  if (((uVar6 < 0xd) && ((1 << ((byte)uVar6 & 0x1f) & 0x1111U) != 0)) &&\n     (fragP->fr_symbol != (symbolS *)0x0)) {\n    pfVar1 = symbol_get_frag(fragP->fr_symbol);\n    vVar2 = S_GET_VALUE(fragP->fr_symbol);\n    if (vVar2 == pfVar1->fr_address) {\n      pfVar5 = fragP->fr_next;\n      uVar6 = fragP->fr_subtype;\n      if ((pfVar1 != pfVar5) && (pfVar5 != (fragS *)0x0)) {\n        do {\n          if (pfVar5->fr_fix != 0) goto LAB_0004afeb;\n          pfVar5 = pfVar5->fr_next;\n        } while ((pfVar5 != (frag *)0x0) && (pfVar1 != pfVar5));\n      }\n      if (pfVar1 == pfVar5) {\n        uVar6 = (uVar6 & 0xfffffffc) + 1;\n        fragP->fr_subtype = uVar6;\n      }\n    }\n    else {\n      uVar6 = fragP->fr_subtype;\n    }\n  }\nLAB_0004afeb:\n  return (uint)(byte)md_relax_table[uVar6 * 0x10 + 8];\n}\n\n" comment (function_definition "int md_estimate_size_before_relax(fragS *fragP,segT segment)\n\n{\n  fragS *pfVar1;\n  valueT vVar2;\n  segT paVar3;\n  int iVar4;\n  fragS *pfVar5;\n  uint uVar6;\n  \n  uVar6 = fragP->fr_subtype;\n  switch(uVar6) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) {\nLAB_0004afcc:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      fragP->fr_subtype = uVar6;\n    }\n    else {\nLAB_0004b080:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      if (flag_short_refs != 0) goto LAB_0004b094;\n      uVar6 = uVar6 + 2;\n      fragP->fr_subtype = uVar6;\n    }\n    break;\n  case 0xf:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) goto LAB_0004afcc;\n    uVar6 = (fragP->fr_subtype & 0xfffffffc) + 1;\n    fragP->fr_subtype = uVar6;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) goto LAB_0004b080;\n    uVar6 = fragP->fr_subtype & 0xfffffffc;\nLAB_0004b094:\n    uVar6 = uVar6 + 1;\n    fragP->fr_subtype = uVar6;\n    break;\n  case 0x23:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x22;\n      return (uint)md_relax_table[0x228];\n    }\n    fragP->fr_subtype = 0x20;\n    uVar6 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x26;\n      return (uint)md_relax_table[0x268];\n    }\n    fragP->fr_subtype = 0x25;\n    uVar6 = 0x25;\n    goto LAB_0004afeb;\n  }\n  if (((uVar6 < 0xd) && ((1 << ((byte)uVar6 & 0x1f) & 0x1111U) != 0)) &&\n     (fragP->fr_symbol != (symbolS *)0x0)) {\n    pfVar1 = symbol_get_frag(fragP->fr_symbol);\n    vVar2 = S_GET_VALUE(fragP->fr_symbol);\n    if (vVar2 == pfVar1->fr_address) {\n      pfVar5 = fragP->fr_next;\n      uVar6 = fragP->fr_subtype;\n      if ((pfVar1 != pfVar5) && (pfVar5 != (fragS *)0x0)) {\n        do {\n          if (pfVar5->fr_fix != 0) goto LAB_0004afeb;\n          pfVar5 = pfVar5->fr_next;\n        } while ((pfVar5 != (frag *)0x0) && (pfVar1 != pfVar5));\n      }\n      if (pfVar1 == pfVar5) {\n        uVar6 = (uVar6 & 0xfffffffc) + 1;\n        fragP->fr_subtype = uVar6;\n      }\n    }\n    else {\n      uVar6 = fragP->fr_subtype;\n    }\n  }\nLAB_0004afeb:\n  return (uint)(byte)md_relax_table[uVar6 * 0x10 + 8];\n}" primitive_type (function_declarator "md_estimate_size_before_relax(fragS *fragP,segT segment)" identifier (parameter_list "(fragS *fragP,segT segment)" ( (parameter_declaration "fragS *fragP" type_identifier (pointer_declarator "*fragP" * identifier)) , (parameter_declaration "segT segment" type_identifier identifier) ))) (compound_statement "{\n  fragS *pfVar1;\n  valueT vVar2;\n  segT paVar3;\n  int iVar4;\n  fragS *pfVar5;\n  uint uVar6;\n  \n  uVar6 = fragP->fr_subtype;\n  switch(uVar6) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) {\nLAB_0004afcc:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      fragP->fr_subtype = uVar6;\n    }\n    else {\nLAB_0004b080:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      if (flag_short_refs != 0) goto LAB_0004b094;\n      uVar6 = uVar6 + 2;\n      fragP->fr_subtype = uVar6;\n    }\n    break;\n  case 0xf:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) goto LAB_0004afcc;\n    uVar6 = (fragP->fr_subtype & 0xfffffffc) + 1;\n    fragP->fr_subtype = uVar6;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) goto LAB_0004b080;\n    uVar6 = fragP->fr_subtype & 0xfffffffc;\nLAB_0004b094:\n    uVar6 = uVar6 + 1;\n    fragP->fr_subtype = uVar6;\n    break;\n  case 0x23:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x22;\n      return (uint)md_relax_table[0x228];\n    }\n    fragP->fr_subtype = 0x20;\n    uVar6 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x26;\n      return (uint)md_relax_table[0x268];\n    }\n    fragP->fr_subtype = 0x25;\n    uVar6 = 0x25;\n    goto LAB_0004afeb;\n  }\n  if (((uVar6 < 0xd) && ((1 << ((byte)uVar6 & 0x1f) & 0x1111U) != 0)) &&\n     (fragP->fr_symbol != (symbolS *)0x0)) {\n    pfVar1 = symbol_get_frag(fragP->fr_symbol);\n    vVar2 = S_GET_VALUE(fragP->fr_symbol);\n    if (vVar2 == pfVar1->fr_address) {\n      pfVar5 = fragP->fr_next;\n      uVar6 = fragP->fr_subtype;\n      if ((pfVar1 != pfVar5) && (pfVar5 != (fragS *)0x0)) {\n        do {\n          if (pfVar5->fr_fix != 0) goto LAB_0004afeb;\n          pfVar5 = pfVar5->fr_next;\n        } while ((pfVar5 != (frag *)0x0) && (pfVar1 != pfVar5));\n      }\n      if (pfVar1 == pfVar5) {\n        uVar6 = (uVar6 & 0xfffffffc) + 1;\n        fragP->fr_subtype = uVar6;\n      }\n    }\n    else {\n      uVar6 = fragP->fr_subtype;\n    }\n  }\nLAB_0004afeb:\n  return (uint)(byte)md_relax_table[uVar6 * 0x10 + 8];\n}" { (declaration "fragS *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (declaration "valueT vVar2;" type_identifier identifier ;) (declaration "segT paVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "fragS *pfVar5;" type_identifier (pointer_declarator "*pfVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "uVar6 = fragP->fr_subtype;" (assignment_expression "uVar6 = fragP->fr_subtype" identifier = (field_expression "fragP->fr_subtype" identifier -> field_identifier)) ;) (switch_statement "switch(uVar6) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) {\nLAB_0004afcc:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      fragP->fr_subtype = uVar6;\n    }\n    else {\nLAB_0004b080:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      if (flag_short_refs != 0) goto LAB_0004b094;\n      uVar6 = uVar6 + 2;\n      fragP->fr_subtype = uVar6;\n    }\n    break;\n  case 0xf:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) goto LAB_0004afcc;\n    uVar6 = (fragP->fr_subtype & 0xfffffffc) + 1;\n    fragP->fr_subtype = uVar6;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) goto LAB_0004b080;\n    uVar6 = fragP->fr_subtype & 0xfffffffc;\nLAB_0004b094:\n    uVar6 = uVar6 + 1;\n    fragP->fr_subtype = uVar6;\n    break;\n  case 0x23:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x22;\n      return (uint)md_relax_table[0x228];\n    }\n    fragP->fr_subtype = 0x20;\n    uVar6 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x26;\n      return (uint)md_relax_table[0x268];\n    }\n    fragP->fr_subtype = 0x25;\n    uVar6 = 0x25;\n    goto LAB_0004afeb;\n  }" switch (parenthesized_expression "(uVar6)" ( identifier )) (compound_statement "{\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) {\nLAB_0004afcc:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      fragP->fr_subtype = uVar6;\n    }\n    else {\nLAB_0004b080:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      if (flag_short_refs != 0) goto LAB_0004b094;\n      uVar6 = uVar6 + 2;\n      fragP->fr_subtype = uVar6;\n    }\n    break;\n  case 0xf:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) goto LAB_0004afcc;\n    uVar6 = (fragP->fr_subtype & 0xfffffffc) + 1;\n    fragP->fr_subtype = uVar6;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) goto LAB_0004b080;\n    uVar6 = fragP->fr_subtype & 0xfffffffc;\nLAB_0004b094:\n    uVar6 = uVar6 + 1;\n    fragP->fr_subtype = uVar6;\n    break;\n  case 0x23:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x22;\n      return (uint)md_relax_table[0x228];\n    }\n    fragP->fr_subtype = 0x20;\n    uVar6 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x26;\n      return (uint)md_relax_table[0x268];\n    }\n    fragP->fr_subtype = 0x25;\n    uVar6 = 0x25;\n    goto LAB_0004afeb;\n  }" { (case_statement "case 3:" case number_literal :) (case_statement "case 7:" case number_literal :) (case_statement "case 0xb:" case number_literal :) (case_statement "case 0x2b:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) {\nLAB_0004afcc:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      fragP->fr_subtype = uVar6;\n    }\n    else {\nLAB_0004b080:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      if (flag_short_refs != 0) goto LAB_0004b094;\n      uVar6 = uVar6 + 2;\n      fragP->fr_subtype = uVar6;\n    }\n    break;" case number_literal : (expression_statement "paVar3 = S_GET_SEGMENT(fragP->fr_symbol);" (assignment_expression "paVar3 = S_GET_SEGMENT(fragP->fr_symbol)" identifier = (call_expression "S_GET_SEGMENT(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) ;) (if_statement "if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) {\nLAB_0004afcc:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      fragP->fr_subtype = uVar6;\n    }\n    else {\nLAB_0004b080:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      if (flag_short_refs != 0) goto LAB_0004b094;\n      uVar6 = uVar6 + 2;\n      fragP->fr_subtype = uVar6;\n    }" if (parenthesized_expression "(((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0))" ( (binary_expression "((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)" (parenthesized_expression "((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0))" ( (binary_expression "(paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)" (parenthesized_expression "(paVar3 == segment)" ( (binary_expression "paVar3 == segment" identifier == identifier) )) && (parenthesized_expression "(iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)" ( (comma_expression "iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0" (assignment_expression "iVar4 = S_IS_EXTERNAL(fragP->fr_symbol)" identifier = (call_expression "S_IS_EXTERNAL(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)" ( (comma_expression "iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0" (assignment_expression "iVar4 = S_IS_WEAK(fragP->fr_symbol)" identifier = (call_expression "S_IS_WEAK(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (compound_statement "{\nLAB_0004afcc:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      fragP->fr_subtype = uVar6;\n    }" { (labeled_statement "LAB_0004afcc:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;" statement_identifier : (expression_statement "uVar6 = fragP->fr_subtype & 0xfffffffc;" (assignment_expression "uVar6 = fragP->fr_subtype & 0xfffffffc" identifier = (binary_expression "fragP->fr_subtype & 0xfffffffc" (field_expression "fragP->fr_subtype" identifier -> field_identifier) & number_literal)) ;)) (expression_statement "fragP->fr_subtype = uVar6;" (assignment_expression "fragP->fr_subtype = uVar6" (field_expression "fragP->fr_subtype" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\nLAB_0004b080:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      if (flag_short_refs != 0) goto LAB_0004b094;\n      uVar6 = uVar6 + 2;\n      fragP->fr_subtype = uVar6;\n    }" else (compound_statement "{\nLAB_0004b080:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;\n      if (flag_short_refs != 0) goto LAB_0004b094;\n      uVar6 = uVar6 + 2;\n      fragP->fr_subtype = uVar6;\n    }" { (labeled_statement "LAB_0004b080:\n      uVar6 = fragP->fr_subtype & 0xfffffffc;" statement_identifier : (expression_statement "uVar6 = fragP->fr_subtype & 0xfffffffc;" (assignment_expression "uVar6 = fragP->fr_subtype & 0xfffffffc" identifier = (binary_expression "fragP->fr_subtype & 0xfffffffc" (field_expression "fragP->fr_subtype" identifier -> field_identifier) & number_literal)) ;)) (if_statement "if (flag_short_refs != 0) goto LAB_0004b094;" if (parenthesized_expression "(flag_short_refs != 0)" ( (binary_expression "flag_short_refs != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004b094;" goto statement_identifier ;)) (expression_statement "uVar6 = uVar6 + 2;" (assignment_expression "uVar6 = uVar6 + 2" identifier = (binary_expression "uVar6 + 2" identifier + number_literal)) ;) (expression_statement "fragP->fr_subtype = uVar6;" (assignment_expression "fragP->fr_subtype = uVar6" (field_expression "fragP->fr_subtype" identifier -> field_identifier) = identifier) ;) }))) (break_statement "break;" break ;)) (case_statement "case 0xf:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) goto LAB_0004afcc;\n    uVar6 = (fragP->fr_subtype & 0xfffffffc) + 1;\n    fragP->fr_subtype = uVar6;\n    break;" case number_literal : (expression_statement "paVar3 = S_GET_SEGMENT(fragP->fr_symbol);" (assignment_expression "paVar3 = S_GET_SEGMENT(fragP->fr_symbol)" identifier = (call_expression "S_GET_SEGMENT(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) ;) (if_statement "if (((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)) goto LAB_0004afcc;" if (parenthesized_expression "(((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0))" ( (binary_expression "((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)) &&\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)" (parenthesized_expression "((paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0))" ( (binary_expression "(paVar3 == segment) && (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)" (parenthesized_expression "(paVar3 == segment)" ( (binary_expression "paVar3 == segment" identifier == identifier) )) && (parenthesized_expression "(iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0)" ( (comma_expression "iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 == 0" (assignment_expression "iVar4 = S_IS_EXTERNAL(fragP->fr_symbol)" identifier = (call_expression "S_IS_EXTERNAL(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0)" ( (comma_expression "iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 == 0" (assignment_expression "iVar4 = S_IS_WEAK(fragP->fr_symbol)" identifier = (call_expression "S_IS_WEAK(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_0004afcc;" goto statement_identifier ;)) (expression_statement "uVar6 = (fragP->fr_subtype & 0xfffffffc) + 1;" (assignment_expression "uVar6 = (fragP->fr_subtype & 0xfffffffc) + 1" identifier = (binary_expression "(fragP->fr_subtype & 0xfffffffc) + 1" (parenthesized_expression "(fragP->fr_subtype & 0xfffffffc)" ( (binary_expression "fragP->fr_subtype & 0xfffffffc" (field_expression "fragP->fr_subtype" identifier -> field_identifier) & number_literal) )) + number_literal)) ;) (expression_statement "fragP->fr_subtype = uVar6;" (assignment_expression "fragP->fr_subtype = uVar6" (field_expression "fragP->fr_subtype" identifier -> field_identifier) = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x13:" case number_literal :) (case_statement "case 0x17:" case number_literal :) (case_statement "case 0x1b:" case number_literal :) (case_statement "case 0x1f:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) goto LAB_0004b080;\n    uVar6 = fragP->fr_subtype & 0xfffffffc;\nLAB_0004b094:\n    uVar6 = uVar6 + 1;\n    fragP->fr_subtype = uVar6;\n    break;" case number_literal : (expression_statement "paVar3 = S_GET_SEGMENT(fragP->fr_symbol);" (assignment_expression "paVar3 = S_GET_SEGMENT(fragP->fr_symbol)" identifier = (call_expression "S_GET_SEGMENT(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) ;) (if_statement "if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) goto LAB_0004b080;" if (parenthesized_expression "(((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0))" ( (binary_expression "((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)" (parenthesized_expression "((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0))" ( (binary_expression "(paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)" (parenthesized_expression "(paVar3 != segment)" ( (binary_expression "paVar3 != segment" identifier != identifier) )) || (parenthesized_expression "(iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)" ( (comma_expression "iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0" (assignment_expression "iVar4 = S_IS_EXTERNAL(fragP->fr_symbol)" identifier = (call_expression "S_IS_EXTERNAL(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "(iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)" ( (comma_expression "iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0" (assignment_expression "iVar4 = S_IS_WEAK(fragP->fr_symbol)" identifier = (call_expression "S_IS_WEAK(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_0004b080;" goto statement_identifier ;)) (expression_statement "uVar6 = fragP->fr_subtype & 0xfffffffc;" (assignment_expression "uVar6 = fragP->fr_subtype & 0xfffffffc" identifier = (binary_expression "fragP->fr_subtype & 0xfffffffc" (field_expression "fragP->fr_subtype" identifier -> field_identifier) & number_literal)) ;) (labeled_statement "LAB_0004b094:\n    uVar6 = uVar6 + 1;" statement_identifier : (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;)) (expression_statement "fragP->fr_subtype = uVar6;" (assignment_expression "fragP->fr_subtype = uVar6" (field_expression "fragP->fr_subtype" identifier -> field_identifier) = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x23:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x22;\n      return (uint)md_relax_table[0x228];\n    }\n    fragP->fr_subtype = 0x20;\n    uVar6 = 0x20;\n    goto LAB_0004afeb;" case number_literal : (expression_statement "paVar3 = S_GET_SEGMENT(fragP->fr_symbol);" (assignment_expression "paVar3 = S_GET_SEGMENT(fragP->fr_symbol)" identifier = (call_expression "S_GET_SEGMENT(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) ;) (if_statement "if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x22;\n      return (uint)md_relax_table[0x228];\n    }" if (parenthesized_expression "(((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0))" ( (binary_expression "((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)" (parenthesized_expression "((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0))" ( (binary_expression "(paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)" (parenthesized_expression "(paVar3 != segment)" ( (binary_expression "paVar3 != segment" identifier != identifier) )) || (parenthesized_expression "(iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)" ( (comma_expression "iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0" (assignment_expression "iVar4 = S_IS_EXTERNAL(fragP->fr_symbol)" identifier = (call_expression "S_IS_EXTERNAL(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "(iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)" ( (comma_expression "iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0" (assignment_expression "iVar4 = S_IS_WEAK(fragP->fr_symbol)" identifier = (call_expression "S_IS_WEAK(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      fragP->fr_subtype = 0x22;\n      return (uint)md_relax_table[0x228];\n    }" { (expression_statement "fragP->fr_subtype = 0x22;" (assignment_expression "fragP->fr_subtype = 0x22" (field_expression "fragP->fr_subtype" identifier -> field_identifier) = number_literal) ;) (return_statement "return (uint)md_relax_table[0x228];" return (cast_expression "(uint)md_relax_table[0x228]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "md_relax_table[0x228]" identifier [ number_literal ])) ;) })) (expression_statement "fragP->fr_subtype = 0x20;" (assignment_expression "fragP->fr_subtype = 0x20" (field_expression "fragP->fr_subtype" identifier -> field_identifier) = number_literal) ;) (expression_statement "uVar6 = 0x20;" (assignment_expression "uVar6 = 0x20" identifier = number_literal) ;) (goto_statement "goto LAB_0004afeb;" goto statement_identifier ;)) (case_statement "case 0x27:\n    paVar3 = S_GET_SEGMENT(fragP->fr_symbol);\n    if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x26;\n      return (uint)md_relax_table[0x268];\n    }\n    fragP->fr_subtype = 0x25;\n    uVar6 = 0x25;\n    goto LAB_0004afeb;" case number_literal : (expression_statement "paVar3 = S_GET_SEGMENT(fragP->fr_symbol);" (assignment_expression "paVar3 = S_GET_SEGMENT(fragP->fr_symbol)" identifier = (call_expression "S_GET_SEGMENT(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) ;) (if_statement "if (((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)) {\n      fragP->fr_subtype = 0x26;\n      return (uint)md_relax_table[0x268];\n    }" if (parenthesized_expression "(((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0))" ( (binary_expression "((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)) ||\n       (iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)" (parenthesized_expression "((paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0))" ( (binary_expression "(paVar3 != segment) || (iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)" (parenthesized_expression "(paVar3 != segment)" ( (binary_expression "paVar3 != segment" identifier != identifier) )) || (parenthesized_expression "(iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0)" ( (comma_expression "iVar4 = S_IS_EXTERNAL(fragP->fr_symbol), iVar4 != 0" (assignment_expression "iVar4 = S_IS_EXTERNAL(fragP->fr_symbol)" identifier = (call_expression "S_IS_EXTERNAL(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "(iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0)" ( (comma_expression "iVar4 = S_IS_WEAK(fragP->fr_symbol), iVar4 != 0" (assignment_expression "iVar4 = S_IS_WEAK(fragP->fr_symbol)" identifier = (call_expression "S_IS_WEAK(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      fragP->fr_subtype = 0x26;\n      return (uint)md_relax_table[0x268];\n    }" { (expression_statement "fragP->fr_subtype = 0x26;" (assignment_expression "fragP->fr_subtype = 0x26" (field_expression "fragP->fr_subtype" identifier -> field_identifier) = number_literal) ;) (return_statement "return (uint)md_relax_table[0x268];" return (cast_expression "(uint)md_relax_table[0x268]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "md_relax_table[0x268]" identifier [ number_literal ])) ;) })) (expression_statement "fragP->fr_subtype = 0x25;" (assignment_expression "fragP->fr_subtype = 0x25" (field_expression "fragP->fr_subtype" identifier -> field_identifier) = number_literal) ;) (expression_statement "uVar6 = 0x25;" (assignment_expression "uVar6 = 0x25" identifier = number_literal) ;) (goto_statement "goto LAB_0004afeb;" goto statement_identifier ;)) })) (if_statement "if (((uVar6 < 0xd) && ((1 << ((byte)uVar6 & 0x1f) & 0x1111U) != 0)) &&\n     (fragP->fr_symbol != (symbolS *)0x0)) {\n    pfVar1 = symbol_get_frag(fragP->fr_symbol);\n    vVar2 = S_GET_VALUE(fragP->fr_symbol);\n    if (vVar2 == pfVar1->fr_address) {\n      pfVar5 = fragP->fr_next;\n      uVar6 = fragP->fr_subtype;\n      if ((pfVar1 != pfVar5) && (pfVar5 != (fragS *)0x0)) {\n        do {\n          if (pfVar5->fr_fix != 0) goto LAB_0004afeb;\n          pfVar5 = pfVar5->fr_next;\n        } while ((pfVar5 != (frag *)0x0) && (pfVar1 != pfVar5));\n      }\n      if (pfVar1 == pfVar5) {\n        uVar6 = (uVar6 & 0xfffffffc) + 1;\n        fragP->fr_subtype = uVar6;\n      }\n    }\n    else {\n      uVar6 = fragP->fr_subtype;\n    }\n  }" if (parenthesized_expression "(((uVar6 < 0xd) && ((1 << ((byte)uVar6 & 0x1f) & 0x1111U) != 0)) &&\n     (fragP->fr_symbol != (symbolS *)0x0))" ( (binary_expression "((uVar6 < 0xd) && ((1 << ((byte)uVar6 & 0x1f) & 0x1111U) != 0)) &&\n     (fragP->fr_symbol != (symbolS *)0x0)" (parenthesized_expression "((uVar6 < 0xd) && ((1 << ((byte)uVar6 & 0x1f) & 0x1111U) != 0))" ( (binary_expression "(uVar6 < 0xd) && ((1 << ((byte)uVar6 & 0x1f) & 0x1111U) != 0)" (parenthesized_expression "(uVar6 < 0xd)" ( (binary_expression "uVar6 < 0xd" identifier < number_literal) )) && (parenthesized_expression "((1 << ((byte)uVar6 & 0x1f) & 0x1111U) != 0)" ( (binary_expression "(1 << ((byte)uVar6 & 0x1f) & 0x1111U) != 0" (parenthesized_expression "(1 << ((byte)uVar6 & 0x1f) & 0x1111U)" ( (binary_expression "1 << ((byte)uVar6 & 0x1f) & 0x1111U" (binary_expression "1 << ((byte)uVar6 & 0x1f)" number_literal << (parenthesized_expression "((byte)uVar6 & 0x1f)" ( (binary_expression "(byte)uVar6 & 0x1f" (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(fragP->fr_symbol != (symbolS *)0x0)" ( (binary_expression "fragP->fr_symbol != (symbolS *)0x0" (field_expression "fragP->fr_symbol" identifier -> field_identifier) != (cast_expression "(symbolS *)0x0" ( (type_descriptor "symbolS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    pfVar1 = symbol_get_frag(fragP->fr_symbol);\n    vVar2 = S_GET_VALUE(fragP->fr_symbol);\n    if (vVar2 == pfVar1->fr_address) {\n      pfVar5 = fragP->fr_next;\n      uVar6 = fragP->fr_subtype;\n      if ((pfVar1 != pfVar5) && (pfVar5 != (fragS *)0x0)) {\n        do {\n          if (pfVar5->fr_fix != 0) goto LAB_0004afeb;\n          pfVar5 = pfVar5->fr_next;\n        } while ((pfVar5 != (frag *)0x0) && (pfVar1 != pfVar5));\n      }\n      if (pfVar1 == pfVar5) {\n        uVar6 = (uVar6 & 0xfffffffc) + 1;\n        fragP->fr_subtype = uVar6;\n      }\n    }\n    else {\n      uVar6 = fragP->fr_subtype;\n    }\n  }" { (expression_statement "pfVar1 = symbol_get_frag(fragP->fr_symbol);" (assignment_expression "pfVar1 = symbol_get_frag(fragP->fr_symbol)" identifier = (call_expression "symbol_get_frag(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) ;) (expression_statement "vVar2 = S_GET_VALUE(fragP->fr_symbol);" (assignment_expression "vVar2 = S_GET_VALUE(fragP->fr_symbol)" identifier = (call_expression "S_GET_VALUE(fragP->fr_symbol)" identifier (argument_list "(fragP->fr_symbol)" ( (field_expression "fragP->fr_symbol" identifier -> field_identifier) )))) ;) (if_statement "if (vVar2 == pfVar1->fr_address) {\n      pfVar5 = fragP->fr_next;\n      uVar6 = fragP->fr_subtype;\n      if ((pfVar1 != pfVar5) && (pfVar5 != (fragS *)0x0)) {\n        do {\n          if (pfVar5->fr_fix != 0) goto LAB_0004afeb;\n          pfVar5 = pfVar5->fr_next;\n        } while ((pfVar5 != (frag *)0x0) && (pfVar1 != pfVar5));\n      }\n      if (pfVar1 == pfVar5) {\n        uVar6 = (uVar6 & 0xfffffffc) + 1;\n        fragP->fr_subtype = uVar6;\n      }\n    }\n    else {\n      uVar6 = fragP->fr_subtype;\n    }" if (parenthesized_expression "(vVar2 == pfVar1->fr_address)" ( (binary_expression "vVar2 == pfVar1->fr_address" identifier == (field_expression "pfVar1->fr_address" identifier -> field_identifier)) )) (compound_statement "{\n      pfVar5 = fragP->fr_next;\n      uVar6 = fragP->fr_subtype;\n      if ((pfVar1 != pfVar5) && (pfVar5 != (fragS *)0x0)) {\n        do {\n          if (pfVar5->fr_fix != 0) goto LAB_0004afeb;\n          pfVar5 = pfVar5->fr_next;\n        } while ((pfVar5 != (frag *)0x0) && (pfVar1 != pfVar5));\n      }\n      if (pfVar1 == pfVar5) {\n        uVar6 = (uVar6 & 0xfffffffc) + 1;\n        fragP->fr_subtype = uVar6;\n      }\n    }" { (expression_statement "pfVar5 = fragP->fr_next;" (assignment_expression "pfVar5 = fragP->fr_next" identifier = (field_expression "fragP->fr_next" identifier -> field_identifier)) ;) (expression_statement "uVar6 = fragP->fr_subtype;" (assignment_expression "uVar6 = fragP->fr_subtype" identifier = (field_expression "fragP->fr_subtype" identifier -> field_identifier)) ;) (if_statement "if ((pfVar1 != pfVar5) && (pfVar5 != (fragS *)0x0)) {\n        do {\n          if (pfVar5->fr_fix != 0) goto LAB_0004afeb;\n          pfVar5 = pfVar5->fr_next;\n        } while ((pfVar5 != (frag *)0x0) && (pfVar1 != pfVar5));\n      }" if (parenthesized_expression "((pfVar1 != pfVar5) && (pfVar5 != (fragS *)0x0))" ( (binary_expression "(pfVar1 != pfVar5) && (pfVar5 != (fragS *)0x0)" (parenthesized_expression "(pfVar1 != pfVar5)" ( (binary_expression "pfVar1 != pfVar5" identifier != identifier) )) && (parenthesized_expression "(pfVar5 != (fragS *)0x0)" ( (binary_expression "pfVar5 != (fragS *)0x0" identifier != (cast_expression "(fragS *)0x0" ( (type_descriptor "fragS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        do {\n          if (pfVar5->fr_fix != 0) goto LAB_0004afeb;\n          pfVar5 = pfVar5->fr_next;\n        } while ((pfVar5 != (frag *)0x0) && (pfVar1 != pfVar5));\n      }" { (do_statement "do {\n          if (pfVar5->fr_fix != 0) goto LAB_0004afeb;\n          pfVar5 = pfVar5->fr_next;\n        } while ((pfVar5 != (frag *)0x0) && (pfVar1 != pfVar5));" do (compound_statement "{\n          if (pfVar5->fr_fix != 0) goto LAB_0004afeb;\n          pfVar5 = pfVar5->fr_next;\n        }" { (if_statement "if (pfVar5->fr_fix != 0) goto LAB_0004afeb;" if (parenthesized_expression "(pfVar5->fr_fix != 0)" ( (binary_expression "pfVar5->fr_fix != 0" (field_expression "pfVar5->fr_fix" identifier -> field_identifier) != number_literal) )) (goto_statement "goto LAB_0004afeb;" goto statement_identifier ;)) (expression_statement "pfVar5 = pfVar5->fr_next;" (assignment_expression "pfVar5 = pfVar5->fr_next" identifier = (field_expression "pfVar5->fr_next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "((pfVar5 != (frag *)0x0) && (pfVar1 != pfVar5))" ( (binary_expression "(pfVar5 != (frag *)0x0) && (pfVar1 != pfVar5)" (parenthesized_expression "(pfVar5 != (frag *)0x0)" ( (binary_expression "pfVar5 != (frag *)0x0" identifier != (cast_expression "(frag *)0x0" ( (type_descriptor "frag *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pfVar1 != pfVar5)" ( (binary_expression "pfVar1 != pfVar5" identifier != identifier) ))) )) ;) })) (if_statement "if (pfVar1 == pfVar5) {\n        uVar6 = (uVar6 & 0xfffffffc) + 1;\n        fragP->fr_subtype = uVar6;\n      }" if (parenthesized_expression "(pfVar1 == pfVar5)" ( (binary_expression "pfVar1 == pfVar5" identifier == identifier) )) (compound_statement "{\n        uVar6 = (uVar6 & 0xfffffffc) + 1;\n        fragP->fr_subtype = uVar6;\n      }" { (expression_statement "uVar6 = (uVar6 & 0xfffffffc) + 1;" (assignment_expression "uVar6 = (uVar6 & 0xfffffffc) + 1" identifier = (binary_expression "(uVar6 & 0xfffffffc) + 1" (parenthesized_expression "(uVar6 & 0xfffffffc)" ( (binary_expression "uVar6 & 0xfffffffc" identifier & number_literal) )) + number_literal)) ;) (expression_statement "fragP->fr_subtype = uVar6;" (assignment_expression "fragP->fr_subtype = uVar6" (field_expression "fragP->fr_subtype" identifier -> field_identifier) = identifier) ;) })) }) (else_clause "else {\n      uVar6 = fragP->fr_subtype;\n    }" else (compound_statement "{\n      uVar6 = fragP->fr_subtype;\n    }" { (expression_statement "uVar6 = fragP->fr_subtype;" (assignment_expression "uVar6 = fragP->fr_subtype" identifier = (field_expression "fragP->fr_subtype" identifier -> field_identifier)) ;) }))) })) (labeled_statement "LAB_0004afeb:\n  return (uint)(byte)md_relax_table[uVar6 * 0x10 + 8];" statement_identifier : (return_statement "return (uint)(byte)md_relax_table[uVar6 * 0x10 + 8];" return (cast_expression "(uint)(byte)md_relax_table[uVar6 * 0x10 + 8]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)md_relax_table[uVar6 * 0x10 + 8]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "md_relax_table[uVar6 * 0x10 + 8]" identifier [ (binary_expression "uVar6 * 0x10 + 8" (binary_expression "uVar6 * 0x10" identifier * number_literal) + number_literal) ]))) ;)) })))
(translation_unit "undefined1 FUN_0004af70(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = *(uint *)(param_1 + 0x34);\n  switch(uVar4) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }\n  if (((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)) {\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }\nLAB_0004afeb:\n  return (&DAT_00078508)[uVar4 * 0x10];\n}\n\n" (function_definition "undefined1 FUN_0004af70(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = *(uint *)(param_1 + 0x34);\n  switch(uVar4) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }\n  if (((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)) {\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }\nLAB_0004afeb:\n  return (&DAT_00078508)[uVar4 * 0x10];\n}" type_identifier (function_declarator "FUN_0004af70(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = *(uint *)(param_1 + 0x34);\n  switch(uVar4) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }\n  if (((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)) {\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }\nLAB_0004afeb:\n  return (&DAT_00078508)[uVar4 * 0x10];\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar4 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34)" identifier = (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (switch_statement "switch(uVar4) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }" switch (parenthesized_expression "(uVar4)" ( identifier )) (compound_statement "{\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }" { (case_statement "case 3:" case number_literal :) (case_statement "case 7:" case number_literal :) (case_statement "case 0xb:" case number_literal :) (case_statement "case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;" case number_literal : (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }" if (parenthesized_expression "(((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))" ( (binary_expression "((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (parenthesized_expression "((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))" ( (binary_expression "(iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (parenthesized_expression "(iVar2 == param_2)" ( (binary_expression "iVar2 == param_2" identifier == identifier) )) && (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }" { (labeled_statement "code_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" statement_identifier : (expression_statement "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc" identifier = (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal)) ;)) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }" else (compound_statement "{\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }" { (labeled_statement "code_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" statement_identifier : (expression_statement "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc" identifier = (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal)) ;)) (if_statement "if (DAT_000814ec != 0) goto code_r0x0004b094;" if (parenthesized_expression "(DAT_000814ec != 0)" ( (binary_expression "DAT_000814ec != 0" identifier != number_literal) )) (goto_statement "goto code_r0x0004b094;" goto statement_identifier ;)) (expression_statement "uVar4 = uVar4 + 2;" (assignment_expression "uVar4 = uVar4 + 2" identifier = (binary_expression "uVar4 + 2" identifier + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = identifier) ;) }))) (break_statement "break;" break ;)) (case_statement "case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;" case number_literal : (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;" if (parenthesized_expression "(((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))" ( (binary_expression "((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (parenthesized_expression "((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))" ( (binary_expression "(iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (parenthesized_expression "(iVar2 == param_2)" ( (binary_expression "iVar2 == param_2" identifier == identifier) )) && (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (goto_statement "goto code_r0x0004afcc;" goto statement_identifier ;)) (expression_statement "uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;" (assignment_expression "uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1" identifier = (binary_expression "(*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1" (parenthesized_expression "(*(uint *)(param_1 + 0x34) & 0xfffffffc)" ( (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal) )) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x13:" case number_literal :) (case_statement "case 0x17:" case number_literal :) (case_statement "case 0x1b:" case number_literal :) (case_statement "case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;" case number_literal : (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;" if (parenthesized_expression "(((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" ( (binary_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" ( (binary_expression "(iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "(iVar2 != param_2)" ( (binary_expression "iVar2 != param_2" identifier != identifier) )) || (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (goto_statement "goto code_r0x0004b080;" goto statement_identifier ;)) (expression_statement "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc" identifier = (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal)) ;) (labeled_statement "code_r0x0004b094:\n    uVar4 = uVar4 + 1;" statement_identifier : (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;)) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;" case number_literal : (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }" if (parenthesized_expression "(((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" ( (binary_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" ( (binary_expression "(iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "(iVar2 != param_2)" ( (binary_expression "iVar2 != param_2" identifier != identifier) )) || (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x34) = 0x22;" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = 0x22" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" * (cast_expression "(undefined4 *)(param_1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uRam00078728;" return identifier ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x34) = 0x20;" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = 0x20" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" * (cast_expression "(undefined4 *)(param_1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar4 = 0x20;" (assignment_expression "uVar4 = 0x20" identifier = number_literal) ;) (goto_statement "goto LAB_0004afeb;" goto statement_identifier ;)) (case_statement "case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;" case number_literal : (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }" if (parenthesized_expression "(((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" ( (binary_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" ( (binary_expression "(iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "(iVar2 != param_2)" ( (binary_expression "iVar2 != param_2" identifier != identifier) )) || (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) || (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x34) = 0x26;" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = 0x26" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" * (cast_expression "(undefined4 *)(param_1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uRam00078768;" return identifier ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x34) = 0x25;" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = 0x25" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" * (cast_expression "(undefined4 *)(param_1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar4 = 0x25;" (assignment_expression "uVar4 = 0x25" identifier = number_literal) ;) (goto_statement "goto LAB_0004afeb;" goto statement_identifier ;)) })) (if_statement "if (((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)) {\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }" if (parenthesized_expression "(((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0))" ( (binary_expression "((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)" (parenthesized_expression "((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0))" ( (binary_expression "(uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)" (parenthesized_expression "(uVar4 < 0xd)" ( (binary_expression "uVar4 < 0xd" identifier < number_literal) )) && (parenthesized_expression "((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)" ( (binary_expression "(1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0" (parenthesized_expression "(1 << ((byte)uVar4 & 0x1f) & 0x1111U)" ( (binary_expression "1 << ((byte)uVar4 & 0x1f) & 0x1111U" (binary_expression "1 << ((byte)uVar4 & 0x1f)" number_literal << (parenthesized_expression "((byte)uVar4 & 0x1f)" ( (binary_expression "(byte)uVar4 & 0x1f" (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" ( (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }" { (expression_statement "piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));" (assignment_expression "piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14))" identifier = (cast_expression "(int *)FUN_0003b530(*(int *)(param_1 + 0x14))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003b530(*(int *)(param_1 + 0x14))" identifier (argument_list "(*(int *)(param_1 + 0x14))" ( (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))))) ;) (expression_statement "iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_0003a030(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }" if (parenthesized_expression "(iVar2 == *piVar1)" ( (binary_expression "iVar2 == *piVar1" identifier == (pointer_expression "*piVar1" * identifier)) )) (compound_statement "{\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }" { (expression_statement "piVar3 = *(int **)(param_1 + 0x1c);" (assignment_expression "piVar3 = *(int **)(param_1 + 0x1c)" identifier = (pointer_expression "*(int **)(param_1 + 0x1c)" * (cast_expression "(int **)(param_1 + 0x1c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34)" identifier = (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (if_statement "if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }" if (parenthesized_expression "((piVar1 != piVar3) && (piVar3 != (int *)0x0))" ( (binary_expression "(piVar1 != piVar3) && (piVar3 != (int *)0x0)" (parenthesized_expression "(piVar1 != piVar3)" ( (binary_expression "piVar1 != piVar3" identifier != identifier) )) && (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }" { (do_statement "do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));" do (compound_statement "{\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        }" { (if_statement "if (piVar3[2] != 0) goto LAB_0004afeb;" if (parenthesized_expression "(piVar3[2] != 0)" ( (binary_expression "piVar3[2] != 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_0004afeb;" goto statement_identifier ;)) (expression_statement "piVar3 = (int *)piVar3[7];" (assignment_expression "piVar3 = (int *)piVar3[7]" identifier = (cast_expression "(int *)piVar3[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[7]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "((piVar3 != (int *)0x0) && (piVar1 != piVar3))" ( (binary_expression "(piVar3 != (int *)0x0) && (piVar1 != piVar3)" (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(piVar1 != piVar3)" ( (binary_expression "piVar1 != piVar3" identifier != identifier) ))) )) ;) })) (if_statement "if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }" if (parenthesized_expression "(piVar1 == piVar3)" ( (binary_expression "piVar1 == piVar3" identifier == identifier) )) (compound_statement "{\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }" { (expression_statement "uVar4 = (uVar4 & 0xfffffffc) + 1;" (assignment_expression "uVar4 = (uVar4 & 0xfffffffc) + 1" identifier = (binary_expression "(uVar4 & 0xfffffffc) + 1" (parenthesized_expression "(uVar4 & 0xfffffffc)" ( (binary_expression "uVar4 & 0xfffffffc" identifier & number_literal) )) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = identifier) ;) })) }) (else_clause "else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }" else (compound_statement "{\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }" { (expression_statement "uVar4 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34)" identifier = (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) }))) })) (labeled_statement "LAB_0004afeb:\n  return (&DAT_00078508)[uVar4 * 0x10];" statement_identifier : (return_statement "return (&DAT_00078508)[uVar4 * 0x10];" return (subscript_expression "(&DAT_00078508)[uVar4 * 0x10]" (parenthesized_expression "(&DAT_00078508)" ( (pointer_expression "&DAT_00078508" & identifier) )) [ (binary_expression "uVar4 * 0x10" identifier * number_literal) ]) ;)) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (binary_expression IDENT == LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (binary_expression IDENT == LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (binary_expression IDENT == LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (break_statement break ;)) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (binary_expression IDENT != LIT)) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (binary_expression IDENT != LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (binary_expression IDENT != LIT)) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (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) )))) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (binary_expression IDENT != LIT)) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (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) )))) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) & LIT) )) != LIT) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != IDENT) ))) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) })) (labeled_statement statement_identifier : (return_statement return (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression IDENT * LIT) ]) ;)) })))
(function_definition "undefined1 FUN_0004af70(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = *(uint *)(param_1 + 0x34);\n  switch(uVar4) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }\n  if (((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)) {\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }\nLAB_0004afeb:\n  return (&DAT_00078508)[uVar4 * 0x10];\n}" (type_identifier "undefined1") (function_declarator "FUN_0004af70(int param_1,int param_2)" (identifier "FUN_0004af70") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  \n  uVar4 = *(uint *)(param_1 + 0x34);\n  switch(uVar4) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }\n  if (((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)) {\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }\nLAB_0004afeb:\n  return (&DAT_00078508)[uVar4 * 0x10];\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (expression_statement "uVar4 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (switch_statement "switch(uVar4) {\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }" (switch "switch") (parenthesized_expression "(uVar4)" (( "(") (identifier "uVar4") () ")")) (compound_statement "{\n  case 3:\n  case 7:\n  case 0xb:\n  case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;\n  case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x13:\n  case 0x17:\n  case 0x1b:\n  case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;\n  case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;\n  case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;\n  }" ({ "{") (case_statement "case 3:" (case "case") (number_literal "3") (: ":")) (case_statement "case 7:" (case "case") (number_literal "7") (: ":")) (case_statement "case 0xb:" (case "case") (number_literal "0xb") (: ":")) (case_statement "case 0x2b:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    break;" (case "case") (number_literal "0x2b") (: ":") (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_000389a0") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (if_statement "if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }\n    else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }" (if "if") (parenthesized_expression "(((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))" (( "(") (binary_expression "((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (parenthesized_expression "((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))" (( "(") (binary_expression "(iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (parenthesized_expression "(iVar2 == param_2)" (( "(") (binary_expression "iVar2 == param_2" (identifier "iVar2") (== "==") (identifier "param_2")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (( "(") (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_000383f0") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (( "(") (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_00038460") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\ncode_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }" ({ "{") (labeled_statement "code_r0x0004afcc:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" (statement_identifier "code_r0x0004afcc") (: ":") (expression_statement "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc" (identifier "uVar4") (= "=") (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (& "&") (number_literal "0xfffffffc"))) (; ";"))) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}")) (else_clause "else {\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }" (else "else") (compound_statement "{\ncode_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\n      if (DAT_000814ec != 0) goto code_r0x0004b094;\n      uVar4 = uVar4 + 2;\n      *(uint *)(param_1 + 0x34) = uVar4;\n    }" ({ "{") (labeled_statement "code_r0x0004b080:\n      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" (statement_identifier "code_r0x0004b080") (: ":") (expression_statement "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc" (identifier "uVar4") (= "=") (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (& "&") (number_literal "0xfffffffc"))) (; ";"))) (if_statement "if (DAT_000814ec != 0) goto code_r0x0004b094;" (if "if") (parenthesized_expression "(DAT_000814ec != 0)" (( "(") (binary_expression "DAT_000814ec != 0" (identifier "DAT_000814ec") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto code_r0x0004b094;" (goto "goto") (statement_identifier "code_r0x0004b094") (; ";"))) (expression_statement "uVar4 = uVar4 + 2;" (assignment_expression "uVar4 = uVar4 + 2" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 2" (identifier "uVar4") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}")))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0xf:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;\n    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;" (case "case") (number_literal "0xf") (: ":") (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_000389a0") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (if_statement "if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n    goto code_r0x0004afcc;" (if "if") (parenthesized_expression "(((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))" (( "(") (binary_expression "((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))\n       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (parenthesized_expression "((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))" (( "(") (binary_expression "(iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (parenthesized_expression "(iVar2 == param_2)" (( "(") (binary_expression "iVar2 == param_2" (identifier "iVar2") (== "==") (identifier "param_2")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (( "(") (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_000383f0") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)" (( "(") (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_00038460") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto code_r0x0004afcc;" (goto "goto") (statement_identifier "code_r0x0004afcc") (; ";"))) (expression_statement "uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;" (assignment_expression "uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1" (identifier "uVar4") (= "=") (binary_expression "(*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1" (parenthesized_expression "(*(uint *)(param_1 + 0x34) & 0xfffffffc)" (( "(") (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x13:" (case "case") (number_literal "0x13") (: ":")) (case_statement "case 0x17:" (case "case") (number_literal "0x17") (: ":")) (case_statement "case 0x1b:" (case "case") (number_literal "0x1b") (: ":")) (case_statement "case 0x1f:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;\n    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;\ncode_r0x0004b094:\n    uVar4 = uVar4 + 1;\n    *(uint *)(param_1 + 0x34) = uVar4;\n    break;" (case "case") (number_literal "0x1f") (: ":") (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_000389a0") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (if_statement "if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n    goto code_r0x0004b080;" (if "if") (parenthesized_expression "(((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" (( "(") (binary_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" (( "(") (binary_expression "(iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "(iVar2 != param_2)" (( "(") (binary_expression "iVar2 != param_2" (identifier "iVar2") (!= "!=") (identifier "param_2")) () ")")) (|| "||") (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (( "(") (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_000383f0") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (( "(") (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_00038460") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto code_r0x0004b080;" (goto "goto") (statement_identifier "code_r0x0004b080") (; ";"))) (expression_statement "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc" (identifier "uVar4") (= "=") (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffffc" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (& "&") (number_literal "0xfffffffc"))) (; ";")) (labeled_statement "code_r0x0004b094:\n    uVar4 = uVar4 + 1;" (statement_identifier "code_r0x0004b094") (: ":") (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x23:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x20;\n    uVar4 = 0x20;\n    goto LAB_0004afeb;" (case "case") (number_literal "0x23") (: ":") (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_000389a0") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (if_statement "if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }" (if "if") (parenthesized_expression "(((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" (( "(") (binary_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" (( "(") (binary_expression "(iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "(iVar2 != param_2)" (( "(") (binary_expression "iVar2 != param_2" (identifier "iVar2") (!= "!=") (identifier "param_2")) () ")")) (|| "||") (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (( "(") (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_000383f0") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (( "(") (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_00038460") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x34) = 0x22;\n      return uRam00078728;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x34) = 0x22;" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = 0x22" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (number_literal "0x22")) (; ";")) (return_statement "return uRam00078728;" (return "return") (identifier "uRam00078728") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x34) = 0x20;" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = 0x20" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (number_literal "0x20")) (; ";")) (expression_statement "uVar4 = 0x20;" (assignment_expression "uVar4 = 0x20" (identifier "uVar4") (= "=") (number_literal "0x20")) (; ";")) (goto_statement "goto LAB_0004afeb;" (goto "goto") (statement_identifier "LAB_0004afeb") (; ";"))) (case_statement "case 0x27:\n    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));\n    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }\n    *(undefined4 *)(param_1 + 0x34) = 0x25;\n    uVar4 = 0x25;\n    goto LAB_0004afeb;" (case "case") (number_literal "0x27") (: ":") (expression_statement "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_000389a0(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_000389a0") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (if_statement "if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }" (if "if") (parenthesized_expression "(((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" (( "(") (binary_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))\n       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))" (( "(") (binary_expression "(iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (parenthesized_expression "(iVar2 != param_2)" (( "(") (binary_expression "iVar2 != param_2" (identifier "iVar2") (!= "!=") (identifier "param_2")) () ")")) (|| "||") (parenthesized_expression "(iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (( "(") (comma_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_000383f0(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_000383f0") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)" (( "(") (comma_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0" (assignment_expression "iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_00038460(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_00038460") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x34) = 0x26;\n      return uRam00078768;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x34) = 0x26;" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = 0x26" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (number_literal "0x26")) (; ";")) (return_statement "return uRam00078768;" (return "return") (identifier "uRam00078768") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x34) = 0x25;" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = 0x25" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (number_literal "0x25")) (; ";")) (expression_statement "uVar4 = 0x25;" (assignment_expression "uVar4 = 0x25" (identifier "uVar4") (= "=") (number_literal "0x25")) (; ";")) (goto_statement "goto LAB_0004afeb;" (goto "goto") (statement_identifier "LAB_0004afeb") (; ";"))) (} "}"))) (if_statement "if (((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)) {\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }" (if "if") (parenthesized_expression "(((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0))" (( "(") (binary_expression "((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&\n     (*(int *)(param_1 + 0x14) != 0)" (parenthesized_expression "((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0))" (( "(") (binary_expression "(uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)" (parenthesized_expression "(uVar4 < 0xd)" (( "(") (binary_expression "uVar4 < 0xd" (identifier "uVar4") (< "<") (number_literal "0xd")) () ")")) (&& "&&") (parenthesized_expression "((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)" (( "(") (binary_expression "(1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0" (parenthesized_expression "(1 << ((byte)uVar4 & 0x1f) & 0x1111U)" (( "(") (binary_expression "1 << ((byte)uVar4 & 0x1f) & 0x1111U" (binary_expression "1 << ((byte)uVar4 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)uVar4 & 0x1f)" (( "(") (binary_expression "(byte)uVar4 & 0x1f" (cast_expression "(byte)uVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar4")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "0x1111U")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));\n    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));\n    if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }\n  }" ({ "{") (expression_statement "piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));" (assignment_expression "piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14))" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_0003b530(*(int *)(param_1 + 0x14))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003b530(*(int *)(param_1 + 0x14))" (identifier "FUN_0003b530") (argument_list "(*(int *)(param_1 + 0x14))" (( "(") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")"))))) (; ";")) (expression_statement "iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar2") (= "=") (call_expression "FUN_0003a030(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_0003a030") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar2 == *piVar1) {\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }\n    else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }" (if "if") (parenthesized_expression "(iVar2 == *piVar1)" (( "(") (binary_expression "iVar2 == *piVar1" (identifier "iVar2") (== "==") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) () ")")) (compound_statement "{\n      piVar3 = *(int **)(param_1 + 0x1c);\n      uVar4 = *(uint *)(param_1 + 0x34);\n      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }\n      if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }\n    }" ({ "{") (expression_statement "piVar3 = *(int **)(param_1 + 0x1c);" (assignment_expression "piVar3 = *(int **)(param_1 + 0x1c)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + 0x1c)" (* "*") (cast_expression "(int **)(param_1 + 0x1c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (if_statement "if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }" (if "if") (parenthesized_expression "((piVar1 != piVar3) && (piVar3 != (int *)0x0))" (( "(") (binary_expression "(piVar1 != piVar3) && (piVar3 != (int *)0x0)" (parenthesized_expression "(piVar1 != piVar3)" (( "(") (binary_expression "piVar1 != piVar3" (identifier "piVar1") (!= "!=") (identifier "piVar3")) () ")")) (&& "&&") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n        do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));\n      }" ({ "{") (do_statement "do {\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));" (do "do") (compound_statement "{\n          if (piVar3[2] != 0) goto LAB_0004afeb;\n          piVar3 = (int *)piVar3[7];\n        }" ({ "{") (if_statement "if (piVar3[2] != 0) goto LAB_0004afeb;" (if "if") (parenthesized_expression "(piVar3[2] != 0)" (( "(") (binary_expression "piVar3[2] != 0" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0004afeb;" (goto "goto") (statement_identifier "LAB_0004afeb") (; ";"))) (expression_statement "piVar3 = (int *)piVar3[7];" (assignment_expression "piVar3 = (int *)piVar3[7]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar3[7]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[7]" (identifier "piVar3") ([ "[") (number_literal "7") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((piVar3 != (int *)0x0) && (piVar1 != piVar3))" (( "(") (binary_expression "(piVar3 != (int *)0x0) && (piVar1 != piVar3)" (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(piVar1 != piVar3)" (( "(") (binary_expression "piVar1 != piVar3" (identifier "piVar1") (!= "!=") (identifier "piVar3")) () ")"))) () ")")) (; ";")) (} "}"))) (if_statement "if (piVar1 == piVar3) {\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }" (if "if") (parenthesized_expression "(piVar1 == piVar3)" (( "(") (binary_expression "piVar1 == piVar3" (identifier "piVar1") (== "==") (identifier "piVar3")) () ")")) (compound_statement "{\n        uVar4 = (uVar4 & 0xfffffffc) + 1;\n        *(uint *)(param_1 + 0x34) = uVar4;\n      }" ({ "{") (expression_statement "uVar4 = (uVar4 & 0xfffffffc) + 1;" (assignment_expression "uVar4 = (uVar4 & 0xfffffffc) + 1" (identifier "uVar4") (= "=") (binary_expression "(uVar4 & 0xfffffffc) + 1" (parenthesized_expression "(uVar4 & 0xfffffffc)" (( "(") (binary_expression "uVar4 & 0xfffffffc" (identifier "uVar4") (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x34) = uVar4;" (assignment_expression "*(uint *)(param_1 + 0x34) = uVar4" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }" (else "else") (compound_statement "{\n      uVar4 = *(uint *)(param_1 + 0x34);\n    }" ({ "{") (expression_statement "uVar4 = *(uint *)(param_1 + 0x34);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x34)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (} "}")))) (} "}"))) (labeled_statement "LAB_0004afeb:\n  return (&DAT_00078508)[uVar4 * 0x10];" (statement_identifier "LAB_0004afeb") (: ":") (return_statement "return (&DAT_00078508)[uVar4 * 0x10];" (return "return") (subscript_expression "(&DAT_00078508)[uVar4 * 0x10]" (parenthesized_expression "(&DAT_00078508)" (( "(") (pointer_expression "&DAT_00078508" (& "&") (identifier "DAT_00078508")) () ")")) ([ "[") (binary_expression "uVar4 * 0x10" (identifier "uVar4") (* "*") (number_literal "0x10")) (] "]")) (; ";"))) (} "}")))

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

int function_1(type_1 *fragP,type_2 var_3)

{
  type_1 *var_12;
  type_3 var_11;
  type_2 var_2;
  int var_5;
  type_1 *var_13;
  type_4 var_8;
  
  var_8 = fragP->fr_subtype;
  switch(var_8) {
  case 3:
  case 7:
  case 0xb:
  case 0x2b:
    var_2 = var_1(fragP->fr_symbol);
    if (((var_2 == var_3) && (var_5 = var_4(fragP->fr_symbol), var_5 == 0)) &&
       (var_5 = var_6(fragP->fr_symbol), var_5 == 0)) {
LAB_0004afcc:
      var_8 = fragP->fr_subtype & 0xfffffffc;
      fragP->fr_subtype = var_8;
    }
    else {
LAB_0004b080:
      var_8 = fragP->fr_subtype & 0xfffffffc;
      if (var_7 != 0) goto LAB_0004b094;
      var_8 = var_8 + 2;
      fragP->fr_subtype = var_8;
    }
    break;
  case 0xf:
    var_2 = var_1(fragP->fr_symbol);
    if (((var_2 == var_3) && (var_5 = var_4(fragP->fr_symbol), var_5 == 0)) &&
       (var_5 = var_6(fragP->fr_symbol), var_5 == 0)) goto LAB_0004afcc;
    var_8 = (fragP->fr_subtype & 0xfffffffc) + 1;
    fragP->fr_subtype = var_8;
    break;
  case 0x13:
  case 0x17:
  case 0x1b:
  case 0x1f:
    var_2 = var_1(fragP->fr_symbol);
    if (((var_2 != var_3) || (var_5 = var_4(fragP->fr_symbol), var_5 != 0)) ||
       (var_5 = var_6(fragP->fr_symbol), var_5 != 0)) goto LAB_0004b080;
    var_8 = fragP->fr_subtype & 0xfffffffc;
LAB_0004b094:
    var_8 = var_8 + 1;
    fragP->fr_subtype = var_8;
    break;
  case 0x23:
    var_2 = var_1(fragP->fr_symbol);
    if (((var_2 != var_3) || (var_5 = var_4(fragP->fr_symbol), var_5 != 0)) ||
       (var_5 = var_6(fragP->fr_symbol), var_5 != 0)) {
      fragP->fr_subtype = 0x22;
      return (type_4)md_relax_table[0x228];
    }
    fragP->fr_subtype = 0x20;
    var_8 = 0x20;
    goto LAB_0004afeb;
  case 0x27:
    var_2 = var_1(fragP->fr_symbol);
    if (((var_2 != var_3) || (var_5 = var_4(fragP->fr_symbol), var_5 != 0)) ||
       (var_5 = var_6(fragP->fr_symbol), var_5 != 0)) {
      fragP->fr_subtype = 0x26;
      return (type_4)md_relax_table[0x268];
    }
    fragP->fr_subtype = 0x25;
    var_8 = 0x25;
    goto LAB_0004afeb;
  }
  if (((var_8 < 0xd) && ((1 << ((type_5)var_8 & 0x1f) & 0x1111U) != 0)) &&
     (fragP->fr_symbol != (type_6 *)0x0)) {
    var_12 = var_9(fragP->fr_symbol);
    var_11 = var_10(fragP->fr_symbol);
    if (var_11 == var_12->fr_address) {
      var_13 = fragP->fr_next;
      var_8 = fragP->fr_subtype;
      if ((var_12 != var_13) && (var_13 != (type_1 *)0x0)) {
        do {
          if (var_13->fr_fix != 0) goto LAB_0004afeb;
          var_13 = var_13->fr_next;
        } while ((var_13 != (type_7 *)0x0) && (var_12 != var_13));
      }
      if (var_12 == var_13) {
        var_8 = (var_8 & 0xfffffffc) + 1;
        fragP->fr_subtype = var_8;
      }
    }
    else {
      var_8 = fragP->fr_subtype;
    }
  }
LAB_0004afeb:
  return (type_4)(type_5)md_relax_table[var_8 * 0x10 + 8];
}


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

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

undefined1 MASKED(int param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  
  uVar4 = *(uint *)(param_1 + 0x34);
  switch(uVar4) {
  case 3:
  case 7:
  case 0xb:
  case 0x2b:
    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));
    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))
       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0)) {
code_r0x0004afcc:
      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;
      *(uint *)(param_1 + 0x34) = uVar4;
    }
    else {
code_r0x0004b080:
      uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;
      if (DAT_000814ec != 0) goto code_r0x0004b094;
      uVar4 = uVar4 + 2;
      *(uint *)(param_1 + 0x34) = uVar4;
    }
    break;
  case 0xf:
    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));
    if (((iVar2 == param_2) && (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))
       && (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 == 0))
    goto code_r0x0004afcc;
    uVar4 = (*(uint *)(param_1 + 0x34) & 0xfffffffc) + 1;
    *(uint *)(param_1 + 0x34) = uVar4;
    break;
  case 0x13:
  case 0x17:
  case 0x1b:
  case 0x1f:
    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));
    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))
       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))
    goto code_r0x0004b080;
    uVar4 = *(uint *)(param_1 + 0x34) & 0xfffffffc;
code_r0x0004b094:
    uVar4 = uVar4 + 1;
    *(uint *)(param_1 + 0x34) = uVar4;
    break;
  case 0x23:
    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));
    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))
       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {
      *(undefined4 *)(param_1 + 0x34) = 0x22;
      return uRam00078728;
    }
    *(undefined4 *)(param_1 + 0x34) = 0x20;
    uVar4 = 0x20;
    goto LAB_0004afeb;
  case 0x27:
    iVar2 = FUN_000389a0(*(undefined4 *)(param_1 + 0x14));
    if (((iVar2 != param_2) || (iVar2 = FUN_000383f0(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0))
       || (iVar2 = FUN_00038460(*(undefined4 *)(param_1 + 0x14)), iVar2 != 0)) {
      *(undefined4 *)(param_1 + 0x34) = 0x26;
      return uRam00078768;
    }
    *(undefined4 *)(param_1 + 0x34) = 0x25;
    uVar4 = 0x25;
    goto LAB_0004afeb;
  }
  if (((uVar4 < 0xd) && ((1 << ((byte)uVar4 & 0x1f) & 0x1111U) != 0)) &&
     (*(int *)(param_1 + 0x14) != 0)) {
    piVar1 = (int *)FUN_0003b530(*(int *)(param_1 + 0x14));
    iVar2 = FUN_0003a030(*(undefined4 *)(param_1 + 0x14));
    if (iVar2 == *piVar1) {
      piVar3 = *(int **)(param_1 + 0x1c);
      uVar4 = *(uint *)(param_1 + 0x34);
      if ((piVar1 != piVar3) && (piVar3 != (int *)0x0)) {
        do {
          if (piVar3[2] != 0) goto LAB_0004afeb;
          piVar3 = (int *)piVar3[7];
        } while ((piVar3 != (int *)0x0) && (piVar1 != piVar3));
      }
      if (piVar1 == piVar3) {
        uVar4 = (uVar4 & 0xfffffffc) + 1;
        *(uint *)(param_1 + 0x34) = uVar4;
      }
    }
    else {
      uVar4 = *(uint *)(param_1 + 0x34);
    }
  }
LAB_0004afeb:
  return (&DAT_00078508)[uVar4 * 0x10];
}

