{"type": "func", "start": 412300, "end": 412376, "name": "sub_64A8C", "pseudocode": "// \n// sub_64A8C from 0x64a8c to 0x64ad8 (76 bytes)\n// \n// 2 xrefs:\n// > sub_64824 @ 0x6485e\n// > sub_648B0 @ 0x64950\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_64A8C(float *result)\n{\n  float v1; // s2\n  float v2; // s4\n  float v3; // s0\n  float v4; // s6\n  float v5; // s0\n\n  v1 = *result;\n  v2 = result[1];\n  v3 = result[2];\n  v4 = sqrtf((float)((float)(v1 * v1) + (float)(v2 * v2)) + (float)(v3 * v3));\n  if ( v4 <= 0.0 )\n  {\n    v5 = 0.0;\n    *result = 0.0;\n    result[1] = 0.0;\n  }\n  else\n  {\n    v5 = v3 / v4;\n    *result = v1 / v4;\n    result[1] = v2 / v4;\n  }\n  result[2] = v5;\n  return result;\n}", "assembly": "; \n; sub_64A8C from 0x64a8c to 0x64ad8 (76 bytes)\n; \n; 2 xrefs:\n; > sub_64824 @ 0x6485e\n; > sub_648B0 @ 0x64950\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\nVLDR            S2, [R0]                                               ; +0x0, 0x64a8c\nVLDR            S4, [R0,#4]                                            ; +0x4, 0x64a90\nVMUL.F32        S6, S2, S2                                             ; +0x8, 0x64a94\nVLDR            S0, [R0,#8]                                            ; +0xc, 0x64a98\nVMLA.F32        S6, S4, S4                                             ; +0x10, 0x64a9c\nVMLA.F32        S6, S0, S0                                             ; +0x14, 0x64aa0\nVSQRT.F32       S6, S6                                                 ; +0x18, 0x64aa4\nVCMPE.F32       S6, #0.0                                               ; +0x1c, 0x64aa8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x20, 0x64aac\nBLE             loc_64AC8                                              ; +0x24, 0x64ab0\nVDIV.F32        S2, S2, S6                                             ; +0x26, 0x64ab2\nVDIV.F32        S0, S0, S6                                             ; +0x2a, 0x64ab6\nVDIV.F32        S4, S4, S6                                             ; +0x2e, 0x64aba\nVSTR            S2, [R0]                                               ; +0x32, 0x64abe\nVSTR            S4, [R0,#4]                                            ; +0x36, 0x64ac2\nB               loc_64AD2                                              ; +0x3a, 0x64ac6\nMOVS            R1, #0                                                 ; +0x3c, 0x64ac8\nVLDR            S0, =0.0                                               ; +0x3e, 0x64aca\nSTRD.W          R1, R1, [R0]                                           ; +0x42, 0x64ace\nVSTR            S0, [R0,#8]                                            ; +0x46, 0x64ad2\nBX              LR                                                     ; +0x4a, 0x64ad6", "xrefs": ["sub_64824 @ 0x6485e", "sub_648B0 @ 0x64950"], "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"}