{"type": "func", "start": 460388, "end": 460644, "name": "sub_70664", "pseudocode": "// \n// sub_70664 from 0x70664 to 0x70764 (256 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x118950\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:13:59 +0000\n// \n\n// positive sp value has been detected, the output may be wrong!\nvoid __fastcall sub_70664(\n        float32x4_t *a1,\n        float32x4_t *a2,\n        float32x4_t *a3,\n        int a4,\n        float *a5,\n        float *a6,\n        double a7,\n        long double a8,\n        float a9,\n        float a10,\n        float a11)\n{\n  int v21; // w25\n  float v22; // s3\n  int8x16_t v23; // q0\n  float32x4_t v24; // q0\n  bool v25; // cc\n  float v26; // s0\n  float v27; // s1\n  float v28; // s0\n  float v29; // s1\n  float v30; // s0\n  float v31; // s1\n\n  v21 = 0;\n  while ( v21 < a4 )\n  {\n    v22 = *a6;\n    v23 = vmulq_f32(*a3, *a3);\n    v24 = vaddq_f32(v23, vextq_s8(v23, v23, 8u));\n    v24.n128_f32[0] = (float)(vaddq_f32(v24, vdupq_lane_s32((int32x2_t)v24.n128_u64[0], 1)).n128_f32[0]\n                            + (float)(a3[1].n128_f32[0] * a3[1].n128_f32[0]))\n                    + (float)(a3[1].n128_f32[1] * a3[1].n128_f32[1]);\n    v25 = v24.n128_f32[0] <= *a6;\n    v26 = v24.n128_f32[0] - *a5;\n    if ( v25 )\n      v27 = a10;\n    else\n      v27 = a9;\n    v28 = *a5 + (float)(v27 * v26);\n    *a5 = v28;\n    v29 = v22 + (float)((float)(v28 - v22) * v27);\n    v30 = *(float *)&a8;\n    *a6 = v29;\n    if ( v29 > a11 )\n      v30 = ((float (__fastcall *)(long double))sub_70868)(a8) * *(float *)&a8;\n    ++v21;\n    a3 = (float32x4_t *)((char *)a3 + 24);\n    *a2 = vmulq_n_f32(*a1, v30);\n    a2[1].n128_f32[0] = a1[1].n128_f32[0] * v30;\n    v31 = a1[1].n128_f32[1];\n    a1 = (float32x4_t *)((char *)a1 + 24);\n    a2[1].n128_f32[1] = v31 * v30;\n    a2 = (float32x4_t *)((char *)a2 + 24);\n  }\n}", "assembly": "; \n; sub_70664 from 0x70664 to 0x70764 (256 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x118950\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:13:59 +0000\n; \nSTP             D13, D12, [SP,#-0x10+var_70]!                          ; +0x0, 0x70664\nSTP             D11, D10, [SP,#0x70+var_60]                            ; +0x4, 0x70668\nSTP             D9, D8, [SP,#0x70+var_50]                              ; +0x8, 0x7066c\nSTR             X25, [SP,#0x70+var_40]                                 ; +0xc, 0x70670\nSTP             X24, X23, [SP,#0x70+var_30]                            ; +0x10, 0x70674\nSTP             X22, X21, [SP,#0x70+var_20]                            ; +0x14, 0x70678\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0x18, 0x7067c\nMOV             V8.16B, V5.16B                                         ; +0x1c, 0x70680\nMOV             V9.16B, V4.16B                                         ; +0x20, 0x70684\nMOV             V10.16B, V3.16B                                        ; +0x24, 0x70688\nMOV             V11.16B, V2.16B                                        ; +0x28, 0x7068c\nMOV             V12.16B, V1.16B                                        ; +0x2c, 0x70690\nMOV             V13.16B, V0.16B                                        ; +0x30, 0x70694\nMOV             X19, X5                                                ; +0x34, 0x70698\nMOV             X20, X4                                                ; +0x38, 0x7069c\nMOV             W21, W3                                                ; +0x3c, 0x706a0\nMOV             X22, X2                                                ; +0x40, 0x706a4\nMOV             X23, X1                                                ; +0x44, 0x706a8\nMOV             X24, X0                                                ; +0x48, 0x706ac\nMOV             W25, WZR                                               ; +0x4c, 0x706b0\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0x50, 0x706b4\nADD             X29, SP, #0x70                                         ; +0x54, 0x706b8\nCMP             W25, W21                                               ; +0x58, 0x706bc\nB.GE            loc_7075C                                              ; +0x5c, 0x706c0\nLDR             Q0, [X22]                                              ; +0x60, 0x706c4\nLDP             S1, S2, [X22,#0x10]                                    ; +0x64, 0x706c8\nLDR             S3, [X19]                                              ; +0x68, 0x706cc\nFMUL            V0.4S, V0.4S, V0.4S                                    ; +0x6c, 0x706d0\nEXT             V4.16B, V0.16B, V0.16B, #8                             ; +0x70, 0x706d4\nFADD            V0.4S, V0.4S, V4.4S                                    ; +0x74, 0x706d8\nDUP             V4.4S, V0.S[1]                                         ; +0x78, 0x706dc\nFADD            V0.4S, V0.4S, V4.4S                                    ; +0x7c, 0x706e0\nLDR             S4, [X20]                                              ; +0x80, 0x706e4\nFMADD           S0, S1, S1, S0                                         ; +0x84, 0x706e8\nFMADD           S0, S2, S2, S0                                         ; +0x88, 0x706ec\nFCMP            S0, S3                                                 ; +0x8c, 0x706f0\nFSUB            S0, S0, S4                                             ; +0x90, 0x706f4\nFCSEL           S1, S11, S10, GT                                       ; +0x94, 0x706f8\nFMADD           S0, S1, S0, S4                                         ; +0x98, 0x706fc\nSTR             S0, [X20]                                              ; +0x9c, 0x70700\nFSUB            S0, S0, S3                                             ; +0xa0, 0x70704\nFMADD           S1, S0, S1, S3                                         ; +0xa4, 0x70708\nFCMP            S1, S9                                                 ; +0xa8, 0x7070c\nMOV             V0.16B, V12.16B                                        ; +0xac, 0x70710\nSTR             S1, [X19]                                              ; +0xb0, 0x70714\nB.LE            loc_70724                                              ; +0xb4, 0x70718\nBL              sub_70868                                              ; +0xb8, 0x7071c\nFMUL            S0, S0, S12                                            ; +0xbc, 0x70720\nLDR             Q1, [X24]                                              ; +0xc0, 0x70724\nADD             W25, W25, #1                                           ; +0xc4, 0x70728\nADD             X22, X22, #0x18                                        ; +0xc8, 0x7072c\nFMUL            V1.4S, V1.4S, V0.S[0]                                  ; +0xcc, 0x70730\nSTR             Q1, [X23]                                              ; +0xd0, 0x70734\nLDR             S1, [X24,#0x10]                                        ; +0xd4, 0x70738\nFMUL            S1, S1, S0                                             ; +0xd8, 0x7073c\nSTR             S1, [X23,#0x10]                                        ; +0xdc, 0x70740\nLDR             S1, [X24,#0x14]                                        ; +0xe0, 0x70744\nADD             X24, X24, #0x18                                        ; +0xe4, 0x70748\nFMUL            S0, S1, S0                                             ; +0xe8, 0x7074c\nSTR             S0, [X23,#0x14]                                        ; +0xec, 0x70750\nADD             X23, X23, #0x18                                        ; +0xf0, 0x70754\nB               loc_706BC                                              ; +0xf4, 0x70758\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0xf8, 0x7075c\nB               loc_70848                                              ; +0xfc, 0x70760", "xrefs": ["<???> @ 0x118950"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}