//
// sub_10095C340 from 0x10095c340 to 0x10095c512 (466 bytes)
//
// 2 xrefs:
// > FriendsProfilePage::init @ 0x100734bfa
// > sub_10095C520 @ 0x10095c544
//
// This function is hookable on this platform (idp: pc, 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:38:43 +0000
//
char __fastcall sub_10095C340(__int64 a1, float a2, float a3)
{
char result; // al
char v5; // r13
__int64 v6; // rax
_QWORD *v7; // rax
void *v8; // r15
__int64 v9; // rdi
int v10; // edx
int v11; // ecx
int v12; // r8d
int v13; // r9d
__int64 v14; // rax
unsigned __int64 v15[2]; // [rsp+8h] [rbp-48h] BYREF
__int64 v16; // [rsp+18h] [rbp-38h] BYREF
float v17; // [rsp+20h] [rbp-30h]
float v18; // [rsp+24h] [rbp-2Ch]
v17 = a3;
v18 = a2;
LODWORD(v15[0]) = -1778384896;
result = cocos2d::CCLayerColor::initWithColor(a1, (__int64)v15);
if ( result )
{
v5 = result;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 150);
FLAlertLayer::incrementForcePrio((_BYTE *)a1);
*(_BYTE *)(a1 + 596) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1);
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v16, v6);
sub_100278250((float *)v15, *(float *)&v16 * 0.5, 0.5 * *((float *)&v16 + 1));
sub_100278300((_QWORD *)(a1 + 660), v15);
*(float *)(a1 + 668) = v18;
*(float *)(a1 + 672) = v17;
sub_100278300((_QWORD *)(a1 + 712), (_QWORD *)(a1 + 660));
v7 = cocos2d::CCLayer::create();
*(_QWORD *)(a1 + 584) = v7;
(*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 456LL))(a1, v7);
sub_100278270((__int64)v15, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u);
v8 = cocos2d::extension::CCScale9Sprite::create_2((__int64)"GJ_square01.png", v15);
sub_100278260((float *)v15, v18, v17);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v8 + 320LL))(v8, v15);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v8 + 184LL))(v8, a1 + 660);
v9 = *(_QWORD *)(a1 + 584);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v9 + 464LL))(v9, v8, 4294967294LL);
v14 = cocos2d::CCMenu::create(v9, (__int64)v8, v10, v11, v12, v13);
*(_QWORD *)(a1 + 552) = v14;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v14, 10);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 184LL))(*(_QWORD *)(a1 + 552), &unk_100BE7610);
*(_DWORD *)(a1 + 640) = -1;
return v5;
}
return result;
}