{"type": "func", "start": 392856, "end": 392940, "name": "sub_5FE98", "pseudocode": "// \n// sub_5FE98 from 0x5fe98 to 0x5feec (84 bytes)\n// \n// 6 xrefs:\n// > sub_5FBCC @ 0x5fca8\n// > sub_605FC @ 0x60748\n// > sub_8D6F8 @ 0x8e6e0\n// > sub_94D7C @ 0x9510c\n// > sub_9F200 @ 0x9f62c\n// > sub_A40E0 @ 0xa46ac\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_5FE98(__int64 a1, int a2)\n{\n  int v2; // w9\n  float v3; // s0\n\n  if ( a2 <= 1 )\n    v2 = 1;\n  else\n    v2 = a2;\n  v3 = (float)v2 * (float)(0.4 * *(float *)(a1 + 3028));\n  *(_DWORD *)(a1 + 3060) = v2;\n  if ( v3 >= 0.01 )\n    *(_DWORD *)(a1 + 2132) = (int)(float)((float)*(int *)(*(_QWORD *)(a1 + 8) + 16LL) / v3);\n  return 0;\n}", "assembly": "; \n; sub_5FE98 from 0x5fe98 to 0x5feec (84 bytes)\n; \n; 6 xrefs:\n; > sub_5FBCC @ 0x5fca8\n; > sub_605FC @ 0x60748\n; > sub_8D6F8 @ 0x8e6e0\n; > sub_94D7C @ 0x9510c\n; > sub_9F200 @ 0x9f62c\n; > sub_A40E0 @ 0xa46ac\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\nADRP            X8, #dword_2F0AC@PAGE                                  ; +0x0, 0x5fe98\nLDR             S0, [X8,#dword_2F0AC@PAGEOFF]                          ; +0x4, 0x5fe9c\nLDR             S1, [X0,#0xBD4]                                        ; +0x8, 0x5fea0\nADRP            X8, #dword_2F0BC@PAGE                                  ; +0xc, 0x5fea4\nCMP             W1, #1                                                 ; +0x10, 0x5fea8\nLDR             S2, [X8,#dword_2F0BC@PAGEOFF]                          ; +0x14, 0x5feac\nCSINC           W9, W1, WZR, GT                                        ; +0x18, 0x5feb0\nSCVTF           S3, W9                                                 ; +0x1c, 0x5feb4\nFMUL            S0, S0, S1                                             ; +0x20, 0x5feb8\nFMUL            S0, S3, S0                                             ; +0x24, 0x5febc\nFCMP            S0, S2                                                 ; +0x28, 0x5fec0\nSTR             W9, [X0,#0xBF4]                                        ; +0x2c, 0x5fec4\nB.LT            loc_5FEE4                                              ; +0x30, 0x5fec8\nLDR             X8, [X0,#8]                                            ; +0x34, 0x5fecc\nLDR             S1, [X8,#0x10]                                         ; +0x38, 0x5fed0\nSCVTF           S1, S1                                                 ; +0x3c, 0x5fed4\nFDIV            S0, S1, S0                                             ; +0x40, 0x5fed8\nFCVTZS          W8, S0                                                 ; +0x44, 0x5fedc\nSTR             W8, [X0,#0x854]                                        ; +0x48, 0x5fee0\nMOV             W0, WZR                                                ; +0x4c, 0x5fee4\nRET                                                                    ; +0x50, 0x5fee8", "xrefs": ["sub_5FBCC @ 0x5fca8", "sub_605FC @ 0x60748", "sub_8D6F8 @ 0x8e6e0", "sub_94D7C @ 0x9510c", "sub_9F200 @ 0x9f62c", "sub_A40E0 @ 0xa46ac"], "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"}