{"type": "func", "start": 322910, "end": 322932, "name": "sub_4ED5E", "pseudocode": "// \n// sub_4ED5E from 0x4ed5e to 0x4ed74 (22 bytes)\n// \n// 1 xrefs:\n// > sub_59CE4 @ 0x59d7e\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_4ED5E(int *a1)\n{\n  int v1; // r2\n  int v2; // r1\n\n  v1 = a1[2];\n  v2 = *a1 + 1;\n  *a1 = v2;\n  if ( v2 == v1 )\n    return j_FMOD_OS_CriticalSection_Enter(a1[1]);\n  else\n    return 0;\n}", "assembly": "; \n; sub_4ED5E from 0x4ed5e to 0x4ed74 (22 bytes)\n; \n; 1 xrefs:\n; > sub_59CE4 @ 0x59d7e\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             R1, [R0]                                               ; +0x0, 0x4ed5e\nLDR             R2, [R0,#8]                                            ; +0x2, 0x4ed60\nADDS            R1, #1                                                 ; +0x4, 0x4ed62\nSTR             R1, [R0]                                               ; +0x6, 0x4ed64\nCMP             R1, R2                                                 ; +0x8, 0x4ed66\nITT EQ                                                                 ; +0xa, 0x4ed68\nLDREQ           R0, [R0,#4]                                            ; +0xc, 0x4ed6a\nBEQ.W           loc_DDC50                                              ; +0xe, 0x4ed6c\nMOVS            R0, #0                                                 ; +0x12, 0x4ed70\nBX              LR                                                     ; +0x14, 0x4ed72", "xrefs": ["sub_59CE4 @ 0x59d7e"], "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"}