{"type": "func", "start": 4300260576, "end": 4300260693, "name": "CreateGuidelinesLayer::doClearGuidelines", "pseudocode": "// \n// CreateGuidelinesLayer::doClearGuidelines from 0x10050c4e0 to 0x10050c555 (117 bytes)\n// \n// 0 xrefs:\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 __fastcall CreateGuidelinesLayer::doClearGuidelines(CreateGuidelinesLayer *a1)\n{\n  CustomSongDelegate *m_delegate; // rdi\n  __int64 v3; // rax\n  std::string __str; // [rsp+0h] [rbp-20h] BYREF\n\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_infoLabel->setString)(\n    a1->m_infoLabel,\n    \"Guidelines cleared\");\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n  {\n    v3 = ((__int64 (__fastcall *)(CustomSongDelegate *))m_delegate->getLevelSettings)(m_delegate);\n    *(_WORD *)&__str.__r_.__value_.__l.0 = 0;\n    std::string::operator=((std::string *)(v3 + 392), &__str);\n    if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(__str.__r_.__value_.__l.__data_);\n    *(_BYTE *)(((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_delegate->getLevelSettings)(a1->m_delegate) + 416) = 1;\n  }\n}", "assembly": "; \n; CreateGuidelinesLayer::doClearGuidelines from 0x10050c4e0 to 0x10050c555 (117 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x10050c4e0\nmov     rbp, rsp                                                       ; +0x1, 0x10050c4e1\npush    rbx                                                            ; +0x4, 0x10050c4e4\nsub     rsp, 18h                                                       ; +0x5, 0x10050c4e5\nmov     rbx, rdi                                                       ; +0x9, 0x10050c4e9\nmov     rdi, [rdi+2A0h]                                                ; +0xc, 0x10050c4ec\nmov     rax, [rdi]                                                     ; +0x13, 0x10050c4f3\nlea     rsi, aGuidelinesClea; \"Guidelines cleared\"                     ; +0x16, 0x10050c4f6\ncall    qword ptr [rax+390h]                                           ; +0x1d, 0x10050c4fd\nmov     rdi, [rbx+280h]                                                ; +0x23, 0x10050c503\ntest    rdi, rdi                                                       ; +0x2a, 0x10050c50a\njz      short loc_10050C54E                                            ; +0x2d, 0x10050c50d\nmov     rax, [rdi]                                                     ; +0x2f, 0x10050c50f\ncall    qword ptr [rax+18h]                                            ; +0x32, 0x10050c512\nmov     word ptr [rbp+__str.__r_.__value_], 0                          ; +0x35, 0x10050c515\nlea     rdi, [rax+188h]; this                                          ; +0x3b, 0x10050c51b\nlea     rsi, [rbp+__str]; __str                                        ; +0x42, 0x10050c522\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x46, 0x10050c526\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x4b, 0x10050c52b\njz      short loc_10050C53A                                            ; +0x4f, 0x10050c52f\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x51, 0x10050c531\ncall    __ZdlPv; operator delete(void *)                               ; +0x55, 0x10050c535\nmov     rdi, [rbx+280h]                                                ; +0x5a, 0x10050c53a\nmov     rax, [rdi]                                                     ; +0x61, 0x10050c541\ncall    qword ptr [rax+18h]                                            ; +0x64, 0x10050c544\nmov     byte ptr [rax+1A0h], 1                                         ; +0x67, 0x10050c547\nadd     rsp, 18h                                                       ; +0x6e, 0x10050c54e\npop     rbx                                                            ; +0x72, 0x10050c552\npop     rbp                                                            ; +0x73, 0x10050c553\nretn                                                                   ; +0x74, 0x10050c554", "xrefs": [], "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"}