//
// GJUINode::saveToConfig from 0x5c795c to 0x5c79f0 (148 bytes)
//
// 6 xrefs:
// > UIOptionsLayer::onClose @ 0x8c355c
// > UIOptionsLayer::onClose @ 0x8c3570
// > UIOptionsLayer::onClose @ 0x8c35e0
// > UIOptionsLayer::onClose @ 0x8c35f4
// > UIOptionsLayer::onClose @ 0x8c3698
// > ??> @ 0xc0c30
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJUINode::saveToConfig(GJUINode *a1, UIButtonConfig *a2)
{
int height; // w1
uint8_t Opacity; // w0
float m_radius; // w3
bool m_modeB; // w4
float m_deadzone; // w2
const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1
float v10; // s0
float v11; // s1
bool m_snap; // w1
height = (int)a1->m_rect.size.height;
a2->m_width = (int)a1->m_rect.size.width;
a2->m_height = height;
a2->m_scale = GJUINode::getButtonScale(a1);
Opacity = GJUINode::getOpacity(a1);
m_radius = a1->m_radius;
m_modeB = a1->m_modeB;
m_deadzone = a1->m_deadzone;
getPosition = a1->getPosition;
a2->m_opacity = Opacity;
a2->m_modeB = m_modeB;
a2->m_radius = m_radius;
a2->m_deadzone = m_deadzone;
v10 = ((float (__fastcall *)(GJUINode *))getPosition)(a1);
cocos2d::CCPoint::operator=(&a2->m_position, v10, v11);
m_snap = a1->m_snap;
a2->m_split = a1->m_split;
a2->m_snap = m_snap;
}