{"type": "func", "start": 654760, "end": 654972, "name": "sub_9FDA8", "pseudocode": "// \n// sub_9FDA8 from 0x9fda8 to 0x9fe7c (212 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:41:32 +0000\n// \n\n__int64 __fastcall sub_9FDA8(float *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  float v10; // s6\n  int v11; // s10\n  int v12; // r2\n  float v13; // s12\n  int v14; // r1\n  float *v15; // r3\n  int v16; // r2\n  float *v17; // r6\n  __int64 v19; // [sp+0h] [bp-28h]\n  float *v20; // [sp+Ch] [bp-1Ch] BYREF\n\n  v20 = a1;\n  v7 = a2;\n  if ( a2 >> 2 )\n    j_FMOD_Resampler_Linear_8Bit_Stereo_VFP((int)&v20, a2 >> 2, a3, (int)a4, *a5, a5[1], 0.0078125);\n  v8 = v7 & 3;\n  while ( v8 )\n  {\n    --v8;\n    v9 = a4[1];\n    v10 = (float)*a4 * 2.3283e-10;\n    v11 = *(char *)(a3 + 2 * v9);\n    v12 = a3 + 2 * v9;\n    v13 = (float)*(char *)(v12 + 2);\n    v14 = *(char *)(a3 + 2 * v9 + 1);\n    v15 = v20;\n    v16 = *(char *)(v12 + 3);\n    v17 = v20 + 2;\n    *v20 = (float)((float)((float)(1.0 - v10) * (float)v11) + (float)(v10 * v13)) * 0.0078125;\n    v20 = v17;\n    v15[1] = (float)((float)((float)(1.0 - v10) * (float)v14) + (float)(v10 * (float)v16)) * 0.0078125;\n    *(_QWORD *)a4 += *(_QWORD *)a5;\n  }\n  return v19;\n}", "assembly": "; \n; sub_9FDA8 from 0x9fda8 to 0x9fe7c (212 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:41:32 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x9fda8\nADD             R7, SP, #0xC                                           ; +0x2, 0x9fdaa\nPUSH.W          {R4-R9,R11}; int                                       ; +0x4, 0x9fdac\nLDR.W           R9, [R7,#-0x18+arg_0]                                  ; +0x8, 0x9fdb0\nMOV             R4, R3                                                 ; +0xc, 0x9fdb4\nSTR             R0, [SP,#0x10+var_4]                                   ; +0xe, 0x9fdb6\nMOVS            R0, #0                                                 ; +0x10, 0x9fdb8\nMOV             R5, R2                                                 ; +0x12, 0x9fdba\nMOV             R8, R1                                                 ; +0x14, 0x9fdbc\nCMP.W           R0, R1,ASR#2                                           ; +0x16, 0x9fdbe\nBEQ             loc_9FDDE                                              ; +0x1a, 0x9fdc2\nLDRD.W          R0, R2, [R9]                                           ; +0x1c, 0x9fdc4\nMOV.W           R3, #0x3C000000                                        ; +0x20, 0x9fdc8\nMOV.W           R1, R8,ASR#2; int                                      ; +0x24, 0x9fdcc\nSTMEA.W         SP, {R0,R2,R3}                                         ; +0x28, 0x9fdd0\nADD             R0, SP, #0x10+var_4; int                               ; +0x2c, 0x9fdd4\nMOV             R2, R5; int                                            ; +0x2e, 0x9fdd6\nMOV             R3, R4; int                                            ; +0x30, 0x9fdd8\nBLX             j_FMOD_Resampler_Linear_8Bit_Stereo_VFP                ; +0x32, 0x9fdda\nVMOV.F32        S2, #1.0                                               ; +0x36, 0x9fdde\nAND.W           R0, R8, #3                                             ; +0x3a, 0x9fde2\nVLDR            S0, =2.3283e-10                                        ; +0x3e, 0x9fde6\nVLDR            S4, =0.0078125                                         ; +0x42, 0x9fdea\nCMP             R0, #0                                                 ; +0x46, 0x9fdee\nBEQ             loc_9FE76                                              ; +0x48, 0x9fdf0\nVLDR            S6, [R4]                                               ; +0x4a, 0x9fdf2\nSUBS            R0, #1                                                 ; +0x4e, 0x9fdf6\nVCVT.F32.U32    S6, S6                                                 ; +0x50, 0x9fdf8\nLDR             R1, [R4,#4]                                            ; +0x54, 0x9fdfc\nLDRSB.W         R2, [R5,R1,LSL#1]                                      ; +0x56, 0x9fdfe\nVMUL.F32        S6, S6, S0                                             ; +0x5a, 0x9fe02\nVMOV            S10, R2                                                ; +0x5e, 0x9fe06\nADD.W           R2, R5, R1,LSL#1                                       ; +0x62, 0x9fe0a\nLSLS            R1, R1, #1                                             ; +0x66, 0x9fe0e\nVCVT.F32.S32    S10, S10                                               ; +0x68, 0x9fe10\nLDRSB.W         R3, [R2,#2]                                            ; +0x6c, 0x9fe14\nADDS            R1, #1                                                 ; +0x70, 0x9fe18\nVMOV            S12, R3                                                ; +0x72, 0x9fe1a\nVSUB.F32        S8, S2, S6                                             ; +0x76, 0x9fe1e\nVCVT.F32.S32    S12, S12                                               ; +0x7a, 0x9fe22\nLDRSB           R1, [R5,R1]                                            ; +0x7e, 0x9fe26\nLDR             R3, [SP,#0x10+var_4]                                   ; +0x80, 0x9fe28\nLDRSB.W         R2, [R2,#3]                                            ; +0x82, 0x9fe2a\nADD.W           R6, R3, #8                                             ; +0x86, 0x9fe2e\nVMUL.F32        S10, S8, S10                                           ; +0x8a, 0x9fe32\nVMLA.F32        S10, S6, S12                                           ; +0x8e, 0x9fe36\nVMUL.F32        S10, S10, S4                                           ; +0x92, 0x9fe3a\nVSTR            S10, [R3]                                              ; +0x96, 0x9fe3e\nVMOV            S10, R1                                                ; +0x9a, 0x9fe42\nSTR             R6, [SP,#0x10+var_4]                                   ; +0x9e, 0x9fe46\nVCVT.F32.S32    S10, S10                                               ; +0xa0, 0x9fe48\nVMUL.F32        S8, S8, S10                                            ; +0xa4, 0x9fe4c\nVMOV            S10, R2                                                ; +0xa8, 0x9fe50\nVCVT.F32.S32    S10, S10                                               ; +0xac, 0x9fe54\nVMLA.F32        S8, S6, S10                                            ; +0xb0, 0x9fe58\nVMUL.F32        S6, S8, S4                                             ; +0xb4, 0x9fe5c\nVSTR            S6, [R3,#4]                                            ; +0xb8, 0x9fe60\nLDRD.W          R1, R2, [R9]                                           ; +0xbc, 0x9fe64\nLDRD.W          R3, R6, [R4]                                           ; +0xc0, 0x9fe68\nADDS            R1, R1, R3                                             ; +0xc4, 0x9fe6c\nADCS            R2, R6                                                 ; +0xc6, 0x9fe6e\nSTRD.W          R1, R2, [R4]                                           ; +0xc8, 0x9fe70\nB               loc_9FDEE                                              ; +0xcc, 0x9fe74\nPOP.W           {R0-R3,R8,R9,R11}                                      ; +0xce, 0x9fe76\nPOP             {R4-R7,PC}                                             ; +0xd2, 0x9fe7a", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}