{"type": "func", "start": 361080, "end": 361130, "name": "sub_58278", "pseudocode": "// \n// sub_58278 from 0x58278 to 0x582aa (50 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::setOutput @ 0xb6f80\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_58278(int a1, int a2)\n{\n  int result; // r0\n\n  if ( *(_BYTE *)(a1 + 68936) )\n    return 51;\n  result = sub_610FC(a1, a2, 0);\n  if ( !result )\n  {\n    *(_DWORD *)(a1 + 68844) = a2;\n    *(_DWORD *)(a1 + 68848) = 0;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_58278 from 0x58278 to 0x582aa (50 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::setOutput @ 0xb6f80\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, 0x58278\nADD             R7, SP, #0xC                                           ; +0x2, 0x5827a\nPUSH.W          {R11}                                                  ; +0x4, 0x5827c\nMOV             R5, R0                                                 ; +0x8, 0x58280\nLDR             R0, =0x10D48                                           ; +0xa, 0x58282\nLDRB            R0, [R5,R0]                                            ; +0xc, 0x58284\nCBZ             R0, loc_5828C                                          ; +0xe, 0x58286\nMOVS            R0, #0x33 ; '3'                                        ; +0x10, 0x58288\nB               loc_582A4                                              ; +0x12, 0x5828a\nMOV             R0, R5                                                 ; +0x14, 0x5828c\nMOVS            R2, #0                                                 ; +0x16, 0x5828e\nMOV             R4, R1                                                 ; +0x18, 0x58290\nMOVS            R6, #0                                                 ; +0x1a, 0x58292\nBL              sub_610FC                                              ; +0x1c, 0x58294\nCBNZ            R0, loc_582A4                                          ; +0x20, 0x58298\nLDR             R0, =0x10CEC                                           ; +0x22, 0x5829a\nADD             R0, R5                                                 ; +0x24, 0x5829c\nSTRD.W          R4, R6, [R0]                                           ; +0x26, 0x5829e\nMOVS            R0, #0                                                 ; +0x2a, 0x582a2\nPOP.W           {R11}                                                  ; +0x2c, 0x582a4\nPOP             {R4-R7,PC}                                             ; +0x30, 0x582a8", "xrefs": ["FMOD::System::setOutput @ 0xb6f80"], "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"}