{"type": "func", "start": 882332, "end": 882600, "name": "sub_D769C", "pseudocode": "// \n// sub_D769C from 0xd769c to 0xd77a8 (268 bytes)\n// \n// 2 xrefs:\n// > sub_6A544 @ 0x6a6ec\n// > sub_769EC @ 0x76a7c\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_D769C(__int64 a1)\n{\n  unsigned int v2; // w20\n  __int64 v3; // x0\n  __int64 v4; // x22\n  __int64 i; // x21\n  __int64 v6; // x24\n  __int64 v7; // x0\n  __int64 v8; // x22\n  _QWORD *v9; // x21\n\n  v2 = sub_E4458(a1 + 448);\n  if ( !v2 )\n  {\n    v3 = sub_E4458(a1 + 112);\n    v2 = v3;\n    if ( !(_DWORD)v3 )\n    {\n      if ( !*(_QWORD *)(a1 + 856) || (v3 = sub_D7BA0(v3), (v2 = v3) == 0) )\n      {\n        v4 = *(int *)(*(_QWORD *)(a1 + 72) + 74064LL);\n        for ( i = 0; i < v4; ++i )\n        {\n          v6 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 72) + 74056LL) + 8 * i);\n          if ( *(_QWORD *)(v6 + 24) )\n          {\n            v3 = (*(__int64 (__fastcall **)(__int64))(a1 + 912))(a1 + 8);\n            *(_QWORD *)(v6 + 24) = 0;\n          }\n        }\n        if ( *(_QWORD *)(a1 + 936) )\n        {\n          v7 = sub_D7AEC(v3);\n          v8 = *(_QWORD *)(a1 + 72) + 1728LL;\n          v9 = (_QWORD *)v8;\n          while ( 1 )\n          {\n            v9 = (_QWORD *)*v9;\n            if ( v9 == (_QWORD *)v8 )\n              break;\n            v7 = sub_D70E8(a1, (__int64)v9);\n            if ( (_DWORD)v7 )\n            {\n              v2 = v7;\n              sub_D7BE0(v7);\n              return v2;\n            }\n          }\n          sub_D7BE0(v7);\n        }\n        return 0;\n      }\n    }\n  }\n  return v2;\n}", "assembly": "; \n; sub_D769C from 0xd769c to 0xd77a8 (268 bytes)\n; \n; 2 xrefs:\n; > sub_6A544 @ 0x6a6ec\n; > sub_769EC @ 0x76a7c\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0xd769c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0xd76a0\nMOV             X19, X0                                                ; +0x8, 0xd76a4\nADD             X0, X0, #0x1C0                                         ; +0xc, 0xd76a8\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x10, 0xd76ac\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x14, 0xd76b0\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x18, 0xd76b4\nADD             X29, SP, #0x40                                         ; +0x1c, 0xd76b8\nBL              sub_E4458                                              ; +0x20, 0xd76bc\nMOV             W20, W0                                                ; +0x24, 0xd76c0\nCBNZ            W0, loc_D778C                                          ; +0x28, 0xd76c4\nADD             X0, X19, #0x70 ; 'p'                                   ; +0x2c, 0xd76c8\nBL              sub_E4458                                              ; +0x30, 0xd76cc\nMOV             W20, W0                                                ; +0x34, 0xd76d0\nCBNZ            W0, loc_D778C                                          ; +0x38, 0xd76d4\nLDR             X8, [X19,#0x358]                                       ; +0x3c, 0xd76d8\nCBZ             X8, loc_D76EC                                          ; +0x40, 0xd76dc\nBL              sub_D7BA0                                              ; +0x44, 0xd76e0\nMOV             W20, W0                                                ; +0x48, 0xd76e4\nCBNZ            W0, loc_D778C                                          ; +0x4c, 0xd76e8\nLDR             X8, [X19,#0x48]                                        ; +0x50, 0xd76ec\nMOV             W9, #0x12150                                           ; +0x54, 0xd76f0\nMOV             W23, #0x2148                                           ; +0x5c, 0xd76f8\nLDRSW           X22, [X8,X9]                                           ; +0x60, 0xd76fc\nMOV             X21, XZR                                               ; +0x64, 0xd7700\nADD             X20, X19, #8                                           ; +0x68, 0xd7704\nMOVK            W23, #1,LSL#16                                         ; +0x6c, 0xd7708\nCMP             X21, X22                                               ; +0x70, 0xd770c\nB.GE            loc_D7740                                              ; +0x74, 0xd7710\nLDR             X8, [X19,#0x48]                                        ; +0x78, 0xd7714\nLDR             X8, [X8,X23]                                           ; +0x7c, 0xd7718\nLDR             X24, [X8,X21,LSL#3]                                    ; +0x80, 0xd771c\nLDR             X1, [X24,#0x18]                                        ; +0x84, 0xd7720\nCBZ             X1, loc_D7738                                          ; +0x88, 0xd7724\nLDR             X8, [X19,#0x390]                                       ; +0x8c, 0xd7728\nMOV             X0, X20                                                ; +0x90, 0xd772c\nBLR             X8                                                     ; +0x94, 0xd7730\nSTR             XZR, [X24,#0x18]                                       ; +0x98, 0xd7734\nADD             X21, X21, #1                                           ; +0x9c, 0xd7738\nB               loc_D770C                                              ; +0xa0, 0xd773c\nLDR             X8, [X19,#0x3A8]                                       ; +0xa4, 0xd7740\nCBZ             X8, loc_D7788                                          ; +0xa8, 0xd7744\nLDR             X8, [X19,#0x48]                                        ; +0xac, 0xd7748\nBL              sub_D7AEC                                              ; +0xb0, 0xd774c\nLDR             X8, [X19,#0x48]                                        ; +0xb4, 0xd7750\nADD             X22, X8, #0x6C0                                        ; +0xb8, 0xd7754\nMOV             X21, X22                                               ; +0xbc, 0xd7758\nLDR             X21, [X21]                                             ; +0xc0, 0xd775c\nCMP             X21, X22                                               ; +0xc4, 0xd7760\nB.EQ            loc_D7784                                              ; +0xc8, 0xd7764\nMOV             X0, X19                                                ; +0xcc, 0xd7768\nMOV             X1, X21                                                ; +0xd0, 0xd776c\nBL              sub_D70E8                                              ; +0xd4, 0xd7770\nCBZ             W0, loc_D775C                                          ; +0xd8, 0xd7774\nMOV             W20, W0                                                ; +0xdc, 0xd7778\nBL              sub_D7BE0                                              ; +0xe0, 0xd777c\nB               loc_D778C                                              ; +0xe4, 0xd7780\nBL              sub_D7BE0                                              ; +0xe8, 0xd7784\nMOV             W20, WZR                                               ; +0xec, 0xd7788\nMOV             W0, W20                                                ; +0xf0, 0xd778c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xf4, 0xd7790\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xf8, 0xd7794\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xfc, 0xd7798\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x100, 0xd779c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x104, 0xd77a0\nRET                                                                    ; +0x108, 0xd77a4", "xrefs": ["sub_6A544 @ 0x6a6ec", "sub_769EC @ 0x76a7c"], "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"}