// // sub_100117FD0 from 0x100117fd0 to 0x1001180e8 (280 bytes) // // 1 xrefs: // > sub_100117F58 @ 0x100117fcc // // 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 10:59:11 +0000 // __int64 __fastcall sub_100117FD0(__int64 a1, int a2) { __int64 v3; // x0 __int64 v4; // x0 int v5; // w20 __int64 v6; // x0 __int64 result; // x0 __int64 v8; // x0 __int64 v9; // x2 __int64 v10; // x0 __int64 v11; // x0 __int64 v12; // x0 __int64 v13; // x0 __int64 v14; // x0 __int64 v15; // x0 v3 = GameManager::sharedState(a1); v4 = sub_1003B6104(v3); v5 = v4; v6 = GameManager::sharedState(v4); result = GameManager::getIntGameVariable(v6, "0227"); if ( !v5 || (a2 & 1) != 0 ) { if ( ((v5 | a2 ^ 1) & 1) != 0 ) return result; if ( (_DWORD)result != 4 && (_DWORD)result != 2 || (result = sub_1001181C4(), (result & 1) != 0) ) { v8 = GameManager::sharedState(result); v9 = 0; return GameManager::setIntGameVariable(v8, "0227", v9); } v13 = GameManager::sharedState(result); v14 = GameManager::setIntGameVariable(v13, "0227", 3); result = GJAccountManager::sharedState(v14); if ( *(_DWORD *)(result + 352) > *(_DWORD *)(result + 356) ) { v12 = 1; goto LABEL_16; } } else { if ( (_DWORD)result == 2 ) return result; if ( (_DWORD)result == 3 ) { v8 = GameManager::sharedState(result); v9 = 2; return GameManager::setIntGameVariable(v8, "0227", v9); } v10 = GameManager::sharedState(result); v11 = GameManager::setIntGameVariable(v10, "0227", 1); result = GJAccountManager::sharedState(v11); if ( *(_DWORD *)(result + 352) > *(_DWORD *)(result + 356) ) { v12 = 0; LABEL_16: v15 = sub_1001180E8(v12); return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 1312LL))(v15); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source