; ; CustomizeObjectLayer::toggleVisible from 0x1400a9200 to 0x1400a93b3 (435 bytes) ; ; 2 xrefs: ; > CustomizeObjectLayer::onSelectMode @ 0x1400a90d8 ; > @ 0x1406c780c ; ; 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_0], rbx ; +0x0, 0x1400a9200 mov [rsp+arg_8], rsi ; +0x5, 0x1400a9205 push rdi ; +0xa, 0x1400a920a sub rsp, 20h ; +0xb, 0x1400a920b cmp dword ptr [rcx+2D0h], 3 ; +0xf, 0x1400a920f mov rbx, rcx ; +0x16, 0x1400a9216 setz al ; +0x19, 0x1400a9219 xor edi, edi ; +0x1c, 0x1400a921c mov [rcx+380h], al ; +0x1e, 0x1400a921e mov esi, edi ; +0x24, 0x1400a9224 mov rcx, [rcx+2B0h] ; +0x26, 0x1400a9226 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2d, 0x1400a922d test eax, eax ; +0x33, 0x1400a9233 jz short loc_1400A9279 ; +0x35, 0x1400a9235 nop word ptr [rax+rax+00000000h] ; +0x37, 0x1400a9237 mov rcx, [rbx+2B0h] ; +0x40, 0x1400a9240 mov edx, esi ; +0x47, 0x1400a9247 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x1400a9249 cmp [rbx+380h], dil ; +0x4f, 0x1400a924f mov rcx, rax ; +0x56, 0x1400a9256 setz dl ; +0x59, 0x1400a9259 mov r8, [rax] ; +0x5c, 0x1400a925c call qword ptr [r8+140h] ; +0x5f, 0x1400a925f mov rcx, [rbx+2B0h] ; +0x66, 0x1400a9266 inc esi ; +0x6d, 0x1400a926d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6f, 0x1400a926f cmp esi, eax ; +0x75, 0x1400a9275 jb short loc_1400A9240 ; +0x77, 0x1400a9277 mov rcx, [rbx+2C8h] ; +0x79, 0x1400a9279 mov esi, edi ; +0x80, 0x1400a9280 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x82, 0x1400a9282 test eax, eax ; +0x88, 0x1400a9288 jz short loc_1400A92C9 ; +0x8a, 0x1400a928a nop dword ptr [rax+00h] ; +0x8c, 0x1400a928c mov rcx, [rbx+2C8h] ; +0x90, 0x1400a9290 mov edx, esi ; +0x97, 0x1400a9297 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x99, 0x1400a9299 cmp [rbx+380h], dil ; +0x9f, 0x1400a929f mov rcx, rax ; +0xa6, 0x1400a92a6 setz dl ; +0xa9, 0x1400a92a9 mov r8, [rax] ; +0xac, 0x1400a92ac call qword ptr [r8+140h] ; +0xaf, 0x1400a92af mov rcx, [rbx+2C8h] ; +0xb6, 0x1400a92b6 inc esi ; +0xbd, 0x1400a92bd call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xbf, 0x1400a92bf cmp esi, eax ; +0xc5, 0x1400a92c5 jb short loc_1400A9290 ; +0xc7, 0x1400a92c7 cmp [rbx+381h], dil ; +0xc9, 0x1400a92c9 jz loc_1400A9359 ; +0xd0, 0x1400a92d0 mov rcx, [rbx+2B8h] ; +0xd6, 0x1400a92d6 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xdd, 0x1400a92dd test eax, eax ; +0xe3, 0x1400a92e3 jz short loc_1400A9326 ; +0xe5, 0x1400a92e5 nop word ptr [rax+rax+00000000h] ; +0xe7, 0x1400a92e7 mov rcx, [rbx+2B8h] ; +0xf0, 0x1400a92f0 mov edx, edi ; +0xf7, 0x1400a92f7 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xf9, 0x1400a92f9 movzx edx, byte ptr [rbx+380h] ; +0xff, 0x1400a92ff mov rcx, rax ; +0x106, 0x1400a9306 mov r8, [rax] ; +0x109, 0x1400a9309 call qword ptr [r8+140h] ; +0x10c, 0x1400a930c mov rcx, [rbx+2B8h] ; +0x113, 0x1400a9313 inc edi ; +0x11a, 0x1400a931a call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x11c, 0x1400a931c cmp edi, eax ; +0x122, 0x1400a9322 jb short loc_1400A92F0 ; +0x124, 0x1400a9324 mov rcx, [rbx+320h] ; +0x126, 0x1400a9326 test rcx, rcx ; +0x12d, 0x1400a932d jz short loc_1400A9359 ; +0x130, 0x1400a9330 mov rax, [rcx] ; +0x132, 0x1400a9332 movzx edx, byte ptr [rbx+380h] ; +0x135, 0x1400a9335 call qword ptr [rax+388h] ; +0x13c, 0x1400a933c mov rcx, [rbx+320h] ; +0x142, 0x1400a9342 movzx edx, byte ptr [rbx+380h] ; +0x149, 0x1400a9349 mov rax, [rcx] ; +0x150, 0x1400a9350 call qword ptr [rax+140h] ; +0x153, 0x1400a9353 xor edx, edx ; +0x159, 0x1400a9359 mov rcx, rbx ; +0x15b, 0x1400a935b call CustomizeObjectLayer__getActiveMode ; +0x15e, 0x1400a935e lea ecx, [rax-0Ah] ; +0x163, 0x1400a9363 cmp ecx, 3DDh ; +0x166, 0x1400a9366 ja short loc_1400A938F ; +0x16c, 0x1400a936c mov rcx, rbx ; +0x16e, 0x1400a936e mov byte ptr [rbx+382h], 1 ; +0x171, 0x1400a9371 mov [rbx+2D4h], eax ; +0x178, 0x1400a9378 call CustomizeObjectLayer__updateCustomColorLabels ; +0x17e, 0x1400a937e mov eax, 3F0h ; +0x183, 0x1400a9383 mov byte ptr [rbx+382h], 0 ; +0x188, 0x1400a9388 mov edx, eax ; +0x18f, 0x1400a938f mov rcx, rbx ; +0x191, 0x1400a9391 call CustomizeObjectLayer__getButtonByTag ; +0x194, 0x1400a9394 mov rdx, rax ; +0x199, 0x1400a9399 mov rcx, rbx ; +0x19c, 0x1400a939c mov rbx, [rsp+28h+arg_0] ; +0x19f, 0x1400a939f mov rsi, [rsp+28h+arg_8] ; +0x1a4, 0x1400a93a4 add rsp, 20h ; +0x1a9, 0x1400a93a9 pop rdi ; +0x1ad, 0x1400a93ad jmp CustomizeObjectLayer__highlightSelected ; +0x1ae, 0x1400a93ae