// // EffectGameObject::hasSpawnTargetID from 0x1001bb460 to 0x1001bb5a2 (322 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool __fastcall EffectGameObject::hasSpawnTargetID(EffectGameObject *a1, int a2) { int m_objectID; // eax unsigned __int64 v3; // rax __int64 v4; // rcx EffectGameObject_vtbl *v5; // rdx EffectGameObject_vtbl *v6; // rcx void (__cdecl **v7)(EffectGameObject *__hidden); // rdx bool result; // al bool v9; // zf if ( a2 <= 0 ) return 0; m_objectID = a1->m_objectID; if ( m_objectID <= 1911 ) { if ( m_objectID <= 1593 ) { if ( m_objectID == 142 || m_objectID == 1268 || m_objectID == 1329 ) return a1->m_targetGroupID == a2; } else { if ( m_objectID > 1810 ) { if ( m_objectID == 1811 ) goto LABEL_29; if ( m_objectID != 1815 ) goto LABEL_28; return a1->m_targetGroupID == a2; } if ( (unsigned int)(m_objectID - 1594) < 2 ) return a1->m_targetGroupID == a2; if ( m_objectID == 1611 ) goto LABEL_29; } LABEL_28: if ( a1->m_objectType == Collectible ) { LABEL_29: if ( a1->m_activateGroup ) return a1->m_targetGroupID == a2; } return 0; } if ( m_objectID > 3603 ) { v3 = (unsigned int)(m_objectID - 3604); if ( (unsigned int)v3 > 0x27 ) goto LABEL_28; v4 = 0x9000000021LL; if ( !_bittest64(&v4, v3) ) { if ( v3 != 3 ) { if ( v3 != 16 ) goto LABEL_28; goto LABEL_33; } goto LABEL_17; } return a1->m_targetGroupID == a2; } if ( m_objectID == 1912 ) { LABEL_33: result = 1; if ( a1->m_targetGroupID != a2 ) return a1->m_centerGroupID == a2; return result; } if ( m_objectID == 2063 ) { result = 1; if ( a1->m_targetGroupID != a2 ) return LODWORD(a1[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) == a2; return result; } if ( m_objectID != 2068 ) goto LABEL_28; LABEL_17: v5 = a1[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v6 = *(EffectGameObject_vtbl **)&a1[1].m_uID; if ( v5 == v6 ) return 0; v7 = &v5->~EffectGameObject_0; do { result = *((_DWORD *)v7 - 4) == a2; if ( *((_DWORD *)v7 - 4) == a2 ) break; v9 = v7 == (void (__cdecl **)(EffectGameObject *__hidden))v6; v7 += 2; } while ( !v9 ); return result; }