// // sub_BF3B4 from 0xbf3b4 to 0xbf456 (162 bytes) // // 0 xrefs: // // 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_BF3B4(int a1) { int *v2; // r6 int result; // r0 int v4; // r0 int v5; // r5 int v6; // r8 int v7; // r1 int v8; // r0 int v9; // r1 int v10; // r0 int i; // r1 int v12; // r2 int v13; // [sp+4h] [bp-14h] BYREF v2 = *(int **)a1; v13 = 0; result = sub_BFFC4(&v13); if ( !result ) { v4 = *v2; v5 = v2[7]; v6 = v2[2]; v7 = v13 - v2[6]; v2[6] = v13; if ( v7 > 1000 ) v7 = 0; v8 = v4 * v7 / 1000 + v2[8]; v2[8] = v8; if ( v8 - v5 < v6 ) { j_FMOD_OS_Time_Sleep(v2[4]); return 0; } result = (*(int (__fastcall **)(int, int, int))(a1 + 4))(a1, v2[10], v6); if ( !result ) { v9 = v2[5]; v2[7] += v2[2]; if ( v9 == 1 ) { v10 = v2[10]; for ( i = 0; ; ++i ) { v12 = v2[3]; if ( i >= v12 ) break; *(_BYTE *)(v10 + i) ^= 0x80u; } } else { v12 = v2[3]; } result = j_FMOD_OS_File_Write(v2[11], v2[10], v12, 0); if ( !result ) { v2[9] += v2[3]; return 0; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source