{"type": "func", "start": 654588, "end": 654750, "name": "sub_9FCFC", "pseudocode": "// \n// sub_9FCFC from 0x9fcfc to 0x9fd9e (162 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall sub_9FCFC(int a1, int a2, int a3, unsigned int *a4, int *a5)\n{\n  char v7; // r8\n  int v8; // r0\n  char *v9; // r2\n  int v10; // r1\n  int v11; // r2\n  float v12; // s6\n  float *v13; // r3\n  __int64 v15; // [sp+0h] [bp-28h]\n  int v16; // [sp+Ch] [bp-1Ch] BYREF\n\n  v16 = a1;\n  v7 = a2;\n  if ( a2 >> 3 )\n    j_FMOD_Resampler_Linear_8Bit_Mono_VFP((int)&v16, a2 >> 3, a3, (int)a4, *a5, a5[1], 0.0078125);\n  v8 = v7 & 7;\n  while ( v8 )\n  {\n    --v8;\n    v9 = (char *)(a3 + a4[1]);\n    v10 = *v9;\n    v11 = v9[1];\n    v12 = (float)*a4;\n    v13 = (float *)v16;\n    v16 += 4;\n    *v13 = (float)((float)((float)(1.0 - (float)(v12 * 2.3283e-10)) * (float)v10)\n                 + (float)((float)(v12 * 2.3283e-10) * (float)v11))\n         * 0.0078125;\n    *(_QWORD *)a4 += *(_QWORD *)a5;\n  }\n  return v15;\n}", "assembly": "; \n; sub_9FCFC from 0x9fcfc to 0x9fd9e (162 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x9fcfc\nADD             R7, SP, #0xC                                           ; +0x2, 0x9fcfe\nPUSH.W          {R4-R9,R11}; int                                       ; +0x4, 0x9fd00\nLDR.W           R9, [R7,#-0x18+arg_0]                                  ; +0x8, 0x9fd04\nMOV             R4, R3                                                 ; +0xc, 0x9fd08\nSTR             R0, [SP,#0x10+var_4]                                   ; +0xe, 0x9fd0a\nMOVS            R0, #0                                                 ; +0x10, 0x9fd0c\nMOV             R5, R2                                                 ; +0x12, 0x9fd0e\nMOV             R8, R1                                                 ; +0x14, 0x9fd10\nCMP.W           R0, R1,ASR#3                                           ; +0x16, 0x9fd12\nBEQ             loc_9FD32                                              ; +0x1a, 0x9fd16\nLDRD.W          R0, R2, [R9]                                           ; +0x1c, 0x9fd18\nMOV.W           R3, #0x3C000000                                        ; +0x20, 0x9fd1c\nMOV.W           R1, R8,ASR#3; int                                      ; +0x24, 0x9fd20\nSTMEA.W         SP, {R0,R2,R3}                                         ; +0x28, 0x9fd24\nADD             R0, SP, #0x10+var_4; int                               ; +0x2c, 0x9fd28\nMOV             R2, R5; int                                            ; +0x2e, 0x9fd2a\nMOV             R3, R4; int                                            ; +0x30, 0x9fd2c\nBLX             j_FMOD_Resampler_Linear_8Bit_Mono_VFP                  ; +0x32, 0x9fd2e\nVMOV.F32        S2, #1.0                                               ; +0x36, 0x9fd32\nAND.W           R0, R8, #7                                             ; +0x3a, 0x9fd36\nVLDR            S0, =2.3283e-10                                        ; +0x3e, 0x9fd3a\nVLDR            S4, =0.0078125                                         ; +0x42, 0x9fd3e\nCBZ             R0, loc_9FD98                                          ; +0x46, 0x9fd42\nLDR             R1, [R4,#4]                                            ; +0x48, 0x9fd44\nSUBS            R0, #1                                                 ; +0x4a, 0x9fd46\nVLDR            S6, [R4]                                               ; +0x4c, 0x9fd48\nADDS            R2, R5, R1                                             ; +0x50, 0x9fd4c\nLDRSB           R1, [R5,R1]                                            ; +0x52, 0x9fd4e\nLDRSB.W         R2, [R2,#1]                                            ; +0x54, 0x9fd50\nVCVT.F32.U32    S6, S6                                                 ; +0x58, 0x9fd54\nLDR             R3, [SP,#0x10+var_4]                                   ; +0x5c, 0x9fd58\nVMOV            S10, R1                                                ; +0x5e, 0x9fd5a\nADDS            R6, R3, #4                                             ; +0x62, 0x9fd5e\nSTR             R6, [SP,#0x10+var_4]                                   ; +0x64, 0x9fd60\nVCVT.F32.S32    S10, S10                                               ; +0x66, 0x9fd62\nVMUL.F32        S6, S6, S0                                             ; +0x6a, 0x9fd66\nVSUB.F32        S8, S2, S6                                             ; +0x6e, 0x9fd6a\nVMUL.F32        S8, S8, S10                                            ; +0x72, 0x9fd6e\nVMOV            S10, R2                                                ; +0x76, 0x9fd72\nVCVT.F32.S32    S10, S10                                               ; +0x7a, 0x9fd76\nVMLA.F32        S8, S6, S10                                            ; +0x7e, 0x9fd7a\nVMUL.F32        S6, S8, S4                                             ; +0x82, 0x9fd7e\nVSTR            S6, [R3]                                               ; +0x86, 0x9fd82\nLDRD.W          R1, R2, [R9]                                           ; +0x8a, 0x9fd86\nLDRD.W          R3, R6, [R4]                                           ; +0x8e, 0x9fd8a\nADDS            R1, R1, R3                                             ; +0x92, 0x9fd8e\nADCS            R2, R6                                                 ; +0x94, 0x9fd90\nSTRD.W          R1, R2, [R4]                                           ; +0x96, 0x9fd92\nB               loc_9FD42                                              ; +0x9a, 0x9fd96\nPOP.W           {R0-R3,R8,R9,R11}                                      ; +0x9c, 0x9fd98\nPOP             {R4-R7,PC}                                             ; +0xa0, 0x9fd9c", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}