
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int ia64_optimize_expr(expressionS *l,operatorT op,expressionS *r)

{
  symbolS *psVar1;
  char *pcVar2;
  char *format;
  uint uVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  uint local_24;
  
  if (op != O_index) {
    return 0;
  }
  resolve_expression(l);
  if (l->field_0x10 != '\x05') {
LAB_0004e822:
    pcVar2 = (char *)dcgettext(0,"Index can only be applied to rotating or indirect registers",5);
    as_bad(pcVar2);
    l->field_0x10 = 5;
    *(undefined4 *)&l->X_add_number = 3;
    *(undefined4 *)((int)&l->X_add_number + 4) = 0;
    return 1;
  }
  uVar5 = *(uint *)((int)&l->X_add_number + 2);
  resolve_expression(r);
  if (uVar5 == 0) {
    local_24 = (uint)l->X_add_number;
    iVar4 = *(int *)((int)&l->X_add_number + 4) + -1 + (uint)(0x256 < local_24);
    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;
    if (r->field_0x10 == '\x05') {
      uVar5 = (uint)r->X_add_number;
      iVar4 = *(int *)((int)&r->X_add_number + 4);
      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;
    }
    pcVar2 = (char *)dcgettext(0,"Indirect register index must be a general register",5);
    as_bad(pcVar2);
    *(undefined4 *)&r->X_add_number = 0;
    *(undefined4 *)((int)&r->X_add_number + 4) = 0;
    local_24 = (uint)l->X_add_number;
    iVar4 = 0;
    uVar5 = 0;
LAB_0004e906:
    l->field_0x10 = 0x1d;
    psVar1 = *(symbolS **)((int)&md + (local_24 - 0x13b) * 4 + 0xc);
    *(uint *)&l->X_add_number = uVar5;
    *(int *)((int)&l->X_add_number + 4) = iVar4;
    l->X_op_symbol = psVar1;
    return 1;
  }
  if (r->field_0x10 == '\x02') {
    uVar6 = *(uint *)((int)&r->X_add_number + 4);
    uVar3 = (uint)r->X_add_number;
    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;
    pcVar2 = (char *)(uVar5 - 1);
    format = (char *)dcgettext(0,"Index out of range 0..%u",5);
  }
  else {
    pcVar2 = "Rotating register index must be a non-negative constant";
    format = (char *)dcgettext(0,"Rotating register index must be a non-negative constant",5);
  }
  as_bad(format,pcVar2);
  uVar6 = 0;
  *(undefined4 *)&r->X_add_number = 0;
  *(undefined4 *)((int)&r->X_add_number + 4) = 0;
  uVar3 = 0;
LAB_0004e96e:
  uVar5 = (uint)(ushort)l->X_add_number;
  *(uint *)&l->X_add_number = uVar3 + uVar5;
  *(uint *)((int)&l->X_add_number + 4) = uVar6 + CARRY4(uVar3,uVar5);
  return 1;
}



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

undefined4 FUN_0004e7e0(int param_1,int param_2,int param_3)

{
  ushort uVar1;
  undefined4 uVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  char *pcVar7;
  uint local_24;
  
  if (param_2 != 0x1d) {
    return 0;
  }
  FUN_0001eec0(param_1);
  if (*(char *)(param_1 + 0x10) != '\x05') {
LAB_0004e822:
    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);
    FUN_00029550(uVar2);
    *(undefined1 *)(param_1 + 0x10) = 5;
    *(undefined4 *)(param_1 + 8) = 3;
    *(undefined4 *)(param_1 + 0xc) = 0;
    return 1;
  }
  uVar5 = *(uint *)(param_1 + 10);
  FUN_0001eec0(param_3);
  if (uVar5 == 0) {
    local_24 = *(uint *)(param_1 + 8);
    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);
    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;
    if (*(char *)(param_3 + 0x10) == '\x05') {
      uVar5 = *(uint *)(param_3 + 8);
      iVar4 = *(int *)(param_3 + 0xc);
      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;
    }
    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);
    FUN_00029550(uVar2);
    *(undefined4 *)(param_3 + 8) = 0;
    *(undefined4 *)(param_3 + 0xc) = 0;
    local_24 = *(uint *)(param_1 + 8);
    iVar4 = 0;
    uVar5 = 0;
LAB_0004e906:
    *(undefined1 *)(param_1 + 0x10) = 0x1d;
    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];
    *(uint *)(param_1 + 8) = uVar5;
    *(int *)(param_1 + 0xc) = iVar4;
    *(undefined4 *)(param_1 + 4) = uVar2;
    return 1;
  }
  if (*(char *)(param_3 + 0x10) == '\x02') {
    uVar6 = *(uint *)(param_3 + 0xc);
    uVar3 = *(uint *)(param_3 + 8);
    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;
    pcVar7 = (char *)(uVar5 - 1);
    uVar2 = dcgettext(0,"Index out of range 0..%u",5);
  }
  else {
    pcVar7 = "Rotating register index must be a non-negative constant";
    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);
  }
  FUN_00029550(uVar2,pcVar7);
  uVar6 = 0;
  *(undefined4 *)(param_3 + 8) = 0;
  *(undefined4 *)(param_3 + 0xc) = 0;
  uVar3 = 0;
LAB_0004e96e:
  uVar1 = *(ushort *)(param_1 + 8);
  *(uint *)(param_1 + 8) = uVar3 + uVar1;
  *(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1);
  return 1;
}


