//
// sub_770BAC from 0x770bac to 0x770c78 (204 bytes)
//
// 5 xrefs:
// > DeathTrackerPopup::mountVirtualRow @ 0x7713e6
// > DeathTrackerPopup::mountVirtualRow @ 0x771598
// > DeathTrackerPopup::buildList @ 0x773dce
// > DeathTrackerPopup::buildList @ 0x7740e4
// > DeathTrackerPopup::buildList @ 0x774314
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:15 +0000
//
int __fastcall sub_770BAC(int a1)
{
float v1; // s0
float v2; // s1
int v4; // r4
void (__fastcall *v5)(int, _BYTE *); // r8
void (__fastcall *v6)(int, _BYTE *); // r3
void (__fastcall *v7)(int, _BYTE *); // r8
_BYTE v9[16]; // [sp+Ch] [bp-18h] BYREF
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, 0.0, 0.0, 40.0, 40.0);
v4 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v9);
v5 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v9, (float)(v1 - 12.0) * 1.2, 18.0);
v5(v4, v9);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 80))(v4, 1062557013);
v6 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 480);
qmemcpy(v9, "B$", 2);
v9[2] = 22;
v6(v4, v9);
v7 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v1 * 0.5, v2);
v7(v4, v9);
return (*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 228))(a1, v4);
}