{"type": "func", "start": 5371018256, "end": 5371018459, "name": "GJBaseGameLayer::updateKeyframeOrder", "pseudocode": "// \n// GJBaseGameLayer::updateKeyframeOrder from 0x140233c10 to 0x140233cdb (203 bytes)\n// \n// 7 xrefs:\n// > GJBaseGameLayer::addKeyframe @ 0x140233bf0\n// > LevelEditorLayer::removeSpecial @ 0x1402d83c9\n// > LevelEditorLayer::addKeyframe @ 0x1402e1857\n// > SetupKeyframePopup::onCustomButton @ 0x140426839\n// > <???> @ 0x140681114\n// > <???> @ 0x140681124\n// > <???> @ 0x1406cdfa4\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 GJBaseGameLayer::updateKeyframeOrder(GJBaseGameLayer *a1, int a2)\n{\n  cocos2d::CCArray *v2; // rax\n  cocos2d::CCArray *v3; // rsi\n  struct cocos2d::CCObject *v4; // rax\n  unsigned int v5; // ebx\n  int m_uIndexInArray_high; // r14d\n  char v7; // bp\n  int i; // edi\n  struct cocos2d::CCObject *v9; // rax\n\n  v2 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_keyframeGroups, a2);\n  v3 = v2;\n  if ( v2 )\n  {\n    if ( cocos2d::CCArray::count(v2) )\n    {\n      v4 = cocos2d::CCArray::objectAtIndex(v3, 0);\n      v5 = 0;\n      m_uIndexInArray_high = SHIWORD(v4[21].m_uIndexInArray);\n      v7 = BYTE2(v4[33].m_uOrderOfArrival);\n      for ( i = m_uIndexInArray_high + 1; v5 < cocos2d::CCArray::count(v3); ++v5 )\n      {\n        v9 = cocos2d::CCArray::objectAtIndex(v3, v5);\n        v9[33].m_eObjType = v5;\n        BYTE2(v9[33].m_uOrderOfArrival) = v7;\n        if ( v7 )\n        {\n          LOWORD(v9[21].m_uUnknown) = i++;\n          HIWORD(v9[21].m_uIndexInArray) = m_uIndexInArray_high;\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateKeyframeOrder from 0x140233c10 to 0x140233cdb (203 bytes)\n; \n; 7 xrefs:\n; > GJBaseGameLayer::addKeyframe @ 0x140233bf0\n; > LevelEditorLayer::removeSpecial @ 0x1402d83c9\n; > LevelEditorLayer::addKeyframe @ 0x1402e1857\n; > SetupKeyframePopup::onCustomButton @ 0x140426839\n; > <???> @ 0x140681114\n; > <???> @ 0x140681124\n; > <???> @ 0x1406cdfa4\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    rsi                                                            ; +0x0, 0x140233c10\nsub     rsp, 20h                                                       ; +0x2, 0x140233c12\nmov     rcx, [rcx+3530h]                                               ; +0x6, 0x140233c16\nmovsxd  rdx, edx                                                       ; +0xd, 0x140233c1d\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x10, 0x140233c20\nmov     rsi, rax                                                       ; +0x16, 0x140233c26\ntest    rax, rax                                                       ; +0x19, 0x140233c29\njz      loc_140233CD5                                                  ; +0x1c, 0x140233c2c\nmov     rcx, rax                                                       ; +0x22, 0x140233c32\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x25, 0x140233c35\ntest    eax, eax                                                       ; +0x2b, 0x140233c3b\njz      loc_140233CD5                                                  ; +0x2d, 0x140233c3d\nmov     [rsp+28h+arg_0], rbx                                           ; +0x33, 0x140233c43\nxor     edx, edx                                                       ; +0x38, 0x140233c48\nmov     [rsp+28h+arg_8], rbp                                           ; +0x3a, 0x140233c4a\nmov     rcx, rsi                                                       ; +0x3f, 0x140233c4f\nmov     [rsp+28h+arg_10], rdi                                          ; +0x42, 0x140233c52\nmov     [rsp+28h+arg_18], r14                                          ; +0x47, 0x140233c57\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4c, 0x140233c5c\nmov     rcx, rsi                                                       ; +0x52, 0x140233c62\nxor     ebx, ebx                                                       ; +0x55, 0x140233c65\nmovsx   r14d, word ptr [rax+4BAh]                                      ; +0x57, 0x140233c67\nmovzx   ebp, byte ptr [rax+76Ah]                                       ; +0x5f, 0x140233c6f\nlea     edi, [r14+1]                                                   ; +0x66, 0x140233c76\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6a, 0x140233c7a\ntest    eax, eax                                                       ; +0x70, 0x140233c80\njz      short loc_140233CC1                                            ; +0x72, 0x140233c82\nmov     edx, ebx                                                       ; +0x74, 0x140233c84\nmov     rcx, rsi                                                       ; +0x76, 0x140233c86\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x79, 0x140233c89\nmov     [rax+754h], ebx                                                ; +0x7f, 0x140233c8f\nmov     [rax+76Ah], bpl                                                ; +0x85, 0x140233c95\ntest    bpl, bpl                                                       ; +0x8c, 0x140233c9c\njz      short loc_140233CB2                                            ; +0x8f, 0x140233c9f\nmov     [rax+4BCh], di                                                 ; +0x91, 0x140233ca1\ninc     edi                                                            ; +0x98, 0x140233ca8\nmov     [rax+4BAh], r14w                                               ; +0x9a, 0x140233caa\nmov     rcx, rsi                                                       ; +0xa2, 0x140233cb2\ninc     ebx                                                            ; +0xa5, 0x140233cb5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa7, 0x140233cb7\ncmp     ebx, eax                                                       ; +0xad, 0x140233cbd\njb      short loc_140233C84                                            ; +0xaf, 0x140233cbf\nmov     rdi, [rsp+28h+arg_10]                                          ; +0xb1, 0x140233cc1\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xb6, 0x140233cc6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xbb, 0x140233ccb\nmov     r14, [rsp+28h+arg_18]                                          ; +0xc0, 0x140233cd0\nadd     rsp, 20h                                                       ; +0xc5, 0x140233cd5\npop     rsi                                                            ; +0xc9, 0x140233cd9\nretn                                                                   ; +0xca, 0x140233cda", "xrefs": ["GJBaseGameLayer::addKeyframe @ 0x140233bf0", "LevelEditorLayer::removeSpecial @ 0x1402d83c9", "LevelEditorLayer::addKeyframe @ 0x1402e1857", "SetupKeyframePopup::onCustomButton @ 0x140426839", "<???> @ 0x140681114", "<???> @ 0x140681124", "<???> @ 0x1406cdfa4"], "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"}