// // EditButtonBar::updateDotState from 0x140177c40 to 0x140177dbb (379 bytes) // // 5 xrefs: // > EditButtonBar::goToPage @ 0x140177aff // > EditorUI::updateCreateMenu @ 0x1401b2425 // > @ 0x14089d640 // > @ 0x14089d67c // > @ 0x14091862c // // 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:33 +0000 // void __fastcall EditButtonBar::updateDotState(__int64 a1) { __int64 v2; // rcx int v3; // ebp cocos2d::CCArray *v4; // rcx signed int v5; // ecx _QWORD *v6; // rsi __int64 v7; // rbx unsigned __int64 i; // r14 __int64 v9; // rbx __int64 v10; // rdi int v11; // eax void (__fastcall **v12)(__int64, __int16 *); // r8 __int16 *v13; // rdx __int16 v14; // [rsp+40h] [rbp+8h] BYREF char v15; // [rsp+42h] [rbp+Ah] __int16 v16; // [rsp+48h] [rbp+10h] BYREF char v17; // [rsp+4Ah] [rbp+12h] if ( *(_QWORD *)(a1 + 360) ) { v2 = *(_QWORD *)(a1 + 344); if ( v2 ) { v3 = *(_DWORD *)(v2 + 588); if ( *(_BYTE *)(v2 + 456) ) v4 = *(cocos2d::CCArray **)(v2 + 448); else v4 = *(cocos2d::CCArray **)(v2 + 480); v5 = cocos2d::CCArray::count(v4); if ( v3 <= 0 ) { for ( ; v3 < 0; v3 += v5 ) ; } else { v3 %= v5; } if ( (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 360) + 480LL))(*(_QWORD *)(a1 + 360)) ) { if ( **(_DWORD **)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 360) + 480LL))(*(_QWORD *)(a1 + 360)) + 56) ) { v6 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 360) + 480LL))(*(_QWORD *)(a1 + 360)) + 56) + 16LL); v7 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 360) + 480LL))(*(_QWORD *)(a1 + 360)) + 56) + 16LL); for ( i = v7 + 8 * (**(unsigned int **)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 360) + 480LL))(*(_QWORD *)(a1 + 360)) + 56) - 1LL); (unsigned __int64)v6 <= i; ++v6 ) { v9 = *v6; if ( !*v6 ) break; v10 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v9 + 952LL))(*v6); v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 56LL))(v9); v12 = *(void (__fastcall ***)(__int64, __int16 *))(v10 + 320); if ( v11 == v3 ) { v14 = -1; v13 = &v14; v15 = -1; } else { v16 = -26986; v13 = &v16; v17 = -106; } (*v12)(v10 + 320, v13); } } } } } }