{"type": "func", "start": 7241540, "end": 7241824, "name": "CreateGuidelinesLayer::onClearGuidelines", "pseudocode": "// \n// CreateGuidelinesLayer::onClearGuidelines from 0x6e7f44 to 0x6e8060 (284 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x8a340\n// > CreateGuidelinesLayer::init @ 0x6e8bb0\n// > <???> @ 0x1543a20\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 12:51:44 +0000\n// \n\n__int64 __fastcall CreateGuidelinesLayer::onClearGuidelines(CreateGuidelinesLayer *this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x20\n  _QWORD v5[2]; // [xsp+20h] [xbp+20h] BYREF\n  void *v6; // [xsp+30h] [xbp+30h]\n\n  v6 = (void *)operator new(0x30u);\n  v5[1] = 46;\n  v5[0] = 49;\n  strcpy((char *)v6, \"<cr>Delete</c> the current <cl>guidelines</c>?\");\n  v3 = FLAlertLayer::create(\n         (__int64)this + 664,\n         (cocos2d::CCLabelBMFont *)\"Clear Guidelines\",\n         (char *)v5,\n         (ButtonSprite *)\"No\",\n         (ButtonSprite *)\"Yes\");\n  if ( (v5[0] & 1) != 0 )\n    operator delete(v6);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 1);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);\n  return _stack_chk_guard;\n}", "assembly": "; \n; CreateGuidelinesLayer::onClearGuidelines from 0x6e7f44 to 0x6e8060 (284 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x8a340\n; > CreateGuidelinesLayer::init @ 0x6e8bb0\n; > <???> @ 0x1543a20\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 12:51:44 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x6e7f44\nMOV             X29, SP                                                ; +0x4, 0x6e7f48\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x6e7f4c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6e7f50\nMOV             X20, X0                                                ; +0x10, 0x6e7f54\nMOV             X0, #0x30 ; '0'; unsigned __int64                      ; +0x14, 0x6e7f58\nSTR             XZR, [X29,#0x40+var_20]                                ; +0x18, 0x6e7f5c\nSTR             XZR, [X29,#0x40+var_18]                                ; +0x1c, 0x6e7f60\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x6e7f64\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x24, 0x6e7f68\nLDR             X1, [X1]                                               ; +0x28, 0x6e7f6c\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x2c, 0x6e7f70\nBL              _Znwm; operator new(ulong)                             ; +0x30, 0x6e7f74\nMOV             X5, X0                                                 ; +0x34, 0x6e7f78\nADRP            X1, #aCrDeleteCTheCu@PAGE; \"<cr>Delete</c> the current <cl>guidelin\"... ; +0x38, 0x6e7f7c\nMOV             X3, #0x2E ; '.'                                        ; +0x3c, 0x6e7f80\nADD             X1, X1, #aCrDeleteCTheCu@PAGEOFF; \"<cr>Delete</c> the current <cl>guidelin\"... ; +0x40, 0x6e7f84\nSTR             X5, [X29,#0x40+var_10]                                 ; +0x44, 0x6e7f88\nMOV             X2, #0x31 ; '1'                                        ; +0x48, 0x6e7f8c\nSTR             X3, [X29,#0x40+var_18]                                 ; +0x4c, 0x6e7f90\nSTR             X2, [X29,#0x40+var_20]                                 ; +0x50, 0x6e7f94\nADRP            X3, #aNo@PAGE; \"No\"                                    ; +0x54, 0x6e7f98\nLDR             X4, [X1,#(aCrDeleteCTheCu+0x20 - 0x111F3E8)]; \"uidelines</c>?\" ; +0x58, 0x6e7f9c\nADD             X0, X20, #0x298                                        ; +0x5c, 0x6e7fa0\nLDP             X8, X9, [X1]; \"<cr>Delete</c> the current <cl>guidelin\"... ; +0x60, 0x6e7fa4\nLDP             X6, X7, [X1,#(aCrDeleteCTheCu+0x10 - 0x111F3E8)]; \"he current <cl>guidelines</c>?\" ; +0x64, 0x6e7fa8\nLDR             W11, [X1,#(aCrDeleteCTheCu+0x28 - 0x111F3E8)]; \"s</c>?\" ; +0x68, 0x6e7fac\nADD             X2, X29, #0x40+var_20                                  ; +0x6c, 0x6e7fb0\nLDRH            W10, [X1,#(aCrDeleteCTheCu+0x2C - 0x111F3E8)]; \">?\"    ; +0x70, 0x6e7fb4\nADRP            X1, #aClearGuideline@PAGE; \"Clear Guidelines\"          ; +0x74, 0x6e7fb8\nSTR             X4, [X5,#0x20]                                         ; +0x78, 0x6e7fbc\nADRP            X4, #aYes@PAGE; \"Yes\"                                  ; +0x7c, 0x6e7fc0\nADD             X1, X1, #aClearGuideline@PAGEOFF; \"Clear Guidelines\"   ; +0x80, 0x6e7fc4\nADD             X3, X3, #aNo@PAGEOFF; \"No\"                             ; +0x84, 0x6e7fc8\nADD             X4, X4, #aYes@PAGEOFF; \"Yes\"                           ; +0x88, 0x6e7fcc\nSTR             W11, [X5,#0x28]                                        ; +0x8c, 0x6e7fd0\nSTRH            W10, [X5,#0x2C]                                        ; +0x90, 0x6e7fd4\nSTRB            WZR, [X5,#0x2E]                                        ; +0x94, 0x6e7fd8\nSTP             X8, X9, [X5]                                           ; +0x98, 0x6e7fdc\nSTP             X6, X7, [X5,#0x10]                                     ; +0x9c, 0x6e7fe0\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*) ; +0xa0, 0x6e7fe4\nMOV             X20, X0                                                ; +0xa4, 0x6e7fe8\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0xa8, 0x6e7fec\nTBZ             W0, #0, loc_6E7FFC                                     ; +0xac, 0x6e7ff0\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0xb0, 0x6e7ff4\nBL              _ZdlPv; operator delete(void *)                        ; +0xb4, 0x6e7ff8\nLDR             X2, [X20]                                              ; +0xb8, 0x6e7ffc\nMOV             X0, X20                                                ; +0xbc, 0x6e8000\nMOV             W1, #1                                                 ; +0xc0, 0x6e8004\nLDR             X2, [X2,#0x48]                                         ; +0xc4, 0x6e8008\nBLR             X2                                                     ; +0xc8, 0x6e800c\nLDR             X1, [X20]                                              ; +0xcc, 0x6e8010\nMOV             X0, X20                                                ; +0xd0, 0x6e8014\nLDR             X1, [X1,#0x520]                                        ; +0xd4, 0x6e8018\nBLR             X1                                                     ; +0xd8, 0x6e801c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xdc, 0x6e8020\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xe0, 0x6e8024\nLDR             X0, [X19]                                              ; +0xe4, 0x6e8028\nCMP             X1, X0                                                 ; +0xe8, 0x6e802c\nB.NE            loc_6E8040                                             ; +0xec, 0x6e8030\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xf0, 0x6e8034\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xf4, 0x6e8038\nRET                                                                    ; +0xf8, 0x6e803c\nBL              .__stack_chk_fail                                      ; +0xfc, 0x6e8040\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0x100, 0x6e8044\nMOV             X19, X0                                                ; +0x104, 0x6e8048\nTBZ             W1, #0, loc_6E8058                                     ; +0x108, 0x6e804c\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x10c, 0x6e8050\nBL              _ZdlPv; operator delete(void *)                        ; +0x110, 0x6e8054\nMOV             X0, X19                                                ; +0x114, 0x6e8058\nBL              _Unwind_Resume                                         ; +0x118, 0x6e805c", "xrefs": ["<???> @ 0x8a340", "CreateGuidelinesLayer::init @ 0x6e8bb0", "<???> @ 0x1543a20"], "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"}