
/* DWARF original name: get_fde_pc<32, true>
   DWARF original prototype: Elf_Addr get_fde_pc<32,_true>(Eh_frame_hdr * this, Elf_Addr
   eh_frame_address, uchar * eh_frame_contents, section_offset_type fde_offset, uchar fde_encoding)
    */

Elf_Addr __thiscall
gold::Eh_frame_hdr::get_fde_pc<32,_true>
          (Eh_frame_hdr *this,Elf_Addr eh_frame_address,uchar *eh_frame_contents,
          section_offset_type fde_offset,uchar fde_encoding)

{
  uint uVar1;
  int *piVar2;
  ushort uVar3;
  int iVar4;
  byte bVar5;
  Elf_Addr EVar6;
  int unaff_EDI;
  
  __x86_get_pc_thunk_di();
  bVar5 = fde_encoding & 7;
  if (((fde_encoding & 7) == 0) || (bVar5 == 3)) {
    uVar1 = *(uint *)(eh_frame_contents + fde_offset + 8);
    EVar6 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
  }
  else {
    if (bVar5 == 4) {
                    /* WARNING: Subroutine does not return */
      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x104,(char *)(unaff_EDI + 0xec3f2));
    }
    if (bVar5 != 2) {
                    /* WARNING: Subroutine does not return */
      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x10a,(char *)(unaff_EDI + 0xec3f2));
    }
    uVar3 = (ushort)*(uint *)(eh_frame_contents + fde_offset + 8);
    uVar3 = uVar3 << 8 | uVar3 >> 8;
    EVar6 = (Elf_Addr)uVar3;
    if ((fde_encoding & 8) != 0) {
      EVar6 = (ushort)(uVar3 + 0x8000) - 0x8000;
    }
  }
  if ((fde_encoding & 0x70) == 0x10) {
    EVar6 = EVar6 + eh_frame_address + 8 + fde_offset;
  }
  else if ((fde_encoding & 0x70) == 0x30) {
    piVar2 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);
    if (piVar2 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
      do_gold_unreachable((char *)(unaff_EDI + 0xd480a),0x69,(char *)(unaff_EDI + 0xec416));
    }
    iVar4 = (**(code **)(*piVar2 + 0x50))(piVar2);
    EVar6 = EVar6 + iVar4;
  }
  else if ((fde_encoding & 0x70) != 0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x11d,(char *)(unaff_EDI + 0xec3f2));
  }
  if ((char)fde_encoding < '\0') {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x120,(char *)(unaff_EDI + 0xec3f2));
  }
  return EVar6;
}



uint FUN_001b2a00(undefined4 param_1,int param_2,int param_3,int param_4,uint param_5)

{
  int *piVar1;
  ushort uVar2;
  uint *puVar3;
  uint uVar4;
  char cVar5;
  uint uVar6;
  uint uVar7;
  int unaff_EDI;
  
  FUN_000559ee();
  puVar3 = (uint *)(param_4 + 8 + param_3);
  uVar6 = param_5 & 7;
  if ((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')) {
    uVar7 = *puVar3;
    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;
  }
  else {
    if (cVar5 == '\x04') {
                    /* WARNING: Subroutine does not return */
      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);
    }
    if (cVar5 != '\x02') {
                    /* WARNING: Subroutine does not return */
      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);
    }
    uVar2 = (ushort)*puVar3;
    uVar2 = uVar2 << 8 | uVar2 >> 8;
    uVar7 = (uint)uVar2;
    if ((param_5 & 8) != 0) {
      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;
    }
  }
  if (((byte)param_5 & 0x70) == 0x10) {
    uVar4 = param_2 + 8 + param_4;
    uVar7 = uVar7 + uVar4;
  }
  else {
    uVar4 = param_5 & 0x70;
    if ((char)uVar4 == '0') {
      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);
      if (piVar1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);
      }
      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);
      uVar7 = uVar7 + uVar4;
    }
    else if ((char)uVar4 != '\0') {
                    /* WARNING: Subroutine does not return */
      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);
    }
  }
  if ((char)(byte)param_5 < '\0') {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);
  }
  return uVar7;
}


