{"type": "func", "start": 361044, "end": 361076, "name": "sub_58254", "pseudocode": "// \n// sub_58254 from 0x58254 to 0x58274 (32 bytes)\n// \n// 2 xrefs:\n// > sub_581BC @ 0x581ce\n// > FMOD::System::close @ 0xb8716\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_58254(int a1)\n{\n  int result; // r0\n\n  if ( *(_BYTE *)(a1 + 68936) )\n    return 28;\n  if ( !*(_BYTE *)(a1 + 4) )\n    return 0;\n  result = sub_57338(a1, 0);\n  if ( !result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_58254 from 0x58254 to 0x58274 (32 bytes)\n; \n; 2 xrefs:\n; > sub_581BC @ 0x581ce\n; > FMOD::System::close @ 0xb8716\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, 0x58254\nMOV             R7, SP                                                 ; +0x2, 0x58256\nLDR             R1, =0x10D48                                           ; +0x4, 0x58258\nLDRB            R1, [R0,R1]                                            ; +0x6, 0x5825a\nCBZ             R1, loc_58262                                          ; +0x8, 0x5825c\nMOVS            R0, #0x1C                                              ; +0xa, 0x5825e\nPOP             {R7,PC}                                                ; +0xc, 0x58260\nLDRB            R1, [R0,#4]                                            ; +0xe, 0x58262\nCBZ             R1, loc_58270                                          ; +0x10, 0x58264\nMOVS            R1, #0                                                 ; +0x12, 0x58266\nBL              sub_57338                                              ; +0x14, 0x58268\nCBZ             R0, loc_58270                                          ; +0x18, 0x5826c\nPOP             {R7,PC}                                                ; +0x1a, 0x5826e\nMOVS            R0, #0                                                 ; +0x1c, 0x58270\nPOP             {R7,PC}                                                ; +0x1e, 0x58272", "xrefs": ["sub_581BC @ 0x581ce", "FMOD::System::close @ 0xb8716"], "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"}