{"type": "func", "start": 4298018144, "end": 4298018481, "name": "GJEffectManager::hasPulseEffectForGroupID", "pseudocode": "// \n// GJEffectManager::hasPulseEffectForGroupID from 0x1002e8d60 to 0x1002e8eb1 (337 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\nbool __fastcall GJEffectManager::hasPulseEffectForGroupID(GJEffectManager *a1, int a2)\n{\n  unsigned __int64 value; // r9\n  unsigned __int64 v3; // r10\n  unsigned __int64 v4; // r8\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, std::vector<PulseEffectAction>>, void *> *> *v6; // rax\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, std::vector<PulseEffectAction>>, void *> *>::__next_pointer next; // rdi\n  unsigned __int64 v8; // r9\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, std::vector<PulseEffectAction>>, void *> *>::__next_pointer v9; // rax\n  unsigned __int64 v10; // rax\n\n  value = a1->m_pulseEffectMap.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;\n  if ( !value )\n    return 0;\n  v3 = (0x101010101010101LL\n      * ((((value - ((value >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL)\n        + (((value - ((value >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)\n        + ((((value - ((value >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL)\n          + (((value - ((value >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)) >> 4))\n       & 0xF0F0F0F0F0F0F0FLL)) >> 56;\n  if ( v3 > 1 )\n  {\n    v4 = a2;\n    if ( value <= a2 )\n    {\n      if ( (value | a2) >> 32 )\n        v4 = a2 % value;\n      else\n        v4 = a2 % (unsigned int)value;\n    }\n  }\n  else\n  {\n    v4 = a2 & (value - 1);\n  }\n  v6 = a1->m_pulseEffectMap.__table_.__bucket_list_.__ptr_.__value_[v4];\n  if ( !v6 )\n    return 0;\n  next = v6->__next_;\n  if ( !v6->__next_ )\n    return 0;\n  if ( (unsigned int)v3 < 2 )\n  {\n    v8 = value - 1;\n    while ( 1 )\n    {\n      v9 = next[1].__next_;\n      if ( v9 == (std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, std::vector<PulseEffectAction>>, void *> *>::__next_pointer)a2 )\n      {\n        if ( LODWORD(next[2].__next_) == a2 )\n          return next[3].__next_ != next[4].__next_;\n      }\n      else if ( (v8 & (unsigned __int64)v9) != v4 )\n      {\n        return 0;\n      }\n      next = next->__next_;\n      if ( !next )\n        return 0;\n    }\n  }\n  while ( 1 )\n  {\n    v10 = (unsigned __int64)next[1].__next_;\n    if ( v10 == a2 )\n      break;\n    if ( v10 < value )\n      goto LABEL_24;\n    if ( (value | v10) >> 32 )\n    {\n      v10 %= value;\nLABEL_24:\n      if ( v10 != v4 )\n        return 0;\n      goto LABEL_19;\n    }\n    if ( (unsigned int)v10 % (unsigned int)value != v4 )\n      return 0;\nLABEL_19:\n    next = next->__next_;\n    if ( !next )\n      return 0;\n  }\n  if ( LODWORD(next[2].__next_) != a2 )\n    goto LABEL_19;\n  return next[3].__next_ != next[4].__next_;\n}", "assembly": "; \n; GJEffectManager::hasPulseEffectForGroupID from 0x1002e8d60 to 0x1002e8eb1 (337 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\nmov     r9, [rdi+178h]                                                 ; +0x0, 0x1002e8d60\ntest    r9, r9                                                         ; +0x7, 0x1002e8d67\njz      short loc_1002E8DDA                                            ; +0xa, 0x1002e8d6a\nmovsxd  rcx, esi                                                       ; +0xc, 0x1002e8d6c\nmov     rax, r9                                                        ; +0xf, 0x1002e8d6f\nshr     rax, 1                                                         ; +0x12, 0x1002e8d72\nmov     rdx, 5555555555555555h                                         ; +0x15, 0x1002e8d75\nand     rdx, rax                                                       ; +0x1f, 0x1002e8d7f\nmov     rax, r9                                                        ; +0x22, 0x1002e8d82\nsub     rax, rdx                                                       ; +0x25, 0x1002e8d85\nmov     rdx, 3333333333333333h                                         ; +0x28, 0x1002e8d88\nmov     r8, rax                                                        ; +0x32, 0x1002e8d92\nand     r8, rdx                                                        ; +0x35, 0x1002e8d95\nshr     rax, 2                                                         ; +0x38, 0x1002e8d98\nand     rax, rdx                                                       ; +0x3c, 0x1002e8d9c\nadd     rax, r8                                                        ; +0x3f, 0x1002e8d9f\nmov     rdx, rax                                                       ; +0x42, 0x1002e8da2\nshr     rdx, 4                                                         ; +0x45, 0x1002e8da5\nadd     rdx, rax                                                       ; +0x49, 0x1002e8da9\nmov     rax, 0F0F0F0F0F0F0F0Fh                                         ; +0x4c, 0x1002e8dac\nand     rax, rdx                                                       ; +0x56, 0x1002e8db6\nmov     r10, 101010101010101h                                          ; +0x59, 0x1002e8db9\nimul    r10, rax                                                       ; +0x63, 0x1002e8dc3\nshr     r10, 38h                                                       ; +0x67, 0x1002e8dc7\ncmp     r10, 1                                                         ; +0x6b, 0x1002e8dcb\nja      short loc_1002E8DDD                                            ; +0x6f, 0x1002e8dcf\nlea     r8, [r9-1]                                                     ; +0x71, 0x1002e8dd1\nand     r8, rcx                                                        ; +0x75, 0x1002e8dd5\njmp     short loc_1002E8E08                                            ; +0x78, 0x1002e8dd8\nxor     eax, eax                                                       ; +0x7a, 0x1002e8dda\nretn                                                                   ; +0x7c, 0x1002e8ddc\nmov     r8, rcx                                                        ; +0x7d, 0x1002e8ddd\ncmp     r9, rcx                                                        ; +0x80, 0x1002e8de0\nja      short loc_1002E8E08                                            ; +0x83, 0x1002e8de3\nmov     rax, rcx                                                       ; +0x85, 0x1002e8de5\nor      rax, r9                                                        ; +0x88, 0x1002e8de8\nshr     rax, 20h                                                       ; +0x8b, 0x1002e8deb\njz      short loc_1002E8DFE                                            ; +0x8f, 0x1002e8def\nmov     rax, rcx                                                       ; +0x91, 0x1002e8df1\nxor     edx, edx                                                       ; +0x94, 0x1002e8df4\ndiv     r9                                                             ; +0x96, 0x1002e8df6\nmov     r8, rdx                                                        ; +0x99, 0x1002e8df9\njmp     short loc_1002E8E08                                            ; +0x9c, 0x1002e8dfc\nmov     eax, esi                                                       ; +0x9e, 0x1002e8dfe\nxor     edx, edx                                                       ; +0xa0, 0x1002e8e00\ndiv     r9d                                                            ; +0xa2, 0x1002e8e02\nmov     r8d, edx                                                       ; +0xa5, 0x1002e8e05\npush    rbp                                                            ; +0xa8, 0x1002e8e08\nmov     rbp, rsp                                                       ; +0xa9, 0x1002e8e09\nmov     rax, [rdi+170h]                                                ; +0xac, 0x1002e8e0c\nmov     rax, [rax+r8*8]                                                ; +0xb3, 0x1002e8e13\ntest    rax, rax                                                       ; +0xb7, 0x1002e8e17\njz      short loc_1002E8E4E                                            ; +0xba, 0x1002e8e1a\nmov     rdi, [rax]                                                     ; +0xbc, 0x1002e8e1c\ntest    rdi, rdi                                                       ; +0xbf, 0x1002e8e1f\njz      short loc_1002E8E4E                                            ; +0xc2, 0x1002e8e22\ncmp     r10d, 2                                                        ; +0xc4, 0x1002e8e24\njnb     short loc_1002E8E6D                                            ; +0xc8, 0x1002e8e28\ndec     r9                                                             ; +0xca, 0x1002e8e2a\njmp     short loc_1002E8E3D                                            ; +0xcd, 0x1002e8e2d\nalign 10h                                                              ; +0xcf, 0x1002e8e2f\ncmp     [rdi+10h], esi                                                 ; +0xd0, 0x1002e8e30\njz      short loc_1002E8EA4                                            ; +0xd3, 0x1002e8e33\nmov     rdi, [rdi]                                                     ; +0xd5, 0x1002e8e35\ntest    rdi, rdi                                                       ; +0xd8, 0x1002e8e38\njz      short loc_1002E8E4E                                            ; +0xdb, 0x1002e8e3b\nmov     rax, [rdi+8]                                                   ; +0xdd, 0x1002e8e3d\ncmp     rax, rcx                                                       ; +0xe1, 0x1002e8e41\njz      short loc_1002E8E30                                            ; +0xe4, 0x1002e8e44\nand     rax, r9                                                        ; +0xe6, 0x1002e8e46\ncmp     rax, r8                                                        ; +0xe9, 0x1002e8e49\njz      short loc_1002E8E35                                            ; +0xec, 0x1002e8e4c\nxor     eax, eax                                                       ; +0xee, 0x1002e8e4e\npop     rbp                                                            ; +0xf0, 0x1002e8e50\nretn                                                                   ; +0xf1, 0x1002e8e51\nalign 20h                                                              ; +0xf2, 0x1002e8e52\ncmp     [rdi+10h], esi                                                 ; +0x100, 0x1002e8e60\njz      short loc_1002E8EA4                                            ; +0x103, 0x1002e8e63\nmov     rdi, [rdi]                                                     ; +0x105, 0x1002e8e65\ntest    rdi, rdi                                                       ; +0x108, 0x1002e8e68\njz      short loc_1002E8E4E                                            ; +0x10b, 0x1002e8e6b\nmov     rax, [rdi+8]                                                   ; +0x10d, 0x1002e8e6d\ncmp     rax, rcx                                                       ; +0x111, 0x1002e8e71\njz      short loc_1002E8E60                                            ; +0x114, 0x1002e8e74\ncmp     rax, r9                                                        ; +0x116, 0x1002e8e76\njb      short loc_1002E8E8F                                            ; +0x119, 0x1002e8e79\nmov     rdx, rax                                                       ; +0x11b, 0x1002e8e7b\nor      rdx, r9                                                        ; +0x11e, 0x1002e8e7e\nshr     rdx, 20h                                                       ; +0x121, 0x1002e8e81\njz      short loc_1002E8E96                                            ; +0x125, 0x1002e8e85\nxor     edx, edx                                                       ; +0x127, 0x1002e8e87\ndiv     r9                                                             ; +0x129, 0x1002e8e89\nmov     rax, rdx                                                       ; +0x12c, 0x1002e8e8c\ncmp     rax, r8                                                        ; +0x12f, 0x1002e8e8f\njz      short loc_1002E8E65                                            ; +0x132, 0x1002e8e92\njmp     short loc_1002E8E4E                                            ; +0x134, 0x1002e8e94\nxor     edx, edx                                                       ; +0x136, 0x1002e8e96\ndiv     r9d                                                            ; +0x138, 0x1002e8e98\nmov     eax, edx                                                       ; +0x13b, 0x1002e8e9b\ncmp     rax, r8                                                        ; +0x13d, 0x1002e8e9d\njz      short loc_1002E8E65                                            ; +0x140, 0x1002e8ea0\njmp     short loc_1002E8E4E                                            ; +0x142, 0x1002e8ea2\nmov     rax, [rdi+18h]                                                 ; +0x144, 0x1002e8ea4\ncmp     rax, [rdi+20h]                                                 ; +0x148, 0x1002e8ea8\nsetnz   al                                                             ; +0x14c, 0x1002e8eac\npop     rbp                                                            ; +0x14f, 0x1002e8eaf\nretn                                                                   ; +0x150, 0x1002e8eb0", "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"}