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

gint motion_event(GtkWidget *widget,GdkEventMotion *event,gpointer data)

{
  uint uVar1;
  int y;
  Mouse_Button bcooked;
  int local_2c;
  Mouse_Button local_28;
  
  *(guint32 *)((int)data + 0x2240) = event->time;
  show_mouseptr((gui_data *)data,1);
  uVar1 = event->state;
  if ((uVar1 & 0x100) == 0) {
    if ((uVar1 & 0x200) == 0) {
      if ((uVar1 & 0x400) == 0) {
        return 0;
      }
      local_28 = MBT_RIGHT;
      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /
                            (double)*(int *)((int)data + 0xcdc));
      bcooked = MBT_EXTEND;
      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /
                     (double)*(int *)((int)data + 0xce0));
    }
    else {
      local_28 = MBT_MIDDLE;
      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /
                            (double)*(int *)((int)data + 0xcdc));
      bcooked = MBT_PASTE;
      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /
                     (double)*(int *)((int)data + 0xce0));
    }
  }
  else {
    local_28 = MBT_LEFT;
    local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /
                          (double)*(int *)((int)data + 0xcdc));
    bcooked = MBT_SELECT;
    y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /
                   (double)*(int *)((int)data + 0xce0));
  }
  term_mouse(*(Terminal **)((int)data + 0xd1c),local_28,bcooked,MA_DRAG,local_2c,y,uVar1 & 1,
             uVar1 & 4,*(uint *)((int)data + 0x2260) & uVar1);
  return 1;
}



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

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

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  int local_2c;
  undefined4 local_28;
  
  *(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc);
  FUN_00051080();
  uVar1 = *(uint *)(param_2 + 0x24);
  if ((uVar1 & 0x100) == 0) {
    if ((uVar1 & 0x200) == 0) {
      if ((uVar1 & 0x400) == 0) {
        return 0;
      }
      local_28 = 3;
      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /
                            (double)*(int *)(param_3 + 0xcdc));
      uVar3 = 5;
      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /
                         (double)*(int *)(param_3 + 0xce0));
    }
    else {
      local_28 = 2;
      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /
                            (double)*(int *)(param_3 + 0xcdc));
      uVar3 = 6;
      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /
                         (double)*(int *)(param_3 + 0xce0));
    }
  }
  else {
    local_28 = 1;
    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /
                          (double)*(int *)(param_3 + 0xcdc));
    uVar3 = 4;
    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /
                       (double)*(int *)(param_3 + 0xce0));
  }
  FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,
               *(uint *)(param_3 + 0x2260) & uVar1);
  return 1;
}


