{"type": "func", "start": 335912, "end": 335954, "name": "sub_52028", "pseudocode": "// \n// sub_52028 from 0x52028 to 0x52052 (42 bytes)\n// \n// 1 xrefs:\n// > sub_51FB8 @ 0x51ffa\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_52028(int a1, int a2)\n{\n  int result; // r0\n\n  if ( a2 )\n    *(_WORD *)(a1 + 46) = a2;\n  result = sub_BDCFC();\n  if ( !result )\n  {\n    result = j_FMOD_OS_CriticalSection_Create(a1 + 32, 0);\n    if ( !result )\n      return sub_BFFC4(a1 + 36);\n  }\n  return result;\n}", "assembly": "; \n; sub_52028 from 0x52028 to 0x52052 (42 bytes)\n; \n; 1 xrefs:\n; > sub_51FB8 @ 0x51ffa\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,R6,R7,LR}                                          ; +0x0, 0x52028\nADD             R7, SP, #8                                             ; +0x2, 0x5202a\nMOV             R4, R0                                                 ; +0x4, 0x5202c\nCBZ             R1, loc_52032                                          ; +0x6, 0x5202e\nSTRH            R1, [R4,#0x2E]                                         ; +0x8, 0x52030\nBL              sub_BDCFC                                              ; +0xa, 0x52032\nCBNZ            R0, locret_52044                                       ; +0xe, 0x52036\nADD.W           R0, R4, #0x20 ; ' '                                    ; +0x10, 0x52038\nMOVS            R1, #0                                                 ; +0x14, 0x5203c\nBLX             j_FMOD_OS_CriticalSection_Create                       ; +0x16, 0x5203e\nCBZ             R0, loc_52046                                          ; +0x1a, 0x52042\nPOP             {R4,R6,R7,PC}                                          ; +0x1c, 0x52044\nADD.W           R0, R4, #0x24 ; '$'                                    ; +0x1e, 0x52046\nPOP.W           {R4,R6,R7,LR}                                          ; +0x22, 0x5204a\nB.W             sub_BFFC4                                              ; +0x26, 0x5204e", "xrefs": ["sub_51FB8 @ 0x51ffa"], "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"}