// // CustomizeObjectLayer::toggleVisible from 0x140143320 to 0x1401434d6 (438 bytes) // // 2 xrefs: // > CustomizeObjectLayer::onSelectMode @ 0x1401431f8 // > @ 0x1409173cc // // 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:27:10 +0000 // __int64 __fastcall CustomizeObjectLayer::toggleVisible(__int64 a1) { unsigned int v2; // edi unsigned int i; // esi struct cocos2d::CCObject *v4; // rax __int64 v5; // rdx unsigned int j; // esi struct cocos2d::CCObject *v7; // rax __int64 v8; // rdx struct cocos2d::CCObject *v9; // rax __int64 v10; // rcx unsigned int ActiveMode; // eax __int64 ButtonByTag; // rax v2 = 0; *(_BYTE *)(a1 + 920) = *(_DWORD *)(a1 + 744) == 3; for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 712)); ++i ) { v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 712), i); LOBYTE(v5) = *(_BYTE *)(a1 + 920) == 0; (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v4 + 336LL))(v4, v5); } for ( j = 0; j < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 736)); ++j ) { v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 736), j); LOBYTE(v8) = *(_BYTE *)(a1 + 920) == 0; (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 336LL))(v7, v8); } if ( *(_BYTE *)(a1 + 921) ) { if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 720)) ) { do { v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 720), v2); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v9 + 336LL))( v9, *(unsigned __int8 *)(a1 + 920)); ++v2; } while ( v2 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 720)) ); } v10 = *(_QWORD *)(a1 + 824); if ( v10 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 920LL))(v10, *(unsigned __int8 *)(a1 + 920)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 824) + 336LL))( *(_QWORD *)(a1 + 824), *(unsigned __int8 *)(a1 + 920)); } } ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 0); if ( ActiveMode - 10 <= 0x3DD ) { *(_BYTE *)(a1 + 922) = 1; *(_DWORD *)(a1 + 748) = ActiveMode; CustomizeObjectLayer::updateCustomColorLabels(a1); ActiveMode = 1008; *(_BYTE *)(a1 + 922) = 0; } ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, ActiveMode); return CustomizeObjectLayer::highlightSelected(a1, ButtonByTag); }