PUSH EBP
PUSH EDI
XOR EDI,EDI
PUSH ESI
PUSH EBX
CALL 0x00016030
ADD EBX,0x2f815
SUB ESP,0x1c
CMP dword ptr [ESP + 0x34],0x1d
MOV ESI,dword ptr [ESP + 0x30]
JZ 0x0004e810
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
CALL 0x0001eec0
ADD ESP,0x10
CMP byte ptr [ESI + 0x10],0x5
JZ 0x0004e868
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe4e34]
MOV EDI,0x1
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141b0
MOV dword ptr [ESP],EAX
CALL 0x00029550
ADD ESP,0x10
MOV byte ptr [ESI + 0x10],0x5
MOV EAX,EDI
MOV dword ptr [ESI + 0x8],0x3
MOV dword ptr [ESI + 0xc],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV EBP,dword ptr [ESI + 0xa]
PUSH dword ptr [ESP + 0x44]
CALL 0x0001eec0
ADD ESP,0x10
TEST EBP,EBP
JNZ 0x0004e930
MOV EAX,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [ESI + 0xc]
MOV ECX,0xa
MOV dword ptr [ESP + 0x8],EAX
ADD EAX,0xfffffda9
MOV dword ptr [ESP + 0xc],EDX
ADC EDX,-0x1
CMP ECX,EAX
MOV ECX,EBP
SBB ECX,EDX
JC 0x0004e822
MOV EAX,dword ptr [ESP + 0x38]
CMP byte ptr [EAX + 0x10],0x5
JNZ 0x0004e8c4
MOV EDX,dword ptr [EAX + 0x8]
MOV ECX,0x7f
MOV EAX,dword ptr [EAX + 0xc]
CMP ECX,EDX
SBB EBP,EAX
JNC 0x0004e906
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe4e00]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141b0
MOV dword ptr [ESP],EAX
CALL 0x00029550
MOV EAX,dword ptr [ESP + 0x48]
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV EAX,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [ESI + 0xc]
MOV dword ptr [ESP + 0x18],EAX
XOR EAX,EAX
MOV dword ptr [ESP + 0x1c],EDX
ADD ESP,0x10
XOR EDX,EDX
MOV ECX,dword ptr [ESP + 0x8]
MOV byte ptr [ESI + 0x10],0x1d
MOV EDI,0x1
SUB ECX,0x13b
MOV ECX,dword ptr [EBX + ECX*0x4 + 0x994c]
MOV dword ptr [ESI + 0x8],EDX
MOV dword ptr [ESI + 0xc],EAX
MOV dword ptr [ESI + 0x4],ECX
JMP 0x0004e7ff
MOV EAX,dword ptr [ESP + 0x38]
CMP byte ptr [EAX + 0x10],0x2
JZ 0x0004e990
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe4dc8]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141b0
MOV dword ptr [ESP],EAX
CALL 0x00029550
MOV EAX,dword ptr [ESP + 0x48]
XOR EDX,EDX
ADD ESP,0x10
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
XOR EAX,EAX
MOVZX ECX,word ptr [ESI + 0x8]
XOR EBX,EBX
MOV EDI,0x1
ADD EAX,ECX
ADC EDX,EBX
MOV dword ptr [ESI + 0x8],EAX
MOV dword ptr [ESI + 0xc],EDX
JMP 0x0004e7ff
MOV EAX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [EAX + 0xc]
MOV EAX,dword ptr [EAX + 0x8]
MOV ECX,EDX
CMP EAX,EBP
SBB ECX,EDI
JC 0x0004e96e
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe5c07]
SUB EBP,0x1
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141b0
POP EDX
POP ECX
PUSH EBP
PUSH EAX
JMP 0x0004e950
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0004e7e0(int param_1,int param_2,int param_3)\n\n{\n  ushort uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  uint local_24;\n  \n  if (param_2 != 0x1d) {\n    return 0;\n  }\n  FUN_0001eec0(param_1);\n  if (*(char *)(param_1 + 0x10) != '\x05') {\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }\n  uVar5 = *(uint *)(param_1 + 10);\n  FUN_0001eec0(param_3);\n  if (uVar5 == 0) {\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }\n  if (*(char *)(param_3 + 0x10) == '\x02') {\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }\n  FUN_00029550(uVar2,pcVar7);\n  uVar6 = 0;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0xc) = 0;\n  uVar3 = 0;\nLAB_0004e96e:\n  uVar1 = *(ushort *)(param_1 + 8);\n  *(uint *)(param_1 + 8) = uVar3 + uVar1;\n  *(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1);\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_0004e7e0(int param_1,int param_2,int param_3)\n\n{\n  ushort uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  uint local_24;\n  \n  if (param_2 != 0x1d) {\n    return 0;\n  }\n  FUN_0001eec0(param_1);\n  if (*(char *)(param_1 + 0x10) != '\x05') {\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }\n  uVar5 = *(uint *)(param_1 + 10);\n  FUN_0001eec0(param_3);\n  if (uVar5 == 0) {\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }\n  if (*(char *)(param_3 + 0x10) == '\x02') {\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }\n  FUN_00029550(uVar2,pcVar7);\n  uVar6 = 0;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0xc) = 0;\n  uVar3 = 0;\nLAB_0004e96e:\n  uVar1 = *(ushort *)(param_1 + 8);\n  *(uint *)(param_1 + 8) = uVar3 + uVar1;\n  *(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1);\n  return 1;\n}" type_identifier (function_declarator "FUN_0004e7e0(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  uint local_24;\n  \n  if (param_2 != 0x1d) {\n    return 0;\n  }\n  FUN_0001eec0(param_1);\n  if (*(char *)(param_1 + 0x10) != '\x05') {\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }\n  uVar5 = *(uint *)(param_1 + 10);\n  FUN_0001eec0(param_3);\n  if (uVar5 == 0) {\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }\n  if (*(char *)(param_3 + 0x10) == '\x02') {\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }\n  FUN_00029550(uVar2,pcVar7);\n  uVar6 = 0;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0xc) = 0;\n  uVar3 = 0;\nLAB_0004e96e:\n  uVar1 = *(ushort *)(param_1 + 8);\n  *(uint *)(param_1 + 8) = uVar3 + uVar1;\n  *(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1);\n  return 1;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "uint local_24;" type_identifier identifier ;) (if_statement "if (param_2 != 0x1d) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 != 0x1d)" ( (binary_expression "param_2 != 0x1d" identifier != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_0001eec0(param_1);" (call_expression "FUN_0001eec0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (*(char *)(param_1 + 0x10) != '\x05') {\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x10) != '\x05')" ( (binary_expression "*(char *)(param_1 + 0x10) != '\x05'" (pointer_expression "*(char *)(param_1 + 0x10)" * (cast_expression "(char *)(param_1 + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }" { (labeled_statement "LAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);" statement_identifier : (expression_statement "uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);" (assignment_expression "uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5)" identifier = (call_expression "dcgettext(0,"Index can only be applied to rotating or indirect registers",5)" identifier (argument_list "(0,"Index can only be applied to rotating or indirect registers",5)" ( number_literal , (string_literal ""Index can only be applied to rotating or indirect registers"" " string_content ") , number_literal )))) ;)) (expression_statement "FUN_00029550(uVar2);" (call_expression "FUN_00029550(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x10) = 5;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = 5" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" * (cast_expression "(undefined1 *)(param_1 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 3" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar5 = *(uint *)(param_1 + 10);" (assignment_expression "uVar5 = *(uint *)(param_1 + 10)" identifier = (pointer_expression "*(uint *)(param_1 + 10)" * (cast_expression "(uint *)(param_1 + 10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) ))))) ;) (expression_statement "FUN_0001eec0(param_3);" (call_expression "FUN_0001eec0(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (if_statement "if (uVar5 == 0) {\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }" { (expression_statement "local_24 = *(uint *)(param_1 + 8);" (assignment_expression "local_24 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24)" identifier = (binary_expression "*(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24)" (binary_expression "*(int *)(param_1 + 0xc) + -1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) + (call_expression "(uint)(0x256 < local_24)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x256 < local_24)" ( (binary_expression "0x256 < local_24" number_literal < identifier) ))))) ;) (if_statement "if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;" if (parenthesized_expression "(iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599))" ( (binary_expression "iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)" (binary_expression "iVar4 != 0" identifier != number_literal) || (binary_expression "(uint)-iVar4 < (uint)(10 < local_24 - 599)" (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" ( identifier )) - identifier) < (call_expression "(uint)(10 < local_24 - 599)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(10 < local_24 - 599)" ( (binary_expression "10 < local_24 - 599" number_literal < (binary_expression "local_24 - 599" identifier - number_literal)) ))))) )) (goto_statement "goto LAB_0004e822;" goto statement_identifier ;)) (if_statement "if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }" if (parenthesized_expression "(*(char *)(param_3 + 0x10) == '\x05')" ( (binary_expression "*(char *)(param_3 + 0x10) == '\x05'" (pointer_expression "*(char *)(param_3 + 0x10)" * (cast_expression "(char *)(param_3 + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) == (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }" { (expression_statement "uVar5 = *(uint *)(param_3 + 8);" (assignment_expression "uVar5 = *(uint *)(param_3 + 8)" identifier = (pointer_expression "*(uint *)(param_3 + 8)" * (cast_expression "(uint *)(param_3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_3 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_3 + 0xc)" identifier = (pointer_expression "*(int *)(param_3 + 0xc)" * (cast_expression "(int *)(param_3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;" if (parenthesized_expression "(iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4)" ( (binary_expression "iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4" (binary_expression "iVar4 == 0" identifier == number_literal) && (binary_expression "(uint)(0x7f < uVar5) <= (uint)-iVar4" (call_expression "(uint)(0x7f < uVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x7f < uVar5)" ( (binary_expression "0x7f < uVar5" number_literal < identifier) ))) <= (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" ( identifier )) - identifier))) )) (goto_statement "goto LAB_0004e906;" goto statement_identifier ;)) })) (expression_statement "uVar2 = dcgettext(0,"Indirect register index must be a general register",5);" (assignment_expression "uVar2 = dcgettext(0,"Indirect register index must be a general register",5)" identifier = (call_expression "dcgettext(0,"Indirect register index must be a general register",5)" identifier (argument_list "(0,"Indirect register index must be a general register",5)" ( number_literal , (string_literal ""Indirect register index must be a general register"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00029550(uVar2);" (call_expression "FUN_00029550(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_3 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 8) = 0" (pointer_expression "*(undefined4 *)(param_3 + 8)" * (cast_expression "(undefined4 *)(param_3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0xc)" * (cast_expression "(undefined4 *)(param_3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_24 = *(uint *)(param_1 + 8);" (assignment_expression "local_24 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;" statement_identifier : (expression_statement "*(undefined1 *)(param_1 + 0x10) = 0x1d;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = 0x1d" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" * (cast_expression "(undefined1 *)(param_1 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "uVar2 = (&DAT_0008794c)[local_24 - 0x13b];" (assignment_expression "uVar2 = (&DAT_0008794c)[local_24 - 0x13b]" identifier = (subscript_expression "(&DAT_0008794c)[local_24 - 0x13b]" (parenthesized_expression "(&DAT_0008794c)" ( (pointer_expression "&DAT_0008794c" & identifier) )) [ (binary_expression "local_24 - 0x13b" identifier - number_literal) ])) ;) (expression_statement "*(uint *)(param_1 + 8) = uVar5;" (assignment_expression "*(uint *)(param_1 + 8) = uVar5" (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar4;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(char *)(param_3 + 0x10) == '\x02') {\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }" if (parenthesized_expression "(*(char *)(param_3 + 0x10) == '\x02')" ( (binary_expression "*(char *)(param_3 + 0x10) == '\x02'" (pointer_expression "*(char *)(param_3 + 0x10)" * (cast_expression "(char *)(param_3 + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }" { (expression_statement "uVar6 = *(uint *)(param_3 + 0xc);" (assignment_expression "uVar6 = *(uint *)(param_3 + 0xc)" identifier = (pointer_expression "*(uint *)(param_3 + 0xc)" * (cast_expression "(uint *)(param_3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(param_3 + 8);" (assignment_expression "uVar3 = *(uint *)(param_3 + 8)" identifier = (pointer_expression "*(uint *)(param_3 + 8)" * (cast_expression "(uint *)(param_3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;" if (parenthesized_expression "(uVar6 < (uVar3 < uVar5))" ( (binary_expression "uVar6 < (uVar3 < uVar5)" identifier < (parenthesized_expression "(uVar3 < uVar5)" ( (binary_expression "uVar3 < uVar5" identifier < identifier) ))) )) (goto_statement "goto LAB_0004e96e;" goto statement_identifier ;)) (expression_statement "pcVar7 = (char *)(uVar5 - 1);" (assignment_expression "pcVar7 = (char *)(uVar5 - 1)" identifier = (cast_expression "(char *)(uVar5 - 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 - 1)" ( (binary_expression "uVar5 - 1" identifier - number_literal) )))) ;) (expression_statement "uVar2 = dcgettext(0,"Index out of range 0..%u",5);" (assignment_expression "uVar2 = dcgettext(0,"Index out of range 0..%u",5)" identifier = (call_expression "dcgettext(0,"Index out of range 0..%u",5)" identifier (argument_list "(0,"Index out of range 0..%u",5)" ( number_literal , (string_literal ""Index out of range 0..%u"" " string_content ") , number_literal )))) ;) }) (else_clause "else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }" else (compound_statement "{\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }" { (expression_statement "pcVar7 = "Rotating register index must be a non-negative constant";" (assignment_expression "pcVar7 = "Rotating register index must be a non-negative constant"" identifier = (string_literal ""Rotating register index must be a non-negative constant"" " string_content ")) ;) (expression_statement "uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);" (assignment_expression "uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5)" identifier = (call_expression "dcgettext(0,"Rotating register index must be a non-negative constant",5)" identifier (argument_list "(0,"Rotating register index must be a non-negative constant",5)" ( number_literal , (string_literal ""Rotating register index must be a non-negative constant"" " string_content ") , number_literal )))) ;) }))) (expression_statement "FUN_00029550(uVar2,pcVar7);" (call_expression "FUN_00029550(uVar2,pcVar7)" identifier (argument_list "(uVar2,pcVar7)" ( identifier , identifier ))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 8) = 0" (pointer_expression "*(undefined4 *)(param_3 + 8)" * (cast_expression "(undefined4 *)(param_3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0xc)" * (cast_expression "(undefined4 *)(param_3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0004e96e:\n  uVar1 = *(ushort *)(param_1 + 8);" statement_identifier : (expression_statement "uVar1 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 8)" identifier = (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;)) (expression_statement "*(uint *)(param_1 + 8) = uVar3 + uVar1;" (assignment_expression "*(uint *)(param_1 + 8) = uVar3 + uVar1" (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "uVar3 + uVar1" identifier + identifier)) ;) (expression_statement "*(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1);" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1)" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "uVar6 + CARRY4(uVar3,(uint)uVar1)" identifier + (call_expression "CARRY4(uVar3,(uint)uVar1)" identifier (argument_list "(uVar3,(uint)uVar1)" ( identifier , (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ))))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint ia64_optimize_expr(expressionS *l,operatorT op,expressionS *r)\n\n{\n  symbolS *psVar1;\n  char *pcVar2;\n  char *format;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint local_24;\n  \n  if (op != O_index) {\n    return 0;\n  }\n  resolve_expression(l);\n  if (l->field_0x10 != '\x05') {\nLAB_0004e822:\n    pcVar2 = (char *)dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    as_bad(pcVar2);\n    l->field_0x10 = 5;\n    *(undefined4 *)&l->X_add_number = 3;\n    *(undefined4 *)((int)&l->X_add_number + 4) = 0;\n    return 1;\n  }\n  uVar5 = *(uint *)((int)&l->X_add_number + 2);\n  resolve_expression(r);\n  if (uVar5 == 0) {\n    local_24 = (uint)l->X_add_number;\n    iVar4 = *(int *)((int)&l->X_add_number + 4) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (r->field_0x10 == '\x05') {\n      uVar5 = (uint)r->X_add_number;\n      iVar4 = *(int *)((int)&r->X_add_number + 4);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    pcVar2 = (char *)dcgettext(0,"Indirect register index must be a general register",5);\n    as_bad(pcVar2);\n    *(undefined4 *)&r->X_add_number = 0;\n    *(undefined4 *)((int)&r->X_add_number + 4) = 0;\n    local_24 = (uint)l->X_add_number;\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    l->field_0x10 = 0x1d;\n    psVar1 = *(symbolS **)((int)&md + (local_24 - 0x13b) * 4 + 0xc);\n    *(uint *)&l->X_add_number = uVar5;\n    *(int *)((int)&l->X_add_number + 4) = iVar4;\n    l->X_op_symbol = psVar1;\n    return 1;\n  }\n  if (r->field_0x10 == '\x02') {\n    uVar6 = *(uint *)((int)&r->X_add_number + 4);\n    uVar3 = (uint)r->X_add_number;\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar2 = (char *)(uVar5 - 1);\n    format = (char *)dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar2 = "Rotating register index must be a non-negative constant";\n    format = (char *)dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }\n  as_bad(format,pcVar2);\n  uVar6 = 0;\n  *(undefined4 *)&r->X_add_number = 0;\n  *(undefined4 *)((int)&r->X_add_number + 4) = 0;\n  uVar3 = 0;\nLAB_0004e96e:\n  uVar5 = (uint)(ushort)l->X_add_number;\n  *(uint *)&l->X_add_number = uVar3 + uVar5;\n  *(uint *)((int)&l->X_add_number + 4) = uVar6 + CARRY4(uVar3,uVar5);\n  return 1;\n}\n\n" comment comment comment (function_definition "int ia64_optimize_expr(expressionS *l,operatorT op,expressionS *r)\n\n{\n  symbolS *psVar1;\n  char *pcVar2;\n  char *format;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint local_24;\n  \n  if (op != O_index) {\n    return 0;\n  }\n  resolve_expression(l);\n  if (l->field_0x10 != '\x05') {\nLAB_0004e822:\n    pcVar2 = (char *)dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    as_bad(pcVar2);\n    l->field_0x10 = 5;\n    *(undefined4 *)&l->X_add_number = 3;\n    *(undefined4 *)((int)&l->X_add_number + 4) = 0;\n    return 1;\n  }\n  uVar5 = *(uint *)((int)&l->X_add_number + 2);\n  resolve_expression(r);\n  if (uVar5 == 0) {\n    local_24 = (uint)l->X_add_number;\n    iVar4 = *(int *)((int)&l->X_add_number + 4) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (r->field_0x10 == '\x05') {\n      uVar5 = (uint)r->X_add_number;\n      iVar4 = *(int *)((int)&r->X_add_number + 4);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    pcVar2 = (char *)dcgettext(0,"Indirect register index must be a general register",5);\n    as_bad(pcVar2);\n    *(undefined4 *)&r->X_add_number = 0;\n    *(undefined4 *)((int)&r->X_add_number + 4) = 0;\n    local_24 = (uint)l->X_add_number;\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    l->field_0x10 = 0x1d;\n    psVar1 = *(symbolS **)((int)&md + (local_24 - 0x13b) * 4 + 0xc);\n    *(uint *)&l->X_add_number = uVar5;\n    *(int *)((int)&l->X_add_number + 4) = iVar4;\n    l->X_op_symbol = psVar1;\n    return 1;\n  }\n  if (r->field_0x10 == '\x02') {\n    uVar6 = *(uint *)((int)&r->X_add_number + 4);\n    uVar3 = (uint)r->X_add_number;\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar2 = (char *)(uVar5 - 1);\n    format = (char *)dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar2 = "Rotating register index must be a non-negative constant";\n    format = (char *)dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }\n  as_bad(format,pcVar2);\n  uVar6 = 0;\n  *(undefined4 *)&r->X_add_number = 0;\n  *(undefined4 *)((int)&r->X_add_number + 4) = 0;\n  uVar3 = 0;\nLAB_0004e96e:\n  uVar5 = (uint)(ushort)l->X_add_number;\n  *(uint *)&l->X_add_number = uVar3 + uVar5;\n  *(uint *)((int)&l->X_add_number + 4) = uVar6 + CARRY4(uVar3,uVar5);\n  return 1;\n}" primitive_type (function_declarator "ia64_optimize_expr(expressionS *l,operatorT op,expressionS *r)" identifier (parameter_list "(expressionS *l,operatorT op,expressionS *r)" ( (parameter_declaration "expressionS *l" type_identifier (pointer_declarator "*l" * identifier)) , (parameter_declaration "operatorT op" type_identifier identifier) , (parameter_declaration "expressionS *r" type_identifier (pointer_declarator "*r" * identifier)) ))) (compound_statement "{\n  symbolS *psVar1;\n  char *pcVar2;\n  char *format;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint local_24;\n  \n  if (op != O_index) {\n    return 0;\n  }\n  resolve_expression(l);\n  if (l->field_0x10 != '\x05') {\nLAB_0004e822:\n    pcVar2 = (char *)dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    as_bad(pcVar2);\n    l->field_0x10 = 5;\n    *(undefined4 *)&l->X_add_number = 3;\n    *(undefined4 *)((int)&l->X_add_number + 4) = 0;\n    return 1;\n  }\n  uVar5 = *(uint *)((int)&l->X_add_number + 2);\n  resolve_expression(r);\n  if (uVar5 == 0) {\n    local_24 = (uint)l->X_add_number;\n    iVar4 = *(int *)((int)&l->X_add_number + 4) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (r->field_0x10 == '\x05') {\n      uVar5 = (uint)r->X_add_number;\n      iVar4 = *(int *)((int)&r->X_add_number + 4);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    pcVar2 = (char *)dcgettext(0,"Indirect register index must be a general register",5);\n    as_bad(pcVar2);\n    *(undefined4 *)&r->X_add_number = 0;\n    *(undefined4 *)((int)&r->X_add_number + 4) = 0;\n    local_24 = (uint)l->X_add_number;\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    l->field_0x10 = 0x1d;\n    psVar1 = *(symbolS **)((int)&md + (local_24 - 0x13b) * 4 + 0xc);\n    *(uint *)&l->X_add_number = uVar5;\n    *(int *)((int)&l->X_add_number + 4) = iVar4;\n    l->X_op_symbol = psVar1;\n    return 1;\n  }\n  if (r->field_0x10 == '\x02') {\n    uVar6 = *(uint *)((int)&r->X_add_number + 4);\n    uVar3 = (uint)r->X_add_number;\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar2 = (char *)(uVar5 - 1);\n    format = (char *)dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar2 = "Rotating register index must be a non-negative constant";\n    format = (char *)dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }\n  as_bad(format,pcVar2);\n  uVar6 = 0;\n  *(undefined4 *)&r->X_add_number = 0;\n  *(undefined4 *)((int)&r->X_add_number + 4) = 0;\n  uVar3 = 0;\nLAB_0004e96e:\n  uVar5 = (uint)(ushort)l->X_add_number;\n  *(uint *)&l->X_add_number = uVar3 + uVar5;\n  *(uint *)((int)&l->X_add_number + 4) = uVar6 + CARRY4(uVar3,uVar5);\n  return 1;\n}" { (declaration "symbolS *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (if_statement "if (op != O_index) {\n    return 0;\n  }" if (parenthesized_expression "(op != O_index)" ( (binary_expression "op != O_index" identifier != identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "resolve_expression(l);" (call_expression "resolve_expression(l)" identifier (argument_list "(l)" ( identifier ))) ;) (if_statement "if (l->field_0x10 != '\x05') {\nLAB_0004e822:\n    pcVar2 = (char *)dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    as_bad(pcVar2);\n    l->field_0x10 = 5;\n    *(undefined4 *)&l->X_add_number = 3;\n    *(undefined4 *)((int)&l->X_add_number + 4) = 0;\n    return 1;\n  }" if (parenthesized_expression "(l->field_0x10 != '\x05')" ( (binary_expression "l->field_0x10 != '\x05'" (field_expression "l->field_0x10" identifier -> field_identifier) != (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0004e822:\n    pcVar2 = (char *)dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    as_bad(pcVar2);\n    l->field_0x10 = 5;\n    *(undefined4 *)&l->X_add_number = 3;\n    *(undefined4 *)((int)&l->X_add_number + 4) = 0;\n    return 1;\n  }" { (labeled_statement "LAB_0004e822:\n    pcVar2 = (char *)dcgettext(0,"Index can only be applied to rotating or indirect registers",5);" statement_identifier : (expression_statement "pcVar2 = (char *)dcgettext(0,"Index can only be applied to rotating or indirect registers",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"Index can only be applied to rotating or indirect registers",5)" identifier = (cast_expression "(char *)dcgettext(0,"Index can only be applied to rotating or indirect registers",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Index can only be applied to rotating or indirect registers",5)" identifier (argument_list "(0,"Index can only be applied to rotating or indirect registers",5)" ( number_literal , (string_literal ""Index can only be applied to rotating or indirect registers"" " string_content ") , number_literal ))))) ;)) (expression_statement "as_bad(pcVar2);" (call_expression "as_bad(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "l->field_0x10 = 5;" (assignment_expression "l->field_0x10 = 5" (field_expression "l->field_0x10" identifier -> field_identifier) = number_literal) ;) (expression_statement "*(undefined4 *)&l->X_add_number = 3;" (assignment_expression "*(undefined4 *)&l->X_add_number = 3" (pointer_expression "*(undefined4 *)&l->X_add_number" * (cast_expression "(undefined4 *)&l->X_add_number" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&l->X_add_number" & (field_expression "l->X_add_number" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&l->X_add_number + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&l->X_add_number + 4) = 0" (pointer_expression "*(undefined4 *)((int)&l->X_add_number + 4)" * (cast_expression "(undefined4 *)((int)&l->X_add_number + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&l->X_add_number + 4)" ( (binary_expression "(int)&l->X_add_number + 4" (cast_expression "(int)&l->X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&l->X_add_number" & (field_expression "l->X_add_number" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar5 = *(uint *)((int)&l->X_add_number + 2);" (assignment_expression "uVar5 = *(uint *)((int)&l->X_add_number + 2)" identifier = (pointer_expression "*(uint *)((int)&l->X_add_number + 2)" * (cast_expression "(uint *)((int)&l->X_add_number + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&l->X_add_number + 2)" ( (binary_expression "(int)&l->X_add_number + 2" (cast_expression "(int)&l->X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&l->X_add_number" & (field_expression "l->X_add_number" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "resolve_expression(r);" (call_expression "resolve_expression(r)" identifier (argument_list "(r)" ( identifier ))) ;) (if_statement "if (uVar5 == 0) {\n    local_24 = (uint)l->X_add_number;\n    iVar4 = *(int *)((int)&l->X_add_number + 4) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (r->field_0x10 == '\x05') {\n      uVar5 = (uint)r->X_add_number;\n      iVar4 = *(int *)((int)&r->X_add_number + 4);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    pcVar2 = (char *)dcgettext(0,"Indirect register index must be a general register",5);\n    as_bad(pcVar2);\n    *(undefined4 *)&r->X_add_number = 0;\n    *(undefined4 *)((int)&r->X_add_number + 4) = 0;\n    local_24 = (uint)l->X_add_number;\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    l->field_0x10 = 0x1d;\n    psVar1 = *(symbolS **)((int)&md + (local_24 - 0x13b) * 4 + 0xc);\n    *(uint *)&l->X_add_number = uVar5;\n    *(int *)((int)&l->X_add_number + 4) = iVar4;\n    l->X_op_symbol = psVar1;\n    return 1;\n  }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    local_24 = (uint)l->X_add_number;\n    iVar4 = *(int *)((int)&l->X_add_number + 4) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (r->field_0x10 == '\x05') {\n      uVar5 = (uint)r->X_add_number;\n      iVar4 = *(int *)((int)&r->X_add_number + 4);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    pcVar2 = (char *)dcgettext(0,"Indirect register index must be a general register",5);\n    as_bad(pcVar2);\n    *(undefined4 *)&r->X_add_number = 0;\n    *(undefined4 *)((int)&r->X_add_number + 4) = 0;\n    local_24 = (uint)l->X_add_number;\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    l->field_0x10 = 0x1d;\n    psVar1 = *(symbolS **)((int)&md + (local_24 - 0x13b) * 4 + 0xc);\n    *(uint *)&l->X_add_number = uVar5;\n    *(int *)((int)&l->X_add_number + 4) = iVar4;\n    l->X_op_symbol = psVar1;\n    return 1;\n  }" { (expression_statement "local_24 = (uint)l->X_add_number;" (assignment_expression "local_24 = (uint)l->X_add_number" identifier = (cast_expression "(uint)l->X_add_number" ( (type_descriptor "uint" type_identifier) ) (field_expression "l->X_add_number" identifier -> field_identifier))) ;) (expression_statement "iVar4 = *(int *)((int)&l->X_add_number + 4) + -1 + (uint)(0x256 < local_24);" (assignment_expression "iVar4 = *(int *)((int)&l->X_add_number + 4) + -1 + (uint)(0x256 < local_24)" identifier = (binary_expression "*(int *)((int)&l->X_add_number + 4) + -1 + (uint)(0x256 < local_24)" (binary_expression "*(int *)((int)&l->X_add_number + 4) + -1" (pointer_expression "*(int *)((int)&l->X_add_number + 4)" * (cast_expression "(int *)((int)&l->X_add_number + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&l->X_add_number + 4)" ( (binary_expression "(int)&l->X_add_number + 4" (cast_expression "(int)&l->X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&l->X_add_number" & (field_expression "l->X_add_number" identifier -> field_identifier))) + number_literal) )))) + number_literal) + (call_expression "(uint)(0x256 < local_24)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x256 < local_24)" ( (binary_expression "0x256 < local_24" number_literal < identifier) ))))) ;) (if_statement "if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;" if (parenthesized_expression "(iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599))" ( (binary_expression "iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)" (binary_expression "iVar4 != 0" identifier != number_literal) || (binary_expression "(uint)-iVar4 < (uint)(10 < local_24 - 599)" (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" ( identifier )) - identifier) < (call_expression "(uint)(10 < local_24 - 599)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(10 < local_24 - 599)" ( (binary_expression "10 < local_24 - 599" number_literal < (binary_expression "local_24 - 599" identifier - number_literal)) ))))) )) (goto_statement "goto LAB_0004e822;" goto statement_identifier ;)) (if_statement "if (r->field_0x10 == '\x05') {\n      uVar5 = (uint)r->X_add_number;\n      iVar4 = *(int *)((int)&r->X_add_number + 4);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }" if (parenthesized_expression "(r->field_0x10 == '\x05')" ( (binary_expression "r->field_0x10 == '\x05'" (field_expression "r->field_0x10" identifier -> field_identifier) == (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n      uVar5 = (uint)r->X_add_number;\n      iVar4 = *(int *)((int)&r->X_add_number + 4);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }" { (expression_statement "uVar5 = (uint)r->X_add_number;" (assignment_expression "uVar5 = (uint)r->X_add_number" identifier = (cast_expression "(uint)r->X_add_number" ( (type_descriptor "uint" type_identifier) ) (field_expression "r->X_add_number" identifier -> field_identifier))) ;) (expression_statement "iVar4 = *(int *)((int)&r->X_add_number + 4);" (assignment_expression "iVar4 = *(int *)((int)&r->X_add_number + 4)" identifier = (pointer_expression "*(int *)((int)&r->X_add_number + 4)" * (cast_expression "(int *)((int)&r->X_add_number + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&r->X_add_number + 4)" ( (binary_expression "(int)&r->X_add_number + 4" (cast_expression "(int)&r->X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&r->X_add_number" & (field_expression "r->X_add_number" identifier -> field_identifier))) + number_literal) ))))) ;) (if_statement "if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;" if (parenthesized_expression "(iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4)" ( (binary_expression "iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4" (binary_expression "iVar4 == 0" identifier == number_literal) && (binary_expression "(uint)(0x7f < uVar5) <= (uint)-iVar4" (call_expression "(uint)(0x7f < uVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x7f < uVar5)" ( (binary_expression "0x7f < uVar5" number_literal < identifier) ))) <= (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" ( identifier )) - identifier))) )) (goto_statement "goto LAB_0004e906;" goto statement_identifier ;)) })) (expression_statement "pcVar2 = (char *)dcgettext(0,"Indirect register index must be a general register",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"Indirect register index must be a general register",5)" identifier = (cast_expression "(char *)dcgettext(0,"Indirect register index must be a general register",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Indirect register index must be a general register",5)" identifier (argument_list "(0,"Indirect register index must be a general register",5)" ( number_literal , (string_literal ""Indirect register index must be a general register"" " string_content ") , number_literal ))))) ;) (expression_statement "as_bad(pcVar2);" (call_expression "as_bad(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "*(undefined4 *)&r->X_add_number = 0;" (assignment_expression "*(undefined4 *)&r->X_add_number = 0" (pointer_expression "*(undefined4 *)&r->X_add_number" * (cast_expression "(undefined4 *)&r->X_add_number" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&r->X_add_number" & (field_expression "r->X_add_number" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&r->X_add_number + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&r->X_add_number + 4) = 0" (pointer_expression "*(undefined4 *)((int)&r->X_add_number + 4)" * (cast_expression "(undefined4 *)((int)&r->X_add_number + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&r->X_add_number + 4)" ( (binary_expression "(int)&r->X_add_number + 4" (cast_expression "(int)&r->X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&r->X_add_number" & (field_expression "r->X_add_number" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "local_24 = (uint)l->X_add_number;" (assignment_expression "local_24 = (uint)l->X_add_number" identifier = (cast_expression "(uint)l->X_add_number" ( (type_descriptor "uint" type_identifier) ) (field_expression "l->X_add_number" identifier -> field_identifier))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0004e906:\n    l->field_0x10 = 0x1d;" statement_identifier : (expression_statement "l->field_0x10 = 0x1d;" (assignment_expression "l->field_0x10 = 0x1d" (field_expression "l->field_0x10" identifier -> field_identifier) = number_literal) ;)) (expression_statement "psVar1 = *(symbolS **)((int)&md + (local_24 - 0x13b) * 4 + 0xc);" (assignment_expression "psVar1 = *(symbolS **)((int)&md + (local_24 - 0x13b) * 4 + 0xc)" identifier = (pointer_expression "*(symbolS **)((int)&md + (local_24 - 0x13b) * 4 + 0xc)" * (cast_expression "(symbolS **)((int)&md + (local_24 - 0x13b) * 4 + 0xc)" ( (type_descriptor "symbolS **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&md + (local_24 - 0x13b) * 4 + 0xc)" ( (binary_expression "(int)&md + (local_24 - 0x13b) * 4 + 0xc" (binary_expression "(int)&md + (local_24 - 0x13b) * 4" (cast_expression "(int)&md" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&md" & identifier)) + (binary_expression "(local_24 - 0x13b) * 4" (parenthesized_expression "(local_24 - 0x13b)" ( (binary_expression "local_24 - 0x13b" identifier - number_literal) )) * number_literal)) + number_literal) ))))) ;) (expression_statement "*(uint *)&l->X_add_number = uVar5;" (assignment_expression "*(uint *)&l->X_add_number = uVar5" (pointer_expression "*(uint *)&l->X_add_number" * (cast_expression "(uint *)&l->X_add_number" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&l->X_add_number" & (field_expression "l->X_add_number" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(int *)((int)&l->X_add_number + 4) = iVar4;" (assignment_expression "*(int *)((int)&l->X_add_number + 4) = iVar4" (pointer_expression "*(int *)((int)&l->X_add_number + 4)" * (cast_expression "(int *)((int)&l->X_add_number + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&l->X_add_number + 4)" ( (binary_expression "(int)&l->X_add_number + 4" (cast_expression "(int)&l->X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&l->X_add_number" & (field_expression "l->X_add_number" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "l->X_op_symbol = psVar1;" (assignment_expression "l->X_op_symbol = psVar1" (field_expression "l->X_op_symbol" identifier -> field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (r->field_0x10 == '\x02') {\n    uVar6 = *(uint *)((int)&r->X_add_number + 4);\n    uVar3 = (uint)r->X_add_number;\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar2 = (char *)(uVar5 - 1);\n    format = (char *)dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar2 = "Rotating register index must be a non-negative constant";\n    format = (char *)dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }" if (parenthesized_expression "(r->field_0x10 == '\x02')" ( (binary_expression "r->field_0x10 == '\x02'" (field_expression "r->field_0x10" identifier -> field_identifier) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    uVar6 = *(uint *)((int)&r->X_add_number + 4);\n    uVar3 = (uint)r->X_add_number;\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar2 = (char *)(uVar5 - 1);\n    format = (char *)dcgettext(0,"Index out of range 0..%u",5);\n  }" { (expression_statement "uVar6 = *(uint *)((int)&r->X_add_number + 4);" (assignment_expression "uVar6 = *(uint *)((int)&r->X_add_number + 4)" identifier = (pointer_expression "*(uint *)((int)&r->X_add_number + 4)" * (cast_expression "(uint *)((int)&r->X_add_number + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&r->X_add_number + 4)" ( (binary_expression "(int)&r->X_add_number + 4" (cast_expression "(int)&r->X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&r->X_add_number" & (field_expression "r->X_add_number" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "uVar3 = (uint)r->X_add_number;" (assignment_expression "uVar3 = (uint)r->X_add_number" identifier = (cast_expression "(uint)r->X_add_number" ( (type_descriptor "uint" type_identifier) ) (field_expression "r->X_add_number" identifier -> field_identifier))) ;) (if_statement "if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;" if (parenthesized_expression "(uVar6 < (uVar3 < uVar5))" ( (binary_expression "uVar6 < (uVar3 < uVar5)" identifier < (parenthesized_expression "(uVar3 < uVar5)" ( (binary_expression "uVar3 < uVar5" identifier < identifier) ))) )) (goto_statement "goto LAB_0004e96e;" goto statement_identifier ;)) (expression_statement "pcVar2 = (char *)(uVar5 - 1);" (assignment_expression "pcVar2 = (char *)(uVar5 - 1)" identifier = (cast_expression "(char *)(uVar5 - 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 - 1)" ( (binary_expression "uVar5 - 1" identifier - number_literal) )))) ;) (expression_statement "format = (char *)dcgettext(0,"Index out of range 0..%u",5);" (assignment_expression "format = (char *)dcgettext(0,"Index out of range 0..%u",5)" identifier = (cast_expression "(char *)dcgettext(0,"Index out of range 0..%u",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Index out of range 0..%u",5)" identifier (argument_list "(0,"Index out of range 0..%u",5)" ( number_literal , (string_literal ""Index out of range 0..%u"" " string_content ") , number_literal ))))) ;) }) (else_clause "else {\n    pcVar2 = "Rotating register index must be a non-negative constant";\n    format = (char *)dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }" else (compound_statement "{\n    pcVar2 = "Rotating register index must be a non-negative constant";\n    format = (char *)dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }" { (expression_statement "pcVar2 = "Rotating register index must be a non-negative constant";" (assignment_expression "pcVar2 = "Rotating register index must be a non-negative constant"" identifier = (string_literal ""Rotating register index must be a non-negative constant"" " string_content ")) ;) (expression_statement "format = (char *)dcgettext(0,"Rotating register index must be a non-negative constant",5);" (assignment_expression "format = (char *)dcgettext(0,"Rotating register index must be a non-negative constant",5)" identifier = (cast_expression "(char *)dcgettext(0,"Rotating register index must be a non-negative constant",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Rotating register index must be a non-negative constant",5)" identifier (argument_list "(0,"Rotating register index must be a non-negative constant",5)" ( number_literal , (string_literal ""Rotating register index must be a non-negative constant"" " string_content ") , number_literal ))))) ;) }))) (expression_statement "as_bad(format,pcVar2);" (call_expression "as_bad(format,pcVar2)" identifier (argument_list "(format,pcVar2)" ( identifier , identifier ))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)&r->X_add_number = 0;" (assignment_expression "*(undefined4 *)&r->X_add_number = 0" (pointer_expression "*(undefined4 *)&r->X_add_number" * (cast_expression "(undefined4 *)&r->X_add_number" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&r->X_add_number" & (field_expression "r->X_add_number" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&r->X_add_number + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&r->X_add_number + 4) = 0" (pointer_expression "*(undefined4 *)((int)&r->X_add_number + 4)" * (cast_expression "(undefined4 *)((int)&r->X_add_number + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&r->X_add_number + 4)" ( (binary_expression "(int)&r->X_add_number + 4" (cast_expression "(int)&r->X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&r->X_add_number" & (field_expression "r->X_add_number" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0004e96e:\n  uVar5 = (uint)(ushort)l->X_add_number;" statement_identifier : (expression_statement "uVar5 = (uint)(ushort)l->X_add_number;" (assignment_expression "uVar5 = (uint)(ushort)l->X_add_number" identifier = (cast_expression "(uint)(ushort)l->X_add_number" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(ushort)l->X_add_number" ( (type_descriptor "ushort" type_identifier) ) (field_expression "l->X_add_number" identifier -> field_identifier)))) ;)) (expression_statement "*(uint *)&l->X_add_number = uVar3 + uVar5;" (assignment_expression "*(uint *)&l->X_add_number = uVar3 + uVar5" (pointer_expression "*(uint *)&l->X_add_number" * (cast_expression "(uint *)&l->X_add_number" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&l->X_add_number" & (field_expression "l->X_add_number" identifier -> field_identifier)))) = (binary_expression "uVar3 + uVar5" identifier + identifier)) ;) (expression_statement "*(uint *)((int)&l->X_add_number + 4) = uVar6 + CARRY4(uVar3,uVar5);" (assignment_expression "*(uint *)((int)&l->X_add_number + 4) = uVar6 + CARRY4(uVar3,uVar5)" (pointer_expression "*(uint *)((int)&l->X_add_number + 4)" * (cast_expression "(uint *)((int)&l->X_add_number + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&l->X_add_number + 4)" ( (binary_expression "(int)&l->X_add_number + 4" (cast_expression "(int)&l->X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&l->X_add_number" & (field_expression "l->X_add_number" identifier -> field_identifier))) + number_literal) )))) = (binary_expression "uVar6 + CARRY4(uVar3,uVar5)" identifier + (call_expression "CARRY4(uVar3,uVar5)" identifier (argument_list "(uVar3,uVar5)" ( identifier , identifier ))))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0004e7e0(int param_1,int param_2,int param_3)\n\n{\n  ushort uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  uint local_24;\n  \n  if (param_2 != 0x1d) {\n    return 0;\n  }\n  FUN_0001eec0(param_1);\n  if (*(char *)(param_1 + 0x10) != '\x05') {\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }\n  uVar5 = *(uint *)(param_1 + 10);\n  FUN_0001eec0(param_3);\n  if (uVar5 == 0) {\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }\n  if (*(char *)(param_3 + 0x10) == '\x02') {\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }\n  FUN_00029550(uVar2,pcVar7);\n  uVar6 = 0;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0xc) = 0;\n  uVar3 = 0;\nLAB_0004e96e:\n  uVar1 = *(ushort *)(param_1 + 8);\n  *(uint *)(param_1 + 8) = uVar3 + uVar1;\n  *(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1);\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0004e7e0(int param_1,int param_2,int param_3)\n\n{\n  ushort uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  uint local_24;\n  \n  if (param_2 != 0x1d) {\n    return 0;\n  }\n  FUN_0001eec0(param_1);\n  if (*(char *)(param_1 + 0x10) != '\x05') {\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }\n  uVar5 = *(uint *)(param_1 + 10);\n  FUN_0001eec0(param_3);\n  if (uVar5 == 0) {\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }\n  if (*(char *)(param_3 + 0x10) == '\x02') {\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }\n  FUN_00029550(uVar2,pcVar7);\n  uVar6 = 0;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0xc) = 0;\n  uVar3 = 0;\nLAB_0004e96e:\n  uVar1 = *(ushort *)(param_1 + 8);\n  *(uint *)(param_1 + 8) = uVar3 + uVar1;\n  *(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1);\n  return 1;\n}" type_identifier (function_declarator "FUN_0004e7e0(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  uint local_24;\n  \n  if (param_2 != 0x1d) {\n    return 0;\n  }\n  FUN_0001eec0(param_1);\n  if (*(char *)(param_1 + 0x10) != '\x05') {\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }\n  uVar5 = *(uint *)(param_1 + 10);\n  FUN_0001eec0(param_3);\n  if (uVar5 == 0) {\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }\n  if (*(char *)(param_3 + 0x10) == '\x02') {\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }\n  FUN_00029550(uVar2,pcVar7);\n  uVar6 = 0;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0xc) = 0;\n  uVar3 = 0;\nLAB_0004e96e:\n  uVar1 = *(ushort *)(param_1 + 8);\n  *(uint *)(param_1 + 8) = uVar3 + uVar1;\n  *(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1);\n  return 1;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "uint local_24;" type_identifier identifier ;) (if_statement "if (param_2 != 0x1d) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 != 0x1d)" ( (binary_expression "param_2 != 0x1d" identifier != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_0001eec0(param_1);" (call_expression "FUN_0001eec0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (*(char *)(param_1 + 0x10) != '\x05') {\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x10) != '\x05')" ( (binary_expression "*(char *)(param_1 + 0x10) != '\x05'" (pointer_expression "*(char *)(param_1 + 0x10)" * (cast_expression "(char *)(param_1 + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }" { (labeled_statement "LAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);" statement_identifier : (expression_statement "uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);" (assignment_expression "uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5)" identifier = (call_expression "dcgettext(0,"Index can only be applied to rotating or indirect registers",5)" identifier (argument_list "(0,"Index can only be applied to rotating or indirect registers",5)" ( number_literal , (string_literal ""Index can only be applied to rotating or indirect registers"" " string_content ") , number_literal )))) ;)) (expression_statement "FUN_00029550(uVar2);" (call_expression "FUN_00029550(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x10) = 5;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = 5" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" * (cast_expression "(undefined1 *)(param_1 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 3" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar5 = *(uint *)(param_1 + 10);" (assignment_expression "uVar5 = *(uint *)(param_1 + 10)" identifier = (pointer_expression "*(uint *)(param_1 + 10)" * (cast_expression "(uint *)(param_1 + 10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) ))))) ;) (expression_statement "FUN_0001eec0(param_3);" (call_expression "FUN_0001eec0(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (if_statement "if (uVar5 == 0) {\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }" { (expression_statement "local_24 = *(uint *)(param_1 + 8);" (assignment_expression "local_24 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24)" identifier = (binary_expression "*(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24)" (binary_expression "*(int *)(param_1 + 0xc) + -1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) + (call_expression "(uint)(0x256 < local_24)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x256 < local_24)" ( (binary_expression "0x256 < local_24" number_literal < identifier) ))))) ;) (if_statement "if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;" if (parenthesized_expression "(iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599))" ( (binary_expression "iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)" (binary_expression "iVar4 != 0" identifier != number_literal) || (binary_expression "(uint)-iVar4 < (uint)(10 < local_24 - 599)" (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" ( identifier )) - identifier) < (call_expression "(uint)(10 < local_24 - 599)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(10 < local_24 - 599)" ( (binary_expression "10 < local_24 - 599" number_literal < (binary_expression "local_24 - 599" identifier - number_literal)) ))))) )) (goto_statement "goto LAB_0004e822;" goto statement_identifier ;)) (if_statement "if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }" if (parenthesized_expression "(*(char *)(param_3 + 0x10) == '\x05')" ( (binary_expression "*(char *)(param_3 + 0x10) == '\x05'" (pointer_expression "*(char *)(param_3 + 0x10)" * (cast_expression "(char *)(param_3 + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) == (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }" { (expression_statement "uVar5 = *(uint *)(param_3 + 8);" (assignment_expression "uVar5 = *(uint *)(param_3 + 8)" identifier = (pointer_expression "*(uint *)(param_3 + 8)" * (cast_expression "(uint *)(param_3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_3 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_3 + 0xc)" identifier = (pointer_expression "*(int *)(param_3 + 0xc)" * (cast_expression "(int *)(param_3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;" if (parenthesized_expression "(iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4)" ( (binary_expression "iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4" (binary_expression "iVar4 == 0" identifier == number_literal) && (binary_expression "(uint)(0x7f < uVar5) <= (uint)-iVar4" (call_expression "(uint)(0x7f < uVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x7f < uVar5)" ( (binary_expression "0x7f < uVar5" number_literal < identifier) ))) <= (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" ( identifier )) - identifier))) )) (goto_statement "goto LAB_0004e906;" goto statement_identifier ;)) })) (expression_statement "uVar2 = dcgettext(0,"Indirect register index must be a general register",5);" (assignment_expression "uVar2 = dcgettext(0,"Indirect register index must be a general register",5)" identifier = (call_expression "dcgettext(0,"Indirect register index must be a general register",5)" identifier (argument_list "(0,"Indirect register index must be a general register",5)" ( number_literal , (string_literal ""Indirect register index must be a general register"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00029550(uVar2);" (call_expression "FUN_00029550(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_3 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 8) = 0" (pointer_expression "*(undefined4 *)(param_3 + 8)" * (cast_expression "(undefined4 *)(param_3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0xc)" * (cast_expression "(undefined4 *)(param_3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_24 = *(uint *)(param_1 + 8);" (assignment_expression "local_24 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;" statement_identifier : (expression_statement "*(undefined1 *)(param_1 + 0x10) = 0x1d;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = 0x1d" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" * (cast_expression "(undefined1 *)(param_1 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "uVar2 = (&DAT_0008794c)[local_24 - 0x13b];" (assignment_expression "uVar2 = (&DAT_0008794c)[local_24 - 0x13b]" identifier = (subscript_expression "(&DAT_0008794c)[local_24 - 0x13b]" (parenthesized_expression "(&DAT_0008794c)" ( (pointer_expression "&DAT_0008794c" & identifier) )) [ (binary_expression "local_24 - 0x13b" identifier - number_literal) ])) ;) (expression_statement "*(uint *)(param_1 + 8) = uVar5;" (assignment_expression "*(uint *)(param_1 + 8) = uVar5" (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar4;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(char *)(param_3 + 0x10) == '\x02') {\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }" if (parenthesized_expression "(*(char *)(param_3 + 0x10) == '\x02')" ( (binary_expression "*(char *)(param_3 + 0x10) == '\x02'" (pointer_expression "*(char *)(param_3 + 0x10)" * (cast_expression "(char *)(param_3 + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }" { (expression_statement "uVar6 = *(uint *)(param_3 + 0xc);" (assignment_expression "uVar6 = *(uint *)(param_3 + 0xc)" identifier = (pointer_expression "*(uint *)(param_3 + 0xc)" * (cast_expression "(uint *)(param_3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(uint *)(param_3 + 8);" (assignment_expression "uVar3 = *(uint *)(param_3 + 8)" identifier = (pointer_expression "*(uint *)(param_3 + 8)" * (cast_expression "(uint *)(param_3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;" if (parenthesized_expression "(uVar6 < (uVar3 < uVar5))" ( (binary_expression "uVar6 < (uVar3 < uVar5)" identifier < (parenthesized_expression "(uVar3 < uVar5)" ( (binary_expression "uVar3 < uVar5" identifier < identifier) ))) )) (goto_statement "goto LAB_0004e96e;" goto statement_identifier ;)) (expression_statement "pcVar7 = (char *)(uVar5 - 1);" (assignment_expression "pcVar7 = (char *)(uVar5 - 1)" identifier = (cast_expression "(char *)(uVar5 - 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 - 1)" ( (binary_expression "uVar5 - 1" identifier - number_literal) )))) ;) (expression_statement "uVar2 = dcgettext(0,"Index out of range 0..%u",5);" (assignment_expression "uVar2 = dcgettext(0,"Index out of range 0..%u",5)" identifier = (call_expression "dcgettext(0,"Index out of range 0..%u",5)" identifier (argument_list "(0,"Index out of range 0..%u",5)" ( number_literal , (string_literal ""Index out of range 0..%u"" " string_content ") , number_literal )))) ;) }) (else_clause "else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }" else (compound_statement "{\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }" { (expression_statement "pcVar7 = "Rotating register index must be a non-negative constant";" (assignment_expression "pcVar7 = "Rotating register index must be a non-negative constant"" identifier = (string_literal ""Rotating register index must be a non-negative constant"" " string_content ")) ;) (expression_statement "uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);" (assignment_expression "uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5)" identifier = (call_expression "dcgettext(0,"Rotating register index must be a non-negative constant",5)" identifier (argument_list "(0,"Rotating register index must be a non-negative constant",5)" ( number_literal , (string_literal ""Rotating register index must be a non-negative constant"" " string_content ") , number_literal )))) ;) }))) (expression_statement "FUN_00029550(uVar2,pcVar7);" (call_expression "FUN_00029550(uVar2,pcVar7)" identifier (argument_list "(uVar2,pcVar7)" ( identifier , identifier ))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 8) = 0" (pointer_expression "*(undefined4 *)(param_3 + 8)" * (cast_expression "(undefined4 *)(param_3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0xc)" * (cast_expression "(undefined4 *)(param_3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0004e96e:\n  uVar1 = *(ushort *)(param_1 + 8);" statement_identifier : (expression_statement "uVar1 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 8)" identifier = (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;)) (expression_statement "*(uint *)(param_1 + 8) = uVar3 + uVar1;" (assignment_expression "*(uint *)(param_1 + 8) = uVar3 + uVar1" (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "uVar3 + uVar1" identifier + identifier)) ;) (expression_statement "*(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1);" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1)" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "uVar6 + CARRY4(uVar3,(uint)uVar1)" identifier + (call_expression "CARRY4(uVar3,(uint)uVar1)" identifier (argument_list "(uVar3,(uint)uVar1)" ( identifier , (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ))))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression (binary_expression (parenthesized_expression ( IDENT )) - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < (binary_expression IDENT - LIT)) ))))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) ))) <= (binary_expression (parenthesized_expression ( IDENT )) - IDENT))) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;)) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression IDENT - LIT) ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT - LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0004e7e0(int param_1,int param_2,int param_3)\n\n{\n  ushort uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  uint local_24;\n  \n  if (param_2 != 0x1d) {\n    return 0;\n  }\n  FUN_0001eec0(param_1);\n  if (*(char *)(param_1 + 0x10) != '\x05') {\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }\n  uVar5 = *(uint *)(param_1 + 10);\n  FUN_0001eec0(param_3);\n  if (uVar5 == 0) {\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }\n  if (*(char *)(param_3 + 0x10) == '\x02') {\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }\n  FUN_00029550(uVar2,pcVar7);\n  uVar6 = 0;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0xc) = 0;\n  uVar3 = 0;\nLAB_0004e96e:\n  uVar1 = *(ushort *)(param_1 + 8);\n  *(uint *)(param_1 + 8) = uVar3 + uVar1;\n  *(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0004e7e0(int param_1,int param_2,int param_3)" (identifier "FUN_0004e7e0") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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")) () ")"))) (compound_statement "{\n  ushort uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  uint local_24;\n  \n  if (param_2 != 0x1d) {\n    return 0;\n  }\n  FUN_0001eec0(param_1);\n  if (*(char *)(param_1 + 0x10) != '\x05') {\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }\n  uVar5 = *(uint *)(param_1 + 10);\n  FUN_0001eec0(param_3);\n  if (uVar5 == 0) {\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }\n  if (*(char *)(param_3 + 0x10) == '\x02') {\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }\n  FUN_00029550(uVar2,pcVar7);\n  uVar6 = 0;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0xc) = 0;\n  uVar3 = 0;\nLAB_0004e96e:\n  uVar1 = *(ushort *)(param_1 + 8);\n  *(uint *)(param_1 + 8) = uVar3 + uVar1;\n  *(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1);\n  return 1;\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "uint local_24;" (type_identifier "uint") (identifier "local_24") (; ";")) (if_statement "if (param_2 != 0x1d) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 != 0x1d)" (( "(") (binary_expression "param_2 != 0x1d" (identifier "param_2") (!= "!=") (number_literal "0x1d")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "FUN_0001eec0(param_1);" (call_expression "FUN_0001eec0(param_1)" (identifier "FUN_0001eec0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (*(char *)(param_1 + 0x10) != '\x05') {\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x10) != '\x05')" (( "(") (binary_expression "*(char *)(param_1 + 0x10) != '\x05'" (pointer_expression "*(char *)(param_1 + 0x10)" (* "*") (cast_expression "(char *)(param_1 + 0x10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (char_literal "'\x05'" (' "'") (escape_sequence "\x05") (' "'"))) () ")")) (compound_statement "{\nLAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);\n    FUN_00029550(uVar2);\n    *(undefined1 *)(param_1 + 0x10) = 5;\n    *(undefined4 *)(param_1 + 8) = 3;\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    return 1;\n  }" ({ "{") (labeled_statement "LAB_0004e822:\n    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);" (statement_identifier "LAB_0004e822") (: ":") (expression_statement "uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);" (assignment_expression "uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"Index can only be applied to rotating or indirect registers",5)" (identifier "dcgettext") (argument_list "(0,"Index can only be applied to rotating or indirect registers",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Index can only be applied to rotating or indirect registers"" (" """) (string_content "Index can only be applied to rotating or indirect registers") (" """)) (, ",") (number_literal "5") () ")")))) (; ";"))) (expression_statement "FUN_00029550(uVar2);" (call_expression "FUN_00029550(uVar2)" (identifier "FUN_00029550") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x10) = 5;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = 5" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "5")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 3" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "3")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar5 = *(uint *)(param_1 + 10);" (assignment_expression "uVar5 = *(uint *)(param_1 + 10)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(param_1 + 10)" (* "*") (cast_expression "(uint *)(param_1 + 10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")"))))) (; ";")) (expression_statement "FUN_0001eec0(param_3);" (call_expression "FUN_0001eec0(param_3)" (identifier "FUN_0001eec0") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";")) (if_statement "if (uVar5 == 0) {\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }" (if "if") (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);\n    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;\n    if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }\n    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);\n    FUN_00029550(uVar2);\n    *(undefined4 *)(param_3 + 8) = 0;\n    *(undefined4 *)(param_3 + 0xc) = 0;\n    local_24 = *(uint *)(param_1 + 8);\n    iVar4 = 0;\n    uVar5 = 0;\nLAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;\n    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];\n    *(uint *)(param_1 + 8) = uVar5;\n    *(int *)(param_1 + 0xc) = iVar4;\n    *(undefined4 *)(param_1 + 4) = uVar2;\n    return 1;\n  }" ({ "{") (expression_statement "local_24 = *(uint *)(param_1 + 8);" (assignment_expression "local_24 = *(uint *)(param_1 + 8)" (identifier "local_24") (= "=") (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24)" (identifier "iVar4") (= "=") (binary_expression "*(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24)" (binary_expression "*(int *)(param_1 + 0xc) + -1" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "-1")) (+ "+") (call_expression "(uint)(0x256 < local_24)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0x256 < local_24)" (( "(") (binary_expression "0x256 < local_24" (number_literal "0x256") (< "<") (identifier "local_24")) () ")"))))) (; ";")) (if_statement "if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;" (if "if") (parenthesized_expression "(iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599))" (( "(") (binary_expression "iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)" (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "(uint)-iVar4 < (uint)(10 < local_24 - 599)" (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (- "-") (identifier "iVar4")) (< "<") (call_expression "(uint)(10 < local_24 - 599)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(10 < local_24 - 599)" (( "(") (binary_expression "10 < local_24 - 599" (number_literal "10") (< "<") (binary_expression "local_24 - 599" (identifier "local_24") (- "-") (number_literal "599"))) () ")"))))) () ")")) (goto_statement "goto LAB_0004e822;" (goto "goto") (statement_identifier "LAB_0004e822") (; ";"))) (if_statement "if (*(char *)(param_3 + 0x10) == '\x05') {\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_3 + 0x10) == '\x05')" (( "(") (binary_expression "*(char *)(param_3 + 0x10) == '\x05'" (pointer_expression "*(char *)(param_3 + 0x10)" (* "*") (cast_expression "(char *)(param_3 + 0x10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x10)" (( "(") (binary_expression "param_3 + 0x10" (identifier "param_3") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (char_literal "'\x05'" (' "'") (escape_sequence "\x05") (' "'"))) () ")")) (compound_statement "{\n      uVar5 = *(uint *)(param_3 + 8);\n      iVar4 = *(int *)(param_3 + 0xc);\n      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;\n    }" ({ "{") (expression_statement "uVar5 = *(uint *)(param_3 + 8);" (assignment_expression "uVar5 = *(uint *)(param_3 + 8)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(param_3 + 8)" (* "*") (cast_expression "(uint *)(param_3 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(param_3 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_3 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_3 + 0xc)" (* "*") (cast_expression "(int *)(param_3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xc)" (( "(") (binary_expression "param_3 + 0xc" (identifier "param_3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;" (if "if") (parenthesized_expression "(iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4)" (( "(") (binary_expression "iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4" (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) (&& "&&") (binary_expression "(uint)(0x7f < uVar5) <= (uint)-iVar4" (call_expression "(uint)(0x7f < uVar5)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0x7f < uVar5)" (( "(") (binary_expression "0x7f < uVar5" (number_literal "0x7f") (< "<") (identifier "uVar5")) () ")"))) (<= "<=") (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (- "-") (identifier "iVar4")))) () ")")) (goto_statement "goto LAB_0004e906;" (goto "goto") (statement_identifier "LAB_0004e906") (; ";"))) (} "}"))) (expression_statement "uVar2 = dcgettext(0,"Indirect register index must be a general register",5);" (assignment_expression "uVar2 = dcgettext(0,"Indirect register index must be a general register",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"Indirect register index must be a general register",5)" (identifier "dcgettext") (argument_list "(0,"Indirect register index must be a general register",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Indirect register index must be a general register"" (" """) (string_content "Indirect register index must be a general register") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00029550(uVar2);" (call_expression "FUN_00029550(uVar2)" (identifier "FUN_00029550") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 8) = 0" (pointer_expression "*(undefined4 *)(param_3 + 8)" (* "*") (cast_expression "(undefined4 *)(param_3 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xc)" (( "(") (binary_expression "param_3 + 0xc" (identifier "param_3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_24 = *(uint *)(param_1 + 8);" (assignment_expression "local_24 = *(uint *)(param_1 + 8)" (identifier "local_24") (= "=") (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0004e906:\n    *(undefined1 *)(param_1 + 0x10) = 0x1d;" (statement_identifier "LAB_0004e906") (: ":") (expression_statement "*(undefined1 *)(param_1 + 0x10) = 0x1d;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = 0x1d" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0x1d")) (; ";"))) (expression_statement "uVar2 = (&DAT_0008794c)[local_24 - 0x13b];" (assignment_expression "uVar2 = (&DAT_0008794c)[local_24 - 0x13b]" (identifier "uVar2") (= "=") (subscript_expression "(&DAT_0008794c)[local_24 - 0x13b]" (parenthesized_expression "(&DAT_0008794c)" (( "(") (pointer_expression "&DAT_0008794c" (& "&") (identifier "DAT_0008794c")) () ")")) ([ "[") (binary_expression "local_24 - 0x13b" (identifier "local_24") (- "-") (number_literal "0x13b")) (] "]"))) (; ";")) (expression_statement "*(uint *)(param_1 + 8) = uVar5;" (assignment_expression "*(uint *)(param_1 + 8) = uVar5" (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "*(int *)(param_1 + 0xc) = iVar4;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (*(char *)(param_3 + 0x10) == '\x02') {\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }\n  else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_3 + 0x10) == '\x02')" (( "(") (binary_expression "*(char *)(param_3 + 0x10) == '\x02'" (pointer_expression "*(char *)(param_3 + 0x10)" (* "*") (cast_expression "(char *)(param_3 + 0x10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x10)" (( "(") (binary_expression "param_3 + 0x10" (identifier "param_3") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n    uVar6 = *(uint *)(param_3 + 0xc);\n    uVar3 = *(uint *)(param_3 + 8);\n    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;\n    pcVar7 = (char *)(uVar5 - 1);\n    uVar2 = dcgettext(0,"Index out of range 0..%u",5);\n  }" ({ "{") (expression_statement "uVar6 = *(uint *)(param_3 + 0xc);" (assignment_expression "uVar6 = *(uint *)(param_3 + 0xc)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(param_3 + 0xc)" (* "*") (cast_expression "(uint *)(param_3 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xc)" (( "(") (binary_expression "param_3 + 0xc" (identifier "param_3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(uint *)(param_3 + 8);" (assignment_expression "uVar3 = *(uint *)(param_3 + 8)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_3 + 8)" (* "*") (cast_expression "(uint *)(param_3 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;" (if "if") (parenthesized_expression "(uVar6 < (uVar3 < uVar5))" (( "(") (binary_expression "uVar6 < (uVar3 < uVar5)" (identifier "uVar6") (< "<") (parenthesized_expression "(uVar3 < uVar5)" (( "(") (binary_expression "uVar3 < uVar5" (identifier "uVar3") (< "<") (identifier "uVar5")) () ")"))) () ")")) (goto_statement "goto LAB_0004e96e;" (goto "goto") (statement_identifier "LAB_0004e96e") (; ";"))) (expression_statement "pcVar7 = (char *)(uVar5 - 1);" (assignment_expression "pcVar7 = (char *)(uVar5 - 1)" (identifier "pcVar7") (= "=") (cast_expression "(char *)(uVar5 - 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar5 - 1)" (( "(") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar2 = dcgettext(0,"Index out of range 0..%u",5);" (assignment_expression "uVar2 = dcgettext(0,"Index out of range 0..%u",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"Index out of range 0..%u",5)" (identifier "dcgettext") (argument_list "(0,"Index out of range 0..%u",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Index out of range 0..%u"" (" """) (string_content "Index out of range 0..%u") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }" (else "else") (compound_statement "{\n    pcVar7 = "Rotating register index must be a non-negative constant";\n    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);\n  }" ({ "{") (expression_statement "pcVar7 = "Rotating register index must be a non-negative constant";" (assignment_expression "pcVar7 = "Rotating register index must be a non-negative constant"" (identifier "pcVar7") (= "=") (string_literal ""Rotating register index must be a non-negative constant"" (" """) (string_content "Rotating register index must be a non-negative constant") (" """))) (; ";")) (expression_statement "uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);" (assignment_expression "uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"Rotating register index must be a non-negative constant",5)" (identifier "dcgettext") (argument_list "(0,"Rotating register index must be a non-negative constant",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Rotating register index must be a non-negative constant"" (" """) (string_content "Rotating register index must be a non-negative constant") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (} "}")))) (expression_statement "FUN_00029550(uVar2,pcVar7);" (call_expression "FUN_00029550(uVar2,pcVar7)" (identifier "FUN_00029550") (argument_list "(uVar2,pcVar7)" (( "(") (identifier "uVar2") (, ",") (identifier "pcVar7") () ")"))) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 8) = 0" (pointer_expression "*(undefined4 *)(param_3 + 8)" (* "*") (cast_expression "(undefined4 *)(param_3 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xc)" (( "(") (binary_expression "param_3 + 0xc" (identifier "param_3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0004e96e:\n  uVar1 = *(ushort *)(param_1 + 8);" (statement_identifier "LAB_0004e96e") (: ":") (expression_statement "uVar1 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 8)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";"))) (expression_statement "*(uint *)(param_1 + 8) = uVar3 + uVar1;" (assignment_expression "*(uint *)(param_1 + 8) = uVar3 + uVar1" (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "uVar3 + uVar1" (identifier "uVar3") (+ "+") (identifier "uVar1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1);" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1)" (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "uVar6 + CARRY4(uVar3,(uint)uVar1)" (identifier "uVar6") (+ "+") (call_expression "CARRY4(uVar3,(uint)uVar1)" (identifier "CARRY4") (argument_list "(uVar3,(uint)uVar1)" (( "(") (identifier "uVar3") (, ",") (cast_expression "(uint)uVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar1")) () ")"))))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int function_1(type_1 *l,type_2 var_1,type_1 *r)

{
  type_3 *psVar1;
  char *pcVar2;
  char *format;
  type_4 var_10;
  int var_8;
  type_4 var_6;
  type_4 var_9;
  type_4 var_7;
  
  if (var_1 != var_2) {
    return 0;
  }
  var_3(l);
  if (l->field_0x10 != '\x05') {
LAB_0004e822:
    pcVar2 = (char *)var_4(0,"Index can only be applied to rotating or indirect registers",5);
    var_5(pcVar2);
    l->field_0x10 = 5;
    *(type_5 *)&l->X_add_number = 3;
    *(type_5 *)((int)&l->X_add_number + 4) = 0;
    return 1;
  }
  var_6 = *(type_4 *)((int)&l->X_add_number + 2);
  var_3(r);
  if (var_6 == 0) {
    var_7 = (type_4)l->X_add_number;
    var_8 = *(int *)((int)&l->X_add_number + 4) + -1 + (type_4)(0x256 < var_7);
    if (var_8 != 0 || (type_4)-var_8 < (type_4)(10 < var_7 - 599)) goto LAB_0004e822;
    if (r->field_0x10 == '\x05') {
      var_6 = (type_4)r->X_add_number;
      var_8 = *(int *)((int)&r->X_add_number + 4);
      if (var_8 == 0 && (type_4)(0x7f < var_6) <= (type_4)-var_8) goto LAB_0004e906;
    }
    pcVar2 = (char *)var_4(0,"Indirect register index must be a general register",5);
    var_5(pcVar2);
    *(type_5 *)&r->X_add_number = 0;
    *(type_5 *)((int)&r->X_add_number + 4) = 0;
    var_7 = (type_4)l->X_add_number;
    var_8 = 0;
    var_6 = 0;
LAB_0004e906:
    l->field_0x10 = 0x1d;
    psVar1 = *(type_3 **)((int)&md + (var_7 - 0x13b) * 4 + 0xc);
    *(type_4 *)&l->X_add_number = var_6;
    *(int *)((int)&l->X_add_number + 4) = var_8;
    l->X_op_symbol = psVar1;
    return 1;
  }
  if (r->field_0x10 == '\x02') {
    var_9 = *(type_4 *)((int)&r->X_add_number + 4);
    var_10 = (type_4)r->X_add_number;
    if (var_9 < (var_10 < var_6)) goto LAB_0004e96e;
    pcVar2 = (char *)(var_6 - 1);
    format = (char *)var_4(0,"Index out of range 0..%u",5);
  }
  else {
    pcVar2 = "Rotating register index must be a non-negative constant";
    format = (char *)var_4(0,"Rotating register index must be a non-negative constant",5);
  }
  var_5(format,pcVar2);
  var_9 = 0;
  *(type_5 *)&r->X_add_number = 0;
  *(type_5 *)((int)&r->X_add_number + 4) = 0;
  var_10 = 0;
LAB_0004e96e:
  var_6 = (type_4)(type_6)l->X_add_number;
  *(type_4 *)&l->X_add_number = var_10 + var_6;
  *(type_4 *)((int)&l->X_add_number + 4) = var_9 + var_11(var_10,var_6);
  return 1;
}


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

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

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

{
  ushort uVar1;
  undefined4 uVar2;
  uint uVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  char *pcVar7;
  uint local_24;
  
  if (param_2 != 0x1d) {
    return 0;
  }
  FUN_0001eec0(param_1);
  if (*(char *)(param_1 + 0x10) != '\x05') {
LAB_0004e822:
    uVar2 = dcgettext(0,"Index can only be applied to rotating or indirect registers",5);
    FUN_00029550(uVar2);
    *(undefined1 *)(param_1 + 0x10) = 5;
    *(undefined4 *)(param_1 + 8) = 3;
    *(undefined4 *)(param_1 + 0xc) = 0;
    return 1;
  }
  uVar5 = *(uint *)(param_1 + 10);
  FUN_0001eec0(param_3);
  if (uVar5 == 0) {
    local_24 = *(uint *)(param_1 + 8);
    iVar4 = *(int *)(param_1 + 0xc) + -1 + (uint)(0x256 < local_24);
    if (iVar4 != 0 || (uint)-iVar4 < (uint)(10 < local_24 - 599)) goto LAB_0004e822;
    if (*(char *)(param_3 + 0x10) == '\x05') {
      uVar5 = *(uint *)(param_3 + 8);
      iVar4 = *(int *)(param_3 + 0xc);
      if (iVar4 == 0 && (uint)(0x7f < uVar5) <= (uint)-iVar4) goto LAB_0004e906;
    }
    uVar2 = dcgettext(0,"Indirect register index must be a general register",5);
    FUN_00029550(uVar2);
    *(undefined4 *)(param_3 + 8) = 0;
    *(undefined4 *)(param_3 + 0xc) = 0;
    local_24 = *(uint *)(param_1 + 8);
    iVar4 = 0;
    uVar5 = 0;
LAB_0004e906:
    *(undefined1 *)(param_1 + 0x10) = 0x1d;
    uVar2 = (&DAT_0008794c)[local_24 - 0x13b];
    *(uint *)(param_1 + 8) = uVar5;
    *(int *)(param_1 + 0xc) = iVar4;
    *(undefined4 *)(param_1 + 4) = uVar2;
    return 1;
  }
  if (*(char *)(param_3 + 0x10) == '\x02') {
    uVar6 = *(uint *)(param_3 + 0xc);
    uVar3 = *(uint *)(param_3 + 8);
    if (uVar6 < (uVar3 < uVar5)) goto LAB_0004e96e;
    pcVar7 = (char *)(uVar5 - 1);
    uVar2 = dcgettext(0,"Index out of range 0..%u",5);
  }
  else {
    pcVar7 = "Rotating register index must be a non-negative constant";
    uVar2 = dcgettext(0,"Rotating register index must be a non-negative constant",5);
  }
  FUN_00029550(uVar2,pcVar7);
  uVar6 = 0;
  *(undefined4 *)(param_3 + 8) = 0;
  *(undefined4 *)(param_3 + 0xc) = 0;
  uVar3 = 0;
LAB_0004e96e:
  uVar1 = *(ushort *)(param_1 + 8);
  *(uint *)(param_1 + 8) = uVar3 + uVar1;
  *(uint *)(param_1 + 0xc) = uVar6 + CARRY4(uVar3,(uint)uVar1);
  return 1;
}

