{"type": "func", "start": 625542, "end": 625716, "name": "sub_98B86", "pseudocode": "// \n// sub_98B86 from 0x98b86 to 0x98c34 (174 bytes)\n// \n// 1 xrefs:\n// > sub_98CF8 @ 0x98d02\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:29 +0000\n// \n\nint __fastcall sub_98B86(float *a1, float *a2, int a3, int a4, int a5)\n{\n  float v5; // s0\n  int v6; // r8\n  float v7; // s2\n  float v8; // s4\n  int v9; // lr\n  float *v10; // r4\n  int v11; // r5\n  float v12; // s8\n  float v13; // s10\n  float v14; // s10\n  float v15; // s8\n  int v16; // r4\n  int v17; // r5\n  float *v18; // r6\n  float *v19; // r9\n\n  if ( a2 )\n  {\n    v5 = a1[98];\n    v6 = 0;\n    v7 = a1[99];\n    v8 = a1[100];\n    v9 = 4 * a5;\n    while ( v6 != a4 )\n    {\n      v10 = a2;\n      v11 = a5;\n      v12 = a1[94] - v8;\n      if ( v12 < v5 )\n        v12 = v5;\n      a1[94] = v12;\n      while ( v11 )\n      {\n        v13 = *v10++;\n        --v11;\n        v14 = fabsf(v13);\n        if ( v14 > v12 )\n        {\n          a1[94] = v14;\n          v12 = v14;\n        }\n      }\n      v15 = 1.0 / v12;\n      v16 = 0;\n      v17 = a5;\n      if ( v15 > v7 )\n        v15 = v7;\n      while ( v17 )\n      {\n        v18 = &a2[v16];\n        v19 = (float *)(a3 + v16 * 4);\n        ++v16;\n        --v17;\n        *v19 = *v18 * v15;\n      }\n      a3 += v9;\n      a2 = (float *)((char *)a2 + v9);\n      ++v6;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_98B86 from 0x98b86 to 0x98c34 (174 bytes)\n; \n; 1 xrefs:\n; > sub_98CF8 @ 0x98d02\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:29 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x98b86\nADD             R7, SP, #0xC                                           ; +0x2, 0x98b88\nPUSH.W          {R8,R9,R11}                                            ; +0x4, 0x98b8a\nCMP             R1, #0                                                 ; +0x8, 0x98b8e\nBEQ             loc_98C2C                                              ; +0xa, 0x98b90\nVMOV.F32        S6, #1.0                                               ; +0xc, 0x98b92\nLDR.W           R12, [R7,#-0x18+arg_0]                                 ; +0x10, 0x98b96\nVLDR            S0, [R0,#0x188]                                        ; +0x14, 0x98b9a\nMOV.W           R8, #0                                                 ; +0x18, 0x98b9e\nVLDR            S2, [R0,#0x18C]                                        ; +0x1c, 0x98ba2\nVLDR            S4, [R0,#0x190]                                        ; +0x20, 0x98ba6\nMOV.W           LR, R12,LSL#2                                          ; +0x24, 0x98baa\nCMP             R8, R3                                                 ; +0x28, 0x98bae\nBEQ             loc_98C2C                                              ; +0x2a, 0x98bb0\nVLDR            S8, [R0,#0x178]                                        ; +0x2c, 0x98bb2\nMOV             R4, R1                                                 ; +0x30, 0x98bb6\nMOV             R5, R12                                                ; +0x32, 0x98bb8\nVSUB.F32        S8, S8, S4                                             ; +0x34, 0x98bba\nVCMPE.F32       S8, S0                                                 ; +0x38, 0x98bbe\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3c, 0x98bc2\nIT LT                                                                  ; +0x40, 0x98bc6\nVMOVLT.F32      S8, S0                                                 ; +0x42, 0x98bc8\nVSTR            S8, [R0,#0x178]                                        ; +0x46, 0x98bcc\nCBZ             R5, loc_98BF2                                          ; +0x4a, 0x98bd0\nVLDR            S10, [R4]                                              ; +0x4c, 0x98bd2\nADDS            R4, #4                                                 ; +0x50, 0x98bd6\nSUBS            R5, #1                                                 ; +0x52, 0x98bd8\nVABS.F32        S10, S10                                               ; +0x54, 0x98bda\nVCMPE.F32       S10, S8                                                ; +0x58, 0x98bde\nVMRS            APSR_nzcv, FPSCR                                       ; +0x5c, 0x98be2\nITT GT                                                                 ; +0x60, 0x98be6\nVSTRGT          S10, [R0,#0x178]                                       ; +0x62, 0x98be8\nVMOVGT.F32      S8, S10                                                ; +0x66, 0x98bec\nB               loc_98BD0                                              ; +0x6a, 0x98bf0\nVDIV.F32        S8, S6, S8                                             ; +0x6c, 0x98bf2\nMOVS            R4, #0                                                 ; +0x70, 0x98bf6\nMOV             R5, R12                                                ; +0x72, 0x98bf8\nVCMPE.F32       S8, S2                                                 ; +0x74, 0x98bfa\nVMRS            APSR_nzcv, FPSCR                                       ; +0x78, 0x98bfe\nIT GT                                                                  ; +0x7c, 0x98c02\nVMOVGT.F32      S8, S2                                                 ; +0x7e, 0x98c04\nCBZ             R5, loc_98C22                                          ; +0x82, 0x98c08\nADDS            R6, R1, R4                                             ; +0x84, 0x98c0a\nADD.W           R9, R2, R4                                             ; +0x86, 0x98c0c\nADDS            R4, #4                                                 ; +0x8a, 0x98c10\nSUBS            R5, #1                                                 ; +0x8c, 0x98c12\nVLDR            S10, [R6]                                              ; +0x8e, 0x98c14\nVMUL.F32        S10, S10, S8                                           ; +0x92, 0x98c18\nVSTR            S10, [R9]                                              ; +0x96, 0x98c1c\nB               loc_98C08                                              ; +0x9a, 0x98c20\nADD             R2, LR                                                 ; +0x9c, 0x98c22\nADD             R1, LR                                                 ; +0x9e, 0x98c24\nADD.W           R8, R8, #1                                             ; +0xa0, 0x98c26\nB               loc_98BAE                                              ; +0xa4, 0x98c2a\nMOVS            R0, #0                                                 ; +0xa6, 0x98c2c\nPOP.W           {R8,R9,R11}                                            ; +0xa8, 0x98c2e\nPOP             {R4-R7,PC}                                             ; +0xac, 0x98c32", "xrefs": ["sub_98CF8 @ 0x98d02"], "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"}