//
// DeathTrackerPopup::onOptions from 0x14010da80 to 0x14010dbd6 (342 bytes)
//
// 3 xrefs:
// > DeathTrackerPopup::init @ 0x140105a67
// > ??> @ 0x140915ac4
// > ??> @ 0x140915ad0
//
// 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:26:48 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall DeathTrackerPopup::onOptions(__int64 a1)
{
__int64 v2; // rbx
cocos2d::CCObject *v3; // rsi
__int64 (__fastcall *v4)(cocos2d::CCObject *); // rdx
v2 = *(_QWORD *)(a1 + 680);
v3 = (cocos2d::CCObject *)operator new(0x400u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v3);
*(_QWORD *)v3 = &DeathTrackerOptionsPopup::`vftable';
*((_QWORD *)v3 + 40) = &DeathTrackerOptionsPopup::`vftable';
*((_QWORD *)v3 + 41) = &DeathTrackerOptionsPopup::`vftable';
*((_QWORD *)v3 + 42) = &DeathTrackerOptionsPopup::`vftable';
*((_QWORD *)v3 + 43) = &DeathTrackerOptionsPopup::`vftable';
*((_QWORD *)v3 + 44) = &DeathTrackerOptionsPopup::`vftable';
*((_QWORD *)v3 + 51) = &DeathTrackerOptionsPopup::`vftable';
*((_QWORD *)v3 + 54) = &DeathTrackerOptionsPopup::`vftable';
*((_QWORD *)v3 + 68) = &DeathTrackerOptionsPopup::`vftable';
*((_QWORD *)v3 + 83) = &DeathTrackerOptionsPopup::`vftable';
*((_QWORD *)v3 + 84) = &DeathTrackerOptionsPopup::`vftable';
*((_QWORD *)v3 + 125) = &DeathTrackerOptionsPopup::`vftable';
*((_QWORD *)v3 + 126) = 0;
*((_QWORD *)v3 + 127) = 0;
if ( (unsigned __int8)DeathTrackerOptionsPopup::init(v3, v2, a1) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);
v3 = nullptr;
}
v4 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL);
if ( (char *)v4 == (char *)SetupTriggerPopup::show )
return SetupTriggerPopup::show(v3);
else
return v4(v3);
}