//
// sub_100914A10 from 0x100914a10 to 0x100914b5c (332 bytes)
//
// 8 xrefs:
// > SetItemIDLayer::valueDidChange @ 0x100063d5b
// > SetupAdvFollowEditPhysicsPopup::valueDidChange @ 0x1002f600b
// > SetupAdvFollowRetargetPopup::valueDidChange @ 0x1002f694d
// > SetupPulsePopup::onSelectTargetMode @ 0x100397095
// > SetupItemEditTriggerPopup::onCustomToggleTriggerValue @ 0x1005ad20f
// > SetupItemCompareTriggerPopup::onCustomToggleTriggerValue @ 0x1005af430
// > SetupPersistentItemTriggerPopup::valueDidChange @ 0x1005b000f
// > SetupStopTriggerPopup::valueDidChange @ 0x1005b28dd
//
// 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:38:11 +0000
//
void __fastcall sub_100914A10(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)
{
__int64 v6; // rax
int v7; // r14d
__int64 v9; // rdi
__int64 v10; // r15
const void *v11; // rax
void (__fastcall ***v12)(void *, char *, _QWORD); // rax
__int64 v13; // r15
const void *v14; // rax
void (__fastcall ***v15)(void *, _QWORD *); // rax
int v16; // r14d
_QWORD v17[5]; // [rsp-28h] [rbp-28h] BYREF
if ( *(_DWORD *)(a1 + 376) != (_DWORD)a2 )
{
v17[0] = v6;
v7 = a2;
*(_DWORD *)(a1 + 376) = a2;
v9 = *(_QWORD *)(a1 + 440);
if ( v9 )
{
*(_QWORD *)(a1 + 440) = 0;
(*(void (__fastcall **)(__int64, __int64, __int64, __int64, __int64, __int64, _QWORD, _QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)v9 + 1112LL))(
v9,
a2,
a3,
a4,
a5,
a6,
v17[0],
v17[1],
v17[2],
v17[3],
v17[4]);
v7 = *(_DWORD *)(a1 + 376);
}
v10 = *(_QWORD *)(a1 + 408);
if ( v10 )
{
(*(void (__fastcall **)(_QWORD, bool))(*(_QWORD *)v10 + 1056LL))(*(_QWORD *)(a1 + 408), v7 != 0);
v11 = (const void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 1072LL))(v10);
if ( v11 )
{
v12 = (void (__fastcall ***)(void *, char *, _QWORD))__dynamic_cast(
v11,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v12 )
{
WORD2(v17[0]) = v7 != 0 ? -1 : 0xA5A5;
BYTE6(v17[0]) = (unsigned int)(v7 != 0 ? -1 : 0xA5A5A5) >> 16;
(**v12)(v12, (char *)v17 + 4, (unsigned int)-v7);
}
}
}
v13 = *(_QWORD *)(a1 + 416);
if ( v13 )
{
(*(void (__fastcall **)(_QWORD, bool))(*(_QWORD *)v13 + 1056LL))(*(_QWORD *)(a1 + 416), v7 != 0);
v14 = (const void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 1072LL))(v13);
if ( v14 )
{
v15 = (void (__fastcall ***)(void *, _QWORD *))__dynamic_cast(
v14,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v15 )
{
v16 = -v7;
LOWORD(v17[0]) = v16 != 0 ? -1 : 0xA5A5;
BYTE2(v17[0]) = (unsigned int)(v16 != 0 ? -1 : 0xA5A5A5) >> 16;
(**v15)(v15, v17);
}
}
}
sub_1009147B0(a1);
}
}