{"type": "func", "start": 374248, "end": 374330, "name": "sub_5B5E8", "pseudocode": "// \n// sub_5B5E8 from 0x5b5e8 to 0x5b63a (82 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::isRecording @ 0xba458\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_5B5E8(int a1, int a2, bool *a3)\n{\n  int result; // r0\n  int v7; // r0\n  bool v8; // zf\n\n  result = sub_5B0B8(a1);\n  if ( !result )\n  {\n    if ( a2 < 0 || *(_DWORD *)(a1 + 1144) <= a2 )\n    {\n      return 31;\n    }\n    else\n    {\n      v7 = *(_DWORD *)(a1 + 1156);\n      if ( a3 )\n        *a3 = *(_DWORD *)(v7 + 44 * a2 + 40) != 0;\n      v8 = *(unsigned __int8 *)(v7 + 44 * a2 + 20) << 31 == 0;\n      result = 0;\n      if ( v8 )\n        return 80;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_5B5E8 from 0x5b5e8 to 0x5b63a (82 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::isRecording @ 0xba458\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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x5b5e8\nADD             R7, SP, #0xC                                           ; +0x2, 0x5b5ea\nPUSH.W          {R11}                                                  ; +0x4, 0x5b5ec\nMOV             R5, R2                                                 ; +0x8, 0x5b5f0\nMOV             R4, R1                                                 ; +0xa, 0x5b5f2\nMOV             R6, R0                                                 ; +0xc, 0x5b5f4\nBL              sub_5B0B8                                              ; +0xe, 0x5b5f6\nCBNZ            R0, loc_5B634                                          ; +0x12, 0x5b5fa\nCMP             R4, #0                                                 ; +0x14, 0x5b5fc\nBMI             loc_5B632                                              ; +0x16, 0x5b5fe\nLDR.W           R0, [R6,#0x478]                                        ; +0x18, 0x5b600\nCMP             R0, R4                                                 ; +0x1c, 0x5b604\nBLE             loc_5B632                                              ; +0x1e, 0x5b606\nLDR.W           R0, [R6,#0x484]                                        ; +0x20, 0x5b608\nCBZ             R5, loc_5B61E                                          ; +0x24, 0x5b60c\nMOVS            R1, #0x2C ; ','                                        ; +0x26, 0x5b60e\nMLA             R1, R4, R1, R0                                         ; +0x28, 0x5b610\nLDR             R1, [R1,#0x28]                                         ; +0x2c, 0x5b614\nCMP             R1, #0                                                 ; +0x2e, 0x5b616\nIT NE                                                                  ; +0x30, 0x5b618\nMOVNE           R1, #1                                                 ; +0x32, 0x5b61a\nSTRB            R1, [R5]                                               ; +0x34, 0x5b61c\nMOVS            R1, #0x2C ; ','                                        ; +0x36, 0x5b61e\nMLA             R0, R4, R1, R0                                         ; +0x38, 0x5b620\nLDRB            R0, [R0,#0x14]                                         ; +0x3c, 0x5b624\nLSLS            R0, R0, #0x1F                                          ; +0x3e, 0x5b626\nMOV.W           R0, #0                                                 ; +0x40, 0x5b628\nIT EQ                                                                  ; +0x44, 0x5b62c\nMOVEQ           R0, #0x50 ; 'P'                                        ; +0x46, 0x5b62e\nB               loc_5B634                                              ; +0x48, 0x5b630\nMOVS            R0, #0x1F                                              ; +0x4a, 0x5b632\nPOP.W           {R11}                                                  ; +0x4c, 0x5b634\nPOP             {R4-R7,PC}                                             ; +0x50, 0x5b638", "xrefs": ["FMOD::System::isRecording @ 0xba458"], "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"}