// // EmotePickerPopup::refreshEnabled from 0x1004db328 to 0x1004db458 (304 bytes) // // 4 xrefs: // > EmotePickerPopup::init @ 0x1004db010 // > EmotePickerPopup::textChanged @ 0x1004db458 // > sub_1004DB45C @ 0x1004db460 // > EmotePickerPopup::onPickEmote @ 0x1004dbb5c // // This function is hookable on this platform (idp: arm, 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:06:34 +0000 // __int64 __fastcall EmotePickerPopup::refreshEnabled(__int64 result) { __int64 v1; // x20 __int64 v2; // x19 _QWORD *v3; // x21 __int64 v4; // x22 unsigned __int64 v5; // x22 unsigned __int8 v6; // w23 __int64 v7; // x20 __int64 v8; // x0 __int64 v9; // x0 if ( *(_QWORD *)(result + 1048) ) { v1 = result; result = EmotePickerPopup::canAddEmote(); if ( *(_DWORD *)(v1 + 1208) != (_DWORD)result ) { v2 = result; *(_DWORD *)(v1 + 1208) = result; result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048)); if ( result ) { result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048)); if ( **(_DWORD **)(result + 56) ) { v3 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048)) + 56) + 16LL); v4 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048)) + 56) + 16LL); result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048)); v5 = v4 + 8LL * **(unsigned int **)(result + 56) - 8; if ( (unsigned __int64)v3 <= v5 ) { if ( (_DWORD)v2 ) v6 = -1; else v6 = 90; do { v7 = *v3; if ( !*v3 ) break; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v7 + 1056LL))(*v3, v2); v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 488LL))(v7); v9 = sub_1002E75A0(v8, 0); result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 912LL))(v9, v6); ++v3; } while ( (unsigned __int64)v3 <= v5 ); } } } } } return result; }