{"type": "func", "start": 761832, "end": 761910, "name": "FMOD::System::unlockDSP", "pseudocode": "// \n// FMOD::System::unlockDSP from 0xb9fe8 to 0xba036 (78 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::unlockDSP @ 0xe0368\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:41:45 +0000\n// \n\nint __fastcall FMOD::System::unlockDSP(FMOD::System *this)\n{\n  int v2; // r5\n  _BYTE v4[256]; // [sp+4h] [bp-10Ch] BYREF\n  int v5; // [sp+104h] [bp-Ch] BYREF\n\n  v2 = FMOD::SystemI::validate((int)this, &v5, nullptr);\n  if ( !v2 )\n  {\n    v2 = sub_5B052(v5);\n    if ( !v2 )\n      return 0;\n  }\n  if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )\n  {\n    v4[0] = 0;\n    sub_BAB40(v2, 1, this, \"System::unlockDSP\", v4);\n  }\n  return v2;\n}", "assembly": "; \n; FMOD::System::unlockDSP from 0xb9fe8 to 0xba036 (78 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::unlockDSP @ 0xe0368\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:41:45 +0000\n; \nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0xb9fe8\nADD             R7, SP, #8                                             ; +0x2, 0xb9fea\nSUB             SP, SP, #0x108                                         ; +0x4, 0xb9fec\nADD             R1, SP, #0x108+var_4                                   ; +0x6, 0xb9fee\nMOVS            R2, #0                                                 ; +0x8, 0xb9ff0\nMOV             R4, R0                                                 ; +0xa, 0xb9ff2\nBLX             j__ZN4FMOD7SystemI8validateEPNS_6SystemEPPS0_PNS_15SystemLockScopeE; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI**,FMOD::SystemLockScope *) ; +0xc, 0xb9ff4\nMOV             R5, R0                                                 ; +0x10, 0xb9ff8\nCBNZ            R0, loc_BA006                                          ; +0x12, 0xb9ffa\nLDR             R0, [SP,#0x108+var_4]                                  ; +0x14, 0xb9ffc\nBL              sub_5B052                                              ; +0x16, 0xb9ffe\nMOV             R5, R0                                                 ; +0x1a, 0xba002\nCBZ             R0, loc_BA02E                                          ; +0x1c, 0xba004\nLDR             R0, =(off_E6144 - 0xBA00C)                             ; +0x1e, 0xba006\nADD             R0, PC; off_E6144                                      ; +0x20, 0xba008\nLDR             R0, [R0]; off_E8000                                    ; +0x22, 0xba00a\nLDR             R0, [R0]; dword_F2488                                  ; +0x24, 0xba00c\nLDRB            R0, [R0,#(dword_F249C - 0xF2488)]                      ; +0x26, 0xba00e\nLSLS            R0, R0, #0x18                                          ; +0x28, 0xba010\nBPL             loc_BA030                                              ; +0x2a, 0xba012\nMOVS            R0, #0                                                 ; +0x2c, 0xba014\nMOVS            R1, #1                                                 ; +0x2e, 0xba016\nSTRB.W          R0, [SP,#0x108+var_104]                                ; +0x30, 0xba018\nADD             R0, SP, #0x108+var_104                                 ; +0x34, 0xba01c\nSTR             R0, [SP,#0x108+var_108]                                ; +0x36, 0xba01e\nMOV             R0, R5                                                 ; +0x38, 0xba020\nLDR             R3, =(aSystemUnlockds - 0xBA02A); \"System::unlockDSP\" ... ; +0x3a, 0xba022\nMOV             R2, R4                                                 ; +0x3c, 0xba024\nADD             R3, PC; \"System::unlockDSP\"                            ; +0x3e, 0xba026\nBL              sub_BAB40                                              ; +0x40, 0xba028\nB               loc_BA030                                              ; +0x44, 0xba02c\nMOVS            R5, #0                                                 ; +0x46, 0xba02e\nMOV             R0, R5                                                 ; +0x48, 0xba030\nADD             SP, SP, #0x108                                         ; +0x4a, 0xba032\nPOP             {R4,R5,R7,PC}                                          ; +0x4c, 0xba034", "xrefs": ["FMOD::System::unlockDSP @ 0xe0368"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}