{"type": "func", "start": 946232, "end": 946304, "name": "FMOD_OS_CriticalSection_Free", "pseudocode": "// \n// FMOD_OS_CriticalSection_Free from 0xe7038 to 0xe7080 (72 bytes)\n// \n// 4 xrefs:\n// > .FMOD_OS_CriticalSection_Free @ 0x107f5c\n// > <???> @ 0x22c0\n// > .FMOD_OS_CriticalSection_Free @ 0x107f54\n// > <???> @ 0x110870\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 FMOD_OS_CriticalSection_Free(pthread_mutex_t *a1, char a2)\n{\n  int v3; // w8\n  __int64 result; // x0\n  __int64 v5; // x0\n\n  v3 = pthread_mutex_destroy(a1);\n  if ( v3 )\n    result = 28;\n  else\n    result = 0;\n  if ( !v3 && (a2 & 1) == 0 )\n  {\n    v5 = sub_E7334(result);\n    sub_E73A4(v5);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; FMOD_OS_CriticalSection_Free from 0xe7038 to 0xe7080 (72 bytes)\n; \n; 4 xrefs:\n; > .FMOD_OS_CriticalSection_Free @ 0x107f5c\n; > <???> @ 0x22c0\n; > .FMOD_OS_CriticalSection_Free @ 0x107f54\n; > <???> @ 0x110870\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, 0xe7038\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0xe703c\nADD             X29, SP, #0x10                                         ; +0x8, 0xe7040\nMOV             W20, W1                                                ; +0xc, 0xe7044\nMOV             X19, X0                                                ; +0x10, 0xe7048\nBL              .pthread_mutex_destroy                                 ; +0x14, 0xe704c\nCMP             W0, #0                                                 ; +0x18, 0xe7050\nMOV             W9, #0x1C                                              ; +0x1c, 0xe7054\nMOV             W8, W0                                                 ; +0x20, 0xe7058\nCSEL            W0, W9, WZR, NE                                        ; +0x24, 0xe705c\nCBNZ            W8, loc_E7078                                          ; +0x28, 0xe7060\nTBNZ            W20, #0, loc_E7078                                     ; +0x2c, 0xe7064\nBL              sub_E7334                                              ; +0x30, 0xe7068\nMOV             W3, #0x25A                                             ; +0x34, 0xe706c\nBL              sub_E73A4                                              ; +0x38, 0xe7070\nMOV             W0, WZR                                                ; +0x3c, 0xe7074\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x40, 0xe7078\nB               loc_E7428                                              ; +0x44, 0xe707c", "xrefs": [".FMOD_OS_CriticalSection_Free @ 0x107f5c", "<???> @ 0x22c0", ".FMOD_OS_CriticalSection_Free @ 0x107f54", "<???> @ 0x110870"], "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"}