{"type": "func", "start": 337998, "end": 338026, "name": "sub_5284E", "pseudocode": "// \n// sub_5284E from 0x5284e to 0x5286a (28 bytes)\n// \n// 6 xrefs:\n// > sub_522EC @ 0x5259c\n// > sub_522EC @ 0x525a8\n// > sub_6B376 @ 0x6b3ba\n// > sub_6B444 @ 0x6b4fe\n// > sub_6B614 @ 0x6b69a\n// > sub_6B614 @ 0x6b6be\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:44 +0000\n// \n\nint __fastcall sub_5284E(int *a1)\n{\n  int v2; // r0\n  int result; // r0\n\n  v2 = *a1;\n  if ( !v2 )\n    return 0;\n  result = j_FMOD_OS_CriticalSection_Leave(v2);\n  if ( !result )\n  {\n    result = 0;\n    *a1 = 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_5284E from 0x5284e to 0x5286a (28 bytes)\n; \n; 6 xrefs:\n; > sub_522EC @ 0x5259c\n; > sub_522EC @ 0x525a8\n; > sub_6B376 @ 0x6b3ba\n; > sub_6B444 @ 0x6b4fe\n; > sub_6B614 @ 0x6b69a\n; > sub_6B614 @ 0x6b6be\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:44 +0000\n; \nPUSH            {R4,R6,R7,LR}                                          ; +0x0, 0x5284e\nADD             R7, SP, #8                                             ; +0x2, 0x52850\nMOV             R4, R0                                                 ; +0x4, 0x52852\nLDR             R0, [R0]                                               ; +0x6, 0x52854\nCBZ             R0, loc_52860                                          ; +0x8, 0x52856\nBLX             j_FMOD_OS_CriticalSection_Leave                        ; +0xa, 0x52858\nCBZ             R0, loc_52864                                          ; +0xe, 0x5285c\nPOP             {R4,R6,R7,PC}                                          ; +0x10, 0x5285e\nMOVS            R0, #0                                                 ; +0x12, 0x52860\nPOP             {R4,R6,R7,PC}                                          ; +0x14, 0x52862\nMOVS            R0, #0                                                 ; +0x16, 0x52864\nSTR             R0, [R4]                                               ; +0x18, 0x52866\nPOP             {R4,R6,R7,PC}                                          ; +0x1a, 0x52868", "xrefs": ["sub_522EC @ 0x5259c", "sub_522EC @ 0x525a8", "sub_6B376 @ 0x6b3ba", "sub_6B444 @ 0x6b4fe", "sub_6B614 @ 0x6b69a", "sub_6B614 @ 0x6b6be"], "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"}