// // sub_4B46C from 0x4b46c to 0x4b4e4 (120 bytes) // // 3 xrefs: // > sub_4F598 @ 0x4f636 // > sub_58CA8 @ 0x59298 // > sub_79454 @ 0x79678 // // 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_4B46C(_DWORD *a1, int a2, int a3) { int v4; // r0 int result; // r0 int v6; // r1 unsigned int *v7; // r1 unsigned int v8; // r2 int v9; // [sp+4h] [bp-3Ch] BYREF _DWORD v10[10]; // [sp+8h] [bp-38h] BYREF v9 = 0; a1[1] = a3; a1[81] = a2; v4 = ((*(_DWORD *)(a3 + 68832) << 29) | ((a2 & 0xFFF) << 17)) + 2; a1[82] = v4; a1[11] = v4; qmemcpy(v10, (const void *)sub_92310(), 0x24u); v10[1] = "Channel Fader"; result = sub_617B8(a1[1], v10, 0, &v9, 0); if ( !result ) { v6 = v9; a1[14] = v9; a1[15] = v6; a1[16] = v6; v7 = (unsigned int *)(v6 + 92); __dmb(0xBu); do v8 = __ldrex(v7); while ( __strex(v8 | 0x60, v7) ); __dmb(0xBu); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source