{"type": "func", "start": 4297684312, "end": 4297684452, "name": "GJBaseGameLayer::addKeyframe", "pseudocode": "// \n// GJBaseGameLayer::addKeyframe from 0x100297558 to 0x1002975e4 (140 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::addKeyframe @ 0x100406348\n// > <???> @ 0x1008dfa18\n// > <???> @ 0x1009190a0\n// \n// This function is hookable on this platform (idp: arm, 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:02:06 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::addKeyframe(__int64 a1, __int64 a2)\n{\n  __int64 v4; // x0\n  __int64 v5; // x21\n  unsigned int v6; // w22\n  __n128 v7; // q0\n\n  *(_BYTE *)(a2 + 1881) = 1;\n  cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 13272), *(int *)(a2 + 1856));\n  if ( v4 )\n  {\n    v5 = v4;\n    v6 = *(_DWORD *)(a2 + 1860);\n    if ( v6 >= (unsigned int)sub_1002E757C(v4) )\n      v7 = sub_1002E74E0(v5, a2);\n    else\n      sub_1002E7640(v5, a2, *(unsigned int *)(a2 + 1860));\n    GJBaseGameLayer::updateKeyframeOrder(a1, *(unsigned int *)(a2 + 1856), v7);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addKeyframe from 0x100297558 to 0x1002975e4 (140 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::addKeyframe @ 0x100406348\n; > <???> @ 0x1008dfa18\n; > <???> @ 0x1009190a0\n; \n; This function is hookable on this platform (idp: arm, 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:02:06 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100297558\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10029755c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100297560\nADD             X29, SP, #0x20                                         ; +0xc, 0x100297564\nMOV             X20, X1                                                ; +0x10, 0x100297568\nMOV             X19, X0                                                ; +0x14, 0x10029756c\nMOV             W8, #1                                                 ; +0x18, 0x100297570\nSTRB            W8, [X1,#0x759]                                        ; +0x1c, 0x100297574\nLDR             X0, [X0,#0x33D8]                                       ; +0x20, 0x100297578\nLDRSW           X1, [X1,#0x740]                                        ; +0x24, 0x10029757c\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x28, 0x100297580\nCBZ             X0, loc_1002975B0                                      ; +0x2c, 0x100297584\nMOV             X21, X0                                                ; +0x30, 0x100297588\nLDR             W22, [X20,#0x744]                                      ; +0x34, 0x10029758c\nBL              sub_1002E757C                                          ; +0x38, 0x100297590\nCMP             W22, W0                                                ; +0x3c, 0x100297594\nB.CS            loc_1002975C0                                          ; +0x40, 0x100297598\nLDR             W2, [X20,#0x744]                                       ; +0x44, 0x10029759c\nMOV             X0, X21                                                ; +0x48, 0x1002975a0\nMOV             X1, X20                                                ; +0x4c, 0x1002975a4\nBL              sub_1002E7640                                          ; +0x50, 0x1002975a8\nB               loc_1002975CC                                          ; +0x54, 0x1002975ac\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x58, 0x1002975b0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x5c, 0x1002975b4\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x60, 0x1002975b8\nRET                                                                    ; +0x64, 0x1002975bc\nMOV             X0, X21                                                ; +0x68, 0x1002975c0\nMOV             X1, X20                                                ; +0x6c, 0x1002975c4\nBL              sub_1002E74E0                                          ; +0x70, 0x1002975c8\nLDR             W1, [X20,#0x740]                                       ; +0x74, 0x1002975cc\nMOV             X0, X19                                                ; +0x78, 0x1002975d0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x7c, 0x1002975d4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x80, 0x1002975d8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x84, 0x1002975dc\nB               GJBaseGameLayer__updateKeyframeOrder                   ; +0x88, 0x1002975e0", "xrefs": ["LevelEditorLayer::addKeyframe @ 0x100406348", "<???> @ 0x1008dfa18", "<???> @ 0x1009190a0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}