{"type": "func", "start": 4296324896, "end": 4296325030, "name": "GJBaseGameLayer::addKeyframe", "pseudocode": "// \n// GJBaseGameLayer::addKeyframe from 0x10014b720 to 0x10014b7a6 (134 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::addKeyframe @ 0x1000f4465\n// > <???> @ 0x1008b7420\n// > <???> @ 0x1008c19a0\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::addKeyframe(GJBaseGameLayer *a1, KeyframeGameObject *a2)\n{\n  cocos2d::CCObject *v2; // rax\n  cocos2d::CCObject *v3; // r15\n  unsigned int m_keyframeIndex; // r12d\n\n  a2->m_keyframeActive = 1;\n  v2 = cocos2d::CCDictionary::objectForKey(a1->m_keyframeGroups, a2->m_keyframeGroup);\n  if ( v2 )\n  {\n    v3 = v2;\n    m_keyframeIndex = a2->m_keyframeIndex;\n    if ( m_keyframeIndex >= (unsigned int)sub_100720070(v2) )\n      sub_10071FCD0(v3, a2);\n    else\n      sub_1007201F0(v3, a2, (unsigned int)a2->m_keyframeIndex);\n    GJBaseGameLayer::updateKeyframeOrder(a1, a2->m_keyframeGroup);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addKeyframe from 0x10014b720 to 0x10014b7a6 (134 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::addKeyframe @ 0x1000f4465\n; > <???> @ 0x1008b7420\n; > <???> @ 0x1008c19a0\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    rbp                                                            ; +0x0, 0x10014b720\nmov     rbp, rsp                                                       ; +0x1, 0x10014b721\npush    r15                                                            ; +0x4, 0x10014b724\npush    r14                                                            ; +0x6, 0x10014b726\npush    r12                                                            ; +0x8, 0x10014b728\npush    rbx                                                            ; +0xa, 0x10014b72a\nmov     r14, rsi                                                       ; +0xb, 0x10014b72b\nmov     rbx, rdi                                                       ; +0xe, 0x10014b72e\nmov     byte ptr [rsi+759h], 1                                         ; +0x11, 0x10014b731\nmov     rdi, [rdi+3320h]                                               ; +0x18, 0x10014b738\nmovsxd  rsi, dword ptr [rsi+740h]                                      ; +0x1f, 0x10014b73f\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x26, 0x10014b746\ntest    rax, rax                                                       ; +0x2b, 0x10014b74b\njz      short loc_10014B77B                                            ; +0x2e, 0x10014b74e\nmov     r15, rax                                                       ; +0x30, 0x10014b750\nmov     r12d, [r14+744h]                                               ; +0x33, 0x10014b753\nmov     rdi, rax                                                       ; +0x3a, 0x10014b75a\ncall    sub_100720070                                                  ; +0x3d, 0x10014b75d\ncmp     r12d, eax                                                      ; +0x42, 0x10014b762\njnb     short loc_10014B784                                            ; +0x45, 0x10014b765\nmov     edx, [r14+744h]                                                ; +0x47, 0x10014b767\nmov     rdi, r15                                                       ; +0x4e, 0x10014b76e\nmov     rsi, r14                                                       ; +0x51, 0x10014b771\ncall    sub_1007201F0                                                  ; +0x54, 0x10014b774\njmp     short loc_10014B78F                                            ; +0x59, 0x10014b779\npop     rbx                                                            ; +0x5b, 0x10014b77b\npop     r12                                                            ; +0x5c, 0x10014b77c\npop     r14                                                            ; +0x5e, 0x10014b77e\npop     r15                                                            ; +0x60, 0x10014b780\npop     rbp                                                            ; +0x62, 0x10014b782\nretn                                                                   ; +0x63, 0x10014b783\nmov     rdi, r15                                                       ; +0x64, 0x10014b784\nmov     rsi, r14                                                       ; +0x67, 0x10014b787\ncall    sub_10071FCD0                                                  ; +0x6a, 0x10014b78a\nmov     esi, [r14+740h]                                                ; +0x6f, 0x10014b78f\nmov     rdi, rbx                                                       ; +0x76, 0x10014b796\npop     rbx                                                            ; +0x79, 0x10014b799\npop     r12                                                            ; +0x7a, 0x10014b79a\npop     r14                                                            ; +0x7c, 0x10014b79c\npop     r15                                                            ; +0x7e, 0x10014b79e\npop     rbp                                                            ; +0x80, 0x10014b7a0\njmp     GJBaseGameLayer__updateKeyframeOrder                           ; +0x81, 0x10014b7a1", "xrefs": ["LevelEditorLayer::addKeyframe @ 0x1000f4465", "<???> @ 0x1008b7420", "<???> @ 0x1008c19a0"], "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"}