{"type": "func", "start": 5373262896, "end": 5373263005, "name": "SetupSmartBlockLayer::onDontDelete", "pseudocode": "// \n// SetupSmartBlockLayer::onDontDelete from 0x140457c30 to 0x140457c9d (109 bytes)\n// \n// 2 xrefs:\n// > SetupSmartBlockLayer::init @ 0x14045798c\n// > <???> @ 0x1406daa00\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\nvoid SetupSmartBlockLayer::onDontDelete(SetupSmartBlockLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rcx\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  a1->m_dontDelete = !a1->m_dontDelete;\n  v3 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v4 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = (GameManager *)qword_1406C2ED8;\n  }\n  GameManager::setGameVariable(v3, \"0132\", a1->m_dontDelete);\n}", "assembly": "; \n; SetupSmartBlockLayer::onDontDelete from 0x140457c30 to 0x140457c9d (109 bytes)\n; \n; 2 xrefs:\n; > SetupSmartBlockLayer::init @ 0x14045798c\n; > <???> @ 0x1406daa00\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\npush    rbx                                                            ; +0x0, 0x140457c30\nsub     rsp, 20h                                                       ; +0x2, 0x140457c32\nmov     rbx, rcx                                                       ; +0x6, 0x140457c36\ncmp     byte ptr [rcx+28Dh], 0                                         ; +0x9, 0x140457c39\nsetz    al                                                             ; +0x10, 0x140457c40\nmov     [rcx+28Dh], al                                                 ; +0x13, 0x140457c43\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x19, 0x140457c49\ntest    rcx, rcx                                                       ; +0x20, 0x140457c50\njnz     short loc_140457C84                                            ; +0x23, 0x140457c53\nmov     ecx, 668h; Size                                                ; +0x25, 0x140457c55\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x140457c5a\nmov     [rsp+28h+arg_0], rax                                           ; +0x2f, 0x140457c5f\nmov     rcx, rax                                                       ; +0x34, 0x140457c64\ncall    sub_14017AB00                                                  ; +0x37, 0x140457c67\nnop                                                                    ; +0x3c, 0x140457c6c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3d, 0x140457c6d\nmov     rdx, [rax]                                                     ; +0x44, 0x140457c74\nmov     rcx, rax                                                       ; +0x47, 0x140457c77\ncall    qword ptr [rdx+48h]                                            ; +0x4a, 0x140457c7a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x4d, 0x140457c7d\nmovzx   r8d, byte ptr [rbx+28Dh]                                       ; +0x54, 0x140457c84\nlea     rdx, a0132; \"0132\"                                             ; +0x5c, 0x140457c8c\nadd     rsp, 20h                                                       ; +0x63, 0x140457c93\npop     rbx                                                            ; +0x67, 0x140457c97\njmp     GameManager__setGameVariable                                   ; +0x68, 0x140457c98", "xrefs": ["SetupSmartBlockLayer::init @ 0x14045798c", "<???> @ 0x1406daa00"], "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"}