{"type": "func", "start": 4300884000, "end": 4300884216, "name": "GameObject::addEmptyGlow", "pseudocode": "// \n// GameObject::addEmptyGlow from 0x1005a4820 to 0x1005a48f8 (216 bytes)\n// \n// 2 xrefs:\n// > GameObject::setupCustomSprites @ 0x1004468ae\n// > GameObject::setupCustomSprites @ 0x100446bec\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::addEmptyGlow(GameObject *a1)\n{\n  cocos2d::CCSprite *m_glowSprite; // rdi\n  cocos2d::CCSprite *v3; // rax\n  cocos2d::CCSprite *v4; // r14\n  __int64 v5; // rax\n  cocos2d::CCSprite *v6; // rax\n  char v7[15]; // [rsp+9h] [rbp-27h] BYREF\n\n  strcpy(v7, \"emptyGlow.png\");\n  m_glowSprite = a1->m_glowSprite;\n  if ( m_glowSprite )\n  {\n    cocos2d::CCObject::release(m_glowSprite);\n    ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_glowSprite->removeMeAndCleanup)(a1->m_glowSprite);\n    a1->m_glowSprite = nullptr;\n  }\n  v3 = cocos2d::CCSprite::createWithSpriteFrameName(v7);\n  a1->m_glowSprite = v3;\n  cocos2d::CCObject::retain(v3);\n  v4 = a1->m_glowSprite;\n  v5 = ((__int64 (__fastcall *)(GameObject *))a1->getPosition)(a1);\n  ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v4->setPosition)(v4, v5);\n  ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_glowSprite->setOpacity)(a1->m_glowSprite, 255);\n  v6 = a1->m_glowSprite;\n  if ( v6 )\n    v6->m_bDontDraw = 1;\n}", "assembly": "; \n; GameObject::addEmptyGlow from 0x1005a4820 to 0x1005a48f8 (216 bytes)\n; \n; 2 xrefs:\n; > GameObject::setupCustomSprites @ 0x1004468ae\n; > GameObject::setupCustomSprites @ 0x100446bec\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    rbp                                                            ; +0x0, 0x1005a4820\nmov     rbp, rsp                                                       ; +0x1, 0x1005a4821\npush    r14                                                            ; +0x4, 0x1005a4824\npush    rbx                                                            ; +0x6, 0x1005a4826\nsub     rsp, 20h                                                       ; +0x7, 0x1005a4827\nmov     rbx, rdi                                                       ; +0xb, 0x1005a482b\nmov     [rbp+var_28], 1Ah                                              ; +0xe, 0x1005a482e\nmov     rax, 6F6C477974706D65h                                         ; +0x12, 0x1005a4832\nmov     qword ptr [rbp+var_27], rax                                    ; +0x1c, 0x1005a483c\nmov     rax, 676E702E776F6C47h                                         ; +0x20, 0x1005a4840\nmov     qword ptr [rbp+var_27+5], rax                                  ; +0x2a, 0x1005a484a\nmov     [rbp+var_27+0Dh], 0                                            ; +0x2e, 0x1005a484e\nmov     rdi, [rdi+2F0h]                                                ; +0x32, 0x1005a4852\ntest    rdi, rdi                                                       ; +0x39, 0x1005a4859\njz      short loc_1005A487E                                            ; +0x3c, 0x1005a485c\ncall    cocos2d__CCObject__release                                     ; +0x3e, 0x1005a485e\nmov     rdi, [rbx+2F0h]                                                ; +0x43, 0x1005a4863\nmov     rax, [rdi]                                                     ; +0x4a, 0x1005a486a\ncall    qword ptr [rax+208h]                                           ; +0x4d, 0x1005a486d\nmov     qword ptr [rbx+2F0h], 0                                        ; +0x53, 0x1005a4873\nlea     rdi, [rbp+var_27]                                              ; +0x5e, 0x1005a487e\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x62, 0x1005a4882\nmov     [rbx+2F0h], rax                                                ; +0x67, 0x1005a4887\nmov     rdi, rax                                                       ; +0x6e, 0x1005a488e\ncall    cocos2d__CCObject__retain                                      ; +0x71, 0x1005a4891\nmov     r14, [rbx+2F0h]                                                ; +0x76, 0x1005a4896\nmov     rax, [rbx]                                                     ; +0x7d, 0x1005a489d\nmov     rdi, rbx                                                       ; +0x80, 0x1005a48a0\ncall    qword ptr [rax+0C0h]                                           ; +0x83, 0x1005a48a3\nmov     rcx, [r14]                                                     ; +0x89, 0x1005a48a9\nmov     rdi, r14                                                       ; +0x8c, 0x1005a48ac\nmov     rsi, rax                                                       ; +0x8f, 0x1005a48af\ncall    qword ptr [rcx+0B8h]                                           ; +0x92, 0x1005a48b2\nmov     rdi, [rbx+2F0h]                                                ; +0x98, 0x1005a48b8\nmov     rax, [rdi]                                                     ; +0x9f, 0x1005a48bf\nmov     esi, 0FFh                                                      ; +0xa2, 0x1005a48c2\ncall    qword ptr [rax+380h]                                           ; +0xa7, 0x1005a48c7\ntest    [rbp+var_28], 1                                                ; +0xad, 0x1005a48cd\njz      short loc_1005A48DC                                            ; +0xb1, 0x1005a48d1\nmov     rdi, [rbp+__p]; __p                                            ; +0xb3, 0x1005a48d3\ncall    __ZdlPv; operator delete(void *)                               ; +0xb7, 0x1005a48d7\nmov     rax, [rbx+2F0h]                                                ; +0xbc, 0x1005a48dc\ntest    rax, rax                                                       ; +0xc3, 0x1005a48e3\njz      short loc_1005A48EF                                            ; +0xc6, 0x1005a48e6\nmov     byte ptr [rax+22Fh], 1                                         ; +0xc8, 0x1005a48e8\nadd     rsp, 20h                                                       ; +0xcf, 0x1005a48ef\npop     rbx                                                            ; +0xd3, 0x1005a48f3\npop     r14                                                            ; +0xd4, 0x1005a48f4\npop     rbp                                                            ; +0xd6, 0x1005a48f6\nretn                                                                   ; +0xd7, 0x1005a48f7", "xrefs": ["GameObject::setupCustomSprites @ 0x1004468ae", "GameObject::setupCustomSprites @ 0x100446bec"], "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"}