{"type": "func", "start": 457928, "end": 458040, "name": "sub_6FCC8", "pseudocode": "// \n// sub_6FCC8 from 0x6fcc8 to 0x6fd38 (112 bytes)\n// \n// 1 xrefs:\n// > sub_6AC18 @ 0x6ac2c\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_6FCC8(__int64 a1, int a2)\n{\n  int v2; // w8\n  __int64 result; // x0\n  __int64 v6; // x8\n\n  v2 = *(_DWORD *)(a1 + 12);\n  if ( v2 < 0 )\n    v2 = -v2;\n  if ( v2 >= a2 || (result = sub_6FD68(a1, (unsigned int)a2), !(_DWORD)result) )\n  {\n    v6 = *(int *)(a1 + 8);\n    if ( (int)v6 < a2 )\n      memset((void *)(*(_QWORD *)a1 + 8 * v6), 0, 8LL * (a2 - (int)v6));\n    *(_DWORD *)(a1 + 8) = a2;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_6FCC8 from 0x6fcc8 to 0x6fd38 (112 bytes)\n; \n; 1 xrefs:\n; > sub_6AC18 @ 0x6ac2c\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, 0x6fcc8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x6fccc\nLDR             W8, [X0,#0xC]                                          ; +0x8, 0x6fcd0\nMOV             W19, W1                                                ; +0xc, 0x6fcd4\nMOV             X20, X0                                                ; +0x10, 0x6fcd8\nADD             X29, SP, #0x10                                         ; +0x14, 0x6fcdc\nCMP             W8, #0                                                 ; +0x18, 0x6fce0\nCNEG            W8, W8, MI                                             ; +0x1c, 0x6fce4\nCMP             W8, W1                                                 ; +0x20, 0x6fce8\nB.GE            loc_6FD00                                              ; +0x24, 0x6fcec\nMOV             X0, X20                                                ; +0x28, 0x6fcf0\nMOV             W1, W19                                                ; +0x2c, 0x6fcf4\nBL              sub_6FD68                                              ; +0x30, 0x6fcf8\nCBNZ            W0, loc_6FD2C                                          ; +0x34, 0x6fcfc\nLDRSW           X8, [X20,#8]                                           ; +0x38, 0x6fd00\nCMP             W8, W19                                                ; +0x3c, 0x6fd04\nB.GE            loc_6FD24                                              ; +0x40, 0x6fd08\nLDR             X9, [X20]                                              ; +0x44, 0x6fd0c\nSUB             W10, W19, W8                                           ; +0x48, 0x6fd10\nSBFIZ           X2, X10, #3, #0x20 ; ' '; n                            ; +0x4c, 0x6fd14\nMOV             W1, WZR; c                                             ; +0x50, 0x6fd18\nADD             X0, X9, X8,LSL#3; s                                    ; +0x54, 0x6fd1c\nBL              .memset                                                ; +0x58, 0x6fd20\nMOV             W0, WZR                                                ; +0x5c, 0x6fd24\nSTR             W19, [X20,#8]                                          ; +0x60, 0x6fd28\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x64, 0x6fd2c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x68, 0x6fd30\nRET                                                                    ; +0x6c, 0x6fd34", "xrefs": ["sub_6AC18 @ 0x6ac2c"], "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"}