// // sub_1005DF81C from 0x1005df81c to 0x1005dfa08 (492 bytes) // // 2 xrefs: // > sub_1005676F0 @ 0x1005677c0 // > sub_1005F8AF4 @ 0x1005f8d1c // // 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:09:39 +0000 // __int64 __fastcall sub_1005DF81C(__int64 a1, int a2, _DWORD *a3, __int64 *a4) { __int64 v7; // x24 void *v8; // x22 int v9; // w8 int v10; // w9 unsigned __int64 v11; // x10 int v12; // w9 unsigned int v13; // w8 int v14; // w8 void *v16; // x0 unsigned int v17; // w23 void *v18; // x0 unsigned int v19; // w4 void *v20; // x0 if ( !a4 ) return 31; v7 = *a4; if ( *a4 ) { v8 = nullptr; if ( a3 ) goto LABEL_4; goto LABEL_12; } v16 = sub_1005D7660( *((__int64 **)off_1009DA5E8 + 54), 392, (char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_output_software.cpp", 154, 0); if ( v16 ) { v8 = v16; v7 = sub_1005E3E8C(); if ( a3 ) { LABEL_4: v9 = a3[2]; *(_DWORD *)(v7 + 40) = v9; v10 = a3[5]; *(_QWORD *)(v7 + 368) = 0; if ( (a2 & 0x200) != 0 ) { v17 = 0; *(_DWORD *)(v7 + 72) = v10; } else { v11 = (unsigned int)a3[6]; if ( (unsigned int)(v9 - 1) <= 4 ) v11 = (qword_1007741F0[v9 - 1] * v11) >> 3; *(_DWORD *)(v7 + 72) = v11 * a3[3]; v12 = a3[3]; v13 = v9 - 2; if ( v13 > 3 ) v14 = 8; else v14 = dword_1007718F0[v13]; v17 = v14 * v12; if ( (unsigned int)(v14 * v12) > 8 ) { v18 = sub_1005D7660( *((__int64 **)off_1009DA5E8 + 54), v17, (char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_output_software.cpp", 204, 0); *(_QWORD *)(v7 + 368) = v18; if ( !v18 ) { LABEL_26: if ( v8 ) (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v8 + 24LL))(v8, 1); return 38; } } else { *(_QWORD *)(v7 + 368) = v7 + 376; } } if ( (a2 & 0x10000000) != 0 ) { *(_QWORD *)(v7 + 352) = 0; *(_QWORD *)(v7 + 360) = 0; goto LABEL_25; } if ( (a2 & 0x80) != 0 ) v19 = 2; else v19 = 4; v20 = sub_1005D7660( *((__int64 **)off_1009DA5E8 + 54), *(_DWORD *)(v7 + 72) + 2 * v17 + 16, (char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_output_software.cpp", 219, v19); *(_QWORD *)(v7 + 360) = v20; if ( v20 ) { *(_QWORD *)(v7 + 352) = ((unsigned __int64)v20 + v17 + 15) & 0xFFFFFFFFFFFFFFF0LL; LABEL_25: *(_DWORD *)(v7 + 40) = a3[2]; *(_DWORD *)(v7 + 68) = a3[6]; *a4 = v7; return 0; } goto LABEL_26; } LABEL_12: *a4 = v7; return 0; } return 38; }
GD Web Decomp Icon

GD Web Decomp

Raw Source