; ; EditorUI::repositionObjectsToCenter from 0x1401142c0 to 0x140114360 (160 bytes) ; ; 10 xrefs: ; > EditorUI::spriteFromObjectString @ 0x14010e0f8 ; > EditorUI::onCreateObject @ 0x14010fd1a ; > EditorUI::doPasteObjects @ 0x140113573 ; > EditorUI::createSmartObjectsFromTemplate @ 0x140117453 ; > EditorUI::createSmartObjectsFromTemplate @ 0x1401174d1 ; > EditorUI::createPrefab @ 0x140117d1a ; > SetupSmartBlockLayer::onPasteTemplate @ 0x140458042 ; > @ 0x14066f460 ; > @ 0x14066f470 ; > @ 0x1406c90b4 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x1401142c0 mov [rsp+arg_10], rbp ; +0x5, 0x1401142c5 push rsi ; +0xa, 0x1401142ca sub rsp, 40h ; +0xb, 0x1401142cb mov rbx, r8 ; +0xf, 0x1401142cf mov rsi, rdx ; +0x12, 0x1401142d2 mov r8, rdx ; +0x15, 0x1401142d5 mov rbp, rcx ; +0x18, 0x1401142d8 lea rdx, [rsp+48h+var_28] ; +0x1b, 0x1401142db call EditorUI__getGroupCenter ; +0x20, 0x1401142e0 lea r8, [rsp+48h+var_28] ; +0x25, 0x1401142e5 mov rcx, rbx ; +0x2a, 0x1401142ea lea rdx, [rsp+48h+var_20] ; +0x2d, 0x1401142ed call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x32, 0x1401142f2 mov rcx, rsi ; +0x38, 0x1401142f8 xor ebx, ebx ; +0x3b, 0x1401142fb call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3d, 0x1401142fd test eax, eax ; +0x43, 0x140114303 jz short loc_140114350 ; +0x45, 0x140114305 mov [rsp+48h+arg_0], rdi ; +0x47, 0x140114307 nop dword ptr [rax+00h] ; +0x4c, 0x14011430c mov edx, ebx ; +0x50, 0x140114310 mov rcx, rsi ; +0x52, 0x140114312 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x55, 0x140114315 lea rdx, [rsp+48h+var_20] ; +0x5b, 0x14011431b mov rdi, rax ; +0x60, 0x140114320 lea rcx, [rsp+48h+var_18] ; +0x63, 0x140114323 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x68, 0x140114328 mov rdx, rdi ; +0x6e, 0x14011432e mov rcx, rbp ; +0x71, 0x140114331 mov r8, rax ; +0x74, 0x140114334 call EditorUI__moveObject ; +0x77, 0x140114337 mov rcx, rsi ; +0x7c, 0x14011433c inc ebx ; +0x7f, 0x14011433f call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x81, 0x140114341 cmp ebx, eax ; +0x87, 0x140114347 jb short loc_140114310 ; +0x89, 0x140114349 mov rdi, [rsp+48h+arg_0] ; +0x8b, 0x14011434b mov rbx, [rsp+48h+arg_8] ; +0x90, 0x140114350 mov rbp, [rsp+48h+arg_10] ; +0x95, 0x140114355 add rsp, 40h ; +0x9a, 0x14011435a pop rsi ; +0x9e, 0x14011435e retn ; +0x9f, 0x14011435f