{"type": "func", "start": 612920, "end": 613134, "name": "sub_95A38", "pseudocode": "// \n// sub_95A38 from 0x95a38 to 0x95b0e (214 bytes)\n// \n// 1 xrefs:\n// > sub_95F08 @ 0x960a6\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_95A38(_DWORD *a1, float a2, float a3)\n{\n  int v3; // r5\n  float v7; // s2\n  float v8; // s0\n  int v9; // r0\n  int v10; // r1\n  float v11; // s4\n  int v12; // r2\n  float *v13; // r3\n  float v14; // s0\n  float v15; // s0\n\n  v3 = a1[1];\n  if ( v3 )\n  {\n    v7 = powf(10.0, a3 * -0.1);\n    v8 = 0.0;\n    v9 = 0;\n    v10 = 0;\n    v11 = 0.0;\n    if ( a3 < 80.0 )\n      v11 = v7;\n    while ( v3 > v10 && *(float *)(*a1 + v9) < (float)((float)(v11 * a2) / (float)v3) )\n    {\n      v9 += 4;\n      ++v10;\n    }\n    v12 = v10;\n    while ( v12 < v3 )\n    {\n      ++v12;\n      v13 = (float *)(*a1 + v9);\n      v9 += 4;\n      v8 = *v13 + v8;\n    }\n    v14 = v8 / (float)(v3 - v10);\n    if ( v14 <= 0.0 )\n      v15 = -80.691;\n    else\n      v15 = (float)(log10f(v14) * 10.0) + -0.691;\n  }\n  else\n  {\n    v15 = -80.0;\n  }\n  return LODWORD(v15);\n}", "assembly": "; \n; sub_95A38 from 0x95a38 to 0x95b0e (214 bytes)\n; \n; 1 xrefs:\n; > sub_95F08 @ 0x960a6\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,R5,R7,LR}                                          ; +0x0, 0x95a38\nADD             R7, SP, #8                                             ; +0x2, 0x95a3a\nVPUSH           {D8-D9}                                                ; +0x4, 0x95a3c\nLDR             R5, [R0,#4]                                            ; +0x8, 0x95a40\nCMP             R5, #0                                                 ; +0xa, 0x95a42\nBEQ             loc_95AFA                                              ; +0xc, 0x95a44\nVMOV            S16, R2                                                ; +0xe, 0x95a46\nVLDR            S0, =-0.1                                              ; +0x12, 0x95a4a\nVMOV            S18, R1                                                ; +0x16, 0x95a4e\nMOV             R4, R0                                                 ; +0x1a, 0x95a52\nVMUL.F32        S0, S16, S0                                            ; +0x1c, 0x95a54\nLDR             R0, flt_95B18; x                                       ; +0x20, 0x95a58\nVMOV            R1, S0; y                                              ; +0x22, 0x95a5a\nBLX             powf                                                   ; +0x26, 0x95a5e\nVLDR            S4, =80.0                                              ; +0x2a, 0x95a62\nVMOV            S2, R0                                                 ; +0x2e, 0x95a66\nVLDR            S0, =0.0                                               ; +0x32, 0x95a6a\nMOVS            R0, #0                                                 ; +0x36, 0x95a6e\nVCMPE.F32       S16, S4                                                ; +0x38, 0x95a70\nMOVS            R1, #0                                                 ; +0x3c, 0x95a74\nVMOV.F32        S4, S0                                                 ; +0x3e, 0x95a76\nVMRS            APSR_nzcv, FPSCR                                       ; +0x42, 0x95a7a\nIT LT                                                                  ; +0x46, 0x95a7e\nVMOVLT.F32      S4, S2                                                 ; +0x48, 0x95a80\nVMUL.F32        S2, S4, S18                                            ; +0x4c, 0x95a84\nVMOV            S4, R5                                                 ; +0x50, 0x95a88\nVCVT.F32.S32    S4, S4                                                 ; +0x54, 0x95a8c\nVDIV.F32        S2, S2, S4                                             ; +0x58, 0x95a90\nCMP             R5, R1                                                 ; +0x5c, 0x95a94\nBLE             loc_95AB0                                              ; +0x5e, 0x95a96\nLDR             R2, [R4]                                               ; +0x60, 0x95a98\nADD             R2, R0                                                 ; +0x62, 0x95a9a\nVLDR            S4, [R2]                                               ; +0x64, 0x95a9c\nVCMPE.F32       S4, S2                                                 ; +0x68, 0x95aa0\nVMRS            APSR_nzcv, FPSCR                                       ; +0x6c, 0x95aa4\nBGE             loc_95AB0                                              ; +0x70, 0x95aa8\nADDS            R0, #4                                                 ; +0x72, 0x95aaa\nADDS            R1, #1                                                 ; +0x74, 0x95aac\nB               loc_95A94                                              ; +0x76, 0x95aae\nMOV             R2, R1                                                 ; +0x78, 0x95ab0\nCMP             R2, R5                                                 ; +0x7a, 0x95ab2\nBGE             loc_95AC8                                              ; +0x7c, 0x95ab4\nLDR             R3, [R4]                                               ; +0x7e, 0x95ab6\nADDS            R2, #1                                                 ; +0x80, 0x95ab8\nADD             R3, R0                                                 ; +0x82, 0x95aba\nADDS            R0, #4                                                 ; +0x84, 0x95abc\nVLDR            S2, [R3]                                               ; +0x86, 0x95abe\nVADD.F32        S0, S2, S0                                             ; +0x8a, 0x95ac2\nB               loc_95AB2                                              ; +0x8e, 0x95ac6\nSUBS            R0, R5, R1                                             ; +0x90, 0x95ac8\nVMOV            S2, R0                                                 ; +0x92, 0x95aca\nVCVT.F32.S32    S2, S2                                                 ; +0x96, 0x95ace\nVDIV.F32        S0, S0, S2                                             ; +0x9a, 0x95ad2\nVCMPE.F32       S0, #0.0                                               ; +0x9e, 0x95ad6\nVMRS            APSR_nzcv, FPSCR                                       ; +0xa2, 0x95ada\nBLE             loc_95B00                                              ; +0xa6, 0x95ade\nVMOV            R0, S0; x                                              ; +0xa8, 0x95ae0\nBLX             log10f                                                 ; +0xac, 0x95ae4\nVMOV.F32        S4, #10.0                                              ; +0xb0, 0x95ae8\nVLDR            S0, =-0.691                                            ; +0xb4, 0x95aec\nVMOV            S2, R0                                                 ; +0xb8, 0x95af0\nVMLA.F32        S0, S2, S4                                             ; +0xbc, 0x95af4\nB               loc_95B04                                              ; +0xc0, 0x95af8\nVLDR            S0, =-80.0                                             ; +0xc2, 0x95afa\nB               loc_95B04                                              ; +0xc6, 0x95afe\nVLDR            S0, =-80.691                                           ; +0xc8, 0x95b00\nVMOV            R0, S0                                                 ; +0xcc, 0x95b04\nVPOP            {D8-D9}                                                ; +0xd0, 0x95b08\nPOP             {R4,R5,R7,PC}                                          ; +0xd4, 0x95b0c", "xrefs": ["sub_95F08 @ 0x960a6"], "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"}