// // sub_1004E0C74 from 0x1004e0c74 to 0x1004e0df8 (388 bytes) // // 1 xrefs: // > sub_1004DF904 @ 0x1004e0580 // // 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:37 +0000 // __int64 __fastcall sub_1004E0C74(__int64 a1) { __int64 result; // x0 int v3; // w20 __int64 v4; // x0 int v5; // w0 int v6; // w20 __int64 v7; // x1 __int128 v8; // [xsp+0h] [xbp-40h] BYREF __int128 v9; // [xsp+10h] [xbp-30h] int v10; // [xsp+20h] [xbp-20h] result = GameManager::sharedState(); if ( !*(_QWORD *)(result + 552) ) return result; v3 = *(_DWORD *)(a1 + 676); v4 = *(_QWORD *)(GameManager::sharedState() + 552); if ( v3 <= 4 ) { switch ( v3 ) { case 2: v8 = 0u; v9 = 0u; v10 = 1065353216; v5 = sub_100400F18(v4, (__int64)&v8); goto LABEL_18; case 3: v8 = 0u; v9 = 0u; v10 = 1065353216; v5 = sub_100401088(v4, (__int64)&v8); goto LABEL_18; case 4: v8 = 0u; v9 = 0u; v10 = 1065353216; v5 = sub_1004011CC(v4, (__int64)&v8); goto LABEL_18; } LABEL_14: v8 = 0u; v9 = 0u; v10 = 1065353216; v5 = sub_100400CC4(v4, (__int64)&v8); goto LABEL_18; } if ( v3 > 6 ) { if ( v3 == 7 ) { v8 = 0u; v9 = 0u; v10 = 1065353216; v5 = sub_100401B54(v4, (__int64)&v8); goto LABEL_18; } if ( v3 == 8 ) { v8 = 0u; v9 = 0u; v10 = 1065353216; v5 = sub_1004016A8(v4, (__int64)&v8); goto LABEL_18; } goto LABEL_14; } v8 = 0u; v9 = 0u; v10 = 1065353216; if ( v3 == 5 ) v5 = sub_100401804(v4, (__int64)&v8); else v5 = sub_100401318(v4, (__int64)&v8); LABEL_18: v6 = v5; sub_1000184EC((__int64)&v8); if ( v6 <= 1 ) v7 = 1; else v7 = (unsigned int)v6; sub_1004E10FC(a1, v7); return sub_1004E2024(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source