{"type": "func", "start": 5371433504, "end": 5371433750, "name": "GameObject::addColorSpriteToSelf", "pseudocode": "// \n// GameObject::addColorSpriteToSelf from 0x140299220 to 0x140299316 (246 bytes)\n// \n// 5 xrefs:\n// > EditorUI::spriteFromObjectString @ 0x1401f0e8e\n// > GameObject::addColorSpriteToParent @ 0x140299074\n// > <???> @ 0x1408af580\n// > <???> @ 0x1408af590\n// > <???> @ 0x14091d6cc\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:29:11 +0000\n// \n\n__int64 __fastcall GameObject::addColorSpriteToSelf(_QWORD *a1)\n{\n  __int64 result; // rax\n  __int64 v3; // rcx\n  __int64 v4; // r8\n  const struct cocos2d::CCSize *v5; // rax\n  __int64 *v6; // rdi\n  __int64 v7; // rbx\n  __int64 v8; // rax\n  float v9; // [rsp+30h] [rbp+8h] BYREF\n  float v10; // [rsp+34h] [rbp+Ch]\n  char v11; // [rsp+38h] [rbp+10h] BYREF\n\n  result = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[112] + 504LL))(a1[112]);\n  if ( (_QWORD *)result != a1 )\n  {\n    v3 = a1[112];\n    *((_BYTE *)a1 + 874) = 1;\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 520LL))(v3, 0);\n    v4 = 4294967196LL;\n    if ( *((_BYTE *)a1 + 1061) )\n      v4 = 100;\n    (*(void (__fastcall **)(_QWORD *, _QWORD, __int64))(*a1 + 456LL))(a1, a1[112], v4);\n    (*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[112] + 160LL))(a1[112]);\n    (*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[112] + 352LL))(a1[112]);\n    v5 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 320LL))(a1);\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v9, v5);\n    v6 = (__int64 *)a1[112];\n    v7 = *v6;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, v9 * 0.5, v10 * 0.5);\n    return (*(__int64 (__fastcall **)(__int64 *, __int64))(v7 + 184))(v6, v8);\n  }\n  return result;\n}", "assembly": "; \n; GameObject::addColorSpriteToSelf from 0x140299220 to 0x140299316 (246 bytes)\n; \n; 5 xrefs:\n; > EditorUI::spriteFromObjectString @ 0x1401f0e8e\n; > GameObject::addColorSpriteToParent @ 0x140299074\n; > <???> @ 0x1408af580\n; > <???> @ 0x1408af590\n; > <???> @ 0x14091d6cc\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:29:11 +0000\n; \npush    rdi                                                            ; +0x0, 0x140299220\nsub     rsp, 20h                                                       ; +0x2, 0x140299222\nmov     rdi, rcx                                                       ; +0x6, 0x140299226\nmov     rcx, [rcx+380h]                                                ; +0x9, 0x140299229\nmov     rax, [rcx]                                                     ; +0x10, 0x140299230\ncall    qword ptr [rax+1F8h]                                           ; +0x13, 0x140299233\ncmp     rax, rdi                                                       ; +0x19, 0x140299239\njz      loc_140299310                                                  ; +0x1c, 0x14029923c\nmov     rcx, [rdi+380h]                                                ; +0x22, 0x140299242\nxor     edx, edx                                                       ; +0x29, 0x140299249\nmov     byte ptr [rdi+36Ah], 1                                         ; +0x2b, 0x14029924b\nmov     [rsp+28h+arg_10], rbx                                          ; +0x32, 0x140299252\nmov     rax, [rcx]                                                     ; +0x37, 0x140299257\ncall    qword ptr [rax+208h]                                           ; +0x3a, 0x14029925a\ncmp     byte ptr [rdi+425h], 0                                         ; +0x40, 0x140299260\nmov     eax, 64h ; 'd'                                                 ; +0x47, 0x140299267\nmov     rdx, [rdi+380h]                                                ; +0x4c, 0x14029926c\nmov     r8d, 0FFFFFF9Ch                                                ; +0x53, 0x140299273\ncmovnz  r8d, eax                                                       ; +0x59, 0x140299279\nmov     rcx, rdi                                                       ; +0x5d, 0x14029927d\nmov     rax, [rdi]                                                     ; +0x60, 0x140299280\ncall    qword ptr [rax+1C8h]                                           ; +0x63, 0x140299283\nmov     rcx, [rdi+380h]                                                ; +0x69, 0x140299289\nmovss   xmm1, cs:flt_140835080                                         ; +0x70, 0x140299290\nmov     rax, [rcx]                                                     ; +0x78, 0x140299298\ncall    qword ptr [rax+0A0h]                                           ; +0x7b, 0x14029929b\nmov     rcx, [rdi+380h]                                                ; +0x81, 0x1402992a1\nxorps   xmm1, xmm1                                                     ; +0x88, 0x1402992a8\nmov     rax, [rcx]                                                     ; +0x8b, 0x1402992ab\ncall    qword ptr [rax+160h]                                           ; +0x8e, 0x1402992ae\nmov     rax, [rdi]                                                     ; +0x94, 0x1402992b4\nmov     rcx, rdi                                                       ; +0x97, 0x1402992b7\ncall    qword ptr [rax+140h]                                           ; +0x9a, 0x1402992ba\nmov     rdx, rax                                                       ; +0xa0, 0x1402992c0\nlea     rcx, [rsp+28h+arg_0]                                           ; +0xa3, 0x1402992c3\ncall    cs:??0CCSize@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCSize::CCSize(cocos2d::CCSize const &) ; +0xa8, 0x1402992c8\nmovss   xmm2, [rsp+28h+arg_4]                                          ; +0xae, 0x1402992ce\nlea     rcx, [rsp+28h+arg_8]                                           ; +0xb4, 0x1402992d4\nmovss   xmm1, [rsp+28h+arg_0]                                          ; +0xb9, 0x1402992d9\nmov     rdi, [rdi+380h]                                                ; +0xbf, 0x1402992df\nmulss   xmm2, cs:dword_140834F20                                       ; +0xc6, 0x1402992e6\nmulss   xmm1, cs:dword_140834F20                                       ; +0xce, 0x1402992ee\nmov     rbx, [rdi]                                                     ; +0xd6, 0x1402992f6\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xd9, 0x1402992f9\nmov     rdx, rax                                                       ; +0xdf, 0x1402992ff\nmov     rcx, rdi                                                       ; +0xe2, 0x140299302\ncall    qword ptr [rbx+0B8h]                                           ; +0xe5, 0x140299305\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xeb, 0x14029930b\nadd     rsp, 20h                                                       ; +0xf0, 0x140299310\npop     rdi                                                            ; +0xf4, 0x140299314\nretn                                                                   ; +0xf5, 0x140299315", "xrefs": ["EditorUI::spriteFromObjectString @ 0x1401f0e8e", "GameObject::addColorSpriteToParent @ 0x140299074", "<???> @ 0x1408af580", "<???> @ 0x1408af590", "<???> @ 0x14091d6cc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}