//
// sub_1004C02AC from 0x1004c02ac to 0x1004c03c0 (276 bytes)
//
// 5 xrefs:
// > sub_1004BEB94 @ 0x1004bf2a4
// > sub_1004BEB94 @ 0x1004bf6ec
// > sub_1004BEB94 @ 0x1004bf9f4
// > DeathTrackerPopup::mountVirtualRow @ 0x1004c06e4
// > DeathTrackerPopup::mountVirtualRow @ 0x1004c088c
//
// This function is hookable on this platform (idp: arm, 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:06:19 +0000
//
__int64 __fastcall sub_1004C02AC(__int64 result, char a2, float a3, float a4)
{
__int64 v6; // x19
void *v7; // x20
float v8[4]; // [xsp+0h] [xbp-30h] BYREF
if ( (a2 & 1) == 0 )
{
v6 = result;
sub_1000262CC(v8, 0.0, 0.0, 40.0, 40.0);
v7 = cocos2d::extension::CCScale9Sprite::create((__int64)"square02b_small.png", (__int64)v8);
sub_1000262C4(v8, (float)(a3 + -12.0) * 1.2, 18.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v7 + 320LL))(v7, v8);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v7 + 160LL))(v7, 0.83333);
BYTE2(v8[0]) = 22;
LOWORD(v8[0]) = 9282;
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v7 + 960LL))(v7, v8);
sub_1000262BC(v8, a3 * 0.5, a4);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v7 + 184LL))(v7, v8);
return (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)v6 + 456LL))(v6, v7);
}
return result;
}