{"type": "func", "start": 556268, "end": 556368, "name": "sub_87CEC", "pseudocode": "// \n// sub_87CEC from 0x87cec to 0x87d50 (100 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x10d708\n// > <???> @ 0x10d760\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_87CEC(__int64 a1)\n{\n  unsigned int v2; // w19\n\n  v2 = sub_72E10(a1);\n  if ( !v2 )\n  {\n    memset(*(void **)(a1 + 96), 0, 8 * (*(int *)(a1 + 16) + 1LL) * *(int *)(a1 + 32));\n    sub_87D7C(*(_QWORD *)(a1 + 48));\n    sub_87D7C(*(_QWORD *)(a1 + 128));\n  }\n  return v2;\n}", "assembly": "; \n; sub_87CEC from 0x87cec to 0x87d50 (100 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x10d708\n; > <???> @ 0x10d760\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, 0x87cec\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x87cf0\nADD             X29, SP, #0x10                                         ; +0x8, 0x87cf4\nMOV             X20, X0                                                ; +0xc, 0x87cf8\nBL              sub_72E10                                              ; +0x10, 0x87cfc\nMOV             W19, W0                                                ; +0x14, 0x87d00\nCBNZ            W0, loc_87D40                                          ; +0x18, 0x87d04\nLDRSW           X8, [X20,#0x10]                                        ; +0x1c, 0x87d08\nLDRSW           X9, [X20,#0x20]                                        ; +0x20, 0x87d0c\nLDR             X0, [X20,#0x60]; s                                     ; +0x24, 0x87d10\nMOV             W1, WZR; c                                             ; +0x28, 0x87d14\nADD             X8, X8, #1                                             ; +0x2c, 0x87d18\nMUL             X8, X8, X9                                             ; +0x30, 0x87d1c\nLSL             X2, X8, #3; n                                          ; +0x34, 0x87d20\nBL              .memset                                                ; +0x38, 0x87d24\nLDRSW           X8, [X20,#0x24]                                        ; +0x3c, 0x87d28\nLDR             X0, [X20,#0x30]                                        ; +0x40, 0x87d2c\nBL              sub_87D7C                                              ; +0x44, 0x87d30\nLDRSW           X8, [X20,#0x10]                                        ; +0x48, 0x87d34\nLDR             X0, [X20,#0x80]                                        ; +0x4c, 0x87d38\nBL              sub_87D7C                                              ; +0x50, 0x87d3c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x54, 0x87d40\nMOV             W0, W19                                                ; +0x58, 0x87d44\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x5c, 0x87d48\nRET                                                                    ; +0x60, 0x87d4c", "xrefs": ["<???> @ 0x10d708", "<???> @ 0x10d760"], "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"}