{"type": "func", "start": 655156, "end": 655368, "name": "sub_9FF34", "pseudocode": "// \n// sub_9FF34 from 0x9ff34 to 0xa0008 (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_9FF34(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  int v13; // r3\n  int v14; // r2\n  float v15; // s12\n  int v16; // r1\n  float *v17; // r3\n  float *v18; // r6\n  __int64 v20; // [sp+0h] [bp-28h]\n  float *v21; // [sp+Ch] [bp-1Ch] BYREF\n\n  v21 = a1;\n  v7 = a2;\n  if ( a2 >> 2 )\n    j_FMOD_Resampler_Linear_16Bit_Stereo_VFP((int)&v21, a2 >> 2, a3, (int)a4, *a5, a5[1], 0.000030518);\n  v8 = v7 & 3;\n  while ( v8 )\n  {\n    --v8;\n    v9 = a4[1];\n    v10 = (float)*a4 * 2.3283e-10;\n    v11 = *(__int16 *)(a3 + 4 * v9);\n    v12 = a3 + 4 * v9;\n    v13 = *(__int16 *)(v12 + 4);\n    v14 = *(__int16 *)(v12 + 6);\n    v15 = (float)v13;\n    v16 = *(__int16 *)(a3 + 4 * v9 + 2);\n    v17 = v21;\n    v18 = v21 + 2;\n    *v21 = (float)((float)((float)(1.0 - v10) * (float)v11) + (float)(v10 * v15)) * 0.000030518;\n    v21 = v18;\n    v17[1] = (float)((float)((float)(1.0 - v10) * (float)v16) + (float)(v10 * (float)v14)) * 0.000030518;\n    *(_QWORD *)a4 += *(_QWORD *)a5;\n  }\n  return v20;\n}", "assembly": "; \n; sub_9FF34 from 0x9ff34 to 0xa0008 (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, 0x9ff34\nADD             R7, SP, #0xC                                           ; +0x2, 0x9ff36\nPUSH.W          {R4-R9,R11}; int                                       ; +0x4, 0x9ff38\nLDR.W           R9, [R7,#-0x18+arg_0]                                  ; +0x8, 0x9ff3c\nMOV             R4, R3                                                 ; +0xc, 0x9ff40\nSTR             R0, [SP,#0x10+var_4]                                   ; +0xe, 0x9ff42\nMOVS            R0, #0                                                 ; +0x10, 0x9ff44\nMOV             R5, R2                                                 ; +0x12, 0x9ff46\nMOV             R8, R1                                                 ; +0x14, 0x9ff48\nCMP.W           R0, R1,ASR#2                                           ; +0x16, 0x9ff4a\nBEQ             loc_9FF6A                                              ; +0x1a, 0x9ff4e\nLDRD.W          R0, R2, [R9]                                           ; +0x1c, 0x9ff50\nMOV.W           R3, #0x38000000                                        ; +0x20, 0x9ff54\nMOV.W           R1, R8,ASR#2; int                                      ; +0x24, 0x9ff58\nSTMEA.W         SP, {R0,R2,R3}                                         ; +0x28, 0x9ff5c\nADD             R0, SP, #0x10+var_4; int                               ; +0x2c, 0x9ff60\nMOV             R2, R5; int                                            ; +0x2e, 0x9ff62\nMOV             R3, R4; int                                            ; +0x30, 0x9ff64\nBLX             j_FMOD_Resampler_Linear_16Bit_Stereo_VFP               ; +0x32, 0x9ff66\nVMOV.F32        S2, #1.0                                               ; +0x36, 0x9ff6a\nAND.W           R0, R8, #3                                             ; +0x3a, 0x9ff6e\nVLDR            S0, =2.3283e-10                                        ; +0x3e, 0x9ff72\nVLDR            S4, =0.000030518                                       ; +0x42, 0x9ff76\nCMP             R0, #0                                                 ; +0x46, 0x9ff7a\nBEQ             loc_A0002                                              ; +0x48, 0x9ff7c\nVLDR            S6, [R4]                                               ; +0x4a, 0x9ff7e\nSUBS            R0, #1                                                 ; +0x4e, 0x9ff82\nVCVT.F32.U32    S6, S6                                                 ; +0x50, 0x9ff84\nLDR             R1, [R4,#4]                                            ; +0x54, 0x9ff88\nLDRSH.W         R2, [R5,R1,LSL#2]                                      ; +0x56, 0x9ff8a\nVMUL.F32        S6, S6, S0                                             ; +0x5a, 0x9ff8e\nVMOV            S10, R2                                                ; +0x5e, 0x9ff92\nADD.W           R2, R5, R1,LSL#2                                       ; +0x62, 0x9ff96\nLSLS            R1, R1, #2                                             ; +0x66, 0x9ff9a\nVCVT.F32.S32    S10, S10                                               ; +0x68, 0x9ff9c\nLDRSH.W         R3, [R2,#4]                                            ; +0x6c, 0x9ffa0\nLDRSH.W         R2, [R2,#6]                                            ; +0x70, 0x9ffa4\nADDS            R1, #2                                                 ; +0x74, 0x9ffa8\nVMOV            S12, R3                                                ; +0x76, 0x9ffaa\nVSUB.F32        S8, S2, S6                                             ; +0x7a, 0x9ffae\nVCVT.F32.S32    S12, S12                                               ; +0x7e, 0x9ffb2\nLDRSH           R1, [R5,R1]                                            ; +0x82, 0x9ffb6\nLDR             R3, [SP,#0x10+var_4]                                   ; +0x84, 0x9ffb8\nADD.W           R6, R3, #8                                             ; +0x86, 0x9ffba\nVMUL.F32        S10, S8, S10                                           ; +0x8a, 0x9ffbe\nVMLA.F32        S10, S6, S12                                           ; +0x8e, 0x9ffc2\nVMUL.F32        S10, S10, S4                                           ; +0x92, 0x9ffc6\nVSTR            S10, [R3]                                              ; +0x96, 0x9ffca\nVMOV            S10, R1                                                ; +0x9a, 0x9ffce\nSTR             R6, [SP,#0x10+var_4]                                   ; +0x9e, 0x9ffd2\nVCVT.F32.S32    S10, S10                                               ; +0xa0, 0x9ffd4\nVMUL.F32        S8, S8, S10                                            ; +0xa4, 0x9ffd8\nVMOV            S10, R2                                                ; +0xa8, 0x9ffdc\nVCVT.F32.S32    S10, S10                                               ; +0xac, 0x9ffe0\nVMLA.F32        S8, S6, S10                                            ; +0xb0, 0x9ffe4\nVMUL.F32        S6, S8, S4                                             ; +0xb4, 0x9ffe8\nVSTR            S6, [R3,#4]                                            ; +0xb8, 0x9ffec\nLDRD.W          R1, R2, [R9]                                           ; +0xbc, 0x9fff0\nLDRD.W          R3, R6, [R4]                                           ; +0xc0, 0x9fff4\nADDS            R1, R1, R3                                             ; +0xc4, 0x9fff8\nADCS            R2, R6                                                 ; +0xc6, 0x9fffa\nSTRD.W          R1, R2, [R4]                                           ; +0xc8, 0x9fffc\nB               loc_9FF7A                                              ; +0xcc, 0xa0000\nPOP.W           {R0-R3,R8,R9,R11}                                      ; +0xce, 0xa0002\nPOP             {R4-R7,PC}                                             ; +0xd2, 0xa0006", "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"}