//
// CreateGuidelinesLayer::onClearGuidelines from 0x10050d920 to 0x10050d9c9 (169 bytes)
//
// 1 xrefs:
// > CreateGuidelinesLayer::init @ 0x10050cff3
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:31:35 +0000
//
__int64 __fastcall CreateGuidelinesLayer::onClearGuidelines(__int64 a1)
{
__int64 v1; // rbx
__int128 v3; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
__p = operator new(0x30u);
*(_QWORD *)&v3 = 49;
*((_QWORD *)&v3 + 1) = 46;
strcpy((char *)__p, "Delete the current guidelines?");
v1 = sub_100493AB0(a1 + 664, (__int64)"Clear Guidelines", &v3, (__int64)"No", (__int64)"Yes");
if ( (v3 & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 72LL))(v1, 1);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 1312LL))(v1);
}