//
// SetupCameraGuidePopup::init from 0xb76ea0 to 0xb77380 (1248 bytes)
//
// 2 xrefs:
// > SetupCameraGuidePopup::create @ 0xb775c8
// > ??> @ 0xde358
//
// 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 13:02:23 +0000
//
__int64 __fastcall SetupCameraGuidePopup::init(
SetupCameraGuidePopup *this,
CameraTriggerGameObject *a2,
cocos2d::CCArray *a3)
{
unsigned __int8 v4; // w0
unsigned int v5; // w23
__int64 v7; // x2
__int64 v8; // x3
__int64 v9; // x4
__int64 v10; // x5
const char *v11; // x6
cocos2d::CCDirector *v12; // x0
cocos2d::CCDirector *v13; // x0
__int64 v14; // [xsp+98h] [xbp+68h] BYREF
_BYTE v15[8]; // [xsp+A0h] [xbp+70h] BYREF
_BYTE v16[8]; // [xsp+A8h] [xbp+78h] BYREF
__int64 v17; // [xsp+B0h] [xbp+80h] BYREF
cocos2d::CCDirector *v18[2]; // [xsp+B8h] [xbp+88h] BYREF
void *v19; // [xsp+C8h] [xbp+98h]
__int64 v20; // [xsp+D0h] [xbp+A0h] BYREF
__int64 v21; // [xsp+D8h] [xbp+A8h]
void *v22; // [xsp+E0h] [xbp+B0h]
v4 = SetupTriggerPopup::init(this, a2, a3, 360.0, 250.0, 1u, 0.0);
v5 = v4;
if ( v4 )
{
SetupTriggerPopup::preSetup(this);
v20 = 0;
*((_BYTE *)this + 904) = 1;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Camera Guide", 0xCu);
SetupTriggerPopup::addTitle((__int64)this, (__int64)&v20);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "OK", 2u);
SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v20, v7, v8, v9, v10, v11);
if ( (v20 & 1) != 0 )
operator delete(v22);
v18[0] = nullptr;
v18[1] = nullptr;
v19 = nullptr;
std::string::__init((__int64 *)v18, "Help", 4u);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(
&v20,
"Preview the camera bounds at specified Zoom and Offset values for different aspect ratios. The inn"
"er line is the guaranteed view 4:3 and the outer line is based on your window aspect ratio.",
0xCDu);
SetupTriggerPopup::addHelpButton((__int64)this, (char *)v18, (char *)&v20, 1.0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v12 = (cocos2d::CCDirector *)LOBYTE(v18[0]);
if ( ((__int64)v18[0] & 1) != 0 )
operator delete(v19);
v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12);
cocos2d::CCDirector::getWinSize(&v14, v13);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, *(float *)&v14 * 0.5, *((float *)&v14 + 1) * 0.5);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Zoom:", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 0.0, 70.0);
cocos2d::CCPoint::operator+(&v17, v15);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCArray **)this,
371,
(char *)&v20,
(__int64)&v17,
0,
1,
4,
0,
0.8,
0.4,
3.0,
0,
0,
0,
3,
0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Offset X:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, -85.0, -5.0);
cocos2d::CCPoint::operator+(&v17, v15);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCArray **)this,
28,
(char *)&v20,
(__int64)&v17,
0,
2,
10,
0,
0.8,
-100.0,
100.0,
0,
0,
0,
0,
0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Offset Y:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 90.0, -5.0);
cocos2d::CCPoint::operator+(&v17, v15);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCArray **)this,
29,
(char *)&v20,
(__int64)&v17,
0,
2,
10,
0,
0.8,
-100.0,
100.0,
0,
0,
0,
0,
0);
if ( (v20 & 1) != 0 )
operator delete(v22);
v20 = 0;
v21 = 0;
v22 = nullptr;
std::string::__init(&v20, "Preview\nOpacity", 0xFu);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v17,
(float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v14 * 0.5)) - 72.0,
40.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v14 + 1) * 0.5)));
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCArray **)this,
506,
(char *)&v20,
(__int64)&v17,
0,
1,
5,
0,
0.65,
0.0,
0.0,
0,
0,
0,
2,
0);
if ( (v20 & 1) != 0 )
operator delete(v22);
SetupTriggerPopup::postSetup(this);
}
return v5;
}