{"type": "func", "start": 863432, "end": 863564, "name": "sub_D2CC8", "pseudocode": "// \n// sub_D2CC8 from 0xd2cc8 to 0xd2d4c (132 bytes)\n// \n// 4 xrefs:\n// > sub_5470C @ 0x549e4\n// > sub_66E18 @ 0x66fdc\n// > sub_67040 @ 0x670dc\n// > sub_67EC0 @ 0x67f14\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_D2CC8(__int64 a1, _DWORD *a2, int a3)\n{\n  __int64 v5; // x0\n  __int64 result; // x0\n  __int64 (__fastcall *v7)(__int64, _DWORD *); // x8\n\n  *a2 = 0;\n  if ( a3 == 8 )\n  {\n    v5 = *(_QWORD *)(a1 + 368);\n    if ( v5 )\n    {\n      result = sub_E0A30(v5);\n      if ( (_DWORD)result )\n        return result;\n      *a2 -= *(_DWORD *)(a1 + 272);\n      return 0;\n    }\n  }\n  v7 = *(__int64 (__fastcall **)(__int64, _DWORD *))(a1 + 120);\n  if ( v7 && (*(_DWORD *)(a1 + 72) & a3) != 0 )\n  {\n    result = v7(a1, a2);\n    if ( (_DWORD)result )\n      return result;\n    return 0;\n  }\n  return 68;\n}", "assembly": "; \n; sub_D2CC8 from 0xd2cc8 to 0xd2d4c (132 bytes)\n; \n; 4 xrefs:\n; > sub_5470C @ 0x549e4\n; > sub_66E18 @ 0x66fdc\n; > sub_67040 @ 0x670dc\n; > sub_67EC0 @ 0x67f14\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, 0xd2cc8\nMOV             X19, X1                                                ; +0x4, 0xd2ccc\nMOV             X20, X0                                                ; +0x8, 0xd2cd0\nCMP             W2, #8                                                 ; +0xc, 0xd2cd4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x10, 0xd2cd8\nADD             X29, SP, #0x10                                         ; +0x14, 0xd2cdc\nSTR             WZR, [X1]                                              ; +0x18, 0xd2ce0\nB.NE            loc_D2D10                                              ; +0x1c, 0xd2ce4\nLDR             X0, [X20,#0x170]                                       ; +0x20, 0xd2ce8\nCBZ             X0, loc_D2D10                                          ; +0x24, 0xd2cec\nMOV             X1, X19                                                ; +0x28, 0xd2cf0\nBL              sub_E0A30                                              ; +0x2c, 0xd2cf4\nCBNZ            W0, loc_D2D40                                          ; +0x30, 0xd2cf8\nLDR             W8, [X20,#0x110]                                       ; +0x34, 0xd2cfc\nLDR             W9, [X19]                                              ; +0x38, 0xd2d00\nSUB             W8, W9, W8                                             ; +0x3c, 0xd2d04\nSTR             W8, [X19]                                              ; +0x40, 0xd2d08\nB               loc_D2D34                                              ; +0x44, 0xd2d0c\nLDR             X8, [X20,#0x78]                                        ; +0x48, 0xd2d10\nCBZ             X8, loc_D2D3C                                          ; +0x4c, 0xd2d14\nLDR             W9, [X20,#0x48]                                        ; +0x50, 0xd2d18\nTST             W9, W2                                                 ; +0x54, 0xd2d1c\nB.EQ            loc_D2D3C                                              ; +0x58, 0xd2d20\nMOV             X0, X20                                                ; +0x5c, 0xd2d24\nMOV             X1, X19                                                ; +0x60, 0xd2d28\nBLR             X8                                                     ; +0x64, 0xd2d2c\nCBNZ            W0, loc_D2D40                                          ; +0x68, 0xd2d30\nMOV             W0, WZR                                                ; +0x6c, 0xd2d34\nB               loc_D2D40                                              ; +0x70, 0xd2d38\nMOV             W0, #0x44 ; 'D'                                        ; +0x74, 0xd2d3c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x78, 0xd2d40\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x7c, 0xd2d44\nRET                                                                    ; +0x80, 0xd2d48", "xrefs": ["sub_5470C @ 0x549e4", "sub_66E18 @ 0x66fdc", "sub_67040 @ 0x670dc", "sub_67EC0 @ 0x67f14"], "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"}