// // sub_1004A12B4 from 0x1004a12b4 to 0x1004a13fc (328 bytes) // // 11 xrefs: // > sub_100426FFC @ 0x1004273f4 // > sub_1004661D0 @ 0x100468840 // > FMOD::DSP::getInput @ 0x1004850a0 // > sub_1004A6D00 @ 0x1004a6d74 // > sub_1004A6D00 @ 0x1004a6e0c // > sub_1004A6D00 @ 0x1004a6e70 // > sub_1004A6D00 @ 0x1004a6edc // > sub_1004A6D00 @ 0x1004a6f80 // > sub_1004A7068 @ 0x1004a7138 // > sub_1004A7068 @ 0x1004a7228 // > sub_1004A7494 @ 0x1004a755c // // 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_1004A12B4(__int64 a1, int a2, _QWORD *a3, _QWORD *a4, int a5, int a6) { __int64 v12; // x19 char v13; // w26 __int64 v14; // x8 _QWORD *v15; // x9 int v16; // w10 int v17; // w11 __int64 v18; // x8 __int64 v19; // x23 v12 = *(_QWORD *)(a1 + 168); v13 = 1; if ( a6 ) { sub_10043E2C8(*(_QWORD *)(a1 + 168), 1); if ( v12 ) { sub_100442B5C(v12, 1u); v13 = 0; } } v14 = 416; if ( a5 ) v14 = 420; if ( *(__int16 *)(a1 + v14) <= a2 ) { v18 = 0; v19 = 9; if ( !a4 ) goto LABEL_20; goto LABEL_19; } v15 = *(_QWORD **)(a1 + 120); if ( v15 == (_QWORD *)(a1 + 120) ) { v18 = 0; v19 = 28; if ( !a4 ) goto LABEL_20; LABEL_19: *a4 = v18; goto LABEL_20; } v16 = 0; if ( a5 ) v17 = 5; else v17 = 0; v18 = v15[2]; while ( v16 < a2 || (*(_DWORD *)(v18 + 124) & v17) != 0 ) { v15 = (_QWORD *)*v15; v18 = v15[2]; if ( (*(_DWORD *)(v18 + 124) & v17) == 0 ) ++v16; } v19 = 0; if ( a4 ) goto LABEL_19; LABEL_20: if ( a3 ) { if ( v18 ) v18 = *(_QWORD *)(v18 + 88); *a3 = v18; } if ( a6 ) { if ( (v12 == 0) | v13 & 1 ) return v19; goto LABEL_28; } if ( !(v13 & 1 | (v12 == 0)) ) LABEL_28: sub_100442B7C(v12, 1u); return v19; }
GD Web Decomp Icon

GD Web Decomp

Raw Source