{"type": "func", "start": 363056, "end": 363108, "name": "sub_58A30", "pseudocode": "// \n// sub_58A30 from 0x58a30 to 0x58a64 (52 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::setOutputByPlugin @ 0xb81ac\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_58A30(int a1, int a2)\n{\n  int result; // r0\n\n  if ( *(_BYTE *)(a1 + 68936) )\n    return 51;\n  result = sub_610FC(a1, 0, a2);\n  if ( !result )\n  {\n    *(_DWORD *)(a1 + 68844) = 0;\n    *(_DWORD *)(a1 + 68848) = a2;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_58A30 from 0x58a30 to 0x58a64 (52 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::setOutputByPlugin @ 0xb81ac\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, 0x58a30\nADD             R7, SP, #0xC                                           ; +0x2, 0x58a32\nPUSH.W          {R11}                                                  ; +0x4, 0x58a34\nMOV             R5, R0                                                 ; +0x8, 0x58a38\nLDR             R0, =0x10D48                                           ; +0xa, 0x58a3a\nLDRB            R0, [R5,R0]                                            ; +0xc, 0x58a3c\nCBZ             R0, loc_58A44                                          ; +0xe, 0x58a3e\nMOVS            R0, #0x33 ; '3'                                        ; +0x10, 0x58a40\nB               loc_58A5E                                              ; +0x12, 0x58a42\nMOV             R4, R1                                                 ; +0x14, 0x58a44\nMOV             R0, R5                                                 ; +0x16, 0x58a46\nMOVS            R1, #0                                                 ; +0x18, 0x58a48\nMOV             R2, R4                                                 ; +0x1a, 0x58a4a\nMOVS            R6, #0                                                 ; +0x1c, 0x58a4c\nBL              sub_610FC                                              ; +0x1e, 0x58a4e\nCBNZ            R0, loc_58A5E                                          ; +0x22, 0x58a52\nLDR             R0, =0x10CEC                                           ; +0x24, 0x58a54\nADD             R0, R5                                                 ; +0x26, 0x58a56\nSTRD.W          R6, R4, [R0]                                           ; +0x28, 0x58a58\nMOVS            R0, #0                                                 ; +0x2c, 0x58a5c\nPOP.W           {R11}                                                  ; +0x2e, 0x58a5e\nPOP             {R4-R7,PC}                                             ; +0x32, 0x58a62", "xrefs": ["FMOD::System::setOutputByPlugin @ 0xb81ac"], "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"}