//
// sub_140104240 from 0x140104240 to 0x140104361 (289 bytes)
//
// 8 xrefs:
// > DeathTrackerPopup::buildList @ 0x14010ab92
// > DeathTrackerPopup::buildList @ 0x14010b45a
// > DeathTrackerPopup::buildList @ 0x14010bacc
// > DeathTrackerPopup::mountVirtualRow @ 0x14010ce14
// > DeathTrackerPopup::mountVirtualRow @ 0x14010d211
// > ??> @ 0x140895a84
// > ??> @ 0x140895a94
// > ??> @ 0x1409159e0
//
// 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:43 +0000
//
void __fastcall sub_140104240(__int64 a1, float a2, float a3, char a4)
{
__int64 v5; // rax
_QWORD *v6; // rdi
__int64 v7; // rbx
__int64 v8; // rax
void (__fastcall **v9)(__int64, __int16 *); // rax
__int64 v10; // rbx
__int64 v11; // rax
_BYTE v12[8]; // [rsp+30h] [rbp-48h] BYREF
__int64 v13; // [rsp+38h] [rbp-40h] BYREF
__int16 v14; // [rsp+98h] [rbp+20h] BYREF
char v15; // [rsp+9Ah] [rbp+22h]
if ( (a4 & 1) == 0 )
{
v5 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v13, 0.0, 0.0, 40.0, 40.0);
v6 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v5);
v7 = *v6;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v12, (float)(a2 - 12.0) * 1.2, 18.0);
(*(void (__fastcall **)(_QWORD *, __int64))(v7 + 312))(v6, v8);
(*(void (__fastcall **)(_QWORD *))(*v6 + 160LL))(v6);
v14 = 9282;
v9 = (void (__fastcall **)(__int64, __int16 *))v6[40];
v15 = 22;
(*v9)((__int64)(v6 + 40), &v14);
v10 = *v6;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, a2 * 0.5, a3);
(*(void (__fastcall **)(_QWORD *, __int64))(v10 + 184))(v6, v11);
(*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 464LL))(a1, v6);
}
}