{"type": "func", "start": 4300883840, "end": 4300883997, "name": "GameObject::createGlow", "pseudocode": "// \n// GameObject::createGlow from 0x1005a4780 to 0x1005a481d (157 bytes)\n// \n// 0 xrefs:\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, __int64 a2)\n{\n  cocos2d::CCObject *v3; // rdi\n  const char *v4; // r14\n  cocos2d::CCSprite *v5; // rax\n  __int64 v6; // r14\n  __int64 v7; // rax\n\n  v3 = (cocos2d::CCObject *)a1[94];\n  if ( v3 )\n  {\n    cocos2d::CCObject::release(v3);\n    (*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[94] + 520LL))(a1[94]);\n    a1[94] = 0;\n  }\n  if ( (*(_BYTE *)a2 & 1) != 0 )\n    v4 = *(const char **)(a2 + 16);\n  else\n    v4 = (const char *)(a2 + 1);\n  v5 = cocos2d::CCSprite::createWithSpriteFrameName(v4);\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 0x1005a4780 to 0x1005a481d (157 bytes)\n; \n; 0 xrefs:\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, 0x1005a4780\nmov     rbp, rsp                                                       ; +0x1, 0x1005a4781\npush    r14                                                            ; +0x4, 0x1005a4784\npush    rbx                                                            ; +0x6, 0x1005a4786\nmov     r14, rsi                                                       ; +0x7, 0x1005a4787\nmov     rbx, rdi                                                       ; +0xa, 0x1005a478a\nmov     rdi, [rdi+2F0h]                                                ; +0xd, 0x1005a478d\ntest    rdi, rdi                                                       ; +0x14, 0x1005a4794\njz      short loc_1005A47B9                                            ; +0x17, 0x1005a4797\ncall    cocos2d__CCObject__release                                     ; +0x19, 0x1005a4799\nmov     rdi, [rbx+2F0h]                                                ; +0x1e, 0x1005a479e\nmov     rax, [rdi]                                                     ; +0x25, 0x1005a47a5\ncall    qword ptr [rax+208h]                                           ; +0x28, 0x1005a47a8\nmov     qword ptr [rbx+2F0h], 0                                        ; +0x2e, 0x1005a47ae\ntest    byte ptr [r14], 1                                              ; +0x39, 0x1005a47b9\njnz     short loc_1005A47C4                                            ; +0x3d, 0x1005a47bd\ninc     r14                                                            ; +0x3f, 0x1005a47bf\njmp     short loc_1005A47C8                                            ; +0x42, 0x1005a47c2\nmov     r14, [r14+10h]                                                 ; +0x44, 0x1005a47c4\nmov     rdi, r14                                                       ; +0x48, 0x1005a47c8\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x4b, 0x1005a47cb\nmov     [rbx+2F0h], rax                                                ; +0x50, 0x1005a47d0\nmov     rdi, rax                                                       ; +0x57, 0x1005a47d7\ncall    cocos2d__CCObject__retain                                      ; +0x5a, 0x1005a47da\nmov     r14, [rbx+2F0h]                                                ; +0x5f, 0x1005a47df\nmov     rax, [rbx]                                                     ; +0x66, 0x1005a47e6\nmov     rdi, rbx                                                       ; +0x69, 0x1005a47e9\ncall    qword ptr [rax+0C0h]                                           ; +0x6c, 0x1005a47ec\nmov     rcx, [r14]                                                     ; +0x72, 0x1005a47f2\nmov     rdi, r14                                                       ; +0x75, 0x1005a47f5\nmov     rsi, rax                                                       ; +0x78, 0x1005a47f8\ncall    qword ptr [rcx+0B8h]                                           ; +0x7b, 0x1005a47fb\nmov     rdi, [rbx+2F0h]                                                ; +0x81, 0x1005a4801\nmov     rax, [rdi]                                                     ; +0x88, 0x1005a4808\nmov     rax, [rax+380h]                                                ; +0x8b, 0x1005a480b\nmov     esi, 0FFh                                                      ; +0x92, 0x1005a4812\npop     rbx                                                            ; +0x97, 0x1005a4817\npop     r14                                                            ; +0x98, 0x1005a4818\npop     rbp                                                            ; +0x9a, 0x1005a481a\njmp     rax                                                            ; +0x9b, 0x1005a481b", "xrefs": [], "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"}