{"type": "func", "start": 5370397120, "end": 5370397370, "name": "GameObject::addColorSpriteToSelf", "pseudocode": "// \n// GameObject::addColorSpriteToSelf from 0x14019c1c0 to 0x14019c2ba (250 bytes)\n// \n// 5 xrefs:\n// > EditorUI::spriteFromObjectString @ 0x14010e4a5\n// > GameObject::addColorSpriteToParent @ 0x14019c010\n// > <???> @ 0x1406791f8\n// > <???> @ 0x140679208\n// > <???> @ 0x1406cbd48\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 GameObject::addColorSpriteToSelf(GameObject *a1)\n{\n  cocos2d::CCSprite *m_colorSprite; // rcx\n  __int64 v3; // r8\n  const struct cocos2d::CCSize *v4; // rax\n  double v5; // xmm0_8\n  cocos2d::CCSprite_vtbl *v6; // rbx\n  const cocos2d::CCPoint *v7; // rax\n  cocos2d::CCSize v8; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( a1->m_colorSprite->getParent(a1->m_colorSprite) != a1 )\n  {\n    m_colorSprite = a1->m_colorSprite;\n    a1->m_colorSpriteLocked = 1;\n    m_colorSprite->removeFromParentAndCleanup(m_colorSprite, 0);\n    v3 = 4294967196LL;\n    if ( a1->m_colorZLayerRelated )\n      v3 = 100;\n    a1->addChild_0(a1, a1->m_colorSprite, v3);\n    ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_colorSprite->setScale_0)(a1->m_colorSprite);\n    ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_colorSprite->setRotation)(a1->m_colorSprite);\n    v4 = a1->getContentSize(a1);\n    v5 = cocos2d::CCSize::CCSize(&v8, v4);\n    v6 = a1->m_colorSprite->__vftable;\n    cocos2d::CCPoint::CCPoint(*(float *)&v5, v8.width * 0.5);\n    v6->setPosition_0(a1->m_colorSprite, v7);\n  }\n}", "assembly": "; \n; GameObject::addColorSpriteToSelf from 0x14019c1c0 to 0x14019c2ba (250 bytes)\n; \n; 5 xrefs:\n; > EditorUI::spriteFromObjectString @ 0x14010e4a5\n; > GameObject::addColorSpriteToParent @ 0x14019c010\n; > <???> @ 0x1406791f8\n; > <???> @ 0x140679208\n; > <???> @ 0x1406cbd48\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    rdi                                                            ; +0x0, 0x14019c1c0\nsub     rsp, 20h                                                       ; +0x2, 0x14019c1c2\nmov     rdi, rcx                                                       ; +0x6, 0x14019c1c6\nmov     rcx, [rcx+380h]                                                ; +0x9, 0x14019c1c9\nmov     rax, [rcx]                                                     ; +0x10, 0x14019c1d0\ncall    qword ptr [rax+1E8h]                                           ; +0x13, 0x14019c1d3\ncmp     rax, rdi                                                       ; +0x19, 0x14019c1d9\njz      loc_14019C2B4                                                  ; +0x1c, 0x14019c1dc\nmov     rcx, [rdi+380h]                                                ; +0x22, 0x14019c1e2\nxor     edx, edx                                                       ; +0x29, 0x14019c1e9\nmov     byte ptr [rdi+36Ah], 1                                         ; +0x2b, 0x14019c1eb\nmov     [rsp+28h+arg_10], rbx                                          ; +0x32, 0x14019c1f2\nmov     rax, [rcx]                                                     ; +0x37, 0x14019c1f7\ncall    qword ptr [rax+1F8h]                                           ; +0x3a, 0x14019c1fa\ncmp     byte ptr [rdi+425h], 0                                         ; +0x40, 0x14019c200\nmov     ecx, 64h ; 'd'                                                 ; +0x47, 0x14019c207\nmov     rax, [rdi]                                                     ; +0x4c, 0x14019c20c\nmov     r8d, 0FFFFFF9Ch                                                ; +0x4f, 0x14019c20f\nmov     rdx, [rdi+380h]                                                ; +0x55, 0x14019c215\ncmovnz  r8d, ecx                                                       ; +0x5c, 0x14019c21c\nmov     rcx, rdi                                                       ; +0x60, 0x14019c220\ncall    qword ptr [rax+1B8h]                                           ; +0x63, 0x14019c223\nmov     rcx, [rdi+380h]                                                ; +0x69, 0x14019c229\nmovss   xmm1, cs:flt_140622C24                                         ; +0x70, 0x14019c230\nmov     rax, [rcx]                                                     ; +0x78, 0x14019c238\ncall    qword ptr [rax+0A0h]                                           ; +0x7b, 0x14019c23b\nmov     rcx, [rdi+380h]                                                ; +0x81, 0x14019c241\nxorps   xmm1, xmm1                                                     ; +0x88, 0x14019c248\nmov     rax, [rcx]                                                     ; +0x8b, 0x14019c24b\ncall    qword ptr [rax+150h]                                           ; +0x8e, 0x14019c24e\nmov     rax, [rdi]                                                     ; +0x94, 0x14019c254\nmov     rcx, rdi                                                       ; +0x97, 0x14019c257\ncall    qword ptr [rax+130h]                                           ; +0x9a, 0x14019c25a\nmov     rdx, rax                                                       ; +0xa0, 0x14019c260\nlea     rcx, [rsp+28h+arg_0]                                           ; +0xa3, 0x14019c263\ncall    cs:??0CCSize@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCSize::CCSize(cocos2d::CCSize const &) ; +0xa8, 0x14019c268\nmovss   xmm2, [rsp+28h+arg_4]                                          ; +0xae, 0x14019c26e\nlea     rcx, [rsp+28h+arg_8]                                           ; +0xb4, 0x14019c274\nmovss   xmm1, [rsp+28h+arg_0]                                          ; +0xb9, 0x14019c279\nmov     rax, [rdi+380h]                                                ; +0xbf, 0x14019c27f\nmulss   xmm2, cs:dword_140622B08                                       ; +0xc6, 0x14019c286\nmulss   xmm1, cs:dword_140622B08                                       ; +0xce, 0x14019c28e\nmov     rbx, [rax]                                                     ; +0xd6, 0x14019c296\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xd9, 0x14019c299\nmov     rcx, [rdi+380h]                                                ; +0xdf, 0x14019c29f\nmov     rdx, rax                                                       ; +0xe6, 0x14019c2a6\ncall    qword ptr [rbx+0B8h]                                           ; +0xe9, 0x14019c2a9\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xef, 0x14019c2af\nadd     rsp, 20h                                                       ; +0xf4, 0x14019c2b4\npop     rdi                                                            ; +0xf8, 0x14019c2b8\nretn                                                                   ; +0xf9, 0x14019c2b9", "xrefs": ["EditorUI::spriteFromObjectString @ 0x14010e4a5", "GameObject::addColorSpriteToParent @ 0x14019c010", "<???> @ 0x1406791f8", "<???> @ 0x140679208", "<???> @ 0x1406cbd48"], "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"}