{"type": "func", "start": 4300263616, "end": 4300263764, "name": "CreateGuidelinesLayer::FLAlert_Clicked", "pseudocode": "// \n// CreateGuidelinesLayer::FLAlert_Clicked from 0x10050d0c0 to 0x10050d154 (148 bytes)\n// \n// 3 xrefs:\n// > sub_10050D170 @ 0x10050d17c\n// > <???> @ 0x10095c140\n// > <???> @ 0x10095c880\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::FLAlert_Clicked(CreateGuidelinesLayer *a1, FLAlertLayer *a2, bool a3)\n{\n  CustomSongDelegate *m_delegate; // rdi\n  __int64 v5; // rax\n  std::string __str; // [rsp+8h] [rbp-28h] BYREF\n\n  if ( !(!a3 | (((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 1)) )\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      v5 = ((__int64 (__fastcall *)(CustomSongDelegate *))m_delegate->getLevelSettings)(m_delegate);\n      *(_WORD *)&__str.__r_.__value_.__l.0 = 0;\n      std::string::operator=((std::string *)(v5 + 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  }\n}", "assembly": "; \n; CreateGuidelinesLayer::FLAlert_Clicked from 0x10050d0c0 to 0x10050d154 (148 bytes)\n; \n; 3 xrefs:\n; > sub_10050D170 @ 0x10050d17c\n; > <???> @ 0x10095c140\n; > <???> @ 0x10095c880\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, 0x10050d0c0\nmov     rbp, rsp                                                       ; +0x1, 0x10050d0c1\npush    r14                                                            ; +0x4, 0x10050d0c4\npush    rbx                                                            ; +0x6, 0x10050d0c6\nsub     rsp, 20h                                                       ; +0x7, 0x10050d0c7\nmov     r14d, edx                                                      ; +0xb, 0x10050d0cb\nmov     rbx, rdi                                                       ; +0xe, 0x10050d0ce\nxor     r14b, 1                                                        ; +0x11, 0x10050d0d1\nmov     rax, [rsi]                                                     ; +0x15, 0x10050d0d5\nmov     rdi, rsi                                                       ; +0x18, 0x10050d0d8\ncall    qword ptr [rax+40h]                                            ; +0x1b, 0x10050d0db\ncmp     eax, 1                                                         ; +0x1e, 0x10050d0de\nsetnz   al                                                             ; +0x21, 0x10050d0e1\nor      al, r14b                                                       ; +0x24, 0x10050d0e4\njnz     short loc_10050D14B                                            ; +0x27, 0x10050d0e7\nmov     rdi, [rbx+2A0h]                                                ; +0x29, 0x10050d0e9\nmov     rax, [rdi]                                                     ; +0x30, 0x10050d0f0\nlea     rsi, aGuidelinesClea; \"Guidelines cleared\"                     ; +0x33, 0x10050d0f3\ncall    qword ptr [rax+390h]                                           ; +0x3a, 0x10050d0fa\nmov     rdi, [rbx+280h]                                                ; +0x40, 0x10050d100\ntest    rdi, rdi                                                       ; +0x47, 0x10050d107\njz      short loc_10050D14B                                            ; +0x4a, 0x10050d10a\nmov     rax, [rdi]                                                     ; +0x4c, 0x10050d10c\ncall    qword ptr [rax+18h]                                            ; +0x4f, 0x10050d10f\nmov     word ptr [rbp+__str.__r_.__value_], 0                          ; +0x52, 0x10050d112\nlea     rdi, [rax+188h]; this                                          ; +0x58, 0x10050d118\nlea     rsi, [rbp+__str]; __str                                        ; +0x5f, 0x10050d11f\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x63, 0x10050d123\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x68, 0x10050d128\njz      short loc_10050D137                                            ; +0x6c, 0x10050d12c\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x6e, 0x10050d12e\ncall    __ZdlPv; operator delete(void *)                               ; +0x72, 0x10050d132\nmov     rdi, [rbx+280h]                                                ; +0x77, 0x10050d137\nmov     rax, [rdi]                                                     ; +0x7e, 0x10050d13e\ncall    qword ptr [rax+18h]                                            ; +0x81, 0x10050d141\nmov     byte ptr [rax+1A0h], 1                                         ; +0x84, 0x10050d144\nadd     rsp, 20h                                                       ; +0x8b, 0x10050d14b\npop     rbx                                                            ; +0x8f, 0x10050d14f\npop     r14                                                            ; +0x90, 0x10050d150\npop     rbp                                                            ; +0x92, 0x10050d152\nretn                                                                   ; +0x93, 0x10050d153", "xrefs": ["sub_10050D170 @ 0x10050d17c", "<???> @ 0x10095c140", "<???> @ 0x10095c880"], "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"}