{"type": "func", "start": 473560, "end": 473692, "name": "sub_739D8", "pseudocode": "// \n// sub_739D8 from 0x739d8 to 0x73a5c (132 bytes)\n// \n// 3 xrefs:\n// > sub_75360 @ 0x75418\n// > sub_75360 @ 0x754a4\n// > sub_75568 @ 0x757e4\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_739D8(__int64 result, int a2, float *a3, int a4, float *a5, float a6)\n{\n  __int64 v6; // x10\n  float v7; // s1\n  float *v8; // x12\n  float v9; // s2\n  __int64 v10; // x10\n  float v11; // s1\n  float v12; // s2\n\n  v6 = 0;\n  v7 = 0.0;\n  v8 = a3;\n  while ( v6 < (int)result )\n  {\n    v9 = *v8;\n    ++v6;\n    v8 += a2;\n    v7 = v7 + (float)(v9 * v9);\n  }\n  if ( v7 != 0.0 )\n  {\n    v10 = 0;\n    v11 = 1.0 / sqrtf(v7);\n    while ( v10 < (int)result )\n    {\n      v12 = *a3;\n      ++v10;\n      a3 += a2;\n      *a5 = *a5 + (float)((float)(v12 * a6) * v11);\n      a5 += a4;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_739D8 from 0x739d8 to 0x73a5c (132 bytes)\n; \n; 3 xrefs:\n; > sub_75360 @ 0x75418\n; > sub_75360 @ 0x754a4\n; > sub_75568 @ 0x757e4\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\nMOV             X10, XZR                                               ; +0x0, 0x739d8\nSXTW            X8, W0                                                 ; +0x4, 0x739dc\nSXTW            X9, W1                                                 ; +0x8, 0x739e0\nSBFIZ           X11, X1, #2, #0x20 ; ' '                               ; +0xc, 0x739e4\nFMOV            S1, WZR                                                ; +0x10, 0x739e8\nMOV             X12, X2                                                ; +0x14, 0x739ec\nCMP             X10, X8                                                ; +0x18, 0x739f0\nB.GE            loc_73A0C                                              ; +0x1c, 0x739f4\nLDR             S2, [X12]                                              ; +0x20, 0x739f8\nADD             X10, X10, #1                                           ; +0x24, 0x739fc\nADD             X12, X12, X11                                          ; +0x28, 0x73a00\nFMADD           S1, S2, S2, S1                                         ; +0x2c, 0x73a04\nB               loc_739F0                                              ; +0x30, 0x73a08\nFCMP            S1, #0.0                                               ; +0x34, 0x73a0c\nB.EQ            locret_73A58                                           ; +0x38, 0x73a10\nFSQRT           S1, S1                                                 ; +0x3c, 0x73a14\nFMOV            S2, #1.0                                               ; +0x40, 0x73a18\nMOV             X10, XZR                                               ; +0x44, 0x73a1c\nSBFIZ           X11, X3, #2, #0x20 ; ' '                               ; +0x48, 0x73a20\nFDIV            S1, S2, S1                                             ; +0x4c, 0x73a24\nLSL             X9, X9, #2                                             ; +0x50, 0x73a28\nCMP             X10, X8                                                ; +0x54, 0x73a2c\nB.GE            locret_73A58                                           ; +0x58, 0x73a30\nLDR             S2, [X2]                                               ; +0x5c, 0x73a34\nLDR             S3, [X4]                                               ; +0x60, 0x73a38\nADD             X10, X10, #1                                           ; +0x64, 0x73a3c\nADD             X2, X2, X9                                             ; +0x68, 0x73a40\nFMUL            S2, S2, S0                                             ; +0x6c, 0x73a44\nFMADD           S2, S2, S1, S3                                         ; +0x70, 0x73a48\nSTR             S2, [X4]                                               ; +0x74, 0x73a4c\nADD             X4, X4, X11                                            ; +0x78, 0x73a50\nB               loc_73A2C                                              ; +0x7c, 0x73a54\nRET                                                                    ; +0x80, 0x73a58", "xrefs": ["sub_75360 @ 0x75418", "sub_75360 @ 0x754a4", "sub_75568 @ 0x757e4"], "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"}