{"type": "func", "start": 5372102880, "end": 5372103083, "name": "GJBaseGameLayer::updateKeyframeOrder", "pseudocode": "// \n// GJBaseGameLayer::updateKeyframeOrder from 0x14033c8e0 to 0x14033c9ab (203 bytes)\n// \n// 7 xrefs:\n// > GJBaseGameLayer::addKeyframe @ 0x14033c8c0\n// > LevelEditorLayer::removeSpecial @ 0x1403f534c\n// > LevelEditorLayer::addKeyframe @ 0x1404013c7\n// > SetupKeyframePopup::onCustomButton @ 0x1405bbd49\n// > <???> @ 0x1408b7338\n// > <???> @ 0x1408b7348\n// > <???> @ 0x14091fbe0\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:30:37 +0000\n// \n\nint __fastcall GJBaseGameLayer::updateKeyframeOrder(__int64 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 v6; // r14d\n  char v7; // bp\n  int v8; // edi\n  struct cocos2d::CCObject *v9; // rax\n\n  v2 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 13872), a2);\n  v3 = v2;\n  if ( v2 )\n  {\n    LODWORD(v2) = cocos2d::CCArray::count(v2);\n    if ( (_DWORD)v2 )\n    {\n      v4 = cocos2d::CCArray::objectAtIndex(v3, 0);\n      v5 = 0;\n      v6 = *((__int16 *)v4 + 605);\n      v7 = *((_BYTE *)v4 + 1898);\n      v8 = v6 + 1;\n      for ( LODWORD(v2) = cocos2d::CCArray::count(v3); v5 < (unsigned int)v2; LODWORD(v2) = cocos2d::CCArray::count(v3) )\n      {\n        v9 = cocos2d::CCArray::objectAtIndex(v3, v5);\n        *((_DWORD *)v9 + 469) = v5;\n        *((_BYTE *)v9 + 1898) = v7;\n        if ( v7 )\n        {\n          *((_WORD *)v9 + 606) = v8++;\n          *((_WORD *)v9 + 605) = v6;\n        }\n        ++v5;\n      }\n    }\n  }\n  return (int)v2;\n}", "assembly": "; \n; GJBaseGameLayer::updateKeyframeOrder from 0x14033c8e0 to 0x14033c9ab (203 bytes)\n; \n; 7 xrefs:\n; > GJBaseGameLayer::addKeyframe @ 0x14033c8c0\n; > LevelEditorLayer::removeSpecial @ 0x1403f534c\n; > LevelEditorLayer::addKeyframe @ 0x1404013c7\n; > SetupKeyframePopup::onCustomButton @ 0x1405bbd49\n; > <???> @ 0x1408b7338\n; > <???> @ 0x1408b7348\n; > <???> @ 0x14091fbe0\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:30:37 +0000\n; \npush    rsi                                                            ; +0x0, 0x14033c8e0\nsub     rsp, 20h                                                       ; +0x2, 0x14033c8e2\nmov     rcx, [rcx+3630h]                                               ; +0x6, 0x14033c8e6\nmovsxd  rdx, edx                                                       ; +0xd, 0x14033c8ed\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x10, 0x14033c8f0\nmov     rsi, rax                                                       ; +0x16, 0x14033c8f6\ntest    rax, rax                                                       ; +0x19, 0x14033c8f9\njz      loc_14033C9A5                                                  ; +0x1c, 0x14033c8fc\nmov     rcx, rax                                                       ; +0x22, 0x14033c902\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x25, 0x14033c905\ntest    eax, eax                                                       ; +0x2b, 0x14033c90b\njz      loc_14033C9A5                                                  ; +0x2d, 0x14033c90d\nmov     [rsp+28h+arg_0], rbx                                           ; +0x33, 0x14033c913\nxor     edx, edx                                                       ; +0x38, 0x14033c918\nmov     [rsp+28h+arg_8], rbp                                           ; +0x3a, 0x14033c91a\nmov     rcx, rsi                                                       ; +0x3f, 0x14033c91f\nmov     [rsp+28h+arg_10], rdi                                          ; +0x42, 0x14033c922\nmov     [rsp+28h+arg_18], r14                                          ; +0x47, 0x14033c927\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4c, 0x14033c92c\nmov     rcx, rsi                                                       ; +0x52, 0x14033c932\nxor     ebx, ebx                                                       ; +0x55, 0x14033c935\nmovsx   r14d, word ptr [rax+4BAh]                                      ; +0x57, 0x14033c937\nmovzx   ebp, byte ptr [rax+76Ah]                                       ; +0x5f, 0x14033c93f\nlea     edi, [r14+1]                                                   ; +0x66, 0x14033c946\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6a, 0x14033c94a\ntest    eax, eax                                                       ; +0x70, 0x14033c950\njz      short loc_14033C991                                            ; +0x72, 0x14033c952\nmov     edx, ebx                                                       ; +0x74, 0x14033c954\nmov     rcx, rsi                                                       ; +0x76, 0x14033c956\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x79, 0x14033c959\nmov     [rax+754h], ebx                                                ; +0x7f, 0x14033c95f\nmov     [rax+76Ah], bpl                                                ; +0x85, 0x14033c965\ntest    bpl, bpl                                                       ; +0x8c, 0x14033c96c\njz      short loc_14033C982                                            ; +0x8f, 0x14033c96f\nmov     [rax+4BCh], di                                                 ; +0x91, 0x14033c971\ninc     edi                                                            ; +0x98, 0x14033c978\nmov     [rax+4BAh], r14w                                               ; +0x9a, 0x14033c97a\nmov     rcx, rsi                                                       ; +0xa2, 0x14033c982\ninc     ebx                                                            ; +0xa5, 0x14033c985\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa7, 0x14033c987\ncmp     ebx, eax                                                       ; +0xad, 0x14033c98d\njb      short loc_14033C954                                            ; +0xaf, 0x14033c98f\nmov     rdi, [rsp+28h+arg_10]                                          ; +0xb1, 0x14033c991\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xb6, 0x14033c996\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xbb, 0x14033c99b\nmov     r14, [rsp+28h+arg_18]                                          ; +0xc0, 0x14033c9a0\nadd     rsp, 20h                                                       ; +0xc5, 0x14033c9a5\npop     rsi                                                            ; +0xc9, 0x14033c9a9\nretn                                                                   ; +0xca, 0x14033c9aa", "xrefs": ["GJBaseGameLayer::addKeyframe @ 0x14033c8c0", "LevelEditorLayer::removeSpecial @ 0x1403f534c", "LevelEditorLayer::addKeyframe @ 0x1404013c7", "SetupKeyframePopup::onCustomButton @ 0x1405bbd49", "<???> @ 0x1408b7338", "<???> @ 0x1408b7348", "<???> @ 0x14091fbe0"], "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"}