//
// GJUINode::updateButtonPositions from 0x3fc904 to 0x3fc9ae (170 bytes)
//
// 3 xrefs:
// > GJUINode::updateDragRadius @ 0x3fc9d2
// > GJUINode::updateButtonScale @ 0x3fca2e
// > GJUINode::init @ 0x3fd4e6
//
// 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:47:21 +0000
//
int __fastcall GJUINode::updateButtonPositions(int this)
{
int v1; // r5
int v2; // r3
int v3; // r0
float v4; // r0
float *v5; // r7
float v6; // s17
void (__fastcall *v7)(float *, _BYTE *); // r8
float v8; // s16
int v9; // r5
int (__fastcall *v10)(int, _BYTE *); // r7
_BYTE v11[8]; // [sp+4h] [bp-Ch] BYREF
v1 = this;
if ( *(_DWORD *)(this + 268) )
{
v2 = *(unsigned __int8 *)(this + 317);
v3 = *(_DWORD *)(this + 264);
if ( v2 )
{
return (*(int (__fastcall **)(int, void *))(*(_DWORD *)v3 + 92))(v3, &unk_D2B6C8);
}
else
{
v4 = (*(float (__fastcall **)(int))(*(_DWORD *)v3 + 84))(v3);
v5 = *(float **)(v1 + 264);
v6 = *(float *)(v1 + 308);
v7 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v5 + 92);
v8 = v4 * v5[86];
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (float)-(float)(v8 * 0.5) - v6, 0.0);
v7(v5, v11);
v9 = *(_DWORD *)(v1 + 268);
v10 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v6 + (float)(v8 * 0.5), 0.0);
return v10(v9, v11);
}
}
return this;
}