// // sub_C8B3B8 from 0xc8b3b8 to 0xc8b49c (228 bytes) // // 8 xrefs: // > sub_C68040 @ 0xc680ec // > sub_C681A0 @ 0xc68220 // > sub_C6839C @ 0xc68520 // > sub_C6839C @ 0xc68528 // > sub_C6839C @ 0xc68530 // > sub_C6C730 @ 0xc6cac8 // > sub_C6C730 @ 0xc6cc88 // > sub_CBAEE8 @ 0xcbaf30 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_C8B3B8(__int64 result) { int v1; // w1 __int64 v2; // x19 __int64 v3; // x3 __int64 v4; // x0 __int64 v5; // x3 __int64 v6; // x0 int v7; // w1 v1 = *(_DWORD *)(result + 24); v2 = result; if ( v1 <= 0 ) { if ( *(_DWORD *)(result + 4) ) { off_12605A8(); v1 = *(_DWORD *)(v2 + 24); } else if ( *(_DWORD *)(result + 20) ) { off_12605B8(); v1 = *(_DWORD *)(v2 + 24); } else if ( *(_DWORD *)(result + 8) * *(_DWORD *)(result + 52) > 0 ) { v3 = *(_QWORD *)(result + 88); v4 = 0; do { *(_BYTE *)(*(_QWORD *)(v2 + 72) + v4) = *(_DWORD *)(v3 + 4 * v4); v3 = *(_QWORD *)(v2 + 88); *(_DWORD *)(v3 + 4 * v4++) = 0; } while ( *(_DWORD *)(v2 + 8) * *(_DWORD *)(v2 + 52) > (int)v4 ); v1 = *(_DWORD *)(v2 + 24); } v5 = *(_QWORD *)(v2 + 72); v6 = *(int *)(v2 + 80); v7 = *(_DWORD *)(v2 + 28) + v1; ++*(_DWORD *)(v2 + 64); *(_DWORD *)(v2 + 24) = v7; result = v5 + v6; *(_QWORD *)(v2 + 72) = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source