{"type": "func", "start": 504664, "end": 504740, "name": "sub_7B358", "pseudocode": "// \n// sub_7B358 from 0x7b358 to 0x7b3a4 (76 bytes)\n// \n// 2 xrefs:\n// > sub_7B0C4 @ 0x7b118\n// > sub_7B170 @ 0x7b21c\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:14:05 +0000\n// \n\nfloat *__fastcall sub_7B358(float *result)\n{\n  float v1; // s0\n  float v2; // s1\n  float v3; // s2\n  float v4; // s3\n  float v5; // s3\n  float v6; // 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    *(_QWORD *)result = 0;\n    v6 = 0.0;\n  }\n  else\n  {\n    v5 = 1.0 / v4;\n    *result = v1 * v5;\n    result[1] = v2 * v5;\n    v6 = v3 * v5;\n  }\n  result[2] = v6;\n  return result;\n}", "assembly": "; \n; sub_7B358 from 0x7b358 to 0x7b3a4 (76 bytes)\n; \n; 2 xrefs:\n; > sub_7B0C4 @ 0x7b118\n; > sub_7B170 @ 0x7b21c\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:14:05 +0000\n; \nLDP             S0, S1, [X0]                                           ; +0x0, 0x7b358\nLDR             S2, [X0,#8]                                            ; +0x4, 0x7b35c\nFMUL            S3, S0, S0                                             ; +0x8, 0x7b360\nFMADD           S3, S1, S1, S3                                         ; +0xc, 0x7b364\nFMADD           S3, S2, S2, S3                                         ; +0x10, 0x7b368\nFSQRT           S3, S3                                                 ; +0x14, 0x7b36c\nFCMP            S3, #0.0                                               ; +0x18, 0x7b370\nB.LE            loc_7B394                                              ; +0x1c, 0x7b374\nFMOV            S4, #1.0                                               ; +0x20, 0x7b378\nFDIV            S3, S4, S3                                             ; +0x24, 0x7b37c\nFMUL            S0, S0, S3                                             ; +0x28, 0x7b380\nFMUL            S1, S1, S3                                             ; +0x2c, 0x7b384\nSTP             S0, S1, [X0]                                           ; +0x30, 0x7b388\nFMUL            S0, S2, S3                                             ; +0x34, 0x7b38c\nB               loc_7B39C                                              ; +0x38, 0x7b390\nSTR             XZR, [X0]                                              ; +0x3c, 0x7b394\nFMOV            S0, WZR                                                ; +0x40, 0x7b398\nSTR             S0, [X0,#8]                                            ; +0x44, 0x7b39c\nRET                                                                    ; +0x48, 0x7b3a0", "xrefs": ["sub_7B0C4 @ 0x7b118", "sub_7B170 @ 0x7b21c"], "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"}