{"type": "func", "start": 796264, "end": 796416, "name": "sub_C2668", "pseudocode": "// \n// sub_C2668 from 0xc2668 to 0xc2700 (152 bytes)\n// \n// 1 xrefs:\n// > sub_C2638 @ 0xc2658\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_C2668(__int64 a1, _DWORD *a2, __int64 a3)\n{\n  __int64 result; // x0\n  int v7; // w8\n  __int64 v8; // [xsp+8h] [xbp-28h] BYREF\n  __int64 v9; // [xsp+18h] [xbp-18h] BYREF\n\n  result = sub_C2DC4();\n  if ( !(_DWORD)result )\n  {\n    v7 = *(_DWORD *)(a1 + 8);\n    if ( v7 && (v9 = *(_QWORD *)a1 + 4LL * (*a2 & (v7 - 1)), v8 = 0, (unsigned int)sub_C2E10(a1, &v9, a2, &v8) == 74) )\n      return sub_C2E58(a1, a2, a3, v9);\n    else\n      return 28;\n  }\n  return result;\n}", "assembly": "; \n; sub_C2668 from 0xc2668 to 0xc2700 (152 bytes)\n; \n; 1 xrefs:\n; > sub_C2638 @ 0xc2658\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, #0x40                                          ; +0x0, 0xc2668\nSTR             X21, [SP,#0x30+var_20]                                 ; +0x4, 0xc266c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0xc2670\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0xc2674\nADD             X29, SP, #0x30                                         ; +0x10, 0xc2678\nMOV             X19, X2                                                ; +0x14, 0xc267c\nMOV             X20, X1                                                ; +0x18, 0xc2680\nMOV             X21, X0                                                ; +0x1c, 0xc2684\nBL              sub_C2DC4                                              ; +0x20, 0xc2688\nCBNZ            W0, loc_C26EC                                          ; +0x24, 0xc268c\nLDR             W8, [X21,#8]                                           ; +0x28, 0xc2690\nCBZ             W8, loc_C26E8                                          ; +0x2c, 0xc2694\nLDR             W9, [X20]                                              ; +0x30, 0xc2698\nLDR             X10, [X21]                                             ; +0x34, 0xc269c\nSUB             W8, W8, #1                                             ; +0x38, 0xc26a0\nADD             X1, SP, #0x30+var_18                                   ; +0x3c, 0xc26a4\nAND             W8, W9, W8                                             ; +0x40, 0xc26a8\nADD             X8, X10, W8,SXTW#2                                     ; +0x44, 0xc26ac\nADD             X3, SP, #0x30+var_28                                   ; +0x48, 0xc26b0\nMOV             X0, X21                                                ; +0x4c, 0xc26b4\nMOV             X2, X20                                                ; +0x50, 0xc26b8\nSTR             X8, [SP,#0x30+var_18]                                  ; +0x54, 0xc26bc\nSTR             XZR, [SP,#0x30+var_28]                                 ; +0x58, 0xc26c0\nBL              sub_C2E10                                              ; +0x5c, 0xc26c4\nCMP             W0, #0x4A ; 'J'                                        ; +0x60, 0xc26c8\nB.NE            loc_C26E8                                              ; +0x64, 0xc26cc\nLDR             X3, [SP,#0x30+var_18]                                  ; +0x68, 0xc26d0\nMOV             X0, X21                                                ; +0x6c, 0xc26d4\nMOV             X1, X20                                                ; +0x70, 0xc26d8\nMOV             X2, X19                                                ; +0x74, 0xc26dc\nBL              sub_C2E58                                              ; +0x78, 0xc26e0\nB               loc_C26EC                                              ; +0x7c, 0xc26e4\nMOV             W0, #0x1C                                              ; +0x80, 0xc26e8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x84, 0xc26ec\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x88, 0xc26f0\nLDR             X21, [SP,#0x30+var_20]                                 ; +0x8c, 0xc26f4\nADD             SP, SP, #0x40 ; '@'                                    ; +0x90, 0xc26f8\nRET                                                                    ; +0x94, 0xc26fc", "xrefs": ["sub_C2638 @ 0xc2658"], "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"}