{"type": "func", "start": 4677138, "end": 4677214, "name": "GJBaseGameLayer::addKeyframe", "pseudocode": "// \n// GJBaseGameLayer::addKeyframe from 0x475e12 to 0x475e5e (76 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::addKeyframe @ 0x364e2c\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; // r0\n  cocos2d::CCArray *v5; // r6\n  unsigned int m_keyframeIndex; // r7\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::addObject(v5, a2);\n    else\n      cocos2d::CCArray::insertObject(v5, a2, a2->m_keyframeIndex);\n    GJBaseGameLayer::updateKeyframeOrder(a1, a2->m_keyframeGroup);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addKeyframe from 0x475e12 to 0x475e5e (76 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::addKeyframe @ 0x364e2c\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            {R3-R7,LR}                                             ; +0x0, 0x475e12\nMOVS            R3, #1                                                 ; +0x2, 0x475e14\nSTRB.W          R3, [R1,#0x685]                                        ; +0x4, 0x475e16\nMOVW            R3, #0x2C78                                            ; +0x8, 0x475e1a\nMOV             R5, R0                                                 ; +0xc, 0x475e1e\nMOV             R4, R1                                                 ; +0xe, 0x475e20\nLDR             R0, [R0,R3]; this                                      ; +0x10, 0x475e22\nLDR.W           R1, [R1,#0x66C]; int                                   ; +0x12, 0x475e24\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x16, 0x475e28\nMOV             R6, R0                                                 ; +0x1a, 0x475e2c\nCBZ             R0, locret_475E5C                                      ; +0x1c, 0x475e2e\nLDR.W           R7, [R4,#0x670]                                        ; +0x1e, 0x475e30\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x22, 0x475e34\nMOV             R1, R4; cocos2d::CCObject *                            ; +0x26, 0x475e38\nCMP             R7, R0                                                 ; +0x28, 0x475e3a\nMOV             R0, R6; this                                           ; +0x2a, 0x475e3c\nBCC             loc_475E46                                             ; +0x2c, 0x475e3e\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x2e, 0x475e40\nB               loc_475E4E                                             ; +0x32, 0x475e44\nLDR.W           R2, [R4,#0x670]; unsigned int                          ; +0x34, 0x475e46\nBL              _ZN7cocos2d7CCArray12insertObjectEPNS_8CCObjectEj; cocos2d::CCArray::insertObject(cocos2d::CCObject *,uint) ; +0x38, 0x475e4a\nMOV             R0, R5; this                                           ; +0x3c, 0x475e4e\nLDR.W           R1, [R4,#0x66C]; int                                   ; +0x3e, 0x475e50\nPOP.W           {R3-R7,LR}                                             ; +0x42, 0x475e54\nB.W             _ZN15GJBaseGameLayer19updateKeyframeOrderEi; GJBaseGameLayer::updateKeyframeOrder(int) ; +0x46, 0x475e58\nPOP             {R3-R7,PC}                                             ; +0x4a, 0x475e5c", "xrefs": ["LevelEditorLayer::addKeyframe @ 0x364e2c"], "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"}