{"type": "func", "start": 335380, "end": 335496, "name": "sub_51E14", "pseudocode": "// \n// sub_51E14 from 0x51e14 to 0x51e88 (116 bytes)\n// \n// 1 xrefs:\n// > sub_5F434 @ 0x5f45c\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 sub_51E14()\n{\n  __int64 v0; // x0\n  __int64 i; // x20\n\n  v0 = *(__int64 *)((char *)&qword_138 + (_QWORD)off_114000);\n  if ( v0 )\n  {\n    FMOD_OS_CriticalSection_Enter(v0);\n    for ( i = 0; i != 40; i += 8 )\n    {\n      if ( *(_QWORD *)((char *)&unk_11F750 + i) )\n      {\n        sub_51E88();\n        *(_QWORD *)((char *)&unk_11F750 + i) = 0;\n      }\n    }\n    FMOD_OS_CriticalSection_Leave(*(__int64 *)((char *)&qword_138 + (_QWORD)off_114000));\n  }\n  return 0;\n}", "assembly": "; \n; sub_51E14 from 0x51e14 to 0x51e88 (116 bytes)\n; \n; 1 xrefs:\n; > sub_5F434 @ 0x5f45c\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             X21, [SP,#-0x10+var_20]!                               ; +0x0, 0x51e14\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x51e18\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x51e1c\nADRP            X19, #off_10F7A0@PAGE                                  ; +0xc, 0x51e20\nLDR             X19, [X19,#off_10F7A0@PAGEOFF]; off_114000             ; +0x10, 0x51e24\nADD             X29, SP, #0x20                                         ; +0x14, 0x51e28\nLDR             X8, [X19]; unk_11F800                                  ; +0x18, 0x51e2c\nLDR             X0, [X8,#(qword_11F938 - 0x11F800)]                    ; +0x1c, 0x51e30\nCBZ             X0, loc_51E74                                          ; +0x20, 0x51e34\nBL              .FMOD_OS_CriticalSection_Enter                         ; +0x24, 0x51e38\nADRP            X21, #unk_11F750@PAGE                                  ; +0x28, 0x51e3c\nMOV             X20, XZR                                               ; +0x2c, 0x51e40\nADD             X21, X21, #unk_11F750@PAGEOFF                          ; +0x30, 0x51e44\nCMP             X20, #0x28 ; '('                                       ; +0x34, 0x51e48\nB.EQ            loc_51E68                                              ; +0x38, 0x51e4c\nLDR             X0, [X21,X20]                                          ; +0x3c, 0x51e50\nCBZ             X0, loc_51E60                                          ; +0x40, 0x51e54\nBL              sub_51E88                                              ; +0x44, 0x51e58\nSTR             XZR, [X21,X20]                                         ; +0x48, 0x51e5c\nADD             X20, X20, #8                                           ; +0x4c, 0x51e60\nB               loc_51E48                                              ; +0x50, 0x51e64\nLDR             X8, [X19]; unk_11F800                                  ; +0x54, 0x51e68\nLDR             X0, [X8,#(qword_11F938 - 0x11F800)]                    ; +0x58, 0x51e6c\nBL              .FMOD_OS_CriticalSection_Leave                         ; +0x5c, 0x51e70\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x60, 0x51e74\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x64, 0x51e78\nMOV             W0, WZR                                                ; +0x68, 0x51e7c\nLDR             X21, [SP+0x20+var_20],#0x30                            ; +0x6c, 0x51e80\nRET                                                                    ; +0x70, 0x51e84", "xrefs": ["sub_5F434 @ 0x5f45c"], "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"}