{"type": "func", "start": 4297430720, "end": 4297430896, "name": "GameObject::commonInteractiveSetup", "pseudocode": "// \n// GameObject::commonInteractiveSetup from 0x1002596c0 to 0x100259770 (176 bytes)\n// \n// 3 xrefs:\n// > GameObject::customSetup @ 0x100256820\n// > GameObject::customSetup @ 0x100256fcc\n// > EnhancedGameObject::customSetup @ 0x1002645c4\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; // x8\n  __n128 v3; // q0\n  __n128 v4; // q1\n  double v5; // [xsp+8h] [xbp-18h] 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    v3.n128_u32[0] = 0;\n    v4.n128_u32[0] = -5.0;\n    sub_100022980(v3, v4, &v5);\n    sub_1000229D0(&a1->m_particleOffset, &v5);\n  }\n}", "assembly": "; \n; GameObject::commonInteractiveSetup from 0x1002596c0 to 0x100259770 (176 bytes)\n; \n; 3 xrefs:\n; > GameObject::customSetup @ 0x100256820\n; > GameObject::customSetup @ 0x100256fcc\n; > EnhancedGameObject::customSetup @ 0x1002645c4\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1002596c0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002596c4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002596c8\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002596cc\nMOV             X19, X0                                                ; +0x10, 0x1002596d0\nMOV             W8, #0x1E                                              ; +0x14, 0x1002596d4\nSTR             W8, [X0,#0x398]                                        ; +0x18, 0x1002596d8\nMOV             W8, #9                                                 ; +0x1c, 0x1002596dc\nSTR             W8, [X0,#0x418]                                        ; +0x20, 0x1002596e0\nMOV             W8, #1                                                 ; +0x24, 0x1002596e4\nSTRB            W8, [X0,#0x41D]                                        ; +0x28, 0x1002596e8\nSTRB            W8, [X0,#0x28C]                                        ; +0x2c, 0x1002596ec\nSTRB            W8, [X0,#0x362]                                        ; +0x30, 0x1002596f0\nSTRB            W8, [X0,#0x329]                                        ; +0x34, 0x1002596f4\nLDR             X8, [X0,#0x448]                                        ; +0x38, 0x1002596f8\nCBZ             X8, loc_10025970C                                      ; +0x3c, 0x1002596fc\nADRP            X9, #qword_100642750@PAGE                              ; +0x40, 0x100259700\nLDR             D0, [X9,#qword_100642750@PAGEOFF]                      ; +0x44, 0x100259704\nSTR             D0, [X8]                                               ; +0x48, 0x100259708\nLDRB            W8, [X19,#0x289]                                       ; +0x4c, 0x10025970c\nTBNZ            W8, #0, loc_100259760                                  ; +0x50, 0x100259710\nLDRB            W8, [X19,#0x414]                                       ; +0x54, 0x100259714\nTBNZ            W8, #0, loc_100259760                                  ; +0x58, 0x100259718\nLDR             W8, [X19,#0x404]                                       ; +0x5c, 0x10025971c\nCMP             W8, #0x64E                                             ; +0x60, 0x100259720\nB.EQ            loc_100259760                                          ; +0x64, 0x100259724\nADRL            X2, aKeyeffectPlist; \"keyEffect.plist\"                 ; +0x68, 0x100259728\nMOV             X0, X19                                                ; +0x70, 0x100259730\nMOV             W1, #0x1E                                              ; +0x74, 0x100259734\nMOV             W3, #0                                                 ; +0x78, 0x100259738\nMOV             W4, #2                                                 ; +0x7c, 0x10025973c\nBL              GameObject__createAndAddParticle                       ; +0x80, 0x100259740\nADD             X0, SP, #0x20+var_18                                   ; +0x84, 0x100259744\nFMOV            S0, WZR                                                ; +0x88, 0x100259748\nFMOV            S1, #-5.0                                              ; +0x8c, 0x10025974c\nBL              sub_100022980                                          ; +0x90, 0x100259750\nADD             X0, X19, #0x32C                                        ; +0x94, 0x100259754\nADD             X1, SP, #0x20+var_18                                   ; +0x98, 0x100259758\nBL              sub_1000229D0                                          ; +0x9c, 0x10025975c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa0, 0x100259760\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa4, 0x100259764\nADD             SP, SP, #0x30 ; '0'                                    ; +0xa8, 0x100259768\nRET                                                                    ; +0xac, 0x10025976c", "xrefs": ["GameObject::customSetup @ 0x100256820", "GameObject::customSetup @ 0x100256fcc", "EnhancedGameObject::customSetup @ 0x1002645c4"], "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"}