// // SupportLayer::customSetup from 0x53a0b4 to 0x53a7e2 (1838 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:52:14 +0000 // int __fastcall SupportLayer::customSetup(SupportLayer *this) { ButtonSprite *v2; // r0 cocos2d::CCMenu *v3; // r10 ButtonSprite *v4; // r0 int v5; // r0 ButtonSprite *v6; // r0 int v7; // r9 ButtonSprite *v8; // r0 ButtonSprite *v9; // r0 int v10; // r11 const cocos2d::CCPoint *v11; // r7 void (__fastcall *v12)(cocos2d::CCMenuItem *, _DWORD *); // r10 void (__fastcall *v13)(int, _DWORD *); // r10 void (__fastcall *v14)(int, _DWORD *); // r10 void (__fastcall *v15)(int, _DWORD *); // r9 GameManager *v16; // r0 char v17; // r8 GJAccountManager *v18; // r0 int v19; // r0 ButtonSprite *v20; // r0 int v21; // r8 GameStatsManager *v22; // r0 int v23; // r0 int isSpecialChestUnlocked; // r10 ButtonSprite *v25; // r0 int v26; // r11 int v27; // r8 cocos2d::CCMenu *v28; // r0 float v29; // s18 float v30; // s17 const cocos2d::CCPoint *v31; // r8 const char *v32; // r1 int v33; // r11 void (__fastcall *v34)(int, _DWORD *); // r7 const char *v35; // r1 int v36; // r0 int v37; // r9 void (__fastcall *v38)(int, _DWORD *); // r10 int v39; // r0 const char *v40; // r1 int v41; // r9 int v42; // r0 const char *v43; // r1 int v44; // r0 int v45; // r4 void (__fastcall *v46)(int, _BYTE *); // r11 int v47; // r0 const char *v48; // r2 int v49; // r4 int (__fastcall *v50)(int, _BYTE *); // r6 float v51; // s16 int v52; // r0 AchievementManager *v53; // r0 AchievementManager *v54; // r0 const char *v55; // r2 cocos2d::CCNode *v56; // r4 void (__fastcall *v57)(cocos2d::CCNode *, _BYTE *); // r6 unsigned __int8 v58; // r2 cocos2d::CCAction *v59; // r0 cocos2d::CCMenuItem *v61; // [sp+10h] [bp-8Ch] float v62; // [sp+10h] [bp-8Ch] float v63; // [sp+10h] [bp-8Ch] float v64; // [sp+10h] [bp-8Ch] cocos2d::CCMenuItem *v65; // [sp+10h] [bp-8Ch] cocos2d::CCMenuItem *v66; // [sp+10h] [bp-8Ch] int v67; // [sp+14h] [bp-88h] void (__fastcall *v68)(int, _DWORD *); // [sp+14h] [bp-88h] int v69; // [sp+14h] [bp-88h] void (__fastcall *v70)(int, _DWORD *); // [sp+14h] [bp-88h] void (__fastcall *v71)(int, _DWORD *); // [sp+14h] [bp-88h] void (__fastcall *v72)(const cocos2d::CCPoint *, _DWORD *); // [sp+1Ch] [bp-80h] void (__fastcall *v73)(cocos2d::CCMenu *, _DWORD *); // [sp+1Ch] [bp-80h] float v74; // [sp+20h] [bp-7Ch] BYREF float v75; // [sp+24h] [bp-78h] _BYTE v76[8]; // [sp+28h] [bp-74h] BYREF _BYTE v77[8]; // [sp+30h] [bp-6Ch] BYREF int (__fastcall *v78)(SupportLayer *, cocos2d::CCObject *); // [sp+38h] [bp-64h] int v79; // [sp+3Ch] [bp-60h] int (__fastcall *v80)(SupportLayer *, cocos2d::CCObject *); // [sp+40h] [bp-5Ch] int v81; // [sp+44h] [bp-58h] int (__fastcall *v82)(SupportLayer *, cocos2d::CCObject *); // [sp+48h] [bp-54h] int v83; // [sp+4Ch] [bp-50h] int (__fastcall *v84)(SupportLayer *, cocos2d::CCObject *); // [sp+50h] [bp-4Ch] int v85; // [sp+54h] [bp-48h] int (__fastcall *v86)(SupportLayer *, cocos2d::CCObject *); // [sp+58h] [bp-44h] int v87; // [sp+5Ch] [bp-40h] unsigned __int8 *(__fastcall *v88)(SupportLayer *, cocos2d::CCObject *); // [sp+60h] [bp-3Ch] int v89; // [sp+64h] [bp-38h] int (__fastcall *v90)(SupportLayer *, cocos2d::CCObject *, int, int); // [sp+68h] [bp-34h] int v91; // [sp+6Ch] [bp-30h] int (__fastcall *v92)(SupportLayer *, cocos2d::CCObject *); // [sp+70h] [bp-2Ch] int v93; // [sp+74h] [bp-28h] _DWORD v94[2]; // [sp+78h] [bp-24h] BYREF _DWORD v95[2]; // [sp+80h] [bp-1Ch] BYREF int v96; // [sp+88h] [bp-14h] BYREF int v97; // [sp+8Ch] [bp-10h] int v98; // [sp+90h] [bp-Ch] cocos2d::CCDirector::sharedDirector(this); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v74); v2 = ButtonSprite::create( (ButtonSprite *)"Links", (const char *)&dword_44 + 2, 0, 0.5, 1, "bigFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(30.0), *(float *)&v61); v79 = 0; v78 = SupportLayer::onLinks; v3 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create((int)v2, 0, (int)this, (int)SupportLayer::onLinks, 0); v4 = ButtonSprite::create( (ButtonSprite *)"Contact", (const char *)&dword_44 + 2, 0, 0.5, 1, "bigFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(30.0), v62); v81 = 0; v80 = SupportLayer::onEmail; v5 = CCMenuItemSpriteExtra::create((int)v4, 0, (int)this, (int)SupportLayer::onEmail, 0); v6 = ButtonSprite::create( (ButtonSprite *)"Privacy", (const char *)&dword_44 + 2, 0, 0.5, 1, "bigFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(30.0), *(float *)&v5); v83 = 0; v82 = SupportLayer::onPrivacy; v7 = CCMenuItemSpriteExtra::create((int)v6, 0, (int)this, (int)SupportLayer::onPrivacy, 0); v8 = ButtonSprite::create( (ButtonSprite *)"ToS", (const char *)&dword_44 + 2, 0, 0.5, 1, "bigFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(30.0), v63); v85 = 0; v84 = SupportLayer::onTOS; v67 = CCMenuItemSpriteExtra::create((int)v8, 0, (int)this, (int)SupportLayer::onTOS, 0); v9 = ButtonSprite::create( (ButtonSprite *)"SFX", (const char *)&dword_44 + 2, 0, 0.5, 1, "bigFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(30.0), v64); v87 = 0; v86 = SupportLayer::onSFX; v10 = CCMenuItemSpriteExtra::create((int)v9, 0, (int)this, (int)SupportLayer::onSFX, 0); v11 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v3, v65, v7, v67, v10, 0); v72 = *(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v11 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, v74 * 0.5, (float)(v75 * 0.5) + 60.0); v72(v11, v95); v73 = *(void (__fastcall **)(cocos2d::CCMenu *, _DWORD *))(*(_DWORD *)v3 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, -100.0, 20.0); v73(v3, v95); v12 = *(void (__fastcall **)(cocos2d::CCMenuItem *, _DWORD *))(*(_DWORD *)v65 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, 0.0, 20.0); v12(v65, v95); v13 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v10 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, 100.0, 20.0); v13(v10, v95); v14 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v7 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, -50.0, -20.0); v14(v7, v95); v15 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v67 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, 50.0, -20.0); v15(v67, v95); v96 = 0; v97 = 0; v98 = 0; v16 = (GameManager *)std::string::__init(&v96, "Low Detail Mode", 0xFu); v89 = 0; v88 = SupportLayer::onLowDetail; v17 = *(_BYTE *)(GameManager::sharedState(v16) + 725); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, (float)(v74 * 0.5) - 160.0, (float)(v75 * 0.5) - 90.0); SupportLayer::createToggleButton((int)this, (int)&v96, (int)v88, v89, v17 != 1, v11, (int)v95, nullptr); v18 = (GJAccountManager *)std::string::~string((int)&v96); v19 = GJAccountManager::sharedState(v18); if ( *(_DWORD *)(v19 + 280) - *(_DWORD *)(v19 + 284) > 0 ) { v20 = ButtonSprite::create( (ButtonSprite *)"Req", (const char *)off_DC, 0, 0.4, 0, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(25.0), COERCE_FLOAT(&_stack_chk_guard)); v91 = 0; v90 = SupportLayer::onRequestAccess; v21 = CCMenuItemSpriteExtra::create((int)v20, 0, (int)this, (int)SupportLayer::onRequestAccess, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v11 + 228))(v11, v21); v68 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v94, (float)(v74 * 0.5) + 150.0, (float)(v75 * 0.5) - 90.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v95, v11); v68(v21, v95); v22 = (GameStatsManager *)rand(); if ( vcvts_n_f32_s32((unsigned int)v22, 0x1Fu) > 0.9 ) { v23 = GameStatsManager::sharedState(v22); v96 = 0; v97 = 0; v98 = 0; v69 = v23; std::string::__init(&v96, "0023", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v69, (int)&v96); std::string::~string((int)&v96); if ( !isSpecialChestUnlocked ) { v25 = ButtonSprite::create( (ButtonSprite *)"?", (const char *)off_DC, 0, 0.6, 0, "goldFont.fnt", "GJ_button_05.png", COERCE_CONST_CHAR_(25.0), *(float *)&v66); v93 = 0; v92 = SupportLayer::onGetReward; v26 = CCMenuItemSpriteExtra::create((int)v25, 0, (int)this, (int)SupportLayer::onGetReward, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v11 + 228))(v11, v26); v70 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v26 + 92); v27 = (*(int (__fastcall **)(int))(*(_DWORD *)v21 + 96))(v21); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v94, -50.0, 0.0); cocos2d::CCPoint::operator+(v95, v27, v94); v70(v26, v95); } } } v28 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(**((_DWORD **)this + 116) + 232))( *((_DWORD *)this + 116), v11, 1); v29 = (float)(v74 * 0.5) - 55.0; v30 = (float)(v74 * 0.5) + 45.0; v31 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v28); v33 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"developedBy_001.png", v32); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 116) + 228))(*((_DWORD *)this + 116), v33); v34 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v33 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, v29, (float)(v75 * 0.5) + 0.0); v34(v33, v95); v36 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"robtoplogo_small.png", v35); v94[1] = 0; v94[0] = SupportLayer::onRobTop; v37 = CCMenuItemSpriteExtra::create(v36, 0, (int)this, (int)SupportLayer::onRobTop, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v31 + 228))(v31, v37); v38 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v37 + 92); v39 = (*(int (__fastcall **)(int))(*(_DWORD *)v33 + 96))(v33); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v77, v30, *(float *)(v39 + 4)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v95, v31); v38(v37, v95); v41 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"poweredBy_001.png", v40); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 116) + 228))(*((_DWORD *)this + 116), v41); v71 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v41 + 92); v42 = (*(int (__fastcall **)(int))(*(_DWORD *)v33 + 96))(v33); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, v29, *(float *)(v42 + 4) - 35.0); v71(v41, v95); v44 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"cocos2DxLogo.png", v43); v95[1] = 0; v95[0] = SupportLayer::onCocos2d; v45 = CCMenuItemSpriteExtra::create(v44, 0, (int)this, (int)SupportLayer::onCocos2d, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v31 + 228))(v31, v45); v46 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v45 + 92); v47 = (*(int (__fastcall **)(int))(*(_DWORD *)v41 + 96))(v41); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v76, v30, *(float *)(v47 + 4)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v77, v31); v46(v45, v77); v49 = cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"FMOD Studio by Firelight Technologies Pty Ltd.", "goldFont.fnt", v48); (*(void (__fastcall **)(int, int))(*(_DWORD *)v49 + 80))(v49, 1051931443); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 116) + 228))(*((_DWORD *)this + 116), v49); v50 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v49 + 92); v51 = v74 * 0.5; v52 = (*(int (__fastcall **)(int))(*(_DWORD *)v41 + 96))(v41); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v77, v51, *(float *)(v52 + 4) - 26.0); v53 = (AchievementManager *)v50(v49, v77); v54 = (AchievementManager *)AchievementManager::sharedState(v53); if ( !AchievementManager::isAchievementEarned(v54, "geometry.ach.secret08") ) { v56 = (cocos2d::CCNode *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"\"blockbite\"", "chatFont.fnt", v55); (*(void (__fastcall **)(SupportLayer *, cocos2d::CCNode *, int))(*(_DWORD *)this + 232))(this, v56, 3); (*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v56 + 80))(v56, 1056964608); (*(void (__fastcall **)(cocos2d::CCNode *, void *))(*(_DWORD *)v56 + 536))(v56, &unk_BECEEC); (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v56 + 512))(v56, 0); v57 = *(void (__fastcall **)(cocos2d::CCNode *, _BYTE *))(*(_DWORD *)v56 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v77, v74 - 32.0, 8.0); v57(v56, v77); v59 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x41200000, COERCE_FLOAT(100), v58); cocos2d::CCNode::runAction(v56, v59); } return (*(int (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(**((_DWORD **)this + 116) + 232))( *((_DWORD *)this + 116), v31, 2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source