{"type": "func", "start": 4296186432, "end": 4296186566, "name": "GJBaseGameLayer::addKeyframe", "pseudocode": "// \n// GJBaseGameLayer::addKeyframe from 0x100129a40 to 0x100129ac6 (134 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::addKeyframe @ 0x1000c8425\n// > <???> @ 0x100abb100\n// > <???> @ 0x100ac51c8\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 12:24:43 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::addKeyframe(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 v3; // r15\n  unsigned int v4; // r12d\n\n  *(_BYTE *)(a2 + 1881) = 1;\n  result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 13272));\n  if ( result )\n  {\n    v3 = result;\n    v4 = *(_DWORD *)(a2 + 1860);\n    if ( v4 >= (unsigned int)sub_1007FEF90(result) )\n      sub_1007FEBF0(v3, a2);\n    else\n      sub_1007FF110(v3, a2, *(unsigned int *)(a2 + 1860));\n    return GJBaseGameLayer::updateKeyframeOrder(a1, *(unsigned int *)(a2 + 1856));\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::addKeyframe from 0x100129a40 to 0x100129ac6 (134 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::addKeyframe @ 0x1000c8425\n; > <???> @ 0x100abb100\n; > <???> @ 0x100ac51c8\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 12:24:43 +0000\n; \npush    rbp                                                            ; +0x0, 0x100129a40\nmov     rbp, rsp                                                       ; +0x1, 0x100129a41\npush    r15                                                            ; +0x4, 0x100129a44\npush    r14                                                            ; +0x6, 0x100129a46\npush    r12                                                            ; +0x8, 0x100129a48\npush    rbx                                                            ; +0xa, 0x100129a4a\nmov     r14, rsi                                                       ; +0xb, 0x100129a4b\nmov     rbx, rdi                                                       ; +0xe, 0x100129a4e\nmov     byte ptr [rsi+759h], 1                                         ; +0x11, 0x100129a51\nmov     rdi, [rdi+33D8h]                                               ; +0x18, 0x100129a58\nmovsxd  rsi, dword ptr [rsi+740h]                                      ; +0x1f, 0x100129a5f\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x26, 0x100129a66\ntest    rax, rax                                                       ; +0x2b, 0x100129a6b\njz      short loc_100129A9B                                            ; +0x2e, 0x100129a6e\nmov     r15, rax                                                       ; +0x30, 0x100129a70\nmov     r12d, [r14+744h]                                               ; +0x33, 0x100129a73\nmov     rdi, rax                                                       ; +0x3a, 0x100129a7a\ncall    sub_1007FEF90                                                  ; +0x3d, 0x100129a7d\ncmp     r12d, eax                                                      ; +0x42, 0x100129a82\njnb     short loc_100129AA4                                            ; +0x45, 0x100129a85\nmov     edx, [r14+744h]                                                ; +0x47, 0x100129a87\nmov     rdi, r15                                                       ; +0x4e, 0x100129a8e\nmov     rsi, r14                                                       ; +0x51, 0x100129a91\ncall    sub_1007FF110                                                  ; +0x54, 0x100129a94\njmp     short loc_100129AAF                                            ; +0x59, 0x100129a99\npop     rbx                                                            ; +0x5b, 0x100129a9b\npop     r12                                                            ; +0x5c, 0x100129a9c\npop     r14                                                            ; +0x5e, 0x100129a9e\npop     r15                                                            ; +0x60, 0x100129aa0\npop     rbp                                                            ; +0x62, 0x100129aa2\nretn                                                                   ; +0x63, 0x100129aa3\nmov     rdi, r15                                                       ; +0x64, 0x100129aa4\nmov     rsi, r14                                                       ; +0x67, 0x100129aa7\ncall    sub_1007FEBF0                                                  ; +0x6a, 0x100129aaa\nmov     esi, [r14+740h]                                                ; +0x6f, 0x100129aaf\nmov     rdi, rbx                                                       ; +0x76, 0x100129ab6\npop     rbx                                                            ; +0x79, 0x100129ab9\npop     r12                                                            ; +0x7a, 0x100129aba\npop     r14                                                            ; +0x7c, 0x100129abc\npop     r15                                                            ; +0x7e, 0x100129abe\npop     rbp                                                            ; +0x80, 0x100129ac0\njmp     GJBaseGameLayer__updateKeyframeOrder                           ; +0x81, 0x100129ac1", "xrefs": ["LevelEditorLayer::addKeyframe @ 0x1000c8425", "<???> @ 0x100abb100", "<???> @ 0x100ac51c8"], "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"}