; ; EditorUI::repositionObjectsToCenter from 0x1401c73f0 to 0x1401c7490 (160 bytes) ; ; 11 xrefs: ; > EditorUI::onCreateObject @ 0x1401b3094 ; > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6e8e ; > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6f0f ; > EditorUI::createPrefab @ 0x1401b76bb ; > EditorUI::doPasteObjects @ 0x1401c60dd ; > EditorUI::spriteFromObjectString @ 0x1401f0b06 ; > SetupSmartBlockLayer::onPasteTemplate @ 0x1405ed9d8 ; > @ 0x1408a2c08 ; > @ 0x1408a2c18 ; > @ 0x14091a7a4 ; > @ 0x14091a7b0 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:28:05 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1401c73f0 mov [rsp+arg_10], rbp ; +0x5, 0x1401c73f5 push rsi ; +0xa, 0x1401c73fa sub rsp, 40h ; +0xb, 0x1401c73fb mov rbx, r8 ; +0xf, 0x1401c73ff mov rsi, rdx ; +0x12, 0x1401c7402 mov r8, rdx ; +0x15, 0x1401c7405 mov rbp, rcx ; +0x18, 0x1401c7408 lea rdx, [rsp+48h+var_28] ; +0x1b, 0x1401c740b call EditorUI__getGroupCenter ; +0x20, 0x1401c7410 lea r8, [rsp+48h+var_28] ; +0x25, 0x1401c7415 mov rcx, rbx ; +0x2a, 0x1401c741a lea rdx, [rsp+48h+var_20] ; +0x2d, 0x1401c741d call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x32, 0x1401c7422 mov rcx, rsi ; +0x38, 0x1401c7428 xor ebx, ebx ; +0x3b, 0x1401c742b call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3d, 0x1401c742d test eax, eax ; +0x43, 0x1401c7433 jz short loc_1401C7480 ; +0x45, 0x1401c7435 mov [rsp+48h+arg_0], rdi ; +0x47, 0x1401c7437 nop dword ptr [rax+00h] ; +0x4c, 0x1401c743c mov edx, ebx ; +0x50, 0x1401c7440 mov rcx, rsi ; +0x52, 0x1401c7442 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x55, 0x1401c7445 lea rdx, [rsp+48h+var_20] ; +0x5b, 0x1401c744b mov rdi, rax ; +0x60, 0x1401c7450 lea rcx, [rsp+48h+var_18] ; +0x63, 0x1401c7453 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x68, 0x1401c7458 mov rdx, rdi ; +0x6e, 0x1401c745e mov rcx, rbp ; +0x71, 0x1401c7461 mov r8, rax ; +0x74, 0x1401c7464 call EditorUI__moveObject ; +0x77, 0x1401c7467 mov rcx, rsi ; +0x7c, 0x1401c746c inc ebx ; +0x7f, 0x1401c746f call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x81, 0x1401c7471 cmp ebx, eax ; +0x87, 0x1401c7477 jb short loc_1401C7440 ; +0x89, 0x1401c7479 mov rdi, [rsp+48h+arg_0] ; +0x8b, 0x1401c747b mov rbx, [rsp+48h+arg_8] ; +0x90, 0x1401c7480 mov rbp, [rsp+48h+arg_10] ; +0x95, 0x1401c7485 add rsp, 40h ; +0x9a, 0x1401c748a pop rsi ; +0x9e, 0x1401c748e retn ; +0x9f, 0x1401c748f