{"type": "func", "start": 362448, "end": 362502, "name": "sub_587D0", "pseudocode": "// \n// sub_587D0 from 0x587d0 to 0x58806 (54 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::loadPlugin @ 0xb7c34\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:40:47 +0000\n// \n\nint __fastcall sub_587D0(int a1, int a2, char *a3, int a4)\n{\n  int result; // r0\n\n  if ( *(_BYTE *)(a1 + 5) )\n    return sub_50F6C(*(_DWORD *)(a1 + 68272), a2, a3, 0, a4);\n  result = sub_56BEC(a1);\n  if ( !result )\n    return sub_50F6C(*(_DWORD *)(a1 + 68272), a2, a3, 0, a4);\n  return result;\n}", "assembly": "; \n; sub_587D0 from 0x587d0 to 0x58806 (54 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::loadPlugin @ 0xb7c34\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:40:47 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x587d0\nADD             R7, SP, #0xC                                           ; +0x2, 0x587d2\nPUSH.W          {R8}                                                   ; +0x4, 0x587d4\nSUB             SP, SP, #8                                             ; +0x8, 0x587d8\nMOV             R4, R0                                                 ; +0xa, 0x587da\nLDRB            R0, [R0,#5]                                            ; +0xc, 0x587dc\nMOV             R6, R3                                                 ; +0xe, 0x587de\nMOV             R8, R2                                                 ; +0x10, 0x587e0\nMOV             R5, R1                                                 ; +0x12, 0x587e2\nCBNZ            R0, loc_587EE                                          ; +0x14, 0x587e4\nMOV             R0, R4                                                 ; +0x16, 0x587e6\nBL              sub_56BEC                                              ; +0x18, 0x587e8\nCBNZ            R0, loc_587FE                                          ; +0x1c, 0x587ec\nLDR             R0, =0x10AB0                                           ; +0x1e, 0x587ee\nMOV             R1, R5                                                 ; +0x20, 0x587f0\nMOV             R2, R8                                                 ; +0x22, 0x587f2\nMOVS            R3, #0                                                 ; +0x24, 0x587f4\nLDR             R0, [R4,R0]                                            ; +0x26, 0x587f6\nSTR             R6, [SP,#8+var_8]                                      ; +0x28, 0x587f8\nBL              sub_50F6C                                              ; +0x2a, 0x587fa\nADD             SP, SP, #8                                             ; +0x2e, 0x587fe\nPOP.W           {R8}                                                   ; +0x30, 0x58800\nPOP             {R4-R7,PC}                                             ; +0x34, 0x58804", "xrefs": ["FMOD::System::loadPlugin @ 0xb7c34"], "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"}