// // sub_C1C0C from 0xc1c0c to 0xc1de4 (472 bytes) // // 1 xrefs: // > sub_C1B94 @ 0xc1bb4 // // 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 // int __fastcall sub_C1C0C(_DWORD *a1, int a2, int a3, _DWORD *a4, int *a5, _DWORD *a6, _DWORD *a7, int a8, _DWORD *a9) { int v11; // r5 int v12; // r0 int v13; // r10 int v14; // r0 int v15; // r0 int v16; // r1 int v17; // r0 int v18; // r0 int v19; // r0 int v20; // r0 int v21; // r0 int v22; // r8 int v23; // r0 int v24; // r6 unsigned __int64 *v25; // r0 int v28; // [sp+10h] [bp-20h] BYREF *a7 = 2; a1[13] = 1; v28 = 0; v11 = sub_BFE7C((int)&v28); if ( !v11 ) { v12 = (*(int (__fastcall **)(int, const char *))(*(_DWORD *)v28 + 24))(v28, "android/os/Build$VERSION"); if ( !v12 ) return 51; v13 = v12; v14 = (*(int (__fastcall **)(int, int, const char *, const char *, _DWORD *))(*(_DWORD *)v28 + 576))( v28, v12, "SDK_INT", "I", a4); if ( !v14 ) return 51; v15 = (*(int (__fastcall **)(int, int, int))(*(_DWORD *)v28 + 600))(v28, v13, v14); v16 = *a5; if ( (unsigned int)*a5 > 7 || ((1 << v16) & 0xCC) == 0 || v15 <= 20 && v16 == 7 || v15 <= 15 && v16 == 6 ) { *a5 = 3; *a6 = 2; } v17 = (*(int (__fastcall **)(int, int, const char *, const char *))(*(_DWORD *)v28 + 132))( v28, gAudioDeviceClass, "", "()V"); a1[206] = v17; if ( !v17 ) return 51; v18 = (*(int (__fastcall **)(int, int, const char *, const char *))(*(_DWORD *)v28 + 132))( v28, gAudioDeviceClass, "init", "(IIII)Z"); a1[207] = v18; if ( !v18 ) return 51; v19 = (*(int (__fastcall **)(int, int, const char *, const char *))(*(_DWORD *)v28 + 132))( v28, gAudioDeviceClass, "close", "()V"); a1[208] = v19; if ( !v19 ) return 49; v20 = (*(int (__fastcall **)(int, int, const char *, const char *))(*(_DWORD *)v28 + 132))( v28, gAudioDeviceClass, "write", "([SI)V"); a1[209] = v20; if ( !v20 ) return 49; v21 = sub_C1E1C(v28, gAudioDeviceClass, a1[206]); if ( v21 && (v22 = v21, sub_C1E38(v28, v21, a1[207], *a6, *a4, a8, *a9)) && (a1[211] = a8, a1[212] = *a6 * a8, (v23 = (*(int (__fastcall **)(int))(*(_DWORD *)v28 + 712))(v28)) != 0) ) { v24 = v23; a1[204] = (*(int (__fastcall **)(int, int))(*(_DWORD *)v28 + 84))(v28, v22); a1[205] = (*(int (__fastcall **)(int, int))(*(_DWORD *)v28 + 84))(v28, v24); (*(void (__fastcall **)(int, int))(*(_DWORD *)v28 + 92))(v28, v22); (*(void (__fastcall **)(int, int))(*(_DWORD *)v28 + 92))(v28, v24); (*(void (__fastcall **)(int, int))(*(_DWORD *)v28 + 92))(v28, v13); v11 = 0; v25 = sub_BD410( *(int *)((char *)&dword_14C + (_DWORD)off_E8000), 2 * a1[212], "../android/src/fmod_output_audiotrack.cpp", 0xD0u, 0, 0); a1[210] = v25; if ( !v25 ) return 38; } else { return 51; } } return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source