{"type": "func", "start": 4727214, "end": 4727248, "name": "EditorUI::addSnapPosition", "pseudocode": "// \n// EditorUI::addSnapPosition from 0x4821ae to 0x4821d0 (34 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onCreateObject @ 0x487412\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:23 +0000\n// \n\nint __fastcall EditorUI::addSnapPosition(cocos2d::CCArray **a1, int a2)\n{\n  cocos2d::CCObject *v4; // r4\n\n  v4 = (cocos2d::CCObject *)cocos2d::CCNode::create((cocos2d::CCNode *)a1);\n  (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v4 + 92))(v4, a2);\n  return cocos2d::CCArray::addObject(a1[164], v4);\n}", "assembly": "; \n; EditorUI::addSnapPosition from 0x4821ae to 0x4821d0 (34 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onCreateObject @ 0x487412\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:23 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x4821ae\nMOV             R5, R0                                                 ; +0x2, 0x4821b0\nMOV             R6, R1                                                 ; +0x4, 0x4821b2\nBL              _ZN7cocos2d6CCNode6createEv; cocos2d::CCNode::create(void) ; +0x6, 0x4821b4\nMOV             R1, R6                                                 ; +0xa, 0x4821b8\nLDR             R3, [R0]                                               ; +0xc, 0x4821ba\nMOV             R4, R0                                                 ; +0xe, 0x4821bc\nLDR             R3, [R3,#0x5C]                                         ; +0x10, 0x4821be\nBLX             R3                                                     ; +0x12, 0x4821c0\nLDR.W           R0, [R5,#0x290]; this                                  ; +0x14, 0x4821c2\nMOV             R1, R4; cocos2d::CCObject *                            ; +0x18, 0x4821c6\nPOP.W           {R4-R6,LR}                                             ; +0x1a, 0x4821c8\nB.W             _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x1e, 0x4821cc", "xrefs": ["EditorUI::onCreateObject @ 0x487412"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}