{"type": "func", "start": 375440, "end": 375486, "name": "sub_5BA90", "pseudocode": "// \n// sub_5BA90 from 0x5ba90 to 0x5babe (46 bytes)\n// \n// 1 xrefs:\n// > sub_5BA68 @ 0x5ba7c\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_5BA90(int a1, int a2)\n{\n  int v2; // r0\n  int result; // r0\n\n  v2 = *(_DWORD *)(a1 + 8);\n  if ( v2 < 0 )\n    v2 = -v2;\n  result = (int)(float)((float)v2 * 1.5);\n  if ( result < a2 )\n    result = a2;\n  if ( result <= 16 )\n    return 16;\n  return result;\n}", "assembly": "; \n; sub_5BA90 from 0x5ba90 to 0x5babe (46 bytes)\n; \n; 1 xrefs:\n; > sub_5BA68 @ 0x5ba7c\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             R0, [R0,#8]                                            ; +0x0, 0x5ba90\nCMP             R0, #0                                                 ; +0x2, 0x5ba92\nBPL             loc_5BA98                                              ; +0x4, 0x5ba94\nNEGS            R0, R0                                                 ; +0x6, 0x5ba96\nVMOV            S0, R0                                                 ; +0x8, 0x5ba98\nVMOV.F32        S2, #1.5                                               ; +0xc, 0x5ba9c\nVCVT.F32.S32    S0, S0                                                 ; +0x10, 0x5baa0\nVMUL.F32        S0, S0, S2                                             ; +0x14, 0x5baa4\nVCVT.S32.F32    S0, S0                                                 ; +0x18, 0x5baa8\nVMOV            R0, S0                                                 ; +0x1c, 0x5baac\nCMP             R0, R1                                                 ; +0x20, 0x5bab0\nIT LT                                                                  ; +0x22, 0x5bab2\nMOVLT           R0, R1                                                 ; +0x24, 0x5bab4\nCMP             R0, #0x10                                              ; +0x26, 0x5bab6\nIT LE                                                                  ; +0x28, 0x5bab8\nMOVLE           R0, #0x10                                              ; +0x2a, 0x5baba\nBX              LR                                                     ; +0x2c, 0x5babc", "xrefs": ["sub_5BA68 @ 0x5ba7c"], "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"}