//
// sub_100380FA4 from 0x100380fa4 to 0x10038104c (168 bytes)
//
// 1 xrefs:
// > UIPOptionsLayer::init @ 0x100380ccc
//
// 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 11:03:30 +0000
//
__int64 __fastcall sub_100380FA4(_QWORD *a1)
{
__int64 v2; // x0
float v3; // s8
__int64 v4; // x0
float v5; // s0
float *v6; // x0
__int64 v7; // x0
__int64 v8; // x20
__int64 v9; // x0
__int64 v10; // x0
double v12; // [xsp+0h] [xbp-30h] BYREF
__int64 v13; // [xsp+8h] [xbp-28h] BYREF
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v2, &v13);
v3 = *(float *)&v13 * 0.5;
v4 = cocos2d::CCDirector::sharedDirector();
v5 = sub_100207EA0(v4);
v6 = sub_1000262BC((float *)&v12, v3, v5 + 40.0);
v7 = GameManager::sharedState(v6);
sub_10002630C((_QWORD *)(v7 + 1704), &v12);
v8 = a1[127];
v10 = GameManager::sharedState(v9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 184LL))(v8, v10 + 1704);
return (*(__int64 (__fastcall **)(_QWORD *, __int64, float))(*a1 + 1456LL))(a1, 4294967267LL, 1.0);
}