{"type": "func", "start": 4295148016, "end": 4295148256, "name": "LevelInfoLayer::tryCloneLevel", "pseudocode": "// \n// LevelInfoLayer::tryCloneLevel from 0x10002c1f0 to 0x10002c2e0 (240 bytes)\n// \n// 1 xrefs:\n// > LevelInfoLayer::init @ 0x100028e4c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:57:28 +0000\n// \n\n__int64 __fastcall LevelInfoLayer::tryCloneLevel(__int64 result)\n{\n  __int64 v1; // x19\n  _DWORD *v2; // x8\n  __int64 v3; // x19\n  __int64 v4; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v6; // [xsp+1Fh] [xbp-11h]\n\n  if ( (*(_BYTE *)(result + 488) & 1) == 0 )\n  {\n    v1 = result;\n    v2 = *(_DWORD **)(result + 504);\n    if ( v2[245] - v2[246] == 1 )\n    {\n      return LevelInfoLayer::confirmClone(result);\n    }\n    else if ( (int)v2[251] < 5 )\n    {\n      v4 = NumberInputLayer::create();\n      *(_DWORD *)(v4 + 692) = 6;\n      *(_QWORD *)(v4 + 744) = v1 + 456;\n      return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);\n    }\n    else\n    {\n      sub_100009900(__p, \"Too many failed attempts!\");\n      v3 = FLAlertLayer::create_1(0, \"Error\", __p, \"OK\", 0, 300.0);\n      if ( v6 < 0 )\n        operator delete(__p[0]);\n      return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);\n    }\n  }\n  return result;\n}", "assembly": "; \n; LevelInfoLayer::tryCloneLevel from 0x10002c1f0 to 0x10002c2e0 (240 bytes)\n; \n; 1 xrefs:\n; > LevelInfoLayer::init @ 0x100028e4c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:57:28 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x10002c1f0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10002c1f4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x10002c1f8\nADD             X29, SP, #0x30                                         ; +0xc, 0x10002c1fc\nLDRB            W8, [X0,#0x1E8]                                        ; +0x10, 0x10002c200\nTBZ             W8, #0, loc_10002C218                                  ; +0x14, 0x10002c204\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x18, 0x10002c208\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x1c, 0x10002c20c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x20, 0x10002c210\nRET                                                                    ; +0x24, 0x10002c214\nMOV             X19, X0                                                ; +0x28, 0x10002c218\nLDR             X8, [X0,#0x1F8]                                        ; +0x2c, 0x10002c21c\nLDR             W9, [X8,#0x3D4]                                        ; +0x30, 0x10002c220\nLDR             W10, [X8,#0x3D8]                                       ; +0x34, 0x10002c224\nSUB             W9, W9, W10                                            ; +0x38, 0x10002c228\nCMP             W9, #1                                                 ; +0x3c, 0x10002c22c\nB.NE            loc_10002C248                                          ; +0x40, 0x10002c230\nMOV             X0, X19                                                ; +0x44, 0x10002c234\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x48, 0x10002c238\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x4c, 0x10002c23c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x50, 0x10002c240\nB               LevelInfoLayer__confirmClone                           ; +0x54, 0x10002c244\nLDR             W8, [X8,#0x3EC]                                        ; +0x58, 0x10002c248\nCMP             W8, #5                                                 ; +0x5c, 0x10002c24c\nB.LT            loc_10002C2B4                                          ; +0x60, 0x10002c250\nADRL            X1, aTooManyFailedA; \"Too many failed attempts!\"       ; +0x64, 0x10002c254\nADD             X0, SP, #0x30+__p; int                                 ; +0x6c, 0x10002c25c\nBL              sub_100009900                                          ; +0x70, 0x10002c260\nADRL            X1, aError; \"Error\"                                    ; +0x74, 0x10002c264\nADRL            X3, aOk; \"OK\"                                          ; +0x7c, 0x10002c26c\nMOV             W8, #0x43960000                                        ; +0x84, 0x10002c274\nFMOV            S0, W8                                                 ; +0x88, 0x10002c278\nADD             X2, SP, #0x30+__p                                      ; +0x8c, 0x10002c27c\nMOV             X0, #0                                                 ; +0x90, 0x10002c280\nMOV             X4, #0                                                 ; +0x94, 0x10002c284\nBL              FLAlertLayer__create_1                                 ; +0x98, 0x10002c288\nMOV             X19, X0                                                ; +0x9c, 0x10002c28c\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0xa0, 0x10002c290\nTBZ             W8, #0x1F, loc_10002C2A0                               ; +0xa4, 0x10002c294\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0xa8, 0x10002c298\nBL              __ZdlPv; operator delete(void *)                       ; +0xac, 0x10002c29c\nLDR             X8, [X19]                                              ; +0xb0, 0x10002c2a0\nLDR             X8, [X8,#0x520]                                        ; +0xb4, 0x10002c2a4\nMOV             X0, X19                                                ; +0xb8, 0x10002c2a8\nBLR             X8                                                     ; +0xbc, 0x10002c2ac\nB               loc_10002C208                                          ; +0xc0, 0x10002c2b0\nBL              NumberInputLayer__create                               ; +0xc4, 0x10002c2b4\nMOV             W8, #6                                                 ; +0xc8, 0x10002c2b8\nSTR             W8, [X0,#0x2B4]                                        ; +0xcc, 0x10002c2bc\nADD             X8, X19, #0x1C8                                        ; +0xd0, 0x10002c2c0\nSTR             X8, [X0,#0x2E8]                                        ; +0xd4, 0x10002c2c4\nLDR             X8, [X0]                                               ; +0xd8, 0x10002c2c8\nLDR             X1, [X8,#0x520]                                        ; +0xdc, 0x10002c2cc\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xe0, 0x10002c2d0\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xe4, 0x10002c2d4\nADD             SP, SP, #0x40 ; '@'                                    ; +0xe8, 0x10002c2d8\nBR              X1                                                     ; +0xec, 0x10002c2dc", "xrefs": ["LevelInfoLayer::init @ 0x100028e4c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}