{"type": "func", "start": 413176, "end": 413328, "name": "sub_64DF8", "pseudocode": "// \n// sub_64DF8 from 0x64df8 to 0x64e90 (152 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10c940\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 sub_64DF8(__int64 a1, __int64 a2)\n{\n  int v2; // w8\n  __int64 v3; // x20\n  FMOD::DSP *v5; // x0\n  bool v6; // w1\n  FMOD::DSP *v7; // x0\n  bool v8; // w1\n\n  if ( (unsigned int)*(unsigned __int8 *)(a2 + 10) - 5 <= 1 )\n  {\n    v2 = *(unsigned __int8 *)(a2 + 9);\n    switch ( v2 )\n    {\n      case 3:\n        v5 = (FMOD::DSP *)sub_658C0();\n        FMOD::DSP::setBypass(v5, v6);\n        break;\n      case 2:\n        v7 = (FMOD::DSP *)sub_658C0();\n        FMOD::DSP::setActive(v7, v8);\n        break;\n      case 1:\n        v3 = a2 + 12;\n        if ( (unsigned int)sub_E3DD4(a2 + 12, \"Show Delays\") )\n        {\n          if ( !(unsigned int)sub_E3DD4(v3, \"Show None\") )\n            *(_DWORD *)(a1 + 80) = 0;\n        }\n        else\n        {\n          *(_DWORD *)(a1 + 80) = 1;\n        }\n        break;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_64DF8 from 0x64df8 to 0x64e90 (152 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10c940\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x64df8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x64dfc\nLDRB            W8, [X1,#0xA]                                          ; +0x8, 0x64e00\nADD             X29, SP, #0x10                                         ; +0xc, 0x64e04\nSUB             W8, W8, #5                                             ; +0x10, 0x64e08\nCMP             W8, #1                                                 ; +0x14, 0x64e0c\nB.HI            loc_64E88                                              ; +0x18, 0x64e10\nLDRB            W8, [X1,#9]                                            ; +0x1c, 0x64e14\nCMP             W8, #3                                                 ; +0x20, 0x64e18\nB.EQ            loc_64E68                                              ; +0x24, 0x64e1c\nCMP             W8, #2                                                 ; +0x28, 0x64e20\nB.EQ            loc_64E74                                              ; +0x2c, 0x64e24\nCMP             W8, #1                                                 ; +0x30, 0x64e28\nB.NE            loc_64E88                                              ; +0x34, 0x64e2c\nADD             X20, X1, #0xC                                          ; +0x38, 0x64e30\nADRP            X1, #aShowDelays@PAGE; \"Show Delays\"                   ; +0x3c, 0x64e34\nMOV             X19, X0                                                ; +0x40, 0x64e38\nADD             X1, X1, #aShowDelays@PAGEOFF; \"Show Delays\"            ; +0x44, 0x64e3c\nMOV             X0, X20                                                ; +0x48, 0x64e40\nBL              sub_E3DD4                                              ; +0x4c, 0x64e44\nCBZ             W0, loc_64E80                                          ; +0x50, 0x64e48\nADRL            X1, aShowNone; \"Show None\"                             ; +0x54, 0x64e4c\nMOV             X0, X20                                                ; +0x5c, 0x64e54\nBL              sub_E3DD4                                              ; +0x60, 0x64e58\nCBNZ            W0, loc_64E88                                          ; +0x64, 0x64e5c\nSTR             WZR, [X19,#0x50]                                       ; +0x68, 0x64e60\nB               loc_64E88                                              ; +0x6c, 0x64e64\nBL              sub_658C0                                              ; +0x70, 0x64e68\nBL              ._ZN4FMOD3DSP9setBypassEb; FMOD::DSP::setBypass(bool)  ; +0x74, 0x64e6c\nB               loc_64E88                                              ; +0x78, 0x64e70\nBL              sub_658C0                                              ; +0x7c, 0x64e74\nBL              ._ZN4FMOD3DSP9setActiveEb; FMOD::DSP::setActive(bool)  ; +0x80, 0x64e78\nB               loc_64E88                                              ; +0x84, 0x64e7c\nMOV             W8, #1                                                 ; +0x88, 0x64e80\nSTR             W8, [X19,#0x50]                                        ; +0x8c, 0x64e84\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x90, 0x64e88\nB               loc_658B4                                              ; +0x94, 0x64e8c", "xrefs": ["<???> @ 0x10c940"], "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"}