PUSH EBP
MOV EDX,0x1
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001a360
ADD EBX,0x506b6
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x34]
MOV ESI,dword ptr [ESP + 0x38]
MOV EAX,dword ptr [EDI + 0xc]
MOV dword ptr [ESI + 0x2240],EAX
MOV EAX,ESI
CALL 0x00051080
MOV EAX,dword ptr [EDI + 0x24]
MOV ECX,dword ptr [ESI + 0x2260]
MOV EBP,EAX
MOV EDX,EAX
AND ECX,EAX
AND EBP,0x1
AND EDX,0x4
TEST AH,0x1
JZ 0x000511f8
FILD dword ptr [ESI + 0x2254]
FLD qword ptr [EDI + 0x10]
MOV dword ptr [ESP + 0x4],0x1
FSUB ST0,ST1
FILD dword ptr [ESI + 0xcdc]
FNSTCW word ptr [ESP + 0xe]
FDIVP
MOVZX EAX,word ptr [ESP + 0xe]
OR AH,0xc
MOV word ptr [ESP + 0xc],AX
FLDCW word ptr [ESP + 0xc]
FISTP dword ptr [ESP]
FLDCW word ptr [ESP + 0xe]
FSUBR qword ptr [EDI + 0x18]
MOV EDI,0x4
FILD dword ptr [ESI + 0xce0]
FDIVP
FLDCW word ptr [ESP + 0xc]
FISTP dword ptr [ESP + 0x8]
FLDCW word ptr [ESP + 0xe]
MOV EAX,dword ptr [ESP + 0x8]
SUB ESP,0xc
PUSH ECX
PUSH EDX
PUSH EBP
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
PUSH 0x4
PUSH EDI
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESI + 0xd1c]
CALL 0x0003de10
ADD ESP,0x30
MOV EAX,0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST AH,0x2
JZ 0x00051260
FILD dword ptr [ESI + 0x2254]
FLD qword ptr [EDI + 0x10]
MOV dword ptr [ESP + 0x4],0x2
FSUB ST0,ST1
FILD dword ptr [ESI + 0xcdc]
FNSTCW word ptr [ESP + 0xe]
FDIVP
MOVZX EAX,word ptr [ESP + 0xe]
OR AH,0xc
MOV word ptr [ESP + 0xc],AX
FLDCW word ptr [ESP + 0xc]
FISTP dword ptr [ESP]
FLDCW word ptr [ESP + 0xe]
FSUBR qword ptr [EDI + 0x18]
MOV EDI,0x6
FILD dword ptr [ESI + 0xce0]
FDIVP
FLDCW word ptr [ESP + 0xc]
FISTP dword ptr [ESP + 0x8]
FLDCW word ptr [ESP + 0xe]
MOV EAX,dword ptr [ESP + 0x8]
JMP 0x000511c4
TEST AH,0x4
JZ 0x000512c8
FILD dword ptr [ESI + 0x2254]
FLD qword ptr [EDI + 0x10]
MOV dword ptr [ESP + 0x4],0x3
FSUB ST0,ST1
FILD dword ptr [ESI + 0xcdc]
FNSTCW word ptr [ESP + 0xe]
FDIVP
MOVZX EAX,word ptr [ESP + 0xe]
OR AH,0xc
MOV word ptr [ESP + 0xc],AX
FLDCW word ptr [ESP + 0xc]
FISTP dword ptr [ESP]
FLDCW word ptr [ESP + 0xe]
FSUBR qword ptr [EDI + 0x18]
MOV EDI,0x5
FILD dword ptr [ESI + 0xce0]
FDIVP
FLDCW word ptr [ESP + 0xc]
FISTP dword ptr [ESP + 0x8]
FLDCW word ptr [ESP + 0xe]
MOV EAX,dword ptr [ESP + 0x8]
JMP 0x000511c4
XOR EAX,EAX
JMP 0x000511e9
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00051120(undefined4 param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int local_2c;\n  undefined4 local_28;\n  \n  *(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc);\n  FUN_00051080();\n  uVar1 = *(uint *)(param_2 + 0x24);\n  if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }\n  else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }\n  FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1);\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_00051120(undefined4 param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int local_2c;\n  undefined4 local_28;\n  \n  *(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc);\n  FUN_00051080();\n  uVar1 = *(uint *)(param_2 + 0x24);\n  if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }\n  else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }\n  FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1);\n  return 1;\n}" type_identifier (function_declarator "FUN_00051120(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int local_2c;\n  undefined4 local_28;\n  \n  *(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc);\n  FUN_00051080();\n  uVar1 = *(uint *)(param_2 + 0x24);\n  if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }\n  else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }\n  FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1);\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (expression_statement "*(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "*(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc)" (pointer_expression "*(undefined4 *)(param_3 + 0x2240)" * (cast_expression "(undefined4 *)(param_3 + 0x2240)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2240)" ( (binary_expression "param_3 + 0x2240" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "FUN_00051080();" (call_expression "FUN_00051080()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(uint *)(param_2 + 0x24);" (assignment_expression "uVar1 = *(uint *)(param_2 + 0x24)" identifier = (pointer_expression "*(uint *)(param_2 + 0x24)" * (cast_expression "(uint *)(param_2 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }\n  else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }" if (parenthesized_expression "((uVar1 & 0x100) == 0)" ( (binary_expression "(uVar1 & 0x100) == 0" (parenthesized_expression "(uVar1 & 0x100)" ( (binary_expression "uVar1 & 0x100" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }" { (if_statement "if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }" if (parenthesized_expression "((uVar1 & 0x200) == 0)" ( (binary_expression "(uVar1 & 0x200) == 0" (parenthesized_expression "(uVar1 & 0x200)" ( (binary_expression "uVar1 & 0x200" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }" { (if_statement "if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((uVar1 & 0x400) == 0)" ( (binary_expression "(uVar1 & 0x400) == 0" (parenthesized_expression "(uVar1 & 0x400)" ( (binary_expression "uVar1 & 0x400" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_28 = 3;" (assignment_expression "local_28 = 3" identifier = number_literal) ;) (expression_statement "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));" (assignment_expression "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" identifier = (cast_expression "(int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" identifier (argument_list "((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" ( (binary_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc)" (parenthesized_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254))" ( (binary_expression "*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x10)" * (cast_expression "(double *)(param_2 + 0x10)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) - (cast_expression "(double)*(int *)(param_3 + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) )))))) )) / (cast_expression "(double)*(int *)(param_3 + 0xcdc)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0xcdc)" * (cast_expression "(int *)(param_3 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xcdc)" ( (binary_expression "param_3 + 0xcdc" identifier + number_literal) )))))) ))))) ;) (expression_statement "uVar3 = 5;" (assignment_expression "uVar3 = 5" identifier = number_literal) ;) (expression_statement "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));" (assignment_expression "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" identifier = (cast_expression "(int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" identifier (argument_list "((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" ( (binary_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0)" (parenthesized_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254))" ( (binary_expression "*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x18)" * (cast_expression "(double *)(param_2 + 0x18)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) - (cast_expression "(double)*(int *)(param_3 + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) )))))) )) / (cast_expression "(double)*(int *)(param_3 + 0xce0)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0xce0)" * (cast_expression "(int *)(param_3 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce0)" ( (binary_expression "param_3 + 0xce0" identifier + number_literal) )))))) ))))) ;) }) (else_clause "else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }" else (compound_statement "{\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }" { (expression_statement "local_28 = 2;" (assignment_expression "local_28 = 2" identifier = number_literal) ;) (expression_statement "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));" (assignment_expression "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" identifier = (cast_expression "(int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" identifier (argument_list "((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" ( (binary_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc)" (parenthesized_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254))" ( (binary_expression "*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x10)" * (cast_expression "(double *)(param_2 + 0x10)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) - (cast_expression "(double)*(int *)(param_3 + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) )))))) )) / (cast_expression "(double)*(int *)(param_3 + 0xcdc)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0xcdc)" * (cast_expression "(int *)(param_3 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xcdc)" ( (binary_expression "param_3 + 0xcdc" identifier + number_literal) )))))) ))))) ;) (expression_statement "uVar3 = 6;" (assignment_expression "uVar3 = 6" identifier = number_literal) ;) (expression_statement "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));" (assignment_expression "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" identifier = (cast_expression "(int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" identifier (argument_list "((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" ( (binary_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0)" (parenthesized_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254))" ( (binary_expression "*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x18)" * (cast_expression "(double *)(param_2 + 0x18)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) - (cast_expression "(double)*(int *)(param_3 + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) )))))) )) / (cast_expression "(double)*(int *)(param_3 + 0xce0)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0xce0)" * (cast_expression "(int *)(param_3 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce0)" ( (binary_expression "param_3 + 0xce0" identifier + number_literal) )))))) ))))) ;) }))) }) (else_clause "else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }" else (compound_statement "{\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }" { (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) (expression_statement "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));" (assignment_expression "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc))" identifier = (cast_expression "(int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc))" identifier (argument_list "((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc))" ( (binary_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc)" (parenthesized_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254))" ( (binary_expression "*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x10)" * (cast_expression "(double *)(param_2 + 0x10)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) - (cast_expression "(double)*(int *)(param_3 + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) )))))) )) / (cast_expression "(double)*(int *)(param_3 + 0xcdc)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0xcdc)" * (cast_expression "(int *)(param_3 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xcdc)" ( (binary_expression "param_3 + 0xcdc" identifier + number_literal) )))))) ))))) ;) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) (expression_statement "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));" (assignment_expression "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0))" identifier = (cast_expression "(int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0))" identifier (argument_list "((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0))" ( (binary_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0)" (parenthesized_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254))" ( (binary_expression "*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x18)" * (cast_expression "(double *)(param_2 + 0x18)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) - (cast_expression "(double)*(int *)(param_3 + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) )))))) )) / (cast_expression "(double)*(int *)(param_3 + 0xce0)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0xce0)" * (cast_expression "(int *)(param_3 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce0)" ( (binary_expression "param_3 + 0xce0" identifier + number_literal) )))))) ))))) ;) }))) (expression_statement "FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1);" (call_expression "FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1)" identifier (argument_list "(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1)" ( (pointer_expression "*(undefined4 *)(param_3 + 0xd1c)" * (cast_expression "(undefined4 *)(param_3 + 0xd1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xd1c)" ( (binary_expression "param_3 + 0xd1c" identifier + number_literal) )))) , identifier , identifier , number_literal , identifier , identifier , (binary_expression "uVar1 & 1" identifier & number_literal) , (binary_expression "uVar1 & 4" identifier & number_literal) , (binary_expression "*(uint *)(param_3 + 0x2260) & uVar1" (pointer_expression "*(uint *)(param_3 + 0x2260)" * (cast_expression "(uint *)(param_3 + 0x2260)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2260)" ( (binary_expression "param_3 + 0x2260" identifier + number_literal) )))) & 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 "GdkEventType": Some values do not have unique names */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\ngint motion_event(GtkWidget *widget,GdkEventMotion *event,gpointer data)\n\n{\n  uint uVar1;\n  int y;\n  Mouse_Button bcooked;\n  int local_2c;\n  Mouse_Button local_28;\n  \n  *(guint32 *)((int)data + 0x2240) = event->time;\n  show_mouseptr((gui_data *)data,1);\n  uVar1 = event->state;\n  if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = MBT_RIGHT;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_EXTEND;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }\n    else {\n      local_28 = MBT_MIDDLE;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_PASTE;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }\n  }\n  else {\n    local_28 = MBT_LEFT;\n    local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                          (double)*(int *)((int)data + 0xcdc));\n    bcooked = MBT_SELECT;\n    y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                   (double)*(int *)((int)data + 0xce0));\n  }\n  term_mouse(*(Terminal **)((int)data + 0xd1c),local_28,bcooked,MA_DRAG,local_2c,y,uVar1 & 1,\n             uVar1 & 4,*(uint *)((int)data + 0x2260) & uVar1);\n  return 1;\n}\n\n" comment comment comment comment (function_definition "gint motion_event(GtkWidget *widget,GdkEventMotion *event,gpointer data)\n\n{\n  uint uVar1;\n  int y;\n  Mouse_Button bcooked;\n  int local_2c;\n  Mouse_Button local_28;\n  \n  *(guint32 *)((int)data + 0x2240) = event->time;\n  show_mouseptr((gui_data *)data,1);\n  uVar1 = event->state;\n  if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = MBT_RIGHT;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_EXTEND;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }\n    else {\n      local_28 = MBT_MIDDLE;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_PASTE;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }\n  }\n  else {\n    local_28 = MBT_LEFT;\n    local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                          (double)*(int *)((int)data + 0xcdc));\n    bcooked = MBT_SELECT;\n    y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                   (double)*(int *)((int)data + 0xce0));\n  }\n  term_mouse(*(Terminal **)((int)data + 0xd1c),local_28,bcooked,MA_DRAG,local_2c,y,uVar1 & 1,\n             uVar1 & 4,*(uint *)((int)data + 0x2260) & uVar1);\n  return 1;\n}" type_identifier (function_declarator "motion_event(GtkWidget *widget,GdkEventMotion *event,gpointer data)" identifier (parameter_list "(GtkWidget *widget,GdkEventMotion *event,gpointer data)" ( (parameter_declaration "GtkWidget *widget" type_identifier (pointer_declarator "*widget" * identifier)) , (parameter_declaration "GdkEventMotion *event" type_identifier (pointer_declarator "*event" * identifier)) , (parameter_declaration "gpointer data" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int y;\n  Mouse_Button bcooked;\n  int local_2c;\n  Mouse_Button local_28;\n  \n  *(guint32 *)((int)data + 0x2240) = event->time;\n  show_mouseptr((gui_data *)data,1);\n  uVar1 = event->state;\n  if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = MBT_RIGHT;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_EXTEND;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }\n    else {\n      local_28 = MBT_MIDDLE;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_PASTE;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }\n  }\n  else {\n    local_28 = MBT_LEFT;\n    local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                          (double)*(int *)((int)data + 0xcdc));\n    bcooked = MBT_SELECT;\n    y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                   (double)*(int *)((int)data + 0xce0));\n  }\n  term_mouse(*(Terminal **)((int)data + 0xd1c),local_28,bcooked,MA_DRAG,local_2c,y,uVar1 & 1,\n             uVar1 & 4,*(uint *)((int)data + 0x2260) & uVar1);\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int y;" primitive_type identifier ;) (declaration "Mouse_Button bcooked;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "Mouse_Button local_28;" type_identifier identifier ;) (expression_statement "*(guint32 *)((int)data + 0x2240) = event->time;" (assignment_expression "*(guint32 *)((int)data + 0x2240) = event->time" (pointer_expression "*(guint32 *)((int)data + 0x2240)" * (cast_expression "(guint32 *)((int)data + 0x2240)" ( (type_descriptor "guint32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x2240)" ( (binary_expression "(int)data + 0x2240" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (field_expression "event->time" identifier -> field_identifier)) ;) (expression_statement "show_mouseptr((gui_data *)data,1);" (call_expression "show_mouseptr((gui_data *)data,1)" identifier (argument_list "((gui_data *)data,1)" ( (cast_expression "(gui_data *)data" ( (type_descriptor "gui_data *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal ))) ;) (expression_statement "uVar1 = event->state;" (assignment_expression "uVar1 = event->state" identifier = (field_expression "event->state" identifier -> field_identifier)) ;) (if_statement "if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = MBT_RIGHT;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_EXTEND;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }\n    else {\n      local_28 = MBT_MIDDLE;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_PASTE;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }\n  }\n  else {\n    local_28 = MBT_LEFT;\n    local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                          (double)*(int *)((int)data + 0xcdc));\n    bcooked = MBT_SELECT;\n    y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                   (double)*(int *)((int)data + 0xce0));\n  }" if (parenthesized_expression "((uVar1 & 0x100) == 0)" ( (binary_expression "(uVar1 & 0x100) == 0" (parenthesized_expression "(uVar1 & 0x100)" ( (binary_expression "uVar1 & 0x100" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = MBT_RIGHT;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_EXTEND;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }\n    else {\n      local_28 = MBT_MIDDLE;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_PASTE;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }\n  }" { (if_statement "if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = MBT_RIGHT;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_EXTEND;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }\n    else {\n      local_28 = MBT_MIDDLE;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_PASTE;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }" if (parenthesized_expression "((uVar1 & 0x200) == 0)" ( (binary_expression "(uVar1 & 0x200) == 0" (parenthesized_expression "(uVar1 & 0x200)" ( (binary_expression "uVar1 & 0x200" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = MBT_RIGHT;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_EXTEND;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }" { (if_statement "if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((uVar1 & 0x400) == 0)" ( (binary_expression "(uVar1 & 0x400) == 0" (parenthesized_expression "(uVar1 & 0x400)" ( (binary_expression "uVar1 & 0x400" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_28 = MBT_RIGHT;" (assignment_expression "local_28 = MBT_RIGHT" identifier = identifier) ;) (expression_statement "local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));" (assignment_expression "local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc))" identifier = (cast_expression "(int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc))" identifier (argument_list "((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc))" ( (binary_expression "(event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc)" (parenthesized_expression "(event->x - (double)*(int *)((int)data + 0x2254))" ( (binary_expression "event->x - (double)*(int *)((int)data + 0x2254)" (field_expression "event->x" identifier -> field_identifier) - (cast_expression "(double)*(int *)((int)data + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)((int)data + 0x2254)" * (cast_expression "(int *)((int)data + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x2254)" ( (binary_expression "(int)data + 0x2254" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) )) / (cast_expression "(double)*(int *)((int)data + 0xcdc)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)((int)data + 0xcdc)" * (cast_expression "(int *)((int)data + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xcdc)" ( (binary_expression "(int)data + 0xcdc" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ))))) ;) (expression_statement "bcooked = MBT_EXTEND;" (assignment_expression "bcooked = MBT_EXTEND" identifier = identifier) ;) (expression_statement "y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));" (assignment_expression "y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0))" identifier = (cast_expression "(int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0))" identifier (argument_list "((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0))" ( (binary_expression "(event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0)" (parenthesized_expression "(event->y - (double)*(int *)((int)data + 0x2254))" ( (binary_expression "event->y - (double)*(int *)((int)data + 0x2254)" (field_expression "event->y" identifier -> field_identifier) - (cast_expression "(double)*(int *)((int)data + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)((int)data + 0x2254)" * (cast_expression "(int *)((int)data + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x2254)" ( (binary_expression "(int)data + 0x2254" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) )) / (cast_expression "(double)*(int *)((int)data + 0xce0)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)((int)data + 0xce0)" * (cast_expression "(int *)((int)data + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xce0)" ( (binary_expression "(int)data + 0xce0" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ))))) ;) }) (else_clause "else {\n      local_28 = MBT_MIDDLE;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_PASTE;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }" else (compound_statement "{\n      local_28 = MBT_MIDDLE;\n      local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));\n      bcooked = MBT_PASTE;\n      y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));\n    }" { (expression_statement "local_28 = MBT_MIDDLE;" (assignment_expression "local_28 = MBT_MIDDLE" identifier = identifier) ;) (expression_statement "local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc));" (assignment_expression "local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc))" identifier = (cast_expression "(int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc))" identifier (argument_list "((event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc))" ( (binary_expression "(event->x - (double)*(int *)((int)data + 0x2254)) /\n                            (double)*(int *)((int)data + 0xcdc)" (parenthesized_expression "(event->x - (double)*(int *)((int)data + 0x2254))" ( (binary_expression "event->x - (double)*(int *)((int)data + 0x2254)" (field_expression "event->x" identifier -> field_identifier) - (cast_expression "(double)*(int *)((int)data + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)((int)data + 0x2254)" * (cast_expression "(int *)((int)data + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x2254)" ( (binary_expression "(int)data + 0x2254" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) )) / (cast_expression "(double)*(int *)((int)data + 0xcdc)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)((int)data + 0xcdc)" * (cast_expression "(int *)((int)data + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xcdc)" ( (binary_expression "(int)data + 0xcdc" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ))))) ;) (expression_statement "bcooked = MBT_PASTE;" (assignment_expression "bcooked = MBT_PASTE" identifier = identifier) ;) (expression_statement "y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0));" (assignment_expression "y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0))" identifier = (cast_expression "(int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0))" identifier (argument_list "((event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0))" ( (binary_expression "(event->y - (double)*(int *)((int)data + 0x2254)) /\n                     (double)*(int *)((int)data + 0xce0)" (parenthesized_expression "(event->y - (double)*(int *)((int)data + 0x2254))" ( (binary_expression "event->y - (double)*(int *)((int)data + 0x2254)" (field_expression "event->y" identifier -> field_identifier) - (cast_expression "(double)*(int *)((int)data + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)((int)data + 0x2254)" * (cast_expression "(int *)((int)data + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x2254)" ( (binary_expression "(int)data + 0x2254" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) )) / (cast_expression "(double)*(int *)((int)data + 0xce0)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)((int)data + 0xce0)" * (cast_expression "(int *)((int)data + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xce0)" ( (binary_expression "(int)data + 0xce0" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ))))) ;) }))) }) (else_clause "else {\n    local_28 = MBT_LEFT;\n    local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                          (double)*(int *)((int)data + 0xcdc));\n    bcooked = MBT_SELECT;\n    y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                   (double)*(int *)((int)data + 0xce0));\n  }" else (compound_statement "{\n    local_28 = MBT_LEFT;\n    local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                          (double)*(int *)((int)data + 0xcdc));\n    bcooked = MBT_SELECT;\n    y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                   (double)*(int *)((int)data + 0xce0));\n  }" { (expression_statement "local_28 = MBT_LEFT;" (assignment_expression "local_28 = MBT_LEFT" identifier = identifier) ;) (expression_statement "local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                          (double)*(int *)((int)data + 0xcdc));" (assignment_expression "local_2c = (int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                          (double)*(int *)((int)data + 0xcdc))" identifier = (cast_expression "(int)ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                          (double)*(int *)((int)data + 0xcdc))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((event->x - (double)*(int *)((int)data + 0x2254)) /\n                          (double)*(int *)((int)data + 0xcdc))" identifier (argument_list "((event->x - (double)*(int *)((int)data + 0x2254)) /\n                          (double)*(int *)((int)data + 0xcdc))" ( (binary_expression "(event->x - (double)*(int *)((int)data + 0x2254)) /\n                          (double)*(int *)((int)data + 0xcdc)" (parenthesized_expression "(event->x - (double)*(int *)((int)data + 0x2254))" ( (binary_expression "event->x - (double)*(int *)((int)data + 0x2254)" (field_expression "event->x" identifier -> field_identifier) - (cast_expression "(double)*(int *)((int)data + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)((int)data + 0x2254)" * (cast_expression "(int *)((int)data + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x2254)" ( (binary_expression "(int)data + 0x2254" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) )) / (cast_expression "(double)*(int *)((int)data + 0xcdc)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)((int)data + 0xcdc)" * (cast_expression "(int *)((int)data + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xcdc)" ( (binary_expression "(int)data + 0xcdc" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ))))) ;) (expression_statement "bcooked = MBT_SELECT;" (assignment_expression "bcooked = MBT_SELECT" identifier = identifier) ;) (expression_statement "y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                   (double)*(int *)((int)data + 0xce0));" (assignment_expression "y = (int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                   (double)*(int *)((int)data + 0xce0))" identifier = (cast_expression "(int)ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                   (double)*(int *)((int)data + 0xce0))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((event->y - (double)*(int *)((int)data + 0x2254)) /\n                   (double)*(int *)((int)data + 0xce0))" identifier (argument_list "((event->y - (double)*(int *)((int)data + 0x2254)) /\n                   (double)*(int *)((int)data + 0xce0))" ( (binary_expression "(event->y - (double)*(int *)((int)data + 0x2254)) /\n                   (double)*(int *)((int)data + 0xce0)" (parenthesized_expression "(event->y - (double)*(int *)((int)data + 0x2254))" ( (binary_expression "event->y - (double)*(int *)((int)data + 0x2254)" (field_expression "event->y" identifier -> field_identifier) - (cast_expression "(double)*(int *)((int)data + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)((int)data + 0x2254)" * (cast_expression "(int *)((int)data + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x2254)" ( (binary_expression "(int)data + 0x2254" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) )) / (cast_expression "(double)*(int *)((int)data + 0xce0)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)((int)data + 0xce0)" * (cast_expression "(int *)((int)data + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xce0)" ( (binary_expression "(int)data + 0xce0" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ))))) ;) }))) (expression_statement "term_mouse(*(Terminal **)((int)data + 0xd1c),local_28,bcooked,MA_DRAG,local_2c,y,uVar1 & 1,\n             uVar1 & 4,*(uint *)((int)data + 0x2260) & uVar1);" (call_expression "term_mouse(*(Terminal **)((int)data + 0xd1c),local_28,bcooked,MA_DRAG,local_2c,y,uVar1 & 1,\n             uVar1 & 4,*(uint *)((int)data + 0x2260) & uVar1)" identifier (argument_list "(*(Terminal **)((int)data + 0xd1c),local_28,bcooked,MA_DRAG,local_2c,y,uVar1 & 1,\n             uVar1 & 4,*(uint *)((int)data + 0x2260) & uVar1)" ( (pointer_expression "*(Terminal **)((int)data + 0xd1c)" * (cast_expression "(Terminal **)((int)data + 0xd1c)" ( (type_descriptor "Terminal **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0xd1c)" ( (binary_expression "(int)data + 0xd1c" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier , identifier , identifier , identifier , identifier , (binary_expression "uVar1 & 1" identifier & number_literal) , (binary_expression "uVar1 & 4" identifier & number_literal) , (binary_expression "*(uint *)((int)data + 0x2260) & uVar1" (pointer_expression "*(uint *)((int)data + 0x2260)" * (cast_expression "(uint *)((int)data + 0x2260)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x2260)" ( (binary_expression "(int)data + 0x2260" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & identifier) ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00051120(undefined4 param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int local_2c;\n  undefined4 local_28;\n  \n  *(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc);\n  FUN_00051080();\n  uVar1 = *(uint *)(param_2 + 0x24);\n  if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }\n  else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }\n  FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1);\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00051120(undefined4 param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int local_2c;\n  undefined4 local_28;\n  \n  *(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc);\n  FUN_00051080();\n  uVar1 = *(uint *)(param_2 + 0x24);\n  if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }\n  else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }\n  FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1);\n  return 1;\n}" type_identifier (function_declarator "FUN_00051120(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int local_2c;\n  undefined4 local_28;\n  \n  *(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc);\n  FUN_00051080();\n  uVar1 = *(uint *)(param_2 + 0x24);\n  if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }\n  else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }\n  FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1);\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (expression_statement "*(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "*(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc)" (pointer_expression "*(undefined4 *)(param_3 + 0x2240)" * (cast_expression "(undefined4 *)(param_3 + 0x2240)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2240)" ( (binary_expression "param_3 + 0x2240" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "FUN_00051080();" (call_expression "FUN_00051080()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(uint *)(param_2 + 0x24);" (assignment_expression "uVar1 = *(uint *)(param_2 + 0x24)" identifier = (pointer_expression "*(uint *)(param_2 + 0x24)" * (cast_expression "(uint *)(param_2 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }\n  else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }" if (parenthesized_expression "((uVar1 & 0x100) == 0)" ( (binary_expression "(uVar1 & 0x100) == 0" (parenthesized_expression "(uVar1 & 0x100)" ( (binary_expression "uVar1 & 0x100" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }" { (if_statement "if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }" if (parenthesized_expression "((uVar1 & 0x200) == 0)" ( (binary_expression "(uVar1 & 0x200) == 0" (parenthesized_expression "(uVar1 & 0x200)" ( (binary_expression "uVar1 & 0x200" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }" { (if_statement "if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((uVar1 & 0x400) == 0)" ( (binary_expression "(uVar1 & 0x400) == 0" (parenthesized_expression "(uVar1 & 0x400)" ( (binary_expression "uVar1 & 0x400" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_28 = 3;" (assignment_expression "local_28 = 3" identifier = number_literal) ;) (expression_statement "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));" (assignment_expression "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" identifier = (cast_expression "(int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" identifier (argument_list "((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" ( (binary_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc)" (parenthesized_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254))" ( (binary_expression "*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x10)" * (cast_expression "(double *)(param_2 + 0x10)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) - (cast_expression "(double)*(int *)(param_3 + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) )))))) )) / (cast_expression "(double)*(int *)(param_3 + 0xcdc)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0xcdc)" * (cast_expression "(int *)(param_3 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xcdc)" ( (binary_expression "param_3 + 0xcdc" identifier + number_literal) )))))) ))))) ;) (expression_statement "uVar3 = 5;" (assignment_expression "uVar3 = 5" identifier = number_literal) ;) (expression_statement "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));" (assignment_expression "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" identifier = (cast_expression "(int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" identifier (argument_list "((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" ( (binary_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0)" (parenthesized_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254))" ( (binary_expression "*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x18)" * (cast_expression "(double *)(param_2 + 0x18)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) - (cast_expression "(double)*(int *)(param_3 + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) )))))) )) / (cast_expression "(double)*(int *)(param_3 + 0xce0)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0xce0)" * (cast_expression "(int *)(param_3 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce0)" ( (binary_expression "param_3 + 0xce0" identifier + number_literal) )))))) ))))) ;) }) (else_clause "else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }" else (compound_statement "{\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }" { (expression_statement "local_28 = 2;" (assignment_expression "local_28 = 2" identifier = number_literal) ;) (expression_statement "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));" (assignment_expression "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" identifier = (cast_expression "(int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" identifier (argument_list "((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" ( (binary_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc)" (parenthesized_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254))" ( (binary_expression "*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x10)" * (cast_expression "(double *)(param_2 + 0x10)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) - (cast_expression "(double)*(int *)(param_3 + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) )))))) )) / (cast_expression "(double)*(int *)(param_3 + 0xcdc)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0xcdc)" * (cast_expression "(int *)(param_3 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xcdc)" ( (binary_expression "param_3 + 0xcdc" identifier + number_literal) )))))) ))))) ;) (expression_statement "uVar3 = 6;" (assignment_expression "uVar3 = 6" identifier = number_literal) ;) (expression_statement "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));" (assignment_expression "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" identifier = (cast_expression "(int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" identifier (argument_list "((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" ( (binary_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0)" (parenthesized_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254))" ( (binary_expression "*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x18)" * (cast_expression "(double *)(param_2 + 0x18)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) - (cast_expression "(double)*(int *)(param_3 + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) )))))) )) / (cast_expression "(double)*(int *)(param_3 + 0xce0)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0xce0)" * (cast_expression "(int *)(param_3 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce0)" ( (binary_expression "param_3 + 0xce0" identifier + number_literal) )))))) ))))) ;) }))) }) (else_clause "else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }" else (compound_statement "{\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }" { (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) (expression_statement "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));" (assignment_expression "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc))" identifier = (cast_expression "(int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc))" identifier (argument_list "((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc))" ( (binary_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc)" (parenthesized_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254))" ( (binary_expression "*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x10)" * (cast_expression "(double *)(param_2 + 0x10)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) - (cast_expression "(double)*(int *)(param_3 + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) )))))) )) / (cast_expression "(double)*(int *)(param_3 + 0xcdc)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0xcdc)" * (cast_expression "(int *)(param_3 + 0xcdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xcdc)" ( (binary_expression "param_3 + 0xcdc" identifier + number_literal) )))))) ))))) ;) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) (expression_statement "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));" (assignment_expression "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0))" identifier = (cast_expression "(int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0))" identifier (argument_list "((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0))" ( (binary_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0)" (parenthesized_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254))" ( (binary_expression "*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x18)" * (cast_expression "(double *)(param_2 + 0x18)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) - (cast_expression "(double)*(int *)(param_3 + 0x2254)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0x2254)" * (cast_expression "(int *)(param_3 + 0x2254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2254)" ( (binary_expression "param_3 + 0x2254" identifier + number_literal) )))))) )) / (cast_expression "(double)*(int *)(param_3 + 0xce0)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_3 + 0xce0)" * (cast_expression "(int *)(param_3 + 0xce0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xce0)" ( (binary_expression "param_3 + 0xce0" identifier + number_literal) )))))) ))))) ;) }))) (expression_statement "FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1);" (call_expression "FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1)" identifier (argument_list "(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1)" ( (pointer_expression "*(undefined4 *)(param_3 + 0xd1c)" * (cast_expression "(undefined4 *)(param_3 + 0xd1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xd1c)" ( (binary_expression "param_3 + 0xd1c" identifier + number_literal) )))) , identifier , identifier , number_literal , identifier , identifier , (binary_expression "uVar1 & 1" identifier & number_literal) , (binary_expression "uVar1 & 4" identifier & number_literal) , (binary_expression "*(uint *)(param_3 + 0x2260) & uVar1" (pointer_expression "*(uint *)(param_3 + 0x2260)" * (cast_expression "(uint *)(param_3 + 0x2260)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2260)" ( (binary_expression "param_3 + 0x2260" identifier + number_literal) )))) & 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 ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) / (cast_expression ( (type_descriptor TYPE) ) (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 = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) / (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) / (cast_expression ( (type_descriptor TYPE) ) (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 = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) / (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) / (cast_expression ( (type_descriptor TYPE) ) (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 = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) / (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , LIT , IDENT , IDENT , (binary_expression IDENT & LIT) , (binary_expression IDENT & LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & IDENT) ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00051120(undefined4 param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int local_2c;\n  undefined4 local_28;\n  \n  *(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc);\n  FUN_00051080();\n  uVar1 = *(uint *)(param_2 + 0x24);\n  if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }\n  else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }\n  FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00051120(undefined4 param_1,int param_2,int param_3)" (identifier "FUN_00051120") (parameter_list "(undefined4 param_1,int param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int local_2c;\n  undefined4 local_28;\n  \n  *(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc);\n  FUN_00051080();\n  uVar1 = *(uint *)(param_2 + 0x24);\n  if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }\n  else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }\n  FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1);\n  return 1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (expression_statement "*(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "*(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc)" (pointer_expression "*(undefined4 *)(param_3 + 0x2240)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x2240)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2240)" (( "(") (binary_expression "param_3 + 0x2240" (identifier "param_3") (+ "+") (number_literal "0x2240")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "FUN_00051080();" (call_expression "FUN_00051080()" (identifier "FUN_00051080") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = *(uint *)(param_2 + 0x24);" (assignment_expression "uVar1 = *(uint *)(param_2 + 0x24)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_2 + 0x24)" (* "*") (cast_expression "(uint *)(param_2 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if ((uVar1 & 0x100) == 0) {\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }\n  else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x100) == 0)" (( "(") (binary_expression "(uVar1 & 0x100) == 0" (parenthesized_expression "(uVar1 & 0x100)" (( "(") (binary_expression "uVar1 & 0x100" (identifier "uVar1") (& "&") (number_literal "0x100")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n  }" ({ "{") (if_statement "if ((uVar1 & 0x200) == 0) {\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }\n    else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }" (if "if") (parenthesized_expression "((uVar1 & 0x200) == 0)" (( "(") (binary_expression "(uVar1 & 0x200) == 0" (parenthesized_expression "(uVar1 & 0x200)" (( "(") (binary_expression "uVar1 & 0x200" (identifier "uVar1") (& "&") (number_literal "0x200")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }\n      local_28 = 3;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 5;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }" ({ "{") (if_statement "if ((uVar1 & 0x400) == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((uVar1 & 0x400) == 0)" (( "(") (binary_expression "(uVar1 & 0x400) == 0" (parenthesized_expression "(uVar1 & 0x400)" (( "(") (binary_expression "uVar1 & 0x400" (identifier "uVar1") (& "&") (number_literal "0x400")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "local_28 = 3;" (assignment_expression "local_28 = 3" (identifier "local_28") (= "=") (number_literal "3")) (; ";")) (expression_statement "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));" (assignment_expression "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" (identifier "local_2c") (= "=") (cast_expression "(int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" (identifier "ROUND") (argument_list "((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" (( "(") (binary_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc)" (parenthesized_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254))" (( "(") (binary_expression "*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x10)" (* "*") (cast_expression "(double *)(param_2 + 0x10)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (- "-") (cast_expression "(double)*(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_3 + 0x2254)" (* "*") (cast_expression "(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2254)" (( "(") (binary_expression "param_3 + 0x2254" (identifier "param_3") (+ "+") (number_literal "0x2254")) () ")")))))) () ")")) (/ "/") (cast_expression "(double)*(int *)(param_3 + 0xcdc)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_3 + 0xcdc)" (* "*") (cast_expression "(int *)(param_3 + 0xcdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xcdc)" (( "(") (binary_expression "param_3 + 0xcdc" (identifier "param_3") (+ "+") (number_literal "0xcdc")) () ")")))))) () ")"))))) (; ";")) (expression_statement "uVar3 = 5;" (assignment_expression "uVar3 = 5" (identifier "uVar3") (= "=") (number_literal "5")) (; ";")) (expression_statement "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));" (assignment_expression "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" (identifier "iVar2") (= "=") (cast_expression "(int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" (identifier "ROUND") (argument_list "((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" (( "(") (binary_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0)" (parenthesized_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254))" (( "(") (binary_expression "*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x18)" (* "*") (cast_expression "(double *)(param_2 + 0x18)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (- "-") (cast_expression "(double)*(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_3 + 0x2254)" (* "*") (cast_expression "(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2254)" (( "(") (binary_expression "param_3 + 0x2254" (identifier "param_3") (+ "+") (number_literal "0x2254")) () ")")))))) () ")")) (/ "/") (cast_expression "(double)*(int *)(param_3 + 0xce0)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_3 + 0xce0)" (* "*") (cast_expression "(int *)(param_3 + 0xce0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xce0)" (( "(") (binary_expression "param_3 + 0xce0" (identifier "param_3") (+ "+") (number_literal "0xce0")) () ")")))))) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }" (else "else") (compound_statement "{\n      local_28 = 2;\n      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));\n      uVar3 = 6;\n      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));\n    }" ({ "{") (expression_statement "local_28 = 2;" (assignment_expression "local_28 = 2" (identifier "local_28") (= "=") (number_literal "2")) (; ";")) (expression_statement "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc));" (assignment_expression "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" (identifier "local_2c") (= "=") (cast_expression "(int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" (identifier "ROUND") (argument_list "((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc))" (( "(") (binary_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                            (double)*(int *)(param_3 + 0xcdc)" (parenthesized_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254))" (( "(") (binary_expression "*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x10)" (* "*") (cast_expression "(double *)(param_2 + 0x10)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (- "-") (cast_expression "(double)*(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_3 + 0x2254)" (* "*") (cast_expression "(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2254)" (( "(") (binary_expression "param_3 + 0x2254" (identifier "param_3") (+ "+") (number_literal "0x2254")) () ")")))))) () ")")) (/ "/") (cast_expression "(double)*(int *)(param_3 + 0xcdc)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_3 + 0xcdc)" (* "*") (cast_expression "(int *)(param_3 + 0xcdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xcdc)" (( "(") (binary_expression "param_3 + 0xcdc" (identifier "param_3") (+ "+") (number_literal "0xcdc")) () ")")))))) () ")"))))) (; ";")) (expression_statement "uVar3 = 6;" (assignment_expression "uVar3 = 6" (identifier "uVar3") (= "=") (number_literal "6")) (; ";")) (expression_statement "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0));" (assignment_expression "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" (identifier "iVar2") (= "=") (cast_expression "(int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" (identifier "ROUND") (argument_list "((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0))" (( "(") (binary_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                         (double)*(int *)(param_3 + 0xce0)" (parenthesized_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254))" (( "(") (binary_expression "*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x18)" (* "*") (cast_expression "(double *)(param_2 + 0x18)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (- "-") (cast_expression "(double)*(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_3 + 0x2254)" (* "*") (cast_expression "(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2254)" (( "(") (binary_expression "param_3 + 0x2254" (identifier "param_3") (+ "+") (number_literal "0x2254")) () ")")))))) () ")")) (/ "/") (cast_expression "(double)*(int *)(param_3 + 0xce0)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_3 + 0xce0)" (* "*") (cast_expression "(int *)(param_3 + 0xce0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xce0)" (( "(") (binary_expression "param_3 + 0xce0" (identifier "param_3") (+ "+") (number_literal "0xce0")) () ")")))))) () ")"))))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }" (else "else") (compound_statement "{\n    local_28 = 1;\n    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));\n    uVar3 = 4;\n    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));\n  }" ({ "{") (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" (identifier "local_28") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc));" (assignment_expression "local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc))" (identifier "local_2c") (= "=") (cast_expression "(int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc))" (identifier "ROUND") (argument_list "((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc))" (( "(") (binary_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /\n                          (double)*(int *)(param_3 + 0xcdc)" (parenthesized_expression "(*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254))" (( "(") (binary_expression "*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x10)" (* "*") (cast_expression "(double *)(param_2 + 0x10)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (- "-") (cast_expression "(double)*(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_3 + 0x2254)" (* "*") (cast_expression "(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2254)" (( "(") (binary_expression "param_3 + 0x2254" (identifier "param_3") (+ "+") (number_literal "0x2254")) () ")")))))) () ")")) (/ "/") (cast_expression "(double)*(int *)(param_3 + 0xcdc)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_3 + 0xcdc)" (* "*") (cast_expression "(int *)(param_3 + 0xcdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xcdc)" (( "(") (binary_expression "param_3 + 0xcdc" (identifier "param_3") (+ "+") (number_literal "0xcdc")) () ")")))))) () ")"))))) (; ";")) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" (identifier "uVar3") (= "=") (number_literal "4")) (; ";")) (expression_statement "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0));" (assignment_expression "iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0))" (identifier "iVar2") (= "=") (cast_expression "(int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0))" (identifier "ROUND") (argument_list "((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0))" (( "(") (binary_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /\n                       (double)*(int *)(param_3 + 0xce0)" (parenthesized_expression "(*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254))" (( "(") (binary_expression "*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)" (pointer_expression "*(double *)(param_2 + 0x18)" (* "*") (cast_expression "(double *)(param_2 + 0x18)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (- "-") (cast_expression "(double)*(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_3 + 0x2254)" (* "*") (cast_expression "(int *)(param_3 + 0x2254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2254)" (( "(") (binary_expression "param_3 + 0x2254" (identifier "param_3") (+ "+") (number_literal "0x2254")) () ")")))))) () ")")) (/ "/") (cast_expression "(double)*(int *)(param_3 + 0xce0)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_3 + 0xce0)" (* "*") (cast_expression "(int *)(param_3 + 0xce0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xce0)" (( "(") (binary_expression "param_3 + 0xce0" (identifier "param_3") (+ "+") (number_literal "0xce0")) () ")")))))) () ")"))))) (; ";")) (} "}")))) (expression_statement "FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1);" (call_expression "FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1)" (identifier "FUN_0003de10") (argument_list "(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,\n               *(uint *)(param_3 + 0x2260) & uVar1)" (( "(") (pointer_expression "*(undefined4 *)(param_3 + 0xd1c)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0xd1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xd1c)" (( "(") (binary_expression "param_3 + 0xd1c" (identifier "param_3") (+ "+") (number_literal "0xd1c")) () ")")))) (, ",") (identifier "local_28") (, ",") (identifier "uVar3") (, ",") (number_literal "4") (, ",") (identifier "local_2c") (, ",") (identifier "iVar2") (, ",") (binary_expression "uVar1 & 1" (identifier "uVar1") (& "&") (number_literal "1")) (, ",") (binary_expression "uVar1 & 4" (identifier "uVar1") (& "&") (number_literal "4")) (, ",") (binary_expression "*(uint *)(param_3 + 0x2260) & uVar1" (pointer_expression "*(uint *)(param_3 + 0x2260)" (* "*") (cast_expression "(uint *)(param_3 + 0x2260)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2260)" (( "(") (binary_expression "param_3 + 0x2260" (identifier "param_3") (+ "+") (number_literal "0x2260")) () ")")))) (& "&") (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 "GdkEventType": Some values do not have unique names */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 function_1(type_2 *widget,type_3 *event,type_4 data)

