// // AchievementsLayer::keyDown from 0x140097980 to 0x140097a13 (147 bytes) // // 2 xrefs: // > @ 0x140719968 // > @ 0x140912ce0 // // 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:26:03 +0000 // __int64 __fastcall AchievementsLayer::keyDown(__int64 a1, __int64 a2) { __int64 v3; // r8 __int64 result; // rax v3 = (unsigned int)(a2 - 37); if ( (_DWORD)a2 != 37 ) { v3 = (unsigned int)(a2 - 39); if ( (_DWORD)a2 == 39 ) { LABEL_6: result = (*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 272) + 344LL))( *(_QWORD *)(a1 + 272), a2, v3); if ( (_BYTE)result ) return AchievementsLayer::loadPage(a1 - 344, (unsigned int)(*(_DWORD *)(a1 + 264) + 1)); return result; } v3 = (unsigned int)(a2 - 1025); if ( (_DWORD)a2 != 1025 ) { if ( (_DWORD)a2 != 1027 ) return cocos2d::CCLayer::keyDown(); goto LABEL_6; } } result = (*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 280) + 344LL))( *(_QWORD *)(a1 + 280), a2, v3); if ( (_BYTE)result ) return AchievementsLayer::loadPage(a1 - 344, (unsigned int)(*(_DWORD *)(a1 + 264) - 1)); return result; }