{"type": "func", "start": 4297573852, "end": 4297574304, "name": "GJBaseGameLayer::refreshKeyframeAnims", "pseudocode": "// \n// GJBaseGameLayer::refreshKeyframeAnims from 0x10027c5dc to 0x10027c7a0 (452 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::updateSpecialGroupData @ 0x10027a250\n// > LevelEditorLayer::init @ 0x1003f72f4\n// \n// This function is hookable on this platform (idp: arm, 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:01:53 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::refreshKeyframeAnims(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x20\n  __int64 v4; // x8\n  unsigned int *v5; // x9\n  __int64 v6; // x8\n  __int64 *v7; // x23\n  unsigned __int64 v8; // x24\n  __int64 v9; // x21\n  __int64 v10; // x0\n  __int64 v11; // x22\n  __int64 v12; // x21\n  __int64 result; // x0\n  __int64 v14; // x22\n  __int64 v15; // x0\n  __int64 v16; // x0\n  __int64 v17; // x24\n  __int64 v18; // x25\n  __int64 v19; // x0\n\n  v2 = cocos2d::CCDictionary::removeAllObjects(*(_QWORD *)(a1 + 13272));\n  *(_DWORD *)(a1 + 13280) = 0;\n  v3 = cocos2d::CCDictionary::create(v2);\n  v4 = *(_QWORD *)(a1 + 3280);\n  if ( v4 )\n  {\n    v5 = *(unsigned int **)(v4 + 56);\n    v6 = *v5;\n    if ( (_DWORD)v6 )\n    {\n      v7 = *((__int64 **)v5 + 2);\n      v8 = (unsigned __int64)&v7[v6 - 1];\n      do\n      {\n        v9 = *v7;\n        if ( !*v7 )\n          break;\n        if ( *(_DWORD *)(v9 + 1028) == 3032 )\n        {\n          cocos2d::CCDictionary::objectForKey_1(v3, *(int *)(v9 + 1856));\n          v11 = v10;\n          if ( !v10 )\n          {\n            v11 = sub_1002E736C(0);\n            (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 72LL))(v11, *(unsigned int *)(v9 + 1856));\n            cocos2d::CCDictionary::setObject_1(v3, v11, *(int *)(v9 + 1856));\n          }\n          sub_1002E74E0(v11, v9);\n        }\n        ++v7;\n      }\n      while ( (unsigned __int64)v7 <= v8 );\n    }\n  }\n  v12 = cocos2d::CCDictionary::allKeys(v3);\n  qsort(\n    *(void **)(*(_QWORD *)(v12 + 56) + 16LL),\n    **(unsigned int **)(v12 + 56),\n    8u,\n    (int (__cdecl *)(const void *, const void *))sub_100273FB8);\n  result = sub_1002E757C(v12);\n  if ( (_DWORD)result )\n  {\n    v14 = 0;\n    do\n    {\n      v15 = sub_1002E75A0(v12, v14);\n      cocos2d::CCDictionary::objectForKey_1(v3, *(int *)(v15 + 56));\n      v17 = v16;\n      qsort(\n        *(void **)(*(_QWORD *)(v16 + 56) + 16LL),\n        **(unsigned int **)(v16 + 56),\n        8u,\n        (int (__cdecl *)(const void *, const void *))sub_100273FA0);\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v17 + 72LL))(v17, *(unsigned int *)(a1 + 13280));\n      cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 13272), v17, *(int *)(a1 + 13280));\n      if ( (unsigned int)sub_1002E757C(v17) )\n      {\n        v18 = 0;\n        do\n        {\n          v19 = sub_1002E75A0(v17, v18);\n          *(_DWORD *)(v19 + 1856) = *(_DWORD *)(a1 + 13280);\n          *(_DWORD *)(v19 + 1860) = v18;\n          v18 = (unsigned int)(v18 + 1);\n        }\n        while ( (unsigned int)v18 < (unsigned int)sub_1002E757C(v17) );\n      }\n      ++*(_DWORD *)(a1 + 13280);\n      v14 = (unsigned int)(v14 + 1);\n      result = sub_1002E757C(v12);\n    }\n    while ( (unsigned int)v14 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::refreshKeyframeAnims from 0x10027c5dc to 0x10027c7a0 (452 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::updateSpecialGroupData @ 0x10027a250\n; > LevelEditorLayer::init @ 0x1003f72f4\n; \n; This function is hookable on this platform (idp: arm, 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:01:53 +0000\n; \nSTP             X26, X25, [SP,#-0x10+var_40]!                          ; +0x0, 0x10027c5dc\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x10027c5e0\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x10027c5e4\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x10027c5e8\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x10027c5ec\nADD             X29, SP, #0x40                                         ; +0x14, 0x10027c5f0\nMOV             X19, X0                                                ; +0x18, 0x10027c5f4\nLDR             X0, [X0,#0x33D8]                                       ; +0x1c, 0x10027c5f8\nBL              cocos2d__CCDictionary__removeAllObjects                ; +0x20, 0x10027c5fc\nSTR             WZR, [X19,#0x33E0]                                     ; +0x24, 0x10027c600\nBL              cocos2d__CCDictionary__create                          ; +0x28, 0x10027c604\nMOV             X20, X0                                                ; +0x2c, 0x10027c608\nLDR             X8, [X19,#0xCD0]                                       ; +0x30, 0x10027c60c\nCBZ             X8, loc_10027C694                                      ; +0x34, 0x10027c610\nLDR             X9, [X8,#0x38]                                         ; +0x38, 0x10027c614\nLDR             W8, [X9]                                               ; +0x3c, 0x10027c618\nCBZ             W8, loc_10027C694                                      ; +0x40, 0x10027c61c\nLDR             X23, [X9,#0x10]                                        ; +0x44, 0x10027c620\nADD             X8, X23, X8,LSL#3                                      ; +0x48, 0x10027c624\nSUB             X24, X8, #8                                            ; +0x4c, 0x10027c628\nLDR             X21, [X23]                                             ; +0x50, 0x10027c62c\nCBZ             X21, loc_10027C694                                     ; +0x54, 0x10027c630\nLDR             W8, [X21,#0x404]                                       ; +0x58, 0x10027c634\nCMP             W8, #0xBD8                                             ; +0x5c, 0x10027c638\nB.NE            loc_10027C688                                          ; +0x60, 0x10027c63c\nLDRSW           X1, [X21,#0x740]                                       ; +0x64, 0x10027c640\nMOV             X0, X20                                                ; +0x68, 0x10027c644\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x6c, 0x10027c648\nMOV             X22, X0                                                ; +0x70, 0x10027c64c\nCBNZ            X0, loc_10027C67C                                      ; +0x74, 0x10027c650\nBL              sub_1002E736C                                          ; +0x78, 0x10027c654\nMOV             X22, X0                                                ; +0x7c, 0x10027c658\nLDR             W1, [X21,#0x740]                                       ; +0x80, 0x10027c65c\nLDR             X8, [X0]                                               ; +0x84, 0x10027c660\nLDR             X8, [X8,#0x48]                                         ; +0x88, 0x10027c664\nBLR             X8                                                     ; +0x8c, 0x10027c668\nLDRSW           X2, [X21,#0x740]                                       ; +0x90, 0x10027c66c\nMOV             X0, X20                                                ; +0x94, 0x10027c670\nMOV             X1, X22                                                ; +0x98, 0x10027c674\nBL              cocos2d__CCDictionary__setObject_1                     ; +0x9c, 0x10027c678\nMOV             X0, X22                                                ; +0xa0, 0x10027c67c\nMOV             X1, X21                                                ; +0xa4, 0x10027c680\nBL              sub_1002E74E0                                          ; +0xa8, 0x10027c684\nADD             X23, X23, #8                                           ; +0xac, 0x10027c688\nCMP             X23, X24                                               ; +0xb0, 0x10027c68c\nB.LS            loc_10027C62C                                          ; +0xb4, 0x10027c690\nMOV             X0, X20                                                ; +0xb8, 0x10027c694\nBL              cocos2d__CCDictionary__allKeys                         ; +0xbc, 0x10027c698\nMOV             X21, X0                                                ; +0xc0, 0x10027c69c\nLDR             X8, [X0,#0x38]                                         ; +0xc4, 0x10027c6a0\nLDR             X0, [X8,#0x10]; __base                                 ; +0xc8, 0x10027c6a4\nLDR             W1, [X8]; __nel                                        ; +0xcc, 0x10027c6a8\nADRL            X3, sub_100273FB8; __compar                            ; +0xd0, 0x10027c6ac\nMOV             W2, #8; __width                                        ; +0xd8, 0x10027c6b4\nBL              _qsort                                                 ; +0xdc, 0x10027c6b8\nMOV             X0, X21                                                ; +0xe0, 0x10027c6bc\nBL              sub_1002E757C                                          ; +0xe4, 0x10027c6c0\nCBZ             W0, loc_10027C788                                      ; +0xe8, 0x10027c6c4\nMOV             W22, #0                                                ; +0xec, 0x10027c6c8\nADRL            X23, sub_100273FA0                                     ; +0xf0, 0x10027c6cc\nMOV             X0, X21                                                ; +0xf8, 0x10027c6d4\nMOV             X1, X22                                                ; +0xfc, 0x10027c6d8\nBL              sub_1002E75A0                                          ; +0x100, 0x10027c6dc\nLDRSW           X1, [X0,#0x38]                                         ; +0x104, 0x10027c6e0\nMOV             X0, X20                                                ; +0x108, 0x10027c6e4\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x10c, 0x10027c6e8\nMOV             X24, X0                                                ; +0x110, 0x10027c6ec\nLDR             X8, [X0,#0x38]                                         ; +0x114, 0x10027c6f0\nLDR             X0, [X8,#0x10]; __base                                 ; +0x118, 0x10027c6f4\nLDR             W1, [X8]; __nel                                        ; +0x11c, 0x10027c6f8\nMOV             W2, #8; __width                                        ; +0x120, 0x10027c6fc\nMOV             X3, X23; __compar                                      ; +0x124, 0x10027c700\nBL              _qsort                                                 ; +0x128, 0x10027c704\nLDR             W1, [X19,#0x33E0]                                      ; +0x12c, 0x10027c708\nLDR             X8, [X24]                                              ; +0x130, 0x10027c70c\nLDR             X8, [X8,#0x48]                                         ; +0x134, 0x10027c710\nMOV             X0, X24                                                ; +0x138, 0x10027c714\nBLR             X8                                                     ; +0x13c, 0x10027c718\nLDR             X0, [X19,#0x33D8]                                      ; +0x140, 0x10027c71c\nLDRSW           X2, [X19,#0x33E0]                                      ; +0x144, 0x10027c720\nMOV             X1, X24                                                ; +0x148, 0x10027c724\nBL              cocos2d__CCDictionary__setObject_1                     ; +0x14c, 0x10027c728\nMOV             X0, X24                                                ; +0x150, 0x10027c72c\nBL              sub_1002E757C                                          ; +0x154, 0x10027c730\nCBZ             W0, loc_10027C768                                      ; +0x158, 0x10027c734\nMOV             W25, #0                                                ; +0x15c, 0x10027c738\nMOV             X0, X24                                                ; +0x160, 0x10027c73c\nMOV             X1, X25                                                ; +0x164, 0x10027c740\nBL              sub_1002E75A0                                          ; +0x168, 0x10027c744\nLDR             W8, [X19,#0x33E0]                                      ; +0x16c, 0x10027c748\nSTR             W8, [X0,#0x740]                                        ; +0x170, 0x10027c74c\nSTR             W25, [X0,#0x744]                                       ; +0x174, 0x10027c750\nADD             W25, W25, #1                                           ; +0x178, 0x10027c754\nMOV             X0, X24                                                ; +0x17c, 0x10027c758\nBL              sub_1002E757C                                          ; +0x180, 0x10027c75c\nCMP             W25, W0                                                ; +0x184, 0x10027c760\nB.CC            loc_10027C73C                                          ; +0x188, 0x10027c764\nLDR             W8, [X19,#0x33E0]                                      ; +0x18c, 0x10027c768\nADD             W8, W8, #1                                             ; +0x190, 0x10027c76c\nSTR             W8, [X19,#0x33E0]                                      ; +0x194, 0x10027c770\nADD             W22, W22, #1                                           ; +0x198, 0x10027c774\nMOV             X0, X21                                                ; +0x19c, 0x10027c778\nBL              sub_1002E757C                                          ; +0x1a0, 0x10027c77c\nCMP             W22, W0                                                ; +0x1a4, 0x10027c780\nB.CC            loc_10027C6D4                                          ; +0x1a8, 0x10027c784\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x1ac, 0x10027c788\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x1b0, 0x10027c78c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x1b4, 0x10027c790\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x1b8, 0x10027c794\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0x1bc, 0x10027c798\nRET                                                                    ; +0x1c0, 0x10027c79c", "xrefs": ["GJBaseGameLayer::updateSpecialGroupData @ 0x10027a250", "LevelEditorLayer::init @ 0x1003f72f4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}