{"type": "func", "start": 368220, "end": 368250, "name": "sub_59E5C", "pseudocode": "// \n// sub_59E5C from 0x59e5c to 0x59e7a (30 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::getOutputHandle @ 0xb91d8\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_59E5C(int a1, int a2)\n{\n  int v2; // r0\n  int (__fastcall *v3)(int); // r2\n\n  if ( !a2 )\n    return 31;\n  v2 = *(_DWORD *)(a1 + 1112);\n  if ( !v2 )\n    return 67;\n  v3 = *(int (__fastcall **)(int))(v2 + 724);\n  if ( v3 )\n    return v3(v2 + 4);\n  else\n    return 0;\n}", "assembly": "; \n; sub_59E5C from 0x59e5c to 0x59e7a (30 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::getOutputHandle @ 0xb91d8\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\nCBZ             R1, loc_59E6E                                          ; +0x0, 0x59e5c\nLDR.W           R0, [R0,#0x458]                                        ; +0x2, 0x59e5e\nCBZ             R0, loc_59E72                                          ; +0x6, 0x59e62\nLDR.W           R2, [R0,#0x2D4]                                        ; +0x8, 0x59e64\nCBZ             R2, loc_59E76                                          ; +0xc, 0x59e68\nADDS            R0, #4                                                 ; +0xe, 0x59e6a\nBX              R2                                                     ; +0x10, 0x59e6c\nMOVS            R0, #0x1F                                              ; +0x12, 0x59e6e\nBX              LR                                                     ; +0x14, 0x59e70\nMOVS            R0, #0x43 ; 'C'                                        ; +0x16, 0x59e72\nBX              LR                                                     ; +0x18, 0x59e74\nMOVS            R0, #0                                                 ; +0x1a, 0x59e76\nBX              LR                                                     ; +0x1c, 0x59e78", "xrefs": ["FMOD::System::getOutputHandle @ 0xb91d8"], "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"}