{"type": "func", "start": 407236, "end": 407316, "name": "sub_636C4", "pseudocode": "// \n// sub_636C4 from 0x636c4 to 0x63714 (80 bytes)\n// \n// 1 xrefs:\n// > sub_63624 @ 0x63684\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_636C4(__int64 a1, __int16 a2)\n{\n  __int64 result; // x0\n\n  if ( a2 )\n    *(_WORD *)(a1 + 82) = a2;\n  result = sub_E34B4();\n  if ( !(_DWORD)result )\n  {\n    result = FMOD_OS_CriticalSection_Create(a1 + 64, 0);\n    if ( !(_DWORD)result )\n      return sub_E694C(a1 + 72);\n  }\n  return result;\n}", "assembly": "; \n; sub_636C4 from 0x636c4 to 0x63714 (80 bytes)\n; \n; 1 xrefs:\n; > sub_63624 @ 0x63684\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\nSTR             X19, [SP,#-0x10+var_10]!                               ; +0x0, 0x636c4\nTST             W1, #0xFFFF                                            ; +0x4, 0x636c8\nMOV             X19, X0                                                ; +0x8, 0x636cc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0xc, 0x636d0\nADD             X29, SP, #0x10                                         ; +0x10, 0x636d4\nB.EQ            loc_636E0                                              ; +0x14, 0x636d8\nSTRH            W1, [X19,#0x52]                                        ; +0x18, 0x636dc\nBL              sub_E34B4                                              ; +0x1c, 0x636e0\nCBNZ            W0, loc_636F8                                          ; +0x20, 0x636e4\nADD             X0, X19, #0x40 ; '@'                                   ; +0x24, 0x636e8\nMOV             W1, WZR                                                ; +0x28, 0x636ec\nBL              .FMOD_OS_CriticalSection_Create                        ; +0x2c, 0x636f0\nCBZ             W0, loc_63704                                          ; +0x30, 0x636f4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x34, 0x636f8\nLDR             X19, [SP+0x10+var_10],#0x20                            ; +0x38, 0x636fc\nRET                                                                    ; +0x3c, 0x63700\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x40, 0x63704\nADD             X0, X19, #0x48 ; 'H'                                   ; +0x44, 0x63708\nLDR             X19, [SP+0x10+var_10],#0x20                            ; +0x48, 0x6370c\nB               sub_E694C                                              ; +0x4c, 0x63710", "xrefs": ["sub_63624 @ 0x63684"], "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"}