//
// GJUINode::loadFromConfig from 0x3fd600 to 0x3fd6d6 (214 bytes)
//
// 1 xrefs:
// > UILayer::refreshDpad @ 0x3fd850
//
// 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:22 +0000
//
int __fastcall GJUINode::loadFromConfig(GJUINode *this, UIButtonConfig *a2)
{
cocos2d::CCDirector *updated; // r0
int (__fastcall *v5)(GJUINode *, _BYTE *); // r8
float v7[2]; // [sp+4h] [bp-14h] BYREF
_BYTE v8[8]; // [sp+Ch] [bp-Ch] BYREF
GJUINode::updateSize(this, (float)*(int *)a2, (float)*((int *)a2 + 1));
GJUINode::updateDragRadius((int)this, *((float *)a2 + 5));
GJUINode::updateDeadzone((int)this, (int)*((float *)a2 + 2));
GJUINode::toggleModeB(this, *((unsigned __int8 *)a2 + 24));
*((_BYTE *)this + 318) = *((_BYTE *)a2 + 25);
GJUINode::updateButtonScale(this, *((float *)a2 + 3));
GJUINode::setOpacity(this, *((unsigned __int8 *)a2 + 16));
*((_BYTE *)this + 322) = *((_BYTE *)a2 + 36);
*((_BYTE *)this + 323) = *((_BYTE *)a2 + 38);
updated = GJUINode::updateButtonFrames(this);
if ( !*((_BYTE *)a2 + 37) )
return (*(int (__fastcall **)(GJUINode *, char *))(*(_DWORD *)this + 92))(this, (char *)a2 + 28);
cocos2d::CCDirector::sharedDirector(updated);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7);
v5 = *(int (__fastcall **)(GJUINode *, _BYTE *))(*(_DWORD *)this + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v7[0] - *((float *)a2 + 7), *((float *)a2 + 8));
return v5(this, v8);
}