{"type": "func", "start": 610292, "end": 610488, "name": "sub_94FF4", "pseudocode": "// \n// sub_94FF4 from 0x94ff4 to 0x950b8 (196 bytes)\n// \n// 1 xrefs:\n// > sub_94BA8 @ 0x94d0c\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\nunsigned int __fastcall sub_94FF4(int a1)\n{\n  float v2; // s16\n  float v3; // s18\n  float v4; // s22\n  float v5; // s16\n  float v6; // r0\n  float v7; // s2\n  unsigned int result; // r0\n\n  v2 = *(float *)(a1 + 388);\n  if ( *(float *)(a1 + 384) > v2 )\n    v2 = *(float *)(a1 + 384);\n  if ( *(float *)(a1 + 376) <= 0.0 )\n    v3 = 20.0;\n  else\n    v3 = (float)(log10f(*(float *)(a1 + 376)) * 20.0) + 100.0;\n  v4 = *(float *)(a1 + 380);\n  if ( v4 >= 1.0 )\n  {\n    result = -1;\n  }\n  else\n  {\n    v5 = v2 * 0.001;\n    v6 = log10f(*(float *)(a1 + 380));\n    v7 = -80.0;\n    if ( v4 > 0.0 )\n      v7 = v6 * 20.0;\n    result = (unsigned int)(float)((float)(v5 * (float)(1.0 - (float)(v3 / v7)))\n                                 * (float)*(int *)(*(_DWORD *)(a1 + 128) + 1184));\n  }\n  *(_DWORD *)(a1 + 444) = result;\n  return result;\n}", "assembly": "; \n; sub_94FF4 from 0x94ff4 to 0x950b8 (196 bytes)\n; \n; 1 xrefs:\n; > sub_94BA8 @ 0x94d0c\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\nPUSH            {R4,R6,R7,LR}                                          ; +0x0, 0x94ff4\nADD             R7, SP, #8                                             ; +0x2, 0x94ff6\nVPUSH           {D8-D11}                                               ; +0x4, 0x94ff8\nVLDR            S2, [R0,#0x180]                                        ; +0x8, 0x94ffc\nMOV             R4, R0                                                 ; +0xc, 0x95000\nVLDR            S16, [R0,#0x184]                                       ; +0xe, 0x95002\nVLDR            S0, [R0,#0x178]                                        ; +0x12, 0x95006\nVCMPE.F32       S2, S16                                                ; +0x16, 0x9500a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x1a, 0x9500e\nVCMPE.F32       S0, #0.0                                               ; +0x1e, 0x95012\nIT GT                                                                  ; +0x22, 0x95016\nVMOVGT.F32      S16, S2                                                ; +0x24, 0x95018\nVMRS            APSR_nzcv, FPSCR                                       ; +0x28, 0x9501c\nBLE             loc_9503C                                              ; +0x2c, 0x95020\nVMOV            R0, S0; x                                              ; +0x2e, 0x95022\nBLX             log10f                                                 ; +0x32, 0x95026\nVMOV.F32        S2, #20.0                                              ; +0x36, 0x9502a\nVLDR            S18, =100.0                                            ; +0x3a, 0x9502e\nVMOV            S0, R0                                                 ; +0x3e, 0x95032\nVMLA.F32        S18, S0, S2                                            ; +0x42, 0x95036\nB               loc_95040                                              ; +0x46, 0x9503a\nVMOV.F32        S18, #20.0                                             ; +0x48, 0x9503c\nVMOV.F32        S20, #1.0                                              ; +0x4c, 0x95040\nVLDR            S22, [R4,#0x17C]                                       ; +0x50, 0x95044\nVCMPE.F32       S22, S20                                               ; +0x54, 0x95048\nVMRS            APSR_nzcv, FPSCR                                       ; +0x58, 0x9504c\nBGE             loc_950AA                                              ; +0x5c, 0x95050\nVMOV            R0, S22; x                                             ; +0x5e, 0x95052\nVLDR            S0, =0.001                                             ; +0x62, 0x95056\nVMUL.F32        S16, S16, S0                                           ; +0x66, 0x9505a\nBLX             log10f                                                 ; +0x6a, 0x9505e\nVMOV.F32        S2, #20.0                                              ; +0x6e, 0x95062\nVMOV            S0, R0                                                 ; +0x72, 0x95066\nVCMPE.F32       S22, #0.0                                              ; +0x76, 0x9506a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x7a, 0x9506e\nVMUL.F32        S0, S0, S2                                             ; +0x7e, 0x95072\nVLDR            S2, =-80.0                                             ; +0x82, 0x95076\nIT GT                                                                  ; +0x86, 0x9507a\nVMOVGT.F32      S2, S0                                                 ; +0x88, 0x9507c\nVDIV.F32        S0, S18, S2                                            ; +0x8c, 0x95080\nLDR.W           R0, [R4,#0x80]                                         ; +0x90, 0x95084\nADD.W           R0, R0, #0x4A0                                         ; +0x94, 0x95088\nVSUB.F32        S0, S20, S0                                            ; +0x98, 0x9508c\nVLDR            S2, [R0]                                               ; +0x9c, 0x95090\nVCVT.F32.S32    S2, S2                                                 ; +0xa0, 0x95094\nVMUL.F32        S0, S16, S0                                            ; +0xa4, 0x95098\nVMUL.F32        S0, S0, S2                                             ; +0xa8, 0x9509c\nVCVT.U32.F32    S0, S0                                                 ; +0xac, 0x950a0\nVMOV            R0, S0                                                 ; +0xb0, 0x950a4\nB               loc_950AE                                              ; +0xb4, 0x950a8\nMOV.W           R0, #0xFFFFFFFF                                        ; +0xb6, 0x950aa\nSTR.W           R0, [R4,#0x1BC]                                        ; +0xba, 0x950ae\nVPOP            {D8-D11}                                               ; +0xbe, 0x950b2\nPOP             {R4,R6,R7,PC}                                          ; +0xc2, 0x950b6", "xrefs": ["sub_94BA8 @ 0x94d0c"], "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"}