{"type": "func", "start": 5371018112, "end": 5371018250, "name": "GJBaseGameLayer::addKeyframe", "pseudocode": "// \n// GJBaseGameLayer::addKeyframe from 0x140233b80 to 0x140233c0a (138 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1405670e8\n// > <???> @ 0x1405c9cd0\n// > <???> @ 0x1406810e4\n// > <???> @ 0x1406810f4\n// > <???> @ 0x1406cdf74\n// > <???> @ 0x1406cdf80\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::addKeyframe(GJBaseGameLayer *a1, KeyframeGameObject *a2)\n{\n  cocos2d::CCArray *v4; // rax\n  cocos2d::CCArray *v5; // rdi\n  unsigned int m_keyframeIndex; // esi\n\n  a2->m_keyframeActive = 1;\n  v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_keyframeGroups, a2->m_keyframeGroup);\n  v5 = v4;\n  if ( v4 )\n  {\n    m_keyframeIndex = a2->m_keyframeIndex;\n    if ( m_keyframeIndex < cocos2d::CCArray::count(v4) )\n      cocos2d::CCArray::insertObject(v5, a2, m_keyframeIndex);\n    else\n      cocos2d::CCArray::addObject(v5, a2);\n    GJBaseGameLayer::updateKeyframeOrder(a1, a2->m_keyframeGroup);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addKeyframe from 0x140233b80 to 0x140233c0a (138 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1405670e8\n; > <???> @ 0x1405c9cd0\n; > <???> @ 0x1406810e4\n; > <???> @ 0x1406810f4\n; > <???> @ 0x1406cdf74\n; > <???> @ 0x1406cdf80\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140233b80\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140233b85\npush    rdi                                                            ; +0xa, 0x140233b8a\nsub     rsp, 20h                                                       ; +0xb, 0x140233b8b\nmov     byte ptr [rdx+769h], 1                                         ; +0xf, 0x140233b8f\nmov     rbx, rdx                                                       ; +0x16, 0x140233b96\nmovsxd  rdx, dword ptr [rdx+750h]                                      ; +0x19, 0x140233b99\nmov     rbp, rcx                                                       ; +0x20, 0x140233ba0\nmov     rcx, [rcx+3530h]                                               ; +0x23, 0x140233ba3\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x2a, 0x140233baa\nmov     rdi, rax                                                       ; +0x30, 0x140233bb0\ntest    rax, rax                                                       ; +0x33, 0x140233bb3\njz      short loc_140233BFA                                            ; +0x36, 0x140233bb6\nmov     [rsp+28h+arg_0], rsi                                           ; +0x38, 0x140233bb8\nmov     rcx, rax                                                       ; +0x3d, 0x140233bbd\nmov     esi, [rbx+754h]                                                ; +0x40, 0x140233bc0\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x46, 0x140233bc6\nmov     rdx, rbx                                                       ; +0x4c, 0x140233bcc\nmov     rcx, rdi                                                       ; +0x4f, 0x140233bcf\ncmp     esi, eax                                                       ; +0x52, 0x140233bd2\njb      short loc_140233BDE                                            ; +0x54, 0x140233bd4\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x56, 0x140233bd6\njmp     short loc_140233BE7                                            ; +0x5c, 0x140233bdc\nmov     r8d, esi                                                       ; +0x5e, 0x140233bde\ncall    cs:?insertObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@I@Z; cocos2d::CCArray::insertObject(cocos2d::CCObject *,uint) ; +0x61, 0x140233be1\nmov     edx, [rbx+750h]                                                ; +0x67, 0x140233be7\nmov     rcx, rbp                                                       ; +0x6d, 0x140233bed\ncall    GJBaseGameLayer__updateKeyframeOrder                           ; +0x70, 0x140233bf0\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x75, 0x140233bf5\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x7a, 0x140233bfa\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x7f, 0x140233bff\nadd     rsp, 20h                                                       ; +0x84, 0x140233c04\npop     rdi                                                            ; +0x88, 0x140233c08\nretn                                                                   ; +0x89, 0x140233c09", "xrefs": ["<???> @ 0x1405670e8", "<???> @ 0x1405c9cd0", "<???> @ 0x1406810e4", "<???> @ 0x1406810f4", "<???> @ 0x1406cdf74", "<???> @ 0x1406cdf80"], "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"}