{"type": "func", "start": 376056, "end": 376176, "name": "sub_5BCF8", "pseudocode": "// \n// sub_5BCF8 from 0x5bcf8 to 0x5bd70 (120 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10c7d8\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_5BCF8(__int64 a1, float a2)\n{\n  __int64 v2; // x9\n  __int64 result; // x0\n\n  v2 = *(_QWORD *)(a1 + 472);\n  if ( !v2 || !*(_QWORD *)(a1 + 32) )\n    return 30;\n  if ( (*(_BYTE *)(v2 + 56) & 0x10) == 0 )\n    return 40;\n  if ( (~LODWORD(a2) & 0x7F800000) == 0 )\n    return 29;\n  if ( a2 < 0.0 || a2 > 1.0 )\n    return 31;\n  result = 0;\n  *(float *)(a1 + 240) = a2;\n  if ( a2 < 1.0 && (*(_DWORD *)(v2 + 60) & 0x20) != 0 )\n    return sub_5B3B0(a1, 0, 0);\n  return result;\n}", "assembly": "; \n; sub_5BCF8 from 0x5bcf8 to 0x5bd70 (120 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10c7d8\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             X9, [X0,#0x1D8]                                        ; +0x0, 0x5bcf8\nCBZ             X9, loc_5BD18                                          ; +0x4, 0x5bcfc\nLDR             X10, [X0,#0x20]                                        ; +0x8, 0x5bd00\nMOV             X8, X0                                                 ; +0xc, 0x5bd04\nCBZ             X10, loc_5BD18                                         ; +0x10, 0x5bd08\nLDRB            W10, [X9,#0x38]                                        ; +0x14, 0x5bd0c\nTBNZ            W10, #4, loc_5BD1C                                     ; +0x18, 0x5bd10\nB               loc_5C664                                              ; +0x1c, 0x5bd14\nB               loc_5C4EC                                              ; +0x20, 0x5bd18\nFMOV            W10, S0                                                ; +0x24, 0x5bd1c\nMVN             W10, W10                                               ; +0x28, 0x5bd20\nTST             W10, #0x7F800000                                       ; +0x2c, 0x5bd24\nB.NE            loc_5BD30                                              ; +0x30, 0x5bd28\nB               loc_5C740                                              ; +0x34, 0x5bd2c\nFCMP            S0, #0.0                                               ; +0x38, 0x5bd30\nFMOV            S1, #1.0                                               ; +0x3c, 0x5bd34\nFCCMP           S0, S1, #0, GE                                         ; +0x40, 0x5bd38\nB.LE            loc_5BD44                                              ; +0x44, 0x5bd3c\nB               loc_5C4E4                                              ; +0x48, 0x5bd40\nMOV             W0, WZR                                                ; +0x4c, 0x5bd44\nFCMP            S0, S1                                                 ; +0x50, 0x5bd48\nSTR             S0, [X8,#0xF0]                                         ; +0x54, 0x5bd4c\nB.GE            locret_5BD6C                                           ; +0x58, 0x5bd50\nLDR             W9, [X9,#0x3C]                                         ; +0x5c, 0x5bd54\nTBZ             W9, #5, locret_5BD6C                                   ; +0x60, 0x5bd58\nMOV             X0, X8                                                 ; +0x64, 0x5bd5c\nMOV             W1, WZR                                                ; +0x68, 0x5bd60\nMOV             W2, WZR                                                ; +0x6c, 0x5bd64\nB               sub_5B3B0                                              ; +0x70, 0x5bd68\nRET                                                                    ; +0x74, 0x5bd6c", "xrefs": ["<???> @ 0x10c7d8"], "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"}