{"type": "func", "start": 4297413344, "end": 4297413492, "name": "GameObject::createGlow", "pseudocode": "// \n// GameObject::createGlow from 0x1002552e0 to 0x100255374 (148 bytes)\n// \n// 2 xrefs:\n// > GameObject::addGlow @ 0x100255040\n// > GameObject::addEmptyGlow @ 0x1002553a0\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\n__int64 __fastcall GameObject::createGlow(_QWORD *a1, const char *a2)\n{\n  cocos2d::CCObject *v4; // x0\n  cocos2d::CCSprite *v5; // x0\n  __int64 v6; // x20\n  __int64 v7; // x0\n\n  v4 = (cocos2d::CCObject *)a1[94];\n  if ( v4 )\n  {\n    cocos2d::CCObject::release(v4);\n    (*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[94] + 520LL))(a1[94]);\n    a1[94] = 0;\n  }\n  if ( a2[23] < 0 )\n    a2 = *(const char **)a2;\n  v5 = cocos2d::CCSprite::createWithSpriteFrameName(a2);\n  a1[94] = v5;\n  cocos2d::CCObject::retain(v5);\n  v6 = a1[94];\n  v7 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 192LL))(a1);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 184LL))(v6, v7);\n  return (*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[94] + 896LL))(a1[94], 255);\n}", "assembly": "; \n; GameObject::createGlow from 0x1002552e0 to 0x100255374 (148 bytes)\n; \n; 2 xrefs:\n; > GameObject::addGlow @ 0x100255040\n; > GameObject::addEmptyGlow @ 0x1002553a0\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002552e0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002552e4\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002552e8\nMOV             X20, X1                                                ; +0xc, 0x1002552ec\nMOV             X19, X0                                                ; +0x10, 0x1002552f0\nLDR             X0, [X0,#0x2F0]                                        ; +0x14, 0x1002552f4\nCBZ             X0, loc_100255314                                      ; +0x18, 0x1002552f8\nBL              cocos2d__CCObject__release                             ; +0x1c, 0x1002552fc\nLDR             X0, [X19,#0x2F0]                                       ; +0x20, 0x100255300\nLDR             X8, [X0]                                               ; +0x24, 0x100255304\nLDR             X8, [X8,#0x208]                                        ; +0x28, 0x100255308\nBLR             X8                                                     ; +0x2c, 0x10025530c\nSTR             XZR, [X19,#0x2F0]                                      ; +0x30, 0x100255310\nLDRSB           W8, [X20,#0x17]                                        ; +0x34, 0x100255314\nTBZ             W8, #0x1F, loc_100255320                               ; +0x38, 0x100255318\nLDR             X20, [X20]                                             ; +0x3c, 0x10025531c\nMOV             X0, X20                                                ; +0x40, 0x100255320\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0x44, 0x100255324\nSTR             X0, [X19,#0x2F0]                                       ; +0x48, 0x100255328\nBL              cocos2d__CCObject__retain                              ; +0x4c, 0x10025532c\nLDR             X20, [X19,#0x2F0]                                      ; +0x50, 0x100255330\nLDR             X8, [X19]                                              ; +0x54, 0x100255334\nLDR             X8, [X8,#0xC0]                                         ; +0x58, 0x100255338\nMOV             X0, X19                                                ; +0x5c, 0x10025533c\nBLR             X8                                                     ; +0x60, 0x100255340\nMOV             X1, X0                                                 ; +0x64, 0x100255344\nLDR             X8, [X20]                                              ; +0x68, 0x100255348\nLDR             X8, [X8,#0xB8]                                         ; +0x6c, 0x10025534c\nMOV             X0, X20                                                ; +0x70, 0x100255350\nBLR             X8                                                     ; +0x74, 0x100255354\nLDR             X0, [X19,#0x2F0]                                       ; +0x78, 0x100255358\nLDR             X8, [X0]                                               ; +0x7c, 0x10025535c\nLDR             X2, [X8,#0x380]                                        ; +0x80, 0x100255360\nMOV             W1, #0xFF                                              ; +0x84, 0x100255364\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x88, 0x100255368\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x8c, 0x10025536c\nBR              X2                                                     ; +0x90, 0x100255370", "xrefs": ["GameObject::addGlow @ 0x100255040", "GameObject::addEmptyGlow @ 0x1002553a0"], "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"}