//
// SetupPulsePopup::onSelectTargetMode from 0xa463a4 to 0xa4660c (616 bytes)
//
// 5 xrefs:
// > SetupPulsePopup::init @ 0xa4901c
// > ??> @ 0x4e4d8
// > SetupPulsePopup::init @ 0xa476d8
// > SetupPulsePopup::init @ 0xa47748
// > ??> @ 0x15419d8
//
// 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:59 +0000
//
cocos2d::CCArray *__fastcall SetupPulsePopup::onSelectTargetMode(SetupPulsePopup *this, cocos2d::CCObject *a2)
{
int v3; // w22
ButtonSprite *v4; // x0
unsigned int v5; // w20
unsigned int v6; // w23
char *v7; // x21
ButtonSprite *v8; // x0
__int64 v9; // x0
__int64 v10; // x0
IDNameInput *v11; // x0
cocos2d::CCArray *result; // x0
ButtonSprite *v13; // x0
ButtonSprite *v14; // x1
ButtonSprite *v15; // x0
if ( !a2 )
{
v3 = -1;
v13 = (ButtonSprite *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 136) + 1072LL))(*((_QWORD *)this + 136));
ButtonSprite::updateBGImage(v13, "GJ_button_04.png");
v14 = (ButtonSprite *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 137) + 1072LL))(*((_QWORD *)this + 137));
LABEL_13:
v5 = 0;
v6 = 0;
ButtonSprite::updateBGImage(v14, "GJ_button_04.png");
v7 = "ID";
goto LABEL_4;
}
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = (ButtonSprite *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 136) + 1072LL))(*((_QWORD *)this + 136));
if ( !v3 )
{
v5 = 0;
v6 = 1;
v7 = "Channel ID";
ButtonSprite::updateBGImage(v4, "GJ_button_02.png");
v8 = (ButtonSprite *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 137) + 1072LL))(*((_QWORD *)this + 137));
ButtonSprite::updateBGImage(v8, "GJ_button_04.png");
goto LABEL_4;
}
ButtonSprite::updateBGImage(v4, "GJ_button_04.png");
v15 = (ButtonSprite *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 137) + 1072LL))(*((_QWORD *)this + 137));
v14 = v15;
if ( v3 != 1 )
goto LABEL_13;
v5 = 1;
v6 = 0;
v7 = "Group ID";
ButtonSprite::updateBGImage(v15, "GJ_button_02.png");
LABEL_4:
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 146) + 344LL))(*((_QWORD *)this + 146), v6);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 146) + 1056LL))(*((_QWORD *)this + 146), v6);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 152) + 344LL))(*((_QWORD *)this + 152), v5);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 152) + 1056LL))(*((_QWORD *)this + 152), v5);
v9 = *((_QWORD *)this + 155);
if ( v9 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 344LL))(v9, v5);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 153) + 344LL))(*((_QWORD *)this + 153), v5);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 153) + 1056LL))(*((_QWORD *)this + 153), v5);
v10 = *((_QWORD *)this + 156);
if ( v10 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 344LL))(v10, v5);
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 138) + 928LL))(*((_QWORD *)this + 138), v7);
*((_DWORD *)this + 324) = v3;
v11 = (IDNameInput *)cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 125), 51);
if ( v11 )
IDNameInput::setType(v11, v5);
result = (cocos2d::CCArray *)*((unsigned __int8 *)this + 1300);
if ( !*((_BYTE *)this + 1300) )
{
*((_DWORD *)this + 317) = 0;
SetupPulsePopup::updateTargetID(this);
SetupPulsePopup::updateTextInputLabel(this);
return SetupPulsePopup::updatePulseTargetType(this);
}
return result;
}