// // CreateGuidelinesLayer::recordingDidStop from 0x10050c710 to 0x10050c9d6 (710 bytes) // // 1 xrefs: // > @ 0x10095c178 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall CreateGuidelinesLayer::recordingDidStop(CreateGuidelinesLayer *a1) { __int128 v1; // xmm0 unsigned int sizex2; // eax std::size_t size; // rax cocos2d::CCLabelBMFont *m_infoLabel; // rdi void (__cdecl *setString)(cocos2d::CCLabelBMFont *__hidden, const char *); // rcx __int64 v7; // rax __int64 v8; // rax std::string *p_m_guidelineString; // r15 char v10; // al __int64 v11; // r14 __int64 v12; // r14 std::string v13; // [rsp+0h] [rbp-C0h] BYREF __int128 v14; // [rsp+20h] [rbp-A0h] BYREF void *v15; // [rsp+30h] [rbp-90h] __int128 v16; // [rsp+40h] [rbp-80h] BYREF void *__p; // [rsp+50h] [rbp-70h] std::string __str; // [rsp+60h] [rbp-60h] BYREF __int128 v19; // [rsp+78h] [rbp-48h] BYREF void *v20; // [rsp+88h] [rbp-38h] __int128 v21; // [rsp+90h] [rbp-30h] BYREF void *v22; // [rsp+A0h] [rbp-20h] sizex2 = a1->m_guidelineString.m_data.m_short.sizex2; if ( (sizex2 & 1) != 0 ) size = a1->m_guidelineString.m_data.m_long.size; else size = sizex2 >> 1; m_infoLabel = a1->m_infoLabel; setString = m_infoLabel->setString; if ( !size ) { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))setString)(m_infoLabel, ""); goto LABEL_30; } ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))setString)(m_infoLabel, "Guidelines saved"); v7 = ((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_delegate->getLevelSettings)(a1->m_delegate); if ( (*(_BYTE *)(v7 + 392) & 1) == 0 ) { v8 = v7 + 392; v22 = *(void **)(v8 + 16); v1 = *(_OWORD *)v8; v21 = *(_OWORD *)v8; p_m_guidelineString = (std::string *)&a1->m_guidelineString; v10 = v21; if ( (v21 & 1) != 0 ) goto LABEL_7; LABEL_12: if ( v10 ) { *(_QWORD *)&v1 = v21; v14 = v21; v15 = v22; if ( (*(_BYTE *)&p_m_guidelineString->__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_9; goto LABEL_14; } LABEL_21: v12 = ((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_delegate->getLevelSettings)(a1->m_delegate); if ( (*(_BYTE *)&p_m_guidelineString->__r_.__value_.__s.0 & 1) != 0 ) sub_100006B70( &v13, a1->m_guidelineString.m_data.m_long.longStorage, a1->m_guidelineString.m_data.m_long.size, *(double *)&v1); else v13 = *p_m_guidelineString; std::string::operator=((std::string *)(v12 + 392), &v13); if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v13.__r_.__value_.__l.__data_); *(_BYTE *)(((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_delegate->getLevelSettings)(a1->m_delegate) + 416) = 1; if ( (v21 & 1) != 0 ) goto LABEL_29; goto LABEL_30; } sub_100006B70(&v21, *(const void **)(v7 + 408), *(_QWORD *)(v7 + 400), *(double *)&v1); p_m_guidelineString = (std::string *)&a1->m_guidelineString; v10 = v21; if ( (v21 & 1) == 0 ) goto LABEL_12; LABEL_7: if ( !*((_QWORD *)&v21 + 1) ) goto LABEL_21; sub_100006B70(&v14, v22, *((unsigned __int64 *)&v21 + 1), *(double *)&v1); if ( (*(_BYTE *)&p_m_guidelineString->__r_.__value_.__s.0 & 1) == 0 ) { LABEL_9: __p = p_m_guidelineString->__r_.__value_.__l.__data_; v1 = *(_OWORD *)&p_m_guidelineString->__r_.__value_.__l.0; v16 = *(_OWORD *)&p_m_guidelineString->__r_.__value_.__l.0; goto LABEL_15; } LABEL_14: sub_100006B70( &v16, a1->m_guidelineString.m_data.m_long.longStorage, a1->m_guidelineString.m_data.m_long.size, *(double *)&v1); LABEL_15: CreateGuidelinesLayer::getMergedRecordString(&v19, a1, &v14, &v16); if ( (v16 & 1) != 0 ) operator delete(__p); if ( (v14 & 1) != 0 ) operator delete(v15); v11 = ((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_delegate->getLevelSettings)(a1->m_delegate); if ( (v19 & 1) != 0 ) { sub_100006B70(&__str, v20, *((unsigned __int64 *)&v19 + 1), *(double *)&v1); } else { __str.__r_.__value_.__r.__words[2] = (std::string::size_type)v20; *(_OWORD *)&__str.__r_.__value_.__l.0 = v19; } std::string::operator=((std::string *)(v11 + 392), &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); *(_BYTE *)(((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_delegate->getLevelSettings)(a1->m_delegate) + 416) = 1; if ( (v19 & 1) != 0 ) operator delete(v20); if ( (v21 & 1) != 0 ) LABEL_29: operator delete(v22); LABEL_30: if ( a1->m_guidelines >= 1001 ) ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_infoLabel->setString)( a1->m_infoLabel, "Maximum limit exceeded"); a1->m_guidelines = 0; }