{"type": "func", "start": 4296782944, "end": 4296783266, "name": "EffectGameObject::hasSpawnTargetID", "pseudocode": "// \n// EffectGameObject::hasSpawnTargetID from 0x1001bb460 to 0x1001bb5a2 (322 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 EffectGameObject::hasSpawnTargetID(EffectGameObject *a1, int a2)\n{\n  int m_objectID; // eax\n  unsigned __int64 v3; // rax\n  __int64 v4; // rcx\n  EffectGameObject_vtbl *v5; // rdx\n  EffectGameObject_vtbl *v6; // rcx\n  void (__cdecl **v7)(EffectGameObject *__hidden); // rdx\n  bool result; // al\n  bool v9; // zf\n\n  if ( a2 <= 0 )\n    return 0;\n  m_objectID = a1->m_objectID;\n  if ( m_objectID <= 1911 )\n  {\n    if ( m_objectID <= 1593 )\n    {\n      if ( m_objectID == 142 || m_objectID == 1268 || m_objectID == 1329 )\n        return a1->m_targetGroupID == a2;\n    }\n    else\n    {\n      if ( m_objectID > 1810 )\n      {\n        if ( m_objectID == 1811 )\n          goto LABEL_29;\n        if ( m_objectID != 1815 )\n          goto LABEL_28;\n        return a1->m_targetGroupID == a2;\n      }\n      if ( (unsigned int)(m_objectID - 1594) < 2 )\n        return a1->m_targetGroupID == a2;\n      if ( m_objectID == 1611 )\n        goto LABEL_29;\n    }\nLABEL_28:\n    if ( a1->m_objectType == Collectible )\n    {\nLABEL_29:\n      if ( a1->m_activateGroup )\n        return a1->m_targetGroupID == a2;\n    }\n    return 0;\n  }\n  if ( m_objectID > 3603 )\n  {\n    v3 = (unsigned int)(m_objectID - 3604);\n    if ( (unsigned int)v3 > 0x27 )\n      goto LABEL_28;\n    v4 = 0x9000000021LL;\n    if ( !_bittest64(&v4, v3) )\n    {\n      if ( v3 != 3 )\n      {\n        if ( v3 != 16 )\n          goto LABEL_28;\n        goto LABEL_33;\n      }\n      goto LABEL_17;\n    }\n    return a1->m_targetGroupID == a2;\n  }\n  if ( m_objectID == 1912 )\n  {\nLABEL_33:\n    result = 1;\n    if ( a1->m_targetGroupID != a2 )\n      return a1->m_centerGroupID == a2;\n    return result;\n  }\n  if ( m_objectID == 2063 )\n  {\n    result = 1;\n    if ( a1->m_targetGroupID != a2 )\n      return LODWORD(a1[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) == a2;\n    return result;\n  }\n  if ( m_objectID != 2068 )\n    goto LABEL_28;\nLABEL_17:\n  v5 = a1[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v6 = *(EffectGameObject_vtbl **)&a1[1].m_uID;\n  if ( v5 == v6 )\n    return 0;\n  v7 = &v5->~EffectGameObject_0;\n  do\n  {\n    result = *((_DWORD *)v7 - 4) == a2;\n    if ( *((_DWORD *)v7 - 4) == a2 )\n      break;\n    v9 = v7 == (void (__cdecl **)(EffectGameObject *__hidden))v6;\n    v7 += 2;\n  }\n  while ( !v9 );\n  return result;\n}", "assembly": "; \n; EffectGameObject::hasSpawnTargetID from 0x1001bb460 to 0x1001bb5a2 (322 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\ntest    esi, esi                                                       ; +0x0, 0x1001bb460\njle     loc_1001BB577                                                  ; +0x2, 0x1001bb462\nmov     eax, [rdi+404h]                                                ; +0x8, 0x1001bb468\ncmp     eax, 777h                                                      ; +0xe, 0x1001bb46e\njle     short loc_1001BB4B3                                            ; +0x13, 0x1001bb473\ncmp     eax, 0E13h                                                     ; +0x15, 0x1001bb475\njle     short loc_1001BB4E1                                            ; +0x1a, 0x1001bb47a\nadd     eax, 0FFFFF1ECh                                                ; +0x1c, 0x1001bb47c\ncmp     eax, 27h ; '''                                                 ; +0x21, 0x1001bb481\nja      loc_1001BB55B                                                  ; +0x24, 0x1001bb484\nmov     rcx, 9000000021h                                               ; +0x2a, 0x1001bb48a\nbt      rcx, rax                                                       ; +0x34, 0x1001bb494\njb      loc_1001BB56D                                                  ; +0x38, 0x1001bb498\ncmp     rax, 3                                                         ; +0x3e, 0x1001bb49e\njz      short loc_1001BB4FE                                            ; +0x42, 0x1001bb4a2\ncmp     rax, 10h                                                       ; +0x44, 0x1001bb4a4\njz      loc_1001BB57A                                                  ; +0x48, 0x1001bb4a8\njmp     loc_1001BB55B                                                  ; +0x4e, 0x1001bb4ae\ncmp     eax, 639h                                                      ; +0x53, 0x1001bb4b3\njle     short loc_1001BB536                                            ; +0x58, 0x1001bb4b8\ncmp     eax, 712h                                                      ; +0x5a, 0x1001bb4ba\njg      loc_1001BB54D                                                  ; +0x5f, 0x1001bb4bf\nlea     ecx, [rax-63Ah]                                                ; +0x65, 0x1001bb4c5\ncmp     ecx, 2                                                         ; +0x6b, 0x1001bb4cb\njb      loc_1001BB56D                                                  ; +0x6e, 0x1001bb4ce\ncmp     eax, 64Bh                                                      ; +0x74, 0x1001bb4d4\njz      loc_1001BB564                                                  ; +0x79, 0x1001bb4d9\njmp     short loc_1001BB55B                                            ; +0x7f, 0x1001bb4df\ncmp     eax, 778h                                                      ; +0x81, 0x1001bb4e1\njz      loc_1001BB57A                                                  ; +0x86, 0x1001bb4e6\ncmp     eax, 80Fh                                                      ; +0x8c, 0x1001bb4ec\njz      loc_1001BB58E                                                  ; +0x91, 0x1001bb4f1\ncmp     eax, 814h                                                      ; +0x97, 0x1001bb4f7\njnz     short loc_1001BB55B                                            ; +0x9c, 0x1001bb4fc\nmov     rdx, [rdi+730h]                                                ; +0x9e, 0x1001bb4fe\nmov     rcx, [rdi+738h]                                                ; +0xa5, 0x1001bb505\ncmp     rdx, rcx                                                       ; +0xac, 0x1001bb50c\njz      short loc_1001BB577                                            ; +0xaf, 0x1001bb50f\npush    rbp                                                            ; +0xb1, 0x1001bb511\nmov     rbp, rsp                                                       ; +0xb2, 0x1001bb512\nadd     rdx, 10h                                                       ; +0xb5, 0x1001bb515\nnop     dword ptr [rax+00000000h]                                      ; +0xb9, 0x1001bb519\ncmp     [rdx-10h], esi                                                 ; +0xc0, 0x1001bb520\nsetz    al                                                             ; +0xc3, 0x1001bb523\njz      short loc_1001BB534                                            ; +0xc6, 0x1001bb526\nlea     rdi, [rdx+10h]                                                 ; +0xc8, 0x1001bb528\ncmp     rdx, rcx                                                       ; +0xcc, 0x1001bb52c\nmov     rdx, rdi                                                       ; +0xcf, 0x1001bb52f\njnz     short loc_1001BB520                                            ; +0xd2, 0x1001bb532\npop     rbp                                                            ; +0xd4, 0x1001bb534\nretn                                                                   ; +0xd5, 0x1001bb535\ncmp     eax, 8Eh                                                       ; +0xd6, 0x1001bb536\njz      short loc_1001BB56D                                            ; +0xdb, 0x1001bb53b\ncmp     eax, 4F4h                                                      ; +0xdd, 0x1001bb53d\njz      short loc_1001BB56D                                            ; +0xe2, 0x1001bb542\ncmp     eax, 531h                                                      ; +0xe4, 0x1001bb544\njz      short loc_1001BB56D                                            ; +0xe9, 0x1001bb549\njmp     short loc_1001BB55B                                            ; +0xeb, 0x1001bb54b\ncmp     eax, 713h                                                      ; +0xed, 0x1001bb54d\njz      short loc_1001BB564                                            ; +0xf2, 0x1001bb552\ncmp     eax, 717h                                                      ; +0xf4, 0x1001bb554\njz      short loc_1001BB56D                                            ; +0xf9, 0x1001bb559\ncmp     dword ptr [rdi+398h], 1Eh                                      ; +0xfb, 0x1001bb55b\njnz     short loc_1001BB577                                            ; +0x102, 0x1001bb562\ncmp     byte ptr [rdi+665h], 1                                         ; +0x104, 0x1001bb564\njnz     short loc_1001BB577                                            ; +0x10b, 0x1001bb56b\ncmp     [rdi+5B8h], esi                                                ; +0x10d, 0x1001bb56d\nsetz    al                                                             ; +0x113, 0x1001bb573\nretn                                                                   ; +0x116, 0x1001bb576\nxor     eax, eax                                                       ; +0x117, 0x1001bb577\nretn                                                                   ; +0x119, 0x1001bb579\nmov     al, 1                                                          ; +0x11a, 0x1001bb57a\ncmp     [rdi+5B8h], esi                                                ; +0x11c, 0x1001bb57c\njz      short locret_1001BB579                                         ; +0x122, 0x1001bb582\ncmp     [rdi+5BCh], esi                                                ; +0x124, 0x1001bb584\nsetz    al                                                             ; +0x12a, 0x1001bb58a\nretn                                                                   ; +0x12d, 0x1001bb58d\nmov     al, 1                                                          ; +0x12e, 0x1001bb58e\ncmp     [rdi+5B8h], esi                                                ; +0x130, 0x1001bb590\njz      short locret_1001BB579                                         ; +0x136, 0x1001bb596\ncmp     [rdi+730h], esi                                                ; +0x138, 0x1001bb598\nsetz    al                                                             ; +0x13e, 0x1001bb59e\nretn                                                                   ; +0x141, 0x1001bb5a1", "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"}