{"type": "func", "start": 381904, "end": 381972, "name": "sub_5D3D0", "pseudocode": "// \n// sub_5D3D0 from 0x5d3d0 to 0x5d414 (68 bytes)\n// \n// 1 xrefs:\n// > sub_5D9B4 @ 0x5da74\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_5D3D0(__int64 result)\n{\n  int v1; // w8\n  bool v2; // vf\n  __int64 v3; // x1\n  __int64 v4; // x19\n  __int64 v5; // x0\n\n  v1 = *(_DWORD *)(result + 424);\n  v2 = __OFSUB__(v1--, 1);\n  *(_DWORD *)(result + 424) = v1;\n  if ( (v1 < 0) ^ v2 | (v1 == 0) )\n  {\n    v3 = *(_QWORD *)(result + 416);\n    v4 = result;\n    *(_DWORD *)(result + 424) = 0;\n    if ( v3 )\n    {\n      v5 = sub_5D4E8();\n      result = sub_5D4B8(v5);\n      *(_QWORD *)(v4 + 416) = 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_5D3D0 from 0x5d3d0 to 0x5d414 (68 bytes)\n; \n; 1 xrefs:\n; > sub_5D9B4 @ 0x5da74\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\nSTR             X19, [SP,#-0x10+var_10]!                               ; +0x0, 0x5d3d0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x5d3d4\nLDR             W8, [X0,#0x1A8]                                        ; +0x8, 0x5d3d8\nADD             X29, SP, #0x10                                         ; +0xc, 0x5d3dc\nSUBS            W8, W8, #1                                             ; +0x10, 0x5d3e0\nSTR             W8, [X0,#0x1A8]                                        ; +0x14, 0x5d3e4\nB.GT            loc_5D40C                                              ; +0x18, 0x5d3e8\nLDR             X1, [X0,#0x1A0]                                        ; +0x1c, 0x5d3ec\nMOV             X19, X0                                                ; +0x20, 0x5d3f0\nSTR             WZR, [X0,#0x1A8]                                       ; +0x24, 0x5d3f4\nCBZ             X1, loc_5D40C                                          ; +0x28, 0x5d3f8\nBL              sub_5D4E8                                              ; +0x2c, 0x5d3fc\nMOV             W3, #0x190                                             ; +0x30, 0x5d400\nBL              sub_5D4B8                                              ; +0x34, 0x5d404\nSTR             XZR, [X19,#0x1A0]                                      ; +0x38, 0x5d408\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x3c, 0x5d40c\nB               loc_5D4E0                                              ; +0x40, 0x5d410", "xrefs": ["sub_5D9B4 @ 0x5da74"], "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"}