{"type": "func", "start": 5370377600, "end": 5370377806, "name": "GameObject::addInternalGlowChild", "pseudocode": "// \n// GameObject::addInternalGlowChild from 0x140197580 to 0x14019764e (206 bytes)\n// \n// 31 xrefs:\n// > GameObject::setupCustomSprites @ 0x1401af33e\n// > GameObject::setupCustomSprites @ 0x1401af51e\n// > GameObject::setupCustomSprites @ 0x1401af583\n// > GameObject::setupCustomSprites @ 0x1401af5e8\n// > GameObject::setupCustomSprites @ 0x1401af766\n// > GameObject::setupCustomSprites @ 0x1401af8e9\n// > GameObject::setupCustomSprites @ 0x1401af94e\n// > GameObject::setupCustomSprites @ 0x1401afa73\n// > GameObject::setupCustomSprites @ 0x1401afc1e\n// > GameObject::setupCustomSprites @ 0x1401afec3\n// > GameObject::setupCustomSprites @ 0x1401affdd\n// > GameObject::setupCustomSprites @ 0x1401b0b38\n// > GameObject::setupCustomSprites @ 0x1401b0eb5\n// > GameObject::setupCustomSprites @ 0x1401b246b\n// > GameObject::setupCustomSprites @ 0x1401b354a\n// > GameObject::setupCustomSprites @ 0x1401b4955\n// > GameObject::setupCustomSprites @ 0x1401b4f7c\n// > GameObject::setupCustomSprites @ 0x1401b50e4\n// > GameObject::setupCustomSprites @ 0x1401b5154\n// > GameObject::setupCustomSprites @ 0x1401b52e9\n// > GameObject::setupCustomSprites @ 0x1401b534e\n// > GameObject::setupCustomSprites @ 0x1401b53b3\n// > GameObject::setupCustomSprites @ 0x1401b547f\n// > GameObject::setupCustomSprites @ 0x1401b5600\n// > GameObject::setupCustomSprites @ 0x1401b5661\n// > GameObject::setupCustomSprites @ 0x1401b56c2\n// > GameObject::setupCustomSprites @ 0x1401b9a59\n// > GameObject::setupCustomSprites @ 0x1401b9a9d\n// > GameObject::setupCustomSprites @ 0x1401bbc20\n// > GameObject::setupCustomSprites @ 0x1401bc988\n// > <???> @ 0x1406cba48\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// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCSprite *__fastcall GameObject::addInternalGlowChild(__int64 a1, const char *a2)\n{\n  cocos2d::CCNode *v4; // rcx\n  const char *v6; // rcx\n  struct cocos2d::CCSprite *v7; // rbx\n  struct cocos2d::CCPoint v8; // [rsp+20h] [rbp-38h] BYREF\n  cocos2d::CCPoint v9; // [rsp+28h] [rbp-30h] BYREF\n  const char *v10; // [rsp+30h] [rbp-28h]\n\n  v10 = a2;\n  v4 = *(cocos2d::CCNode **)(a1 + 752);\n  if ( v4 )\n  {\n    cocos2d::CCNode::convertToNodeSpace(v4, &v8);\n    v6 = a2;\n    if ( *((_QWORD *)a2 + 3) > 0xFu )\n      v6 = *(const char **)a2;\n    v7 = cocos2d::CCSprite::createWithSpriteFrameName(v6);\n    cocos2d::CCPoint::operator+(&v8, &v9);\n    v7->setPosition_0(v7, &v9);\n    (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 752) + 440LL))(\n      *(_QWORD *)(a1 + 752),\n      v7,\n      0xFFFFFFFFLL);\n    sub_14003A830((__int64)a2);\n    return v7;\n  }\n  else\n  {\n    sub_14003A830((__int64)a2);\n    return nullptr;\n  }\n}", "assembly": "; \n; GameObject::addInternalGlowChild from 0x140197580 to 0x14019764e (206 bytes)\n; \n; 31 xrefs:\n; > GameObject::setupCustomSprites @ 0x1401af33e\n; > GameObject::setupCustomSprites @ 0x1401af51e\n; > GameObject::setupCustomSprites @ 0x1401af583\n; > GameObject::setupCustomSprites @ 0x1401af5e8\n; > GameObject::setupCustomSprites @ 0x1401af766\n; > GameObject::setupCustomSprites @ 0x1401af8e9\n; > GameObject::setupCustomSprites @ 0x1401af94e\n; > GameObject::setupCustomSprites @ 0x1401afa73\n; > GameObject::setupCustomSprites @ 0x1401afc1e\n; > GameObject::setupCustomSprites @ 0x1401afec3\n; > GameObject::setupCustomSprites @ 0x1401affdd\n; > GameObject::setupCustomSprites @ 0x1401b0b38\n; > GameObject::setupCustomSprites @ 0x1401b0eb5\n; > GameObject::setupCustomSprites @ 0x1401b246b\n; > GameObject::setupCustomSprites @ 0x1401b354a\n; > GameObject::setupCustomSprites @ 0x1401b4955\n; > GameObject::setupCustomSprites @ 0x1401b4f7c\n; > GameObject::setupCustomSprites @ 0x1401b50e4\n; > GameObject::setupCustomSprites @ 0x1401b5154\n; > GameObject::setupCustomSprites @ 0x1401b52e9\n; > GameObject::setupCustomSprites @ 0x1401b534e\n; > GameObject::setupCustomSprites @ 0x1401b53b3\n; > GameObject::setupCustomSprites @ 0x1401b547f\n; > GameObject::setupCustomSprites @ 0x1401b5600\n; > GameObject::setupCustomSprites @ 0x1401b5661\n; > GameObject::setupCustomSprites @ 0x1401b56c2\n; > GameObject::setupCustomSprites @ 0x1401b9a59\n; > GameObject::setupCustomSprites @ 0x1401b9a9d\n; > GameObject::setupCustomSprites @ 0x1401bbc20\n; > GameObject::setupCustomSprites @ 0x1401bc988\n; > <???> @ 0x1406cba48\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     [rsp+arg_18], rbx                                              ; +0x0, 0x140197580\npush    rbp                                                            ; +0x5, 0x140197585\npush    rsi                                                            ; +0x6, 0x140197586\npush    rdi                                                            ; +0x7, 0x140197587\nsub     rsp, 40h                                                       ; +0x8, 0x140197588\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x14019758c\nxor     rax, rsp                                                       ; +0x13, 0x140197593\nmov     [rsp+58h+var_20], rax                                          ; +0x16, 0x140197596\nmov     rbp, r8                                                        ; +0x1b, 0x14019759b\nmov     rdi, rdx                                                       ; +0x1e, 0x14019759e\nmov     rsi, rcx                                                       ; +0x21, 0x1401975a1\nmov     [rsp+58h+var_28], rdx                                          ; +0x24, 0x1401975a4\nmov     rcx, [rcx+2F0h]                                                ; +0x29, 0x1401975a9\ntest    rcx, rcx                                                       ; +0x30, 0x1401975b0\njnz     short loc_1401975C1                                            ; +0x33, 0x1401975b3\nmov     rcx, rdx                                                       ; +0x35, 0x1401975b5\ncall    sub_14003A830                                                  ; +0x38, 0x1401975b8\nxor     eax, eax                                                       ; +0x3d, 0x1401975bd\njmp     short loc_140197634                                            ; +0x3f, 0x1401975bf\nlea     r8, stru_1406C1C08                                             ; +0x41, 0x1401975c1\nlea     rdx, [rsp+58h+var_38]                                          ; +0x48, 0x1401975c8\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x4d, 0x1401975cd\nmov     rcx, rdi                                                       ; +0x53, 0x1401975d3\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x56, 0x1401975d6\njbe     short loc_1401975E0                                            ; +0x5b, 0x1401975db\nmov     rcx, [rdi]                                                     ; +0x5d, 0x1401975dd\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x60, 0x1401975e0\nmov     rbx, rax                                                       ; +0x66, 0x1401975e6\nmov     r8, rbp                                                        ; +0x69, 0x1401975e9\nlea     rdx, [rsp+58h+var_30]                                          ; +0x6c, 0x1401975ec\nlea     rcx, [rsp+58h+var_38]                                          ; +0x71, 0x1401975f1\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x76, 0x1401975f6\nmov     r8, [rbx]                                                      ; +0x7c, 0x1401975fc\nlea     rdx, [rsp+58h+var_30]                                          ; +0x7f, 0x1401975ff\nmov     rcx, rbx                                                       ; +0x84, 0x140197604\ncall    qword ptr [r8+0B8h]                                            ; +0x87, 0x140197607\nmov     rcx, [rsi+2F0h]                                                ; +0x8e, 0x14019760e\nmov     r9, [rcx]                                                      ; +0x95, 0x140197615\nmov     r8d, 0FFFFFFFFh                                                ; +0x98, 0x140197618\nmov     rdx, rbx                                                       ; +0x9e, 0x14019761e\ncall    qword ptr [r9+1B8h]                                            ; +0xa1, 0x140197621\nnop                                                                    ; +0xa8, 0x140197628\nmov     rcx, rdi                                                       ; +0xa9, 0x140197629\ncall    sub_14003A830                                                  ; +0xac, 0x14019762c\nmov     rax, rbx                                                       ; +0xb1, 0x140197631\nmov     rcx, [rsp+58h+var_20]                                          ; +0xb4, 0x140197634\nxor     rcx, rsp; StackCookie                                          ; +0xb9, 0x140197639\ncall    __security_check_cookie                                        ; +0xbc, 0x14019763c\nmov     rbx, [rsp+58h+arg_18]                                          ; +0xc1, 0x140197641\nadd     rsp, 40h                                                       ; +0xc6, 0x140197646\npop     rdi                                                            ; +0xca, 0x14019764a\npop     rsi                                                            ; +0xcb, 0x14019764b\npop     rbp                                                            ; +0xcc, 0x14019764c\nretn                                                                   ; +0xcd, 0x14019764d", "xrefs": ["GameObject::setupCustomSprites @ 0x1401af33e", "GameObject::setupCustomSprites @ 0x1401af51e", "GameObject::setupCustomSprites @ 0x1401af583", "GameObject::setupCustomSprites @ 0x1401af5e8", "GameObject::setupCustomSprites @ 0x1401af766", "GameObject::setupCustomSprites @ 0x1401af8e9", "GameObject::setupCustomSprites @ 0x1401af94e", "GameObject::setupCustomSprites @ 0x1401afa73", "GameObject::setupCustomSprites @ 0x1401afc1e", "GameObject::setupCustomSprites @ 0x1401afec3", "GameObject::setupCustomSprites @ 0x1401affdd", "GameObject::setupCustomSprites @ 0x1401b0b38", "GameObject::setupCustomSprites @ 0x1401b0eb5", "GameObject::setupCustomSprites @ 0x1401b246b", "GameObject::setupCustomSprites @ 0x1401b354a", "GameObject::setupCustomSprites @ 0x1401b4955", "GameObject::setupCustomSprites @ 0x1401b4f7c", "GameObject::setupCustomSprites @ 0x1401b50e4", "GameObject::setupCustomSprites @ 0x1401b5154", "GameObject::setupCustomSprites @ 0x1401b52e9", "GameObject::setupCustomSprites @ 0x1401b534e", "GameObject::setupCustomSprites @ 0x1401b53b3", "GameObject::setupCustomSprites @ 0x1401b547f", "GameObject::setupCustomSprites @ 0x1401b5600", "GameObject::setupCustomSprites @ 0x1401b5661", "GameObject::setupCustomSprites @ 0x1401b56c2", "GameObject::setupCustomSprites @ 0x1401b9a59", "GameObject::setupCustomSprites @ 0x1401b9a9d", "GameObject::setupCustomSprites @ 0x1401bbc20", "GameObject::setupCustomSprites @ 0x1401bc988", "<???> @ 0x1406cba48"], "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"}