{"type": "func", "start": 315668, "end": 315718, "name": "sub_4D114", "pseudocode": "// \n// sub_4D114 from 0x4d114 to 0x4d146 (50 bytes)\n// \n// 1 xrefs:\n// > sub_57338 @ 0x577be\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_4D114(int a1, int a2)\n{\n  int result; // r0\n\n  if ( !*(_BYTE *)(a1 + 336) )\n    return 0;\n  result = sub_4CD14(a1 + 8, a2);\n  if ( !result )\n  {\n    result = j_FMOD_OS_CriticalSection_Free(*(_DWORD *)(a1 + 332), 0);\n    if ( !result )\n    {\n      *(_BYTE *)(a1 + 336) = 0;\n      *(_DWORD *)(a1 + 332) = 0;\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_4D114 from 0x4d114 to 0x4d146 (50 bytes)\n; \n; 1 xrefs:\n; > sub_57338 @ 0x577be\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\nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0x4d114\nADD             R7, SP, #8                                             ; +0x2, 0x4d116\nMOV             R4, R0                                                 ; +0x4, 0x4d118\nLDRB.W          R0, [R0,#0x150]                                        ; +0x6, 0x4d11a\nCBZ             R0, loc_4D142                                          ; +0xa, 0x4d11e\nADD.W           R0, R4, #8                                             ; +0xc, 0x4d120\nBL              sub_4CD14                                              ; +0x10, 0x4d124\nCBNZ            R0, locret_4D138                                       ; +0x14, 0x4d128\nLDR.W           R0, [R4,#0x14C]                                        ; +0x16, 0x4d12a\nMOVS            R1, #0                                                 ; +0x1a, 0x4d12e\nMOVS            R5, #0                                                 ; +0x1c, 0x4d130\nBLX             j_FMOD_OS_CriticalSection_Free                         ; +0x1e, 0x4d132\nCBZ             R0, loc_4D13A                                          ; +0x22, 0x4d136\nPOP             {R4,R5,R7,PC}                                          ; +0x24, 0x4d138\nSTRB.W          R5, [R4,#0x150]                                        ; +0x26, 0x4d13a\nSTR.W           R5, [R4,#0x14C]                                        ; +0x2a, 0x4d13e\nMOVS            R0, #0                                                 ; +0x2e, 0x4d142\nPOP             {R4,R5,R7,PC}                                          ; +0x30, 0x4d144", "xrefs": ["sub_57338 @ 0x577be"], "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"}