//
// FindObjectPopup::onBuildWindowContent from 0x77b5e8 to 0x77b930 (840 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:23 +0000
//
void __fastcall FindObjectPopup::onBuildWindowContent(FindObjectPopup *this)
{
char *v2; // r8
GameManager *v3; // r0
GameManager *v4; // r0
int IntGameVariable; // r0
IDNameInput *v6; // r10
int v7; // s15
cocos2d::CCDictionary *v8; // r11
float *v9; // r8
const char *v10; // r1
const char *CString; // r8
cocos2d::CCString *v12; // r0
size_t v13; // r0
int v14; // r3
float v15; // s17
float v16; // s18
ButtonSprite *v17; // r0
float v18; // s18
int v19; // r8
void (__fastcall *v20)(int, _DWORD *); // r11
const char *v21; // r1
int v22; // r9
int v23; // r9
const char *v24; // r1
cocos2d::CCSprite *v25; // r11
int v26; // r8
void (__fastcall *v27)(int, _DWORD *); // r10
const char *v28; // r1
int v29; // r6
int v30; // r6
const cocos2d::CCPoint *v31; // r10
void (__fastcall *v32)(int, _BYTE *); // r8
float v33; // [sp+10h] [bp-6Ch]
void (__fastcall *v34)(int, _DWORD *); // [sp+24h] [bp-58h]
float v35; // [sp+28h] [bp-54h] BYREF
float v36; // [sp+2Ch] [bp-50h]
float v37; // [sp+30h] [bp-4Ch] BYREF
float v38; // [sp+34h] [bp-48h]
_BYTE v39[8]; // [sp+38h] [bp-44h] BYREF
_BYTE v40[8]; // [sp+40h] [bp-3Ch] BYREF
char **(__fastcall *v41)(char **, cocos2d::CCObject *); // [sp+48h] [bp-34h]
int v42; // [sp+4Ch] [bp-30h]
char **(__fastcall *v43)(char **, cocos2d::CCObject *); // [sp+50h] [bp-2Ch]
int v44; // [sp+54h] [bp-28h]
char **(__fastcall *v45)(char **, cocos2d::CCObject *); // [sp+58h] [bp-24h]
int v46; // [sp+5Ch] [bp-20h]
_DWORD v47[2]; // [sp+60h] [bp-1Ch] BYREF
int v48; // [sp+68h] [bp-14h] BYREF
int v49; // [sp+6Ch] [bp-10h]
int v50; // [sp+70h] [bp-Ch]
v2 = (char *)this + 440;
v3 = (GameManager *)EditorWindowPopup::contentCenter((EditorWindowPopup *)&v35);
v4 = (GameManager *)GameManager::sharedState(v3);
IntGameVariable = GameManager::getIntGameVariable(v4, "0230");
v48 = 0;
v49 = 0;
v50 = 0;
*((_DWORD *)this + 210) = IntGameVariable;
std::string::__init(&v48, "Group ID", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v35, v36 + 11.5);
v6 = (IDNameInput *)IDNameInput::create((int)this, (int)v2, 1, 51, (int)&v48, (int)v47, 0.8, 6, 0, 0, 0);
std::string::~string((int)&v48);
v7 = *((_DWORD *)this + 210);
v8 = *((cocos2d::CCDictionary **)this + 154);
v9 = (float *)operator new(0x38u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v9);
v9[13] = (float)v7;
*(_DWORD *)v9 = &off_CD17A8;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
cocos2d::CCDictionary::setObject(v8, (cocos2d::CCObject *)v9, 51);
v10 = *((const char **)this + 210);
if ( (int)v10 > 0 )
{
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v10);
CString = (const char *)cocos2d::CCString::getCString(v12);
}
else
{
CString = (const char *)&unk_B6B226;
}
v48 = 0;
v49 = 0;
v50 = 0;
v13 = strlen(CString);
std::string::__init(&v48, CString, v13);
SetupTriggerPopup::updateInputNodeLabel((int)this, 51, (int)&v48, v14);
std::string::~string((int)&v48);
if ( v6 )
IDNameInput::refreshLabel(v6);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v37, (const cocos2d::CCSize *)(*((_DWORD *)this + 181) + 324));
v15 = (float)-(float)(v38 * 0.5) - 28.5;
v16 = v37;
v17 = ButtonSprite::create(
(ButtonSprite *)"Select",
(const char *)&word_32,
0,
0.6,
1,
"goldFont.fnt",
"GJ_button_01.png",
(const char *)0x41C80000,
v33);
v42 = 0;
v41 = FindObjectPopup::onSelect;
v18 = v16 * 0.5;
v19 = CCMenuItemSpriteExtra::create((int)v17, 0, (int)this, (int)FindObjectPopup::onSelect, 0);
v20 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v19 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v18, v15);
v20(v19, v47);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 182) + 228))(*((_DWORD *)this + 182), v19);
v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v21);
(*(void (__fastcall **)(int, float))(*(_DWORD *)v22 + 80))(v22, 0.5);
v44 = 0;
v43 = FindObjectPopup::onFindStep;
v23 = CCMenuItemSpriteExtra::create(v22, 0, (int)this, (int)FindObjectPopup::onFindStep, 0);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v23 + 36))(v23, 1);
v34 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v23 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v18 - 60.0, v15);
v34(v23, v47);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 182) + 228))(*((_DWORD *)this + 182), v23);
v25 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_01_001.png",
v24);
(*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_DWORD *)v25 + 80))(v25, 0.5);
cocos2d::CCSprite::setFlipX(v25, 1);
v45 = FindObjectPopup::onFindStep;
v46 = 0;
v26 = CCMenuItemSpriteExtra::create((int)v25, 0, (int)this, (int)FindObjectPopup::onFindStep, 0);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v26 + 36))(v26, 2);
v27 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v26 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v18 + 60.0, v15);
v27(v26, v47);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 182) + 228))(*((_DWORD *)this + 182), v26);
v29 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn02_001.png", v28);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v29 + 80))(v29, 1055286886);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v29 + 456))(v29, 200);
v47[1] = 0;
v47[0] = FindObjectPopup::onOptions;
v30 = CCMenuItemSpriteExtra::create(v29, 0, (int)this, (int)FindObjectPopup::onOptions, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v30);
v31 = *((const cocos2d::CCPoint **)this + 111);
v32 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v30 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v39,
(float)(v35 + (float)(*((float *)this + 183) * 0.5)) - 12.0,
(float)(v36 + (float)(*((float *)this + 184) * 0.5)) - 14.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v40, v31);
v32(v30, v40);
ScrollableContentLayer::setContentHeight(*((ScrollableContentLayer **)this + 181), v38);
}