//
// sub_1001B028C from 0x1001b028c to 0x1001b03dc (336 bytes)
//
// 4 xrefs:
// > SetupSFXPopup::init @ 0x100212d74
// > SetupSFXPopup::init @ 0x100213140
// > SetupSFXPopup::init @ 0x1002131a0
// > sub_100233480 @ 0x100233974
//
// 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 11:00:07 +0000
//
__int64 __fastcall sub_1001B028C(__int64 a1, __int64 a2, __int64 a3, std::string *a4, __int64 a5, __int64 a6, float a7)
{
__int64 PageContainer; // x21
__int64 GroupContainer; // x20
__int64 v15; // x8
__int64 v16; // x25
__int64 v17; // x25
__n128 v18; // q0
__int64 v20; // [xsp+8h] [xbp-58h] BYREF
PageContainer = SetupTriggerPopup::getPageContainer(a1, a5);
GroupContainer = SetupTriggerPopup::getGroupContainer(a1, a6);
v15 = SHIBYTE(a4->__r_.__value_.__r.__words[2]);
if ( (v15 & 0x8000000000000000LL) == 0 )
{
if ( *((_BYTE *)&a4->__r_.__value_.__s + 23) )
goto LABEL_4;
goto LABEL_3;
}
if ( !a4->__r_.__value_.__l.__size_ )
{
LABEL_3:
std::string::assign(a4, "GJ_plus2Btn_001.png");
LOBYTE(v15) = *((_BYTE *)&a4->__r_.__value_.__s + 23);
}
LABEL_4:
if ( (v15 & 0x80) != 0 )
a4 = (std::string *)a4->__r_.__value_.__r.__words[0];
v16 = cocos2d::CCSprite::createWithSpriteFrameName(a4);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 160LL))(v16, a7);
v17 = CCMenuItemSpriteExtra::create(v16, 0, a1, 1416, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 72LL))(v17, a2);
v18.n128_f64[0] = (*(double (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(
*(_QWORD *)(a1 + 552),
v17);
cocos2d::CCNode::convertToNodeSpace(&v20, *(_QWORD *)(a1 + 552), a3, v18);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 184LL))(v17, &v20);
sub_1002E74E0(PageContainer, v17);
if ( (int)a6 >= 1 )
sub_1002E74E0(GroupContainer, v17);
return v17;
}