{"type": "func", "start": 5375354992, "end": 5375355584, "name": "KeyframeGameObject::updateShadowObjects", "pseudocode": "// \n// KeyframeGameObject::updateShadowObjects from 0x140656870 to 0x140656ac0 (592 bytes)\n// \n// 3 xrefs:\n// > EditorUI::createNewKeyframeAnim @ 0x1401b9281\n// > LevelEditorLayer::updateKeyframeObjects @ 0x14040144c\n// > <???> @ 0x14093179c\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:35:45 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall KeyframeGameObject::updateShadowObjects(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v6; // rcx\n  struct cocos2d::CCObject *Group; // rsi\n  cocos2d::CCArray *v8; // rax\n  cocos2d::CCArray *v9; // rbx\n  struct cocos2d::CCObject *v10; // rbx\n  __int64 v11; // rax\n  __int64 v12; // rax\n  __int64 v13; // rcx\n  const struct cocos2d::CCPoint *v14; // rax\n  __int64 v15; // rbx\n  unsigned __int8 v16; // al\n  _BYTE v17[8]; // [rsp+40h] [rbp-78h] BYREF\n  _BYTE v18[8]; // [rsp+48h] [rbp-70h] BYREF\n  _BYTE v19[8]; // [rsp+50h] [rbp-68h] BYREF\n  _BYTE v20[32]; // [rsp+58h] [rbp-60h] BYREF\n  _QWORD v21[4]; // [rsp+78h] [rbp-40h] BYREF\n\n  v6 = *(_QWORD *)(a1 + 1864);\n  if ( v6 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 528LL))(v6);\n    *(_QWORD *)(a1 + 1864) = 0;\n  }\n  cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(a1 + 1856));\n  if ( *(_BYTE *)(a1 + 1896) )\n  {\n    *(_BYTE *)(a1 + 559) = 1;\n    Group = GJBaseGameLayer::getGroup(a2, *(unsigned int *)(a1 + 1480));\n    v8 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a2 + 3968), *(int *)(a1 + 1480));\n    v9 = v8;\n    if ( v8 && cocos2d::CCArray::count(v8) )\n      v10 = cocos2d::CCArray::objectAtIndex(v9, 0);\n    else\n      v10 = nullptr;\n    if ( cocos2d::CCArray::count(Group) )\n    {\n      if ( v10 )\n      {\n        EditorUI::copyObjects(a3, v21, (__int64)Group, 0, 0);\n        v11 = sub_14003F4F0((__int64)v20, (__int64)v21);\n        v12 = EditorUI::spriteFromObjectString(a3, v11, 0, 1, 0, *(cocos2d::CCArray **)(a1 + 1856), Group, (__int64)v10);\n        *(_QWORD *)(a1 + 1864) = v12;\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v12);\n        (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 312LL))(a1, &unk_14090BDF0);\n        *(_BYTE *)(a1 + 1220) = 1;\n        *(_DWORD *)(a1 + 764) = *(_DWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1864) + 320LL))(*(_QWORD *)(a1 + 1864));\n        *(_DWORD *)(a1 + 768) = *(_DWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1864) + 320LL))(*(_QWORD *)(a1 + 1864))\n                                          + 4);\n        (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 1864) + 184LL))(\n          *(_QWORD *)(a1 + 1864),\n          &unk_14090BDD8);\n        EditorUI::getGroupCenter(v13, (cocos2d::CCPoint *)v19, Group, 1);\n        v14 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v10 + 200LL))(v10);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v14);\n        cocos2d::CCPoint::operator-(v19, v17, v18);\n        cocos2d::CCPoint::operator=(a1 + 716, v17);\n        *(_BYTE *)(a1 + 872) = 1;\n        v15 = *(_QWORD *)(a1 + 320);\n        v16 = (*(__int64 (__fastcall **)(__int64))(v15 + 32))(a1 + 320);\n        (*(void (__fastcall **)(__int64, _QWORD))(v15 + 40))(a1 + 320, v16);\n        sub_14003D310((__int64)v21);\n      }\n    }\n  }\n  else\n  {\n    *(_BYTE *)(a1 + 559) = 0;\n  }\n}", "assembly": "; \n; KeyframeGameObject::updateShadowObjects from 0x140656870 to 0x140656ac0 (592 bytes)\n; \n; 3 xrefs:\n; > EditorUI::createNewKeyframeAnim @ 0x1401b9281\n; > LevelEditorLayer::updateKeyframeObjects @ 0x14040144c\n; > <???> @ 0x14093179c\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:35:45 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x140656870\npush    rbp                                                            ; +0x5, 0x140656875\npush    rsi                                                            ; +0x6, 0x140656876\npush    rdi                                                            ; +0x7, 0x140656877\nsub     rsp, 0A0h                                                      ; +0x8, 0x140656878\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x14065687f\nxor     rax, rsp                                                       ; +0x16, 0x140656886\nmov     [rsp+0B8h+var_20], rax                                         ; +0x19, 0x140656889\nmov     rbp, r8                                                        ; +0x21, 0x140656891\nmov     rbx, rdx                                                       ; +0x24, 0x140656894\nmov     rdi, rcx                                                       ; +0x27, 0x140656897\nmov     rcx, [rcx+748h]                                                ; +0x2a, 0x14065689a\ntest    rcx, rcx                                                       ; +0x31, 0x1406568a1\njz      short loc_1406568BA                                            ; +0x34, 0x1406568a4\nmov     rax, [rcx]                                                     ; +0x36, 0x1406568a6\ncall    qword ptr [rax+210h]                                           ; +0x39, 0x1406568a9\nmov     qword ptr [rdi+748h], 0                                        ; +0x3f, 0x1406568af\nmov     rcx, [rdi+740h]                                                ; +0x4a, 0x1406568ba\ncall    cs:?removeAllObjects@CCArray@cocos2d@@QEAAXXZ; cocos2d::CCArray::removeAllObjects(void) ; +0x51, 0x1406568c1\ncmp     byte ptr [rdi+768h], 0                                         ; +0x57, 0x1406568c7\njnz     short loc_1406568DC                                            ; +0x5e, 0x1406568ce\nmov     byte ptr [rdi+22Fh], 0                                         ; +0x60, 0x1406568d0\njmp     loc_140656A9D                                                  ; +0x67, 0x1406568d7\nmov     byte ptr [rdi+22Fh], 1                                         ; +0x6c, 0x1406568dc\nmov     edx, [rdi+5C8h]                                                ; +0x73, 0x1406568e3\nmov     rcx, rbx                                                       ; +0x79, 0x1406568e9\ncall    GJBaseGameLayer__getGroup                                      ; +0x7c, 0x1406568ec\nmov     rsi, rax                                                       ; +0x81, 0x1406568f1\nmovsxd  rdx, dword ptr [rdi+5C8h]                                      ; +0x84, 0x1406568f4\nmov     rcx, [rbx+0F80h]                                               ; +0x8b, 0x1406568fb\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x92, 0x140656902\nmov     rbx, rax                                                       ; +0x98, 0x140656908\ntest    rax, rax                                                       ; +0x9b, 0x14065690b\njz      short loc_14065692D                                            ; +0x9e, 0x14065690e\nmov     rcx, rax                                                       ; +0xa0, 0x140656910\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa3, 0x140656913\ntest    eax, eax                                                       ; +0xa9, 0x140656919\njz      short loc_14065692D                                            ; +0xab, 0x14065691b\nxor     edx, edx                                                       ; +0xad, 0x14065691d\nmov     rcx, rbx                                                       ; +0xaf, 0x14065691f\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb2, 0x140656922\nmov     rbx, rax                                                       ; +0xb8, 0x140656928\njmp     short loc_14065692F                                            ; +0xbb, 0x14065692b\nxor     ebx, ebx                                                       ; +0xbd, 0x14065692d\nmov     rcx, rsi                                                       ; +0xbf, 0x14065692f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc2, 0x140656932\ntest    eax, eax                                                       ; +0xc8, 0x140656938\njz      loc_140656A9D                                                  ; +0xca, 0x14065693a\ntest    rbx, rbx                                                       ; +0xd0, 0x140656940\njz      loc_140656A9D                                                  ; +0xd3, 0x140656943\nmov     byte ptr [rsp+0B8h+var_98], 0                                  ; +0xd9, 0x140656949\nxor     r9d, r9d                                                       ; +0xde, 0x14065694e\nmov     r8, rsi                                                        ; +0xe1, 0x140656951\nlea     rdx, [rsp+0B8h+var_40]                                         ; +0xe4, 0x140656954\nmov     rcx, rbp                                                       ; +0xe9, 0x140656959\ncall    EditorUI__copyObjects                                          ; +0xec, 0x14065695c\nnop                                                                    ; +0xf1, 0x140656961\nlea     rdx, [rsp+0B8h+var_40]                                         ; +0xf2, 0x140656962\nlea     rcx, [rsp+0B8h+var_60]                                         ; +0xf7, 0x140656967\ncall    sub_14003F4F0                                                  ; +0xfc, 0x14065696c\nmov     [rsp+0B8h+var_80], rbx                                         ; +0x101, 0x140656971\nmov     [rsp+0B8h+var_88], rsi                                         ; +0x106, 0x140656976\nmov     rdx, [rdi+740h]                                                ; +0x10b, 0x14065697b\nmov     [rsp+0B8h+var_90], rdx                                         ; +0x112, 0x140656982\nmov     [rsp+0B8h+var_98], 0                                           ; +0x117, 0x140656987\nmov     r9b, 1                                                         ; +0x11f, 0x14065698f\nxor     r8d, r8d                                                       ; +0x122, 0x140656992\nmov     rdx, rax                                                       ; +0x125, 0x140656995\nmov     rcx, rbp                                                       ; +0x128, 0x140656998\ncall    EditorUI__spriteFromObjectString                               ; +0x12b, 0x14065699b\nmov     [rdi+748h], rax                                                ; +0x130, 0x1406569a0\nmov     rcx, [rdi]                                                     ; +0x137, 0x1406569a7\nmov     r8, [rcx+1D0h]                                                 ; +0x13a, 0x1406569aa\nmov     rdx, rax                                                       ; +0x141, 0x1406569b1\nmov     rcx, rdi                                                       ; +0x144, 0x1406569b4\ncall    r8                                                             ; +0x147, 0x1406569b7\nmov     rax, [rdi]                                                     ; +0x14a, 0x1406569ba\nlea     rdx, unk_14090BDF0                                             ; +0x14d, 0x1406569bd\nmov     rcx, rdi                                                       ; +0x154, 0x1406569c4\ncall    qword ptr [rax+138h]                                           ; +0x157, 0x1406569c7\nmov     byte ptr [rdi+4C4h], 1                                         ; +0x15d, 0x1406569cd\nmov     rcx, [rdi+748h]                                                ; +0x164, 0x1406569d4\nmov     rax, [rcx]                                                     ; +0x16b, 0x1406569db\ncall    qword ptr [rax+140h]                                           ; +0x16e, 0x1406569de\nmov     ecx, [rax]                                                     ; +0x174, 0x1406569e4\nmov     [rdi+2FCh], ecx                                                ; +0x176, 0x1406569e6\nmov     rcx, [rdi+748h]                                                ; +0x17c, 0x1406569ec\nmov     rax, [rcx]                                                     ; +0x183, 0x1406569f3\ncall    qword ptr [rax+140h]                                           ; +0x186, 0x1406569f6\nmov     ecx, [rax+4]                                                   ; +0x18c, 0x1406569fc\nmov     [rdi+300h], ecx                                                ; +0x18f, 0x1406569ff\nmov     rcx, [rdi+748h]                                                ; +0x195, 0x140656a05\nmov     rax, [rcx]                                                     ; +0x19c, 0x140656a0c\nlea     rdx, unk_14090BDD8                                             ; +0x19f, 0x140656a0f\ncall    qword ptr [rax+0B8h]                                           ; +0x1a6, 0x140656a16\nmov     r9b, 1                                                         ; +0x1ac, 0x140656a1c\nmov     r8, rsi                                                        ; +0x1af, 0x140656a1f\nlea     rdx, [rsp+0B8h+var_68]                                         ; +0x1b2, 0x140656a22\ncall    EditorUI__getGroupCenter                                       ; +0x1b7, 0x140656a27\nmov     rax, [rbx]                                                     ; +0x1bc, 0x140656a2c\nmov     rcx, rbx                                                       ; +0x1bf, 0x140656a2f\ncall    qword ptr [rax+0C8h]                                           ; +0x1c2, 0x140656a32\nmov     rdx, rax                                                       ; +0x1c8, 0x140656a38\nlea     rcx, [rsp+0B8h+var_70]                                         ; +0x1cb, 0x140656a3b\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1d0, 0x140656a40\nlea     r8, [rsp+0B8h+var_70]                                          ; +0x1d6, 0x140656a46\nlea     rdx, [rsp+0B8h+var_78]                                         ; +0x1db, 0x140656a4b\nlea     rcx, [rsp+0B8h+var_68]                                         ; +0x1e0, 0x140656a50\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x1e5, 0x140656a55\nlea     rcx, [rdi+2CCh]                                                ; +0x1eb, 0x140656a5b\nlea     rdx, [rsp+0B8h+var_78]                                         ; +0x1f2, 0x140656a62\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1f7, 0x140656a67\nmov     byte ptr [rdi+368h], 1                                         ; +0x1fd, 0x140656a6d\nmov     rbx, [rdi+140h]                                                ; +0x204, 0x140656a74\nlea     rcx, [rdi+140h]                                                ; +0x20b, 0x140656a7b\ncall    qword ptr [rbx+20h]                                            ; +0x212, 0x140656a82\nmovzx   edx, al                                                        ; +0x215, 0x140656a85\nlea     rcx, [rdi+140h]                                                ; +0x218, 0x140656a88\ncall    qword ptr [rbx+28h]                                            ; +0x21f, 0x140656a8f\nnop                                                                    ; +0x222, 0x140656a92\nlea     rcx, [rsp+0B8h+var_40]                                         ; +0x223, 0x140656a93\ncall    sub_14003D310                                                  ; +0x228, 0x140656a98\nmov     rcx, [rsp+0B8h+var_20]                                         ; +0x22d, 0x140656a9d\nxor     rcx, rsp; StackCookie                                          ; +0x235, 0x140656aa5\ncall    __security_check_cookie                                        ; +0x238, 0x140656aa8\nmov     rbx, [rsp+0B8h+arg_18]                                         ; +0x23d, 0x140656aad\nadd     rsp, 0A0h                                                      ; +0x245, 0x140656ab5\npop     rdi                                                            ; +0x24c, 0x140656abc\npop     rsi                                                            ; +0x24d, 0x140656abd\npop     rbp                                                            ; +0x24e, 0x140656abe\nretn                                                                   ; +0x24f, 0x140656abf", "xrefs": ["EditorUI::createNewKeyframeAnim @ 0x1401b9281", "LevelEditorLayer::updateKeyframeObjects @ 0x14040144c", "<???> @ 0x14093179c"], "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"}