//
// SetupTriggerPopup::createPlusButton from 0x67aff0 to 0x67b0cc (220 bytes)
//
// 4 xrefs:
// > SetupRotateGameplayPopup::init @ 0x67fe34
// > SetupSFXPopup::init @ 0x6b1be8
// > SetupSFXPopup::init @ 0x6b1eec
// > SetupSFXPopup::init @ 0x6b1f34
//
// 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:55:58 +0000
//
cocos2d::CCObject *__fastcall SetupTriggerPopup::createPlusButton(
cocos2d::CCArray **a1,
int a2,
int a3,
int a4,
int *a5,
unsigned int a6,
signed int a7)
{
cocos2d::CCArray *PageContainer; // r8
int GroupContainer; // r0
unsigned int v12; // r2
const char *v13; // r1
cocos2d::CCArray *v14; // r7
cocos2d::CCSprite *v15; // r0
int v16; // r6
cocos2d::CCObject *v17; // r11
void (__fastcall *v18)(cocos2d::CCObject *, _BYTE *); // r6
_BYTE v20[8]; // [sp+Ch] [bp-18h] BYREF
int v21; // [sp+14h] [bp-10h]
int v22; // [sp+18h] [bp-Ch]
PageContainer = (cocos2d::CCArray *)SetupTriggerPopup::getPageContainer(a1, a6);
GroupContainer = SetupTriggerPopup::getGroupContainer(a1, a7);
v12 = *(unsigned __int8 *)a5;
v13 = (const char *)(v12 << 31);
v14 = (cocos2d::CCArray *)GroupContainer;
if ( (v12 & 1) != 0 )
{
if ( a5[1] )
{
LABEL_3:
v15 = (cocos2d::CCSprite *)a5[2];
goto LABEL_7;
}
}
else if ( v12 >> 1 )
{
goto LABEL_6;
}
std::string::assign(a5, "GJ_plus2Btn_001.png");
if ( (*(_BYTE *)a5 & 1) != 0 )
goto LABEL_3;
LABEL_6:
v15 = (cocos2d::CCSprite *)((char *)a5 + 1);
LABEL_7:
v16 = cocos2d::CCSprite::createWithSpriteFrameName(v15, v13);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v16 + 80))(v16, a4);
v21 = 708;
v22 = 1;
v17 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v16, 0, (int)a1, 708, 1);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v17 + 36))(v17, a2);
(*(void (__fastcall **)(cocos2d::CCArray *, cocos2d::CCObject *))(*(_DWORD *)a1[111] + 228))(a1[111], v17);
v18 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v17 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v20, a1[111]);
v18(v17, v20);
cocos2d::CCArray::addObject(PageContainer, v17);
if ( a7 > 0 )
cocos2d::CCArray::addObject(v14, v17);
return v17;
}