{"type": "func", "start": 390340, "end": 390380, "name": "sub_5F4C4", "pseudocode": "// \n// sub_5F4C4 from 0x5f4c4 to 0x5f4ec (40 bytes)\n// \n// 1 xrefs:\n// > sub_6D7F8 @ 0x6d8bc\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\n__int64 __fastcall sub_5F4C4(__int64 a1)\n{\n  int v1; // w9\n  int v2; // w8\n\n  v1 = *(_DWORD *)(a1 + 16);\n  v2 = *(_DWORD *)a1 + 1;\n  *(_DWORD *)a1 = v2;\n  if ( v2 == v1 )\n    return FMOD_OS_CriticalSection_Enter(*(_QWORD *)(a1 + 8));\n  else\n    return 0;\n}", "assembly": "; \n; sub_5F4C4 from 0x5f4c4 to 0x5f4ec (40 bytes)\n; \n; 1 xrefs:\n; > sub_6D7F8 @ 0x6d8bc\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\nLDR             W8, [X0]                                               ; +0x0, 0x5f4c4\nLDR             W9, [X0,#0x10]                                         ; +0x4, 0x5f4c8\nADD             W8, W8, #1                                             ; +0x8, 0x5f4cc\nCMP             W8, W9                                                 ; +0xc, 0x5f4d0\nSTR             W8, [X0]                                               ; +0x10, 0x5f4d4\nB.NE            loc_5F4E4                                              ; +0x14, 0x5f4d8\nLDR             X0, [X0,#8]                                            ; +0x18, 0x5f4dc\nB               .FMOD_OS_CriticalSection_Enter                         ; +0x1c, 0x5f4e0\nMOV             W0, WZR                                                ; +0x20, 0x5f4e4\nRET                                                                    ; +0x24, 0x5f4e8", "xrefs": ["sub_6D7F8 @ 0x6d8bc"], "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"}