{"type": "func", "start": 5370375552, "end": 5370375737, "name": "GameObject::commonInteractiveSetup", "pseudocode": "// \n// GameObject::commonInteractiveSetup from 0x140196d80 to 0x140196e39 (185 bytes)\n// \n// 4 xrefs:\n// > GameObject::customSetup @ 0x140190fd5\n// > GameObject::customSetup @ 0x140193b0c\n// > EnhancedGameObject::customSetup @ 0x1401a5913\n// > <???> @ 0x1406cba18\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\nvoid GameObject::commonInteractiveSetup(GameObject *a1)\n{\n  GJSpriteColor *m_baseColor; // rax\n  __int64 v3; // rax\n  cocos2d::CCPoint v4; // [rsp+40h] [rbp+8h] BYREF\n\n  m_baseColor = a1->m_baseColor;\n  a1->m_objectType = Collectible;\n  a1->m_defaultZOrder = 9;\n  a1->m_colorZLayerRelated = 1;\n  a1->m_unk28c = 1;\n  a1->m_colorSpriteLocked = 1;\n  a1->m_particleUseObjectColor = 1;\n  if ( m_baseColor )\n  {\n    m_baseColor->m_defaultColorID = 1;\n    m_baseColor->m_colorID = 0;\n  }\n  if ( !a1->m_editorEnabled && !a1->m_hasNoEffects && a1->m_objectID != 1614 )\n  {\n    GameObject::createAndAddParticle(a1, a1->m_objectType, \"keyEffect.plist\", 0, kCCPositionTypeGrouped);\n    cocos2d::CCPoint::CCPoint(&v4, 0.0, -5.0);\n    cocos2d::CCPoint::operator=(&a1->m_particleOffset, v3);\n  }\n}", "assembly": "; \n; GameObject::commonInteractiveSetup from 0x140196d80 to 0x140196e39 (185 bytes)\n; \n; 4 xrefs:\n; > GameObject::customSetup @ 0x140190fd5\n; > GameObject::customSetup @ 0x140193b0c\n; > EnhancedGameObject::customSetup @ 0x1401a5913\n; > <???> @ 0x1406cba18\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    rbx                                                            ; +0x0, 0x140196d80\nsub     rsp, 30h                                                       ; +0x2, 0x140196d82\nmov     rax, [rcx+450h]                                                ; +0x6, 0x140196d86\nmov     rbx, rcx                                                       ; +0xd, 0x140196d8d\nmov     dword ptr [rcx+3A0h], 1Eh                                      ; +0x10, 0x140196d90\nmov     dword ptr [rcx+420h], 9                                        ; +0x1a, 0x140196d9a\nmov     byte ptr [rcx+425h], 1                                         ; +0x24, 0x140196da4\nmov     byte ptr [rcx+290h], 1                                         ; +0x2b, 0x140196dab\nmov     byte ptr [rcx+36Ah], 1                                         ; +0x32, 0x140196db2\nmov     byte ptr [rcx+331h], 1                                         ; +0x39, 0x140196db9\ntest    rax, rax                                                       ; +0x40, 0x140196dc0\njz      short loc_140196DD2                                            ; +0x43, 0x140196dc3\nmov     dword ptr [rax+4], 1                                           ; +0x45, 0x140196dc5\nmov     dword ptr [rax], 0                                             ; +0x4c, 0x140196dcc\ncmp     byte ptr [rcx+28Dh], 0                                         ; +0x52, 0x140196dd2\njnz     short loc_140196E33                                            ; +0x59, 0x140196dd9\ncmp     byte ptr [rcx+41Ch], 0                                         ; +0x5b, 0x140196ddb\njnz     short loc_140196E33                                            ; +0x62, 0x140196de2\ncmp     dword ptr [rcx+40Ch], 64Eh                                     ; +0x64, 0x140196de4\njz      short loc_140196E33                                            ; +0x6e, 0x140196dee\nmov     edx, [rcx+3A0h]                                                ; +0x70, 0x140196df0\nlea     r8, aKeyeffectPlist; \"keyEffect.plist\"                         ; +0x76, 0x140196df6\nxor     r9d, r9d                                                       ; +0x7d, 0x140196dfd\nmov     [rsp+38h+var_18], 2                                            ; +0x80, 0x140196e00\ncall    GameObject__createAndAddParticle                               ; +0x88, 0x140196e08\nmovss   xmm2, cs:dword_1406237C0                                       ; +0x8d, 0x140196e0d\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x95, 0x140196e15\nxorps   xmm1, xmm1                                                     ; +0x9a, 0x140196e1a\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x9d, 0x140196e1d\nmov     rdx, rax                                                       ; +0xa3, 0x140196e23\nlea     rcx, [rbx+334h]                                                ; +0xa6, 0x140196e26\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xad, 0x140196e2d\nadd     rsp, 30h                                                       ; +0xb3, 0x140196e33\npop     rbx                                                            ; +0xb7, 0x140196e37\nretn                                                                   ; +0xb8, 0x140196e38", "xrefs": ["GameObject::customSetup @ 0x140190fd5", "GameObject::customSetup @ 0x140193b0c", "EnhancedGameObject::customSetup @ 0x1401a5913", "<???> @ 0x1406cba18"], "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"}