{"type": "func", "start": 427012, "end": 427102, "name": "sub_68404", "pseudocode": "// \n// sub_68404 from 0x68404 to 0x6845e (90 bytes)\n// \n// 0 xrefs:\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 sub_68404(int a1)\n{\n  int v2; // r1\n  int result; // r0\n\n  v2 = FMOD::DSPTransceiver::sCriticalSection[*(_DWORD *)(a1 + 28) + 4];\n  if ( v2 )\n  {\n    sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v2, \"../../src/fmod_dsp_transceiver.cpp\", 941, 1);\n    FMOD::DSPTransceiver::sCriticalSection[*(_DWORD *)(a1 + 28) + 4] = 0;\n  }\n  if ( --FMOD::DSPTransceiver::sRefCount )\n    return 0;\n  result = j_FMOD_OS_CriticalSection_Free(FMOD::DSPTransceiver::sCriticalSection[0], 0);\n  if ( !result )\n  {\n    FMOD::DSPTransceiver::sCriticalSection[0] = 0;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_68404 from 0x68404 to 0x6845e (90 bytes)\n; \n; 0 xrefs:\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, 0x68404\nADD             R7, SP, #0x10                                          ; +0x2, 0x68406\nMOV             R4, R0                                                 ; +0x4, 0x68408\nLDR             R0, [R0,#0x1C]                                         ; +0x6, 0x6840a\nLDR             R5, =(_ZN4FMOD14DSPTransceiver16sCriticalSectionE - 0x68412); FMOD::DSPTransceiver::sCriticalSection ... ; +0x8, 0x6840c\nADD             R5, PC; FMOD::DSPTransceiver::sCriticalSection         ; +0xa, 0x6840e\nADD.W           R0, R5, R0,LSL#2                                       ; +0xc, 0x68410\nLDR             R1, [R0,#0x10]                                         ; +0x10, 0x68414\nCBZ             R1, loc_6843E                                          ; +0x12, 0x68416\nLDR             R0, =(off_E6144 - 0x68424)                             ; +0x14, 0x68418\nMOVS            R2, #1                                                 ; +0x16, 0x6841a\nMOVW            R3, #0x3AD                                             ; +0x18, 0x6841c\nADD             R0, PC; off_E6144                                      ; +0x1c, 0x68420\nLDR             R0, [R0]; off_E8000                                    ; +0x1e, 0x68422\nLDR             R0, [R0]; dword_F2488                                  ; +0x20, 0x68424\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x22, 0x68426\nSTR             R2, [SP,#8+var_8]                                      ; +0x26, 0x6842a\nLDR             R2, =(aSrcFmodDspTran - 0x68432); \"../../src/fmod_dsp_transceiver.cpp\" ... ; +0x28, 0x6842c\nADD             R2, PC; \"../../src/fmod_dsp_transceiver.cpp\"           ; +0x2a, 0x6842e\nBL              sub_BD7AC                                              ; +0x2c, 0x68430\nLDR             R0, [R4,#0x1C]                                         ; +0x30, 0x68434\nMOVS            R1, #0                                                 ; +0x32, 0x68436\nADD.W           R0, R5, R0,LSL#2                                       ; +0x34, 0x68438\nSTR             R1, [R0,#0x10]                                         ; +0x38, 0x6843c\nLDR             R0, [R5,#(_ZN4FMOD14DSPTransceiver9sRefCountE - 0xF43D8)]; FMOD::DSPTransceiver::sRefCount ; +0x3a, 0x6843e\nSUBS            R0, #1                                                 ; +0x3c, 0x68440\nSTR             R0, [R5,#(_ZN4FMOD14DSPTransceiver9sRefCountE - 0xF43D8)]; FMOD::DSPTransceiver::sRefCount ; +0x3e, 0x68442\nBEQ             loc_6844A                                              ; +0x40, 0x68444\nMOVS            R0, #0                                                 ; +0x42, 0x68446\nB               loc_68456                                              ; +0x44, 0x68448\nLDR             R0, [R5]; FMOD::DSPTransceiver::sCriticalSection       ; +0x46, 0x6844a\nMOVS            R1, #0                                                 ; +0x48, 0x6844c\nMOVS            R4, #0                                                 ; +0x4a, 0x6844e\nBLX             j_FMOD_OS_CriticalSection_Free                         ; +0x4c, 0x68450\nCBZ             R0, loc_6845A                                          ; +0x50, 0x68454\nADD             SP, SP, #8                                             ; +0x52, 0x68456\nPOP             {R4,R5,R7,PC}                                          ; +0x54, 0x68458\nSTR             R4, [R5]; FMOD::DSPTransceiver::sCriticalSection       ; +0x56, 0x6845a\nB               loc_68446                                              ; +0x58, 0x6845c", "xrefs": [], "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"}