; ; EditorUI::showTransformControl from 0x140203340 to 0x1402034b9 (377 bytes) ; ; 5 xrefs: ; > EditorUI::activateTransformControl @ 0x140203326 ; > LevelEditorLayer::handleAction @ 0x1403f2e82 ; > @ 0x1408a4024 ; > @ 0x1408a4034 ; > @ 0x14091affc ; ; 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:14 +0000 ; mov [rsp+arg_10], rbx ; +0x0, 0x140203340 push rdi ; +0x5, 0x140203345 sub rsp, 20h ; +0x6, 0x140203346 mov rbx, rcx ; +0xa, 0x14020334a mov rcx, [rcx+3B0h] ; +0xd, 0x14020334d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x14, 0x140203354 test eax, eax ; +0x1a, 0x14020335a jnz short loc_14020336C ; +0x1c, 0x14020335c cmp qword ptr [rbx+620h], 0 ; +0x1e, 0x14020335e jz loc_1402034AE ; +0x26, 0x140203366 movzx eax, cs:word_1407033DC ; +0x2c, 0x14020336c lea r8, [rsp+28h+arg_0] ; +0x33, 0x140203373 mov [rsp+28h+arg_0], ax ; +0x38, 0x140203378 mov edx, 2Fh ; '/' ; +0x3d, 0x14020337d movzx eax, cs:byte_1407033DE ; +0x42, 0x140203382 mov rcx, rbx ; +0x49, 0x140203389 mov [rsp+28h+arg_2], al ; +0x4c, 0x14020338c mov [rsp+28h+arg_8], rsi ; +0x50, 0x140203390 mov byte ptr [rbx+22Ch], 1 ; +0x55, 0x140203395 call EditorUI__updateEditButtonColor ; +0x5c, 0x14020339c mov rcx, [rbx+3B0h] ; +0x61, 0x1402033a1 mov byte ptr [rbx+338h], 0 ; +0x68, 0x1402033a8 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6f, 0x1402033af test eax, eax ; +0x75, 0x1402033b5 jz short loc_1402033CF ; +0x77, 0x1402033b7 mov r8, [rbx+3B0h] ; +0x79, 0x1402033b9 lea rdx, [rsp+28h+arg_0] ; +0x80, 0x1402033c0 xor r9d, r9d ; +0x85, 0x1402033c5 call EditorUI__getGroupCenter ; +0x88, 0x1402033c8 jmp short loc_1402033DF ; +0x8d, 0x1402033cd mov rcx, [rbx+620h] ; +0x8f, 0x1402033cf mov rax, [rcx] ; +0x96, 0x1402033d6 call qword ptr [rax+0C8h] ; +0x99, 0x1402033d9 mov rdx, rax ; +0x9f, 0x1402033df lea rcx, [rbx+330h] ; +0xa2, 0x1402033e2 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xa9, 0x1402033e9 mov rcx, [rbx+348h] ; +0xaf, 0x1402033ef lea rdx, [rbx+330h] ; +0xb6, 0x1402033f6 mov rax, [rcx] ; +0xbd, 0x1402033fd call qword ptr [rax+0B8h] ; +0xc0, 0x140203400 mov rax, [rbx+5E8h] ; +0xc6, 0x140203406 mov rcx, [rax+10C8h] ; +0xcd, 0x14020340d mov rax, [rcx] ; +0xd4, 0x140203414 call qword ptr [rax+0A8h] ; +0xd7, 0x140203417 movss xmm1, cs:flt_140835080 ; +0xdd, 0x14020341d mov rcx, [rbx+348h] ; +0xe5, 0x140203425 divss xmm1, xmm0 ; +0xec, 0x14020342c call GJTransformControl__scaleButtons ; +0xf0, 0x140203430 mov rcx, [rbx+348h] ; +0xf5, 0x140203435 mov dl, 1 ; +0xfc, 0x14020343c mov rax, [rcx] ; +0xfe, 0x14020343e call qword ptr [rax+150h] ; +0x101, 0x140203441 mov rcx, [rbx+348h] ; +0x107, 0x140203447 mov rax, [rcx] ; +0x10e, 0x14020344e call qword ptr [rax+0C8h] ; +0x111, 0x140203451 mov r8, rax ; +0x117, 0x140203457 lea rdx, [rsp+28h+arg_0] ; +0x11a, 0x14020345a lea rcx, [rbx+330h] ; +0x11f, 0x14020345f call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x126, 0x140203466 mov rbx, [rbx+348h] ; +0x12c, 0x14020346c xor edx, edx ; +0x133, 0x140203473 mov rcx, [rbx+200h] ; +0x135, 0x140203475 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x13c, 0x14020347c lea rdx, [rsp+28h+arg_0] ; +0x142, 0x140203482 mov rcx, [rax] ; +0x147, 0x140203487 mov r8, [rcx+0B8h] ; +0x14a, 0x14020348a mov rcx, rax ; +0x151, 0x140203491 call r8 ; +0x154, 0x140203494 mov rcx, [rbx+1B8h] ; +0x157, 0x140203497 mov rsi, [rsp+28h+arg_8] ; +0x15e, 0x14020349e test rcx, rcx ; +0x163, 0x1402034a3 jz short loc_1402034AE ; +0x166, 0x1402034a6 mov rax, [rcx] ; +0x168, 0x1402034a8 call qword ptr [rax+60h] ; +0x16b, 0x1402034ab mov rbx, [rsp+28h+arg_10] ; +0x16e, 0x1402034ae add rsp, 20h ; +0x173, 0x1402034b3 pop rdi ; +0x177, 0x1402034b7 retn ; +0x178, 0x1402034b8