{"type": "func", "start": 7248560, "end": 7248848, "name": "CreateGuidelinesLayer::doClearGuidelines", "pseudocode": "// \n// CreateGuidelinesLayer::doClearGuidelines from 0x6e9ab0 to 0x6e9bd0 (288 bytes)\n// \n// 2 xrefs:\n// > CreateGuidelinesLayer::FLAlert_Clicked @ 0x6e9c18\n// > <???> @ 0x931d8\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:45 +0000\n// \n\n__int64 __fastcall CreateGuidelinesLayer::doClearGuidelines(CreateGuidelinesLayer *this)\n{\n  __int64 v2; // x0\n  __int64 v3; // x20\n  __int64 *v4; // x0\n  __int64 v6; // [xsp+30h] [xbp+30h] BYREF\n  size_t v7; // [xsp+38h] [xbp+38h]\n  void *v8; // [xsp+40h] [xbp+40h]\n\n  (*(void (__fastcall **)(_QWORD, const char *))(**((_QWORD **)this + 88) + 928LL))(\n    *((_QWORD *)this + 88),\n    \"Guidelines cleared\");\n  v2 = *((_QWORD *)this + 84);\n  if ( v2 )\n  {\n    v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 24LL))(v2);\n    v6 = 0;\n    v7 = 0;\n    v8 = nullptr;\n    std::string::__init(&v6, &byte_11B8890, 0);\n    v4 = (__int64 *)(v3 + 392);\n    if ( (__int64 *)(v3 + 392) != &v6 )\n    {\n      if ( (v6 & 1) != 0 )\n        std::string::assign(v4, v8, v7);\n      else\n        std::string::assign(v4, (char *)&v6 + 1, (unsigned __int8)v6 >> 1);\n    }\n    if ( (v6 & 1) != 0 )\n      operator delete(v8);\n    *(_BYTE *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 84) + 24LL))(*((_QWORD *)this + 84)) + 416) = 1;\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CreateGuidelinesLayer::doClearGuidelines from 0x6e9ab0 to 0x6e9bd0 (288 bytes)\n; \n; 2 xrefs:\n; > CreateGuidelinesLayer::FLAlert_Clicked @ 0x6e9c18\n; > <???> @ 0x931d8\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:45 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x6e9ab0\nADRP            X1, #aGuidelinesClea@PAGE; \"Guidelines cleared\"        ; +0x4, 0x6e9ab4\nMOV             X29, SP                                                ; +0x8, 0x6e9ab8\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x6e9abc\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x10, 0x6e9ac0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0x6e9ac4\nMOV             X21, X0                                                ; +0x18, 0x6e9ac8\nLDR             X2, [X0,#0x2C0]                                        ; +0x1c, 0x6e9acc\nADD             X1, X1, #aGuidelinesClea@PAGEOFF; \"Guidelines cleared\" ; +0x20, 0x6e9ad0\nMOV             X0, X2                                                 ; +0x24, 0x6e9ad4\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x6e9ad8\nLDR             X2, [X2]                                               ; +0x2c, 0x6e9adc\nLDR             X3, [X3]                                               ; +0x30, 0x6e9ae0\nLDR             X2, [X2,#0x3A0]                                        ; +0x34, 0x6e9ae4\nSTR             X3, [X29,#0x50+var_8]                                  ; +0x38, 0x6e9ae8\nBLR             X2                                                     ; +0x3c, 0x6e9aec\nLDR             X0, [X21,#0x2A0]                                       ; +0x40, 0x6e9af0\nCBZ             X0, loc_6E9B70                                         ; +0x44, 0x6e9af4\nLDR             X1, [X0]                                               ; +0x48, 0x6e9af8\nADD             X22, X29, #0x50+var_20                                 ; +0x4c, 0x6e9afc\nLDR             X1, [X1,#0x18]                                         ; +0x50, 0x6e9b00\nBLR             X1                                                     ; +0x54, 0x6e9b04\nMOV             X20, X0                                                ; +0x58, 0x6e9b08\nADRP            X1, #byte_11B8890@PAGE                                 ; +0x5c, 0x6e9b0c\nMOV             X0, X22                                                ; +0x60, 0x6e9b10\nADD             X1, X1, #byte_11B8890@PAGEOFF                          ; +0x64, 0x6e9b14\nMOV             X2, #0                                                 ; +0x68, 0x6e9b18\nSTR             XZR, [X29,#0x50+var_20]                                ; +0x6c, 0x6e9b1c\nSTR             XZR, [X29,#0x50+var_18]                                ; +0x70, 0x6e9b20\nSTR             XZR, [X29,#0x50+var_10]                                ; +0x74, 0x6e9b24\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x78, 0x6e9b28\nADD             X0, X20, #0x188; int                                   ; +0x7c, 0x6e9b2c\nCMP             X0, X22                                                ; +0x80, 0x6e9b30\nB.EQ            loc_6E9B4C                                             ; +0x84, 0x6e9b34\nLDRB            W2, [X29,#0x50+var_20]                                 ; +0x88, 0x6e9b38\nTBZ             W2, #0, loc_6E9B94                                     ; +0x8c, 0x6e9b3c\nLDR             X1, [X22,#0x10]; int                                   ; +0x90, 0x6e9b40\nLDR             X2, [X22,#8]; size_t                                   ; +0x94, 0x6e9b44\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKcm; std::string::assign(char const*,ulong) ; +0x98, 0x6e9b48\nLDRB            W0, [X29,#0x50+var_20]                                 ; +0x9c, 0x6e9b4c\nTBNZ            W0, #0, loc_6E9BA4                                     ; +0xa0, 0x6e9b50\nLDR             X1, [X21,#0x2A0]                                       ; +0xa4, 0x6e9b54\nMOV             X0, X1                                                 ; +0xa8, 0x6e9b58\nLDR             X1, [X1]                                               ; +0xac, 0x6e9b5c\nLDR             X1, [X1,#0x18]                                         ; +0xb0, 0x6e9b60\nBLR             X1                                                     ; +0xb4, 0x6e9b64\nMOV             W1, #1                                                 ; +0xb8, 0x6e9b68\nSTRB            W1, [X0,#0x1A0]                                        ; +0xbc, 0x6e9b6c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xc0, 0x6e9b70\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xc4, 0x6e9b74\nLDR             X0, [X19]                                              ; +0xc8, 0x6e9b78\nCMP             X1, X0                                                 ; +0xcc, 0x6e9b7c\nB.NE            loc_6E9BB0                                             ; +0xd0, 0x6e9b80\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xd4, 0x6e9b84\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xd8, 0x6e9b88\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xdc, 0x6e9b8c\nRET                                                                    ; +0xe0, 0x6e9b90\nUBFX            X2, X2, #1, #7; size_t                                 ; +0xe4, 0x6e9b94\nADD             X1, X22, #1; int                                       ; +0xe8, 0x6e9b98\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKcm; std::string::assign(char const*,ulong) ; +0xec, 0x6e9b9c\nB               loc_6E9B4C                                             ; +0xf0, 0x6e9ba0\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0xf4, 0x6e9ba4\nBL              _ZdlPv; operator delete(void *)                        ; +0xf8, 0x6e9ba8\nB               loc_6E9B54                                             ; +0xfc, 0x6e9bac\nBL              .__stack_chk_fail                                      ; +0x100, 0x6e9bb0\nLDRB            W1, [X29,#0x50+var_20]                                 ; +0x104, 0x6e9bb4\nMOV             X19, X0                                                ; +0x108, 0x6e9bb8\nTBZ             W1, #0, loc_6E9BC8                                     ; +0x10c, 0x6e9bbc\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0x110, 0x6e9bc0\nBL              _ZdlPv; operator delete(void *)                        ; +0x114, 0x6e9bc4\nMOV             X0, X19                                                ; +0x118, 0x6e9bc8\nBL              _Unwind_Resume                                         ; +0x11c, 0x6e9bcc", "xrefs": ["CreateGuidelinesLayer::FLAlert_Clicked @ 0x6e9c18", "<???> @ 0x931d8"], "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"}