{"type": "func", "start": 363628, "end": 363682, "name": "sub_58C6C", "pseudocode": "// \n// sub_58C6C from 0x58c6c to 0x58ca2 (54 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::registerOutput @ 0xb859c\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_58C6C(int a1, _DWORD *a2, _DWORD *a3)\n{\n  int result; // r0\n\n  if ( *(_BYTE *)(a1 + 5) )\n    return sub_51398(*(_DWORD *)(a1 + 68272), a2, a3, 0, 1);\n  result = sub_56BEC(a1);\n  if ( !result )\n    return sub_51398(*(_DWORD *)(a1 + 68272), a2, a3, 0, 1);\n  return result;\n}", "assembly": "; \n; sub_58C6C from 0x58c6c to 0x58ca2 (54 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::registerOutput @ 0xb859c\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, 0x58c6c\nADD             R7, SP, #0xC                                           ; +0x2, 0x58c6e\nPUSH.W          {R11}                                                  ; +0x4, 0x58c70\nSUB             SP, SP, #8                                             ; +0x8, 0x58c74\nMOV             R6, R0                                                 ; +0xa, 0x58c76\nLDRB            R0, [R0,#5]                                            ; +0xc, 0x58c78\nMOV             R4, R2                                                 ; +0xe, 0x58c7a\nMOV             R5, R1                                                 ; +0x10, 0x58c7c\nCBNZ            R0, loc_58C88                                          ; +0x12, 0x58c7e\nMOV             R0, R6                                                 ; +0x14, 0x58c80\nBL              sub_56BEC                                              ; +0x16, 0x58c82\nCBNZ            R0, loc_58C9A                                          ; +0x1a, 0x58c86\nLDR             R0, =0x10AB0                                           ; +0x1c, 0x58c88\nMOVS            R1, #1                                                 ; +0x1e, 0x58c8a\nMOV             R2, R4                                                 ; +0x20, 0x58c8c\nMOVS            R3, #0                                                 ; +0x22, 0x58c8e\nLDR             R0, [R6,R0]                                            ; +0x24, 0x58c90\nSTR             R1, [SP,#8+var_8]                                      ; +0x26, 0x58c92\nMOV             R1, R5                                                 ; +0x28, 0x58c94\nBL              sub_51398                                              ; +0x2a, 0x58c96\nADD             SP, SP, #8                                             ; +0x2e, 0x58c9a\nPOP.W           {R11}                                                  ; +0x30, 0x58c9c\nPOP             {R4-R7,PC}                                             ; +0x34, 0x58ca0", "xrefs": ["FMOD::System::registerOutput @ 0xb859c"], "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"}