// // sub_10051D674 from 0x10051d674 to 0x10051d6fc (136 bytes) // // 4 xrefs: // > PlayLayer::onQuit @ 0x100142208 // > PlayLayer::levelComplete @ 0x100142f9c // > PlayLayer::destroyPlayer @ 0x100147d74 // > PlayLayer::pauseGame @ 0x10014c438 // // 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_10051D674(__int64 a1) { __int64 result; // x0 __int64 v3; // x8 result = PlayLayer::tracksPercent(a1); if ( (_DWORD)result && (*(_BYTE *)(a1 + 14185) & 1) == 0 && (*(_BYTE *)(a1 + 14186) & 1) == 0 && (*(_BYTE *)(a1 + 12236) & 1) == 0 ) { if ( (*(_BYTE *)(a1 + 12544) & 1) == 0 ) sub_1000D0DFC(*(int32x2_t **)(a1 + 1936), llround(*(double *)(a1 + 14704) - *(double *)(a1 + 14472))); *(_QWORD *)(a1 + 14472) = *(_QWORD *)(a1 + 14704); result = time(nullptr); v3 = *(_QWORD *)(a1 + 1936); *(_DWORD *)(v3 + 1644) = result; if ( !*(_DWORD *)(v3 + 1640) ) *(_DWORD *)(v3 + 1640) = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source