{"type": "func", "start": 654980, "end": 655146, "name": "sub_9FE84", "pseudocode": "// \n// sub_9FE84 from 0x9fe84 to 0x9ff2a (166 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_9FE84(int a1, int a2, int a3, unsigned int *a4, int *a5)\n{\n  char v7; // r8\n  int v8; // r0\n  unsigned int v9; // r1\n  int v10; // r2\n  float v11; // s6\n  float *v12; // r3\n  int v13; // s10\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_16Bit_Mono_VFP((int)&v16, a2 >> 3, a3, (int)a4, *a5, a5[1], 0.000030518);\n  v8 = v7 & 7;\n  while ( v8 )\n  {\n    v9 = a4[1];\n    --v8;\n    v10 = *(__int16 *)(a3 + 2 * v9 + 2);\n    v11 = (float)*a4;\n    v12 = (float *)v16;\n    v13 = *(__int16 *)(a3 + 2 * v9);\n    v16 += 4;\n    *v12 = (float)((float)((float)(1.0 - (float)(v11 * 2.3283e-10)) * (float)v13)\n                 + (float)((float)(v11 * 2.3283e-10) * (float)v10))\n         * 0.000030518;\n    *(_QWORD *)a4 += *(_QWORD *)a5;\n  }\n  return v15;\n}", "assembly": "; \n; sub_9FE84 from 0x9fe84 to 0x9ff2a (166 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, 0x9fe84\nADD             R7, SP, #0xC                                           ; +0x2, 0x9fe86\nPUSH.W          {R4-R9,R11}; int                                       ; +0x4, 0x9fe88\nLDR.W           R9, [R7,#-0x18+arg_0]                                  ; +0x8, 0x9fe8c\nMOV             R4, R3                                                 ; +0xc, 0x9fe90\nSTR             R0, [SP,#0x10+var_4]                                   ; +0xe, 0x9fe92\nMOVS            R0, #0                                                 ; +0x10, 0x9fe94\nMOV             R5, R2                                                 ; +0x12, 0x9fe96\nMOV             R8, R1                                                 ; +0x14, 0x9fe98\nCMP.W           R0, R1,ASR#3                                           ; +0x16, 0x9fe9a\nBEQ             loc_9FEBA                                              ; +0x1a, 0x9fe9e\nLDRD.W          R0, R2, [R9]                                           ; +0x1c, 0x9fea0\nMOV.W           R3, #0x38000000                                        ; +0x20, 0x9fea4\nMOV.W           R1, R8,ASR#3; int                                      ; +0x24, 0x9fea8\nSTMEA.W         SP, {R0,R2,R3}                                         ; +0x28, 0x9feac\nADD             R0, SP, #0x10+var_4; int                               ; +0x2c, 0x9feb0\nMOV             R2, R5; int                                            ; +0x2e, 0x9feb2\nMOV             R3, R4; int                                            ; +0x30, 0x9feb4\nBLX             j_FMOD_Resampler_Linear_16Bit_Mono_VFP                 ; +0x32, 0x9feb6\nVMOV.F32        S2, #1.0                                               ; +0x36, 0x9feba\nAND.W           R0, R8, #7                                             ; +0x3a, 0x9febe\nVLDR            S0, =2.3283e-10                                        ; +0x3e, 0x9fec2\nVLDR            S4, =0.000030518                                       ; +0x42, 0x9fec6\nCBZ             R0, loc_9FF24                                          ; +0x46, 0x9feca\nLDR             R1, [R4,#4]                                            ; +0x48, 0x9fecc\nSUBS            R0, #1                                                 ; +0x4a, 0x9fece\nVLDR            S6, [R4]                                               ; +0x4c, 0x9fed0\nADD.W           R2, R5, R1,LSL#1                                       ; +0x50, 0x9fed4\nLDRSH.W         R1, [R5,R1,LSL#1]                                      ; +0x54, 0x9fed8\nLDRSH.W         R2, [R2,#2]                                            ; +0x58, 0x9fedc\nVCVT.F32.U32    S6, S6                                                 ; +0x5c, 0x9fee0\nLDR             R3, [SP,#0x10+var_4]                                   ; +0x60, 0x9fee4\nVMOV            S10, R1                                                ; +0x62, 0x9fee6\nADDS            R6, R3, #4                                             ; +0x66, 0x9feea\nSTR             R6, [SP,#0x10+var_4]                                   ; +0x68, 0x9feec\nVCVT.F32.S32    S10, S10                                               ; +0x6a, 0x9feee\nVMUL.F32        S6, S6, S0                                             ; +0x6e, 0x9fef2\nVSUB.F32        S8, S2, S6                                             ; +0x72, 0x9fef6\nVMUL.F32        S8, S8, S10                                            ; +0x76, 0x9fefa\nVMOV            S10, R2                                                ; +0x7a, 0x9fefe\nVCVT.F32.S32    S10, S10                                               ; +0x7e, 0x9ff02\nVMLA.F32        S8, S6, S10                                            ; +0x82, 0x9ff06\nVMUL.F32        S6, S8, S4                                             ; +0x86, 0x9ff0a\nVSTR            S6, [R3]                                               ; +0x8a, 0x9ff0e\nLDRD.W          R1, R2, [R9]                                           ; +0x8e, 0x9ff12\nLDRD.W          R3, R6, [R4]                                           ; +0x92, 0x9ff16\nADDS            R1, R1, R3                                             ; +0x96, 0x9ff1a\nADCS            R2, R6                                                 ; +0x98, 0x9ff1c\nSTRD.W          R1, R2, [R4]                                           ; +0x9a, 0x9ff1e\nB               loc_9FECA                                              ; +0x9e, 0x9ff22\nPOP.W           {R0-R3,R8,R9,R11}                                      ; +0xa0, 0x9ff24\nPOP             {R4-R7,PC}                                             ; +0xa4, 0x9ff28", "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"}