//
// CreateGuidelinesLayer::FLAlert_Clicked from 0x140134b80 to 0x140134c5d (221 bytes)
//
// 3 xrefs:
// > ??> @ 0x140736128
// > ??> @ 0x140736138
// > ??> @ 0x14091706c
//
// 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 11:27:04 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall CreateGuidelinesLayer::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)
{
__int64 result; // rax
__int64 v6; // rcx
void **v7; // rcx
void **v8; // rdx
void *Src[2]; // [rsp+20h] [rbp-28h] BYREF
size_t Size; // [rsp+30h] [rbp-18h]
unsigned __int64 v11; // [rsp+38h] [rbp-10h]
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
if ( (_DWORD)result == 1 )
{
if ( a3 )
{
result = (**(__int64 (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 40) + 360LL))(
*(_QWORD *)(a1 + 40) + 360LL,
"Guidelines cleared");
v6 = *(_QWORD *)(a1 + 8);
if ( v6 )
{
*(_OWORD *)Src = 0;
Size = 0;
v11 = 15;
LOBYTE(Src[0]) = 0;
v7 = (void **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 24LL))(v6) + 392);
if ( v7 != Src )
{
v8 = Src;
if ( v11 > 0xF )
v8 = (void **)Src[0];
sub_1400405A0(v7, v8, Size);
}
sub_14003D310((__int64)Src);
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 8) + 24LL))(*(_QWORD *)(a1 + 8));
*(_BYTE *)(result + 424) = 1;
}
}
}
return result;
}