{"type": "func", "start": 315616, "end": 315668, "name": "sub_4D0E0", "pseudocode": "// \n// sub_4D0E0 from 0x4d0e0 to 0x4d114 (52 bytes)\n// \n// 2 xrefs:\n// > sub_5B63C @ 0x5b66e\n// > sub_5B778 @ 0x5b798\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:41 +0000\n// \n\nint __fastcall sub_4D0E0(int a1, int a2)\n{\n  int result; // r0\n\n  if ( *(_BYTE *)(a1 + 336) )\n    return 0;\n  *(_DWORD *)a1 = a2;\n  result = j_FMOD_OS_CriticalSection_Create(a1 + 332, 0);\n  if ( !result )\n  {\n    result = sub_4CC7C(a1 + 8, a1);\n    if ( !result )\n    {\n      *(_BYTE *)(a1 + 336) = 1;\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_4D0E0 from 0x4d0e0 to 0x4d114 (52 bytes)\n; \n; 2 xrefs:\n; > sub_5B63C @ 0x5b66e\n; > sub_5B778 @ 0x5b798\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:41 +0000\n; \nPUSH            {R4,R6,R7,LR}                                          ; +0x0, 0x4d0e0\nADD             R7, SP, #8                                             ; +0x2, 0x4d0e2\nMOV             R4, R0                                                 ; +0x4, 0x4d0e4\nLDRB.W          R0, [R0,#0x150]                                        ; +0x6, 0x4d0e6\nCBZ             R0, loc_4D0F0                                          ; +0xa, 0x4d0ea\nMOVS            R0, #0                                                 ; +0xc, 0x4d0ec\nPOP             {R4,R6,R7,PC}                                          ; +0xe, 0x4d0ee\nADD.W           R0, R4, #0x14C                                         ; +0x10, 0x4d0f0\nSTR             R1, [R4]                                               ; +0x14, 0x4d0f4\nMOVS            R1, #0                                                 ; +0x16, 0x4d0f6\nBLX             j_FMOD_OS_CriticalSection_Create                       ; +0x18, 0x4d0f8\nCBNZ            R0, locret_4D10A                                       ; +0x1c, 0x4d0fc\nADD.W           R0, R4, #8                                             ; +0x1e, 0x4d0fe\nMOV             R1, R4                                                 ; +0x22, 0x4d102\nBL              sub_4CC7C                                              ; +0x24, 0x4d104\nCBZ             R0, loc_4D10C                                          ; +0x28, 0x4d108\nPOP             {R4,R6,R7,PC}                                          ; +0x2a, 0x4d10a\nMOVS            R0, #1                                                 ; +0x2c, 0x4d10c\nSTRB.W          R0, [R4,#0x150]                                        ; +0x2e, 0x4d10e\nB               loc_4D0EC                                              ; +0x32, 0x4d112", "xrefs": ["sub_5B63C @ 0x5b66e", "sub_5B778 @ 0x5b798"], "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"}