{"type": "func", "start": 367856, "end": 368020, "name": "sub_59CF0", "pseudocode": "// \n// sub_59CF0 from 0x59cf0 to 0x59d94 (164 bytes)\n// \n// 3 xrefs:\n// > sub_59AE8 @ 0x59bb0\n// > sub_7C19C @ 0x7c3f8\n// > sub_7C19C @ 0x7c500\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_59CF0(__int64 a1, __int64 a2)\n{\n  __int64 v5; // [xsp+8h] [xbp-18h] BYREF\n\n  v5 = 0;\n  sub_5A494(a1, &v5);\n  *(_QWORD *)(a2 + 16) = v5;\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 152LL))(a1, a2);\n  sub_5A4DC(a1, a2 + 4, 2);\n  sub_5A5DC(a1, a2 + 8, 2, a2 + 12, 2);\n  sub_5A74C(a1, a2 + 24);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 24LL))(a1, a2 + 28);\n  *(_DWORD *)(*(_QWORD *)(a2 + 16) + 60LL) |= 0x8000u;\n  return 0;\n}", "assembly": "; \n; sub_59CF0 from 0x59cf0 to 0x59d94 (164 bytes)\n; \n; 3 xrefs:\n; > sub_59AE8 @ 0x59bb0\n; > sub_7C19C @ 0x7c3f8\n; > sub_7C19C @ 0x7c500\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, #0x30                                          ; +0x0, 0x59cf0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x59cf4\nMOV             X19, X1                                                ; +0x8, 0x59cf8\nADD             X1, SP, #0x20+var_18                                   ; +0xc, 0x59cfc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x10, 0x59d00\nADD             X29, SP, #0x20                                         ; +0x14, 0x59d04\nMOV             X20, X0                                                ; +0x18, 0x59d08\nSTR             XZR, [SP,#0x20+var_18]                                 ; +0x1c, 0x59d0c\nBL              sub_5A494                                              ; +0x20, 0x59d10\nLDR             X8, [SP,#0x20+var_18]                                  ; +0x24, 0x59d14\nMOV             X0, X20                                                ; +0x28, 0x59d18\nMOV             X1, X19                                                ; +0x2c, 0x59d1c\nSTR             X8, [X19,#0x10]                                        ; +0x30, 0x59d20\nLDR             X8, [X20]                                              ; +0x34, 0x59d24\nLDR             X8, [X8,#0x98]                                         ; +0x38, 0x59d28\nBLR             X8                                                     ; +0x3c, 0x59d2c\nADD             X1, X19, #4                                            ; +0x40, 0x59d30\nMOV             W2, #2                                                 ; +0x44, 0x59d34\nMOV             X0, X20                                                ; +0x48, 0x59d38\nBL              sub_5A4DC                                              ; +0x4c, 0x59d3c\nADD             X1, X19, #8                                            ; +0x50, 0x59d40\nADD             X3, X19, #0xC                                          ; +0x54, 0x59d44\nMOV             W2, #2                                                 ; +0x58, 0x59d48\nMOV             W4, #2                                                 ; +0x5c, 0x59d4c\nMOV             X0, X20                                                ; +0x60, 0x59d50\nBL              sub_5A5DC                                              ; +0x64, 0x59d54\nADD             X1, X19, #0x18                                         ; +0x68, 0x59d58\nMOV             X0, X20                                                ; +0x6c, 0x59d5c\nBL              sub_5A74C                                              ; +0x70, 0x59d60\nLDR             X8, [X20]                                              ; +0x74, 0x59d64\nADD             X1, X19, #0x1C                                         ; +0x78, 0x59d68\nMOV             X0, X20                                                ; +0x7c, 0x59d6c\nLDR             X8, [X8,#0x18]                                         ; +0x80, 0x59d70\nBLR             X8                                                     ; +0x84, 0x59d74\nLDR             X8, [X19,#0x10]                                        ; +0x88, 0x59d78\nMOV             W0, WZR                                                ; +0x8c, 0x59d7c\nLDR             W9, [X8,#0x3C]                                         ; +0x90, 0x59d80\nORR             W9, W9, #0x8000                                        ; +0x94, 0x59d84\nSTR             W9, [X8,#0x3C]                                         ; +0x98, 0x59d88\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x9c, 0x59d8c\nB               loc_5C60C                                              ; +0xa0, 0x59d90", "xrefs": ["sub_59AE8 @ 0x59bb0", "sub_7C19C @ 0x7c3f8", "sub_7C19C @ 0x7c500"], "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"}