{"type": "func", "start": 946352, "end": 946420, "name": "FMOD_OS_CriticalSection_TryEnter", "pseudocode": "// \n// FMOD_OS_CriticalSection_TryEnter from 0xe70b0 to 0xe70f4 (68 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x82a8\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_TryEnter(pthread_mutex_t *a1, char *a2)\n{\n  int v3; // w0\n  char v4; // w8\n\n  v3 = pthread_mutex_trylock(a1);\n  if ( !v3 )\n  {\n    v4 = 1;\n    goto LABEL_5;\n  }\n  if ( v3 == 16 )\n  {\n    v4 = 0;\nLABEL_5:\n    *a2 = v4;\n    return 0;\n  }\n  return 28;\n}", "assembly": "; \n; FMOD_OS_CriticalSection_TryEnter from 0xe70b0 to 0xe70f4 (68 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x82a8\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, 0xe70b0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0xe70b4\nADD             X29, SP, #0x10                                         ; +0x8, 0xe70b8\nMOV             X19, X1                                                ; +0xc, 0xe70bc\nBL              .pthread_mutex_trylock                                 ; +0x10, 0xe70c0\nCBZ             W0, loc_E70D8                                          ; +0x14, 0xe70c4\nCMP             W0, #0x10                                              ; +0x18, 0xe70c8\nB.NE            loc_E70E8                                              ; +0x1c, 0xe70cc\nMOV             W8, WZR                                                ; +0x20, 0xe70d0\nB               loc_E70DC                                              ; +0x24, 0xe70d4\nMOV             W8, #1                                                 ; +0x28, 0xe70d8\nMOV             W0, WZR                                                ; +0x2c, 0xe70dc\nSTRB            W8, [X19]                                              ; +0x30, 0xe70e0\nB               loc_E70EC                                              ; +0x34, 0xe70e4\nMOV             W0, #0x1C                                              ; +0x38, 0xe70e8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x3c, 0xe70ec\nB               loc_E7348                                              ; +0x40, 0xe70f0", "xrefs": ["<???> @ 0x82a8"], "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"}