{"type": "func", "start": 361140, "end": 361170, "name": "sub_582B4", "pseudocode": "// \n// sub_582B4 from 0x582b4 to 0x582d2 (30 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::getOutput @ 0xb6ff8\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_582B4(int a1, _DWORD *a2)\n{\n  int v2; // r0\n\n  if ( !a2 )\n    return 31;\n  v2 = *(_DWORD *)(a1 + 1116);\n  if ( v2 )\n    *a2 = v2;\n  else\n    sub_C0784(a2);\n  return 0;\n}", "assembly": "; \n; sub_582B4 from 0x582b4 to 0x582d2 (30 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::getOutput @ 0xb6ff8\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            {R7,LR}                                                ; +0x0, 0x582b4\nMOV             R7, SP                                                 ; +0x2, 0x582b6\nCBZ             R1, loc_582C4                                          ; +0x4, 0x582b8\nLDR.W           R0, [R0,#0x45C]                                        ; +0x6, 0x582ba\nCBZ             R0, loc_582C8                                          ; +0xa, 0x582be\nSTR             R0, [R1]                                               ; +0xc, 0x582c0\nB               loc_582CE                                              ; +0xe, 0x582c2\nMOVS            R0, #0x1F                                              ; +0x10, 0x582c4\nPOP             {R7,PC}                                                ; +0x12, 0x582c6\nMOV             R0, R1                                                 ; +0x14, 0x582c8\nBL              sub_C0784                                              ; +0x16, 0x582ca\nMOVS            R0, #0                                                 ; +0x1a, 0x582ce\nPOP             {R7,PC}                                                ; +0x1c, 0x582d0", "xrefs": ["FMOD::System::getOutput @ 0xb6ff8"], "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"}