{"type": "func", "start": 412720, "end": 412824, "name": "sub_64C30", "pseudocode": "// \n// sub_64C30 from 0x64c30 to 0x64c98 (104 bytes)\n// \n// 1 xrefs:\n// > sub_6461C @ 0x64758\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_64C30(__int64 a1, int a2)\n{\n  int v2; // w8\n  int v4; // w9\n\n  if ( a2 < 0 )\n    return 28;\n  v2 = *(_DWORD *)(a1 + 8);\n  if ( v2 <= a2 )\n    return 28;\n  v4 = v2 + ~a2;\n  if ( v4 >= 1 )\n  {\n    memmove((void *)(*(_QWORD *)a1 + 16LL * a2), (const void *)(*(_QWORD *)a1 + 16LL * a2 + 16), 16LL * v4);\n    v2 = *(_DWORD *)(a1 + 8);\n  }\n  *(_DWORD *)(a1 + 8) = v2 - 1;\n  return 0;\n}", "assembly": "; \n; sub_64C30 from 0x64c30 to 0x64c98 (104 bytes)\n; \n; 1 xrefs:\n; > sub_6461C @ 0x64758\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, 0x64c30\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x64c34\nADD             X29, SP, #0x10                                         ; +0x8, 0x64c38\nTBNZ            W1, #0x1F, loc_64C88                                   ; +0xc, 0x64c3c\nLDR             W8, [X0,#8]                                            ; +0x10, 0x64c40\nMOV             X19, X0                                                ; +0x14, 0x64c44\nCMP             W8, W1                                                 ; +0x18, 0x64c48\nB.LE            loc_64C88                                              ; +0x1c, 0x64c4c\nMVN             W9, W1                                                 ; +0x20, 0x64c50\nADD             W9, W8, W9                                             ; +0x24, 0x64c54\nCMP             W9, #1                                                 ; +0x28, 0x64c58\nB.LT            loc_64C78                                              ; +0x2c, 0x64c5c\nLDR             X8, [X19]                                              ; +0x30, 0x64c60\nSBFIZ           X2, X9, #4, #0x20 ; ' '; n                             ; +0x34, 0x64c64\nADD             X0, X8, W1,SXTW#4; dest                                ; +0x38, 0x64c68\nADD             X1, X0, #0x10; src                                     ; +0x3c, 0x64c6c\nBL              .memmove                                               ; +0x40, 0x64c70\nLDR             W8, [X19,#8]                                           ; +0x44, 0x64c74\nMOV             W0, WZR                                                ; +0x48, 0x64c78\nSUB             W8, W8, #1                                             ; +0x4c, 0x64c7c\nSTR             W8, [X19,#8]                                           ; +0x50, 0x64c80\nB               loc_64C8C                                              ; +0x54, 0x64c84\nMOV             W0, #0x1C                                              ; +0x58, 0x64c88\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x64c8c\nLDR             X19, [SP+0x10+var_10],#0x20                            ; +0x60, 0x64c90\nRET                                                                    ; +0x64, 0x64c94", "xrefs": ["sub_6461C @ 0x64758"], "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"}