//
// SetupPulsePopup::onSelectTargetMode from 0x5ece44 to 0x5ecf70 (300 bytes)
//
// 1 xrefs:
// > SetupPulsePopup::init @ 0x5ef0e0
//
// 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:54:24 +0000
//
IDNameInput *__fastcall SetupPulsePopup::onSelectTargetMode(SetupPulsePopup *this, cocos2d::CCObject *a2)
{
int v3; // r5
char *v4; // r0
const char *v5; // r1
char *v6; // r0
const char *v7; // r1
const char *v8; // r7
int v9; // r0
int v10; // r0
IDNameInput *result; // r0
int v12; // r1
int v13; // r2
int v14; // r3
if ( a2 )
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
else
v3 = -1;
v4 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 187) + 536))(*((_DWORD *)this + 187));
if ( v3 )
v5 = "GJ_button_04.png";
else
v5 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v4, v5);
v6 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 188) + 536))(*((_DWORD *)this + 188));
if ( v3 == 1 )
v7 = "GJ_button_02.png";
else
v7 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v6, v7);
if ( v3 )
{
if ( v3 == 1 )
v8 = "Group ID";
else
v8 = "ID";
}
else
{
v8 = "Channel ID";
}
(*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 197) + 172))(*((_DWORD *)this + 197), v3 == 0);
(*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 197) + 528))(*((_DWORD *)this + 197), v3 == 0);
(*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 203) + 172))(*((_DWORD *)this + 203), v3 == 1);
(*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 203) + 528))(*((_DWORD *)this + 203), v3 == 1);
v9 = *((_DWORD *)this + 206);
if ( v9 )
(*(void (__fastcall **)(int, bool))(*(_DWORD *)v9 + 172))(v9, v3 == 1);
(*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 204) + 172))(*((_DWORD *)this + 204), v3 == 1);
(*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 204) + 528))(*((_DWORD *)this + 204), v3 == 1);
v10 = *((_DWORD *)this + 207);
if ( v10 )
(*(void (__fastcall **)(int, bool))(*(_DWORD *)v10 + 172))(v10, v3 == 1);
(*(void (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 189) + 464))(*((_DWORD *)this + 189), v8);
*((_DWORD *)this + 217) = v3;
result = (IDNameInput *)cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 176), 51);
if ( result )
result = (IDNameInput *)IDNameInput::setType(result, v3 == 1);
if ( !*((_BYTE *)this + 872) )
{
*((_DWORD *)this + 210) = *((unsigned __int8 *)this + 872);
SetupPulsePopup::updateTargetID(this);
SetupPulsePopup::updateTextInputLabel(this, v12, v13, v14);
return (IDNameInput *)SetupPulsePopup::updatePulseTargetType(this);
}
return result;
}