{"type": "func", "start": 590376, "end": 590494, "name": "sub_90228", "pseudocode": "// \n// sub_90228 from 0x90228 to 0x9029e (118 bytes)\n// \n// 3 xrefs:\n// > sub_90134 @ 0x90202\n// > <???> @ 0x9076c\n// > <???> @ 0x90828\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:41:25 +0000\n// \n\nint __fastcall sub_90228(float *a1)\n{\n  float v1; // s18\n  float v3; // r0\n  float v4; // s2\n  float v5; // s0\n\n  v1 = a1[96];\n  if ( v1 >= 1.0 )\n  {\n    v5 = -1.0;\n  }\n  else\n  {\n    v3 = log10f(a1[96]);\n    v4 = -80.0;\n    if ( v1 > 0.0 )\n      v4 = v3 * 20.0;\n    v5 = (float)(a1[94] * 0.001) * (float)((float)((float)(-100.0 - a1[99]) / v4) + 1.0);\n  }\n  return LODWORD(v5);\n}", "assembly": "; \n; sub_90228 from 0x90228 to 0x9029e (118 bytes)\n; \n; 3 xrefs:\n; > sub_90134 @ 0x90202\n; > <???> @ 0x9076c\n; > <???> @ 0x90828\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:41:25 +0000\n; \nPUSH            {R4,R6,R7,LR}                                          ; +0x0, 0x90228\nADD             R7, SP, #8                                             ; +0x2, 0x9022a\nVPUSH           {D8-D9}                                                ; +0x4, 0x9022c\nVMOV.F32        S16, #1.0                                              ; +0x8, 0x90230\nVLDR            S18, [R0,#0x180]                                       ; +0xc, 0x90234\nVCMPE.F32       S18, S16                                               ; +0x10, 0x90238\nVMRS            APSR_nzcv, FPSCR                                       ; +0x14, 0x9023c\nBGE             loc_90290                                              ; +0x18, 0x90240\nMOV             R4, R0                                                 ; +0x1a, 0x90242\nVMOV            R0, S18; x                                             ; +0x1c, 0x90244\nBLX             log10f                                                 ; +0x20, 0x90248\nVMOV.F32        S2, #20.0                                              ; +0x24, 0x9024c\nVLDR            S6, =-100.0                                            ; +0x28, 0x90250\nVMOV            S0, R0                                                 ; +0x2c, 0x90254\nVCMPE.F32       S18, #0.0                                              ; +0x30, 0x90258\nVMRS            APSR_nzcv, FPSCR                                       ; +0x34, 0x9025c\nVMUL.F32        S0, S0, S2                                             ; +0x38, 0x90260\nVLDR            S2, =-80.0                                             ; +0x3c, 0x90264\nIT GT                                                                  ; +0x40, 0x90268\nVMOVGT.F32      S2, S0                                                 ; +0x42, 0x9026a\nVLDR            S4, [R4,#0x18C]                                        ; +0x46, 0x9026e\nVLDR            S0, [R4,#0x178]                                        ; +0x4a, 0x90272\nVSUB.F32        S4, S6, S4                                             ; +0x4e, 0x90276\nVDIV.F32        S2, S4, S2                                             ; +0x52, 0x9027a\nVLDR            S4, =0.001                                             ; +0x56, 0x9027e\nVADD.F32        S2, S2, S16                                            ; +0x5a, 0x90282\nVMUL.F32        S0, S0, S4                                             ; +0x5e, 0x90286\nVMUL.F32        S0, S0, S2                                             ; +0x62, 0x9028a\nB               loc_90294                                              ; +0x66, 0x9028e\nVMOV.F32        S0, #-1.0                                              ; +0x68, 0x90290\nVMOV            R0, S0                                                 ; +0x6c, 0x90294\nVPOP            {D8-D9}                                                ; +0x70, 0x90298\nPOP             {R4,R6,R7,PC}                                          ; +0x74, 0x9029c", "xrefs": ["sub_90134 @ 0x90202", "<???> @ 0x9076c", "<???> @ 0x90828"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}