{"type": "func", "start": 335496, "end": 335604, "name": "sub_51E88", "pseudocode": "// \n// sub_51E88 from 0x51e88 to 0x51ef4 (108 bytes)\n// \n// 1 xrefs:\n// > sub_51E14 @ 0x51e58\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_51E88(__int64 a1)\n{\n  void *v2; // x8\n  __int64 v3; // x0\n\n  sub_E4458();\n  v2 = off_114000;\n  *((_QWORD *)off_114000 + *(int *)(a1 + 368) + 40) = 0;\n  v3 = *(_QWORD *)(a1 + 360);\n  if ( v3 )\n  {\n    FMOD_OS_CriticalSection_Free(v3, 0);\n    v2 = off_114000;\n  }\n  sub_E2D74(*(__int64 *)((char *)&qword_1B0 + (_QWORD)v2), a1, \"../../src/fmod_async.cpp\", 145, 1);\n  return 0;\n}", "assembly": "; \n; sub_51E88 from 0x51e88 to 0x51ef4 (108 bytes)\n; \n; 1 xrefs:\n; > sub_51E14 @ 0x51e58\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x51e88\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x51e8c\nADD             X29, SP, #0x10                                         ; +0x8, 0x51e90\nMOV             X19, X0                                                ; +0xc, 0x51e94\nBL              sub_E4458                                              ; +0x10, 0x51e98\nADRP            X20, #off_10F7A0@PAGE                                  ; +0x14, 0x51e9c\nLDR             X20, [X20,#off_10F7A0@PAGEOFF]; off_114000             ; +0x18, 0x51ea0\nLDRSW           X9, [X19,#0x170]                                       ; +0x1c, 0x51ea4\nLDR             X8, [X20]; unk_11F800                                  ; +0x20, 0x51ea8\nADD             X9, X8, X9,LSL#3                                       ; +0x24, 0x51eac\nSTR             XZR, [X9,#0x140]                                       ; +0x28, 0x51eb0\nLDR             X0, [X19,#0x168]                                       ; +0x2c, 0x51eb4\nCBZ             X0, loc_51EC8                                          ; +0x30, 0x51eb8\nMOV             W1, WZR                                                ; +0x34, 0x51ebc\nBL              .FMOD_OS_CriticalSection_Free                          ; +0x38, 0x51ec0\nLDR             X8, [X20]; unk_11F800                                  ; +0x3c, 0x51ec4\nLDR             X0, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0x40, 0x51ec8\nADRL            X2, aSrcFmodAsyncCp; \"../../src/fmod_async.cpp\"        ; +0x44, 0x51ecc\nMOV             W3, #0x91                                              ; +0x4c, 0x51ed4\nMOV             W4, #1                                                 ; +0x50, 0x51ed8\nMOV             X1, X19                                                ; +0x54, 0x51edc\nBL              sub_E2D74                                              ; +0x58, 0x51ee0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x51ee4\nMOV             W0, WZR                                                ; +0x60, 0x51ee8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x64, 0x51eec\nRET                                                                    ; +0x68, 0x51ef0", "xrefs": ["sub_51E14 @ 0x51e58"], "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"}