//
// UIOptionsLayer::onClose from 0xa1e44c to 0xa1e5e8 (412 bytes)
//
// 2 xrefs:
// > ??> @ 0xb6f38
// > ??> @ 0x1484478
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:59:39 +0000
//
__int64 __fastcall UIOptionsLayer::onClose(UIOptionsLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v4; // x0
GameManager *v5; // x0
__int64 v6; // x23
__int64 v7; // x0
GameManager *v8; // x0
__int64 v9; // x23
__int64 v10; // x0
GameManager *v11; // x0
__int64 v12; // x23
float v13; // s0
__int64 v14; // x0
__int64 v15; // x23
GameManager *v16; // x0
__int64 v17; // x0
GameManager *v18; // x0
__int64 v19; // x23
__int64 v20; // x0
GameManager *v21; // x0
__int64 v22; // x23
float v23; // s0
__int64 v24; // x0
__int64 v26; // x21
__int64 v27; // x0
float v28; // [xsp+40h] [xbp+40h]
float v29; // [xsp+40h] [xbp+40h]
__int64 v30; // [xsp+58h] [xbp+58h] BYREF
_BYTE v31[8]; // [xsp+60h] [xbp+60h] BYREF
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v30, v4);
v5 = (GameManager *)*((unsigned __int8 *)this + 1012);
if ( *((_BYTE *)this + 1012) )
{
v6 = *((_QWORD *)this + 127);
v7 = GameManager::sharedState(v5);
v8 = (GameManager *)GJUINode::saveToConfig(v6, v7 + 1356);
v9 = *((_QWORD *)this + 128);
v10 = GameManager::sharedState(v8);
v11 = (GameManager *)GJUINode::saveToConfig(v9, v10 + 1396);
v12 = GameManager::sharedState(v11);
v13 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 128) + 192LL))(*((_QWORD *)this + 128));
v28 = vabds_f32(v13, *(float *)&v30);
v14 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 128) + 192LL))(*((_QWORD *)this + 128));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, v28, *(float *)(v14 + 4));
cocos2d::CCPoint::operator=(v12 + 1424, v31);
v15 = *((_QWORD *)this + 129);
v17 = GameManager::sharedState(v16);
v18 = (GameManager *)GJUINode::saveToConfig(v15, v17 + 1436);
v19 = *((_QWORD *)this + 130);
v20 = GameManager::sharedState(v18);
v21 = (GameManager *)GJUINode::saveToConfig(v19, v20 + 1476);
v22 = GameManager::sharedState(v21);
v23 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 130) + 192LL))(*((_QWORD *)this + 130));
v29 = vabds_f32(v23, *(float *)&v30);
v24 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 130) + 192LL))(*((_QWORD *)this + 130));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, v29, *(float *)(v24 + 4));
cocos2d::CCPoint::operator=(v22 + 1504, v31);
}
else
{
v26 = *((_QWORD *)this + 127);
v27 = GameManager::sharedState(v5);
GJUINode::saveToConfig(v26, v27 + 1316);
}
SetupTriggerPopup::onClose(this, a2);
return _stack_chk_guard;
}