{"type": "func", "start": 420912, "end": 421030, "name": "sub_66C30", "pseudocode": "// \n// sub_66C30 from 0x66c30 to 0x66ca6 (118 bytes)\n// \n// 1 xrefs:\n// > sub_5D970 @ 0x5d9b2\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\nfloat *__fastcall sub_66C30(int a1, int a2, int a3, int a4)\n{\n  float *v4; // r1\n  float *v5; // r2\n  int v6; // r3\n  int v7; // r5\n  int v8; // r4\n  float *result; // r0\n  float *v10; // r4\n  float v11; // s2\n  float v12; // s4\n  float v13; // s8\n  float v14; // s6\n  float v15; // s10\n  float v16; // s2\n  float v17; // s14\n  float v18; // s1\n\n  v4 = (float *)(a2 + 4);\n  v5 = (float *)(a3 + 4);\n  v6 = a4 / 2;\n  v7 = 0;\n  v8 = a1 + 8 * v6;\n  result = (float *)(a1 + 4);\n  v10 = (float *)(v8 + 4);\n  while ( v6 > v7 )\n  {\n    v11 = *(v5 - 1);\n    ++v7;\n    v12 = *v5;\n    v5 += 2;\n    v13 = *(result - 1);\n    v14 = 1.0 - v11;\n    v15 = *result;\n    v16 = v11 + 1.0;\n    v17 = *(v10 - 1);\n    v18 = *v10;\n    v10 -= 2;\n    result += 2;\n    *(v4 - 1) = (float)((float)((float)(v13 * v14) - (float)(v15 * v12)) + (float)(v17 * v16)) - (float)(v18 * v12);\n    *v4 = (float)((float)((float)(v13 * v12) + (float)(v15 * v14)) - (float)(v17 * v12)) - (float)(v18 * v16);\n    v4 += 2;\n  }\n  return result;\n}", "assembly": "; \n; sub_66C30 from 0x66c30 to 0x66ca6 (118 bytes)\n; \n; 1 xrefs:\n; > sub_5D970 @ 0x5d9b2\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,R5,R7,LR}                                          ; +0x0, 0x66c30\nADD             R7, SP, #8                                             ; +0x2, 0x66c32\nVMOV.F32        S0, #1.0                                               ; +0x4, 0x66c34\nADD.W           R3, R3, R3,LSR#31                                      ; +0x8, 0x66c38\nADDS            R1, #4                                                 ; +0xc, 0x66c3c\nADDS            R2, #4                                                 ; +0xe, 0x66c3e\nASRS            R3, R3, #1                                             ; +0x10, 0x66c40\nMOVS            R5, #0                                                 ; +0x12, 0x66c42\nADD.W           R4, R0, R3,LSL#3                                       ; +0x14, 0x66c44\nADDS            R0, #4                                                 ; +0x18, 0x66c48\nADDS            R4, #4                                                 ; +0x1a, 0x66c4a\nCMP             R3, R5                                                 ; +0x1c, 0x66c4c\nBLE             locret_66CA4                                           ; +0x1e, 0x66c4e\nVLDR            S2, [R2,#-4]                                           ; +0x20, 0x66c50\nADDS            R5, #1                                                 ; +0x24, 0x66c54\nVLDR            S4, [R2]                                               ; +0x26, 0x66c56\nADDS            R2, #8                                                 ; +0x2a, 0x66c5a\nVLDR            S8, [R0,#-4]                                           ; +0x2c, 0x66c5c\nVSUB.F32        S6, S0, S2                                             ; +0x30, 0x66c60\nVLDR            S10, [R0]                                              ; +0x34, 0x66c64\nVADD.F32        S2, S2, S0                                             ; +0x38, 0x66c68\nVMUL.F32        S12, S8, S4                                            ; +0x3c, 0x66c6c\nVLDR            S14, [R4,#-4]                                          ; +0x40, 0x66c70\nVLDR            S1, [R4]                                               ; +0x44, 0x66c74\nSUBS            R4, #8                                                 ; +0x48, 0x66c78\nADDS            R0, #8                                                 ; +0x4a, 0x66c7a\nVMLA.F32        S12, S10, S6                                           ; +0x4c, 0x66c7c\nVMUL.F32        S6, S8, S6                                             ; +0x50, 0x66c80\nVMLS.F32        S12, S14, S4                                           ; +0x54, 0x66c84\nVMLS.F32        S6, S10, S4                                            ; +0x58, 0x66c88\nVMLS.F32        S12, S1, S2                                            ; +0x5c, 0x66c8c\nVMLA.F32        S6, S14, S2                                            ; +0x60, 0x66c90\nVMLS.F32        S6, S1, S4                                             ; +0x64, 0x66c94\nVSTR            S6, [R1,#-4]                                           ; +0x68, 0x66c98\nVSTR            S12, [R1]                                              ; +0x6c, 0x66c9c\nADDS            R1, #8                                                 ; +0x70, 0x66ca0\nB               loc_66C4C                                              ; +0x72, 0x66ca2\nPOP             {R4,R5,R7,PC}                                          ; +0x74, 0x66ca4", "xrefs": ["sub_5D970 @ 0x5d9b2"], "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"}