{"type": "func", "start": 797036, "end": 797148, "name": "sub_C296C", "pseudocode": "// \n// sub_C296C from 0xc296c to 0xc29dc (112 bytes)\n// \n// 1 xrefs:\n// > sub_C2C4C @ 0xc2c50\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_C296C(__int64 a1, __int64 a2, void *a3, int a4, __int64 a5, _DWORD *a6)\n{\n  int v7; // w21\n  __int64 result; // x0\n\n  if ( !a2 )\n    return 0;\n  *a6 = *(_DWORD *)(a1 + 572);\n  v7 = *(_DWORD *)(a1 + 572) * a4;\n  if ( v7 > *(_DWORD *)(a1 + 576) )\n    return 28;\n  result = sub_C29DC(a1);\n  if ( !(_DWORD)result )\n  {\n    memcpy(a3, *(const void **)(a1 + 552), 4LL * v7);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_C296C from 0xc296c to 0xc29dc (112 bytes)\n; \n; 1 xrefs:\n; > sub_C2C4C @ 0xc2c50\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             X21, [SP,#-0x10+var_20]!                               ; +0x0, 0xc296c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0xc2970\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0xc2974\nADD             X29, SP, #0x20                                         ; +0xc, 0xc2978\nCBZ             X1, loc_C29C8                                          ; +0x10, 0xc297c\nLDR             W8, [X0,#0x23C]                                        ; +0x14, 0xc2980\nMOV             X20, X0                                                ; +0x18, 0xc2984\nSTR             W8, [X5]                                               ; +0x1c, 0xc2988\nLDR             W8, [X0,#0x23C]                                        ; +0x20, 0xc298c\nLDR             W9, [X0,#0x240]                                        ; +0x24, 0xc2990\nMUL             W21, W8, W3                                            ; +0x28, 0xc2994\nCMP             W21, W9                                                ; +0x2c, 0xc2998\nB.LE            loc_C29A8                                              ; +0x30, 0xc299c\nMOV             W0, #0x1C                                              ; +0x34, 0xc29a0\nB               loc_C29CC                                              ; +0x38, 0xc29a4\nMOV             X0, X20                                                ; +0x3c, 0xc29a8\nMOV             X19, X2                                                ; +0x40, 0xc29ac\nBL              sub_C29DC                                              ; +0x44, 0xc29b0\nCBNZ            W0, loc_C29CC                                          ; +0x48, 0xc29b4\nLDR             X1, [X20,#0x228]; src                                  ; +0x4c, 0xc29b8\nSBFIZ           X2, X21, #2, #0x20 ; ' '; n                            ; +0x50, 0xc29bc\nMOV             X0, X19; dest                                          ; +0x54, 0xc29c0\nBL              .memcpy                                                ; +0x58, 0xc29c4\nMOV             W0, WZR                                                ; +0x5c, 0xc29c8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x60, 0xc29cc\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x64, 0xc29d0\nLDR             X21, [SP+0x20+var_20],#0x30                            ; +0x68, 0xc29d4\nRET                                                                    ; +0x6c, 0xc29d8", "xrefs": ["sub_C2C4C @ 0xc2c50"], "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"}