{"type": "func", "start": 4295147780, "end": 4295147988, "name": "LevelInfoLayer::confirmClone", "pseudocode": "// \n// LevelInfoLayer::confirmClone from 0x10002c104 to 0x10002c1d4 (208 bytes)\n// \n// 3 xrefs:\n// > LevelInfoLayer::tryCloneLevel @ 0x10002c244\n// > LevelInfoLayer::numberInputClosed @ 0x10002e0e0\n// > LevelInfoLayer::init @ 0x100028c1c\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::confirmClone(__int64 result)\n{\n  __int64 v1; // x19\n  int v2; // w20\n  __int64 v3; // x0\n  char *v4; // x1\n  __int64 v5; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v7; // [xsp+1Fh] [xbp-11h]\n\n  if ( (*(_BYTE *)(result + 488) & 1) == 0 )\n  {\n    v1 = result;\n    v2 = *(_DWORD *)(*(_QWORD *)(result + 504) + 576LL) - *(_DWORD *)(*(_QWORD *)(result + 504) + 580LL);\n    v3 = GameManager::sharedState(result);\n    if ( v2 == *(_DWORD *)(v3 + 660) - *(_DWORD *)(v3 + 664) )\n      v4 = \"Create a <cl>copy</c> of this <cg>level</c>?\\n<cy>(Creator enabled)</c>\";\n    else\n      v4 = \"Create a <cl>copy</c> of this <cg>level</c>?\";\n    sub_100009900(__p, v4);\n    v5 = FLAlertLayer::create_1(v1 + 440, \"Clone Level\", __p, \"NO\", \"YES\", 300.0);\n    if ( v7 < 0 )\n      operator delete(__p[0]);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 72LL))(v5, 6);\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);\n  }\n  return result;\n}", "assembly": "; \n; LevelInfoLayer::confirmClone from 0x10002c104 to 0x10002c1d4 (208 bytes)\n; \n; 3 xrefs:\n; > LevelInfoLayer::tryCloneLevel @ 0x10002c244\n; > LevelInfoLayer::numberInputClosed @ 0x10002e0e0\n; > LevelInfoLayer::init @ 0x100028c1c\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, 0x10002c104\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10002c108\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x10002c10c\nADD             X29, SP, #0x30                                         ; +0xc, 0x10002c110\nLDRB            W8, [X0,#0x1E8]                                        ; +0x10, 0x10002c114\nTBNZ            W8, #0, loc_10002C1C4                                  ; +0x14, 0x10002c118\nMOV             X19, X0                                                ; +0x18, 0x10002c11c\nLDR             X8, [X0,#0x1F8]                                        ; +0x1c, 0x10002c120\nLDR             W9, [X8,#0x240]                                        ; +0x20, 0x10002c124\nLDR             W8, [X8,#0x244]                                        ; +0x24, 0x10002c128\nSUB             W20, W9, W8                                            ; +0x28, 0x10002c12c\nBL              GameManager__sharedState                               ; +0x2c, 0x10002c130\nLDR             W8, [X0,#0x294]                                        ; +0x30, 0x10002c134\nLDR             W9, [X0,#0x298]                                        ; +0x34, 0x10002c138\nSUB             W8, W8, W9                                             ; +0x38, 0x10002c13c\nADRL            X9, aCreateAClCopyC; \"Create a <cl>copy</c> of this <cg>level\"... ; +0x3c, 0x10002c140\nADRL            X10, aCreateAClCopyC_0; \"Create a <cl>copy</c> of this <cg>level\"... ; +0x44, 0x10002c148\nCMP             W20, W8                                                ; +0x4c, 0x10002c150\nCSEL            X1, X10, X9, EQ; __s                                   ; +0x50, 0x10002c154\nADD             X0, SP, #0x30+__p; int                                 ; +0x54, 0x10002c158\nBL              sub_100009900                                          ; +0x58, 0x10002c15c\nADRL            X1, aCloneLevel; \"Clone Level\"                         ; +0x5c, 0x10002c160\nADRL            X3, aNo; \"NO\"                                          ; +0x64, 0x10002c168\nADRL            X4, aYes; \"YES\"                                        ; +0x6c, 0x10002c170\nMOV             W8, #0x43960000                                        ; +0x74, 0x10002c178\nFMOV            S0, W8                                                 ; +0x78, 0x10002c17c\nADD             X0, X19, #0x1B8                                        ; +0x7c, 0x10002c180\nADD             X2, SP, #0x30+__p                                      ; +0x80, 0x10002c184\nBL              FLAlertLayer__create_1                                 ; +0x84, 0x10002c188\nMOV             X19, X0                                                ; +0x88, 0x10002c18c\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x8c, 0x10002c190\nTBZ             W8, #0x1F, loc_10002C1A0                               ; +0x90, 0x10002c194\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x94, 0x10002c198\nBL              __ZdlPv; operator delete(void *)                       ; +0x98, 0x10002c19c\nLDR             X8, [X19]                                              ; +0x9c, 0x10002c1a0\nLDR             X8, [X8,#0x48]                                         ; +0xa0, 0x10002c1a4\nMOV             X0, X19                                                ; +0xa4, 0x10002c1a8\nMOV             W1, #6                                                 ; +0xa8, 0x10002c1ac\nBLR             X8                                                     ; +0xac, 0x10002c1b0\nLDR             X8, [X19]                                              ; +0xb0, 0x10002c1b4\nLDR             X8, [X8,#0x520]                                        ; +0xb4, 0x10002c1b8\nMOV             X0, X19                                                ; +0xb8, 0x10002c1bc\nBLR             X8                                                     ; +0xbc, 0x10002c1c0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc0, 0x10002c1c4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xc4, 0x10002c1c8\nADD             SP, SP, #0x40 ; '@'                                    ; +0xc8, 0x10002c1cc\nRET                                                                    ; +0xcc, 0x10002c1d0", "xrefs": ["LevelInfoLayer::tryCloneLevel @ 0x10002c244", "LevelInfoLayer::numberInputClosed @ 0x10002e0e0", "LevelInfoLayer::init @ 0x100028c1c"], "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"}