// // sub_BEFF4 from 0xbeff4 to 0xbf13e (330 bytes) // // 2 xrefs: // > sub_59F98 @ 0x5a08a // > sub_63F48 @ 0x63fd6 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:41:48 +0000 // int __fastcall sub_BEFF4(int a1, int a2, _DWORD *a3, _DWORD *a4) { _DWORD *v4; // r4 unsigned __int64 *v8; // r8 int v9; // r6 unsigned __int64 *v10; // r0 int v11; // r3 int v12; // r0 int v13; // r1 unsigned __int64 *v14; // r0 unsigned int v15; // r0 unsigned __int64 *v16; // r0 unsigned int v18; // [sp+8h] [bp-20h] BYREF v18 = 0; if ( !a4 ) return 31; v4 = (_DWORD *)*a4; if ( *a4 ) { v8 = nullptr; } else { v10 = sub_BD580( *(int *)((char *)&dword_14C + (_DWORD)off_E8000), 0x100u, "../../src/fmod_output_software.cpp", 0x9Au, 0); if ( !v10 ) return 38; v8 = v10; v4 = sub_53FA8(); } if ( !a3 ) goto LABEL_21; v11 = a3[1]; v4[6] = v11; v12 = a3[4]; v4[12] = v12; v4[60] = 0; v18 = 0; if ( (a2 & 0x200) != 0 ) { v4[60] = 0; v4[12] = v12; v18 = 0; goto LABEL_14; } v9 = sub_4C6EA(a3[5], v4 + 12, a3[2], v11); if ( !v9 ) { v9 = sub_4C6EA(8u, &v18, a3[2], a3[1]); if ( !v9 ) { if ( v18 > 8 ) { v16 = sub_BD580( *(int *)((char *)&dword_14C + (_DWORD)off_E8000), v18, "../../src/fmod_output_software.cpp", 0xCCu, 0); v4[60] = v16; if ( !v16 ) { LABEL_24: v9 = 38; goto LABEL_25; } } else { v4[60] = v4 + 61; } LABEL_14: if ( (a2 & 0x10000000) != 0 ) { v15 = 0; v4[59] = 0; goto LABEL_20; } v13 = 2; if ( (a2 & 0x80) == 0 ) v13 = 4; v14 = sub_BD580( *(int *)((char *)&dword_14C + (_DWORD)off_E8000), v4[12] + 2 * v18 + 16, "../../src/fmod_output_software.cpp", 0xDBu, v13); v4[59] = v14; if ( v14 ) { v15 = ((unsigned int)v14 + v18 + 15) & 0xFFFFFFF0; LABEL_20: v4[58] = v15; v4[6] = a3[1]; v4[11] = a3[5]; LABEL_21: *a4 = v4; return 0; } goto LABEL_24; } } LABEL_25: if ( v8 ) (*(void (__fastcall **)(unsigned __int64 *, int))(*(_DWORD *)v8 + 12))(v8, 1); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source