{"type": "func", "start": 5372102736, "end": 5372102874, "name": "GJBaseGameLayer::addKeyframe", "pseudocode": "// \n// GJBaseGameLayer::addKeyframe from 0x14033c850 to 0x14033c8da (138 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x14076b8c8\n// > <???> @ 0x1407d5f28\n// > <???> @ 0x1408b7308\n// > <???> @ 0x1408b7318\n// > <???> @ 0x14091fbb0\n// > <???> @ 0x14091fbbc\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\ncocos2d::CCArray *__fastcall GJBaseGameLayer::addKeyframe(__int64 a1, __int64 a2)\n{\n  cocos2d::CCArray *result; // rax\n  cocos2d::CCArray *v5; // rdi\n  unsigned int v6; // esi\n\n  *(_BYTE *)(a2 + 1897) = 1;\n  result = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 13872), *(int *)(a2 + 1872));\n  v5 = result;\n  if ( result )\n  {\n    v6 = *(_DWORD *)(a2 + 1876);\n    if ( v6 < cocos2d::CCArray::count(result) )\n      cocos2d::CCArray::insertObject(v5, (struct cocos2d::CCObject *)a2, v6);\n    else\n      cocos2d::CCArray::addObject(v5, (struct cocos2d::CCObject *)a2);\n    return (cocos2d::CCArray *)GJBaseGameLayer::updateKeyframeOrder(a1, *(unsigned int *)(a2 + 1872));\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::addKeyframe from 0x14033c850 to 0x14033c8da (138 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x14076b8c8\n; > <???> @ 0x1407d5f28\n; > <???> @ 0x1408b7308\n; > <???> @ 0x1408b7318\n; > <???> @ 0x14091fbb0\n; > <???> @ 0x14091fbbc\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; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14033c850\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14033c855\npush    rdi                                                            ; +0xa, 0x14033c85a\nsub     rsp, 20h                                                       ; +0xb, 0x14033c85b\nmov     byte ptr [rdx+769h], 1                                         ; +0xf, 0x14033c85f\nmov     rbx, rdx                                                       ; +0x16, 0x14033c866\nmovsxd  rdx, dword ptr [rdx+750h]                                      ; +0x19, 0x14033c869\nmov     rbp, rcx                                                       ; +0x20, 0x14033c870\nmov     rcx, [rcx+3630h]                                               ; +0x23, 0x14033c873\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x2a, 0x14033c87a\nmov     rdi, rax                                                       ; +0x30, 0x14033c880\ntest    rax, rax                                                       ; +0x33, 0x14033c883\njz      short loc_14033C8CA                                            ; +0x36, 0x14033c886\nmov     [rsp+28h+arg_0], rsi                                           ; +0x38, 0x14033c888\nmov     rcx, rax                                                       ; +0x3d, 0x14033c88d\nmov     esi, [rbx+754h]                                                ; +0x40, 0x14033c890\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x46, 0x14033c896\nmov     rdx, rbx                                                       ; +0x4c, 0x14033c89c\nmov     rcx, rdi                                                       ; +0x4f, 0x14033c89f\ncmp     esi, eax                                                       ; +0x52, 0x14033c8a2\njb      short loc_14033C8AE                                            ; +0x54, 0x14033c8a4\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x56, 0x14033c8a6\njmp     short loc_14033C8B7                                            ; +0x5c, 0x14033c8ac\nmov     r8d, esi                                                       ; +0x5e, 0x14033c8ae\ncall    cs:?insertObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@I@Z; cocos2d::CCArray::insertObject(cocos2d::CCObject *,uint) ; +0x61, 0x14033c8b1\nmov     edx, [rbx+750h]                                                ; +0x67, 0x14033c8b7\nmov     rcx, rbp                                                       ; +0x6d, 0x14033c8bd\ncall    GJBaseGameLayer__updateKeyframeOrder                           ; +0x70, 0x14033c8c0\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x75, 0x14033c8c5\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x7a, 0x14033c8ca\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x7f, 0x14033c8cf\nadd     rsp, 20h                                                       ; +0x84, 0x14033c8d4\npop     rdi                                                            ; +0x88, 0x14033c8d8\nretn                                                                   ; +0x89, 0x14033c8d9", "xrefs": ["<???> @ 0x14076b8c8", "<???> @ 0x1407d5f28", "<???> @ 0x1408b7308", "<???> @ 0x1408b7318", "<???> @ 0x14091fbb0", "<???> @ 0x14091fbbc"], "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"}