{"type": "func", "start": 620968, "end": 621082, "name": "sub_979A8", "pseudocode": "// \n// sub_979A8 from 0x979a8 to 0x97a1a (114 bytes)\n// \n// 2 xrefs:\n// > sub_97948 @ 0x97986\n// > sub_97A34 @ 0x97a6a\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\nint __fastcall sub_979A8(int a1, float a2)\n{\n  float v2; // s4\n  float v3; // s0\n\n  v2 = (float)*(int *)(*(_DWORD *)(a1 + 128) + 1184);\n  v3 = 1.0;\n  if ( a2 < 22000.0 )\n  {\n    if ( (float)(v2 * 0.31831) >= a2 )\n      v3 = (float)(1.0 / v2) / (float)((float)(1.0 / v2) + (float)(0.15915 / a2));\n    else\n      v3 = (float)((float)(a2 - (float)(v2 * 0.31831)) / (float)((float)(v2 * -0.95493) + 66000.0)) + 0.66667;\n  }\n  *(float *)(a1 + 636) = v3;\n  return 0;\n}", "assembly": "; \n; sub_979A8 from 0x979a8 to 0x97a1a (114 bytes)\n; \n; 2 xrefs:\n; > sub_97948 @ 0x97986\n; > sub_97A34 @ 0x97a6a\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\nLDR.W           R2, [R0,#0x80]                                         ; +0x0, 0x979a8\nVMOV            S2, R1                                                 ; +0x4, 0x979ac\nVLDR            S6, =22000.0                                           ; +0x8, 0x979b0\nADD.W           R2, R2, #0x4A0                                         ; +0xc, 0x979b4\nVCMPE.F32       S2, S6                                                 ; +0x10, 0x979b8\nVLDR            S0, [R2]                                               ; +0x14, 0x979bc\nVMRS            APSR_nzcv, FPSCR                                       ; +0x18, 0x979c0\nVCVT.F32.S32    S4, S0                                                 ; +0x1c, 0x979c4\nVMOV.F32        S0, #1.0                                               ; +0x20, 0x979c8\nBGE             loc_97A12                                              ; +0x24, 0x979cc\nVLDR            S6, =0.31831                                           ; +0x26, 0x979ce\nVMUL.F32        S6, S4, S6                                             ; +0x2a, 0x979d2\nVCMPE.F32       S6, S2                                                 ; +0x2e, 0x979d6\nVMRS            APSR_nzcv, FPSCR                                       ; +0x32, 0x979da\nBGE             loc_979FE                                              ; +0x36, 0x979de\nVLDR            S0, =-0.95493                                          ; +0x38, 0x979e0\nVLDR            S8, =66000.0                                           ; +0x3c, 0x979e4\nVMLA.F32        S8, S4, S0                                             ; +0x40, 0x979e8\nVSUB.F32        S0, S2, S6                                             ; +0x44, 0x979ec\nVLDR            S2, =0.66667                                           ; +0x48, 0x979f0\nVDIV.F32        S0, S0, S8                                             ; +0x4c, 0x979f4\nVADD.F32        S0, S0, S2                                             ; +0x50, 0x979f8\nB               loc_97A12                                              ; +0x54, 0x979fc\nVDIV.F32        S0, S0, S4                                             ; +0x56, 0x979fe\nVLDR            S4, =0.15915                                           ; +0x5a, 0x97a02\nVDIV.F32        S2, S4, S2                                             ; +0x5e, 0x97a06\nVADD.F32        S2, S0, S2                                             ; +0x62, 0x97a0a\nVDIV.F32        S0, S0, S2                                             ; +0x66, 0x97a0e\nVSTR            S0, [R0,#0x27C]                                        ; +0x6a, 0x97a12\nMOVS            R0, #0                                                 ; +0x6e, 0x97a16\nBX              LR                                                     ; +0x70, 0x97a18", "xrefs": ["sub_97948 @ 0x97986", "sub_97A34 @ 0x97a6a"], "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"}