{"type": "func", "start": 448504, "end": 448720, "name": "sub_6D7F8", "pseudocode": "// \n// sub_6D7F8 from 0x6d7f8 to 0x6d8d0 (216 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::mixerSuspend @ 0xdd228\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_6D7F8(__int64 a1)\n{\n  __int64 v1; // x19\n  _BYTE *v2; // x20\n  __int64 result; // x0\n  int v4; // w8\n  __int64 v5; // x8\n  __int64 v6; // x21\n  __int64 v7; // x22\n  __int64 v8; // x1\n  __int64 v9; // x0\n  __int64 (__fastcall *v10)(__int64, __int64); // x9\n\n  if ( !*(_BYTE *)(a1 + 8) )\n    return 0;\n  result = sub_70400();\n  if ( v4 )\n    return 0;\n  v5 = *(_QWORD *)(v1 + 1648);\n  if ( *(_QWORD *)(v5 + 1040) )\n  {\n    v6 = 0;\n    v7 = 48;\n    while ( v6 < *(int *)(v1 + 1684) )\n    {\n      v8 = *(_QWORD *)(*(_QWORD *)(v1 + 1696) + v7);\n      if ( v8 )\n      {\n        result = sub_7028C(result, v8, 1);\n        if ( (_DWORD)result )\n          return result;\n      }\n      ++v6;\n      v7 += 56;\n    }\n    v5 = *(_QWORD *)(v1 + 1648);\n  }\n  if ( *(_QWORD *)(v5 + 976) )\n  {\n    v9 = sub_701C8(result);\n    result = v10(v9, 1);\n    if ( (_DWORD)result )\n      return result;\n    v5 = *(_QWORD *)(v1 + 1648);\n  }\n  if ( !*(_BYTE *)(v5 + 972) || (result = sub_769EC(v1), !(_DWORD)result) )\n  {\n    result = sub_7B9D0(v1, 12);\n    if ( !(_DWORD)result )\n    {\n      result = sub_5F4C4((__int64)off_114000);\n      if ( !(_DWORD)result )\n        *v2 = 1;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_6D7F8 from 0x6d7f8 to 0x6d8d0 (216 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::mixerSuspend @ 0xdd228\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x6d7f8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x6d7fc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x6d800\nLDRB            W8, [X0,#8]                                            ; +0xc, 0x6d804\nADD             X29, SP, #0x20                                         ; +0x10, 0x6d808\nCBZ             W8, loc_6D818                                          ; +0x14, 0x6d80c\nBL              sub_70400                                              ; +0x18, 0x6d810\nCBZ             W8, loc_6D824                                          ; +0x1c, 0x6d814\nMOV             W0, WZR                                                ; +0x20, 0x6d818\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x24, 0x6d81c\nB               loc_7015C                                              ; +0x28, 0x6d820\nLDR             X8, [X19,#0x670]                                       ; +0x2c, 0x6d824\nLDR             X9, [X8,#0x410]                                        ; +0x30, 0x6d828\nCBZ             X9, loc_6D870                                          ; +0x34, 0x6d82c\nMOV             X21, XZR                                               ; +0x38, 0x6d830\nMOV             W22, #0x30 ; '0'                                       ; +0x3c, 0x6d834\nLDRSW           X8, [X19,#0x694]                                       ; +0x40, 0x6d838\nCMP             X21, X8                                                ; +0x44, 0x6d83c\nB.GE            loc_6D86C                                              ; +0x48, 0x6d840\nLDR             X8, [X19,#0x6A0]                                       ; +0x4c, 0x6d844\nLDR             X1, [X8,X22]                                           ; +0x50, 0x6d848\nCBZ             X1, loc_6D860                                          ; +0x54, 0x6d84c\nLDR             X8, [X19,#0x670]                                       ; +0x58, 0x6d850\nMOV             W2, #1                                                 ; +0x5c, 0x6d854\nBL              sub_7028C                                              ; +0x60, 0x6d858\nCBNZ            W0, loc_6D81C                                          ; +0x64, 0x6d85c\nADD             X21, X21, #1                                           ; +0x68, 0x6d860\nADD             X22, X22, #0x38 ; '8'                                  ; +0x6c, 0x6d864\nB               loc_6D838                                              ; +0x70, 0x6d868\nLDR             X8, [X19,#0x670]                                       ; +0x74, 0x6d86c\nLDR             X9, [X8,#0x3D0]                                        ; +0x78, 0x6d870\nCBZ             X9, loc_6D88C                                          ; +0x7c, 0x6d874\nBL              sub_701C8                                              ; +0x80, 0x6d878\nMOV             W1, #1                                                 ; +0x84, 0x6d87c\nBLR             X9                                                     ; +0x88, 0x6d880\nCBNZ            W0, loc_6D81C                                          ; +0x8c, 0x6d884\nLDR             X8, [X19,#0x670]                                       ; +0x90, 0x6d888\nLDRB            W8, [X8,#0x3CC]                                        ; +0x94, 0x6d88c\nCBZ             W8, loc_6D8A0                                          ; +0x98, 0x6d890\nMOV             X0, X19                                                ; +0x9c, 0x6d894\nBL              sub_769EC                                              ; +0xa0, 0x6d898\nCBNZ            W0, loc_6D81C                                          ; +0xa4, 0x6d89c\nMOV             W1, #0xC                                               ; +0xa8, 0x6d8a0\nMOV             X0, X19                                                ; +0xac, 0x6d8a4\nBL              sub_7B9D0                                              ; +0xb0, 0x6d8a8\nCBNZ            W0, loc_6D81C                                          ; +0xb4, 0x6d8ac\nADRP            X8, #off_10F7A0@PAGE                                   ; +0xb8, 0x6d8b0\nLDR             X8, [X8,#off_10F7A0@PAGEOFF]; off_114000               ; +0xbc, 0x6d8b4\nLDR             X0, [X8]; qword_11F800                                 ; +0xc0, 0x6d8b8\nBL              sub_5F4C4                                              ; +0xc4, 0x6d8bc\nCBNZ            W0, loc_6D81C                                          ; +0xc8, 0x6d8c0\nMOV             W8, #1                                                 ; +0xcc, 0x6d8c4\nSTRB            W8, [X20]                                              ; +0xd0, 0x6d8c8\nB               loc_6D81C                                              ; +0xd4, 0x6d8cc", "xrefs": ["FMOD::System::mixerSuspend @ 0xdd228"], "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"}