{"type": "func", "start": 362644, "end": 362698, "name": "sub_58894", "pseudocode": "// \n// sub_58894 from 0x58894 to 0x588ca (54 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::getNumNestedPlugins @ 0xb7d84\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_58894(int a1, int a2, int *a3, int a4)\n{\n  int result; // r0\n\n  if ( *(_BYTE *)(a1 + 5) )\n    return sub_51AF4(*(_DWORD *)(a1 + 68272), a2, a3, a4);\n  result = sub_56BEC(a1);\n  if ( !result )\n    return sub_51AF4(*(_DWORD *)(a1 + 68272), a2, a3, a4);\n  return result;\n}", "assembly": "; \n; sub_58894 from 0x58894 to 0x588ca (54 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::getNumNestedPlugins @ 0xb7d84\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, 0x58894\nADD             R7, SP, #0xC                                           ; +0x2, 0x58896\nPUSH.W          {R11}                                                  ; +0x4, 0x58898\nMOV             R6, R0                                                 ; +0x8, 0x5889c\nLDRB            R0, [R0,#5]                                            ; +0xa, 0x5889e\nMOV             R4, R2                                                 ; +0xc, 0x588a0\nMOV             R5, R1                                                 ; +0xe, 0x588a2\nCBZ             R0, loc_588BA                                          ; +0x10, 0x588a4\nLDR             R0, =0x10AB0                                           ; +0x12, 0x588a6\nMOV             R1, R5                                                 ; +0x14, 0x588a8\nMOV             R2, R4                                                 ; +0x16, 0x588aa\nLDR             R0, [R6,R0]                                            ; +0x18, 0x588ac\nPOP.W           {R11}                                                  ; +0x1a, 0x588ae\nPOP.W           {R4-R7,LR}                                             ; +0x1e, 0x588b2\nB.W             sub_51AF4                                              ; +0x22, 0x588b6\nMOV             R0, R6                                                 ; +0x26, 0x588ba\nBL              sub_56BEC                                              ; +0x28, 0x588bc\nCMP             R0, #0                                                 ; +0x2c, 0x588c0\nBEQ             loc_588A6                                              ; +0x2e, 0x588c2\nPOP.W           {R11}                                                  ; +0x30, 0x588c4\nPOP             {R4-R7,PC}                                             ; +0x34, 0x588c8", "xrefs": ["FMOD::System::getNumNestedPlugins @ 0xb7d84"], "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"}