{
  type_5 var_2;
  int y;
  type_6 bcooked;
  int local_2c;
  type_6 local_28;
  
  *(type_7 *)((int)data + 0x2240) = event->time;
  var_1((type_8 *)data,1);
  var_2 = event->state;
  if ((var_2 & 0x100) == 0) {
    if ((var_2 & 0x200) == 0) {
      if ((var_2 & 0x400) == 0) {
        return 0;
      }
      local_28 = MBT_RIGHT;
      local_2c = (int)var_3((event->x - (double)*(int *)((int)data + 0x2254)) /
                            (double)*(int *)((int)data + 0xcdc));
      bcooked = MBT_EXTEND;
      y = (int)var_3((event->y - (double)*(int *)((int)data + 0x2254)) /
                     (double)*(int *)((int)data + 0xce0));
    }
    else {
      local_28 = MBT_MIDDLE;
      local_2c = (int)var_3((event->x - (double)*(int *)((int)data + 0x2254)) /
                            (double)*(int *)((int)data + 0xcdc));
      bcooked = MBT_PASTE;
      y = (int)var_3((event->y - (double)*(int *)((int)data + 0x2254)) /
                     (double)*(int *)((int)data + 0xce0));
    }
  }
  else {
    local_28 = MBT_LEFT;
    local_2c = (int)var_3((event->x - (double)*(int *)((int)data + 0x2254)) /
                          (double)*(int *)((int)data + 0xcdc));
    bcooked = MBT_SELECT;
    y = (int)var_3((event->y - (double)*(int *)((int)data + 0x2254)) /
                   (double)*(int *)((int)data + 0xce0));
  }
  var_4(*(type_9 **)((int)data + 0xd1c),local_28,bcooked,MA_DRAG,local_2c,y,var_2 & 1,
             var_2 & 4,*(type_5 *)((int)data + 0x2260) & var_2);
  return 1;
}


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

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

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

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  int local_2c;
  undefined4 local_28;
  
  *(undefined4 *)(param_3 + 0x2240) = *(undefined4 *)(param_2 + 0xc);
  FUN_00051080();
  uVar1 = *(uint *)(param_2 + 0x24);
  if ((uVar1 & 0x100) == 0) {
    if ((uVar1 & 0x200) == 0) {
      if ((uVar1 & 0x400) == 0) {
        return 0;
      }
      local_28 = 3;
      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /
                            (double)*(int *)(param_3 + 0xcdc));
      uVar3 = 5;
      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /
                         (double)*(int *)(param_3 + 0xce0));
    }
    else {
      local_28 = 2;
      local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /
                            (double)*(int *)(param_3 + 0xcdc));
      uVar3 = 6;
      iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /
                         (double)*(int *)(param_3 + 0xce0));
    }
  }
  else {
    local_28 = 1;
    local_2c = (int)ROUND((*(double *)(param_2 + 0x10) - (double)*(int *)(param_3 + 0x2254)) /
                          (double)*(int *)(param_3 + 0xcdc));
    uVar3 = 4;
    iVar2 = (int)ROUND((*(double *)(param_2 + 0x18) - (double)*(int *)(param_3 + 0x2254)) /
                       (double)*(int *)(param_3 + 0xce0));
  }
  FUN_0003de10(*(undefined4 *)(param_3 + 0xd1c),local_28,uVar3,4,local_2c,iVar2,uVar1 & 1,uVar1 & 4,
               *(uint *)(param_3 + 0x2260) & uVar1);
  return 1;
}

