{"type": "func", "start": 800364, "end": 800496, "name": "sub_C366C", "pseudocode": "// \n// sub_C366C from 0xc366c to 0xc36f0 (132 bytes)\n// \n// 1 xrefs:\n// > sub_7755C @ 0x7780c\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_C366C(_QWORD *a1, int a2)\n{\n  __int64 v3; // x20\n  __int64 v4; // x0\n  __int64 result; // x0\n\n  if ( a2 == -1 )\n    v3 = 0;\n  else\n    v3 = sub_C27A0();\n  v4 = a1[72];\n  if ( v3 == v4 )\n    return 0;\n  if ( !v4 || (result = sub_C2944(v4, (__int64)a1), !(_DWORD)result) )\n  {\n    if ( !v3 || (result = sub_C2918(v3, a1), !(_DWORD)result) )\n    {\n      a1[72] = v3;\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_C366C from 0xc366c to 0xc36f0 (132 bytes)\n; \n; 1 xrefs:\n; > sub_7755C @ 0x7780c\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, 0xc366c\nCMN             W1, #1                                                 ; +0x4, 0xc3670\nMOV             X19, X0                                                ; +0x8, 0xc3674\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0xc, 0xc3678\nADD             X29, SP, #0x10                                         ; +0x10, 0xc367c\nB.EQ            loc_C36A0                                              ; +0x14, 0xc3680\nLDR             X8, [X19,#0xA8]                                        ; +0x18, 0xc3684\nMOV             W9, #0x12100                                           ; +0x1c, 0xc3688\nADD             X0, X8, X9                                             ; +0x24, 0xc3690\nBL              sub_C27A0                                              ; +0x28, 0xc3694\nMOV             X20, X0                                                ; +0x2c, 0xc3698\nB               loc_C36A4                                              ; +0x30, 0xc369c\nMOV             X20, XZR                                               ; +0x34, 0xc36a0\nLDR             X0, [X19,#0x240]                                       ; +0x38, 0xc36a4\nCMP             X20, X0                                                ; +0x3c, 0xc36a8\nB.EQ            loc_C36E0                                              ; +0x40, 0xc36ac\nCBZ             X0, loc_C36C0                                          ; +0x44, 0xc36b0\nMOV             X1, X19                                                ; +0x48, 0xc36b4\nBL              sub_C2944                                              ; +0x4c, 0xc36b8\nCBNZ            W0, loc_C36E4                                          ; +0x50, 0xc36bc\nCBZ             X20, loc_C36D4                                         ; +0x54, 0xc36c0\nMOV             X0, X20                                                ; +0x58, 0xc36c4\nMOV             X1, X19                                                ; +0x5c, 0xc36c8\nBL              sub_C2918                                              ; +0x60, 0xc36cc\nCBNZ            W0, loc_C36E4                                          ; +0x64, 0xc36d0\nMOV             W0, WZR                                                ; +0x68, 0xc36d4\nSTR             X20, [X19,#0x240]                                      ; +0x6c, 0xc36d8\nB               loc_C36E4                                              ; +0x70, 0xc36dc\nMOV             W0, WZR                                                ; +0x74, 0xc36e0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x78, 0xc36e4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x7c, 0xc36e8\nRET                                                                    ; +0x80, 0xc36ec", "xrefs": ["sub_7755C @ 0x7780c"], "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"}