{"type": "func", "start": 787780, "end": 787838, "name": "FMOD_OS_CriticalSection_Free", "pseudocode": "// \n// FMOD_OS_CriticalSection_Free from 0xc0544 to 0xc057e (58 bytes)\n// \n// 4 xrefs:\n// > sub_57338 @ 0x5747a\n// > sub_57338 @ 0x57486\n// > sub_57338 @ 0x57492\n// > j_FMOD_OS_CriticalSection_Free @ 0xe12a8\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\nint __fastcall FMOD_OS_CriticalSection_Free(pthread_mutex_t *a1, int a2)\n{\n  int result; // r0\n  bool v5; // zf\n\n  result = pthread_mutex_destroy(a1);\n  v5 = result == 0;\n  if ( result )\n    result = 28;\n  else\n    v5 = a2 == 0;\n  if ( v5 )\n  {\n    sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), a1);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; FMOD_OS_CriticalSection_Free from 0xc0544 to 0xc057e (58 bytes)\n; \n; 4 xrefs:\n; > sub_57338 @ 0x5747a\n; > sub_57338 @ 0x57486\n; > sub_57338 @ 0x57492\n; > j_FMOD_OS_CriticalSection_Free @ 0xe12a8\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\nPUSH            {R2-R5,R7,LR}                                          ; +0x0, 0xc0544\nADD             R7, SP, #0x10                                          ; +0x2, 0xc0546\nMOV             R5, R1                                                 ; +0x4, 0xc0548\nMOV             R4, R0                                                 ; +0x6, 0xc054a\nBLX             pthread_mutex_destroy                                  ; +0x8, 0xc054c\nCMP             R0, #0                                                 ; +0xc, 0xc0550\nITE NE                                                                 ; +0xe, 0xc0552\nMOVNE           R0, #0x1C                                              ; +0x10, 0xc0554\nCMPEQ           R5, #0                                                 ; +0x12, 0xc0556\nBNE             loc_C057A                                              ; +0x14, 0xc0558\nLDR             R0, =(off_E6144 - 0xC0566)                             ; +0x16, 0xc055a\nMOVS            R1, #1                                                 ; +0x18, 0xc055c\nMOVW            R3, #0x25A                                             ; +0x1a, 0xc055e\nADD             R0, PC; off_E6144                                      ; +0x1e, 0xc0562\nLDR             R0, [R0]; off_E8000                                    ; +0x20, 0xc0564\nLDR             R0, [R0]; dword_F2488                                  ; +0x22, 0xc0566\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x24, 0xc0568\nSTR             R1, [SP,#8+var_8]                                      ; +0x28, 0xc056c\nMOV             R1, R4                                                 ; +0x2a, 0xc056e\nLDR             R2, =(aAndroidSrcFmod - 0xC0576); \"../android/src/fmod_os_misc.cpp\" ... ; +0x2c, 0xc0570\nADD             R2, PC; \"../android/src/fmod_os_misc.cpp\"              ; +0x2e, 0xc0572\nBL              sub_BD7AC                                              ; +0x30, 0xc0574\nMOVS            R0, #0                                                 ; +0x34, 0xc0578\nADD             SP, SP, #8                                             ; +0x36, 0xc057a\nPOP             {R4,R5,R7,PC}                                          ; +0x38, 0xc057c", "xrefs": ["sub_57338 @ 0x5747a", "sub_57338 @ 0x57486", "sub_57338 @ 0x57492", "j_FMOD_OS_CriticalSection_Free @ 0xe12a8"], "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"}