{"type": "func", "start": 4299320080, "end": 4299320241, "name": "GJSmartTemplate::rotateBlockType", "pseudocode": "// \n// GJSmartTemplate::rotateBlockType from 0x100426b10 to 0x100426bb1 (161 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nSmartBlockType __fastcall GJSmartTemplate::rotateBlockType(SmartBlockType a1, int a2)\n{\n  SmartBlockType result; // eax\n  int v3; // ecx\n  unsigned int v4; // edx\n  int v5; // edi\n  unsigned int v6; // ecx\n  int v7; // edx\n  unsigned int v8; // edi\n  unsigned int v9; // edi\n\n  result = a1;\n  if ( (a1 & 0xFFFFFFFE) != 48 && a2 > 0 )\n  {\n    if ( ((3054198967LL * ((unsigned int)(a2 - 1) >> 1)) & 0x2000000000LL) != 0 )\n    {\n      v3 = a2;\n    }\n    else\n    {\n      v3 = a2 - 90;\n      v4 = a1 - 50;\n      if ( (unsigned int)(a1 - 50) <= 0x1A )\n      {\n        v5 = 134185215;\n        if ( _bittest(&v5, v4) )\n          result = *(_DWORD *)&a3_3[4 * v4];\n      }\n    }\n    if ( (unsigned int)a2 >= 0x5B )\n    {\n      v6 = v3 - 1;\n      v7 = 134185215;\n      do\n      {\n        v8 = result - 50;\n        if ( (unsigned int)(result - 50) <= 0x1A && _bittest(&v7, v8) )\n          result = *(_DWORD *)&a3_3[4 * v8];\n        v9 = result - 50;\n        if ( (unsigned int)(result - 50) <= 0x1A )\n        {\n          if ( _bittest(&v7, v9) )\n            result = *(_DWORD *)&a3_3[4 * v9];\n        }\n        v6 -= 180;\n      }\n      while ( v6 < 0xFFFFFFA5 );\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJSmartTemplate::rotateBlockType from 0x100426b10 to 0x100426bb1 (161 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100426b10\nmov     rbp, rsp                                                       ; +0x1, 0x100426b11\nmov     eax, edi                                                       ; +0x4, 0x100426b14\nmov     ecx, edi                                                       ; +0x6, 0x100426b16\nand     ecx, 0FFFFFFFEh                                                ; +0x8, 0x100426b18\ncmp     ecx, 30h ; '0'                                                 ; +0xb, 0x100426b1b\nsetz    cl                                                             ; +0xe, 0x100426b1e\ntest    esi, esi                                                       ; +0x11, 0x100426b21\nsetle   dl                                                             ; +0x13, 0x100426b23\nor      dl, cl                                                         ; +0x16, 0x100426b26\njnz     short loc_100426B69                                            ; +0x18, 0x100426b28\nlea     ecx, [rsi-1]                                                   ; +0x1a, 0x100426b2a\nshr     ecx, 1                                                         ; +0x1d, 0x100426b2d\nmov     edx, 0B60B60B7h                                                ; +0x1f, 0x100426b2f\nimul    rdx, rcx                                                       ; +0x24, 0x100426b34\nbt      rdx, 25h ; '%'                                                 ; +0x28, 0x100426b38\njb      short loc_100426B62                                            ; +0x2d, 0x100426b3d\nlea     ecx, [rsi-5Ah]                                                 ; +0x2f, 0x100426b3f\nlea     edx, [rax-32h]                                                 ; +0x32, 0x100426b42\ncmp     edx, 1Ah                                                       ; +0x35, 0x100426b45\nja      short loc_100426B64                                            ; +0x38, 0x100426b48\nmov     edi, 7FF80FFh                                                  ; +0x3a, 0x100426b4a\nbt      edi, edx                                                       ; +0x3f, 0x100426b4f\njnb     short loc_100426B64                                            ; +0x42, 0x100426b52\nmov     eax, edx                                                       ; +0x44, 0x100426b54\nlea     rdx, a3_3; \"3\"                                                 ; +0x46, 0x100426b56\nmov     eax, [rdx+rax*4]                                               ; +0x4d, 0x100426b5d\njmp     short loc_100426B64                                            ; +0x50, 0x100426b60\nmov     ecx, esi                                                       ; +0x52, 0x100426b62\ncmp     esi, 5Bh ; '['                                                 ; +0x54, 0x100426b64\njnb     short loc_100426B6B                                            ; +0x57, 0x100426b67\npop     rbp                                                            ; +0x59, 0x100426b69\nretn                                                                   ; +0x5a, 0x100426b6a\ndec     ecx                                                            ; +0x5b, 0x100426b6b\nmov     edx, 7FF80FFh                                                  ; +0x5d, 0x100426b6d\nlea     rsi, a3_3; \"3\"                                                 ; +0x62, 0x100426b72\njmp     short loc_100426B8B                                            ; +0x69, 0x100426b79\nalign 20h                                                              ; +0x6b, 0x100426b7b\nadd     ecx, 0FFFFFF4Ch                                                ; +0x70, 0x100426b80\ncmp     ecx, 0FFFFFFA5h                                                ; +0x76, 0x100426b86\njnb     short loc_100426B69                                            ; +0x79, 0x100426b89\nlea     edi, [rax-32h]                                                 ; +0x7b, 0x100426b8b\ncmp     edi, 1Ah                                                       ; +0x7e, 0x100426b8e\nja      short loc_100426B9D                                            ; +0x81, 0x100426b91\nbt      edx, edi                                                       ; +0x83, 0x100426b93\njnb     short loc_100426B9D                                            ; +0x86, 0x100426b96\nmov     eax, edi                                                       ; +0x88, 0x100426b98\nmov     eax, [rsi+rax*4]                                               ; +0x8a, 0x100426b9a\nlea     edi, [rax-32h]                                                 ; +0x8d, 0x100426b9d\ncmp     edi, 1Ah                                                       ; +0x90, 0x100426ba0\nja      short loc_100426B80                                            ; +0x93, 0x100426ba3\nbt      edx, edi                                                       ; +0x95, 0x100426ba5\njnb     short loc_100426B80                                            ; +0x98, 0x100426ba8\nmov     eax, edi                                                       ; +0x9a, 0x100426baa\nmov     eax, [rsi+rax*4]                                               ; +0x9c, 0x100426bac\njmp     short loc_100426B80                                            ; +0x9f, 0x100426baf", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}