{"type": "func", "start": 4300952624, "end": 4300952816, "name": "GameObject::commonInteractiveSetup", "pseudocode": "// \n// GameObject::commonInteractiveSetup from 0x1005b5430 to 0x1005b54f0 (192 bytes)\n// \n// 2 xrefs:\n// > GameObject::customSetup @ 0x1005ab876\n// > EnhancedGameObject::customSetup @ 0x1005cd71f\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 __fastcall GameObject::commonInteractiveSetup(GameObject *a1)\n{\n  GJSpriteColor *m_baseColor; // rax\n  double v2[4]; // [rsp-20h] [rbp-20h] BYREF\n\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  m_baseColor = a1->m_baseColor;\n  if ( m_baseColor )\n    *(_QWORD *)&m_baseColor->m_colorID = &_mh_execute_header;\n  if ( !a1->m_editorEnabled && !a1->m_hasNoEffects && a1->m_objectID != 1614 )\n  {\n    GameObject::createAndAddParticle(a1, 30, \"keyEffect.plist\", 0, kCCPositionTypeGrouped);\n    sub_10028CBE0((float *)v2, 0.0, -5.0);\n    sub_10028CC90(&a1->m_particleOffset, v2);\n  }\n}", "assembly": "; \n; GameObject::commonInteractiveSetup from 0x1005b5430 to 0x1005b54f0 (192 bytes)\n; \n; 2 xrefs:\n; > GameObject::customSetup @ 0x1005ab876\n; > EnhancedGameObject::customSetup @ 0x1005cd71f\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     dword ptr [rdi+398h], 1Eh                                      ; +0x0, 0x1005b5430\nmov     dword ptr [rdi+418h], 9                                        ; +0xa, 0x1005b543a\nmov     byte ptr [rdi+41Dh], 1                                         ; +0x14, 0x1005b5444\nmov     byte ptr [rdi+28Ch], 1                                         ; +0x1b, 0x1005b544b\nmov     byte ptr [rdi+362h], 1                                         ; +0x22, 0x1005b5452\nmov     byte ptr [rdi+329h], 1                                         ; +0x29, 0x1005b5459\nmov     rax, [rdi+448h]                                                ; +0x30, 0x1005b5460\ntest    rax, rax                                                       ; +0x37, 0x1005b5467\njz      short loc_1005B5479                                            ; +0x3a, 0x1005b546a\nmov     rcx, offset __mh_execute_header                                ; +0x3c, 0x1005b546c\nmov     [rax], rcx                                                     ; +0x46, 0x1005b5476\ncmp     byte ptr [rdi+289h], 0                                         ; +0x49, 0x1005b5479\njnz     short locret_1005B54EF                                         ; +0x50, 0x1005b5480\ncmp     byte ptr [rdi+414h], 0                                         ; +0x52, 0x1005b5482\njnz     short locret_1005B54EF                                         ; +0x59, 0x1005b5489\ncmp     dword ptr [rdi+404h], 64Eh                                     ; +0x5b, 0x1005b548b\njz      short locret_1005B54EF                                         ; +0x65, 0x1005b5495\npush    rbp                                                            ; +0x67, 0x1005b5497\nmov     rbp, rsp                                                       ; +0x68, 0x1005b5498\npush    r14                                                            ; +0x6b, 0x1005b549b\npush    rbx                                                            ; +0x6d, 0x1005b549d\nsub     rsp, 10h                                                       ; +0x6e, 0x1005b549e\nlea     rdx, aKeyeffectPlist; \"keyEffect.plist\"                        ; +0x72, 0x1005b54a2\nmov     rbx, rdi                                                       ; +0x79, 0x1005b54a9\nmov     esi, 1Eh                                                       ; +0x7c, 0x1005b54ac\nxor     ecx, ecx                                                       ; +0x81, 0x1005b54b1\nmov     r8d, 2                                                         ; +0x83, 0x1005b54b3\ncall    GameObject__createAndAddParticle                               ; +0x89, 0x1005b54b9\nlea     r14, [rbp-18h]                                                 ; +0x8e, 0x1005b54be\nmovss   xmm1, cs:dword_100815278                                       ; +0x92, 0x1005b54c2\nxorps   xmm0, xmm0                                                     ; +0x9a, 0x1005b54ca\nmov     rdi, r14                                                       ; +0x9d, 0x1005b54cd\ncall    sub_10028CBE0                                                  ; +0xa0, 0x1005b54d0\nadd     rbx, 32Ch                                                      ; +0xa5, 0x1005b54d5\nmov     rdi, rbx                                                       ; +0xac, 0x1005b54dc\nmov     rsi, r14                                                       ; +0xaf, 0x1005b54df\ncall    sub_10028CC90                                                  ; +0xb2, 0x1005b54e2\nadd     rsp, 10h                                                       ; +0xb7, 0x1005b54e7\npop     rbx                                                            ; +0xbb, 0x1005b54eb\npop     r14                                                            ; +0xbc, 0x1005b54ec\npop     rbp                                                            ; +0xbe, 0x1005b54ee\nretn                                                                   ; +0xbf, 0x1005b54ef", "xrefs": ["GameObject::customSetup @ 0x1005ab876", "EnhancedGameObject::customSetup @ 0x1005cd71f"], "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"}