{"type": "func", "start": 4296941352, "end": 4296941804, "name": "GJBaseGameLayer::refreshKeyframeAnims", "pseudocode": "// \n// GJBaseGameLayer::refreshKeyframeAnims from 0x1001e1f28 to 0x1001e20ec (452 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::updateSpecialGroupData @ 0x1001dfc14\n// > LevelEditorLayer::init @ 0x100357740\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 __fastcall GJBaseGameLayer::refreshKeyframeAnims(GJBaseGameLayer *a1)\n{\n  cocos2d::CCDictionary *v2; // x20\n  cocos2d::CCArray *m_objects; // x8\n  cocos2d::ccArray *data; // x9\n  __int64 num; // x8\n  cocos2d::CCObject **arr; // x23\n  unsigned __int64 v7; // x24\n  cocos2d::CCObject *v8; // x21\n  cocos2d::CCObject *v9; // x22\n  cocos2d::CCArray *v10; // x21\n  __int64 v11; // x22\n  __int64 v12; // x0\n  cocos2d::CCObject *v13; // x24\n  __int64 v14; // x25\n  __int64 v15; // x0\n\n  cocos2d::CCDictionary::removeAllObjects(a1->m_keyframeGroups);\n  a1->m_keyframeGroup = 0;\n  v2 = cocos2d::CCDictionary::create();\n  m_objects = a1->m_objects;\n  if ( m_objects )\n  {\n    data = m_objects->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = data->arr;\n      v7 = (unsigned __int64)&arr[num - 1];\n      do\n      {\n        v8 = *arr;\n        if ( !*arr )\n          break;\n        if ( v8[18].m_uReference == 3032 )\n        {\n          v9 = cocos2d::CCDictionary::objectForKey(v2, (int)v8[33].m_uID);\n          if ( !v9 )\n          {\n            v9 = (cocos2d::CCObject *)sub_10024A15C(0);\n            ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v9->setTag)(v9, v8[33].m_uID);\n            cocos2d::CCDictionary::setObject(v2, v9, (int)v8[33].m_uID);\n          }\n          sub_10024A2D0(v9, v8);\n        }\n        ++arr;\n      }\n      while ( (unsigned __int64)arr <= v7 );\n    }\n  }\n  v10 = cocos2d::CCDictionary::allKeys(v2);\n  qsort(v10->data->arr, v10->data->num, 8u, (int (__cdecl *)(const void *, const void *))sub_1001D9B6C);\n  if ( (unsigned int)sub_10024A36C(v10) )\n  {\n    v11 = 0;\n    do\n    {\n      v12 = sub_10024A388(v10, v11);\n      v13 = cocos2d::CCDictionary::objectForKey(v2, *(int *)(v12 + 56));\n      qsort(\n        v13[1].~CCObject_0,\n        (size_t)v13[1].copyWithZone,\n        8u,\n        (int (__cdecl *)(const void *, const void *))sub_1001D9B54);\n      ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v13->setTag)(v13, (unsigned int)a1->m_keyframeGroup);\n      cocos2d::CCDictionary::setObject(a1->m_keyframeGroups, v13, a1->m_keyframeGroup);\n      if ( (unsigned int)sub_10024A36C(v13) )\n      {\n        v14 = 0;\n        do\n        {\n          v15 = sub_10024A388(v13, v14);\n          *(_DWORD *)(v15 + 1856) = a1->m_keyframeGroup;\n          *(_DWORD *)(v15 + 1860) = v14;\n          v14 = (unsigned int)(v14 + 1);\n        }\n        while ( (unsigned int)v14 < (unsigned int)sub_10024A36C(v13) );\n      }\n      ++a1->m_keyframeGroup;\n      v11 = (unsigned int)(v11 + 1);\n    }\n    while ( (unsigned int)v11 < (unsigned int)sub_10024A36C(v10) );\n  }\n}", "assembly": "; \n; GJBaseGameLayer::refreshKeyframeAnims from 0x1001e1f28 to 0x1001e20ec (452 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::updateSpecialGroupData @ 0x1001dfc14\n; > LevelEditorLayer::init @ 0x100357740\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\nSTP             X26, X25, [SP,#-0x10+var_40]!                          ; +0x0, 0x1001e1f28\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x1001e1f2c\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1001e1f30\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001e1f34\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001e1f38\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001e1f3c\nMOV             X19, X0                                                ; +0x18, 0x1001e1f40\nLDR             X0, [X0,#0x3350]                                       ; +0x1c, 0x1001e1f44\nBL              cocos2d__CCDictionary__removeAllObjects                ; +0x20, 0x1001e1f48\nSTR             WZR, [X19,#0x3358]                                     ; +0x24, 0x1001e1f4c\nBL              cocos2d__CCDictionary__create                          ; +0x28, 0x1001e1f50\nMOV             X20, X0                                                ; +0x2c, 0x1001e1f54\nLDR             X8, [X19,#0xCE0]                                       ; +0x30, 0x1001e1f58\nCBZ             X8, loc_1001E1FE0                                      ; +0x34, 0x1001e1f5c\nLDR             X9, [X8,#0x38]                                         ; +0x38, 0x1001e1f60\nLDR             W8, [X9]                                               ; +0x3c, 0x1001e1f64\nCBZ             W8, loc_1001E1FE0                                      ; +0x40, 0x1001e1f68\nLDR             X23, [X9,#0x10]                                        ; +0x44, 0x1001e1f6c\nADD             X8, X23, X8,LSL#3                                      ; +0x48, 0x1001e1f70\nSUB             X24, X8, #8                                            ; +0x4c, 0x1001e1f74\nLDR             X21, [X23]                                             ; +0x50, 0x1001e1f78\nCBZ             X21, loc_1001E1FE0                                     ; +0x54, 0x1001e1f7c\nLDR             W8, [X21,#0x404]                                       ; +0x58, 0x1001e1f80\nCMP             W8, #0xBD8                                             ; +0x5c, 0x1001e1f84\nB.NE            loc_1001E1FD4                                          ; +0x60, 0x1001e1f88\nLDRSW           X1, [X21,#0x740]                                       ; +0x64, 0x1001e1f8c\nMOV             X0, X20                                                ; +0x68, 0x1001e1f90\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x6c, 0x1001e1f94\nMOV             X22, X0                                                ; +0x70, 0x1001e1f98\nCBNZ            X0, loc_1001E1FC8                                      ; +0x74, 0x1001e1f9c\nBL              sub_10024A15C                                          ; +0x78, 0x1001e1fa0\nMOV             X22, X0                                                ; +0x7c, 0x1001e1fa4\nLDR             W1, [X21,#0x740]                                       ; +0x80, 0x1001e1fa8\nLDR             X8, [X0]                                               ; +0x84, 0x1001e1fac\nLDR             X8, [X8,#0x48]                                         ; +0x88, 0x1001e1fb0\nBLR             X8                                                     ; +0x8c, 0x1001e1fb4\nLDRSW           X2, [X21,#0x740]                                       ; +0x90, 0x1001e1fb8\nMOV             X0, X20                                                ; +0x94, 0x1001e1fbc\nMOV             X1, X22                                                ; +0x98, 0x1001e1fc0\nBL              cocos2d__CCDictionary__setObject                       ; +0x9c, 0x1001e1fc4\nMOV             X0, X22                                                ; +0xa0, 0x1001e1fc8\nMOV             X1, X21                                                ; +0xa4, 0x1001e1fcc\nBL              sub_10024A2D0                                          ; +0xa8, 0x1001e1fd0\nADD             X23, X23, #8                                           ; +0xac, 0x1001e1fd4\nCMP             X23, X24                                               ; +0xb0, 0x1001e1fd8\nB.LS            loc_1001E1F78                                          ; +0xb4, 0x1001e1fdc\nMOV             X0, X20                                                ; +0xb8, 0x1001e1fe0\nBL              cocos2d__CCDictionary__allKeys                         ; +0xbc, 0x1001e1fe4\nMOV             X21, X0                                                ; +0xc0, 0x1001e1fe8\nLDR             X8, [X0,#0x38]                                         ; +0xc4, 0x1001e1fec\nLDR             X0, [X8,#0x10]; __base                                 ; +0xc8, 0x1001e1ff0\nLDR             W1, [X8]; __nel                                        ; +0xcc, 0x1001e1ff4\nADRL            X3, sub_1001D9B6C; __compar                            ; +0xd0, 0x1001e1ff8\nMOV             W2, #8; __width                                        ; +0xd8, 0x1001e2000\nBL              _qsort                                                 ; +0xdc, 0x1001e2004\nMOV             X0, X21                                                ; +0xe0, 0x1001e2008\nBL              sub_10024A36C                                          ; +0xe4, 0x1001e200c\nCBZ             W0, loc_1001E20D4                                      ; +0xe8, 0x1001e2010\nMOV             W22, #0                                                ; +0xec, 0x1001e2014\nADRL            X23, sub_1001D9B54                                     ; +0xf0, 0x1001e2018\nMOV             X0, X21                                                ; +0xf8, 0x1001e2020\nMOV             X1, X22                                                ; +0xfc, 0x1001e2024\nBL              sub_10024A388                                          ; +0x100, 0x1001e2028\nLDRSW           X1, [X0,#0x38]                                         ; +0x104, 0x1001e202c\nMOV             X0, X20                                                ; +0x108, 0x1001e2030\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x10c, 0x1001e2034\nMOV             X24, X0                                                ; +0x110, 0x1001e2038\nLDR             X8, [X0,#0x38]                                         ; +0x114, 0x1001e203c\nLDR             X0, [X8,#0x10]; __base                                 ; +0x118, 0x1001e2040\nLDR             W1, [X8]; __nel                                        ; +0x11c, 0x1001e2044\nMOV             W2, #8; __width                                        ; +0x120, 0x1001e2048\nMOV             X3, X23; __compar                                      ; +0x124, 0x1001e204c\nBL              _qsort                                                 ; +0x128, 0x1001e2050\nLDR             W1, [X19,#0x3358]                                      ; +0x12c, 0x1001e2054\nLDR             X8, [X24]                                              ; +0x130, 0x1001e2058\nLDR             X8, [X8,#0x48]                                         ; +0x134, 0x1001e205c\nMOV             X0, X24                                                ; +0x138, 0x1001e2060\nBLR             X8                                                     ; +0x13c, 0x1001e2064\nLDR             X0, [X19,#0x3350]                                      ; +0x140, 0x1001e2068\nLDRSW           X2, [X19,#0x3358]                                      ; +0x144, 0x1001e206c\nMOV             X1, X24                                                ; +0x148, 0x1001e2070\nBL              cocos2d__CCDictionary__setObject                       ; +0x14c, 0x1001e2074\nMOV             X0, X24                                                ; +0x150, 0x1001e2078\nBL              sub_10024A36C                                          ; +0x154, 0x1001e207c\nCBZ             W0, loc_1001E20B4                                      ; +0x158, 0x1001e2080\nMOV             W25, #0                                                ; +0x15c, 0x1001e2084\nMOV             X0, X24                                                ; +0x160, 0x1001e2088\nMOV             X1, X25                                                ; +0x164, 0x1001e208c\nBL              sub_10024A388                                          ; +0x168, 0x1001e2090\nLDR             W8, [X19,#0x3358]                                      ; +0x16c, 0x1001e2094\nSTR             W8, [X0,#0x740]                                        ; +0x170, 0x1001e2098\nSTR             W25, [X0,#0x744]                                       ; +0x174, 0x1001e209c\nADD             W25, W25, #1                                           ; +0x178, 0x1001e20a0\nMOV             X0, X24                                                ; +0x17c, 0x1001e20a4\nBL              sub_10024A36C                                          ; +0x180, 0x1001e20a8\nCMP             W25, W0                                                ; +0x184, 0x1001e20ac\nB.CC            loc_1001E2088                                          ; +0x188, 0x1001e20b0\nLDR             W8, [X19,#0x3358]                                      ; +0x18c, 0x1001e20b4\nADD             W8, W8, #1                                             ; +0x190, 0x1001e20b8\nSTR             W8, [X19,#0x3358]                                      ; +0x194, 0x1001e20bc\nADD             W22, W22, #1                                           ; +0x198, 0x1001e20c0\nMOV             X0, X21                                                ; +0x19c, 0x1001e20c4\nBL              sub_10024A36C                                          ; +0x1a0, 0x1001e20c8\nCMP             W22, W0                                                ; +0x1a4, 0x1001e20cc\nB.CC            loc_1001E2020                                          ; +0x1a8, 0x1001e20d0\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x1ac, 0x1001e20d4\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x1b0, 0x1001e20d8\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x1b4, 0x1001e20dc\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x1b8, 0x1001e20e0\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0x1bc, 0x1001e20e4\nRET                                                                    ; +0x1c0, 0x1001e20e8", "xrefs": ["GJBaseGameLayer::updateSpecialGroupData @ 0x1001dfc14", "LevelEditorLayer::init @ 0x100357740"], "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"}