// // sub_74254 from 0x74254 to 0x7443c (488 bytes) // // 1 xrefs: // > sub_7B414 @ 0x7b464 // // 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_74254(int *a1, int a2, __int64 a3, __int64 a4) { __int64 v7; // x5 __int64 v8; // x8 int v9; // w1 int v10; // w23 __int64 v11; // x4 unsigned int v12; // w21 __int64 result; // x0 __int64 v14; // x24 int v15; // w26 int v16; // w27 int v17; // w25 int v18; // w28 __int64 v19; // x0 __int64 v20; // x0 int v21; // [xsp+Ch] [xbp-2E4h] _DWORD v23[162]; // [xsp+18h] [xbp-2D8h] BYREF sub_7443C(); v8 = 0; v9 = 0; v10 = 0; v11 = 0; v12 = 0; *a1 = a2; while ( v8 < a2 ) { switch ( *(_DWORD *)(a3 + 4 * v8) ) { case 0: ++v12; break; case 1: v11 = (unsigned int)(v11 + 1); break; case 3: ++v9; break; case 4: ++v10; break; default: break; } ++v8; } result = sub_740D0((__int64)a1, v9, v10, v12, v11, v7); if ( !(_DWORD)result ) { v14 = 0; v15 = 0; v16 = 0; v17 = 0; v18 = 0; v21 = 0; while ( v14 < *a1 ) { switch ( *(_DWORD *)(a3 + 4 * v14) ) { case 0: sub_73A5C((__int64)&v23[5 * v17++], v14, *(float *)(a4 + 4 * v14)); break; case 1: sub_73A5C(*((_QWORD *)a1 + 3) + 20LL * v18++, v14, *(float *)(a4 + 4 * v14)); break; case 2: a1[38] = v14; break; case 3: *(_DWORD *)(*((_QWORD *)a1 + 20) + 4LL * v21++) = v14; break; case 4: *(_DWORD *)(*((_QWORD *)a1 + 22) + 4LL * v15++) = v14; break; case 5: *(_DWORD *)(*((_QWORD *)a1 + 23) + 4LL * v16++) = v14; break; default: break; } ++v14; } if ( v12 ) { result = sub_74480(a1, v23, v12); if ( (_DWORD)result ) return result; return 0; } if ( !v10 ) return 0; v19 = sub_75E20(); v20 = sub_75E04(v19); result = sub_75F04(v20); if ( !(_DWORD)result ) return 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source