// // sub_10051D044 from 0x10051d044 to 0x10051d144 (256 bytes) // // 1 xrefs: // > sub_10051CF84 @ 0x10051d040 // // 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:07:10 +0000 // __int64 __fastcall sub_10051D044(__int64 result, int a2) { __int64 v2; // x20 __int64 v3; // x8 __int64 v5; // x23 int v6; // w24 __int64 *v7; // x26 unsigned int v8; // w28 __int64 v9; // x21 __int64 v10; // x22 _BOOL8 v12; // x1 __int64 v13; // t1 if ( *(_BYTE *)(result + 1200) == 1 ) { v2 = result; v3 = *(_QWORD *)(result + 1048); if ( v3 ) { v5 = 0; v6 = *(_DWORD *)(v3 + 1840); v7 = (__int64 *)(result + 1256); do { v8 = dword_100770310[v5]; if ( (v8 & a2) != 0 ) { v9 = 255; } else { *(_DWORD *)(*(_QWORD *)(v2 + 1048) + 1848LL) &= ~v8; v9 = 100; } v10 = *(_QWORD *)(v2 + 1224 + 8 * v5); v12 = v6 == 1 && (v8 & a2) != 0; (*(void (__fastcall **)(_QWORD, _BOOL8))(*(_QWORD *)v10 + 1056LL))(*(_QWORD *)(v2 + 1224 + 8 * v5), v12); CCMenuItemToggler::toggle(v10, (*(_DWORD *)(*(_QWORD *)(v2 + 1048) + 1848LL) & v8) != 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(v7 - 1) + 912LL))(*(v7 - 1), v9); v13 = *v7; v7 += 2; result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 912LL))(v13, v9); ++v5; } while ( v5 != 3 ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source