{"type": "func", "start": 4165468, "end": 4165594, "name": "CreateGuidelinesLayer::doClearGuidelines", "pseudocode": "// \n// CreateGuidelinesLayer::doClearGuidelines from 0x3f8f5c to 0x3f8fda (126 bytes)\n// \n// 1 xrefs:\n// > CreateGuidelinesLayer::FLAlert_Clicked @ 0x3f9002\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:47:19 +0000\n// \n\n_BYTE *__fastcall CreateGuidelinesLayer::doClearGuidelines(CreateGuidelinesLayer *this)\n{\n  _BYTE *result; // r0\n  int v3; // r0\n  int v4; // r7\n  int v5[3]; // [sp+0h] [bp-14h] BYREF\n\n  (*(void (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 135) + 464))(\n    *((_DWORD *)this + 135),\n    \"Guidelines cleared\");\n  result = *((_BYTE **)this + 131);\n  if ( result )\n  {\n    v3 = (*(int (__fastcall **)(_BYTE *))(*(_DWORD *)result + 12))(result);\n    memset(v5, 0, sizeof(v5));\n    v4 = v3;\n    std::string::__init(v5, &unk_B6B226, 0);\n    std::string::operator=((unsigned __int8 *)(v4 + 324), (unsigned __int8 *)v5);\n    std::string::~string((int)v5);\n    result = (_BYTE *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 131) + 12))(*((_DWORD *)this + 131));\n    result[336] = 1;\n  }\n  return result;\n}", "assembly": "; \n; CreateGuidelinesLayer::doClearGuidelines from 0x3f8f5c to 0x3f8fda (126 bytes)\n; \n; 1 xrefs:\n; > CreateGuidelinesLayer::FLAlert_Clicked @ 0x3f9002\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:47:19 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x3f8f5c\nMOV             R6, R0                                                 ; +0x2, 0x3f8f5e\nLDR             R5, =(__stack_chk_guard_ptr - 0x3F8F6C)                ; +0x4, 0x3f8f60\nSUB             SP, SP, #0x14                                          ; +0x6, 0x3f8f62\nLDR.W           R0, [R0,#0x21C]                                        ; +0x8, 0x3f8f64\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3f8f68\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x3f8f6a\nLDR             R1, =(aGuidelinesClea - 0x3F8F74); \"Guidelines cleared\" ; +0x10, 0x3f8f6c\nLDR             R3, [R5]                                               ; +0x12, 0x3f8f6e\nADD             R1, PC; \"Guidelines cleared\"                           ; +0x14, 0x3f8f70\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x16, 0x3f8f72\nLDR             R3, [R0]                                               ; +0x18, 0x3f8f74\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x1a, 0x3f8f76\nBLX             R3                                                     ; +0x1e, 0x3f8f7a\nLDR.W           R0, [R6,#0x20C]                                        ; +0x20, 0x3f8f7c\nCBZ             R0, loc_3F8FCA                                         ; +0x24, 0x3f8f80\nLDR             R3, [R0]                                               ; +0x26, 0x3f8f82\nMOV             R4, SP                                                 ; +0x28, 0x3f8f84\nLDR             R3, [R3,#0xC]                                          ; +0x2a, 0x3f8f86\nBLX             R3                                                     ; +0x2c, 0x3f8f88\nLDR             R1, =(unk_B6B226 - 0x3F8F94)                           ; +0x2e, 0x3f8f8a\nMOVS            R2, #0                                                 ; +0x30, 0x3f8f8c\nSTR             R2, [SP,#0x14+var_14]                                  ; +0x32, 0x3f8f8e\nADD             R1, PC; unk_B6B226                                     ; +0x34, 0x3f8f90\nSTR             R2, [SP,#0x14+var_10]                                  ; +0x36, 0x3f8f92\nSTR             R2, [SP,#0x14+var_C]                                   ; +0x38, 0x3f8f94\nMOV             R7, R0                                                 ; +0x3a, 0x3f8f96\nMOV             R0, SP                                                 ; +0x3c, 0x3f8f98\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x3e, 0x3f8f9a\nADD.W           R0, R7, #0x144                                         ; +0x42, 0x3f8f9e\nMOV             R1, SP                                                 ; +0x46, 0x3f8fa2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x48, 0x3f8fa4\nMOV             R0, SP                                                 ; +0x4c, 0x3f8fa8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4e, 0x3f8faa\nLDR.W           R0, [R6,#0x20C]                                        ; +0x52, 0x3f8fae\nLDR             R3, [R0]                                               ; +0x56, 0x3f8fb2\nLDR             R3, [R3,#0xC]                                          ; +0x58, 0x3f8fb4\nBLX             R3                                                     ; +0x5a, 0x3f8fb6\nMOVS            R3, #1                                                 ; +0x5c, 0x3f8fb8\nSTRB.W          R3, [R0,#0x150]                                        ; +0x5e, 0x3f8fba\nB               loc_3F8FCA                                             ; +0x62, 0x3f8fbe\nMOV             R0, R4                                                 ; +0x64, 0x3f8fc0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x66, 0x3f8fc2\nBL              __cxa_end_cleanup                                      ; +0x6a, 0x3f8fc6\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x6e, 0x3f8fca\nLDR             R3, [R5]                                               ; +0x70, 0x3f8fcc\nCMP             R2, R3                                                 ; +0x72, 0x3f8fce\nBEQ             loc_3F8FD6                                             ; +0x74, 0x3f8fd0\nBLX             __stack_chk_fail                                       ; +0x76, 0x3f8fd2\nADD             SP, SP, #0x14                                          ; +0x7a, 0x3f8fd6\nPOP             {R4-R7,PC}                                             ; +0x7c, 0x3f8fd8", "xrefs": ["CreateGuidelinesLayer::FLAlert_Clicked @ 0x3f9002"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}