{"type": "func", "start": 448720, "end": 448940, "name": "sub_6D8D0", "pseudocode": "// \n// sub_6D8D0 from 0x6d8d0 to 0x6d9ac (220 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::mixerResume @ 0xdd278\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:13:58 +0000\n// \n\n__int64 __fastcall sub_6D8D0(__int64 a1)\n{\n  __int64 v1; // x19\n  _BYTE *v2; // x20\n  int v3; // w8\n  __int64 result; // x0\n  __int64 v5; // x8\n  __int64 v6; // x0\n  __int64 (__fastcall *v7)(__int64, _QWORD); // x9\n  __int64 v8; // x21\n  __int64 v9; // x22\n  __int64 v10; // x1\n\n  if ( !*(_BYTE *)(a1 + 8) )\n    return 0;\n  sub_70400();\n  if ( !v3 )\n    return 0;\n  result = sub_7B9F0(v1, 12);\n  if ( !(_DWORD)result )\n  {\n    result = sub_5F4EC((int *)off_114000);\n    if ( !(_DWORD)result )\n    {\n      v5 = *(_QWORD *)(v1 + 1648);\n      if ( *(_BYTE *)(v5 + 972) )\n      {\n        result = sub_76B04(v1, *(unsigned int *)(v1 + 1664));\n        if ( (_DWORD)result )\n          return result;\n        v5 = *(_QWORD *)(v1 + 1648);\n      }\n      if ( *(_QWORD *)(v5 + 976) )\n      {\n        v6 = sub_701C8(result);\n        result = v7(v6, 0);\n        if ( (_DWORD)result )\n          return result;\n        v5 = *(_QWORD *)(v1 + 1648);\n      }\n      if ( *(_QWORD *)(v5 + 1040) )\n      {\n        v8 = 0;\n        v9 = 48;\n        while ( v8 < *(int *)(v1 + 1684) )\n        {\n          v10 = *(_QWORD *)(*(_QWORD *)(v1 + 1696) + v9);\n          if ( v10 )\n          {\n            result = sub_7028C(result, v10, 0);\n            if ( (_DWORD)result )\n              return result;\n          }\n          ++v8;\n          v9 += 56;\n        }\n      }\n      *v2 = 0;\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_6D8D0 from 0x6d8d0 to 0x6d9ac (220 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::mixerResume @ 0xdd278\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:13:58 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x6d8d0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x6d8d4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x6d8d8\nLDRB            W8, [X0,#8]                                            ; +0xc, 0x6d8dc\nADD             X29, SP, #0x20                                         ; +0x10, 0x6d8e0\nCBZ             W8, loc_6D994                                          ; +0x14, 0x6d8e4\nBL              sub_70400                                              ; +0x18, 0x6d8e8\nCBZ             W8, loc_6D994                                          ; +0x1c, 0x6d8ec\nMOV             W1, #0xC                                               ; +0x20, 0x6d8f0\nMOV             X0, X19                                                ; +0x24, 0x6d8f4\nBL              sub_7B9F0                                              ; +0x28, 0x6d8f8\nCBNZ            W0, loc_6D998                                          ; +0x2c, 0x6d8fc\nADRP            X8, #off_10F7A0@PAGE                                   ; +0x30, 0x6d900\nLDR             X8, [X8,#off_10F7A0@PAGEOFF]; off_114000               ; +0x34, 0x6d904\nLDR             X0, [X8]; qword_11F800                                 ; +0x38, 0x6d908\nBL              sub_5F4EC                                              ; +0x3c, 0x6d90c\nCBNZ            W0, loc_6D998                                          ; +0x40, 0x6d910\nLDR             X8, [X19,#0x670]                                       ; +0x44, 0x6d914\nLDRB            W9, [X8,#0x3CC]                                        ; +0x48, 0x6d918\nCBZ             W9, loc_6D934                                          ; +0x4c, 0x6d91c\nLDR             W1, [X19,#0x680]                                       ; +0x50, 0x6d920\nMOV             X0, X19                                                ; +0x54, 0x6d924\nBL              sub_76B04                                              ; +0x58, 0x6d928\nCBNZ            W0, loc_6D998                                          ; +0x5c, 0x6d92c\nLDR             X8, [X19,#0x670]                                       ; +0x60, 0x6d930\nLDR             X9, [X8,#0x3D0]                                        ; +0x64, 0x6d934\nCBZ             X9, loc_6D950                                          ; +0x68, 0x6d938\nBL              sub_701C8                                              ; +0x6c, 0x6d93c\nMOV             W1, WZR                                                ; +0x70, 0x6d940\nBLR             X9                                                     ; +0x74, 0x6d944\nCBNZ            W0, loc_6D998                                          ; +0x78, 0x6d948\nLDR             X8, [X19,#0x670]                                       ; +0x7c, 0x6d94c\nLDR             X8, [X8,#0x410]                                        ; +0x80, 0x6d950\nCBZ             X8, loc_6D9A0                                          ; +0x84, 0x6d954\nMOV             X21, XZR                                               ; +0x88, 0x6d958\nMOV             W22, #0x30 ; '0'                                       ; +0x8c, 0x6d95c\nLDRSW           X8, [X19,#0x694]                                       ; +0x90, 0x6d960\nCMP             X21, X8                                                ; +0x94, 0x6d964\nB.GE            loc_6D9A0                                              ; +0x98, 0x6d968\nLDR             X8, [X19,#0x6A0]                                       ; +0x9c, 0x6d96c\nLDR             X1, [X8,X22]                                           ; +0xa0, 0x6d970\nCBZ             X1, loc_6D988                                          ; +0xa4, 0x6d974\nLDR             X8, [X19,#0x670]                                       ; +0xa8, 0x6d978\nMOV             W2, WZR                                                ; +0xac, 0x6d97c\nBL              sub_7028C                                              ; +0xb0, 0x6d980\nCBNZ            W0, loc_6D998                                          ; +0xb4, 0x6d984\nADD             X21, X21, #1                                           ; +0xb8, 0x6d988\nADD             X22, X22, #0x38 ; '8'                                  ; +0xbc, 0x6d98c\nB               loc_6D960                                              ; +0xc0, 0x6d990\nMOV             W0, WZR                                                ; +0xc4, 0x6d994\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc8, 0x6d998\nB               loc_7015C                                              ; +0xcc, 0x6d99c\nMOV             W0, WZR                                                ; +0xd0, 0x6d9a0\nSTRB            WZR, [X20]                                             ; +0xd4, 0x6d9a4\nB               loc_6D998                                              ; +0xd8, 0x6d9a8", "xrefs": ["FMOD::System::mixerResume @ 0xdd278"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}