//
// sub_77087C from 0x77087c to 0x77091c (160 bytes)
//
// 24 xrefs:
// > DeathTrackerPopup::mountVirtualRow @ 0x771428
// > DeathTrackerPopup::mountVirtualRow @ 0x771532
// > DeathTrackerPopup::mountVirtualRow @ 0x7715da
// > DeathTrackerPopup::mountVirtualRow @ 0x771624
// > DeathTrackerPopup::buildList @ 0x773910
// > DeathTrackerPopup::buildList @ 0x773964
// > DeathTrackerPopup::buildList @ 0x7739ac
// > DeathTrackerPopup::buildList @ 0x7739f4
// > DeathTrackerPopup::buildList @ 0x773a3a
// > DeathTrackerPopup::buildList @ 0x773a82
// > DeathTrackerPopup::buildList @ 0x773b28
// > DeathTrackerPopup::buildList @ 0x773b70
// > DeathTrackerPopup::buildList @ 0x773bb8
// > DeathTrackerPopup::buildList @ 0x773e6a
// > DeathTrackerPopup::buildList @ 0x773ebe
// > DeathTrackerPopup::buildList @ 0x773f08
// > DeathTrackerPopup::buildList @ 0x773f74
// > DeathTrackerPopup::buildList @ 0x77411e
// > DeathTrackerPopup::buildList @ 0x77417a
// > DeathTrackerPopup::buildList @ 0x7741e6
// > DeathTrackerPopup::buildList @ 0x774348
// > DeathTrackerPopup::buildList @ 0x7743a6
// > DeathTrackerPopup::buildList @ 0x774402
// > DeathTrackerPopup::buildList @ 0x77445a
//
// 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_77087C(int a1, int a2, int a3, const char *a4)
{
float v4; // s0
float v5; // s1
int v6; // s2
cocos2d::CCLabelBMFont *v8; // r0
int v9; // r4
void (__fastcall *v10)(int, _BYTE *); // r11
void (__fastcall *v11)(int, _BYTE *); // r8
int v13; // [sp+4h] [bp-18h] BYREF
_BYTE v14[8]; // [sp+Ch] [bp-10h] BYREF
v13 = a3;
if ( (*(_BYTE *)a2 & 1) != 0 )
v8 = *(cocos2d::CCLabelBMFont **)(a2 + 8);
else
v8 = (cocos2d::CCLabelBMFont *)(a2 + 1);
v9 = cocos2d::CCLabelBMFont::create(v8, a4, (const char *)&_stack_chk_guard);
v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 1.0, 0.5);
v10(v9, v14);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 80))(v9, v6);
(*(void (__fastcall **)(int, int *))(*(_DWORD *)v9 + 536))(v9, &v13);
v11 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v4, v5);
v11(v9, v14);
(*(void (__fastcall **)(int, int))(*(_DWORD *)a1 + 228))(a1, v9);
return v9;
}