{"type": "func", "start": 426464, "end": 426568, "name": "sub_681E0", "pseudocode": "// \n// sub_681E0 from 0x681e0 to 0x68248 (104 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_681E0(_DWORD **a1, int a2, int a3, int a4, int a5, int a6)\n{\n  _DWORD *v6; // r4\n  int v10; // r1\n  int v11; // r4\n  int v13; // [sp+10h] [bp-18h] BYREF\n  char v14; // [sp+14h] [bp-14h]\n\n  v6 = *a1;\n  v13 = FMOD::DSPTransceiver::sCriticalSection[0];\n  j_FMOD_OS_CriticalSection_Enter(FMOD::DSPTransceiver::sCriticalSection[0]);\n  v14 = 1;\n  if ( a6 == 1 )\n  {\n    v11 = sub_67E10(v6, v10, a3, a4, a5);\n  }\n  else\n  {\n    sub_67E90(\n      (int)v6,\n      **(const void ***)(a3 + 12),\n      **(_DWORD **)(a3 + 4),\n      **(void ***)(a4 + 12),\n      **(_DWORD **)(a4 + 4),\n      a2);\n    v11 = 0;\n  }\n  sub_44984((int)&v13);\n  return v11;\n}", "assembly": "; \n; sub_681E0 from 0x681e0 to 0x68248 (104 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            {R4-R7,LR}                                             ; +0x0, 0x681e0\nADD             R7, SP, #0xC                                           ; +0x2, 0x681e2\nPUSH.W          {R8}                                                   ; +0x4, 0x681e4\nSUB             SP, SP, #0x18                                          ; +0x8, 0x681e8\nLDR             R4, [R0]                                               ; +0xa, 0x681ea\nMOV             R6, R3                                                 ; +0xc, 0x681ec\nLDR             R0, =(_ZN4FMOD14DSPTransceiver16sCriticalSectionE - 0x681F8); FMOD::DSPTransceiver::sCriticalSection ... ; +0xe, 0x681ee\nMOV             R5, R2                                                 ; +0x10, 0x681f0\nMOV             R8, R1                                                 ; +0x12, 0x681f2\nADD             R0, PC; FMOD::DSPTransceiver::sCriticalSection         ; +0x14, 0x681f4\nLDR             R0, [R0]; FMOD::DSPTransceiver::sCriticalSection       ; +0x16, 0x681f6\nSTR             R0, [SP,#0x18+var_8]                                   ; +0x18, 0x681f8\nBLX             j_FMOD_OS_CriticalSection_Enter                        ; +0x1a, 0x681fa\nMOVS            R0, #1                                                 ; +0x1e, 0x681fe\nSTRB.W          R0, [SP,#0x18+var_4]                                   ; +0x20, 0x68200\nLDR             R0, [R7,#-0x10+arg_4]                                  ; +0x24, 0x68204\nCMP             R0, #1                                                 ; +0x26, 0x68206\nBNE             loc_6821C                                              ; +0x28, 0x68208\nLDR             R0, [R7,#-0x10+arg_0]                                  ; +0x2a, 0x6820a\nMOV             R2, R5                                                 ; +0x2c, 0x6820c\nSTR             R0, [SP,#0x18+var_18]                                  ; +0x2e, 0x6820e\nMOV             R0, R4                                                 ; +0x30, 0x68210\nMOV             R3, R6                                                 ; +0x32, 0x68212\nBL              sub_67E10                                              ; +0x34, 0x68214\nMOV             R4, R0                                                 ; +0x38, 0x68218\nB               loc_68238                                              ; +0x3a, 0x6821a\nLDR             R1, [R6,#0xC]                                          ; +0x3c, 0x6821c\nLDR             R0, [R6,#4]                                            ; +0x3e, 0x6821e\nLDR             R3, [R1]                                               ; +0x40, 0x68220\nLDR             R1, [R5,#4]                                            ; +0x42, 0x68222\nLDR             R5, [R5,#0xC]                                          ; +0x44, 0x68224\nLDR             R0, [R0]                                               ; +0x46, 0x68226\nLDR             R2, [R1]                                               ; +0x48, 0x68228\nLDR             R1, [R5]                                               ; +0x4a, 0x6822a\nSTRD.W          R0, R8, [SP,#0x18+var_18]                              ; +0x4c, 0x6822c\nMOV             R0, R4                                                 ; +0x50, 0x68230\nBL              sub_67E90                                              ; +0x52, 0x68232\nMOVS            R4, #0                                                 ; +0x56, 0x68236\nADD             R0, SP, #0x18+var_8                                    ; +0x58, 0x68238\nBL              sub_44984                                              ; +0x5a, 0x6823a\nMOV             R0, R4                                                 ; +0x5e, 0x6823e\nADD             SP, SP, #0x18                                          ; +0x60, 0x68240\nPOP.W           {R8}                                                   ; +0x62, 0x68242\nPOP             {R4-R7,PC}                                             ; +0x66, 0x68246", "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"}