{"type": "func", "start": 590620, "end": 590678, "name": "sub_9031C", "pseudocode": "// \n// sub_9031C from 0x9031c to 0x90356 (58 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x9031a\n// > sub_902E8 @ 0x902f6\n// > sub_9066C @ 0x90684\n// > <???> @ 0x9083e\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_9031C(int a1)\n{\n  *(_DWORD *)(a1 + 420) = ((unsigned int)(float)((float)((float)(*(float *)(a1 + 376) * 0.001)\n                                                       * (float)*(int *)(*(_DWORD *)(a1 + 128) + 1184))\n                                               + 0.5)\n                         + 7)\n                        & 0xFFFFFFF8;\n  return 0;\n}", "assembly": "; \n; sub_9031C from 0x9031c to 0x90356 (58 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x9031a\n; > sub_902E8 @ 0x902f6\n; > sub_9066C @ 0x90684\n; > <???> @ 0x9083e\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\nLDR.W           R1, [R0,#0x80]                                         ; +0x0, 0x9031c\nVMOV.F32        S4, #0.5                                               ; +0x4, 0x90320\nVLDR            S0, [R0,#0x178]                                        ; +0x8, 0x90324\nVLDR            S2, =0.001                                             ; +0xc, 0x90328\nADD.W           R1, R1, #0x4A0                                         ; +0x10, 0x9032c\nVMUL.F32        S0, S0, S2                                             ; +0x14, 0x90330\nVLDR            S2, [R1]                                               ; +0x18, 0x90334\nVCVT.F32.S32    S2, S2                                                 ; +0x1c, 0x90338\nVMLA.F32        S4, S0, S2                                             ; +0x20, 0x9033c\nVCVT.U32.F32    S0, S4                                                 ; +0x24, 0x90340\nVMOV            R1, S0                                                 ; +0x28, 0x90344\nADDS            R1, #7                                                 ; +0x2c, 0x90348\nBIC.W           R1, R1, #7                                             ; +0x2e, 0x9034a\nSTR.W           R1, [R0,#0x1A4]                                        ; +0x32, 0x9034e\nMOVS            R0, #0                                                 ; +0x36, 0x90352\nBX              LR                                                     ; +0x38, 0x90354", "xrefs": ["<???> @ 0x9031a", "sub_902E8 @ 0x902f6", "sub_9066C @ 0x90684", "<???> @ 0x9083e"], "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"}