PUSH EDI
CALL 0x000559ee
ADD EDI,0x1dc5fa
PUSH ESI
PUSH EBX
MOV EBX,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [ESP + 0x1c]
MOV ECX,EBX
LEA EAX,[EDX + 0x8]
ADD EAX,dword ptr [ESP + 0x18]
AND ECX,0x7
JZ 0x001b2a80
CMP CL,0x3
JZ 0x001b2a80
CMP CL,0x4
JZ 0x001b2aea
CMP CL,0x2
JNZ 0x001b2b05
MOVZX EAX,word ptr [EAX]
ROL AX,0x8
MOVZX ESI,AX
TEST BL,0x8
JZ 0x001b2a84
LEA ESI,[EAX + 0xffff8000]
MOV EAX,EBX
MOVZX ESI,SI
AND EAX,0x70
SUB ESI,0x8000
CMP AL,0x10
JNZ 0x001b2a8d
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x14]
LEA EAX,[EAX + EDX*0x1 + 0x8]
ADD ESI,EAX
TEST BL,BL
JS 0x001b2acf
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
MOV ESI,dword ptr [EAX]
BSWAP ESI
MOV EAX,EBX
AND EAX,0x70
CMP AL,0x10
JZ 0x001b2a68
CMP AL,0x30
JZ 0x001b2ab0
TEST AL,AL
JZ 0x001b2a72
LEA EAX,[EDI + 0xfff0fdf8]
PUSH EDX
MOV EBX,EDI
PUSH EAX
LEA EAX,[EDI + 0xfff0fc01]
PUSH 0x11d
PUSH EAX
CALL 0x00069d00
LEA EAX,[EDI + 0x378]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JZ 0x001b2b20
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x50]
ADD ESI,EAX
ADD ESP,0x10
JMP 0x001b2a72
PUSH EAX
LEA EAX,[EDI + 0xfff0fdf8]
MOV EBX,EDI
PUSH EAX
LEA EAX,[EDI + 0xfff0fc01]
PUSH 0x120
PUSH EAX
CALL 0x00069d00
LEA EAX,[EDI + 0xfff0fdf8]
PUSH ESI
MOV EBX,EDI
PUSH EAX
LEA EAX,[EDI + 0xfff0fc01]
PUSH 0x104
PUSH EAX
CALL 0x00069d00
LEA EAX,[EDI + 0xfff0fdf8]
PUSH EBX
MOV EBX,EDI
PUSH EAX
LEA EAX,[EDI + 0xfff0fc01]
PUSH 0x10a
PUSH EAX
CALL 0x00069d00
LEA EAX,[EDI + 0xfff0fe1c]
PUSH ECX
MOV EBX,EDI
PUSH EAX
LEA EAX,[EDI + 0xffef8210]
PUSH 0x69
PUSH EAX
CALL 0x00069d00
(translation_unit "uint FUN_001b2a00(undefined4 param_1,int param_2,int param_3,int param_4,uint param_5)\n\n{\n  int *piVar1;\n  ushort uVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  puVar3 = (uint *)(param_4 + 8 + param_3);\n  uVar6 = param_5 & 7;\n  if ((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')) {\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }\n  else {\n    if (cVar5 == '\x04') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }\n  if (((byte)param_5 & 0x70) == 0x10) {\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }\n  else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }\n  if ((char)(byte)param_5 < '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }\n  return uVar7;\n}\n\n" (function_definition "uint FUN_001b2a00(undefined4 param_1,int param_2,int param_3,int param_4,uint param_5)\n\n{\n  int *piVar1;\n  ushort uVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  puVar3 = (uint *)(param_4 + 8 + param_3);\n  uVar6 = param_5 & 7;\n  if ((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')) {\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }\n  else {\n    if (cVar5 == '\x04') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }\n  if (((byte)param_5 & 0x70) == 0x10) {\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }\n  else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }\n  if ((char)(byte)param_5 < '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }\n  return uVar7;\n}" type_identifier (function_declarator "FUN_001b2a00(undefined4 param_1,int param_2,int param_3,int param_4,uint param_5)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,int param_4,uint param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  ushort uVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  puVar3 = (uint *)(param_4 + 8 + param_3);\n  uVar6 = param_5 & 7;\n  if ((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')) {\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }\n  else {\n    if (cVar5 == '\x04') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }\n  if (((byte)param_5 & 0x70) == 0x10) {\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }\n  else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }\n  if ((char)(byte)param_5 < '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }\n  return uVar7;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar3 = (uint *)(param_4 + 8 + param_3);" (assignment_expression "puVar3 = (uint *)(param_4 + 8 + param_3)" identifier = (cast_expression "(uint *)(param_4 + 8 + param_3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8 + param_3)" ( (binary_expression "param_4 + 8 + param_3" (binary_expression "param_4 + 8" identifier + number_literal) + identifier) )))) ;) (expression_statement "uVar6 = param_5 & 7;" (assignment_expression "uVar6 = param_5 & 7" identifier = (binary_expression "param_5 & 7" identifier & number_literal)) ;) (if_statement "if ((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')) {\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }\n  else {\n    if (cVar5 == '\x04') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }" if (parenthesized_expression "((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03'))" ( (binary_expression "(uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')" (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) || (parenthesized_expression "(cVar5 = (char)uVar6, cVar5 == '\x03')" ( (comma_expression "cVar5 = (char)uVar6, cVar5 == '\x03'" (assignment_expression "cVar5 = (char)uVar6" identifier = (cast_expression "(char)uVar6" ( (type_descriptor "char" primitive_type) ) identifier)) , (binary_expression "cVar5 == '\x03'" identifier == (char_literal "'\x03'" ' escape_sequence '))) ))) )) (compound_statement "{\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }" { (expression_statement "uVar7 = *puVar3;" (assignment_expression "uVar7 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;" (assignment_expression "uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18" identifier = (binary_expression "uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18" (binary_expression "uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8" (binary_expression "uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8" (binary_expression "uVar7 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar7 & 0xff0000) >> 8" (parenthesized_expression "(uVar7 & 0xff0000)" ( (binary_expression "uVar7 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar7 & 0xff00) << 8" (parenthesized_expression "(uVar7 & 0xff00)" ( (binary_expression "uVar7 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar7 << 0x18" identifier << number_literal))) ;) }) (else_clause "else {\n    if (cVar5 == '\x04') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }" else (compound_statement "{\n    if (cVar5 == '\x04') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }" { (if_statement "if (cVar5 == '\x04') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }" if (parenthesized_expression "(cVar5 == '\x04')" ( (binary_expression "cVar5 == '\x04'" identifier == (char_literal "'\x04'" ' escape_sequence ')) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }" { comment (expression_statement "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);" (call_expression "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2)" identifier (argument_list "(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2)" ( (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" & identifier) + identifier) , number_literal , (binary_expression "unaff_EDI + 0xec3f2" identifier + number_literal) ))) ;) })) (if_statement "if (cVar5 != '\x02') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }" if (parenthesized_expression "(cVar5 != '\x02')" ( (binary_expression "cVar5 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }" { comment (expression_statement "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);" (call_expression "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5)" identifier (argument_list "(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5)" ( (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" & identifier) + identifier) , number_literal , (binary_expression "unaff_EDI + 0xec3f2" identifier + number_literal) , identifier ))) ;) })) (expression_statement "uVar2 = (ushort)*puVar3;" (assignment_expression "uVar2 = (ushort)*puVar3" identifier = (binary_expression "(ushort)*puVar3" (parenthesized_expression "(ushort)" ( identifier )) * identifier)) ;) (expression_statement "uVar2 = uVar2 << 8 | uVar2 >> 8;" (assignment_expression "uVar2 = uVar2 << 8 | uVar2 >> 8" identifier = (binary_expression "uVar2 << 8 | uVar2 >> 8" (binary_expression "uVar2 << 8" identifier << number_literal) | (binary_expression "uVar2 >> 8" identifier >> number_literal))) ;) (expression_statement "uVar7 = (uint)uVar2;" (assignment_expression "uVar7 = (uint)uVar2" identifier = (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }" if (parenthesized_expression "((param_5 & 8) != 0)" ( (binary_expression "(param_5 & 8) != 0" (parenthesized_expression "(param_5 & 8)" ( (binary_expression "param_5 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }" { (expression_statement "uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;" (assignment_expression "uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000" identifier = (binary_expression "(ushort)(uVar2 + 0x8000) - 0x8000" (call_expression "(ushort)(uVar2 + 0x8000)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar2 + 0x8000)" ( (binary_expression "uVar2 + 0x8000" identifier + number_literal) ))) - number_literal)) ;) })) }))) (if_statement "if (((byte)param_5 & 0x70) == 0x10) {\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }\n  else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }" if (parenthesized_expression "(((byte)param_5 & 0x70) == 0x10)" ( (binary_expression "((byte)param_5 & 0x70) == 0x10" (parenthesized_expression "((byte)param_5 & 0x70)" ( (binary_expression "(byte)param_5 & 0x70" (cast_expression "(byte)param_5" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }" { (expression_statement "uVar4 = param_2 + 8 + param_4;" (assignment_expression "uVar4 = param_2 + 8 + param_4" identifier = (binary_expression "param_2 + 8 + param_4" (binary_expression "param_2 + 8" identifier + number_literal) + identifier)) ;) (expression_statement "uVar7 = uVar7 + uVar4;" (assignment_expression "uVar7 = uVar7 + uVar4" identifier = (binary_expression "uVar7 + uVar4" identifier + identifier)) ;) }) (else_clause "else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }" else (compound_statement "{\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }" { (expression_statement "uVar4 = param_5 & 0x70;" (assignment_expression "uVar4 = param_5 & 0x70" identifier = (binary_expression "param_5 & 0x70" identifier & number_literal)) ;) (if_statement "if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }" if (parenthesized_expression "((char)uVar4 == '0')" ( (binary_expression "(char)uVar4 == '0'" (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'0'" ' character ')) )) (compound_statement "{\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }" { (expression_statement "piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);" (assignment_expression "piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" identifier = (pointer_expression "*(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" * (cast_expression "(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" ( (binary_expression "*(int *)(unaff_EDI + 0x1dc972) + 0xc" (pointer_expression "*(int *)(unaff_EDI + 0x1dc972)" * (cast_expression "(int *)(unaff_EDI + 0x1dc972)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1dc972)" ( (binary_expression "unaff_EDI + 0x1dc972" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }" { comment (expression_statement "FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);" (call_expression "FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6)" identifier (argument_list "(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6)" ( (binary_expression "unaff_EDI + 0xd480a" identifier + number_literal) , number_literal , (binary_expression "unaff_EDI + 0xec416" identifier + number_literal) , identifier ))) ;) })) (expression_statement "uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);" (assignment_expression "uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x50))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x50))" ( (pointer_expression "**(code **)(*piVar1 + 0x50)" * (pointer_expression "*(code **)(*piVar1 + 0x50)" * (cast_expression "(code **)(*piVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x50)" ( (binary_expression "*piVar1 + 0x50" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (expression_statement "uVar7 = uVar7 + uVar4;" (assignment_expression "uVar7 = uVar7 + uVar4" identifier = (binary_expression "uVar7 + uVar4" identifier + identifier)) ;) }) (else_clause "else if ((char)uVar4 != '\0') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }" else (if_statement "if ((char)uVar4 != '\0') {\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }" if (parenthesized_expression "((char)uVar4 != '\0')" ( (binary_expression "(char)uVar4 != '\0'" (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }" { comment (expression_statement "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);" (call_expression "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4)" identifier (argument_list "(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4)" ( (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" & identifier) + identifier) , number_literal , (binary_expression "unaff_EDI + 0xec3f2" identifier + number_literal) , identifier ))) ;) })))) }))) (if_statement "if ((char)(byte)param_5 < '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }" if (parenthesized_expression "((char)(byte)param_5 < '\0')" ( (binary_expression "(char)(byte)param_5 < '\0'" (cast_expression "(char)(byte)param_5" ( (type_descriptor "char" primitive_type) ) (cast_expression "(byte)param_5" ( (type_descriptor "byte" type_identifier) ) identifier)) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }" { comment (expression_statement "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);" (call_expression "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4)" identifier (argument_list "(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4)" ( (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" & identifier) + identifier) , number_literal , (binary_expression "unaff_EDI + 0xec3f2" identifier + number_literal) , identifier ))) ;) })) (return_statement "return uVar7;" return identifier ;) })))
(translation_unit "/* DWARF original name: get_fde_pc<32, true>\n   DWARF original prototype: Elf_Addr get_fde_pc<32,_true>(Eh_frame_hdr * this, Elf_Addr\n   eh_frame_address, uchar * eh_frame_contents, section_offset_type fde_offset, uchar fde_encoding)\n    */\n\nElf_Addr __thiscall\ngold::Eh_frame_hdr::get_fde_pc<32,_true>\n          (Eh_frame_hdr *this,Elf_Addr eh_frame_address,uchar *eh_frame_contents,\n          section_offset_type fde_offset,uchar fde_encoding)\n\n{\n  uint uVar1;\n  int *piVar2;\n  ushort uVar3;\n  int iVar4;\n  byte bVar5;\n  Elf_Addr EVar6;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  bVar5 = fde_encoding & 7;\n  if (((fde_encoding & 7) == 0) || (bVar5 == 3)) {\n    uVar1 = *(uint *)(eh_frame_contents + fde_offset + 8);\n    EVar6 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }\n  else {\n    if (bVar5 == 4) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x104,(char *)(unaff_EDI + 0xec3f2));\n    }\n    if (bVar5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x10a,(char *)(unaff_EDI + 0xec3f2));\n    }\n    uVar3 = (ushort)*(uint *)(eh_frame_contents + fde_offset + 8);\n    uVar3 = uVar3 << 8 | uVar3 >> 8;\n    EVar6 = (Elf_Addr)uVar3;\n    if ((fde_encoding & 8) != 0) {\n      EVar6 = (ushort)(uVar3 + 0x8000) - 0x8000;\n    }\n  }\n  if ((fde_encoding & 0x70) == 0x10) {\n    EVar6 = EVar6 + eh_frame_address + 8 + fde_offset;\n  }\n  else if ((fde_encoding & 0x70) == 0x30) {\n    piVar2 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n    if (piVar2 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable((char *)(unaff_EDI + 0xd480a),0x69,(char *)(unaff_EDI + 0xec416));\n    }\n    iVar4 = (**(code **)(*piVar2 + 0x50))(piVar2);\n    EVar6 = EVar6 + iVar4;\n  }\n  else if ((fde_encoding & 0x70) != 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x11d,(char *)(unaff_EDI + 0xec3f2));\n  }\n  if ((char)fde_encoding < '\0') {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x120,(char *)(unaff_EDI + 0xec3f2));\n  }\n  return EVar6;\n}\n\n" comment (declaration "Elf_Addr __thiscall\ngold::Eh_frame_hdr::get_fde_pc<32,_true>\n          (Eh_frame_hdr *this,Elf_Addr eh_frame_address,uchar *eh_frame_contents,\n          section_offset_type fde_offset,uchar fde_encoding)\n\n{\n  uint uVar1;" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Eh_frame_hdr::" identifier : : identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_true>\n          (Eh_frame_hdr *this,Elf_Addr eh_frame_address,uchar *eh_frame_contents,\n          section_offset_type fde_offset,uchar fde_encoding)\n\n{\n  uint" (function_declarator "_true>\n          (Eh_frame_hdr *this,Elf_Addr eh_frame_address,uchar *eh_frame_contents,\n          section_offset_type fde_offset,uchar fde_encoding)" identifier (ERROR ">" >) (parameter_list "(Eh_frame_hdr *this,Elf_Addr eh_frame_address,uchar *eh_frame_contents,\n          section_offset_type fde_offset,uchar fde_encoding)" ( (parameter_declaration "Eh_frame_hdr *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Elf_Addr eh_frame_address" type_identifier identifier) , (parameter_declaration "uchar *eh_frame_contents" type_identifier (pointer_declarator "*eh_frame_contents" * identifier)) , (parameter_declaration "section_offset_type fde_offset" type_identifier identifier) , (parameter_declaration "uchar fde_encoding" type_identifier identifier) ))) { identifier) identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "ushort uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "Elf_Addr EVar6;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "bVar5 = fde_encoding & 7;" (assignment_expression "bVar5 = fde_encoding & 7" identifier = (binary_expression "fde_encoding & 7" identifier & number_literal)) ;) (if_statement "if (((fde_encoding & 7) == 0) || (bVar5 == 3)) {\n    uVar1 = *(uint *)(eh_frame_contents + fde_offset + 8);\n    EVar6 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }\n  else {\n    if (bVar5 == 4) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x104,(char *)(unaff_EDI + 0xec3f2));\n    }\n    if (bVar5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x10a,(char *)(unaff_EDI + 0xec3f2));\n    }\n    uVar3 = (ushort)*(uint *)(eh_frame_contents + fde_offset + 8);\n    uVar3 = uVar3 << 8 | uVar3 >> 8;\n    EVar6 = (Elf_Addr)uVar3;\n    if ((fde_encoding & 8) != 0) {\n      EVar6 = (ushort)(uVar3 + 0x8000) - 0x8000;\n    }\n  }" if (parenthesized_expression "(((fde_encoding & 7) == 0) || (bVar5 == 3))" ( (binary_expression "((fde_encoding & 7) == 0) || (bVar5 == 3)" (parenthesized_expression "((fde_encoding & 7) == 0)" ( (binary_expression "(fde_encoding & 7) == 0" (parenthesized_expression "(fde_encoding & 7)" ( (binary_expression "fde_encoding & 7" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(bVar5 == 3)" ( (binary_expression "bVar5 == 3" identifier == number_literal) ))) )) (compound_statement "{\n    uVar1 = *(uint *)(eh_frame_contents + fde_offset + 8);\n    EVar6 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }" { (expression_statement "uVar1 = *(uint *)(eh_frame_contents + fde_offset + 8);" (assignment_expression "uVar1 = *(uint *)(eh_frame_contents + fde_offset + 8)" identifier = (pointer_expression "*(uint *)(eh_frame_contents + fde_offset + 8)" * (cast_expression "(uint *)(eh_frame_contents + fde_offset + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(eh_frame_contents + fde_offset + 8)" ( (binary_expression "eh_frame_contents + fde_offset + 8" (binary_expression "eh_frame_contents + fde_offset" identifier + identifier) + number_literal) ))))) ;) (expression_statement "EVar6 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (assignment_expression "EVar6 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" identifier = (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal))) ;) }) (else_clause "else {\n    if (bVar5 == 4) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x104,(char *)(unaff_EDI + 0xec3f2));\n    }\n    if (bVar5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x10a,(char *)(unaff_EDI + 0xec3f2));\n    }\n    uVar3 = (ushort)*(uint *)(eh_frame_contents + fde_offset + 8);\n    uVar3 = uVar3 << 8 | uVar3 >> 8;\n    EVar6 = (Elf_Addr)uVar3;\n    if ((fde_encoding & 8) != 0) {\n      EVar6 = (ushort)(uVar3 + 0x8000) - 0x8000;\n    }\n  }" else (compound_statement "{\n    if (bVar5 == 4) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x104,(char *)(unaff_EDI + 0xec3f2));\n    }\n    if (bVar5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x10a,(char *)(unaff_EDI + 0xec3f2));\n    }\n    uVar3 = (ushort)*(uint *)(eh_frame_contents + fde_offset + 8);\n    uVar3 = uVar3 << 8 | uVar3 >> 8;\n    EVar6 = (Elf_Addr)uVar3;\n    if ((fde_encoding & 8) != 0) {\n      EVar6 = (ushort)(uVar3 + 0x8000) - 0x8000;\n    }\n  }" { (if_statement "if (bVar5 == 4) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x104,(char *)(unaff_EDI + 0xec3f2));\n    }" if (parenthesized_expression "(bVar5 == 4)" ( (binary_expression "bVar5 == 4" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x104,(char *)(unaff_EDI + 0xec3f2));\n    }" { comment (expression_statement "do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x104,(char *)(unaff_EDI + 0xec3f2));" (call_expression "do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x104,(char *)(unaff_EDI + 0xec3f2))" identifier (argument_list "(&UNK_000ec1fb + unaff_EDI,0x104,(char *)(unaff_EDI + 0xec3f2))" ( (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" & identifier) + identifier) , number_literal , (cast_expression "(char *)(unaff_EDI + 0xec3f2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xec3f2)" ( (binary_expression "unaff_EDI + 0xec3f2" identifier + number_literal) ))) ))) ;) })) (if_statement "if (bVar5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x10a,(char *)(unaff_EDI + 0xec3f2));\n    }" if (parenthesized_expression "(bVar5 != 2)" ( (binary_expression "bVar5 != 2" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x10a,(char *)(unaff_EDI + 0xec3f2));\n    }" { comment (expression_statement "do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x10a,(char *)(unaff_EDI + 0xec3f2));" (call_expression "do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x10a,(char *)(unaff_EDI + 0xec3f2))" identifier (argument_list "(&UNK_000ec1fb + unaff_EDI,0x10a,(char *)(unaff_EDI + 0xec3f2))" ( (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" & identifier) + identifier) , number_literal , (cast_expression "(char *)(unaff_EDI + 0xec3f2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xec3f2)" ( (binary_expression "unaff_EDI + 0xec3f2" identifier + number_literal) ))) ))) ;) })) (expression_statement "uVar3 = (ushort)*(uint *)(eh_frame_contents + fde_offset + 8);" (assignment_expression "uVar3 = (ushort)*(uint *)(eh_frame_contents + fde_offset + 8)" identifier = (binary_expression "(ushort)*(uint *)(eh_frame_contents + fde_offset + 8)" (parenthesized_expression "(ushort)" ( identifier )) * (cast_expression "(uint *)(eh_frame_contents + fde_offset + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(eh_frame_contents + fde_offset + 8)" ( (binary_expression "eh_frame_contents + fde_offset + 8" (binary_expression "eh_frame_contents + fde_offset" identifier + identifier) + number_literal) ))))) ;) (expression_statement "uVar3 = uVar3 << 8 | uVar3 >> 8;" (assignment_expression "uVar3 = uVar3 << 8 | uVar3 >> 8" identifier = (binary_expression "uVar3 << 8 | uVar3 >> 8" (binary_expression "uVar3 << 8" identifier << number_literal) | (binary_expression "uVar3 >> 8" identifier >> number_literal))) ;) (expression_statement "EVar6 = (Elf_Addr)uVar3;" (assignment_expression "EVar6 = (Elf_Addr)uVar3" identifier = (cast_expression "(Elf_Addr)uVar3" ( (type_descriptor "Elf_Addr" type_identifier) ) identifier)) ;) (if_statement "if ((fde_encoding & 8) != 0) {\n      EVar6 = (ushort)(uVar3 + 0x8000) - 0x8000;\n    }" if (parenthesized_expression "((fde_encoding & 8) != 0)" ( (binary_expression "(fde_encoding & 8) != 0" (parenthesized_expression "(fde_encoding & 8)" ( (binary_expression "fde_encoding & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      EVar6 = (ushort)(uVar3 + 0x8000) - 0x8000;\n    }" { (expression_statement "EVar6 = (ushort)(uVar3 + 0x8000) - 0x8000;" (assignment_expression "EVar6 = (ushort)(uVar3 + 0x8000) - 0x8000" identifier = (binary_expression "(ushort)(uVar3 + 0x8000) - 0x8000" (call_expression "(ushort)(uVar3 + 0x8000)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar3 + 0x8000)" ( (binary_expression "uVar3 + 0x8000" identifier + number_literal) ))) - number_literal)) ;) })) }))) (if_statement "if ((fde_encoding & 0x70) == 0x10) {\n    EVar6 = EVar6 + eh_frame_address + 8 + fde_offset;\n  }\n  else if ((fde_encoding & 0x70) == 0x30) {\n    piVar2 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n    if (piVar2 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable((char *)(unaff_EDI + 0xd480a),0x69,(char *)(unaff_EDI + 0xec416));\n    }\n    iVar4 = (**(code **)(*piVar2 + 0x50))(piVar2);\n    EVar6 = EVar6 + iVar4;\n  }\n  else if ((fde_encoding & 0x70) != 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x11d,(char *)(unaff_EDI + 0xec3f2));\n  }" if (parenthesized_expression "((fde_encoding & 0x70) == 0x10)" ( (binary_expression "(fde_encoding & 0x70) == 0x10" (parenthesized_expression "(fde_encoding & 0x70)" ( (binary_expression "fde_encoding & 0x70" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    EVar6 = EVar6 + eh_frame_address + 8 + fde_offset;\n  }" { (expression_statement "EVar6 = EVar6 + eh_frame_address + 8 + fde_offset;" (assignment_expression "EVar6 = EVar6 + eh_frame_address + 8 + fde_offset" identifier = (binary_expression "EVar6 + eh_frame_address + 8 + fde_offset" (binary_expression "EVar6 + eh_frame_address + 8" (binary_expression "EVar6 + eh_frame_address" identifier + identifier) + number_literal) + identifier)) ;) }) (else_clause "else if ((fde_encoding & 0x70) == 0x30) {\n    piVar2 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n    if (piVar2 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable((char *)(unaff_EDI + 0xd480a),0x69,(char *)(unaff_EDI + 0xec416));\n    }\n    iVar4 = (**(code **)(*piVar2 + 0x50))(piVar2);\n    EVar6 = EVar6 + iVar4;\n  }\n  else if ((fde_encoding & 0x70) != 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x11d,(char *)(unaff_EDI + 0xec3f2));\n  }" else (if_statement "if ((fde_encoding & 0x70) == 0x30) {\n    piVar2 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n    if (piVar2 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable((char *)(unaff_EDI + 0xd480a),0x69,(char *)(unaff_EDI + 0xec416));\n    }\n    iVar4 = (**(code **)(*piVar2 + 0x50))(piVar2);\n    EVar6 = EVar6 + iVar4;\n  }\n  else if ((fde_encoding & 0x70) != 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x11d,(char *)(unaff_EDI + 0xec3f2));\n  }" if (parenthesized_expression "((fde_encoding & 0x70) == 0x30)" ( (binary_expression "(fde_encoding & 0x70) == 0x30" (parenthesized_expression "(fde_encoding & 0x70)" ( (binary_expression "fde_encoding & 0x70" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    piVar2 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n    if (piVar2 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable((char *)(unaff_EDI + 0xd480a),0x69,(char *)(unaff_EDI + 0xec416));\n    }\n    iVar4 = (**(code **)(*piVar2 + 0x50))(piVar2);\n    EVar6 = EVar6 + iVar4;\n  }" { (expression_statement "piVar2 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);" (assignment_expression "piVar2 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" identifier = (pointer_expression "*(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" * (cast_expression "(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" ( (binary_expression "*(int *)(unaff_EDI + 0x1dc972) + 0xc" (pointer_expression "*(int *)(unaff_EDI + 0x1dc972)" * (cast_expression "(int *)(unaff_EDI + 0x1dc972)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1dc972)" ( (binary_expression "unaff_EDI + 0x1dc972" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable((char *)(unaff_EDI + 0xd480a),0x69,(char *)(unaff_EDI + 0xec416));\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable((char *)(unaff_EDI + 0xd480a),0x69,(char *)(unaff_EDI + 0xec416));\n    }" { comment (expression_statement "do_gold_unreachable((char *)(unaff_EDI + 0xd480a),0x69,(char *)(unaff_EDI + 0xec416));" (call_expression "do_gold_unreachable((char *)(unaff_EDI + 0xd480a),0x69,(char *)(unaff_EDI + 0xec416))" identifier (argument_list "((char *)(unaff_EDI + 0xd480a),0x69,(char *)(unaff_EDI + 0xec416))" ( (cast_expression "(char *)(unaff_EDI + 0xd480a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xd480a)" ( (binary_expression "unaff_EDI + 0xd480a" identifier + number_literal) ))) , number_literal , (cast_expression "(char *)(unaff_EDI + 0xec416)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xec416)" ( (binary_expression "unaff_EDI + 0xec416" identifier + number_literal) ))) ))) ;) })) (expression_statement "iVar4 = (**(code **)(*piVar2 + 0x50))(piVar2);" (assignment_expression "iVar4 = (**(code **)(*piVar2 + 0x50))(piVar2)" identifier = (call_expression "(**(code **)(*piVar2 + 0x50))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 0x50))" ( (pointer_expression "**(code **)(*piVar2 + 0x50)" * (pointer_expression "*(code **)(*piVar2 + 0x50)" * (cast_expression "(code **)(*piVar2 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x50)" ( (binary_expression "*piVar2 + 0x50" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier )))) ;) (expression_statement "EVar6 = EVar6 + iVar4;" (assignment_expression "EVar6 = EVar6 + iVar4" identifier = (binary_expression "EVar6 + iVar4" identifier + identifier)) ;) }) (else_clause "else if ((fde_encoding & 0x70) != 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x11d,(char *)(unaff_EDI + 0xec3f2));\n  }" else (if_statement "if ((fde_encoding & 0x70) != 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x11d,(char *)(unaff_EDI + 0xec3f2));\n  }" if (parenthesized_expression "((fde_encoding & 0x70) != 0)" ( (binary_expression "(fde_encoding & 0x70) != 0" (parenthesized_expression "(fde_encoding & 0x70)" ( (binary_expression "fde_encoding & 0x70" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x11d,(char *)(unaff_EDI + 0xec3f2));\n  }" { comment (expression_statement "do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x11d,(char *)(unaff_EDI + 0xec3f2));" (call_expression "do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x11d,(char *)(unaff_EDI + 0xec3f2))" identifier (argument_list "(&UNK_000ec1fb + unaff_EDI,0x11d,(char *)(unaff_EDI + 0xec3f2))" ( (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" & identifier) + identifier) , number_literal , (cast_expression "(char *)(unaff_EDI + 0xec3f2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xec3f2)" ( (binary_expression "unaff_EDI + 0xec3f2" identifier + number_literal) ))) ))) ;) })))))) (if_statement "if ((char)fde_encoding < '\0') {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x120,(char *)(unaff_EDI + 0xec3f2));\n  }" if (parenthesized_expression "((char)fde_encoding < '\0')" ( (binary_expression "(char)fde_encoding < '\0'" (cast_expression "(char)fde_encoding" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x120,(char *)(unaff_EDI + 0xec3f2));\n  }" { comment (expression_statement "do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x120,(char *)(unaff_EDI + 0xec3f2));" (call_expression "do_gold_unreachable(&UNK_000ec1fb + unaff_EDI,0x120,(char *)(unaff_EDI + 0xec3f2))" identifier (argument_list "(&UNK_000ec1fb + unaff_EDI,0x120,(char *)(unaff_EDI + 0xec3f2))" ( (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" & identifier) + identifier) , number_literal , (cast_expression "(char *)(unaff_EDI + 0xec3f2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xec3f2)" ( (binary_expression "unaff_EDI + 0xec3f2" identifier + number_literal) ))) ))) ;) })) (return_statement "return EVar6;" return identifier ;) (ERROR "}" }))
(translation_unit "uint FUN_001b2a00(undefined4 param_1,int param_2,int param_3,int param_4,uint param_5)\n\n{\n  int *piVar1;\n  ushort uVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  puVar3 = (uint *)(param_4 + 8 + param_3);\n  uVar6 = param_5 & 7;\n  if ((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')) {\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }\n  else {\n    if (cVar5 == '\x04') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }\n  if (((byte)param_5 & 0x70) == 0x10) {\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }\n  else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }\n  if ((char)(byte)param_5 < '\0') {\n                    \n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }\n  return uVar7;\n}\n\n" (function_definition "uint FUN_001b2a00(undefined4 param_1,int param_2,int param_3,int param_4,uint param_5)\n\n{\n  int *piVar1;\n  ushort uVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  puVar3 = (uint *)(param_4 + 8 + param_3);\n  uVar6 = param_5 & 7;\n  if ((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')) {\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }\n  else {\n    if (cVar5 == '\x04') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }\n  if (((byte)param_5 & 0x70) == 0x10) {\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }\n  else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }\n  if ((char)(byte)param_5 < '\0') {\n                    \n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }\n  return uVar7;\n}" type_identifier (function_declarator "FUN_001b2a00(undefined4 param_1,int param_2,int param_3,int param_4,uint param_5)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,int param_4,uint param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  ushort uVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  puVar3 = (uint *)(param_4 + 8 + param_3);\n  uVar6 = param_5 & 7;\n  if ((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')) {\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }\n  else {\n    if (cVar5 == '\x04') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }\n  if (((byte)param_5 & 0x70) == 0x10) {\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }\n  else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }\n  if ((char)(byte)param_5 < '\0') {\n                    \n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }\n  return uVar7;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar3 = (uint *)(param_4 + 8 + param_3);" (assignment_expression "puVar3 = (uint *)(param_4 + 8 + param_3)" identifier = (cast_expression "(uint *)(param_4 + 8 + param_3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8 + param_3)" ( (binary_expression "param_4 + 8 + param_3" (binary_expression "param_4 + 8" identifier + number_literal) + identifier) )))) ;) (expression_statement "uVar6 = param_5 & 7;" (assignment_expression "uVar6 = param_5 & 7" identifier = (binary_expression "param_5 & 7" identifier & number_literal)) ;) (if_statement "if ((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')) {\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }\n  else {\n    if (cVar5 == '\x04') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }" if (parenthesized_expression "((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03'))" ( (binary_expression "(uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')" (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) || (parenthesized_expression "(cVar5 = (char)uVar6, cVar5 == '\x03')" ( (comma_expression "cVar5 = (char)uVar6, cVar5 == '\x03'" (assignment_expression "cVar5 = (char)uVar6" identifier = (cast_expression "(char)uVar6" ( (type_descriptor "char" primitive_type) ) identifier)) , (binary_expression "cVar5 == '\x03'" identifier == (char_literal "'\x03'" ' escape_sequence '))) ))) )) (compound_statement "{\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }" { (expression_statement "uVar7 = *puVar3;" (assignment_expression "uVar7 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;" (assignment_expression "uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18" identifier = (binary_expression "uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18" (binary_expression "uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8" (binary_expression "uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8" (binary_expression "uVar7 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar7 & 0xff0000) >> 8" (parenthesized_expression "(uVar7 & 0xff0000)" ( (binary_expression "uVar7 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar7 & 0xff00) << 8" (parenthesized_expression "(uVar7 & 0xff00)" ( (binary_expression "uVar7 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar7 << 0x18" identifier << number_literal))) ;) }) (else_clause "else {\n    if (cVar5 == '\x04') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }" else (compound_statement "{\n    if (cVar5 == '\x04') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }" { (if_statement "if (cVar5 == '\x04') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }" if (parenthesized_expression "(cVar5 == '\x04')" ( (binary_expression "cVar5 == '\x04'" identifier == (char_literal "'\x04'" ' escape_sequence ')) )) (compound_statement "{\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }" { (expression_statement "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);" (call_expression "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2)" identifier (argument_list "(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2)" ( (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" & identifier) + identifier) , number_literal , (binary_expression "unaff_EDI + 0xec3f2" identifier + number_literal) ))) ;) })) (if_statement "if (cVar5 != '\x02') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }" if (parenthesized_expression "(cVar5 != '\x02')" ( (binary_expression "cVar5 != '\x02'" identifier != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }" { (expression_statement "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);" (call_expression "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5)" identifier (argument_list "(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5)" ( (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" & identifier) + identifier) , number_literal , (binary_expression "unaff_EDI + 0xec3f2" identifier + number_literal) , identifier ))) ;) })) (expression_statement "uVar2 = (ushort)*puVar3;" (assignment_expression "uVar2 = (ushort)*puVar3" identifier = (binary_expression "(ushort)*puVar3" (parenthesized_expression "(ushort)" ( identifier )) * identifier)) ;) (expression_statement "uVar2 = uVar2 << 8 | uVar2 >> 8;" (assignment_expression "uVar2 = uVar2 << 8 | uVar2 >> 8" identifier = (binary_expression "uVar2 << 8 | uVar2 >> 8" (binary_expression "uVar2 << 8" identifier << number_literal) | (binary_expression "uVar2 >> 8" identifier >> number_literal))) ;) (expression_statement "uVar7 = (uint)uVar2;" (assignment_expression "uVar7 = (uint)uVar2" identifier = (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }" if (parenthesized_expression "((param_5 & 8) != 0)" ( (binary_expression "(param_5 & 8) != 0" (parenthesized_expression "(param_5 & 8)" ( (binary_expression "param_5 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }" { (expression_statement "uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;" (assignment_expression "uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000" identifier = (binary_expression "(ushort)(uVar2 + 0x8000) - 0x8000" (call_expression "(ushort)(uVar2 + 0x8000)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar2 + 0x8000)" ( (binary_expression "uVar2 + 0x8000" identifier + number_literal) ))) - number_literal)) ;) })) }))) (if_statement "if (((byte)param_5 & 0x70) == 0x10) {\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }\n  else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }" if (parenthesized_expression "(((byte)param_5 & 0x70) == 0x10)" ( (binary_expression "((byte)param_5 & 0x70) == 0x10" (parenthesized_expression "((byte)param_5 & 0x70)" ( (binary_expression "(byte)param_5 & 0x70" (cast_expression "(byte)param_5" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }" { (expression_statement "uVar4 = param_2 + 8 + param_4;" (assignment_expression "uVar4 = param_2 + 8 + param_4" identifier = (binary_expression "param_2 + 8 + param_4" (binary_expression "param_2 + 8" identifier + number_literal) + identifier)) ;) (expression_statement "uVar7 = uVar7 + uVar4;" (assignment_expression "uVar7 = uVar7 + uVar4" identifier = (binary_expression "uVar7 + uVar4" identifier + identifier)) ;) }) (else_clause "else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }" else (compound_statement "{\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }" { (expression_statement "uVar4 = param_5 & 0x70;" (assignment_expression "uVar4 = param_5 & 0x70" identifier = (binary_expression "param_5 & 0x70" identifier & number_literal)) ;) (if_statement "if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }" if (parenthesized_expression "((char)uVar4 == '0')" ( (binary_expression "(char)uVar4 == '0'" (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'0'" ' character ')) )) (compound_statement "{\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }" { (expression_statement "piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);" (assignment_expression "piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" identifier = (pointer_expression "*(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" * (cast_expression "(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" ( (binary_expression "*(int *)(unaff_EDI + 0x1dc972) + 0xc" (pointer_expression "*(int *)(unaff_EDI + 0x1dc972)" * (cast_expression "(int *)(unaff_EDI + 0x1dc972)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1dc972)" ( (binary_expression "unaff_EDI + 0x1dc972" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }" { (expression_statement "FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);" (call_expression "FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6)" identifier (argument_list "(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6)" ( (binary_expression "unaff_EDI + 0xd480a" identifier + number_literal) , number_literal , (binary_expression "unaff_EDI + 0xec416" identifier + number_literal) , identifier ))) ;) })) (expression_statement "uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);" (assignment_expression "uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x50))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x50))" ( (pointer_expression "**(code **)(*piVar1 + 0x50)" * (pointer_expression "*(code **)(*piVar1 + 0x50)" * (cast_expression "(code **)(*piVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x50)" ( (binary_expression "*piVar1 + 0x50" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (expression_statement "uVar7 = uVar7 + uVar4;" (assignment_expression "uVar7 = uVar7 + uVar4" identifier = (binary_expression "uVar7 + uVar4" identifier + identifier)) ;) }) (else_clause "else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }" else (if_statement "if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }" if (parenthesized_expression "((char)uVar4 != '\0')" ( (binary_expression "(char)uVar4 != '\0'" (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }" { (expression_statement "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);" (call_expression "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4)" identifier (argument_list "(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4)" ( (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" & identifier) + identifier) , number_literal , (binary_expression "unaff_EDI + 0xec3f2" identifier + number_literal) , identifier ))) ;) })))) }))) (if_statement "if ((char)(byte)param_5 < '\0') {\n                    \n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }" if (parenthesized_expression "((char)(byte)param_5 < '\0')" ( (binary_expression "(char)(byte)param_5 < '\0'" (cast_expression "(char)(byte)param_5" ( (type_descriptor "char" primitive_type) ) (cast_expression "(byte)param_5" ( (type_descriptor "byte" type_identifier) ) identifier)) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    \n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }" { (expression_statement "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);" (call_expression "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4)" identifier (argument_list "(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4)" ( (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" & identifier) + identifier) , number_literal , (binary_expression "unaff_EDI + 0xec3f2" identifier + number_literal) , identifier ))) ;) })) (return_statement "return uVar7;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) , (binary_expression IDENT == (char_literal ' escape_sequence '))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression & IDENT) + IDENT) , LIT , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression & IDENT) + IDENT) , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT << LIT) | (binary_expression IDENT >> LIT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) - LIT)) ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (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 == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression & IDENT) + IDENT) , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) })))) }))) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression & IDENT) + IDENT) , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_001b2a00(undefined4 param_1,int param_2,int param_3,int param_4,uint param_5)\n\n{\n  int *piVar1;\n  ushort uVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  puVar3 = (uint *)(param_4 + 8 + param_3);\n  uVar6 = param_5 & 7;\n  if ((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')) {\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }\n  else {\n    if (cVar5 == '\x04') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }\n  if (((byte)param_5 & 0x70) == 0x10) {\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }\n  else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }\n  if ((char)(byte)param_5 < '\0') {\n                    \n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }\n  return uVar7;\n}" (type_identifier "uint") (function_declarator "FUN_001b2a00(undefined4 param_1,int param_2,int param_3,int param_4,uint param_5)" (identifier "FUN_001b2a00") (parameter_list "(undefined4 param_1,int param_2,int param_3,int param_4,uint param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")"))) (compound_statement "{\n  int *piVar1;\n  ushort uVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  puVar3 = (uint *)(param_4 + 8 + param_3);\n  uVar6 = param_5 & 7;\n  if ((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')) {\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }\n  else {\n    if (cVar5 == '\x04') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }\n  if (((byte)param_5 & 0x70) == 0x10) {\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }\n  else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }\n  if ((char)(byte)param_5 < '\0') {\n                    \n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }\n  return uVar7;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "ushort uVar2;" (type_identifier "ushort") (identifier "uVar2") (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "char cVar5;" (primitive_type "char") (identifier "cVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" (identifier "FUN_000559ee") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar3 = (uint *)(param_4 + 8 + param_3);" (assignment_expression "puVar3 = (uint *)(param_4 + 8 + param_3)" (identifier "puVar3") (= "=") (cast_expression "(uint *)(param_4 + 8 + param_3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 8 + param_3)" (( "(") (binary_expression "param_4 + 8 + param_3" (binary_expression "param_4 + 8" (identifier "param_4") (+ "+") (number_literal "8")) (+ "+") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "uVar6 = param_5 & 7;" (assignment_expression "uVar6 = param_5 & 7" (identifier "uVar6") (= "=") (binary_expression "param_5 & 7" (identifier "param_5") (& "&") (number_literal "7"))) (; ";")) (if_statement "if ((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')) {\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }\n  else {\n    if (cVar5 == '\x04') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }" (if "if") (parenthesized_expression "((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03'))" (( "(") (binary_expression "(uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')" (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(cVar5 = (char)uVar6, cVar5 == '\x03')" (( "(") (comma_expression "cVar5 = (char)uVar6, cVar5 == '\x03'" (assignment_expression "cVar5 = (char)uVar6" (identifier "cVar5") (= "=") (cast_expression "(char)uVar6" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar6"))) (, ",") (binary_expression "cVar5 == '\x03'" (identifier "cVar5") (== "==") (char_literal "'\x03'" (' "'") (escape_sequence "\x03") (' "'")))) () ")"))) () ")")) (compound_statement "{\n    uVar7 = *puVar3;\n    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;\n  }" ({ "{") (expression_statement "uVar7 = *puVar3;" (assignment_expression "uVar7 = *puVar3" (identifier "uVar7") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;" (assignment_expression "uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18" (identifier "uVar7") (= "=") (binary_expression "uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18" (binary_expression "uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8" (binary_expression "uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8" (binary_expression "uVar7 >> 0x18" (identifier "uVar7") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar7 & 0xff0000) >> 8" (parenthesized_expression "(uVar7 & 0xff0000)" (( "(") (binary_expression "uVar7 & 0xff0000" (identifier "uVar7") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar7 & 0xff00) << 8" (parenthesized_expression "(uVar7 & 0xff00)" (( "(") (binary_expression "uVar7 & 0xff00" (identifier "uVar7") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar7 << 0x18" (identifier "uVar7") (<< "<<") (number_literal "0x18")))) (; ";")) (} "}")) (else_clause "else {\n    if (cVar5 == '\x04') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }" (else "else") (compound_statement "{\n    if (cVar5 == '\x04') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }\n    if (cVar5 != '\x02') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }\n    uVar2 = (ushort)*puVar3;\n    uVar2 = uVar2 << 8 | uVar2 >> 8;\n    uVar7 = (uint)uVar2;\n    if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }\n  }" ({ "{") (if_statement "if (cVar5 == '\x04') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }" (if "if") (parenthesized_expression "(cVar5 == '\x04')" (( "(") (binary_expression "cVar5 == '\x04'" (identifier "cVar5") (== "==") (char_literal "'\x04'" (' "'") (escape_sequence "\x04") (' "'"))) () ")")) (compound_statement "{\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);\n    }" ({ "{") (expression_statement "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);" (call_expression "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2)" (identifier "FUN_00069d00") (argument_list "(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2)" (( "(") (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" (& "&") (identifier "UNK_000ec1fb")) (+ "+") (identifier "unaff_EDI")) (, ",") (number_literal "0x104") (, ",") (binary_expression "unaff_EDI + 0xec3f2" (identifier "unaff_EDI") (+ "+") (number_literal "0xec3f2")) () ")"))) (; ";")) (} "}"))) (if_statement "if (cVar5 != '\x02') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }" (if "if") (parenthesized_expression "(cVar5 != '\x02')" (( "(") (binary_expression "cVar5 != '\x02'" (identifier "cVar5") (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);\n    }" ({ "{") (expression_statement "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);" (call_expression "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5)" (identifier "FUN_00069d00") (argument_list "(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5)" (( "(") (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" (& "&") (identifier "UNK_000ec1fb")) (+ "+") (identifier "unaff_EDI")) (, ",") (number_literal "0x10a") (, ",") (binary_expression "unaff_EDI + 0xec3f2" (identifier "unaff_EDI") (+ "+") (number_literal "0xec3f2")) (, ",") (identifier "param_5") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar2 = (ushort)*puVar3;" (assignment_expression "uVar2 = (ushort)*puVar3" (identifier "uVar2") (= "=") (binary_expression "(ushort)*puVar3" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "uVar2 = uVar2 << 8 | uVar2 >> 8;" (assignment_expression "uVar2 = uVar2 << 8 | uVar2 >> 8" (identifier "uVar2") (= "=") (binary_expression "uVar2 << 8 | uVar2 >> 8" (binary_expression "uVar2 << 8" (identifier "uVar2") (<< "<<") (number_literal "8")) (| "|") (binary_expression "uVar2 >> 8" (identifier "uVar2") (>> ">>") (number_literal "8")))) (; ";")) (expression_statement "uVar7 = (uint)uVar2;" (assignment_expression "uVar7 = (uint)uVar2" (identifier "uVar7") (= "=") (cast_expression "(uint)uVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar2"))) (; ";")) (if_statement "if ((param_5 & 8) != 0) {\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }" (if "if") (parenthesized_expression "((param_5 & 8) != 0)" (( "(") (binary_expression "(param_5 & 8) != 0" (parenthesized_expression "(param_5 & 8)" (( "(") (binary_expression "param_5 & 8" (identifier "param_5") (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;\n    }" ({ "{") (expression_statement "uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;" (assignment_expression "uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000" (identifier "uVar7") (= "=") (binary_expression "(ushort)(uVar2 + 0x8000) - 0x8000" (call_expression "(ushort)(uVar2 + 0x8000)" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(uVar2 + 0x8000)" (( "(") (binary_expression "uVar2 + 0x8000" (identifier "uVar2") (+ "+") (number_literal "0x8000")) () ")"))) (- "-") (number_literal "0x8000"))) (; ";")) (} "}"))) (} "}")))) (if_statement "if (((byte)param_5 & 0x70) == 0x10) {\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }\n  else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }" (if "if") (parenthesized_expression "(((byte)param_5 & 0x70) == 0x10)" (( "(") (binary_expression "((byte)param_5 & 0x70) == 0x10" (parenthesized_expression "((byte)param_5 & 0x70)" (( "(") (binary_expression "(byte)param_5 & 0x70" (cast_expression "(byte)param_5" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_5")) (& "&") (number_literal "0x70")) () ")")) (== "==") (number_literal "0x10")) () ")")) (compound_statement "{\n    uVar4 = param_2 + 8 + param_4;\n    uVar7 = uVar7 + uVar4;\n  }" ({ "{") (expression_statement "uVar4 = param_2 + 8 + param_4;" (assignment_expression "uVar4 = param_2 + 8 + param_4" (identifier "uVar4") (= "=") (binary_expression "param_2 + 8 + param_4" (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) (+ "+") (identifier "param_4"))) (; ";")) (expression_statement "uVar7 = uVar7 + uVar4;" (assignment_expression "uVar7 = uVar7 + uVar4" (identifier "uVar7") (= "=") (binary_expression "uVar7 + uVar4" (identifier "uVar7") (+ "+") (identifier "uVar4"))) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }" (else "else") (compound_statement "{\n    uVar4 = param_5 & 0x70;\n    if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }\n  }" ({ "{") (expression_statement "uVar4 = param_5 & 0x70;" (assignment_expression "uVar4 = param_5 & 0x70" (identifier "uVar4") (= "=") (binary_expression "param_5 & 0x70" (identifier "param_5") (& "&") (number_literal "0x70"))) (; ";")) (if_statement "if ((char)uVar4 == '0') {\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }\n    else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }" (if "if") (parenthesized_expression "((char)uVar4 == '0')" (( "(") (binary_expression "(char)uVar4 == '0'" (cast_expression "(char)uVar4" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar4")) (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (compound_statement "{\n      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);\n      if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }\n      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);\n      uVar7 = uVar7 + uVar4;\n    }" ({ "{") (expression_statement "piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);" (assignment_expression "piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" (* "*") (cast_expression "(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(unaff_EDI + 0x1dc972) + 0xc)" (( "(") (binary_expression "*(int *)(unaff_EDI + 0x1dc972) + 0xc" (pointer_expression "*(int *)(unaff_EDI + 0x1dc972)" (* "*") (cast_expression "(int *)(unaff_EDI + 0x1dc972)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x1dc972)" (( "(") (binary_expression "unaff_EDI + 0x1dc972" (identifier "unaff_EDI") (+ "+") (number_literal "0x1dc972")) () ")")))) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);\n      }" ({ "{") (expression_statement "FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);" (call_expression "FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6)" (identifier "FUN_00069d00") (argument_list "(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6)" (( "(") (binary_expression "unaff_EDI + 0xd480a" (identifier "unaff_EDI") (+ "+") (number_literal "0xd480a")) (, ",") (number_literal "0x69") (, ",") (binary_expression "unaff_EDI + 0xec416" (identifier "unaff_EDI") (+ "+") (number_literal "0xec416")) (, ",") (identifier "uVar6") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);" (assignment_expression "uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1)" (identifier "uVar4") (= "=") (call_expression "(**(code **)(*piVar1 + 0x50))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x50))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x50)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x50)" (* "*") (cast_expression "(code **)(*piVar1 + 0x50)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x50)" (( "(") (binary_expression "*piVar1 + 0x50" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x50")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (expression_statement "uVar7 = uVar7 + uVar4;" (assignment_expression "uVar7 = uVar7 + uVar4" (identifier "uVar7") (= "=") (binary_expression "uVar7 + uVar4" (identifier "uVar7") (+ "+") (identifier "uVar4"))) (; ";")) (} "}")) (else_clause "else if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }" (else "else") (if_statement "if ((char)uVar4 != '\0') {\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }" (if "if") (parenthesized_expression "((char)uVar4 != '\0')" (( "(") (binary_expression "(char)uVar4 != '\0'" (cast_expression "(char)uVar4" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar4")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                    \n      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);\n    }" ({ "{") (expression_statement "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);" (call_expression "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4)" (identifier "FUN_00069d00") (argument_list "(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4)" (( "(") (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" (& "&") (identifier "UNK_000ec1fb")) (+ "+") (identifier "unaff_EDI")) (, ",") (number_literal "0x11d") (, ",") (binary_expression "unaff_EDI + 0xec3f2" (identifier "unaff_EDI") (+ "+") (number_literal "0xec3f2")) (, ",") (identifier "param_4") () ")"))) (; ";")) (} "}"))))) (} "}")))) (if_statement "if ((char)(byte)param_5 < '\0') {\n                    \n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }" (if "if") (parenthesized_expression "((char)(byte)param_5 < '\0')" (( "(") (binary_expression "(char)(byte)param_5 < '\0'" (cast_expression "(char)(byte)param_5" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (cast_expression "(byte)param_5" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_5"))) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                    \n    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);\n  }" ({ "{") (expression_statement "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);" (call_expression "FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4)" (identifier "FUN_00069d00") (argument_list "(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4)" (( "(") (binary_expression "&UNK_000ec1fb + unaff_EDI" (pointer_expression "&UNK_000ec1fb" (& "&") (identifier "UNK_000ec1fb")) (+ "+") (identifier "unaff_EDI")) (, ",") (number_literal "0x120") (, ",") (binary_expression "unaff_EDI + 0xec3f2" (identifier "unaff_EDI") (+ "+") (number_literal "0xec3f2")) (, ",") (identifier "uVar4") () ")"))) (; ";")) (} "}"))) (return_statement "return uVar7;" (return "return") (identifier "uVar7") (; ";")) (} "}")))

/* DWARF original name: get_fde_pc<32, true>
   DWARF original prototype: Elf_Addr get_fde_pc<32,_true>(Eh_frame_hdr * this, Elf_Addr
   eh_frame_address, uchar * eh_frame_contents, section_offset_type fde_offset, uchar fde_encoding)
    */

type_1 __thiscall
gold::Eh_frame_hdr::get_fde_pc<32,_true>
          (Eh_frame_hdr *this,type_1 var_11,uchar *var_4,
          section_offset_type var_5,uchar var_2)

{
  type_4 var_6;
  int *var_12;
  type_2 var_9;
  int var_13;
  type_3 var_3;
  type_1 var_10;
  int var_8;
  
  var_1();
  var_3 = var_2 & 7;
  if (((var_2 & 7) == 0) || (var_3 == 3)) {
    var_6 = *(type_4 *)(var_4 + var_5 + 8);
    var_10 = var_6 >> 0x18 | (var_6 & 0xff0000) >> 8 | (var_6 & 0xff00) << 8 | var_6 << 0x18;
  }
  else {
    if (var_3 == 4) {
                    /* WARNING: Subroutine does not return */
      var_7(&UNK_000ec1fb + var_8,0x104,(char *)(var_8 + 0xec3f2));
    }
    if (var_3 != 2) {
                    /* WARNING: Subroutine does not return */
      var_7(&UNK_000ec1fb + var_8,0x10a,(char *)(var_8 + 0xec3f2));
    }
    var_9 = (type_2)*(type_4 *)(var_4 + var_5 + 8);
    var_9 = var_9 << 8 | var_9 >> 8;
    var_10 = (type_1)var_9;
    if ((var_2 & 8) != 0) {
      var_10 = (type_2)(var_9 + 0x8000) - 0x8000;
    }
  }
  if ((var_2 & 0x70) == 0x10) {
    var_10 = var_10 + var_11 + 8 + var_5;
  }
  else if ((var_2 & 0x70) == 0x30) {
    var_12 = *(int **)(*(int *)(var_8 + 0x1dc972) + 0xc);
    if (var_12 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
      var_7((char *)(var_8 + 0xd480a),0x69,(char *)(var_8 + 0xec416));
    }
    var_13 = (**(type_5 **)(*var_12 + 0x50))(var_12);
    var_10 = var_10 + var_13;
  }
  else if ((var_2 & 0x70) != 0) {
                    /* WARNING: Subroutine does not return */
    var_7(&UNK_000ec1fb + var_8,0x11d,(char *)(var_8 + 0xec3f2));
  }
  if ((char)var_2 < '\0') {
                    /* WARNING: Subroutine does not return */
    var_7(&UNK_000ec1fb + var_8,0x120,(char *)(var_8 + 0xec3f2));
  }
  return var_10;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (character)))) 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: (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))))))) (if_statement condition: (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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (return_statement (identifier)))))

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

{
  int *piVar1;
  ushort uVar2;
  uint *puVar3;
  uint uVar4;
  char cVar5;
  uint uVar6;
  uint uVar7;
  int unaff_EDI;
  
  FUN_000559ee();
  puVar3 = (uint *)(param_4 + 8 + param_3);
  uVar6 = param_5 & 7;
  if ((uVar6 == 0) || (cVar5 = (char)uVar6, cVar5 == '\x03')) {
    uVar7 = *puVar3;
    uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;
  }
  else {
    if (cVar5 == '\x04') {
                    /* WARNING: Subroutine does not return */
      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x104,unaff_EDI + 0xec3f2);
    }
    if (cVar5 != '\x02') {
                    /* WARNING: Subroutine does not return */
      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x10a,unaff_EDI + 0xec3f2,param_5);
    }
    uVar2 = (ushort)*puVar3;
    uVar2 = uVar2 << 8 | uVar2 >> 8;
    uVar7 = (uint)uVar2;
    if ((param_5 & 8) != 0) {
      uVar7 = (ushort)(uVar2 + 0x8000) - 0x8000;
    }
  }
  if (((byte)param_5 & 0x70) == 0x10) {
    uVar4 = param_2 + 8 + param_4;
    uVar7 = uVar7 + uVar4;
  }
  else {
    uVar4 = param_5 & 0x70;
    if ((char)uVar4 == '0') {
      piVar1 = *(int **)(*(int *)(unaff_EDI + 0x1dc972) + 0xc);
      if (piVar1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
        FUN_00069d00(unaff_EDI + 0xd480a,0x69,unaff_EDI + 0xec416,uVar6);
      }
      uVar4 = (**(code **)(*piVar1 + 0x50))(piVar1);
      uVar7 = uVar7 + uVar4;
    }
    else if ((char)uVar4 != '\0') {
                    /* WARNING: Subroutine does not return */
      FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x11d,unaff_EDI + 0xec3f2,param_4);
    }
  }
  if ((char)(byte)param_5 < '\0') {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00(&UNK_000ec1fb + unaff_EDI,0x120,unaff_EDI + 0xec3f2,uVar4);
  }
  return uVar7;
}

