{"type": "func", "start": 787880, "end": 787912, "name": "FMOD_OS_CriticalSection_TryEnter", "pseudocode": "// \n// FMOD_OS_CriticalSection_TryEnter from 0xc05a8 to 0xc05c8 (32 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:41:48 +0000\n// \n\nint __fastcall FMOD_OS_CriticalSection_TryEnter(pthread_mutex_t *a1, char *a2)\n{\n  int v3; // r0\n  char v4; // r0\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 0xc05a8 to 0xc05c8 (32 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:41:48 +0000\n; \nPUSH            {R4,R6,R7,LR}                                          ; +0x0, 0xc05a8\nADD             R7, SP, #8                                             ; +0x2, 0xc05aa\nMOV             R4, R1                                                 ; +0x4, 0xc05ac\nBLX             pthread_mutex_trylock                                  ; +0x6, 0xc05ae\nCBZ             R0, loc_C05BC                                          ; +0xa, 0xc05b2\nCMP             R0, #0x10                                              ; +0xc, 0xc05b4\nBNE             loc_C05C4                                              ; +0xe, 0xc05b6\nMOVS            R0, #0                                                 ; +0x10, 0xc05b8\nB               loc_C05BE                                              ; +0x12, 0xc05ba\nMOVS            R0, #1                                                 ; +0x14, 0xc05bc\nSTRB            R0, [R4]                                               ; +0x16, 0xc05be\nMOVS            R0, #0                                                 ; +0x18, 0xc05c0\nPOP             {R4,R6,R7,PC}                                          ; +0x1a, 0xc05c2\nMOVS            R0, #0x1C                                              ; +0x1c, 0xc05c4\nPOP             {R4,R6,R7,PC}                                          ; +0x1e, 0xc05c6", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}