{"type": "func", "start": 622740, "end": 622986, "name": "sub_98094", "pseudocode": "// \n// sub_98094 from 0x98094 to 0x9818a (246 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x98092\n// > sub_9802C @ 0x98072\n// > sub_981A8 @ 0x981fe\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_98094(int a1, float a2, float a3)\n{\n  float v4; // s16\n  float v5; // r0\n  float v6; // s0\n  int v7; // r0\n  int v8; // r1\n  float v9; // s4\n  float v10; // s0\n  float v11; // s4\n  float v12; // s0\n  float v13; // s10\n  float v14; // s2\n  float v15; // s0\n  float v16; // s2\n  int v17; // r0\n\n  v4 = (float)(a3 * 6.2832) / (float)*(int *)(*(_DWORD *)(a1 + 128) + 1184);\n  v5 = powf(10.0, a2 * -0.009375);\n  v6 = v5 + v5;\n  v7 = 0;\n  v8 = 0;\n  v9 = v4 * (float)(1.0 - v6);\n  if ( v9 > 2.0 )\n    v9 = 2.0;\n  v10 = v6 - v9;\n  v11 = 1.0 / v4;\n  v12 = v10 / v4;\n  v13 = (float)(v12 + (float)(v11 * v11)) + 1.0;\n  v14 = 1.0 / v13;\n  if ( (float)(1.0 / v13) < 0.00001 )\n    v14 = 0.0;\n  *(float *)(a1 + 640) = v14;\n  v15 = (float)(v12 + (float)((float)(v11 * v11) + (float)(v11 * v11))) / v13;\n  if ( v15 > 1.999 )\n    v7 = 1;\n  v16 = (float)-(float)(v11 * v11) / v13;\n  if ( v16 < -0.999 )\n    v8 = 1;\n  v17 = v7 & v8;\n  if ( v17 )\n    v16 = -1.0;\n  *(float *)(a1 + 648) = v16;\n  if ( v17 )\n    v15 = 2.0;\n  *(float *)(a1 + 644) = v15;\n  return 0;\n}", "assembly": "; \n; sub_98094 from 0x98094 to 0x9818a (246 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x98092\n; > sub_9802C @ 0x98072\n; > sub_981A8 @ 0x981fe\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, 0x98094\nADD             R7, SP, #8                                             ; +0x2, 0x98096\nVPUSH           {D8}                                                   ; +0x4, 0x98098\nMOV             R4, R0                                                 ; +0x8, 0x9809c\nLDR.W           R0, [R0,#0x80]                                         ; +0xa, 0x9809e\nVMOV            S0, R2                                                 ; +0xe, 0x980a2\nVLDR            S2, =6.2832                                            ; +0x12, 0x980a6\nADD.W           R0, R0, #0x4A0                                         ; +0x16, 0x980aa\nVMUL.F32        S0, S0, S2                                             ; +0x1a, 0x980ae\nVLDR            S2, [R0]                                               ; +0x1e, 0x980b2\nLDR             R0, flt_98194; x                                       ; +0x22, 0x980b6\nVCVT.F32.S32    S2, S2                                                 ; +0x24, 0x980b8\nVDIV.F32        S16, S0, S2                                            ; +0x28, 0x980bc\nVMOV            S0, R1                                                 ; +0x2c, 0x980c0\nVLDR            S2, =-0.009375                                         ; +0x30, 0x980c4\nVMUL.F32        S0, S0, S2                                             ; +0x34, 0x980c8\nVMOV            R1, S0; y                                              ; +0x38, 0x980cc\nBLX             powf                                                   ; +0x3c, 0x980d0\nVMOV            S0, R0                                                 ; +0x40, 0x980d4\nVLDR            S12, =0.00001                                          ; +0x44, 0x980d8\nVMOV.F32        S2, #1.0                                               ; +0x48, 0x980dc\nVLDR            S14, =0.0                                              ; +0x4c, 0x980e0\nVADD.F32        S0, S0, S0                                             ; +0x50, 0x980e4\nMOVS            R0, #0                                                 ; +0x54, 0x980e8\nVMOV.F32        S6, #2.0                                               ; +0x56, 0x980ea\nMOVS            R1, #0                                                 ; +0x5a, 0x980ee\nVSUB.F32        S4, S2, S0                                             ; +0x5c, 0x980f0\nVMUL.F32        S4, S16, S4                                            ; +0x60, 0x980f4\nVCMPE.F32       S4, S6                                                 ; +0x64, 0x980f8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x68, 0x980fc\nIT GT                                                                  ; +0x6c, 0x98100\nVMOVGT.F32      S4, S6                                                 ; +0x6e, 0x98102\nVSUB.F32        S0, S0, S4                                             ; +0x72, 0x98106\nVDIV.F32        S4, S2, S16                                            ; +0x76, 0x9810a\nVDIV.F32        S0, S0, S16                                            ; +0x7a, 0x9810e\nVMUL.F32        S8, S4, S4                                             ; +0x7e, 0x98112\nVADD.F32        S10, S0, S8                                            ; +0x82, 0x98116\nVADD.F32        S10, S10, S2                                           ; +0x86, 0x9811a\nVDIV.F32        S2, S2, S10                                            ; +0x8a, 0x9811e\nVCMPE.F32       S2, S12                                                ; +0x8e, 0x98122\nVMRS            APSR_nzcv, FPSCR                                       ; +0x92, 0x98126\nIT LT                                                                  ; +0x96, 0x9812a\nVMOVLT.F32      S2, S14                                                ; +0x98, 0x9812c\nVSTR            S2, [R4,#0x280]                                        ; +0x9c, 0x98130\nVADD.F32        S2, S8, S8                                             ; +0xa0, 0x98134\nVADD.F32        S0, S0, S2                                             ; +0xa4, 0x98138\nVLDR            S2, =1.999                                             ; +0xa8, 0x9813c\nVDIV.F32        S0, S0, S10                                            ; +0xac, 0x98140\nVCMPE.F32       S0, S2                                                 ; +0xb0, 0x98144\nVNMUL.F32       S2, S4, S4                                             ; +0xb4, 0x98148\nVLDR            S4, =-0.999                                            ; +0xb8, 0x9814c\nVMRS            APSR_nzcv, FPSCR                                       ; +0xbc, 0x98150\nIT GT                                                                  ; +0xc0, 0x98154\nMOVGT           R0, #1                                                 ; +0xc2, 0x98156\nVDIV.F32        S2, S2, S10                                            ; +0xc4, 0x98158\nVCMPE.F32       S2, S4                                                 ; +0xc8, 0x9815c\nVMRS            APSR_nzcv, FPSCR                                       ; +0xcc, 0x98160\nIT LT                                                                  ; +0xd0, 0x98164\nMOVLT           R1, #1                                                 ; +0xd2, 0x98166\nANDS            R0, R1                                                 ; +0xd4, 0x98168\nVMOV.F32        S4, #-1.0                                              ; +0xd6, 0x9816a\nIT NE                                                                  ; +0xda, 0x9816e\nVMOVNE.F32      S2, S4                                                 ; +0xdc, 0x98170\nVSTR            S2, [R4,#0x288]                                        ; +0xe0, 0x98174\nIT NE                                                                  ; +0xe4, 0x98178\nVMOVNE.F32      S0, S6                                                 ; +0xe6, 0x9817a\nVSTR            S0, [R4,#0x284]                                        ; +0xea, 0x9817e\nMOVS            R0, #0                                                 ; +0xee, 0x98182\nVPOP            {D8}                                                   ; +0xf0, 0x98184\nPOP             {R4,R6,R7,PC}                                          ; +0xf4, 0x98188", "xrefs": ["<???> @ 0x98092", "sub_9802C @ 0x98072", "sub_981A8 @ 0x981fe"], "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"}