; ; EditorUI::rotateObjects from 0x140121030 to 0x14012144d (1053 bytes) ; ; 9 xrefs: ; > EditorUI::onCreateObject @ 0x14010feb9 ; > EditorUI::createSmartObjectsFromTemplate @ 0x1401174b2 ; > EditorUI::transformObjectCall_1 @ 0x1401205e7 ; > EditorUI::transformObjectCall_1 @ 0x14012064f ; > EditorUI::transformObject @ 0x140120a75 ; > EditorUI::angleChanged @ 0x14012322f ; > @ 0x140670210 ; > @ 0x140670220 ; > @ 0x1406c9738 ; ; 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_10], rbp ; +0x0, 0x140121030 push rsi ; +0x5, 0x140121035 push r14 ; +0x6, 0x140121036 push r15 ; +0x8, 0x140121038 sub rsp, 0E0h ; +0xa, 0x14012103a mov rbp, rdx ; +0x11, 0x140121041 movaps [rsp+0F8h+var_78], xmm11 ; +0x14, 0x140121044 mov r15, rcx ; +0x1d, 0x14012104d lea rdx, dword_1406C1AA8 ; +0x20, 0x140121050 mov rcx, r9 ; +0x27, 0x140121057 mov r14, r9 ; +0x2a, 0x14012105a movaps xmm11, xmm2 ; +0x2d, 0x14012105d call cs:?equals@CCPoint@cocos2d@@QEBA_NAEBV12@@Z; cocos2d::CCPoint::equals(cocos2d::CCPoint const &) ; +0x31, 0x140121061 test al, al ; +0x37, 0x140121067 jz short loc_140121087 ; +0x39, 0x140121069 xor r9d, r9d ; +0x3b, 0x14012106b lea rdx, [rsp+0F8h+var_C0] ; +0x3e, 0x14012106e mov r8, rbp ; +0x43, 0x140121073 call EditorUI__getGroupCenter ; +0x46, 0x140121076 mov rdx, rax ; +0x4b, 0x14012107b mov rcx, r14 ; +0x4e, 0x14012107e call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x51, 0x140121081 mov rcx, rbp ; +0x57, 0x140121087 xor esi, esi ; +0x5a, 0x14012108a call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5c, 0x14012108c test eax, eax ; +0x62, 0x140121092 jz loc_140121433 ; +0x64, 0x140121094 mov [rsp+0F8h+arg_0], rbx ; +0x6a, 0x14012109a mov [rsp+0F8h+arg_8], rdi ; +0x72, 0x1401210a2 movaps [rsp+0F8h+var_28], xmm6 ; +0x7a, 0x1401210aa movaps [rsp+0F8h+var_38], xmm7 ; +0x82, 0x1401210b2 movaps [rsp+0F8h+var_48], xmm8 ; +0x8a, 0x1401210ba movaps [rsp+0F8h+var_58], xmm9 ; +0x93, 0x1401210c3 movss xmm9, cs:dword_140623AD8 ; +0x9c, 0x1401210cc movaps [rsp+0F8h+var_68], xmm10 ; +0xa5, 0x1401210d5 movss xmm10, cs:flt_14062346C ; +0xae, 0x1401210de movaps [rsp+0F8h+var_88], xmm12 ; +0xb7, 0x1401210e7 movaps [rsp+0F8h+var_98], xmm13 ; +0xbd, 0x1401210ed movss xmm13, cs:width ; +0xc3, 0x1401210f3 movaps [rsp+0F8h+var_A8], xmm14 ; +0xcc, 0x1401210fc movaps xmm14, xmm11 ; +0xd2, 0x140121102 mulss xmm14, cs:dword_1406229BC ; +0xd6, 0x140121106 nop ; +0xdf, 0x14012110f mov edx, esi ; +0xe0, 0x140121110 mov rcx, rbp ; +0xe2, 0x140121112 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xe5, 0x140121115 mov rcx, rax ; +0xeb, 0x14012111b mov rdi, rax ; +0xee, 0x14012111e mov rdx, [rax] ; +0xf1, 0x140121121 call qword ptr [rdx+0C8h] ; +0xf4, 0x140121124 mov r8, r14 ; +0xfa, 0x14012112a lea rdx, [rsp+0F8h+var_D8] ; +0xfd, 0x14012112d mov rcx, rax ; +0x102, 0x140121132 call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x105, 0x140121135 movss xmm7, [rsp+0F8h+X] ; +0x10b, 0x14012113b movaps xmm1, xmm13; Y ; +0x111, 0x140121141 movaps xmm0, xmm7; X ; +0x115, 0x140121145 call powf ; +0x118, 0x140121148 movss xmm12, [rsp+0F8h+var_D8] ; +0x11d, 0x14012114d movaps xmm6, xmm0 ; +0x124, 0x140121154 movaps xmm0, xmm12; X ; +0x127, 0x140121157 movaps xmm1, xmm13; Y ; +0x12b, 0x14012115b call powf ; +0x12f, 0x14012115f addss xmm6, xmm0 ; +0x134, 0x140121164 xorps xmm1, xmm1 ; +0x138, 0x140121168 ucomiss xmm1, xmm6 ; +0x13b, 0x14012116b ja short loc_14012117B ; +0x13e, 0x14012116e xorps xmm8, xmm8 ; +0x140, 0x140121170 sqrtss xmm8, xmm6 ; +0x144, 0x140121174 jmp short loc_140121187 ; +0x149, 0x140121179 movaps xmm0, xmm6; X ; +0x14b, 0x14012117b call sqrtf ; +0x14e, 0x14012117e movaps xmm8, xmm0 ; +0x153, 0x140121183 movaps xmm1, xmm12; X ; +0x157, 0x140121187 movaps xmm0, xmm7; Y ; +0x15b, 0x14012118b call atan2f ; +0x15e, 0x14012118e movaps xmm7, xmm0 ; +0x163, 0x140121193 subss xmm7, xmm14 ; +0x166, 0x140121196 movaps xmm0, xmm7; X ; +0x16b, 0x14012119b call sinf ; +0x16e, 0x14012119e movaps xmm6, xmm0 ; +0x173, 0x1401211a3 movaps xmm0, xmm7; X ; +0x176, 0x1401211a6 call cosf ; +0x179, 0x1401211a9 movaps xmm1, xmm0 ; +0x17e, 0x1401211ae lea rcx, [rsp+0F8h+var_B8] ; +0x181, 0x1401211b1 movaps xmm2, xmm6 ; +0x186, 0x1401211b6 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x189, 0x1401211b9 movaps xmm2, xmm8 ; +0x18f, 0x1401211bf lea rdx, [rsp+0F8h+var_D0] ; +0x193, 0x1401211c3 mov rcx, rax ; +0x198, 0x1401211c8 call cs:??DCCPoint@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCPoint::operator*(float) ; +0x19b, 0x1401211cb lea r8, [rsp+0F8h+var_D0] ; +0x1a1, 0x1401211d1 mov rcx, r14 ; +0x1a6, 0x1401211d6 lea rdx, [rsp+0F8h+var_C8] ; +0x1a9, 0x1401211d9 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x1ae, 0x1401211de mov rax, [rdi] ; +0x1b4, 0x1401211e4 mov rcx, rdi ; +0x1b7, 0x1401211e7 call qword ptr [rax+168h] ; +0x1ba, 0x1401211ea mov rax, [rdi] ; +0x1c0, 0x1401211f0 mov rcx, rdi ; +0x1c3, 0x1401211f3 movaps xmm6, xmm0 ; +0x1c6, 0x1401211f6 call qword ptr [rax+178h] ; +0x1c9, 0x1401211f9 ucomiss xmm6, xmm0 ; +0x1cf, 0x1401211ff mov rbx, [rdi] ; +0x1d2, 0x140121202 jp loc_14012129A ; +0x1d5, 0x140121205 jnz loc_14012129A ; +0x1db, 0x14012120b mov rcx, rdi ; +0x1e1, 0x140121211 call qword ptr [rbx+158h] ; +0x1e4, 0x140121214 addss xmm0, xmm11 ; +0x1ea, 0x14012121a mov rcx, rdi ; +0x1ef, 0x14012121f movaps xmm1, xmm0 ; +0x1f2, 0x140121222 call qword ptr [rbx+150h] ; +0x1f5, 0x140121225 mov rax, [rdi] ; +0x1fb, 0x14012122b mov rcx, rdi ; +0x1fe, 0x14012122e call qword ptr [rax+158h] ; +0x201, 0x140121231 mov rbx, [rdi] ; +0x207, 0x140121237 mov rcx, rdi ; +0x20a, 0x14012123a comiss xmm0, xmm10 ; +0x20d, 0x14012123d mov rax, [rbx+158h] ; +0x211, 0x140121241 jb short loc_140121280 ; +0x218, 0x140121248 call rax ; +0x21a, 0x14012124a cvttss2si ecx, xmm0 ; +0x21c, 0x14012124c mov eax, 0B60B60B7h ; +0x220, 0x140121250 imul ecx ; +0x225, 0x140121255 add edx, ecx ; +0x227, 0x140121257 sar edx, 8 ; +0x229, 0x140121259 mov eax, edx ; +0x22c, 0x14012125c shr eax, 1Fh ; +0x22e, 0x14012125e add edx, eax ; +0x231, 0x140121261 imul eax, edx, 168h ; +0x233, 0x140121263 sub ecx, eax ; +0x239, 0x140121269 movd xmm1, ecx ; +0x23b, 0x14012126b mov rcx, rdi ; +0x23f, 0x14012126f cvtdq2ps xmm1, xmm1 ; +0x242, 0x140121272 call qword ptr [rbx+150h] ; +0x245, 0x140121275 jmp loc_1401213A4 ; +0x24b, 0x14012127b call rax ; +0x250, 0x140121280 comiss xmm9, xmm0 ; +0x252, 0x140121282 jb loc_1401213A4 ; +0x256, 0x140121286 mov rbx, [rdi] ; +0x25c, 0x14012128c mov rcx, rdi ; +0x25f, 0x14012128f call qword ptr [rbx+158h] ; +0x262, 0x140121292 jmp short loc_14012124C ; +0x268, 0x140121298 mov rcx, rdi ; +0x26a, 0x14012129a call qword ptr [rbx+168h] ; +0x26d, 0x14012129d addss xmm0, xmm11 ; +0x273, 0x1401212a3 mov rcx, rdi ; +0x278, 0x1401212a8 movaps xmm1, xmm0 ; +0x27b, 0x1401212ab call qword ptr [rbx+160h] ; +0x27e, 0x1401212ae mov rbx, [rdi] ; +0x284, 0x1401212b4 mov rcx, rdi ; +0x287, 0x1401212b7 call qword ptr [rbx+178h] ; +0x28a, 0x1401212ba addss xmm0, xmm11 ; +0x290, 0x1401212c0 mov rcx, rdi ; +0x295, 0x1401212c5 movaps xmm1, xmm0 ; +0x298, 0x1401212c8 call qword ptr [rbx+170h] ; +0x29b, 0x1401212cb mov rax, [rdi] ; +0x2a1, 0x1401212d1 mov rcx, rdi ; +0x2a4, 0x1401212d4 mov byte ptr [rdi+350h], 1 ; +0x2a7, 0x1401212d7 call qword ptr [rax+168h] ; +0x2ae, 0x1401212de mov rbx, [rdi] ; +0x2b4, 0x1401212e4 mov rcx, rdi ; +0x2b7, 0x1401212e7 comiss xmm0, xmm10 ; +0x2ba, 0x1401212ea mov rax, [rbx+168h] ; +0x2be, 0x1401212ee jb short loc_1401212FB ; +0x2c5, 0x1401212f5 call rax ; +0x2c7, 0x1401212f7 jmp short loc_14012130F ; +0x2c9, 0x1401212f9 call rax ; +0x2cb, 0x1401212fb comiss xmm9, xmm0 ; +0x2cd, 0x1401212fd jb short loc_14012133E ; +0x2d1, 0x140121301 mov rbx, [rdi] ; +0x2d3, 0x140121303 mov rcx, rdi ; +0x2d6, 0x140121306 call qword ptr [rbx+168h] ; +0x2d9, 0x140121309 cvttss2si ecx, xmm0 ; +0x2df, 0x14012130f mov eax, 0B60B60B7h ; +0x2e3, 0x140121313 imul ecx ; +0x2e8, 0x140121318 add edx, ecx ; +0x2ea, 0x14012131a sar edx, 8 ; +0x2ec, 0x14012131c mov eax, edx ; +0x2ef, 0x14012131f shr eax, 1Fh ; +0x2f1, 0x140121321 add edx, eax ; +0x2f4, 0x140121324 imul eax, edx, 168h ; +0x2f6, 0x140121326 sub ecx, eax ; +0x2fc, 0x14012132c movd xmm1, ecx ; +0x2fe, 0x14012132e mov rcx, rdi ; +0x302, 0x140121332 cvtdq2ps xmm1, xmm1 ; +0x305, 0x140121335 call qword ptr [rbx+160h] ; +0x308, 0x140121338 mov rax, [rdi] ; +0x30e, 0x14012133e mov rcx, rdi ; +0x311, 0x140121341 call qword ptr [rax+178h] ; +0x314, 0x140121344 mov rbx, [rdi] ; +0x31a, 0x14012134a mov rcx, rdi ; +0x31d, 0x14012134d comiss xmm0, xmm10 ; +0x320, 0x140121350 mov rax, [rbx+178h] ; +0x324, 0x140121354 jb short loc_140121361 ; +0x32b, 0x14012135b call rax ; +0x32d, 0x14012135d jmp short loc_140121375 ; +0x32f, 0x14012135f call rax ; +0x331, 0x140121361 comiss xmm9, xmm0 ; +0x333, 0x140121363 jb short loc_1401213A4 ; +0x337, 0x140121367 mov rbx, [rdi] ; +0x339, 0x140121369 mov rcx, rdi ; +0x33c, 0x14012136c call qword ptr [rbx+178h] ; +0x33f, 0x14012136f cvttss2si ecx, xmm0 ; +0x345, 0x140121375 mov eax, 0B60B60B7h ; +0x349, 0x140121379 imul ecx ; +0x34e, 0x14012137e add edx, ecx ; +0x350, 0x140121380 sar edx, 8 ; +0x352, 0x140121382 mov eax, edx ; +0x355, 0x140121385 shr eax, 1Fh ; +0x357, 0x140121387 add edx, eax ; +0x35a, 0x14012138a imul eax, edx, 168h ; +0x35c, 0x14012138c sub ecx, eax ; +0x362, 0x140121392 movd xmm1, ecx ; +0x364, 0x140121394 mov rcx, rdi ; +0x368, 0x140121398 cvtdq2ps xmm1, xmm1 ; +0x36b, 0x14012139b call qword ptr [rbx+170h] ; +0x36e, 0x14012139e mov rax, [rdi] ; +0x374, 0x1401213a4 mov rcx, rdi ; +0x377, 0x1401213a7 call qword ptr [rax+0C8h] ; +0x37a, 0x1401213aa mov r8, rax ; +0x380, 0x1401213b0 lea rdx, [rsp+0F8h+var_C0] ; +0x383, 0x1401213b3 lea rcx, [rsp+0F8h+var_C8] ; +0x388, 0x1401213b8 call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x38d, 0x1401213bd lea r8, [rsp+0F8h+var_C0] ; +0x393, 0x1401213c3 mov rdx, rdi ; +0x398, 0x1401213c8 mov rcx, r15 ; +0x39b, 0x1401213cb call EditorUI__moveObject ; +0x39e, 0x1401213ce mov rcx, rbp ; +0x3a3, 0x1401213d3 inc esi ; +0x3a6, 0x1401213d6 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3a8, 0x1401213d8 cmp esi, eax ; +0x3ae, 0x1401213de jb loc_140121110 ; +0x3b0, 0x1401213e0 movaps xmm14, [rsp+0F8h+var_A8] ; +0x3b6, 0x1401213e6 movaps xmm13, [rsp+0F8h+var_98] ; +0x3bc, 0x1401213ec movaps xmm12, [rsp+0F8h+var_88] ; +0x3c2, 0x1401213f2 movaps xmm10, [rsp+0F8h+var_68] ; +0x3c8, 0x1401213f8 movaps xmm9, [rsp+0F8h+var_58] ; +0x3d1, 0x140121401 movaps xmm8, [rsp+0F8h+var_48] ; +0x3da, 0x14012140a movaps xmm7, [rsp+0F8h+var_38] ; +0x3e3, 0x140121413 movaps xmm6, [rsp+0F8h+var_28] ; +0x3eb, 0x14012141b mov rdi, [rsp+0F8h+arg_8] ; +0x3f3, 0x140121423 mov rbx, [rsp+0F8h+arg_0] ; +0x3fb, 0x14012142b lea r11, [rsp+0F8h+var_18] ; +0x403, 0x140121433 mov rbp, [r11+30h] ; +0x40b, 0x14012143b movaps xmm11, xmmword ptr [r11-60h] ; +0x40f, 0x14012143f mov rsp, r11 ; +0x414, 0x140121444 pop r15 ; +0x417, 0x140121447 pop r14 ; +0x419, 0x140121449 pop rsi ; +0x41b, 0x14012144b retn ; +0x41c, 0x14012144c