{"type": "func", "start": 375776, "end": 375864, "name": "sub_5BBE0", "pseudocode": "// \n// sub_5BBE0 from 0x5bbe0 to 0x5bc38 (88 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10c7b8\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\n__int64 __fastcall sub_5BBE0(__int64 a1, char a2, float a3, float a4)\n{\n  __int64 v4; // x8\n  unsigned int v5; // w8\n  float v7; // s2\n  float v8; // s1\n  float v9; // s0\n\n  v4 = *(_QWORD *)(a1 + 472);\n  if ( v4 && *(_QWORD *)(a1 + 32) )\n  {\n    if ( (*(_BYTE *)(v4 + 56) & 0x10) != 0 )\n    {\n      v7 = fminf(a4, 1.0);\n      v8 = fmaxf(fminf(a3, 1.0), 0.0);\n      v9 = fmaxf(v7, 0.0);\n      v5 = 0;\n      *(float *)(a1 + 192) = v8;\n      *(float *)(a1 + 196) = v9;\n      if ( (a2 & 1) != 0 )\n      {\n        *(float *)(a1 + 200) = v8;\n        *(float *)(a1 + 204) = v9;\n      }\n    }\n    else\n    {\n      return 40;\n    }\n  }\n  else\n  {\n    return 30;\n  }\n  return v5;\n}", "assembly": "; \n; sub_5BBE0 from 0x5bbe0 to 0x5bc38 (88 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10c7b8\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             X8, [X0,#0x1D8]                                        ; +0x0, 0x5bbe0\nCBZ             X8, loc_5BC00                                          ; +0x4, 0x5bbe4\nLDR             X9, [X0,#0x20]                                         ; +0x8, 0x5bbe8\nCBZ             X9, loc_5BC00                                          ; +0xc, 0x5bbec\nLDRB            W8, [X8,#0x38]                                         ; +0x10, 0x5bbf0\nTBNZ            W8, #4, loc_5BC0C                                      ; +0x14, 0x5bbf4\nMOV             W8, #0x28 ; '('                                        ; +0x18, 0x5bbf8\nB               loc_5BC04                                              ; +0x1c, 0x5bbfc\nMOV             W8, #0x1E                                              ; +0x20, 0x5bc00\nMOV             W0, W8                                                 ; +0x24, 0x5bc04\nRET                                                                    ; +0x28, 0x5bc08\nFMOV            S2, #1.0                                               ; +0x2c, 0x5bc0c\nFMOV            S3, WZR                                                ; +0x30, 0x5bc10\nFMINNM          S0, S0, S2                                             ; +0x34, 0x5bc14\nFMINNM          S2, S1, S2                                             ; +0x38, 0x5bc18\nFMAXNM          S1, S0, S3                                             ; +0x3c, 0x5bc1c\nFMAXNM          S0, S2, S3                                             ; +0x40, 0x5bc20\nMOV             W8, WZR                                                ; +0x44, 0x5bc24\nSTP             S1, S0, [X0,#0xC0]                                     ; +0x48, 0x5bc28\nTBZ             W1, #0, loc_5BC04                                      ; +0x4c, 0x5bc2c\nSTP             S1, S0, [X0,#0xC8]                                     ; +0x50, 0x5bc30\nB               loc_5BC04                                              ; +0x54, 0x5bc34", "xrefs": ["<???> @ 0x10c7b8"], "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"}